Debian Codegraph @

extra/icu/icu-release-77-1/source/configure

raw symbols SCIP
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for ICU 77.1.
4 #
5 # Report bugs to <https://icu.unicode.org/bugs>.
6 #
7 # Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html
8 #
9 #
10 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
11 # Inc.
12 #
13 #
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
19
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23 then :
24 emulate sh
25 NULLCMD=:
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
29 setopt NO_GLOB_SUBST
30 else case e in #(
31 e) case `(set -o) 2>/dev/null` in #(
32 *posix*) :
33 set -o posix ;; #(
34 *) :
35 ;;
36 esac ;;
37 esac
38 fi
39
40
41
42 # Reset variables that may have inherited troublesome values from
43 # the environment.
44
45 # IFS needs to be set, to space, tab, and newline, in precisely that order.
46 # (If _AS_PATH_WALK were called with IFS unset, it would have the
47 # side effect of setting IFS to empty, thus disabling word splitting.)
48 # Quoting is to prevent editors from complaining about space-tab.
49 as_nl='
50 '
51 export as_nl
52 IFS=" "" $as_nl"
53
54 PS1='$ '
55 PS2='> '
56 PS4='+ '
57
58 # Ensure predictable behavior from utilities with locale-dependent output.
59 LC_ALL=C
60 export LC_ALL
61 LANGUAGE=C
62 export LANGUAGE
63
64 # We cannot yet rely on "unset" to work, but we need these variables
65 # to be unset--not just set to an empty or harmless value--now, to
66 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
67 # also avoids known problems related to "unset" and subshell syntax
68 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
69 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
70 do eval test \${$as_var+y} \
71 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
72 done
73
74 # Ensure that fds 0, 1, and 2 are open.
75 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
76 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
77 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
78
79 # The user is always right.
80 if ${PATH_SEPARATOR+false} :; then
81 PATH_SEPARATOR=:
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
84 PATH_SEPARATOR=';'
85 }
86 fi
87
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 case $as_dir in #(((
98 '') as_dir=./ ;;
99 */) ;;
100 *) as_dir=$as_dir/ ;;
101 esac
102 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as 'sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118
119 # Use a proper internal environment variable to ensure we don't fall
120 # into an infinite loop, continuously re-executing ourselves.
121 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
122 _as_can_reexec=no; export _as_can_reexec;
123 # We cannot yet assume a decent shell, so we have to provide a
124 # neutralization value for shells without unset; and this also
125 # works around shells that cannot unset nonexistent variables.
126 # Preserve -v and -x to the replacement shell.
127 BASH_ENV=/dev/null
128 ENV=/dev/null
129 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
130 case $- in # ((((
131 *v*x* | *x*v* ) as_opts=-vx ;;
132 *v* ) as_opts=-v ;;
133 *x* ) as_opts=-x ;;
134 * ) as_opts= ;;
135 esac
136 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
137 # Admittedly, this is quite paranoid, since all the known shells bail
138 # out after a failed 'exec'.
139 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 exit 255
141 fi
142 # We don't want this to propagate to other subprocesses.
143 { _as_can_reexec=; unset _as_can_reexec;}
144 if test "x$CONFIG_SHELL" = x; then
145 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
146 then :
147 emulate sh
148 NULLCMD=:
149 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
150 # is contrary to our usage. Disable this feature.
151 alias -g '\${1+\"\$@\"}'='\"\$@\"'
152 setopt NO_GLOB_SUBST
153 else case e in #(
154 e) case \`(set -o) 2>/dev/null\` in #(
155 *posix*) :
156 set -o posix ;; #(
157 *) :
158 ;;
159 esac ;;
160 esac
161 fi
162 "
163 as_required="as_fn_return () { (exit \$1); }
164 as_fn_success () { as_fn_return 0; }
165 as_fn_failure () { as_fn_return 1; }
166 as_fn_ret_success () { return 0; }
167 as_fn_ret_failure () { return 1; }
168
169 exitcode=0
170 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
171 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
172 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
173 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
174 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
175 then :
176
177 else case e in #(
178 e) exitcode=1; echo positional parameters were not saved. ;;
179 esac
180 fi
181 test x\$exitcode = x0 || exit 1
182 blah=\$(echo \$(echo blah))
183 test x\"\$blah\" = xblah || exit 1
184 test -x / || exit 1"
185 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
186 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
187 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
188 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
189 test \$(( 1 + 1 )) = 2 || exit 1"
190 if (eval "$as_required") 2>/dev/null
191 then :
192 as_have_required=yes
193 else case e in #(
194 e) as_have_required=no ;;
195 esac
196 fi
197 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
198 then :
199
200 else case e in #(
201 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
202 as_found=false
203 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
204 do
205 IFS=$as_save_IFS
206 case $as_dir in #(((
207 '') as_dir=./ ;;
208 */) ;;
209 *) as_dir=$as_dir/ ;;
210 esac
211 as_found=:
212 case $as_dir in #(
213 /*)
214 for as_base in sh bash ksh sh5; do
215 # Try only shells that exist, to save several forks.
216 as_shell=$as_dir$as_base
217 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
218 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
219 then :
220 CONFIG_SHELL=$as_shell as_have_required=yes
221 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
222 then :
223 break 2
224 fi
225 fi
226 done;;
227 esac
228 as_found=false
229 done
230 IFS=$as_save_IFS
231 if $as_found
232 then :
233
234 else case e in #(
235 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
237 then :
238 CONFIG_SHELL=$SHELL as_have_required=yes
239 fi ;;
240 esac
241 fi
242
243
244 if test "x$CONFIG_SHELL" != x
245 then :
246 export CONFIG_SHELL
247 # We cannot yet assume a decent shell, so we have to provide a
248 # neutralization value for shells without unset; and this also
249 # works around shells that cannot unset nonexistent variables.
250 # Preserve -v and -x to the replacement shell.
251 BASH_ENV=/dev/null
252 ENV=/dev/null
253 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
254 case $- in # ((((
255 *v*x* | *x*v* ) as_opts=-vx ;;
256 *v* ) as_opts=-v ;;
257 *x* ) as_opts=-x ;;
258 * ) as_opts= ;;
259 esac
260 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
261 # Admittedly, this is quite paranoid, since all the known shells bail
262 # out after a failed 'exec'.
263 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
264 exit 255
265 fi
266
267 if test x$as_have_required = xno
268 then :
269 printf "%s\n" "$0: This script requires a shell more modern than all"
270 printf "%s\n" "$0: the shells that I found on your system."
271 if test ${ZSH_VERSION+y} ; then
272 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 printf "%s\n" "$0: Please tell [email protected] and
276 $0: https://icu.unicode.org/bugs about your system,
277 $0: including any error possibly output before this
278 $0: message. Then install a modern shell, or manually run
279 $0: the script under such a shell if you do have one."
280 fi
281 exit 1
282 fi ;;
283 esac
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300 { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 printf "%s\n" X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
385 then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else case e in #(
391 e) as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 } ;;
395 esac
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404 then :
405 eval 'as_fn_arith ()
406 {
407 as_val=$(( $* ))
408 }'
409 else case e in #(
410 e) as_fn_arith ()
411 {
412 as_val=`expr "$@" || test $? -eq 1`
413 } ;;
414 esac
415 fi # as_fn_arith
416
417
418 # as_fn_error STATUS ERROR [LINENO LOG_FD]
419 # ----------------------------------------
420 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
421 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
422 # script with STATUS, using 1 if that was 0.
423 as_fn_error ()
424 {
425 as_status=$1; test $as_status -eq 0 && as_status=1
426 if test "$4"; then
427 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
429 fi
430 printf "%s\n" "$as_me: error: $2" >&2
431 as_fn_exit $as_status
432 } # as_fn_error
433
434 if expr a : '\(a\)' >/dev/null 2>&1 &&
435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
436 as_expr=expr
437 else
438 as_expr=false
439 fi
440
441 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
442 as_basename=basename
443 else
444 as_basename=false
445 fi
446
447 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
448 as_dirname=dirname
449 else
450 as_dirname=false
451 fi
452
453 as_me=`$as_basename -- "$0" ||
454 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
455 X"$0" : 'X\(//\)$' \| \
456 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
457 printf "%s\n" X/"$0" |
458 sed '/^.*\/\([^/][^/]*\)\/*$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\/\)$/{
463 s//\1/
464 q
465 }
466 /^X\/\(\/\).*/{
467 s//\1/
468 q
469 }
470 s/.*/./; q'`
471
472 # Avoid depending upon Character Ranges.
473 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
474 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
475 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
476 as_cr_digits='0123456789'
477 as_cr_alnum=$as_cr_Letters$as_cr_digits
478
479
480 as_lineno_1=$LINENO as_lineno_1a=$LINENO
481 as_lineno_2=$LINENO as_lineno_2a=$LINENO
482 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
483 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
484 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
485 sed -n '
486 p
487 /[$]LINENO/=
488 ' <$as_myself |
489 sed '
490 t clear
491 :clear
492 s/[$]LINENO.*/&-/
493 t lineno
494 b
495 :lineno
496 N
497 :loop
498 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
499 t loop
500 s/-\n.*//
501 ' >$as_me.lineno &&
502 chmod +x "$as_me.lineno" ||
503 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
504
505 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
506 # already done that, so ensure we don't try to do so again and fall
507 # in an infinite loop. This has already happened in practice.
508 _as_can_reexec=no; export _as_can_reexec
509 # Don't try to exec as it changes $[0], causing all sort of problems
510 # (the dirname of $[0] is not the place where we might find the
511 # original and so on. Autoconf is especially sensitive to this).
512 . "./$as_me.lineno"
513 # Exit status is that of the last command.
514 exit
515 }
516
517
518 # Determine whether it's possible to make 'echo' print without a newline.
519 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
520 # for compatibility with existing Makefiles.
521 ECHO_C= ECHO_N= ECHO_T=
522 case `echo -n x` in #(((((
523 -n*)
524 case `echo 'xy\c'` in
525 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
526 xy) ECHO_C='\c';;
527 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
528 ECHO_T=' ';;
529 esac;;
530 *)
531 ECHO_N='-n';;
532 esac
533
534 # For backward compatibility with old third-party macros, we provide
535 # the shell variables $as_echo and $as_echo_n. New code should use
536 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
537 as_echo='printf %s\n'
538 as_echo_n='printf %s'
539
540 rm -f conf$$ conf$$.exe conf$$.file
541 if test -d conf$$.dir; then
542 rm -f conf$$.dir/conf$$.file
543 else
544 rm -f conf$$.dir
545 mkdir conf$$.dir 2>/dev/null
546 fi
547 if (echo >conf$$.file) 2>/dev/null; then
548 if ln -s conf$$.file conf$$ 2>/dev/null; then
549 as_ln_s='ln -s'
550 # ... but there are two gotchas:
551 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
552 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
553 # In both cases, we have to default to 'cp -pR'.
554 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
555 as_ln_s='cp -pR'
556 elif ln conf$$.file conf$$ 2>/dev/null; then
557 as_ln_s=ln
558 else
559 as_ln_s='cp -pR'
560 fi
561 else
562 as_ln_s='cp -pR'
563 fi
564 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
565 rmdir conf$$.dir 2>/dev/null
566
567 if mkdir -p . 2>/dev/null; then
568 as_mkdir_p='mkdir -p "$as_dir"'
569 else
570 test -d ./-p && rmdir ./-p
571 as_mkdir_p=false
572 fi
573
574 as_test_x='test -x'
575 as_executable_p=as_fn_executable_p
576
577 # Sed expression to map a string onto a valid CPP name.
578 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
579 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
580
581 # Sed expression to map a string onto a valid variable name.
582 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
583 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
584
585
586 test -n "$DJDIR" || exec 7<&0 </dev/null
587 exec 6>&1
588
589 # Name of the host.
590 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
591 # so uname gets run too.
592 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
593
594 #
595 # Initializations.
596 #
597 ac_default_prefix=/usr/local
598 ac_clean_files=
599 ac_config_libobj_dir=.
600 LIBOBJS=
601 cross_compiling=no
602 subdirs=
603 MFLAGS=
604 MAKEFLAGS=
605
606 # Identity of this package.
607 PACKAGE_NAME='ICU'
608 PACKAGE_TARNAME='icu4c'
609 PACKAGE_VERSION='77.1'
610 PACKAGE_STRING='ICU 77.1'
611 PACKAGE_BUGREPORT='https://icu.unicode.org/bugs'
612 PACKAGE_URL='https://icu.unicode.org/'
613
614 ac_unique_file="common/unicode/utypes.h"
615 # Factoring default headers for most tests.
616 ac_includes_default="\
617 #include <stddef.h>
618 #ifdef HAVE_STDIO_H
619 # include <stdio.h>
620 #endif
621 #ifdef HAVE_STDLIB_H
622 # include <stdlib.h>
623 #endif
624 #ifdef HAVE_STRING_H
625 # include <string.h>
626 #endif
627 #ifdef HAVE_INTTYPES_H
628 # include <inttypes.h>
629 #endif
630 #ifdef HAVE_STDINT_H
631 # include <stdint.h>
632 #endif
633 #ifdef HAVE_STRINGS_H
634 # include <strings.h>
635 #endif
636 #ifdef HAVE_SYS_TYPES_H
637 # include <sys/types.h>
638 #endif
639 #ifdef HAVE_SYS_STAT_H
640 # include <sys/stat.h>
641 #endif
642 #ifdef HAVE_UNISTD_H
643 # include <unistd.h>
644 #endif"
645
646 ac_header_c_list=
647 ac_subst_vars='UCONFIG_CXXFLAGS
648 UCONFIG_CFLAGS
649 UCONFIG_CPPFLAGS
650 LTLIBOBJS
651 LIBOBJS
652 LIBCXXFLAGS
653 LIBCFLAGS
654 platform_make_fragment
655 platform_make_fragment_name
656 platform
657 ICUDATA_CHAR
658 U_HAVE_SAMPLES
659 SAMPLES_TRUE
660 U_HAVE_TESTS
661 TESTS_TRUE
662 ICULIBSUFFIXCNAME
663 U_HAVE_LIB_SUFFIX
664 ICULIBSUFFIX
665 DATA_PACKAGING_MODE
666 thepkgicudatadir
667 pkgicudatadir
668 U_HAVE_DATA
669 DATA_TRUE
670 U_HAVE_FUZZER
671 FUZZER_TRUE
672 U_HAVE_TOOLS
673 TOOLS_TRUE
674 U_HAVE_LAYOUTEX
675 LAYOUTEX_TRUE
676 U_HAVE_ICUIO
677 ICUIO_TRUE
678 U_HAVE_EXTRAS
679 EXTRAS_TRUE
680 U_HAVE_WCSCPY
681 U_HAVE_WCHAR_H
682 U_HAVE_STRTOD_L
683 U_TIMEZONE
684 U_HAVE_TIMEZONE
685 U_TZNAME
686 U_HAVE_TZNAME
687 U_TZSET
688 U_HAVE_TZSET
689 U_HAVE_POPEN
690 U_HAVE_PLACEMENT_NEW
691 U_OVERRIDE_CXX_ALLOCATION
692 U_NL_LANGINFO_CODESET
693 U_HAVE_NL_LANGINFO_CODESET
694 U_IS_BIG_ENDIAN
695 U_HAVE_DIRENT_H
696 GENCCODE_ASSEMBLY
697 HAVE_MMAP
698 LIB_THREAD
699 ENABLE_RPATH
700 U_ENABLE_DYLOAD
701 U_HAVE_PLUGINS
702 PLUGINS_TRUE
703 U_ENABLE_TRACING
704 U_DISABLE_RENAMING
705 AR
706 SED
707 RANLIB
708 U_DEFAULT_SHOW_DRAFT
709 UCLN_NO_AUTO_CLEANUP
710 ENABLE_STATIC
711 ENABLE_SHARED
712 LIB_M
713 COMPILE_LINK_ENVVAR
714 ARFLAGS
715 DOXYGEN
716 cross_buildroot
717 U_MAKE
718 PYTHON
719 cross_compiling
720 INSTALL_DATA
721 INSTALL_SCRIPT
722 INSTALL_PROGRAM
723 CPP
724 ICULEHB_LIBS
725 ICULEHB_CFLAGS
726 PKG_CONFIG_LIBDIR
727 PKG_CONFIG_PATH
728 PKG_CONFIG
729 ac_ct_CXX
730 CXXFLAGS
731 CXX
732 OBJEXT
733 EXEEXT
734 ac_ct_CC
735 LDFLAGS
736 CFLAGS
737 CC
738 ENABLE_RELEASE
739 ENABLE_DEBUG
740 INSTALL_ICU_CONFIG
741 CPPFLAGS
742 host_os
743 host_vendor
744 host_cpu
745 host
746 build_os
747 build_vendor
748 build_cpu
749 build
750 UNICODE_VERSION
751 LIB_VERSION_MAJOR
752 LIB_VERSION
753 VERSION
754 PACKAGE
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 runstatedir
775 localstatedir
776 sharedstatedir
777 sysconfdir
778 datadir
779 datarootdir
780 libexecdir
781 sbindir
782 bindir
783 program_transform_name
784 prefix
785 exec_prefix
786 PACKAGE_URL
787 PACKAGE_BUGREPORT
788 PACKAGE_STRING
789 PACKAGE_VERSION
790 PACKAGE_TARNAME
791 PACKAGE_NAME
792 PATH_SEPARATOR
793 SHELL'
794 ac_subst_files=''
795 ac_user_opts='
796 enable_option_checking
797 enable_icu_config
798 enable_debug
799 enable_release
800 with_cross_build
801 enable_strict
802 enable_64bit_libs
803 with_library_bits
804 enable_shared
805 enable_static
806 enable_auto_cleanup
807 enable_draft
808 enable_renaming
809 enable_tracing
810 enable_plugins
811 enable_dyload
812 enable_rpath
813 enable_weak_threads
814 enable_extras
815 enable_icuio
816 enable_layoutex
817 enable_layout
818 enable_tools
819 enable_fuzzer
820 with_data_packaging
821 with_library_suffix
822 enable_tests
823 enable_samples
824 '
825 ac_precious_vars='build_alias
826 host_alias
827 target_alias
828 CC
829 CFLAGS
830 LDFLAGS
831 LIBS
832 CPPFLAGS
833 CXX
834 CXXFLAGS
835 CCC
836 PKG_CONFIG
837 PKG_CONFIG_PATH
838 PKG_CONFIG_LIBDIR
839 ICULEHB_CFLAGS
840 ICULEHB_LIBS
841 CPP'
842
843
844 # Initialize some variables set by options.
845 ac_init_help=
846 ac_init_version=false
847 ac_unrecognized_opts=
848 ac_unrecognized_sep=
849 # The variables have the same names as the options, with
850 # dashes changed to underlines.
851 cache_file=/dev/null
852 exec_prefix=NONE
853 no_create=
854 no_recursion=
855 prefix=NONE
856 program_prefix=NONE
857 program_suffix=NONE
858 program_transform_name=s,x,x,
859 silent=
860 site=
861 srcdir=
862 verbose=
863 x_includes=NONE
864 x_libraries=NONE
865
866 # Installation directory options.
867 # These are left unexpanded so users can "make install exec_prefix=/foo"
868 # and all the variables that are supposed to be based on exec_prefix
869 # by default will actually change.
870 # Use braces instead of parens because sh, perl, etc. also accept them.
871 # (The list follows the same order as the GNU Coding Standards.)
872 bindir='${exec_prefix}/bin'
873 sbindir='${exec_prefix}/sbin'
874 libexecdir='${exec_prefix}/libexec'
875 datarootdir='${prefix}/share'
876 datadir='${datarootdir}'
877 sysconfdir='${prefix}/etc'
878 sharedstatedir='${prefix}/com'
879 localstatedir='${prefix}/var'
880 runstatedir='${localstatedir}/run'
881 includedir='${prefix}/include'
882 oldincludedir='/usr/include'
883 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884 infodir='${datarootdir}/info'
885 htmldir='${docdir}'
886 dvidir='${docdir}'
887 pdfdir='${docdir}'
888 psdir='${docdir}'
889 libdir='${exec_prefix}/lib'
890 localedir='${datarootdir}/locale'
891 mandir='${datarootdir}/man'
892
893 ac_prev=
894 ac_dashdash=
895 for ac_option
896 do
897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
899 eval $ac_prev=\$ac_option
900 ac_prev=
901 continue
902 fi
903
904 case $ac_option in
905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
908 esac
909
910 case $ac_dashdash$ac_option in
911 --)
912 ac_dashdash=yes ;;
913
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
918
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
923
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
930
931 --config-cache | -C)
932 cache_file=config.cache ;;
933
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
938
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
945
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: '$ac_useropt'"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
954 *"
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
961
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
966
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
971
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: '$ac_useropt'"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
980 *"
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
987
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
996
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1000
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1007
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1012
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1018
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1025
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1030
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1035
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1042
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1047
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1054
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1059
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1063
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1067
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1071
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1080
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1085
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1092
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1099
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1116
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1121
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1126
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1130
1131 -runstatedir | --runstatedir | --runstatedi | --runstated \
1132 | --runstate | --runstat | --runsta | --runst | --runs \
1133 | --run | --ru | --r)
1134 ac_prev=runstatedir ;;
1135 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1136 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1137 | --run=* | --ru=* | --r=*)
1138 runstatedir=$ac_optarg ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: '$ac_useropt'"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: '$ac_useropt'"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) as_fn_error $? "unrecognized option: '$ac_option'
1236 Try '$0 --help' for more information"
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $? "missing argument to $ac_option"
1263 fi
1264
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271 fi
1272
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir runstatedir
1278 do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292 done
1293
1294 # There might be people who depend on the old broken behavior: '$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $? "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 printf "%s\n" X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355 else
1356 ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361 fi
1362 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 'configure' configures ICU 77.1 to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print 'checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for '--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or '..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, 'make install' will install all the files in
1417 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than '$ac_default_prefix' using '--prefix',
1419 for instance '--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1431 --libdir=DIR object code libraries [EPREFIX/lib]
1432 --includedir=DIR C header files [PREFIX/include]
1433 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1434 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1435 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1436 --infodir=DIR info documentation [DATAROOTDIR/info]
1437 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1438 --mandir=DIR man documentation [DATAROOTDIR/man]
1439 --docdir=DIR documentation root [DATAROOTDIR/doc/icu4c]
1440 --htmldir=DIR html documentation [DOCDIR]
1441 --dvidir=DIR dvi documentation [DOCDIR]
1442 --pdfdir=DIR pdf documentation [DOCDIR]
1443 --psdir=DIR ps documentation [DOCDIR]
1444 _ACEOF
1445
1446 cat <<\_ACEOF
1447
1448 System types:
1449 --build=BUILD configure for building on BUILD [guessed]
1450 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1451 _ACEOF
1452 fi
1453
1454 if test -n "$ac_init_help"; then
1455 case $ac_init_help in
1456 short | recursive ) echo "Configuration of ICU 77.1:";;
1457 esac
1458 cat <<\_ACEOF
1459
1460 Optional Features:
1461 --disable-option-checking ignore unrecognized --enable/--with options
1462 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1463 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1464 --disable-icu-config do not install icu-config
1465 --enable-debug build debug libraries and enable the U_DEBUG define
1466 --disable-release do not build release libraries
1467 --disable-strict do not compile with strict compiler options
1468 --enable-64bit-libs (deprecated, use --with-library-bits) build 64-bit libraries default= platform default
1469 --disable-shared do not build shared libraries
1470 --enable-static build static libraries
1471 --enable-auto-cleanup enable auto cleanup of libraries
1472 --disable-draft do not enable draft APIs (and internal APIs)
1473 --disable-renaming do not add a version suffix to symbols
1474 --enable-tracing enable function and data tracing
1475 --enable-plugins enable plugins
1476 --disable-dyload disable dynamic loading
1477 --enable-rpath use rpath when linking default is only if necessary
1478 --enable-weak-threads weakly reference the threading library
1479 --disable-extras do not build ICU extras
1480 --disable-icuio do not build ICU's icuio library
1481 --enable-layoutex build ICU's Paragraph Layout library.
1482 icu-le-hb must be installed via pkg-config. See http://harfbuzz.org
1483
1484 --disable-tools do not build ICU's tools
1485 --enable-fuzzer build ICU's fuzzer test targets
1486 --disable-tests do not build ICU tests
1487 --disable-samples do not build ICU samples
1488
1489 Additionally, the variable FORCE_LIBS may be set before calling configure.
1490 If set, it will REPLACE any automatic list of libraries.
1491
1492 Optional Packages:
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir
1496 --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange
1497 --with-data-packaging specify how to package ICU data. Possible values:
1498 files raw files (.res, etc)
1499 archive build a single icudtXX.dat file
1500 library shared library (.dll/.so/etc.)
1501 static static library (.a/.lib/etc.)
1502 auto build shared if possible (default)
1503 See https://unicode-org.github.io/icu/userguide/icu_data for more info.
1504 --with-library-suffix=suffix tag a suffix to the library names default=
1505
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1514 CXX C++ compiler command
1515 CXXFLAGS C++ compiler flags
1516 PKG_CONFIG path to pkg-config utility
1517 PKG_CONFIG_PATH
1518 directories to add to pkg-config's search path
1519 PKG_CONFIG_LIBDIR
1520 path overriding pkg-config's built-in search path
1521 ICULEHB_CFLAGS
1522 C compiler flags for ICULEHB, overriding pkg-config
1523 ICULEHB_LIBS
1524 linker flags for ICULEHB, overriding pkg-config
1525 CPP C preprocessor
1526
1527 Use these variables to override the choices made by 'configure' or to help
1528 it to find libraries and programs with nonstandard names/locations.
1529
1530 Report bugs to <https://icu.unicode.org/bugs>.
1531 ICU home page: <https://icu.unicode.org/>.
1532 _ACEOF
1533 ac_status=$?
1534 fi
1535
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" ||
1540 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1541 continue
1542 ac_builddir=.
1543
1544 case "$ac_dir" in
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1546 *)
1547 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 esac ;;
1554 esac
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1559
1560 case $srcdir in
1561 .) # We are building in place.
1562 ac_srcdir=.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1569 *) # Relative name.
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1573 esac
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1575
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for configure.gnu first; this name is used for a wrapper for
1578 # Metaconfig's "Configure" on case-insensitive file systems.
1579 if test -f "$ac_srcdir/configure.gnu"; then
1580 echo &&
1581 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1582 elif test -f "$ac_srcdir/configure"; then
1583 echo &&
1584 $SHELL "$ac_srcdir/configure" --help=recursive
1585 else
1586 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 fi || ac_status=$?
1588 cd "$ac_pwd" || { ac_status=$?; break; }
1589 done
1590 fi
1591
1592 test -n "$ac_init_help" && exit $ac_status
1593 if $ac_init_version; then
1594 cat <<\_ACEOF
1595 ICU configure 77.1
1596 generated by GNU Autoconf 2.72
1597
1598 Copyright (C) 2023 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1601
1602 Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html
1603 _ACEOF
1604 exit
1605 fi
1606
1607 ## ------------------------ ##
1608 ## Autoconf initialization. ##
1609 ## ------------------------ ##
1610
1611 # ac_fn_c_try_compile LINENO
1612 # --------------------------
1613 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1614 ac_fn_c_try_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 rm -f conftest.$ac_objext conftest.beam
1618 if { { ac_try="$ac_compile"
1619 case "(($ac_try" in
1620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621 *) ac_try_echo=$ac_try;;
1622 esac
1623 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624 printf "%s\n" "$ac_try_echo"; } >&5
1625 (eval "$ac_compile") 2>conftest.err
1626 ac_status=$?
1627 if test -s conftest.err; then
1628 grep -v '^ *+' conftest.err >conftest.er1
1629 cat conftest.er1 >&5
1630 mv -f conftest.er1 conftest.err
1631 fi
1632 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633 test $ac_status = 0; } && {
1634 test -z "$ac_c_werror_flag" ||
1635 test ! -s conftest.err
1636 } && test -s conftest.$ac_objext
1637 then :
1638 ac_retval=0
1639 else case e in #(
1640 e) printf "%s\n" "$as_me: failed program was:" >&5
1641 sed 's/^/| /' conftest.$ac_ext >&5
1642
1643 ac_retval=1 ;;
1644 esac
1645 fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649 } # ac_fn_c_try_compile
1650
1651 # ac_fn_cxx_try_compile LINENO
1652 # ----------------------------
1653 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_cxx_try_compile ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 rm -f conftest.$ac_objext conftest.beam
1658 if { { ac_try="$ac_compile"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 printf "%s\n" "$ac_try_echo"; } >&5
1665 (eval "$ac_compile") 2>conftest.err
1666 ac_status=$?
1667 if test -s conftest.err; then
1668 grep -v '^ *+' conftest.err >conftest.er1
1669 cat conftest.er1 >&5
1670 mv -f conftest.er1 conftest.err
1671 fi
1672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673 test $ac_status = 0; } && {
1674 test -z "$ac_cxx_werror_flag" ||
1675 test ! -s conftest.err
1676 } && test -s conftest.$ac_objext
1677 then :
1678 ac_retval=0
1679 else case e in #(
1680 e) printf "%s\n" "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1682
1683 ac_retval=1 ;;
1684 esac
1685 fi
1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1687 as_fn_set_status $ac_retval
1688
1689 } # ac_fn_cxx_try_compile
1690
1691 # ac_fn_c_try_cpp LINENO
1692 # ----------------------
1693 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1694 ac_fn_c_try_cpp ()
1695 {
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_cpp conftest.$ac_ext"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 printf "%s\n" "$ac_try_echo"; } >&5
1704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1710 fi
1711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } > conftest.i && {
1713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1714 test ! -s conftest.err
1715 }
1716 then :
1717 ac_retval=0
1718 else case e in #(
1719 e) printf "%s\n" "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1 ;;
1723 esac
1724 fi
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_cpp
1729
1730 # ac_fn_c_try_run LINENO
1731 # ----------------------
1732 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1733 # executables *can* be run.
1734 ac_fn_c_try_run ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { { ac_try="$ac_link"
1738 case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 printf "%s\n" "$ac_try_echo"; } >&5
1744 (eval "$ac_link") 2>&5
1745 ac_status=$?
1746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1748 { { case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751 esac
1752 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753 printf "%s\n" "$ac_try_echo"; } >&5
1754 (eval "$ac_try") 2>&5
1755 ac_status=$?
1756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; }; }
1758 then :
1759 ac_retval=0
1760 else case e in #(
1761 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1762 printf "%s\n" "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=$ac_status ;;
1766 esac
1767 fi
1768 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1770 as_fn_set_status $ac_retval
1771
1772 } # ac_fn_c_try_run
1773
1774 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1775 # --------------------------------------------
1776 # Tries to find the compile-time value of EXPR in a program that includes
1777 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1778 # computed
1779 ac_fn_c_compute_int ()
1780 {
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1782 if test "$cross_compiling" = yes; then
1783 # Depending upon the size, compute the lo and hi bounds.
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 $4
1787 int
1788 main (void)
1789 {
1790 static int test_array [1 - 2 * !(($2) >= 0)];
1791 test_array [0] = 0;
1792 return test_array [0];
1793
1794 ;
1795 return 0;
1796 }
1797 _ACEOF
1798 if ac_fn_c_try_compile "$LINENO"
1799 then :
1800 ac_lo=0 ac_mid=0
1801 while :; do
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1804 $4
1805 int
1806 main (void)
1807 {
1808 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1809 test_array [0] = 0;
1810 return test_array [0];
1811
1812 ;
1813 return 0;
1814 }
1815 _ACEOF
1816 if ac_fn_c_try_compile "$LINENO"
1817 then :
1818 ac_hi=$ac_mid; break
1819 else case e in #(
1820 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1821 if test $ac_lo -le $ac_mid; then
1822 ac_lo= ac_hi=
1823 break
1824 fi
1825 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
1826 esac
1827 fi
1828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1829 done
1830 else case e in #(
1831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 $4
1834 int
1835 main (void)
1836 {
1837 static int test_array [1 - 2 * !(($2) < 0)];
1838 test_array [0] = 0;
1839 return test_array [0];
1840
1841 ;
1842 return 0;
1843 }
1844 _ACEOF
1845 if ac_fn_c_try_compile "$LINENO"
1846 then :
1847 ac_hi=-1 ac_mid=-1
1848 while :; do
1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1850 /* end confdefs.h. */
1851 $4
1852 int
1853 main (void)
1854 {
1855 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1856 test_array [0] = 0;
1857 return test_array [0];
1858
1859 ;
1860 return 0;
1861 }
1862 _ACEOF
1863 if ac_fn_c_try_compile "$LINENO"
1864 then :
1865 ac_lo=$ac_mid; break
1866 else case e in #(
1867 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1868 if test $ac_mid -le $ac_hi; then
1869 ac_lo= ac_hi=
1870 break
1871 fi
1872 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
1873 esac
1874 fi
1875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1876 done
1877 else case e in #(
1878 e) ac_lo= ac_hi= ;;
1879 esac
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1882 esac
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1885 # Binary search between lo and hi bounds.
1886 while test "x$ac_lo" != "x$ac_hi"; do
1887 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 $4
1891 int
1892 main (void)
1893 {
1894 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1895 test_array [0] = 0;
1896 return test_array [0];
1897
1898 ;
1899 return 0;
1900 }
1901 _ACEOF
1902 if ac_fn_c_try_compile "$LINENO"
1903 then :
1904 ac_hi=$ac_mid
1905 else case e in #(
1906 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
1907 esac
1908 fi
1909 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1910 done
1911 case $ac_lo in #((
1912 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1913 '') ac_retval=1 ;;
1914 esac
1915 else
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 static long int longval (void) { return $2; }
1920 static unsigned long int ulongval (void) { return $2; }
1921 #include <stdio.h>
1922 #include <stdlib.h>
1923 int
1924 main (void)
1925 {
1926
1927 FILE *f = fopen ("conftest.val", "w");
1928 if (! f)
1929 return 1;
1930 if (($2) < 0)
1931 {
1932 long int i = longval ();
1933 if (i != ($2))
1934 return 1;
1935 fprintf (f, "%ld", i);
1936 }
1937 else
1938 {
1939 unsigned long int i = ulongval ();
1940 if (i != ($2))
1941 return 1;
1942 fprintf (f, "%lu", i);
1943 }
1944 /* Do not output a trailing newline, as this causes \r\n confusion
1945 on some platforms. */
1946 return ferror (f) || fclose (f) != 0;
1947
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 if ac_fn_c_try_run "$LINENO"
1953 then :
1954 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1955 else case e in #(
1956 e) ac_retval=1 ;;
1957 esac
1958 fi
1959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1960 conftest.$ac_objext conftest.beam conftest.$ac_ext
1961 rm -f conftest.val
1962
1963 fi
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status $ac_retval
1966
1967 } # ac_fn_c_compute_int
1968
1969 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1970 # -------------------------------------------------------
1971 # Tests whether HEADER exists and can be compiled using the include files in
1972 # INCLUDES, setting the cache variable VAR accordingly.
1973 ac_fn_c_check_header_compile ()
1974 {
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977 printf %s "checking for $2... " >&6; }
1978 if eval test \${$3+y}
1979 then :
1980 printf %s "(cached) " >&6
1981 else case e in #(
1982 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1983 /* end confdefs.h. */
1984 $4
1985 #include <$2>
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"
1988 then :
1989 eval "$3=yes"
1990 else case e in #(
1991 e) eval "$3=no" ;;
1992 esac
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1995 esac
1996 fi
1997 eval ac_res=\$$3
1998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 printf "%s\n" "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002 } # ac_fn_c_check_header_compile
2003
2004 # ac_fn_c_try_link LINENO
2005 # -----------------------
2006 # Try to link conftest.$ac_ext, and return whether this succeeded.
2007 ac_fn_c_try_link ()
2008 {
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2011 if { { ac_try="$ac_link"
2012 case "(($ac_try" in
2013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2014 *) ac_try_echo=$ac_try;;
2015 esac
2016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2017 printf "%s\n" "$ac_try_echo"; } >&5
2018 (eval "$ac_link") 2>conftest.err
2019 ac_status=$?
2020 if test -s conftest.err; then
2021 grep -v '^ *+' conftest.err >conftest.er1
2022 cat conftest.er1 >&5
2023 mv -f conftest.er1 conftest.err
2024 fi
2025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2026 test $ac_status = 0; } && {
2027 test -z "$ac_c_werror_flag" ||
2028 test ! -s conftest.err
2029 } && test -s conftest$ac_exeext && {
2030 test "$cross_compiling" = yes ||
2031 test -x conftest$ac_exeext
2032 }
2033 then :
2034 ac_retval=0
2035 else case e in #(
2036 e) printf "%s\n" "$as_me: failed program was:" >&5
2037 sed 's/^/| /' conftest.$ac_ext >&5
2038
2039 ac_retval=1 ;;
2040 esac
2041 fi
2042 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2043 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2044 # interfere with the next link command; also delete a directory that is
2045 # left behind by Apple's compiler. We do this before executing the actions.
2046 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2048 as_fn_set_status $ac_retval
2049
2050 } # ac_fn_c_try_link
2051
2052 # ac_fn_c_check_func LINENO FUNC VAR
2053 # ----------------------------------
2054 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2055 ac_fn_c_check_func ()
2056 {
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059 printf %s "checking for $2... " >&6; }
2060 if eval test \${$3+y}
2061 then :
2062 printf %s "(cached) " >&6
2063 else case e in #(
2064 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2066 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2068 #define $2 innocuous_$2
2069
2070 /* System header to define __stub macros and hopefully few prototypes,
2071 which can conflict with char $2 (void); below. */
2072
2073 #include <limits.h>
2074 #undef $2
2075
2076 /* Override any GCC internal prototype to avoid an error.
2077 Use char because int might match the return type of a GCC
2078 builtin and then its argument prototype would still apply. */
2079 #ifdef __cplusplus
2080 extern "C"
2081 #endif
2082 char $2 (void);
2083 /* The GNU C library defines this for functions which it implements
2084 to always fail with ENOSYS. Some functions are actually named
2085 something starting with __ and the normal name is an alias. */
2086 #if defined __stub_$2 || defined __stub___$2
2087 choke me
2088 #endif
2089
2090 int
2091 main (void)
2092 {
2093 return $2 ();
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 if ac_fn_c_try_link "$LINENO"
2099 then :
2100 eval "$3=yes"
2101 else case e in #(
2102 e) eval "$3=no" ;;
2103 esac
2104 fi
2105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2106 conftest$ac_exeext conftest.$ac_ext ;;
2107 esac
2108 fi
2109 eval ac_res=\$$3
2110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111 printf "%s\n" "$ac_res" >&6; }
2112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
2114 } # ac_fn_c_check_func
2115
2116 # ac_fn_cxx_try_link LINENO
2117 # -------------------------
2118 # Try to link conftest.$ac_ext, and return whether this succeeded.
2119 ac_fn_cxx_try_link ()
2120 {
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2123 if { { ac_try="$ac_link"
2124 case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127 esac
2128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129 printf "%s\n" "$ac_try_echo"; } >&5
2130 (eval "$ac_link") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2136 fi
2137 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2138 test $ac_status = 0; } && {
2139 test -z "$ac_cxx_werror_flag" ||
2140 test ! -s conftest.err
2141 } && test -s conftest$ac_exeext && {
2142 test "$cross_compiling" = yes ||
2143 test -x conftest$ac_exeext
2144 }
2145 then :
2146 ac_retval=0
2147 else case e in #(
2148 e) printf "%s\n" "$as_me: failed program was:" >&5
2149 sed 's/^/| /' conftest.$ac_ext >&5
2150
2151 ac_retval=1 ;;
2152 esac
2153 fi
2154 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2155 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2156 # interfere with the next link command; also delete a directory that is
2157 # left behind by Apple's compiler. We do this before executing the actions.
2158 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2160 as_fn_set_status $ac_retval
2161
2162 } # ac_fn_cxx_try_link
2163 ac_configure_args_raw=
2164 for ac_arg
2165 do
2166 case $ac_arg in
2167 *\'*)
2168 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 esac
2170 as_fn_append ac_configure_args_raw " '$ac_arg'"
2171 done
2172
2173 case $ac_configure_args_raw in
2174 *$as_nl*)
2175 ac_safe_unquote= ;;
2176 *)
2177 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2178 ac_unsafe_a="$ac_unsafe_z#~"
2179 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2180 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2181 esac
2182
2183 cat >config.log <<_ACEOF
2184 This file contains any messages produced by compilers while
2185 running configure, to aid debugging if configure makes a mistake.
2186
2187 It was created by ICU $as_me 77.1, which was
2188 generated by GNU Autoconf 2.72. Invocation command line was
2189
2190 $ $0$ac_configure_args_raw
2191
2192 _ACEOF
2193 exec 5>>config.log
2194 {
2195 cat <<_ASUNAME
2196 ## --------- ##
2197 ## Platform. ##
2198 ## --------- ##
2199
2200 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2201 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2202 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2203 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2204 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2205
2206 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2207 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2208
2209 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2210 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2211 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2212 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2213 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2214 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2215 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2216
2217 _ASUNAME
2218
2219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 for as_dir in $PATH
2221 do
2222 IFS=$as_save_IFS
2223 case $as_dir in #(((
2224 '') as_dir=./ ;;
2225 */) ;;
2226 *) as_dir=$as_dir/ ;;
2227 esac
2228 printf "%s\n" "PATH: $as_dir"
2229 done
2230 IFS=$as_save_IFS
2231
2232 } >&5
2233
2234 cat >&5 <<_ACEOF
2235
2236
2237 ## ----------- ##
2238 ## Core tests. ##
2239 ## ----------- ##
2240
2241 _ACEOF
2242
2243
2244 # Keep a trace of the command line.
2245 # Strip out --no-create and --no-recursion so they do not pile up.
2246 # Strip out --silent because we don't want to record it for future runs.
2247 # Also quote any args containing shell meta-characters.
2248 # Make two passes to allow for proper duplicate-argument suppression.
2249 ac_configure_args=
2250 ac_configure_args0=
2251 ac_configure_args1=
2252 ac_must_keep_next=false
2253 for ac_pass in 1 2
2254 do
2255 for ac_arg
2256 do
2257 case $ac_arg in
2258 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2259 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2260 | -silent | --silent | --silen | --sile | --sil)
2261 continue ;;
2262 *\'*)
2263 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2264 esac
2265 case $ac_pass in
2266 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2267 2)
2268 as_fn_append ac_configure_args1 " '$ac_arg'"
2269 if test $ac_must_keep_next = true; then
2270 ac_must_keep_next=false # Got value, back to normal.
2271 else
2272 case $ac_arg in
2273 *=* | --config-cache | -C | -disable-* | --disable-* \
2274 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2275 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2276 | -with-* | --with-* | -without-* | --without-* | --x)
2277 case "$ac_configure_args0 " in
2278 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2279 esac
2280 ;;
2281 -* ) ac_must_keep_next=true ;;
2282 esac
2283 fi
2284 as_fn_append ac_configure_args " '$ac_arg'"
2285 ;;
2286 esac
2287 done
2288 done
2289 { ac_configure_args0=; unset ac_configure_args0;}
2290 { ac_configure_args1=; unset ac_configure_args1;}
2291
2292 # When interrupted or exit'd, cleanup temporary files, and complete
2293 # config.log. We remove comments because anyway the quotes in there
2294 # would cause problems or look ugly.
2295 # WARNING: Use '\'' to represent an apostrophe within the trap.
2296 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2297 trap 'exit_status=$?
2298 # Sanitize IFS.
2299 IFS=" "" $as_nl"
2300 # Save into config.log some information that might help in debugging.
2301 {
2302 echo
2303
2304 printf "%s\n" "## ---------------- ##
2305 ## Cache variables. ##
2306 ## ---------------- ##"
2307 echo
2308 # The following way of writing the cache mishandles newlines in values,
2309 (
2310 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2311 eval ac_val=\$$ac_var
2312 case $ac_val in #(
2313 *${as_nl}*)
2314 case $ac_var in #(
2315 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2316 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2317 esac
2318 case $ac_var in #(
2319 _ | IFS | as_nl) ;; #(
2320 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2321 *) { eval $ac_var=; unset $ac_var;} ;;
2322 esac ;;
2323 esac
2324 done
2325 (set) 2>&1 |
2326 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2327 *${as_nl}ac_space=\ *)
2328 sed -n \
2329 "s/'\''/'\''\\\\'\'''\''/g;
2330 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2331 ;; #(
2332 *)
2333 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2334 ;;
2335 esac |
2336 sort
2337 )
2338 echo
2339
2340 printf "%s\n" "## ----------------- ##
2341 ## Output variables. ##
2342 ## ----------------- ##"
2343 echo
2344 for ac_var in $ac_subst_vars
2345 do
2346 eval ac_val=\$$ac_var
2347 case $ac_val in
2348 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2349 esac
2350 printf "%s\n" "$ac_var='\''$ac_val'\''"
2351 done | sort
2352 echo
2353
2354 if test -n "$ac_subst_files"; then
2355 printf "%s\n" "## ------------------- ##
2356 ## File substitutions. ##
2357 ## ------------------- ##"
2358 echo
2359 for ac_var in $ac_subst_files
2360 do
2361 eval ac_val=\$$ac_var
2362 case $ac_val in
2363 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364 esac
2365 printf "%s\n" "$ac_var='\''$ac_val'\''"
2366 done | sort
2367 echo
2368 fi
2369
2370 if test -s confdefs.h; then
2371 printf "%s\n" "## ----------- ##
2372 ## confdefs.h. ##
2373 ## ----------- ##"
2374 echo
2375 cat confdefs.h
2376 echo
2377 fi
2378 test "$ac_signal" != 0 &&
2379 printf "%s\n" "$as_me: caught signal $ac_signal"
2380 printf "%s\n" "$as_me: exit $exit_status"
2381 } >&5
2382 rm -f core *.core core.conftest.* &&
2383 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2384 exit $exit_status
2385 ' 0
2386 for ac_signal in 1 2 13 15; do
2387 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2388 done
2389 ac_signal=0
2390
2391 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2392 rm -f -r conftest* confdefs.h
2393
2394 printf "%s\n" "/* confdefs.h */" > confdefs.h
2395
2396 # Predefined preprocessor variables.
2397
2398 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2399
2400 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2401
2402 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2403
2404 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2405
2406 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2407
2408 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2409
2410
2411 # Let the site file select an alternate cache file if it wants to.
2412 # Prefer an explicitly selected file to automatically selected ones.
2413 if test -n "$CONFIG_SITE"; then
2414 ac_site_files="$CONFIG_SITE"
2415 elif test "x$prefix" != xNONE; then
2416 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2417 else
2418 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2419 fi
2420
2421 for ac_site_file in $ac_site_files
2422 do
2423 case $ac_site_file in #(
2424 */*) :
2425 ;; #(
2426 *) :
2427 ac_site_file=./$ac_site_file ;;
2428 esac
2429 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2431 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2432 sed 's/^/| /' "$ac_site_file" >&5
2433 . "$ac_site_file" \
2434 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2435 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2436 as_fn_error $? "failed to load site script $ac_site_file
2437 See 'config.log' for more details" "$LINENO" 5; }
2438 fi
2439 done
2440
2441 if test -r "$cache_file"; then
2442 # Some versions of bash will fail to source /dev/null (special files
2443 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2444 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2446 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2447 case $cache_file in
2448 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2449 *) . "./$cache_file";;
2450 esac
2451 fi
2452 else
2453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2454 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2455 >$cache_file
2456 fi
2457
2458 # Test code for whether the C compiler supports C89 (global declarations)
2459 ac_c_conftest_c89_globals='
2460 /* Does the compiler advertise C89 conformance?
2461 Do not test the value of __STDC__, because some compilers set it to 0
2462 while being otherwise adequately conformant. */
2463 #if !defined __STDC__
2464 # error "Compiler does not advertise C89 conformance"
2465 #endif
2466
2467 #include <stddef.h>
2468 #include <stdarg.h>
2469 struct stat;
2470 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2471 struct buf { int x; };
2472 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2473 static char *e (char **p, int i)
2474 {
2475 return p[i];
2476 }
2477 static char *f (char * (*g) (char **, int), char **p, ...)
2478 {
2479 char *s;
2480 va_list v;
2481 va_start (v,p);
2482 s = g (p, va_arg (v,int));
2483 va_end (v);
2484 return s;
2485 }
2486
2487 /* C89 style stringification. */
2488 #define noexpand_stringify(a) #a
2489 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2490
2491 /* C89 style token pasting. Exercises some of the corner cases that
2492 e.g. old MSVC gets wrong, but not very hard. */
2493 #define noexpand_concat(a,b) a##b
2494 #define expand_concat(a,b) noexpand_concat(a,b)
2495 extern int vA;
2496 extern int vbee;
2497 #define aye A
2498 #define bee B
2499 int *pvA = &expand_concat(v,aye);
2500 int *pvbee = &noexpand_concat(v,bee);
2501
2502 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2503 function prototypes and stuff, but not \xHH hex character constants.
2504 These do not provoke an error unfortunately, instead are silently treated
2505 as an "x". The following induces an error, until -std is added to get
2506 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2507 array size at least. It is necessary to write \x00 == 0 to get something
2508 that is true only with -std. */
2509 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2510
2511 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2512 inside strings and character constants. */
2513 #define FOO(x) '\''x'\''
2514 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2515
2516 int test (int i, double x);
2517 struct s1 {int (*f) (int a);};
2518 struct s2 {int (*f) (double a);};
2519 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2520 int, int);'
2521
2522 # Test code for whether the C compiler supports C89 (body of main).
2523 ac_c_conftest_c89_main='
2524 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2525 '
2526
2527 # Test code for whether the C compiler supports C99 (global declarations)
2528 ac_c_conftest_c99_globals='
2529 /* Does the compiler advertise C99 conformance? */
2530 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2531 # error "Compiler does not advertise C99 conformance"
2532 #endif
2533
2534 // See if C++-style comments work.
2535
2536 #include <stdbool.h>
2537 extern int puts (const char *);
2538 extern int printf (const char *, ...);
2539 extern int dprintf (int, const char *, ...);
2540 extern void *malloc (size_t);
2541 extern void free (void *);
2542
2543 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2544 // dprintf is used instead of fprintf to avoid needing to declare
2545 // FILE and stderr.
2546 #define debug(...) dprintf (2, __VA_ARGS__)
2547 #define showlist(...) puts (#__VA_ARGS__)
2548 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2549 static void
2550 test_varargs_macros (void)
2551 {
2552 int x = 1234;
2553 int y = 5678;
2554 debug ("Flag");
2555 debug ("X = %d\n", x);
2556 showlist (The first, second, and third items.);
2557 report (x>y, "x is %d but y is %d", x, y);
2558 }
2559
2560 // Check long long types.
2561 #define BIG64 18446744073709551615ull
2562 #define BIG32 4294967295ul
2563 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2564 #if !BIG_OK
2565 #error "your preprocessor is broken"
2566 #endif
2567 #if BIG_OK
2568 #else
2569 #error "your preprocessor is broken"
2570 #endif
2571 static long long int bignum = -9223372036854775807LL;
2572 static unsigned long long int ubignum = BIG64;
2573
2574 struct incomplete_array
2575 {
2576 int datasize;
2577 double data[];
2578 };
2579
2580 struct named_init {
2581 int number;
2582 const wchar_t *name;
2583 double average;
2584 };
2585
2586 typedef const char *ccp;
2587
2588 static inline int
2589 test_restrict (ccp restrict text)
2590 {
2591 // Iterate through items via the restricted pointer.
2592 // Also check for declarations in for loops.
2593 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2594 continue;
2595 return 0;
2596 }
2597
2598 // Check varargs and va_copy.
2599 static bool
2600 test_varargs (const char *format, ...)
2601 {
2602 va_list args;
2603 va_start (args, format);
2604 va_list args_copy;
2605 va_copy (args_copy, args);
2606
2607 const char *str = "";
2608 int number = 0;
2609 float fnumber = 0;
2610
2611 while (*format)
2612 {
2613 switch (*format++)
2614 {
2615 case '\''s'\'': // string
2616 str = va_arg (args_copy, const char *);
2617 break;
2618 case '\''d'\'': // int
2619 number = va_arg (args_copy, int);
2620 break;
2621 case '\''f'\'': // float
2622 fnumber = va_arg (args_copy, double);
2623 break;
2624 default:
2625 break;
2626 }
2627 }
2628 va_end (args_copy);
2629 va_end (args);
2630
2631 return *str && number && fnumber;
2632 }
2633 '
2634
2635 # Test code for whether the C compiler supports C99 (body of main).
2636 ac_c_conftest_c99_main='
2637 // Check bool.
2638 _Bool success = false;
2639 success |= (argc != 0);
2640
2641 // Check restrict.
2642 if (test_restrict ("String literal") == 0)
2643 success = true;
2644 char *restrict newvar = "Another string";
2645
2646 // Check varargs.
2647 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2648 test_varargs_macros ();
2649
2650 // Check flexible array members.
2651 struct incomplete_array *ia =
2652 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2653 ia->datasize = 10;
2654 for (int i = 0; i < ia->datasize; ++i)
2655 ia->data[i] = i * 1.234;
2656 // Work around memory leak warnings.
2657 free (ia);
2658
2659 // Check named initializers.
2660 struct named_init ni = {
2661 .number = 34,
2662 .name = L"Test wide string",
2663 .average = 543.34343,
2664 };
2665
2666 ni.number = 58;
2667
2668 int dynamic_array[ni.number];
2669 dynamic_array[0] = argv[0][0];
2670 dynamic_array[ni.number - 1] = 543;
2671
2672 // work around unused variable warnings
2673 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2674 || dynamic_array[ni.number - 1] != 543);
2675 '
2676
2677 # Test code for whether the C compiler supports C11 (global declarations)
2678 ac_c_conftest_c11_globals='
2679 /* Does the compiler advertise C11 conformance? */
2680 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2681 # error "Compiler does not advertise C11 conformance"
2682 #endif
2683
2684 // Check _Alignas.
2685 char _Alignas (double) aligned_as_double;
2686 char _Alignas (0) no_special_alignment;
2687 extern char aligned_as_int;
2688 char _Alignas (0) _Alignas (int) aligned_as_int;
2689
2690 // Check _Alignof.
2691 enum
2692 {
2693 int_alignment = _Alignof (int),
2694 int_array_alignment = _Alignof (int[100]),
2695 char_alignment = _Alignof (char)
2696 };
2697 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2698
2699 // Check _Noreturn.
2700 int _Noreturn does_not_return (void) { for (;;) continue; }
2701
2702 // Check _Static_assert.
2703 struct test_static_assert
2704 {
2705 int x;
2706 _Static_assert (sizeof (int) <= sizeof (long int),
2707 "_Static_assert does not work in struct");
2708 long int y;
2709 };
2710
2711 // Check UTF-8 literals.
2712 #define u8 syntax error!
2713 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2714
2715 // Check duplicate typedefs.
2716 typedef long *long_ptr;
2717 typedef long int *long_ptr;
2718 typedef long_ptr long_ptr;
2719
2720 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2721 struct anonymous
2722 {
2723 union {
2724 struct { int i; int j; };
2725 struct { int k; long int l; } w;
2726 };
2727 int m;
2728 } v1;
2729 '
2730
2731 # Test code for whether the C compiler supports C11 (body of main).
2732 ac_c_conftest_c11_main='
2733 _Static_assert ((offsetof (struct anonymous, i)
2734 == offsetof (struct anonymous, w.k)),
2735 "Anonymous union alignment botch");
2736 v1.i = 2;
2737 v1.w.k = 5;
2738 ok |= v1.i != 5;
2739 '
2740
2741 # Test code for whether the C compiler supports C11 (complete).
2742 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2743 ${ac_c_conftest_c99_globals}
2744 ${ac_c_conftest_c11_globals}
2745
2746 int
2747 main (int argc, char **argv)
2748 {
2749 int ok = 0;
2750 ${ac_c_conftest_c89_main}
2751 ${ac_c_conftest_c99_main}
2752 ${ac_c_conftest_c11_main}
2753 return ok;
2754 }
2755 "
2756
2757 # Test code for whether the C compiler supports C99 (complete).
2758 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2759 ${ac_c_conftest_c99_globals}
2760
2761 int
2762 main (int argc, char **argv)
2763 {
2764 int ok = 0;
2765 ${ac_c_conftest_c89_main}
2766 ${ac_c_conftest_c99_main}
2767 return ok;
2768 }
2769 "
2770
2771 # Test code for whether the C compiler supports C89 (complete).
2772 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2773
2774 int
2775 main (int argc, char **argv)
2776 {
2777 int ok = 0;
2778 ${ac_c_conftest_c89_main}
2779 return ok;
2780 }
2781 "
2782
2783 # Test code for whether the C++ compiler supports C++98 (global declarations)
2784 ac_cxx_conftest_cxx98_globals='
2785 // Does the compiler advertise C++98 conformance?
2786 #if !defined __cplusplus || __cplusplus < 199711L
2787 # error "Compiler does not advertise C++98 conformance"
2788 #endif
2789
2790 // These inclusions are to reject old compilers that
2791 // lack the unsuffixed header files.
2792 #include <cstdlib>
2793 #include <exception>
2794
2795 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2796 extern void assert (int);
2797 namespace std {
2798 extern int strcmp (const char *, const char *);
2799 }
2800
2801 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2802 using std::exception;
2803 using std::strcmp;
2804
2805 namespace {
2806
2807 void test_exception_syntax()
2808 {
2809 try {
2810 throw "test";
2811 } catch (const char *s) {
2812 // Extra parentheses suppress a warning when building autoconf itself,
2813 // due to lint rules shared with more typical C programs.
2814 assert (!(strcmp) (s, "test"));
2815 }
2816 }
2817
2818 template <typename T> struct test_template
2819 {
2820 T const val;
2821 explicit test_template(T t) : val(t) {}
2822 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2823 };
2824
2825 } // anonymous namespace
2826 '
2827
2828 # Test code for whether the C++ compiler supports C++98 (body of main)
2829 ac_cxx_conftest_cxx98_main='
2830 assert (argc);
2831 assert (! argv[0]);
2832 {
2833 test_exception_syntax ();
2834 test_template<double> tt (2.0);
2835 assert (tt.add (4) == 6.0);
2836 assert (true && !false);
2837 }
2838 '
2839
2840 # Test code for whether the C++ compiler supports C++11 (global declarations)
2841 ac_cxx_conftest_cxx11_globals='
2842 // Does the compiler advertise C++ 2011 conformance?
2843 #if !defined __cplusplus || __cplusplus < 201103L
2844 # error "Compiler does not advertise C++11 conformance"
2845 #endif
2846
2847 namespace cxx11test
2848 {
2849 constexpr int get_val() { return 20; }
2850
2851 struct testinit
2852 {
2853 int i;
2854 double d;
2855 };
2856
2857 class delegate
2858 {
2859 public:
2860 delegate(int n) : n(n) {}
2861 delegate(): delegate(2354) {}
2862
2863 virtual int getval() { return this->n; };
2864 protected:
2865 int n;
2866 };
2867
2868 class overridden : public delegate
2869 {
2870 public:
2871 overridden(int n): delegate(n) {}
2872 virtual int getval() override final { return this->n * 2; }
2873 };
2874
2875 class nocopy
2876 {
2877 public:
2878 nocopy(int i): i(i) {}
2879 nocopy() = default;
2880 nocopy(const nocopy&) = delete;
2881 nocopy & operator=(const nocopy&) = delete;
2882 private:
2883 int i;
2884 };
2885
2886 // for testing lambda expressions
2887 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2888 {
2889 return f(v);
2890 }
2891
2892 // for testing variadic templates and trailing return types
2893 template <typename V> auto sum(V first) -> V
2894 {
2895 return first;
2896 }
2897 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2898 {
2899 return first + sum(rest...);
2900 }
2901 }
2902 '
2903
2904 # Test code for whether the C++ compiler supports C++11 (body of main)
2905 ac_cxx_conftest_cxx11_main='
2906 {
2907 // Test auto and decltype
2908 auto a1 = 6538;
2909 auto a2 = 48573953.4;
2910 auto a3 = "String literal";
2911
2912 int total = 0;
2913 for (auto i = a3; *i; ++i) { total += *i; }
2914
2915 decltype(a2) a4 = 34895.034;
2916 }
2917 {
2918 // Test constexpr
2919 short sa[cxx11test::get_val()] = { 0 };
2920 }
2921 {
2922 // Test initializer lists
2923 cxx11test::testinit il = { 4323, 435234.23544 };
2924 }
2925 {
2926 // Test range-based for
2927 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2928 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2929 for (auto &x : array) { x += 23; }
2930 }
2931 {
2932 // Test lambda expressions
2933 using cxx11test::eval;
2934 assert (eval ([](int x) { return x*2; }, 21) == 42);
2935 double d = 2.0;
2936 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2937 assert (d == 5.0);
2938 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2939 assert (d == 5.0);
2940 }
2941 {
2942 // Test use of variadic templates
2943 using cxx11test::sum;
2944 auto a = sum(1);
2945 auto b = sum(1, 2);
2946 auto c = sum(1.0, 2.0, 3.0);
2947 }
2948 {
2949 // Test constructor delegation
2950 cxx11test::delegate d1;
2951 cxx11test::delegate d2();
2952 cxx11test::delegate d3(45);
2953 }
2954 {
2955 // Test override and final
2956 cxx11test::overridden o1(55464);
2957 }
2958 {
2959 // Test nullptr
2960 char *c = nullptr;
2961 }
2962 {
2963 // Test template brackets
2964 test_template<::test_template<int>> v(test_template<int>(12));
2965 }
2966 {
2967 // Unicode literals
2968 char const *utf8 = u8"UTF-8 string \u2500";
2969 char16_t const *utf16 = u"UTF-8 string \u2500";
2970 char32_t const *utf32 = U"UTF-32 string \u2500";
2971 }
2972 '
2973
2974 # Test code for whether the C compiler supports C++11 (complete).
2975 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2976 ${ac_cxx_conftest_cxx11_globals}
2977
2978 int
2979 main (int argc, char **argv)
2980 {
2981 int ok = 0;
2982 ${ac_cxx_conftest_cxx98_main}
2983 ${ac_cxx_conftest_cxx11_main}
2984 return ok;
2985 }
2986 "
2987
2988 # Test code for whether the C compiler supports C++98 (complete).
2989 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2990 int
2991 main (int argc, char **argv)
2992 {
2993 int ok = 0;
2994 ${ac_cxx_conftest_cxx98_main}
2995 return ok;
2996 }
2997 "
2998
2999 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3000 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3001 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3002 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3003 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3004 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3005 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3006 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3007 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3008
3009 # Auxiliary files required by this configure script.
3010 ac_aux_files="install-sh config.guess config.sub"
3011
3012 # Locations in which to look for auxiliary files.
3013 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3014
3015 # Search for a directory containing all of the required auxiliary files,
3016 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3017 # If we don't find one directory that contains all the files we need,
3018 # we report the set of missing files from the *first* directory in
3019 # $ac_aux_dir_candidates and give up.
3020 ac_missing_aux_files=""
3021 ac_first_candidate=:
3022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 as_found=false
3025 for as_dir in $ac_aux_dir_candidates
3026 do
3027 IFS=$as_save_IFS
3028 case $as_dir in #(((
3029 '') as_dir=./ ;;
3030 */) ;;
3031 *) as_dir=$as_dir/ ;;
3032 esac
3033 as_found=:
3034
3035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3036 ac_aux_dir_found=yes
3037 ac_install_sh=
3038 for ac_aux in $ac_aux_files
3039 do
3040 # As a special case, if "install-sh" is required, that requirement
3041 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3042 # and $ac_install_sh is set appropriately for whichever one is found.
3043 if test x"$ac_aux" = x"install-sh"
3044 then
3045 if test -f "${as_dir}install-sh"; then
3046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3047 ac_install_sh="${as_dir}install-sh -c"
3048 elif test -f "${as_dir}install.sh"; then
3049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3050 ac_install_sh="${as_dir}install.sh -c"
3051 elif test -f "${as_dir}shtool"; then
3052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3053 ac_install_sh="${as_dir}shtool install -c"
3054 else
3055 ac_aux_dir_found=no
3056 if $ac_first_candidate; then
3057 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3058 else
3059 break
3060 fi
3061 fi
3062 else
3063 if test -f "${as_dir}${ac_aux}"; then
3064 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3065 else
3066 ac_aux_dir_found=no
3067 if $ac_first_candidate; then
3068 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3069 else
3070 break
3071 fi
3072 fi
3073 fi
3074 done
3075 if test "$ac_aux_dir_found" = yes; then
3076 ac_aux_dir="$as_dir"
3077 break
3078 fi
3079 ac_first_candidate=false
3080
3081 as_found=false
3082 done
3083 IFS=$as_save_IFS
3084 if $as_found
3085 then :
3086
3087 else case e in #(
3088 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3089 esac
3090 fi
3091
3092
3093 # These three variables are undocumented and unsupported,
3094 # and are intended to be withdrawn in a future Autoconf release.
3095 # They can cause serious problems if a builder's source tree is in a directory
3096 # whose full name contains unusual characters.
3097 if test -f "${ac_aux_dir}config.guess"; then
3098 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3099 fi
3100 if test -f "${ac_aux_dir}config.sub"; then
3101 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3102 fi
3103 if test -f "$ac_aux_dir/configure"; then
3104 ac_configure="$SHELL ${ac_aux_dir}configure"
3105 fi
3106
3107 # Check that the precious variables saved in the cache have kept the same
3108 # value.
3109 ac_cache_corrupted=false
3110 for ac_var in $ac_precious_vars; do
3111 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3112 eval ac_new_set=\$ac_env_${ac_var}_set
3113 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3114 eval ac_new_val=\$ac_env_${ac_var}_value
3115 case $ac_old_set,$ac_new_set in
3116 set,)
3117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3118 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3119 ac_cache_corrupted=: ;;
3120 ,set)
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3122 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3123 ac_cache_corrupted=: ;;
3124 ,);;
3125 *)
3126 if test "x$ac_old_val" != "x$ac_new_val"; then
3127 # differences in whitespace do not lead to failure.
3128 ac_old_val_w=`echo x $ac_old_val`
3129 ac_new_val_w=`echo x $ac_new_val`
3130 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3132 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3133 ac_cache_corrupted=:
3134 else
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3136 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3137 eval $ac_var=\$ac_old_val
3138 fi
3139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3140 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3142 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3143 fi;;
3144 esac
3145 # Pass precious variables to config.status.
3146 if test "$ac_new_set" = set; then
3147 case $ac_new_val in
3148 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3149 *) ac_arg=$ac_var=$ac_new_val ;;
3150 esac
3151 case " $ac_configure_args " in
3152 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3153 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3154 esac
3155 fi
3156 done
3157 if $ac_cache_corrupted; then
3158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3159 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3161 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3162 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3163 and start over" "$LINENO" 5
3164 fi
3165 ## -------------------- ##
3166 ## Main body of script. ##
3167 ## -------------------- ##
3168
3169 ac_ext=c
3170 ac_cpp='$CPP $CPPFLAGS'
3171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174
3175
3176
3177 # Instruct Python to never write any byte code to the ICU source tree.
3178 PYTHONDONTWRITEBYTECODE=1
3179 export PYTHONDONTWRITEBYTECODE
3180
3181
3182
3183
3184 PACKAGE="icu"
3185
3186
3187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5
3188 printf %s "checking for ICU version numbers... " >&6; }
3189
3190 # Get the ICU version from uversion.h or other headers
3191 geticuversion() {
3192 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
3193 }
3194 getuversion() {
3195 sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
3196 }
3197 VERSION=`geticuversion $srcdir/common/unicode/uvernum.h`
3198 if test x"$VERSION" = x; then
3199 as_fn_error $? "Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5
3200 fi
3201
3202 #TODO: IcuBug:8502
3203 #if test "$VERSION" != "$PACKAGE_VERSION"; then
3204 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf])
3205 #fi
3206
3207 UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h`
3208 if test x"$UNICODE_VERSION" = x; then
3209 as_fn_error $? "Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5
3210 fi
3211 # Compute a reasonable library version from the release version. This is
3212 # very bad, but that's wanted... We want to make sure that the LIB_VERSION
3213 # has at least a dot in it, so we'll add a .0 if needed.
3214 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
3215 LIB_VERSION=$VERSION
3216 LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'`
3217
3218
3219
3220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5
3221 printf "%s\n" "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; }
3222
3223
3224
3225 # Determine the host system
3226
3227
3228
3229 # Make sure we can run config.sub.
3230 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3231 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3232
3233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3234 printf %s "checking build system type... " >&6; }
3235 if test ${ac_cv_build+y}
3236 then :
3237 printf %s "(cached) " >&6
3238 else case e in #(
3239 e) ac_build_alias=$build_alias
3240 test "x$ac_build_alias" = x &&
3241 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3242 test "x$ac_build_alias" = x &&
3243 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3244 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3245 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3246 ;;
3247 esac
3248 fi
3249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3250 printf "%s\n" "$ac_cv_build" >&6; }
3251 case $ac_cv_build in
3252 *-*-*) ;;
3253 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3254 esac
3255 build=$ac_cv_build
3256 ac_save_IFS=$IFS; IFS='-'
3257 set x $ac_cv_build
3258 shift
3259 build_cpu=$1
3260 build_vendor=$2
3261 shift; shift
3262 # Remember, the first character of IFS is used to create $*,
3263 # except with old shells:
3264 build_os=$*
3265 IFS=$ac_save_IFS
3266 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3267
3268
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3270 printf %s "checking host system type... " >&6; }
3271 if test ${ac_cv_host+y}
3272 then :
3273 printf %s "(cached) " >&6
3274 else case e in #(
3275 e) if test "x$host_alias" = x; then
3276 ac_cv_host=$ac_cv_build
3277 else
3278 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3279 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3280 fi
3281 ;;
3282 esac
3283 fi
3284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3285 printf "%s\n" "$ac_cv_host" >&6; }
3286 case $ac_cv_host in
3287 *-*-*) ;;
3288 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3289 esac
3290 host=$ac_cv_host
3291 ac_save_IFS=$IFS; IFS='-'
3292 set x $ac_cv_host
3293 shift
3294 host_cpu=$1
3295 host_vendor=$2
3296 shift; shift
3297 # Remember, the first character of IFS is used to create $*,
3298 # except with old shells:
3299 host_os=$*
3300 IFS=$ac_save_IFS
3301 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3302
3303
3304
3305
3306
3307 # This variable is needed on z/OS because the C++ compiler only recognizes .C
3308 _CXX_CXXSUFFIX=cpp
3309 export _CXX_CXXSUFFIX
3310
3311 # Accumulate #defines
3312
3313 # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only.
3314 # They are only needed for building ICU itself. Example: platform stuff
3315 CONFIG_CPPFLAGS=""
3316 # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time,
3317 # and also a notice is output that they need to be set
3318 # for end-users of ICU also. uconfig.h.prepend is generated
3319 # with, for example, "#define U_DISABLE_RENAMING 1"
3320 # Example: ICU configuration stuff
3321 UCONFIG_CPPFLAGS=""
3322 # UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users
3323 # such as -std
3324 UCONFIG_CFLAGS=""
3325
3326 # Check whether to install icu-config
3327 # Check whether --enable-icu-config was given.
3328 if test ${enable_icu_config+y}
3329 then :
3330 enableval=$enable_icu_config; case "${enableval}" in
3331 yes) enable_icu_config=true ;;
3332 no) enable_icu_config=false ;;
3333 *) as_fn_error $? "bad value '${enableval}' for --enable-icu-config" "$LINENO" 5 ;;
3334 esac
3335 else case e in #(
3336 e) enable_icu_config=true ;;
3337 esac
3338 fi
3339
3340 INSTALL_ICU_CONFIG=$enable_icu_config
3341
3342
3343 # Check whether to build debug libraries
3344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5
3345 printf %s "checking whether to build debug libraries... " >&6; }
3346 enabled=no
3347 ENABLE_DEBUG=0
3348 # Check whether --enable-debug was given.
3349 if test ${enable_debug+y}
3350 then :
3351 enableval=$enable_debug; case "${enableval}" in
3352 yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
3353 *) ;;
3354 esac
3355 fi
3356
3357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
3358 printf "%s\n" "$enabled" >&6; }
3359
3360
3361 # Check whether to build release libraries
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5
3363 printf %s "checking whether to build release libraries... " >&6; }
3364 enabled=yes
3365 ENABLE_RELEASE=1
3366 # Check whether --enable-release was given.
3367 if test ${enable_release+y}
3368 then :
3369 enableval=$enable_release; case "${enableval}" in
3370 no) enabled=no; ENABLE_RELEASE=0 ;;
3371 *) ;;
3372 esac
3373 fi
3374
3375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
3376 printf "%s\n" "$enabled" >&6; }
3377
3378
3379 # Don't use the default C/CXXFLags
3380 : ${CFLAGS=""}
3381 : ${CXXFLAGS=""}
3382
3383 # Checks for compilers
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393 ac_ext=c
3394 ac_cpp='$CPP $CPPFLAGS'
3395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 if test -n "$ac_tool_prefix"; then
3399 for ac_prog in cc clang gcc c99 c89 xlc_r xlc cl.exe icc
3400 do
3401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404 printf %s "checking for $ac_word... " >&6; }
3405 if test ${ac_cv_prog_CC+y}
3406 then :
3407 printf %s "(cached) " >&6
3408 else case e in #(
3409 e) if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3414 do
3415 IFS=$as_save_IFS
3416 case $as_dir in #(((
3417 '') as_dir=./ ;;
3418 */) ;;
3419 *) as_dir=$as_dir/ ;;
3420 esac
3421 for ac_exec_ext in '' $ac_executable_extensions; do
3422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3425 break 2
3426 fi
3427 done
3428 done
3429 IFS=$as_save_IFS
3430
3431 fi ;;
3432 esac
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 printf "%s\n" "$CC" >&6; }
3438 else
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 printf "%s\n" "no" >&6; }
3441 fi
3442
3443
3444 test -n "$CC" && break
3445 done
3446 fi
3447 if test -z "$CC"; then
3448 ac_ct_CC=$CC
3449 for ac_prog in cc clang gcc c99 c89 xlc_r xlc cl.exe icc
3450 do
3451 # Extract the first word of "$ac_prog", so it can be a program name with args.
3452 set dummy $ac_prog; ac_word=$2
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3454 printf %s "checking for $ac_word... " >&6; }
3455 if test ${ac_cv_prog_ac_ct_CC+y}
3456 then :
3457 printf %s "(cached) " >&6
3458 else case e in #(
3459 e) if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 case $as_dir in #(((
3467 '') as_dir=./ ;;
3468 */) ;;
3469 *) as_dir=$as_dir/ ;;
3470 esac
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3473 ac_cv_prog_ac_ct_CC="$ac_prog"
3474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3475 break 2
3476 fi
3477 done
3478 done
3479 IFS=$as_save_IFS
3480
3481 fi ;;
3482 esac
3483 fi
3484 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3485 if test -n "$ac_ct_CC"; then
3486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3487 printf "%s\n" "$ac_ct_CC" >&6; }
3488 else
3489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 printf "%s\n" "no" >&6; }
3491 fi
3492
3493
3494 test -n "$ac_ct_CC" && break
3495 done
3496
3497 if test "x$ac_ct_CC" = x; then
3498 CC=""
3499 else
3500 case $cross_compiling:$ac_tool_warned in
3501 yes:)
3502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3503 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3504 ac_tool_warned=yes ;;
3505 esac
3506 CC=$ac_ct_CC
3507 fi
3508 fi
3509
3510
3511 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3512 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3513 as_fn_error $? "no acceptable C compiler found in \$PATH
3514 See 'config.log' for more details" "$LINENO" 5; }
3515
3516 # Provide some information about the compiler.
3517 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3518 set X $ac_compile
3519 ac_compiler=$2
3520 for ac_option in --version -v -V -qversion -version; do
3521 { { ac_try="$ac_compiler $ac_option >&5"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3527 printf "%s\n" "$ac_try_echo"; } >&5
3528 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3529 ac_status=$?
3530 if test -s conftest.err; then
3531 sed '10a\
3532 ... rest of stderr output deleted ...
3533 10q' conftest.err >conftest.er1
3534 cat conftest.er1 >&5
3535 fi
3536 rm -f conftest.er1 conftest.err
3537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3538 test $ac_status = 0; }
3539 done
3540
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3543
3544 int
3545 main (void)
3546 {
3547
3548 ;
3549 return 0;
3550 }
3551 _ACEOF
3552 ac_clean_files_save=$ac_clean_files
3553 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3554 # Try to create an executable without -o first, disregard a.out.
3555 # It will help us diagnose broken compilers, and finding out an intuition
3556 # of exeext.
3557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3558 printf %s "checking whether the C compiler works... " >&6; }
3559 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3560
3561 # The possible output files:
3562 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3563
3564 ac_rmfiles=
3565 for ac_file in $ac_files
3566 do
3567 case $ac_file in
3568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3569 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3570 esac
3571 done
3572 rm -f $ac_rmfiles
3573
3574 if { { ac_try="$ac_link_default"
3575 case "(($ac_try" in
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3578 esac
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 printf "%s\n" "$ac_try_echo"; } >&5
3581 (eval "$ac_link_default") 2>&5
3582 ac_status=$?
3583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }
3585 then :
3586 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3587 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3588 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3589 # so that the user can short-circuit this test for compilers unknown to
3590 # Autoconf.
3591 for ac_file in $ac_files ''
3592 do
3593 test -f "$ac_file" || continue
3594 case $ac_file in
3595 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3596 ;;
3597 [ab].out )
3598 # We found the default executable, but exeext='' is most
3599 # certainly right.
3600 break;;
3601 *.* )
3602 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3603 then :; else
3604 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605 fi
3606 # We set ac_cv_exeext here because the later test for it is not
3607 # safe: cross compilers may not add the suffix if given an '-o'
3608 # argument, so we may need to know it at that point already.
3609 # Even if this section looks crufty: it has the advantage of
3610 # actually working.
3611 break;;
3612 * )
3613 break;;
3614 esac
3615 done
3616 test "$ac_cv_exeext" = no && ac_cv_exeext=
3617
3618 else case e in #(
3619 e) ac_file='' ;;
3620 esac
3621 fi
3622 if test -z "$ac_file"
3623 then :
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 printf "%s\n" "no" >&6; }
3626 printf "%s\n" "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3630 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3631 as_fn_error 77 "C compiler cannot create executables
3632 See 'config.log' for more details" "$LINENO" 5; }
3633 else case e in #(
3634 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3635 printf "%s\n" "yes" >&6; } ;;
3636 esac
3637 fi
3638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3639 printf %s "checking for C compiler default output file name... " >&6; }
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3641 printf "%s\n" "$ac_file" >&6; }
3642 ac_exeext=$ac_cv_exeext
3643
3644 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3645 ac_clean_files=$ac_clean_files_save
3646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3647 printf %s "checking for suffix of executables... " >&6; }
3648 if { { ac_try="$ac_link"
3649 case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3652 esac
3653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3654 printf "%s\n" "$ac_try_echo"; } >&5
3655 (eval "$ac_link") 2>&5
3656 ac_status=$?
3657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3658 test $ac_status = 0; }
3659 then :
3660 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3661 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3662 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3663 # 'rm'.
3664 for ac_file in conftest.exe conftest conftest.*; do
3665 test -f "$ac_file" || continue
3666 case $ac_file in
3667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3668 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3669 break;;
3670 * ) break;;
3671 esac
3672 done
3673 else case e in #(
3674 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3675 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3676 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3677 See 'config.log' for more details" "$LINENO" 5; } ;;
3678 esac
3679 fi
3680 rm -f conftest conftest$ac_cv_exeext
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3682 printf "%s\n" "$ac_cv_exeext" >&6; }
3683
3684 rm -f conftest.$ac_ext
3685 EXEEXT=$ac_cv_exeext
3686 ac_exeext=$EXEEXT
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689 #include <stdio.h>
3690 int
3691 main (void)
3692 {
3693 FILE *f = fopen ("conftest.out", "w");
3694 if (!f)
3695 return 1;
3696 return ferror (f) || fclose (f) != 0;
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 ac_clean_files="$ac_clean_files conftest.out"
3703 # Check that the compiler produces executables we can run. If not, either
3704 # the compiler is broken, or we cross compile.
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3706 printf %s "checking whether we are cross compiling... " >&6; }
3707 if test "$cross_compiling" != yes; then
3708 { { ac_try="$ac_link"
3709 case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 printf "%s\n" "$ac_try_echo"; } >&5
3715 (eval "$ac_link") 2>&5
3716 ac_status=$?
3717 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }
3719 if { ac_try='./conftest$ac_cv_exeext'
3720 { { case "(($ac_try" in
3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722 *) ac_try_echo=$ac_try;;
3723 esac
3724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725 printf "%s\n" "$ac_try_echo"; } >&5
3726 (eval "$ac_try") 2>&5
3727 ac_status=$?
3728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729 test $ac_status = 0; }; }; then
3730 cross_compiling=no
3731 else
3732 if test "$cross_compiling" = maybe; then
3733 cross_compiling=yes
3734 else
3735 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3736 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3737 as_fn_error 77 "cannot run C compiled programs.
3738 If you meant to cross compile, use '--host'.
3739 See 'config.log' for more details" "$LINENO" 5; }
3740 fi
3741 fi
3742 fi
3743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3744 printf "%s\n" "$cross_compiling" >&6; }
3745
3746 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3747 conftest.o conftest.obj conftest.out
3748 ac_clean_files=$ac_clean_files_save
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3750 printf %s "checking for suffix of object files... " >&6; }
3751 if test ${ac_cv_objext+y}
3752 then :
3753 printf %s "(cached) " >&6
3754 else case e in #(
3755 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3757
3758 int
3759 main (void)
3760 {
3761
3762 ;
3763 return 0;
3764 }
3765 _ACEOF
3766 rm -f conftest.o conftest.obj
3767 if { { ac_try="$ac_compile"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773 printf "%s\n" "$ac_try_echo"; } >&5
3774 (eval "$ac_compile") 2>&5
3775 ac_status=$?
3776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777 test $ac_status = 0; }
3778 then :
3779 for ac_file in conftest.o conftest.obj conftest.*; do
3780 test -f "$ac_file" || continue;
3781 case $ac_file in
3782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3784 break;;
3785 esac
3786 done
3787 else case e in #(
3788 e) printf "%s\n" "$as_me: failed program was:" >&5
3789 sed 's/^/| /' conftest.$ac_ext >&5
3790
3791 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3792 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3793 as_fn_error $? "cannot compute suffix of object files: cannot compile
3794 See 'config.log' for more details" "$LINENO" 5; } ;;
3795 esac
3796 fi
3797 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3798 esac
3799 fi
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3801 printf "%s\n" "$ac_cv_objext" >&6; }
3802 OBJEXT=$ac_cv_objext
3803 ac_objext=$OBJEXT
3804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3805 printf %s "checking whether the compiler supports GNU C... " >&6; }
3806 if test ${ac_cv_c_compiler_gnu+y}
3807 then :
3808 printf %s "(cached) " >&6
3809 else case e in #(
3810 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 int
3814 main (void)
3815 {
3816 #ifndef __GNUC__
3817 choke me
3818 #endif
3819
3820 ;
3821 return 0;
3822 }
3823 _ACEOF
3824 if ac_fn_c_try_compile "$LINENO"
3825 then :
3826 ac_compiler_gnu=yes
3827 else case e in #(
3828 e) ac_compiler_gnu=no ;;
3829 esac
3830 fi
3831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3832 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3833 ;;
3834 esac
3835 fi
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3837 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3839
3840 if test $ac_compiler_gnu = yes; then
3841 GCC=yes
3842 else
3843 GCC=
3844 fi
3845 ac_test_CFLAGS=${CFLAGS+y}
3846 ac_save_CFLAGS=$CFLAGS
3847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3848 printf %s "checking whether $CC accepts -g... " >&6; }
3849 if test ${ac_cv_prog_cc_g+y}
3850 then :
3851 printf %s "(cached) " >&6
3852 else case e in #(
3853 e) ac_save_c_werror_flag=$ac_c_werror_flag
3854 ac_c_werror_flag=yes
3855 ac_cv_prog_cc_g=no
3856 CFLAGS="-g"
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859
3860 int
3861 main (void)
3862 {
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 if ac_fn_c_try_compile "$LINENO"
3869 then :
3870 ac_cv_prog_cc_g=yes
3871 else case e in #(
3872 e) CFLAGS=""
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3875
3876 int
3877 main (void)
3878 {
3879
3880 ;
3881 return 0;
3882 }
3883 _ACEOF
3884 if ac_fn_c_try_compile "$LINENO"
3885 then :
3886
3887 else case e in #(
3888 e) ac_c_werror_flag=$ac_save_c_werror_flag
3889 CFLAGS="-g"
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892
3893 int
3894 main (void)
3895 {
3896
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"
3902 then :
3903 ac_cv_prog_cc_g=yes
3904 fi
3905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3906 esac
3907 fi
3908 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3909 esac
3910 fi
3911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3912 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3913 esac
3914 fi
3915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3916 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3917 if test $ac_test_CFLAGS; then
3918 CFLAGS=$ac_save_CFLAGS
3919 elif test $ac_cv_prog_cc_g = yes; then
3920 if test "$GCC" = yes; then
3921 CFLAGS="-g -O2"
3922 else
3923 CFLAGS="-g"
3924 fi
3925 else
3926 if test "$GCC" = yes; then
3927 CFLAGS="-O2"
3928 else
3929 CFLAGS=
3930 fi
3931 fi
3932 ac_prog_cc_stdc=no
3933 if test x$ac_prog_cc_stdc = xno
3934 then :
3935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3936 printf %s "checking for $CC option to enable C11 features... " >&6; }
3937 if test ${ac_cv_prog_cc_c11+y}
3938 then :
3939 printf %s "(cached) " >&6
3940 else case e in #(
3941 e) ac_cv_prog_cc_c11=no
3942 ac_save_CC=$CC
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945 $ac_c_conftest_c11_program
3946 _ACEOF
3947 for ac_arg in '' -std=gnu11
3948 do
3949 CC="$ac_save_CC $ac_arg"
3950 if ac_fn_c_try_compile "$LINENO"
3951 then :
3952 ac_cv_prog_cc_c11=$ac_arg
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext conftest.beam
3955 test "x$ac_cv_prog_cc_c11" != "xno" && break
3956 done
3957 rm -f conftest.$ac_ext
3958 CC=$ac_save_CC ;;
3959 esac
3960 fi
3961
3962 if test "x$ac_cv_prog_cc_c11" = xno
3963 then :
3964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3965 printf "%s\n" "unsupported" >&6; }
3966 else case e in #(
3967 e) if test "x$ac_cv_prog_cc_c11" = x
3968 then :
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3970 printf "%s\n" "none needed" >&6; }
3971 else case e in #(
3972 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3973 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3974 CC="$CC $ac_cv_prog_cc_c11" ;;
3975 esac
3976 fi
3977 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3978 ac_prog_cc_stdc=c11 ;;
3979 esac
3980 fi
3981 fi
3982 if test x$ac_prog_cc_stdc = xno
3983 then :
3984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3985 printf %s "checking for $CC option to enable C99 features... " >&6; }
3986 if test ${ac_cv_prog_cc_c99+y}
3987 then :
3988 printf %s "(cached) " >&6
3989 else case e in #(
3990 e) ac_cv_prog_cc_c99=no
3991 ac_save_CC=$CC
3992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3993 /* end confdefs.h. */
3994 $ac_c_conftest_c99_program
3995 _ACEOF
3996 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3997 do
3998 CC="$ac_save_CC $ac_arg"
3999 if ac_fn_c_try_compile "$LINENO"
4000 then :
4001 ac_cv_prog_cc_c99=$ac_arg
4002 fi
4003 rm -f core conftest.err conftest.$ac_objext conftest.beam
4004 test "x$ac_cv_prog_cc_c99" != "xno" && break
4005 done
4006 rm -f conftest.$ac_ext
4007 CC=$ac_save_CC ;;
4008 esac
4009 fi
4010
4011 if test "x$ac_cv_prog_cc_c99" = xno
4012 then :
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4014 printf "%s\n" "unsupported" >&6; }
4015 else case e in #(
4016 e) if test "x$ac_cv_prog_cc_c99" = x
4017 then :
4018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4019 printf "%s\n" "none needed" >&6; }
4020 else case e in #(
4021 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4022 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4023 CC="$CC $ac_cv_prog_cc_c99" ;;
4024 esac
4025 fi
4026 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4027 ac_prog_cc_stdc=c99 ;;
4028 esac
4029 fi
4030 fi
4031 if test x$ac_prog_cc_stdc = xno
4032 then :
4033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4034 printf %s "checking for $CC option to enable C89 features... " >&6; }
4035 if test ${ac_cv_prog_cc_c89+y}
4036 then :
4037 printf %s "(cached) " >&6
4038 else case e in #(
4039 e) ac_cv_prog_cc_c89=no
4040 ac_save_CC=$CC
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4043 $ac_c_conftest_c89_program
4044 _ACEOF
4045 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4046 do
4047 CC="$ac_save_CC $ac_arg"
4048 if ac_fn_c_try_compile "$LINENO"
4049 then :
4050 ac_cv_prog_cc_c89=$ac_arg
4051 fi
4052 rm -f core conftest.err conftest.$ac_objext conftest.beam
4053 test "x$ac_cv_prog_cc_c89" != "xno" && break
4054 done
4055 rm -f conftest.$ac_ext
4056 CC=$ac_save_CC ;;
4057 esac
4058 fi
4059
4060 if test "x$ac_cv_prog_cc_c89" = xno
4061 then :
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4063 printf "%s\n" "unsupported" >&6; }
4064 else case e in #(
4065 e) if test "x$ac_cv_prog_cc_c89" = x
4066 then :
4067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4068 printf "%s\n" "none needed" >&6; }
4069 else case e in #(
4070 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4071 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4072 CC="$CC $ac_cv_prog_cc_c89" ;;
4073 esac
4074 fi
4075 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4076 ac_prog_cc_stdc=c89 ;;
4077 esac
4078 fi
4079 fi
4080
4081 ac_ext=c
4082 ac_cpp='$CPP $CPPFLAGS'
4083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4086
4087
4088
4089
4090
4091
4092
4093 ac_ext=cpp
4094 ac_cpp='$CXXCPP $CPPFLAGS'
4095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4098 if test -z "$CXX"; then
4099 if test -n "$CCC"; then
4100 CXX=$CCC
4101 else
4102 if test -n "$ac_tool_prefix"; then
4103 for ac_prog in c++ clang++ g++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
4104 do
4105 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4106 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108 printf %s "checking for $ac_word... " >&6; }
4109 if test ${ac_cv_prog_CXX+y}
4110 then :
4111 printf %s "(cached) " >&6
4112 else case e in #(
4113 e) if test -n "$CXX"; then
4114 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4115 else
4116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4117 for as_dir in $PATH
4118 do
4119 IFS=$as_save_IFS
4120 case $as_dir in #(((
4121 '') as_dir=./ ;;
4122 */) ;;
4123 *) as_dir=$as_dir/ ;;
4124 esac
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4129 break 2
4130 fi
4131 done
4132 done
4133 IFS=$as_save_IFS
4134
4135 fi ;;
4136 esac
4137 fi
4138 CXX=$ac_cv_prog_CXX
4139 if test -n "$CXX"; then
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4141 printf "%s\n" "$CXX" >&6; }
4142 else
4143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 printf "%s\n" "no" >&6; }
4145 fi
4146
4147
4148 test -n "$CXX" && break
4149 done
4150 fi
4151 if test -z "$CXX"; then
4152 ac_ct_CXX=$CXX
4153 for ac_prog in c++ clang++ g++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
4154 do
4155 # Extract the first word of "$ac_prog", so it can be a program name with args.
4156 set dummy $ac_prog; ac_word=$2
4157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158 printf %s "checking for $ac_word... " >&6; }
4159 if test ${ac_cv_prog_ac_ct_CXX+y}
4160 then :
4161 printf %s "(cached) " >&6
4162 else case e in #(
4163 e) if test -n "$ac_ct_CXX"; then
4164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169 IFS=$as_save_IFS
4170 case $as_dir in #(((
4171 '') as_dir=./ ;;
4172 */) ;;
4173 *) as_dir=$as_dir/ ;;
4174 esac
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4177 ac_cv_prog_ac_ct_CXX="$ac_prog"
4178 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4179 break 2
4180 fi
4181 done
4182 done
4183 IFS=$as_save_IFS
4184
4185 fi ;;
4186 esac
4187 fi
4188 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4189 if test -n "$ac_ct_CXX"; then
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4191 printf "%s\n" "$ac_ct_CXX" >&6; }
4192 else
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194 printf "%s\n" "no" >&6; }
4195 fi
4196
4197
4198 test -n "$ac_ct_CXX" && break
4199 done
4200
4201 if test "x$ac_ct_CXX" = x; then
4202 CXX="g++"
4203 else
4204 case $cross_compiling:$ac_tool_warned in
4205 yes:)
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4207 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4208 ac_tool_warned=yes ;;
4209 esac
4210 CXX=$ac_ct_CXX
4211 fi
4212 fi
4213
4214 fi
4215 fi
4216 # Provide some information about the compiler.
4217 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4218 set X $ac_compile
4219 ac_compiler=$2
4220 for ac_option in --version -v -V -qversion; do
4221 { { ac_try="$ac_compiler $ac_option >&5"
4222 case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225 esac
4226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227 printf "%s\n" "$ac_try_echo"; } >&5
4228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4229 ac_status=$?
4230 if test -s conftest.err; then
4231 sed '10a\
4232 ... rest of stderr output deleted ...
4233 10q' conftest.err >conftest.er1
4234 cat conftest.er1 >&5
4235 fi
4236 rm -f conftest.er1 conftest.err
4237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238 test $ac_status = 0; }
4239 done
4240
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4242 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4243 if test ${ac_cv_cxx_compiler_gnu+y}
4244 then :
4245 printf %s "(cached) " >&6
4246 else case e in #(
4247 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4248 /* end confdefs.h. */
4249
4250 int
4251 main (void)
4252 {
4253 #ifndef __GNUC__
4254 choke me
4255 #endif
4256
4257 ;
4258 return 0;
4259 }
4260 _ACEOF
4261 if ac_fn_cxx_try_compile "$LINENO"
4262 then :
4263 ac_compiler_gnu=yes
4264 else case e in #(
4265 e) ac_compiler_gnu=no ;;
4266 esac
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4269 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4270 ;;
4271 esac
4272 fi
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4274 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4275 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4276
4277 if test $ac_compiler_gnu = yes; then
4278 GXX=yes
4279 else
4280 GXX=
4281 fi
4282 ac_test_CXXFLAGS=${CXXFLAGS+y}
4283 ac_save_CXXFLAGS=$CXXFLAGS
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4285 printf %s "checking whether $CXX accepts -g... " >&6; }
4286 if test ${ac_cv_prog_cxx_g+y}
4287 then :
4288 printf %s "(cached) " >&6
4289 else case e in #(
4290 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4291 ac_cxx_werror_flag=yes
4292 ac_cv_prog_cxx_g=no
4293 CXXFLAGS="-g"
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4296
4297 int
4298 main (void)
4299 {
4300
4301 ;
4302 return 0;
4303 }
4304 _ACEOF
4305 if ac_fn_cxx_try_compile "$LINENO"
4306 then :
4307 ac_cv_prog_cxx_g=yes
4308 else case e in #(
4309 e) CXXFLAGS=""
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4312
4313 int
4314 main (void)
4315 {
4316
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 if ac_fn_cxx_try_compile "$LINENO"
4322 then :
4323
4324 else case e in #(
4325 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4326 CXXFLAGS="-g"
4327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4328 /* end confdefs.h. */
4329
4330 int
4331 main (void)
4332 {
4333
4334 ;
4335 return 0;
4336 }
4337 _ACEOF
4338 if ac_fn_cxx_try_compile "$LINENO"
4339 then :
4340 ac_cv_prog_cxx_g=yes
4341 fi
4342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4343 esac
4344 fi
4345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4346 esac
4347 fi
4348 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4349 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
4350 esac
4351 fi
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4353 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4354 if test $ac_test_CXXFLAGS; then
4355 CXXFLAGS=$ac_save_CXXFLAGS
4356 elif test $ac_cv_prog_cxx_g = yes; then
4357 if test "$GXX" = yes; then
4358 CXXFLAGS="-g -O2"
4359 else
4360 CXXFLAGS="-g"
4361 fi
4362 else
4363 if test "$GXX" = yes; then
4364 CXXFLAGS="-O2"
4365 else
4366 CXXFLAGS=
4367 fi
4368 fi
4369 ac_prog_cxx_stdcxx=no
4370 if test x$ac_prog_cxx_stdcxx = xno
4371 then :
4372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4373 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4374 if test ${ac_cv_prog_cxx_cxx11+y}
4375 then :
4376 printf %s "(cached) " >&6
4377 else case e in #(
4378 e) ac_cv_prog_cxx_cxx11=no
4379 ac_save_CXX=$CXX
4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381 /* end confdefs.h. */
4382 $ac_cxx_conftest_cxx11_program
4383 _ACEOF
4384 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4385 do
4386 CXX="$ac_save_CXX $ac_arg"
4387 if ac_fn_cxx_try_compile "$LINENO"
4388 then :
4389 ac_cv_prog_cxx_cxx11=$ac_arg
4390 fi
4391 rm -f core conftest.err conftest.$ac_objext conftest.beam
4392 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4393 done
4394 rm -f conftest.$ac_ext
4395 CXX=$ac_save_CXX ;;
4396 esac
4397 fi
4398
4399 if test "x$ac_cv_prog_cxx_cxx11" = xno
4400 then :
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4402 printf "%s\n" "unsupported" >&6; }
4403 else case e in #(
4404 e) if test "x$ac_cv_prog_cxx_cxx11" = x
4405 then :
4406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4407 printf "%s\n" "none needed" >&6; }
4408 else case e in #(
4409 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4410 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4411 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
4412 esac
4413 fi
4414 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4415 ac_prog_cxx_stdcxx=cxx11 ;;
4416 esac
4417 fi
4418 fi
4419 if test x$ac_prog_cxx_stdcxx = xno
4420 then :
4421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4422 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4423 if test ${ac_cv_prog_cxx_cxx98+y}
4424 then :
4425 printf %s "(cached) " >&6
4426 else case e in #(
4427 e) ac_cv_prog_cxx_cxx98=no
4428 ac_save_CXX=$CXX
4429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h. */
4431 $ac_cxx_conftest_cxx98_program
4432 _ACEOF
4433 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4434 do
4435 CXX="$ac_save_CXX $ac_arg"
4436 if ac_fn_cxx_try_compile "$LINENO"
4437 then :
4438 ac_cv_prog_cxx_cxx98=$ac_arg
4439 fi
4440 rm -f core conftest.err conftest.$ac_objext conftest.beam
4441 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4442 done
4443 rm -f conftest.$ac_ext
4444 CXX=$ac_save_CXX ;;
4445 esac
4446 fi
4447
4448 if test "x$ac_cv_prog_cxx_cxx98" = xno
4449 then :
4450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4451 printf "%s\n" "unsupported" >&6; }
4452 else case e in #(
4453 e) if test "x$ac_cv_prog_cxx_cxx98" = x
4454 then :
4455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4456 printf "%s\n" "none needed" >&6; }
4457 else case e in #(
4458 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4459 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4460 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
4461 esac
4462 fi
4463 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4464 ac_prog_cxx_stdcxx=cxx98 ;;
4465 esac
4466 fi
4467 fi
4468
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4474
4475
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: versions of the compilers used:" >&5
4477 printf "%s\n" "$as_me: versions of the compilers used:" >&6;}
4478 (
4479 set -x
4480 $CC --version
4481 $CXX --version
4482 ) 2>&1 | sed 's/^/ /' >&6
4483
4484 # pkg-config is needed for harfbuzz support
4485
4486
4487
4488
4489
4490
4491
4492 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4493 if test -n "$ac_tool_prefix"; then
4494 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4495 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4497 printf %s "checking for $ac_word... " >&6; }
4498 if test ${ac_cv_path_PKG_CONFIG+y}
4499 then :
4500 printf %s "(cached) " >&6
4501 else case e in #(
4502 e) case $PKG_CONFIG in
4503 [\\/]* | ?:[\\/]*)
4504 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4505 ;;
4506 *)
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 for as_dir in $PATH
4509 do
4510 IFS=$as_save_IFS
4511 case $as_dir in #(((
4512 '') as_dir=./ ;;
4513 */) ;;
4514 *) as_dir=$as_dir/ ;;
4515 esac
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4518 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4519 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4520 break 2
4521 fi
4522 done
4523 done
4524 IFS=$as_save_IFS
4525
4526 ;;
4527 esac ;;
4528 esac
4529 fi
4530 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4531 if test -n "$PKG_CONFIG"; then
4532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4533 printf "%s\n" "$PKG_CONFIG" >&6; }
4534 else
4535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 printf "%s\n" "no" >&6; }
4537 fi
4538
4539
4540 fi
4541 if test -z "$ac_cv_path_PKG_CONFIG"; then
4542 ac_pt_PKG_CONFIG=$PKG_CONFIG
4543 # Extract the first word of "pkg-config", so it can be a program name with args.
4544 set dummy pkg-config; ac_word=$2
4545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 printf %s "checking for $ac_word... " >&6; }
4547 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
4548 then :
4549 printf %s "(cached) " >&6
4550 else case e in #(
4551 e) case $ac_pt_PKG_CONFIG in
4552 [\\/]* | ?:[\\/]*)
4553 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4554 ;;
4555 *)
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559 IFS=$as_save_IFS
4560 case $as_dir in #(((
4561 '') as_dir=./ ;;
4562 */) ;;
4563 *) as_dir=$as_dir/ ;;
4564 esac
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4567 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
4568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571 done
4572 done
4573 IFS=$as_save_IFS
4574
4575 ;;
4576 esac ;;
4577 esac
4578 fi
4579 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4580 if test -n "$ac_pt_PKG_CONFIG"; then
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4582 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
4583 else
4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4585 printf "%s\n" "no" >&6; }
4586 fi
4587
4588 if test "x$ac_pt_PKG_CONFIG" = x; then
4589 PKG_CONFIG=""
4590 else
4591 case $cross_compiling:$ac_tool_warned in
4592 yes:)
4593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4594 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4595 ac_tool_warned=yes ;;
4596 esac
4597 PKG_CONFIG=$ac_pt_PKG_CONFIG
4598 fi
4599 else
4600 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4601 fi
4602
4603 fi
4604 if test -n "$PKG_CONFIG"; then
4605 _pkg_min_version=0.20
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4607 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4608 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4610 printf "%s\n" "yes" >&6; }
4611 else
4612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4613 printf "%s\n" "no" >&6; }
4614 PKG_CONFIG=""
4615 fi
4616 fi
4617
4618 pkg_failed=no
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for icu-le-hb" >&5
4620 printf %s "checking for icu-le-hb... " >&6; }
4621
4622 if test -n "$ICULEHB_CFLAGS"; then
4623 pkg_cv_ICULEHB_CFLAGS="$ICULEHB_CFLAGS"
4624 elif test -n "$PKG_CONFIG"; then
4625 if test -n "$PKG_CONFIG" && \
4626 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5
4627 ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5
4628 ac_status=$?
4629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; then
4631 pkg_cv_ICULEHB_CFLAGS=`$PKG_CONFIG --cflags "icu-le-hb" 2>/dev/null`
4632 test "x$?" != "x0" && pkg_failed=yes
4633 else
4634 pkg_failed=yes
4635 fi
4636 else
4637 pkg_failed=untried
4638 fi
4639 if test -n "$ICULEHB_LIBS"; then
4640 pkg_cv_ICULEHB_LIBS="$ICULEHB_LIBS"
4641 elif test -n "$PKG_CONFIG"; then
4642 if test -n "$PKG_CONFIG" && \
4643 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5
4644 ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5
4645 ac_status=$?
4646 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }; then
4648 pkg_cv_ICULEHB_LIBS=`$PKG_CONFIG --libs "icu-le-hb" 2>/dev/null`
4649 test "x$?" != "x0" && pkg_failed=yes
4650 else
4651 pkg_failed=yes
4652 fi
4653 else
4654 pkg_failed=untried
4655 fi
4656
4657
4658
4659 if test $pkg_failed = yes; then
4660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4661 printf "%s\n" "no" >&6; }
4662
4663 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4664 _pkg_short_errors_supported=yes
4665 else
4666 _pkg_short_errors_supported=no
4667 fi
4668 if test $_pkg_short_errors_supported = yes; then
4669 ICULEHB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-le-hb" 2>&1`
4670 else
4671 ICULEHB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-le-hb" 2>&1`
4672 fi
4673 # Put the nasty error message in config.log where it belongs
4674 echo "$ICULEHB_PKG_ERRORS" >&5
4675
4676 :
4677 elif test $pkg_failed = untried; then
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 printf "%s\n" "no" >&6; }
4680 :
4681 else
4682 ICULEHB_CFLAGS=$pkg_cv_ICULEHB_CFLAGS
4683 ICULEHB_LIBS=$pkg_cv_ICULEHB_LIBS
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4685 printf "%s\n" "yes" >&6; }
4686 have_icu_le_hb=true
4687 fi
4688
4689 # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option
4690 # The release mode use is the default one for autoconf
4691 if test "$GCC" = yes; then
4692 if test "$CFLAGS" = ""; then
4693 if test "$ENABLE_DEBUG" = 1; then
4694 CFLAGS=-g
4695 fi
4696 if test "$ENABLE_RELEASE" = 1; then
4697 CFLAGS="$CFLAGS -O2"
4698 fi
4699 fi
4700 if test "$CXXFLAGS" = ""; then
4701 if test "$ENABLE_DEBUG" = 1; then
4702 CXXFLAGS=-g
4703 fi
4704 if test "$ENABLE_RELEASE" = 1; then
4705 CXXFLAGS="$CXXFLAGS -O2"
4706 fi
4707 fi
4708 # if CFLAGS does not have a "-std=" setting, set it now to -std=c11,
4709 # and check that the compiler still works.
4710 if ! echo "$CFLAGS" | grep '\-std=' >/dev/null 2>&1; then
4711 OLD_CFLAGS="${CFLAGS}"
4712 CFLAGS="$CFLAGS -std=c11"
4713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have a C11 compiler" >&5
4714 printf %s "checking if we have a C11 compiler... " >&6; }
4715
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718
4719 int
4720 main (void)
4721 {
4722
4723 ;
4724 return 0;
4725 }
4726 _ACEOF
4727 if ac_fn_c_try_compile "$LINENO"
4728 then :
4729 c11_okay=yes
4730 else case e in #(
4731 e) c11_okay=no ;;
4732 esac
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $c11_okay" >&5
4736 printf "%s\n" "$c11_okay" >&6; }
4737 if [ $c11_okay = yes ]; then
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Adding CFLAGS option -std=c11" >&5
4739 printf "%s\n" "$as_me: Adding CFLAGS option -std=c11" >&6;}
4740 UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -std=c11"
4741 else
4742 CFLAGS="$OLD_CFLAGS"
4743 fi
4744 fi
4745 fi
4746
4747 ac_ext=c
4748 ac_cpp='$CPP $CPPFLAGS'
4749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4753 printf %s "checking how to run the C preprocessor... " >&6; }
4754 # On Suns, sometimes $CPP names a directory.
4755 if test -n "$CPP" && test -d "$CPP"; then
4756 CPP=
4757 fi
4758 if test -z "$CPP"; then
4759 if test ${ac_cv_prog_CPP+y}
4760 then :
4761 printf %s "(cached) " >&6
4762 else case e in #(
4763 e) # Double quotes because $CC needs to be expanded
4764 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4765 do
4766 ac_preproc_ok=false
4767 for ac_c_preproc_warn_flag in '' yes
4768 do
4769 # Use a header file that comes with gcc, so configuring glibc
4770 # with a fresh cross-compiler works.
4771 # On the NeXT, cc -E runs the code through the compiler's parser,
4772 # not just through cpp. "Syntax error" is here to catch this case.
4773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4774 /* end confdefs.h. */
4775 #include <limits.h>
4776 Syntax error
4777 _ACEOF
4778 if ac_fn_c_try_cpp "$LINENO"
4779 then :
4780
4781 else case e in #(
4782 e) # Broken: fails on valid input.
4783 continue ;;
4784 esac
4785 fi
4786 rm -f conftest.err conftest.i conftest.$ac_ext
4787
4788 # OK, works on sane cases. Now check whether nonexistent headers
4789 # can be detected and how.
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4793 _ACEOF
4794 if ac_fn_c_try_cpp "$LINENO"
4795 then :
4796 # Broken: success on invalid input.
4797 continue
4798 else case e in #(
4799 e) # Passes both tests.
4800 ac_preproc_ok=:
4801 break ;;
4802 esac
4803 fi
4804 rm -f conftest.err conftest.i conftest.$ac_ext
4805
4806 done
4807 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4808 rm -f conftest.i conftest.err conftest.$ac_ext
4809 if $ac_preproc_ok
4810 then :
4811 break
4812 fi
4813
4814 done
4815 ac_cv_prog_CPP=$CPP
4816 ;;
4817 esac
4818 fi
4819 CPP=$ac_cv_prog_CPP
4820 else
4821 ac_cv_prog_CPP=$CPP
4822 fi
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4824 printf "%s\n" "$CPP" >&6; }
4825 ac_preproc_ok=false
4826 for ac_c_preproc_warn_flag in '' yes
4827 do
4828 # Use a header file that comes with gcc, so configuring glibc
4829 # with a fresh cross-compiler works.
4830 # On the NeXT, cc -E runs the code through the compiler's parser,
4831 # not just through cpp. "Syntax error" is here to catch this case.
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 #include <limits.h>
4835 Syntax error
4836 _ACEOF
4837 if ac_fn_c_try_cpp "$LINENO"
4838 then :
4839
4840 else case e in #(
4841 e) # Broken: fails on valid input.
4842 continue ;;
4843 esac
4844 fi
4845 rm -f conftest.err conftest.i conftest.$ac_ext
4846
4847 # OK, works on sane cases. Now check whether nonexistent headers
4848 # can be detected and how.
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4851 #include <ac_nonexistent.h>
4852 _ACEOF
4853 if ac_fn_c_try_cpp "$LINENO"
4854 then :
4855 # Broken: success on invalid input.
4856 continue
4857 else case e in #(
4858 e) # Passes both tests.
4859 ac_preproc_ok=:
4860 break ;;
4861 esac
4862 fi
4863 rm -f conftest.err conftest.i conftest.$ac_ext
4864
4865 done
4866 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4867 rm -f conftest.i conftest.err conftest.$ac_ext
4868 if $ac_preproc_ok
4869 then :
4870
4871 else case e in #(
4872 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4873 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4874 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4875 See 'config.log' for more details" "$LINENO" 5; } ;;
4876 esac
4877 fi
4878
4879 ac_ext=c
4880 ac_cpp='$CPP $CPPFLAGS'
4881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4884
4885
4886
4887 # Find a good install program. We prefer a C program (faster),
4888 # so one script is as good as another. But avoid the broken or
4889 # incompatible versions:
4890 # SysV /etc/install, /usr/sbin/install
4891 # SunOS /usr/etc/install
4892 # IRIX /sbin/install
4893 # AIX /bin/install
4894 # AmigaOS /C/install, which installs bootblocks on floppy discs
4895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4898 # OS/2's system install, which has a completely different semantic
4899 # ./install, which can be erroneously created by make from ./install.sh.
4900 # Reject install programs that cannot install multiple files.
4901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4902 printf %s "checking for a BSD-compatible install... " >&6; }
4903 if test -z "$INSTALL"; then
4904 if test ${ac_cv_path_install+y}
4905 then :
4906 printf %s "(cached) " >&6
4907 else case e in #(
4908 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 for as_dir in $PATH
4910 do
4911 IFS=$as_save_IFS
4912 case $as_dir in #(((
4913 '') as_dir=./ ;;
4914 */) ;;
4915 *) as_dir=$as_dir/ ;;
4916 esac
4917 # Account for fact that we put trailing slashes in our PATH walk.
4918 case $as_dir in #((
4919 ./ | /[cC]/* | \
4920 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4921 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4922 /usr/ucb/* ) ;;
4923 *)
4924 # OSF1 and SCO ODT 3.0 have their own names for install.
4925 # Don't use installbsd from OSF since it installs stuff as root
4926 # by default.
4927 for ac_prog in ginstall scoinst install; do
4928 for ac_exec_ext in '' $ac_executable_extensions; do
4929 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4930 if test $ac_prog = install &&
4931 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4932 # AIX install. It has an incompatible calling convention.
4933 :
4934 elif test $ac_prog = install &&
4935 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4936 # program-specific install script used by HP pwplus--don't use.
4937 :
4938 else
4939 rm -rf conftest.one conftest.two conftest.dir
4940 echo one > conftest.one
4941 echo two > conftest.two
4942 mkdir conftest.dir
4943 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4944 test -s conftest.one && test -s conftest.two &&
4945 test -s conftest.dir/conftest.one &&
4946 test -s conftest.dir/conftest.two
4947 then
4948 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4949 break 3
4950 fi
4951 fi
4952 fi
4953 done
4954 done
4955 ;;
4956 esac
4957
4958 done
4959 IFS=$as_save_IFS
4960
4961 rm -rf conftest.one conftest.two conftest.dir
4962 ;;
4963 esac
4964 fi
4965 if test ${ac_cv_path_install+y}; then
4966 INSTALL=$ac_cv_path_install
4967 else
4968 # As a last resort, use the slow shell script. Don't cache a
4969 # value for INSTALL within a source directory, because that will
4970 # break other packages using the cache if that directory is
4971 # removed, or if the value is a relative name.
4972 INSTALL=$ac_install_sh
4973 fi
4974 fi
4975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4976 printf "%s\n" "$INSTALL" >&6; }
4977
4978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4979 # It thinks the first close brace ends the variable substitution.
4980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4981
4982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4983
4984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4985
4986
4987
4988
4989 # make sure install is relative to srcdir - if a script
4990 if test "$srcdir" = "."; then
4991 # If srcdir isn't just ., then (srcdir) is already prepended.
4992 if test "${ac_install_sh}" = "${INSTALL}"; then
4993 INSTALL="\\\$(top_srcdir)/${ac_install_sh}"
4994 fi
4995 fi
4996
4997 # TODO(ICU-20301): Remove fallback to Python 2.
4998 for ac_prog in python3 "py -3" python "py"
4999 do
5000 # Extract the first word of "$ac_prog", so it can be a program name with args.
5001 set dummy $ac_prog; ac_word=$2
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5003 printf %s "checking for $ac_word... " >&6; }
5004 if test ${ac_cv_prog_PYTHON+y}
5005 then :
5006 printf %s "(cached) " >&6
5007 else case e in #(
5008 e) if test -n "$PYTHON"; then
5009 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014 IFS=$as_save_IFS
5015 case $as_dir in #(((
5016 '') as_dir=./ ;;
5017 */) ;;
5018 *) as_dir=$as_dir/ ;;
5019 esac
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_PYTHON="$ac_prog"
5023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5024 break 2
5025 fi
5026 done
5027 done
5028 IFS=$as_save_IFS
5029
5030 fi ;;
5031 esac
5032 fi
5033 PYTHON=$ac_cv_prog_PYTHON
5034 if test -n "$PYTHON"; then
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5036 printf "%s\n" "$PYTHON" >&6; }
5037 else
5038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 printf "%s\n" "no" >&6; }
5040 fi
5041
5042
5043 test -n "$PYTHON" && break
5044 done
5045
5046
5047
5048 # Check for the platform make
5049 for ac_prog in gmake gnumake
5050 do
5051 # Extract the first word of "$ac_prog", so it can be a program name with args.
5052 set dummy $ac_prog; ac_word=$2
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5054 printf %s "checking for $ac_word... " >&6; }
5055 if test ${ac_cv_path_U_MAKE+y}
5056 then :
5057 printf %s "(cached) " >&6
5058 else case e in #(
5059 e) case $U_MAKE in
5060 [\\/]* | ?:[\\/]*)
5061 ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path.
5062 ;;
5063 *)
5064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065 for as_dir in $PATH
5066 do
5067 IFS=$as_save_IFS
5068 case $as_dir in #(((
5069 '') as_dir=./ ;;
5070 */) ;;
5071 *) as_dir=$as_dir/ ;;
5072 esac
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5075 ac_cv_path_U_MAKE="$as_dir$ac_word$ac_exec_ext"
5076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5077 break 2
5078 fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 ;;
5084 esac ;;
5085 esac
5086 fi
5087 U_MAKE=$ac_cv_path_U_MAKE
5088 if test -n "$U_MAKE"; then
5089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5
5090 printf "%s\n" "$U_MAKE" >&6; }
5091 else
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5093 printf "%s\n" "no" >&6; }
5094 fi
5095
5096
5097 test -n "$U_MAKE" && break
5098 done
5099 test -n "$U_MAKE" || U_MAKE="make"
5100
5101
5102
5103
5104
5105 # Check whether --with-cross-build was given.
5106 if test ${with_cross_build+y}
5107 then :
5108 withval=$with_cross_build; cross_buildroot="${withval}"
5109 else case e in #(
5110 e) cross_buildroot="" ;;
5111 esac
5112 fi
5113
5114
5115 if test "X$cross_buildroot" = "X"; then
5116 if test "$cross_compiling" = "yes"; then
5117 as_fn_error $? "Error! Cross compiling but no --with-cross-build option specified - please supply the path to an executable ICU's build root" "$LINENO" 5
5118 fi
5119 else
5120 if test -f "${cross_buildroot}/config/icucross.mk"; then
5121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5
5122 printf "%s\n" "Using cross buildroot: $cross_buildroot" >&6; }
5123 else
5124 if test -d "${cross_buildroot}"; then
5125 as_fn_error $? "${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5
5126 else
5127 as_fn_error $? "No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5
5128 fi
5129 fi
5130 fi
5131
5132
5133 # Check for doxygen to generate documentation
5134 # Extract the first word of "doxygen", so it can be a program name with args.
5135 set dummy doxygen; ac_word=$2
5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5137 printf %s "checking for $ac_word... " >&6; }
5138 if test ${ac_cv_path_DOXYGEN+y}
5139 then :
5140 printf %s "(cached) " >&6
5141 else case e in #(
5142 e) case $DOXYGEN in
5143 [\\/]* | ?:[\\/]*)
5144 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5145 ;;
5146 *)
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148 as_dummy="$PATH:/usr/local/bin:/usr/bin"
5149 for as_dir in $as_dummy
5150 do
5151 IFS=$as_save_IFS
5152 case $as_dir in #(((
5153 '') as_dir=./ ;;
5154 */) ;;
5155 *) as_dir=$as_dir/ ;;
5156 esac
5157 for ac_exec_ext in '' $ac_executable_extensions; do
5158 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5159 ac_cv_path_DOXYGEN="$as_dir$ac_word$ac_exec_ext"
5160 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5161 break 2
5162 fi
5163 done
5164 done
5165 IFS=$as_save_IFS
5166
5167 ;;
5168 esac ;;
5169 esac
5170 fi
5171 DOXYGEN=$ac_cv_path_DOXYGEN
5172 if test -n "$DOXYGEN"; then
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
5174 printf "%s\n" "$DOXYGEN" >&6; }
5175 else
5176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 printf "%s\n" "no" >&6; }
5178 fi
5179
5180
5181
5182 # Check that the linker is usable
5183
5184 case "${host}" in
5185 *-*-cygwin*|*-*-mingw*)
5186 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
5187 as_fn_error $? "link.exe is not a valid linker. Your PATH is incorrect.
5188 Please follow the directions in ICU's readme." "$LINENO" 5
5189 fi;;
5190 *);;
5191 esac
5192
5193 # Determine the executable suffix
5194 # We don't use AC_EXEEXT because some compilers output separate debugging
5195 # files, which confuses the AC_EXEEXT macro.
5196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5
5197 printf %s "checking checking for executable suffix... " >&6; }
5198 case "${host}" in
5199 *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;;
5200 *) EXEEXT="" ;;
5201 esac
5202 ac_exeext=$EXEEXT
5203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
5204 printf "%s\n" "$EXEEXT" >&6; }
5205
5206
5207 # Determine how strict we want to be when compiling
5208
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5
5210 printf %s "checking whether strict compiling is on... " >&6; }
5211 # Check whether --enable-strict was given.
5212 if test ${enable_strict+y}
5213 then :
5214 enableval=$enable_strict;
5215 if test "$enableval" = no
5216 then
5217 ac_use_strict_options=no
5218 else
5219 ac_use_strict_options=yes
5220 fi
5221
5222 else case e in #(
5223 e) ac_use_strict_options=yes ;;
5224 esac
5225 fi
5226
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5
5228 printf "%s\n" "$ac_use_strict_options" >&6; }
5229
5230 if test "$ac_use_strict_options" = yes
5231 then
5232 if test "$GCC" = yes
5233 then
5234 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
5235 else
5236 case "${host}" in
5237 *-*-cygwin)
5238 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
5239 then
5240 CFLAGS="$CFLAGS /W4"
5241 fi ;;
5242 *-*-mingw*)
5243 CFLAGS="$CFLAGS -W4" ;;
5244 esac
5245 fi
5246 if test "$GXX" = yes
5247 then
5248 CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
5249 else
5250 case "${host}" in
5251 *-*-cygwin)
5252 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
5253 then
5254 CXXFLAGS="$CXXFLAGS /W4"
5255 fi ;;
5256 *-*-mingw*)
5257 CFLAGS="$CFLAGS -W4" ;;
5258 esac
5259 fi
5260 fi
5261
5262
5263 # Check if we can build and use 64-bit libraries
5264 ac_header= ac_cache=
5265 for ac_item in $ac_header_c_list
5266 do
5267 if test $ac_cache; then
5268 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5269 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5270 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5271 fi
5272 ac_header= ac_cache=
5273 elif test $ac_header; then
5274 ac_cache=$ac_item
5275 else
5276 ac_header=$ac_item
5277 fi
5278 done
5279
5280
5281
5282
5283
5284
5285
5286
5287 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5288 then :
5289
5290 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5291
5292 fi
5293
5294 BITS_REQ=nochange
5295 ENABLE_64BIT_LIBS=unknown
5296 ## revisit this for cross-compile.
5297
5298 # Check whether --enable-64bit-libs was given.
5299 if test ${enable_64bit_libs+y}
5300 then :
5301 enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs"
5302 case "${enableval}" in
5303 no|false|32) with_library_bits=32; ;;
5304 yes|true|64) with_library_bits=64else32 ;;
5305 nochange) with_library_bits=nochange; ;;
5306 *) as_fn_error $? "bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;;
5307 esac
5308 fi
5309
5310
5311
5312
5313 # Check whether --with-library-bits was given.
5314 if test ${with_library_bits+y}
5315 then :
5316 withval=$with_library_bits; case "${withval}" in
5317 ""|nochange) BITS_REQ=$withval ;;
5318 32|64|64else32) BITS_REQ=$withval ;;
5319 *) as_fn_error $? "bad value ${withval} for --with-library-bits" "$LINENO" 5 ;;
5320 esac
5321 fi
5322
5323
5324 # don't use these for cross compiling
5325 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
5326 as_fn_error $? "Don't specify bitness when cross compiling. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5
5327 fi
5328 # The cast to long int works around a bug in the HP C Compiler
5329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5330 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
5331 # This bug is HP SR number 8606223364.
5332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
5333 printf %s "checking size of void *... " >&6; }
5334 if test ${ac_cv_sizeof_void_p+y}
5335 then :
5336 printf %s "(cached) " >&6
5337 else case e in #(
5338 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
5339 then :
5340
5341 else case e in #(
5342 e) if test "$ac_cv_type_void_p" = yes; then
5343 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5344 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5345 as_fn_error 77 "cannot compute sizeof (void *)
5346 See 'config.log' for more details" "$LINENO" 5; }
5347 else
5348 ac_cv_sizeof_void_p=0
5349 fi ;;
5350 esac
5351 fi
5352 ;;
5353 esac
5354 fi
5355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
5356 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
5357
5358
5359
5360 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
5361
5362
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5
5364 printf %s "checking whether runnable 64 bit binaries are built by default... " >&6; }
5365 case $ac_cv_sizeof_void_p in
5366 8) DEFAULT_64BIT=yes ;;
5367 4) DEFAULT_64BIT=no ;;
5368 *) DEFAULT_64BIT=unknown
5369 esac
5370 BITS_GOT=unknown
5371
5372 # 'OK' here means, we can exit any further checking, everything's copa
5373 BITS_OK=yes
5374
5375 # do we need to check for buildable/runnable 32 or 64 bit?
5376 BITS_CHECK_32=no
5377 BITS_CHECK_64=no
5378
5379 # later, can we run the 32/64 bit binaries so made?
5380 BITS_RUN_32=no
5381 BITS_RUN_64=no
5382
5383 if test "$DEFAULT_64BIT" = "yes"; then
5384 # we get 64 bits by default.
5385 BITS_GOT=64
5386 case "$BITS_REQ" in
5387 32)
5388 # need to look for 32 bit support.
5389 BITS_CHECK_32=yes
5390 # not copa.
5391 BITS_OK=no;;
5392 # everyone else is happy.
5393 nochange) ;;
5394 *) ;;
5395 esac
5396 elif test "$DEFAULT_64BIT" = "no"; then
5397 # not 64 bit by default.
5398 BITS_GOT=32
5399 case "$BITS_REQ" in
5400 64|64else32)
5401 BITS_CHECK_64=yes
5402 #BITS_CHECK_32=yes
5403 BITS_OK=no;;
5404 nochange) ;;
5405 *) ;;
5406 esac
5407 elif test "$DEFAULT_64BIT" = "unknown"; then
5408 # cross compiling.
5409 BITS_GOT=unknown
5410 case "$BITS_REQ" in
5411 64|64else32) BITS_OK=no
5412 BITS_CHECK_32=yes
5413 BITS_CHECK_64=yes ;;
5414 32) BITS_OK=no;;
5415 nochange) ;;
5416 *) ;;
5417 esac
5418 fi
5419
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5
5421 printf "%s\n" "$DEFAULT_64BIT" >&6; };
5422
5423 if test "$BITS_OK" != "yes"; then
5424 # not copa. back these up.
5425 CFLAGS_OLD="${CFLAGS}"
5426 CXXFLAGS_OLD="${CXXFLAGS}"
5427 LDFLAGS_OLD="${LDFLAGS}"
5428 ARFLAGS_OLD="${ARFLAGS}"
5429
5430 CFLAGS_32="${CFLAGS}"
5431 CXXFLAGS_32="${CXXFLAGS}"
5432 LDFLAGS_32="${LDFLAGS}"
5433 ARFLAGS_32="${ARFLAGS}"
5434
5435 CFLAGS_64="${CFLAGS}"
5436 CXXFLAGS_64="${CXXFLAGS}"
5437 LDFLAGS_64="${LDFLAGS}"
5438 ARFLAGS_64="${ARFLAGS}"
5439
5440 CAN_BUILD_64=unknown
5441 CAN_BUILD_32=unknown
5442 # These results can't be cached because is sets compiler flags.
5443 if test "$BITS_CHECK_64" = "yes"; then
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5
5445 printf %s "checking how to build 64-bit executables... " >&6; }
5446 CAN_BUILD_64=no
5447 ####
5448 # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it.
5449 # Note, we don't have to actually check if the options work- we'll try them before using them.
5450 # So, only try actually testing the options, if you are trying to decide between multiple options.
5451 # On exit from the following clauses:
5452 # if CAN_BUILD_64=yes:
5453 # *FLAGS are assumed to contain the right settings for 64bit
5454 # else if CAN_BUILD_64=no: (default)
5455 # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD
5456
5457 if test "$GCC" = yes; then
5458 CFLAGS="${CFLAGS} -m64"
5459 CXXFLAGS="${CXXFLAGS} -m64"
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5463 _ACEOF
5464 if ac_fn_c_try_compile "$LINENO"
5465 then :
5466 CAN_BUILD_64=yes
5467 else case e in #(
5468 e) CAN_BUILD_64=no ;;
5469 esac
5470 fi
5471 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5472 else
5473 case "${host}" in
5474 sparc*-*-solaris*)
5475 # 1. try -m64
5476 CFLAGS="${CFLAGS} -m64"
5477 CXXFLAGS="${CXXFLAGS} -m64"
5478 if test "$cross_compiling" = yes
5479 then :
5480 CAN_BUILD_64=unknown
5481 else case e in #(
5482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5485 _ACEOF
5486 if ac_fn_c_try_run "$LINENO"
5487 then :
5488 CAN_BUILD_64=yes
5489 else case e in #(
5490 e) CAN_BUILD_64=no ;;
5491 esac
5492 fi
5493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5494 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5495 esac
5496 fi
5497
5498 if test "$CAN_BUILD_64" != yes; then
5499 # Nope. back out changes.
5500 CFLAGS="${CFLAGS_OLD}"
5501 CXXFLAGS="${CXXFLAGS_OLD}"
5502 # 2. try xarch=v9 [deprecated]
5503 ## TODO: cross compile: the following won't work.
5504 SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
5505 SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
5506 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
5507 if test -z "$SOL64" && test -n "$SPARCV9"; then
5508 CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9"
5509 CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9"
5510 LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9"
5511 CAN_BUILD_64=yes
5512 fi
5513 fi
5514 ;;
5515 i386-*-solaris*)
5516 # 1. try -m64
5517 CFLAGS="${CFLAGS} -m64"
5518 CXXFLAGS="${CXXFLAGS} -m64"
5519 if test "$cross_compiling" = yes
5520 then :
5521 CAN_BUILD_64=unknown
5522 else case e in #(
5523 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5526 _ACEOF
5527 if ac_fn_c_try_run "$LINENO"
5528 then :
5529 CAN_BUILD_64=yes
5530 else case e in #(
5531 e) CAN_BUILD_64=no ;;
5532 esac
5533 fi
5534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5535 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5536 esac
5537 fi
5538
5539 if test "$CAN_BUILD_64" != yes; then
5540 # Nope. back out changes.
5541 CFLAGS="${CFLAGS_OLD}"
5542 CXXFLAGS="${CXXFLAGS_OLD}"
5543 # 2. try the older compiler option
5544 ## TODO: cross compile problem
5545 AMD64=`isainfo -n 2>&1 | grep amd64`
5546 SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
5547 if test -z "$SOL64" && test -n "$AMD64"; then
5548 CFLAGS="${CFLAGS} -xtarget=generic64"
5549 CXXFLAGS="${CXXFLAGS} -xtarget=generic64"
5550 CAN_BUILD_64=yes
5551 fi
5552 fi
5553 ;;
5554 ia64-*-linux*)
5555 # check for ecc/ecpc compiler support
5556 ## TODO: cross compiler problem
5557 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
5558 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
5559 CAN_BUILD_64=yes
5560 fi
5561 fi
5562 ;;
5563 *-*-cygwin)
5564 # vcvarsamd64.bat should have been used to enable 64-bit builds.
5565 # We only do this check to display the correct answer.
5566 ## TODO: cross compiler problem
5567 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
5568 CAN_BUILD_64=yes
5569 fi
5570 ;;
5571 *-*-aix*|powerpc64-*-linux*)
5572 CFLAGS="${CFLAGS} -q64"
5573 CXXFLAGS="${CXXFLAGS} -q64"
5574 LDFLAGS="${LDFLAGS} -q64"
5575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5576 /* end confdefs.h. */
5577 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5578 _ACEOF
5579 if ac_fn_c_try_compile "$LINENO"
5580 then :
5581 CAN_BUILD_64=yes
5582 else case e in #(
5583 e) CAN_BUILD_64=no ;;
5584 esac
5585 fi
5586 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5587 if test "$CAN_BUILD_64" = yes; then
5588 # worked- set other options.
5589 case "${host}" in
5590 *-*-aix*)
5591 # tell AIX what executable mode to use.
5592 ARFLAGS="${ARFLAGS} -X64"
5593 esac
5594 fi
5595 ;;
5596 *-*-hpux*)
5597 # First we try the newer +DD64, if that doesn't work,
5598 # try other options.
5599
5600 CFLAGS="${CFLAGS} +DD64"
5601 CXXFLAGS="${CXXFLAGS} +DD64"
5602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5603 /* end confdefs.h. */
5604 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5605 _ACEOF
5606 if ac_fn_c_try_compile "$LINENO"
5607 then :
5608 CAN_BUILD_64=yes
5609 else case e in #(
5610 e) CAN_BUILD_64=no ;;
5611 esac
5612 fi
5613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5614 if test "$CAN_BUILD_64" != yes; then
5615 # reset
5616 CFLAGS="${CFLAGS_OLD}"
5617 CXXFLAGS="${CXXFLAGS_OLD}"
5618 # append
5619 CFLAGS="${CFLAGS} +DA2.0W"
5620 CXXFLAGS="${CXXFLAGS} +DA2.0W"
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622 /* end confdefs.h. */
5623 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5624 _ACEOF
5625 if ac_fn_c_try_compile "$LINENO"
5626 then :
5627 CAN_BUILD_64=yes
5628 else case e in #(
5629 e) CAN_BUILD_64=no ;;
5630 esac
5631 fi
5632 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5633 fi
5634 ;;
5635 *-*ibm-openedition*|*-*-os390*)
5636 CFLAGS="${CFLAGS} -Wc,lp64"
5637 CXXFLAGS="${CXXFLAGS} -Wc,lp64"
5638 LDFLAGS="${LDFLAGS} -Wl,lp64"
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5641 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5642 _ACEOF
5643 if ac_fn_c_try_compile "$LINENO"
5644 then :
5645 CAN_BUILD_64=yes
5646 else case e in #(
5647 e) CAN_BUILD_64=no ;;
5648 esac
5649 fi
5650 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5651 ;;
5652 *)
5653 # unknown platform.
5654 ;;
5655 esac
5656 fi
5657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5
5658 printf "%s\n" "$CAN_BUILD_64" >&6; }
5659 if test "$CAN_BUILD_64" = yes; then
5660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5
5661 printf %s "checking whether runnable 64-bit binaries are being built ... " >&6; }
5662 if test "$cross_compiling" = yes
5663 then :
5664 BITS_RUN_64=unknown
5665 else case e in #(
5666 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5667 /* end confdefs.h. */
5668 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5669 _ACEOF
5670 if ac_fn_c_try_run "$LINENO"
5671 then :
5672 BITS_RUN_64=yes
5673 else case e in #(
5674 e) BITS_RUN_64=no ;;
5675 esac
5676 fi
5677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5678 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5679 esac
5680 fi
5681
5682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5
5683 printf "%s\n" "$BITS_RUN_64" >&6; };
5684
5685 CFLAGS_64="${CFLAGS}"
5686 CXXFLAGS_64="${CXXFLAGS}"
5687 LDFLAGS_64="${LDFLAGS}"
5688 ARFLAGS_64="${ARFLAGS}"
5689 fi
5690 # put it back.
5691 CFLAGS="${CFLAGS_OLD}"
5692 CXXFLAGS="${CXXFLAGS_OLD}"
5693 LDFLAGS="${LDFLAGS_OLD}"
5694 ARFLAGS="${ARFLAGS_OLD}"
5695 fi
5696 if test "$BITS_CHECK_32" = "yes"; then
5697 # see comment under 'if BITS_CHECK_64', above.
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5
5699 printf %s "checking how to build 32-bit executables... " >&6; }
5700 if test "$GCC" = yes; then
5701 CFLAGS="${CFLAGS} -m32"
5702 CXXFLAGS="${CXXFLAGS} -m32"
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704 /* end confdefs.h. */
5705 int main(void) {return (sizeof(void*)*8==32)?0:1;}
5706 _ACEOF
5707 if ac_fn_c_try_compile "$LINENO"
5708 then :
5709 CAN_BUILD_32=yes
5710 else case e in #(
5711 e) CAN_BUILD_32=no ;;
5712 esac
5713 fi
5714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5715 fi
5716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5
5717 printf "%s\n" "$CAN_BUILD_32" >&6; }
5718 if test "$CAN_BUILD_32" = yes; then
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5
5720 printf %s "checking whether runnable 32-bit binaries are being built ... " >&6; }
5721 if test "$cross_compiling" = yes
5722 then :
5723 BITS_RUN_32=unknown
5724 else case e in #(
5725 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5726 /* end confdefs.h. */
5727 int main(void) {return (sizeof(void*)*8==32)?0:1;}
5728 _ACEOF
5729 if ac_fn_c_try_run "$LINENO"
5730 then :
5731 BITS_RUN_32=yes
5732 else case e in #(
5733 e) BITS_RUN_32=no ;;
5734 esac
5735 fi
5736 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5737 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5738 esac
5739 fi
5740
5741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5
5742 printf "%s\n" "$BITS_RUN_32" >&6; };
5743 CFLAGS_32="${CFLAGS}"
5744 CXXFLAGS_32="${CXXFLAGS}"
5745 LDFLAGS_32="${LDFLAGS}"
5746 ARFLAGS_32="${ARFLAGS}"
5747 fi
5748 # put it back.
5749 CFLAGS="${CFLAGS_OLD}"
5750 CXXFLAGS="${CXXFLAGS_OLD}"
5751 LDFLAGS="${LDFLAGS_OLD}"
5752 ARFLAGS="${ARFLAGS_OLD}"
5753 fi
5754
5755 ##
5756 # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do.
5757 #
5758
5759 # First, implement 64else32
5760 if test "$BITS_REQ" = "64else32"; then
5761 if test "$BITS_RUN_64" = "yes"; then
5762 BITS_REQ=64
5763 else
5764 # no changes.
5765 BITS_OK=yes
5766 fi
5767 fi
5768
5769 # implement.
5770 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
5771 CFLAGS="${CFLAGS_32}"
5772 CXXFLAGS="${CXXFLAGS_32}"
5773 LDFLAGS="${LDFLAGS_32}"
5774 ARFLAGS="${ARFLAGS_32}"
5775 BITS_OK=yes
5776 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
5777 CFLAGS="${CFLAGS_64}"
5778 CXXFLAGS="${CXXFLAGS_64}"
5779 LDFLAGS="${LDFLAGS_64}"
5780 ARFLAGS="${ARFLAGS_64}"
5781 BITS_OK=yes
5782 elif test "$BITS_OK" != "yes"; then
5783 as_fn_error $? "Requested $BITS_REQ bit binaries but could not compile and execute them. See readme.html for help with cross compilation., and set compiler options manually." "$LINENO" 5
5784 fi
5785 fi
5786
5787
5788
5789
5790 # Determine the Makefile fragment
5791
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5
5793 printf %s "checking which Makefile fragment to use for ${host}... " >&6; }
5794 if test ${icu_cv_host_frag+y}
5795 then :
5796 printf %s "(cached) " >&6
5797 else case e in #(
5798 e)
5799 case "${host}" in
5800 *-*-solaris*)
5801 if test "$GCC" = yes; then
5802 icu_cv_host_frag=mh-solaris-gcc
5803 else
5804 icu_cv_host_frag=mh-solaris
5805 fi ;;
5806 alpha*-*-linux-gnu)
5807 if test "$GCC" = yes; then
5808 icu_cv_host_frag=mh-alpha-linux-gcc
5809 else
5810 icu_cv_host_frag=mh-alpha-linux-cc
5811 fi ;;
5812 powerpc*-*-linux*)
5813 if test "$GCC" = yes; then
5814 icu_cv_host_frag=mh-linux
5815 else
5816 icu_cv_host_frag=mh-linux-va
5817 fi ;;
5818 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag=mh-linux ;;
5819 i[34567]86-*-cygwin)
5820 if test "$GCC" = yes; then
5821 icu_cv_host_frag=mh-cygwin
5822 else
5823 icu_cv_host_frag=mh-cygwin-msvc
5824 fi ;;
5825 x86_64-*-cygwin)
5826 if test "$GCC" = yes; then
5827 icu_cv_host_frag=mh-cygwin64
5828 else
5829 icu_cv_host_frag=mh-cygwin-msvc
5830 fi ;;
5831 *-*-mingw*)
5832 if test "$GCC" = yes; then
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5835
5836 #ifndef __MINGW64__
5837 #error This is not MinGW64
5838 #endif
5839 int
5840 main (void)
5841 {
5842
5843 ;
5844 return 0;
5845 }
5846 _ACEOF
5847 if ac_fn_c_try_compile "$LINENO"
5848 then :
5849 icu_cv_host_frag=mh-mingw64
5850 else case e in #(
5851 e) icu_cv_host_frag=mh-mingw ;;
5852 esac
5853 fi
5854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5855 else
5856 case "${host}" in
5857 *-*-mingw*) icu_cv_host_frag=mh-msys-msvc ;;
5858 *-*-cygwin) icu_cv_host_frag=mh-cygwin-msvc ;;
5859 esac
5860 fi ;;
5861 *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;;
5862 *-*-aix*)
5863 if test "$GCC" = yes; then
5864 icu_cv_host_frag=mh-aix-gcc
5865 else
5866 icu_cv_host_frag=mh-aix-va
5867 fi ;;
5868 *-*-hpux*)
5869 if test "$GCC" = yes; then
5870 icu_cv_host_frag=mh-hpux-gcc
5871 else
5872 case "$CXX" in
5873 *aCC) icu_cv_host_frag=mh-hpux-acc ;;
5874 esac
5875 fi ;;
5876 *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;;
5877 *-*-os400*) icu_cv_host_frag=mh-os400 ;;
5878 *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;;
5879 powerpc*-apple-darwin*) icu_cv_host_frag=mh-darwin-ppc ;;
5880 *-apple-darwin*) icu_cv_host_frag=mh-darwin ;;
5881 *-*-beos) icu_cv_host_frag=mh-beos ;;
5882 *-*-haiku) icu_cv_host_frag=mh-haiku ;;
5883 *-*-irix*) icu_cv_host_frag=mh-irix ;;
5884 *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
5885 *-*-nto*) icu_cv_host_frag=mh-qnx ;;
5886 *-ncr-*) icu_cv_host_frag=mh-mpras ;;
5887 *) icu_cv_host_frag=mh-unknown ;;
5888 esac
5889
5890 ;;
5891 esac
5892 fi
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5
5894 printf "%s\n" "$icu_cv_host_frag" >&6; }
5895
5896
5897 # Checks for libraries and other host specific stuff
5898 # On HP/UX, don't link to -lm from a shared lib because it isn't
5899 # PIC (at least on 10.2)
5900 case "${host}" in
5901 *-*-hpux*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5902 printf %s "checking for floor in -lm... " >&6; }
5903 if test ${ac_cv_lib_m_floor+y}
5904 then :
5905 printf %s "(cached) " >&6
5906 else case e in #(
5907 e) ac_check_lib_save_LIBS=$LIBS
5908 LIBS="-lm $LIBS"
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5911
5912 /* Override any GCC internal prototype to avoid an error.
5913 Use char because int might match the return type of a GCC
5914 builtin and then its argument prototype would still apply.
5915 The 'extern "C"' is for builds by C++ compilers;
5916 although this is not generally supported in C code supporting it here
5917 has little cost and some practical benefit (sr 110532). */
5918 #ifdef __cplusplus
5919 extern "C"
5920 #endif
5921 char floor (void);
5922 int
5923 main (void)
5924 {
5925 return floor ();
5926 ;
5927 return 0;
5928 }
5929 _ACEOF
5930 if ac_fn_c_try_link "$LINENO"
5931 then :
5932 ac_cv_lib_m_floor=yes
5933 else case e in #(
5934 e) ac_cv_lib_m_floor=no ;;
5935 esac
5936 fi
5937 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5938 conftest$ac_exeext conftest.$ac_ext
5939 LIBS=$ac_check_lib_save_LIBS ;;
5940 esac
5941 fi
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5943 printf "%s\n" "$ac_cv_lib_m_floor" >&6; }
5944 if test "x$ac_cv_lib_m_floor" = xyes
5945 then :
5946 LIB_M="-lm"
5947 fi
5948 ;;
5949
5950 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5951 printf %s "checking for floor in -lm... " >&6; }
5952 if test ${ac_cv_lib_m_floor+y}
5953 then :
5954 printf %s "(cached) " >&6
5955 else case e in #(
5956 e) ac_check_lib_save_LIBS=$LIBS
5957 LIBS="-lm $LIBS"
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960
5961 /* Override any GCC internal prototype to avoid an error.
5962 Use char because int might match the return type of a GCC
5963 builtin and then its argument prototype would still apply.
5964 The 'extern "C"' is for builds by C++ compilers;
5965 although this is not generally supported in C code supporting it here
5966 has little cost and some practical benefit (sr 110532). */
5967 #ifdef __cplusplus
5968 extern "C"
5969 #endif
5970 char floor (void);
5971 int
5972 main (void)
5973 {
5974 return floor ();
5975 ;
5976 return 0;
5977 }
5978 _ACEOF
5979 if ac_fn_c_try_link "$LINENO"
5980 then :
5981 ac_cv_lib_m_floor=yes
5982 else case e in #(
5983 e) ac_cv_lib_m_floor=no ;;
5984 esac
5985 fi
5986 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5987 conftest$ac_exeext conftest.$ac_ext
5988 LIBS=$ac_check_lib_save_LIBS ;;
5989 esac
5990 fi
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5992 printf "%s\n" "$ac_cv_lib_m_floor" >&6; }
5993 if test "x$ac_cv_lib_m_floor" = xyes
5994 then :
5995 printf "%s\n" "#define HAVE_LIBM 1" >>confdefs.h
5996
5997 LIBS="-lm $LIBS"
5998
5999 fi
6000
6001 LIB_M="" ;;
6002 esac
6003
6004
6005 # Check whether to build shared libraries
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
6007 printf %s "checking whether to build shared libraries... " >&6; }
6008 enabled=no
6009 # Check whether --enable-shared was given.
6010 if test ${enable_shared+y}
6011 then :
6012 enableval=$enable_shared; case "${enableval}" in
6013 yes|"") enabled=yes; ENABLE_SHARED=YES ;;
6014 no);;
6015 *) ;;
6016 esac
6017 else case e in #(
6018 e) enabled=yes; ENABLE_SHARED=YES
6019 ;;
6020 esac
6021 fi
6022
6023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
6024 printf "%s\n" "$enabled" >&6; }
6025
6026
6027 # Check whether to build static libraries
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
6029 printf %s "checking whether to build static libraries... " >&6; }
6030 enabled=no
6031 # Check whether --enable-static was given.
6032 if test ${enable_static+y}
6033 then :
6034 enableval=$enable_static; case "${enableval}" in
6035 yes|"") enabled=yes; ENABLE_STATIC=YES ;;
6036 no) ;;
6037 *) ;;
6038 esac
6039 fi
6040
6041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
6042 printf "%s\n" "$enabled" >&6; }
6043
6044
6045 # When building release static library, there might be some optimization flags we can use
6046 if test "$ENABLE_STATIC" = "YES"; then
6047 if test "$ENABLE_SHARED" != "YES"; then
6048 if test "$ENABLE_RELEASE" = 1; then
6049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5
6050 printf %s "checking whether we can use static library optimization option... " >&6; }
6051 CHECK_STATIC_OPT_FLAG=no
6052
6053 OLD_CPPFLAGS="${CPPFLAGS}"
6054 OLD_LDFLAGS="${LDFLAGS}"
6055
6056 case "${host}" in
6057 *-linux*|i*86-*-*bsd*|i*86-pc-gnu|*-haiku*)
6058 if test "$GCC" = yes; then
6059 CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections"
6060 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
6061 fi
6062 ;;
6063 *)
6064 ;;
6065 esac
6066
6067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6069
6070 int
6071 main (void)
6072 {
6073
6074 ;
6075 return 0;
6076 }
6077 _ACEOF
6078 if ac_fn_c_try_link "$LINENO"
6079 then :
6080 CHECK_STATIC_OPT_FLAG=yes
6081 else case e in #(
6082 e) CHECK_STATIC_OPT_FLAG=no ;;
6083 esac
6084 fi
6085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6086 conftest$ac_exeext conftest.$ac_ext
6087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5
6088 printf "%s\n" "$CHECK_STATIC_OPT_FLAG" >&6; }
6089 if test "$CHECK_STATIC_OPT_FLAG" = no; then
6090 CPPFLAGS="${OLD_CPPFLAGS}"
6091 LDFLAGS="${OLD_LDFLAGS}"
6092 fi
6093 fi
6094 fi
6095 fi
6096
6097
6098 # Check whether to enable auto cleanup of libraries
6099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5
6100 printf %s "checking whether to enable auto cleanup of libraries... " >&6; }
6101 enabled=no
6102 UCLN_NO_AUTO_CLEANUP=1
6103 # Check whether --enable-auto-cleanup was given.
6104 if test ${enable_auto_cleanup+y}
6105 then :
6106 enableval=$enable_auto_cleanup; case "${enableval}" in
6107 yes) enabled=yes;
6108 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
6109 UCLN_NO_AUTO_CLEANUP=0
6110 ;;
6111 *) ;;
6112 esac
6113 fi
6114
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
6116 printf "%s\n" "$enabled" >&6; }
6117
6118
6119 # Check whether to enabled draft APIs
6120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5
6121 printf %s "checking whether to enable draft APIs... " >&6; }
6122 enabled=yes
6123 U_DEFAULT_SHOW_DRAFT=1
6124 # Check whether --enable-draft was given.
6125 if test ${enable_draft+y}
6126 then :
6127 enableval=$enable_draft; case "${enableval}" in
6128 no) enabled=no; U_DEFAULT_SHOW_DRAFT=0;
6129 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
6130 ;;
6131 *) ;;
6132 esac
6133 fi
6134
6135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
6136 printf "%s\n" "$enabled" >&6; }
6137 # Make sure that we can use draft API in ICU.
6138 if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
6139 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API -DU_SHOW_INTERNAL_API"
6140 fi
6141
6142
6143 if test -n "$ac_tool_prefix"; then
6144 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6145 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 printf %s "checking for $ac_word... " >&6; }
6148 if test ${ac_cv_prog_RANLIB+y}
6149 then :
6150 printf %s "(cached) " >&6
6151 else case e in #(
6152 e) if test -n "$RANLIB"; then
6153 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158 IFS=$as_save_IFS
6159 case $as_dir in #(((
6160 '') as_dir=./ ;;
6161 */) ;;
6162 *) as_dir=$as_dir/ ;;
6163 esac
6164 for ac_exec_ext in '' $ac_executable_extensions; do
6165 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6168 break 2
6169 fi
6170 done
6171 done
6172 IFS=$as_save_IFS
6173
6174 fi ;;
6175 esac
6176 fi
6177 RANLIB=$ac_cv_prog_RANLIB
6178 if test -n "$RANLIB"; then
6179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6180 printf "%s\n" "$RANLIB" >&6; }
6181 else
6182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 printf "%s\n" "no" >&6; }
6184 fi
6185
6186
6187 fi
6188 if test -z "$ac_cv_prog_RANLIB"; then
6189 ac_ct_RANLIB=$RANLIB
6190 # Extract the first word of "ranlib", so it can be a program name with args.
6191 set dummy ranlib; ac_word=$2
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6193 printf %s "checking for $ac_word... " >&6; }
6194 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6195 then :
6196 printf %s "(cached) " >&6
6197 else case e in #(
6198 e) if test -n "$ac_ct_RANLIB"; then
6199 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6200 else
6201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6202 for as_dir in $PATH
6203 do
6204 IFS=$as_save_IFS
6205 case $as_dir in #(((
6206 '') as_dir=./ ;;
6207 */) ;;
6208 *) as_dir=$as_dir/ ;;
6209 esac
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_ac_ct_RANLIB="ranlib"
6213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi ;;
6221 esac
6222 fi
6223 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6224 if test -n "$ac_ct_RANLIB"; then
6225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6226 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6227 else
6228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 printf "%s\n" "no" >&6; }
6230 fi
6231
6232 if test "x$ac_ct_RANLIB" = x; then
6233 RANLIB=":"
6234 else
6235 case $cross_compiling:$ac_tool_warned in
6236 yes:)
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239 ac_tool_warned=yes ;;
6240 esac
6241 RANLIB=$ac_ct_RANLIB
6242 fi
6243 else
6244 RANLIB="$ac_cv_prog_RANLIB"
6245 fi
6246
6247
6248 # need sed
6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6250 printf %s "checking for a sed that does not truncate output... " >&6; }
6251 if test ${ac_cv_path_SED+y}
6252 then :
6253 printf %s "(cached) " >&6
6254 else case e in #(
6255 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6256 for ac_i in 1 2 3 4 5 6 7; do
6257 ac_script="$ac_script$as_nl$ac_script"
6258 done
6259 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6260 { ac_script=; unset ac_script;}
6261 if test -z "$SED"; then
6262 ac_path_SED_found=false
6263 # Loop through the user's path and test for each of PROGNAME-LIST
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6266 do
6267 IFS=$as_save_IFS
6268 case $as_dir in #(((
6269 '') as_dir=./ ;;
6270 */) ;;
6271 *) as_dir=$as_dir/ ;;
6272 esac
6273 for ac_prog in sed gsed
6274 do
6275 for ac_exec_ext in '' $ac_executable_extensions; do
6276 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6277 as_fn_executable_p "$ac_path_SED" || continue
6278 # Check for GNU ac_path_SED and select it if it is found.
6279 # Check for GNU $ac_path_SED
6280 case `"$ac_path_SED" --version 2>&1` in #(
6281 *GNU*)
6282 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6283 #(
6284 *)
6285 ac_count=0
6286 printf %s 0123456789 >"conftest.in"
6287 while :
6288 do
6289 cat "conftest.in" "conftest.in" >"conftest.tmp"
6290 mv "conftest.tmp" "conftest.in"
6291 cp "conftest.in" "conftest.nl"
6292 printf "%s\n" '' >> "conftest.nl"
6293 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6295 as_fn_arith $ac_count + 1 && ac_count=$as_val
6296 if test $ac_count -gt ${ac_path_SED_max-0}; then
6297 # Best one so far, save it but keep looking for a better one
6298 ac_cv_path_SED="$ac_path_SED"
6299 ac_path_SED_max=$ac_count
6300 fi
6301 # 10*(2^10) chars as input seems more than enough
6302 test $ac_count -gt 10 && break
6303 done
6304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6305 esac
6306
6307 $ac_path_SED_found && break 3
6308 done
6309 done
6310 done
6311 IFS=$as_save_IFS
6312 if test -z "$ac_cv_path_SED"; then
6313 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6314 fi
6315 else
6316 ac_cv_path_SED=$SED
6317 fi
6318 ;;
6319 esac
6320 fi
6321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6322 printf "%s\n" "$ac_cv_path_SED" >&6; }
6323 SED="$ac_cv_path_SED"
6324 rm -f conftest.sed
6325
6326
6327 # look for 'ar' the proper way
6328 if test -n "$ac_tool_prefix"; then
6329 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6330 set dummy ${ac_tool_prefix}ar; ac_word=$2
6331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 printf %s "checking for $ac_word... " >&6; }
6333 if test ${ac_cv_prog_AR+y}
6334 then :
6335 printf %s "(cached) " >&6
6336 else case e in #(
6337 e) if test -n "$AR"; then
6338 ac_cv_prog_AR="$AR" # Let the user override the test.
6339 else
6340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 for as_dir in $PATH
6342 do
6343 IFS=$as_save_IFS
6344 case $as_dir in #(((
6345 '') as_dir=./ ;;
6346 */) ;;
6347 *) as_dir=$as_dir/ ;;
6348 esac
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6351 ac_cv_prog_AR="${ac_tool_prefix}ar"
6352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6353 break 2
6354 fi
6355 done
6356 done
6357 IFS=$as_save_IFS
6358
6359 fi ;;
6360 esac
6361 fi
6362 AR=$ac_cv_prog_AR
6363 if test -n "$AR"; then
6364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6365 printf "%s\n" "$AR" >&6; }
6366 else
6367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 printf "%s\n" "no" >&6; }
6369 fi
6370
6371
6372 fi
6373 if test -z "$ac_cv_prog_AR"; then
6374 ac_ct_AR=$AR
6375 # Extract the first word of "ar", so it can be a program name with args.
6376 set dummy ar; ac_word=$2
6377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6378 printf %s "checking for $ac_word... " >&6; }
6379 if test ${ac_cv_prog_ac_ct_AR+y}
6380 then :
6381 printf %s "(cached) " >&6
6382 else case e in #(
6383 e) if test -n "$ac_ct_AR"; then
6384 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389 IFS=$as_save_IFS
6390 case $as_dir in #(((
6391 '') as_dir=./ ;;
6392 */) ;;
6393 *) as_dir=$as_dir/ ;;
6394 esac
6395 for ac_exec_ext in '' $ac_executable_extensions; do
6396 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6397 ac_cv_prog_ac_ct_AR="ar"
6398 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6399 break 2
6400 fi
6401 done
6402 done
6403 IFS=$as_save_IFS
6404
6405 fi ;;
6406 esac
6407 fi
6408 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6409 if test -n "$ac_ct_AR"; then
6410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6411 printf "%s\n" "$ac_ct_AR" >&6; }
6412 else
6413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6414 printf "%s\n" "no" >&6; }
6415 fi
6416
6417 if test "x$ac_ct_AR" = x; then
6418 AR="false"
6419 else
6420 case $cross_compiling:$ac_tool_warned in
6421 yes:)
6422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6423 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6424 ac_tool_warned=yes ;;
6425 esac
6426 AR=$ac_ct_AR
6427 fi
6428 else
6429 AR="$ac_cv_prog_AR"
6430 fi
6431
6432
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5
6434 printf %s "checking whether to enable renaming of symbols... " >&6; }
6435 enabled=yes
6436 U_DISABLE_RENAMING=0
6437 # Check whether --enable-renaming was given.
6438 if test ${enable_renaming+y}
6439 then :
6440 enableval=$enable_renaming; case "${enableval}" in
6441 yes|"") enabled=yes ;;
6442 no) enabled=no; U_DISABLE_RENAMING=1;
6443 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
6444 ;;
6445 *) ;;
6446 esac
6447 fi
6448
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
6450 printf "%s\n" "$enabled" >&6; }
6451
6452
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5
6454 printf %s "checking whether to enable function and data tracing... " >&6; }
6455 enabled=no
6456 U_ENABLE_TRACING=0
6457 # Check whether --enable-tracing was given.
6458 if test ${enable_tracing+y}
6459 then :
6460 enableval=$enable_tracing; case "${enableval}" in
6461 yes|"") enabled=yes;
6462 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
6463 U_ENABLE_TRACING=1 ;;
6464 no) enabled=no; U_ENABLE_TRACING=0 ;;
6465 *) ;;
6466 esac
6467 fi
6468
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
6470 printf "%s\n" "$enabled" >&6; }
6471
6472
6473 # check if elf.h is present.
6474 ac_fn_c_check_header_compile "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
6475 if test "x$ac_cv_header_elf_h" = xyes
6476 then :
6477 printf "%s\n" "#define HAVE_ELF_H 1" >>confdefs.h
6478
6479 fi
6480
6481 if test "x$ac_cv_header_elf_h" = "xyes"; then
6482 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
6483 fi
6484
6485 # Enable/disable plugins
6486 # Check whether --enable-plugins was given.
6487 if test ${enable_plugins+y}
6488 then :
6489 enableval=$enable_plugins; case "${enableval}" in
6490 yes) plugins=true ;;
6491 no) plugins=false ;;
6492 *) as_fn_error $? "bad value ${enableval} for --enable-plugins" "$LINENO" 5 ;;
6493 esac
6494 else case e in #(
6495 e) plugins=false ;;
6496 esac
6497 fi
6498
6499
6500
6501 if test "$plugins" = true; then
6502 PLUGINS_TRUE=
6503 U_HAVE_PLUGINS=1
6504 else
6505 PLUGINS_TRUE='#'
6506 U_HAVE_PLUGINS=0
6507 fi
6508
6509 if test "x$plugins" = "xtrue"; then
6510 UCONFIG_CPPFLAGS="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1"
6511 fi
6512
6513
6514 U_ENABLE_DYLOAD=1
6515 enable=yes
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins. Ignored if plugins disabled." >&5
6517 printf %s "checking whether to enable dynamic loading of plugins. Ignored if plugins disabled.... " >&6; }
6518 # Check whether --enable-dyload was given.
6519 if test ${enable_dyload+y}
6520 then :
6521 enableval=$enable_dyload; case "${enableval}" in
6522 yes|"")
6523 U_ENABLE_DYLOAD=1
6524 enable=yes
6525 ;;
6526 no)
6527 U_ENABLE_DYLOAD=0;
6528 enable=no;
6529 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
6530 ;;
6531 *) ;;
6532 esac
6533 fi
6534
6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable" >&5
6536 printf "%s\n" "$enable" >&6; }
6537
6538
6539 if test "$enable" = "yes"; then
6540 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6541 if test "x$ac_cv_header_dlfcn_h" = xyes
6542 then :
6543 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
6544
6545 fi
6546
6547 #AC_MSG_RESULT($enabled)
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
6549 printf %s "checking for library containing dlopen... " >&6; }
6550 if test ${ac_cv_search_dlopen+y}
6551 then :
6552 printf %s "(cached) " >&6
6553 else case e in #(
6554 e) ac_func_search_save_LIBS=$LIBS
6555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6556 /* end confdefs.h. */
6557
6558 /* Override any GCC internal prototype to avoid an error.
6559 Use char because int might match the return type of a GCC
6560 builtin and then its argument prototype would still apply.
6561 The 'extern "C"' is for builds by C++ compilers;
6562 although this is not generally supported in C code supporting it here
6563 has little cost and some practical benefit (sr 110532). */
6564 #ifdef __cplusplus
6565 extern "C"
6566 #endif
6567 char dlopen (void);
6568 int
6569 main (void)
6570 {
6571 return dlopen ();
6572 ;
6573 return 0;
6574 }
6575 _ACEOF
6576 for ac_lib in '' dl
6577 do
6578 if test -z "$ac_lib"; then
6579 ac_res="none required"
6580 else
6581 ac_res=-l$ac_lib
6582 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6583 fi
6584 if ac_fn_c_try_link "$LINENO"
6585 then :
6586 ac_cv_search_dlopen=$ac_res
6587 fi
6588 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6589 conftest$ac_exeext
6590 if test ${ac_cv_search_dlopen+y}
6591 then :
6592 break
6593 fi
6594 done
6595 if test ${ac_cv_search_dlopen+y}
6596 then :
6597
6598 else case e in #(
6599 e) ac_cv_search_dlopen=no ;;
6600 esac
6601 fi
6602 rm conftest.$ac_ext
6603 LIBS=$ac_func_search_save_LIBS ;;
6604 esac
6605 fi
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6607 printf "%s\n" "$ac_cv_search_dlopen" >&6; }
6608 ac_res=$ac_cv_search_dlopen
6609 if test "$ac_res" != no
6610 then :
6611 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6612
6613 fi
6614
6615 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6616 if test "x$ac_cv_func_dlopen" = xyes
6617 then :
6618 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
6619
6620 fi
6621
6622
6623 if test "x$ac_cv_func_dlopen" != xyes; then
6624 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
6625 fi
6626 fi
6627
6628 # Check for miscellaneous functions.
6629 # So, use for putil / tools only.
6630 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
6631 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6632 if test "x$ac_cv_func_gettimeofday" = xyes
6633 then :
6634 printf "%s\n" "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
6635
6636 fi
6637
6638
6639
6640 # Check whether to use the evil rpath or not
6641 # Check whether --enable-rpath was given.
6642 if test ${enable_rpath+y}
6643 then :
6644 enableval=$enable_rpath; case "${enableval}" in
6645 yes|"") ENABLE_RPATH=YES ;;
6646 no) ;;
6647 *) ;;
6648 esac
6649 else case e in #(
6650 e) ENABLE_RPATH=NO
6651 ;;
6652 esac
6653 fi
6654
6655
6656
6657
6658
6659 ac_ext=cpp
6660 ac_cpp='$CXXCPP $CPPFLAGS'
6661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6664
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5
6666 printf %s "checking if we have a C++ compiler... " >&6; }
6667
6668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6669 /* end confdefs.h. */
6670
6671 int
6672 main (void)
6673 {
6674
6675 ;
6676 return 0;
6677 }
6678 _ACEOF
6679 if ac_fn_cxx_try_compile "$LINENO"
6680 then :
6681 cxx_okay=yes
6682 else case e in #(
6683 e) cxx_okay=no ;;
6684 esac
6685 fi
6686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6687 if test $cxx_okay = yes
6688 then
6689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Good" >&5
6690 printf "%s\n" "Good" >&6; }
6691 else
6692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6693 printf "%s\n" "no" >&6; }
6694 as_fn_error $? "C++ compiler $CXX does not work or no compiler found" "$LINENO" 5
6695 fi
6696
6697 if [ "$GXX" = yes ]; then
6698 # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++17,
6699 # and check that the compiler still works.
6700 if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then
6701 OLD_CXXFLAGS="${CXXFLAGS}"
6702 CXXFLAGS="$CXXFLAGS -std=c++17"
6703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we have a C++17 compiler" >&5
6704 printf %s "checking if we have a C++17 compiler... " >&6; }
6705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6706 /* end confdefs.h. */
6707
6708 int
6709 main (void)
6710 {
6711
6712 ;
6713 return 0;
6714 }
6715 _ACEOF
6716 if ac_fn_cxx_try_compile "$LINENO"
6717 then :
6718 cxx17_okay=yes
6719 else case e in #(
6720 e) cxx17_okay=no ;;
6721 esac
6722 fi
6723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cxx17_okay" >&5
6725 printf "%s\n" "$cxx17_okay" >&6; }
6726 if [ $cxx17_okay = yes ]; then
6727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option -std=c++17" >&5
6728 printf "%s\n" "$as_me: Adding CXXFLAGS option -std=c++17" >&6;}
6729 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -std=c++17"
6730 else
6731 CXXFLAGS="$OLD_CXXFLAGS"
6732 fi
6733 fi
6734 fi
6735
6736 ac_ext=c
6737 ac_cpp='$CPP $CPPFLAGS'
6738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6741
6742
6743 # Always build ICU with multi-threading support.
6744 OLD_LIBS=${LIBS}
6745
6746 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
6747 # and must do this before searching for pthread_mutex_destroy, or
6748 # we will pick up libpthreads.so not libpthread.so
6749 # If this fails, then we must test for HPUX specials, before
6750 # moving on to a more generic test
6751
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
6753 printf %s "checking for pthread_attr_init in -lpthread... " >&6; }
6754 if test ${ac_cv_lib_pthread_pthread_attr_init+y}
6755 then :
6756 printf %s "(cached) " >&6
6757 else case e in #(
6758 e) ac_check_lib_save_LIBS=$LIBS
6759 LIBS="-lpthread $LIBS"
6760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6761 /* end confdefs.h. */
6762
6763 /* Override any GCC internal prototype to avoid an error.
6764 Use char because int might match the return type of a GCC
6765 builtin and then its argument prototype would still apply.
6766 The 'extern "C"' is for builds by C++ compilers;
6767 although this is not generally supported in C code supporting it here
6768 has little cost and some practical benefit (sr 110532). */
6769 #ifdef __cplusplus
6770 extern "C"
6771 #endif
6772 char pthread_attr_init (void);
6773 int
6774 main (void)
6775 {
6776 return pthread_attr_init ();
6777 ;
6778 return 0;
6779 }
6780 _ACEOF
6781 if ac_fn_c_try_link "$LINENO"
6782 then :
6783 ac_cv_lib_pthread_pthread_attr_init=yes
6784 else case e in #(
6785 e) ac_cv_lib_pthread_pthread_attr_init=no ;;
6786 esac
6787 fi
6788 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6789 conftest$ac_exeext conftest.$ac_ext
6790 LIBS=$ac_check_lib_save_LIBS ;;
6791 esac
6792 fi
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6794 printf "%s\n" "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
6795 if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes
6796 then :
6797 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
6798
6799 LIBS="-lpthread $LIBS"
6800
6801 fi
6802
6803 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6804 :
6805 else
6806 # Locate the right library for POSIX threads. We look for the
6807 # symbols in the libraries first, because on Solaris libc provides
6808 # pthread_create but libpthread has the real code :(
6809 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
6810 # FreeBSD users may need libpthread if they do not have libc_r.
6811
6812
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5
6814 printf %s "checking for library containing pthread_mutex_destroy... " >&6; }
6815 if test ${ac_cv_search_pthread_mutex_destroy+y}
6816 then :
6817 printf %s "(cached) " >&6
6818 else case e in #(
6819 e) ac_func_search_save_LIBS="$LIBS"
6820 ac_cv_search_pthread_mutex_destroy="no"
6821 for i in pthread pthreads c_r ; do
6822 LIBS="-l$i $ac_func_search_save_LIBS"
6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6824 /* end confdefs.h. */
6825
6826 /* Override any GCC internal prototype to avoid an error.
6827 Use char because int might match the return type of a GCC
6828 builtin and then its argument prototype would still apply.
6829 The 'extern "C"' is for builds by C++ compilers;
6830 although this is not generally supported in C code supporting it here
6831 has little cost and some practical benefit (sr 110532). */
6832 #ifdef __cplusplus
6833 extern "C"
6834 #endif
6835 char pthread_mutex_destroy (void);
6836 int
6837 main (void)
6838 {
6839 return pthread_mutex_destroy ();
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 if ac_fn_c_try_link "$LINENO"
6845 then :
6846 ac_cv_search_pthread_mutex_destroy="-l$i"
6847 break
6848 fi
6849 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6850 conftest$ac_exeext conftest.$ac_ext
6851 done
6852 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6855
6856 /* Override any GCC internal prototype to avoid an error.
6857 Use char because int might match the return type of a GCC
6858 builtin and then its argument prototype would still apply.
6859 The 'extern "C"' is for builds by C++ compilers;
6860 although this is not generally supported in C code supporting it here
6861 has little cost and some practical benefit (sr 110532). */
6862 #ifdef __cplusplus
6863 extern "C"
6864 #endif
6865 char pthread_mutex_destroy (void);
6866 int
6867 main (void)
6868 {
6869 return pthread_mutex_destroy ();
6870 ;
6871 return 0;
6872 }
6873 _ACEOF
6874 if ac_fn_c_try_link "$LINENO"
6875 then :
6876 ac_cv_search_pthread_mutex_destroy="none required"
6877 fi
6878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6879 conftest$ac_exeext conftest.$ac_ext
6880 fi
6881 LIBS="$ac_func_search_save_LIBS" ;;
6882 esac
6883 fi
6884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5
6885 printf "%s\n" "$ac_cv_search_pthread_mutex_destroy" >&6; }
6886 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
6887 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS"
6888
6889 else :
6890
6891 fi
6892
6893 if test "$ac_cv_search_pthread_mutex_destroy" != no; then
6894 :
6895 else
6896 # For HP 11
6897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
6898 printf %s "checking for pthread_mutex_init in -lpthread... " >&6; }
6899 if test ${ac_cv_lib_pthread_pthread_mutex_init+y}
6900 then :
6901 printf %s "(cached) " >&6
6902 else case e in #(
6903 e) ac_check_lib_save_LIBS=$LIBS
6904 LIBS="-lpthread $LIBS"
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6907
6908 /* Override any GCC internal prototype to avoid an error.
6909 Use char because int might match the return type of a GCC
6910 builtin and then its argument prototype would still apply.
6911 The 'extern "C"' is for builds by C++ compilers;
6912 although this is not generally supported in C code supporting it here
6913 has little cost and some practical benefit (sr 110532). */
6914 #ifdef __cplusplus
6915 extern "C"
6916 #endif
6917 char pthread_mutex_init (void);
6918 int
6919 main (void)
6920 {
6921 return pthread_mutex_init ();
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 if ac_fn_c_try_link "$LINENO"
6927 then :
6928 ac_cv_lib_pthread_pthread_mutex_init=yes
6929 else case e in #(
6930 e) ac_cv_lib_pthread_pthread_mutex_init=no ;;
6931 esac
6932 fi
6933 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6934 conftest$ac_exeext conftest.$ac_ext
6935 LIBS=$ac_check_lib_save_LIBS ;;
6936 esac
6937 fi
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6939 printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6940 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
6941 then :
6942 printf "%s\n" "#define HAVE_LIBPTHREAD 1" >>confdefs.h
6943
6944 LIBS="-lpthread $LIBS"
6945
6946 fi
6947
6948 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
6949 :
6950 fi
6951 fi
6952
6953 ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
6954 if test "x$ac_cv_func_pthread_mutex_lock" = xyes
6955 then :
6956
6957 fi
6958
6959
6960 if test $ac_cv_func_pthread_mutex_lock = yes; then
6961 :
6962 fi
6963 fi
6964 # Check to see if we are using CygWin with MSVC
6965 case "${host}" in
6966 *-pc-cygwin*|*-pc-mingw*)
6967 # For gcc, the thread options are set by mh-mingw/mh-cygwin
6968 # For msvc, the thread options are set by runConfigureICU
6969 :
6970 ;;
6971 *-*-hpux*)
6972 # Add -mt because it does several nice things on newer compilers.
6973 case "${icu_cv_host_frag}" in
6974 mh-hpux-acc)
6975 OLD_CXXFLAGS="${CXXFLAGS}"
6976 CXXFLAGS="${CXXFLAGS} -mt"
6977 if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then
6978 CXXFLAGS="${OLD_CXXFLAGS}"
6979 else
6980 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt"
6981 fi
6982 ;;
6983 esac
6984 ;;
6985 *-*-solaris*)
6986 case "${icu_cv_host_frag}" in
6987 mh-solaris)
6988 LIBS="${LIBS} -mt"
6989 ;;
6990 esac
6991 ;;
6992 esac
6993
6994 # Check whether --enable-weak-threads was given.
6995 if test ${enable_weak_threads+y}
6996 then :
6997 enableval=$enable_weak_threads; case "${enableval}" in
6998 yes)
6999 LIB_THREAD="${LIBS%${OLD_LIBS}}"
7000 LIBS=${OLD_LIBS}
7001 ;;
7002 no) ;;
7003 *) as_fn_error $? "bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;;
7004 esac
7005 fi
7006
7007
7008
7009 # Check for mmap()
7010
7011 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
7012 # Do this check instead.
7013 HAVE_MMAP=0
7014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
7015 printf %s "checking for mmap... " >&6; }
7016 if test ${ac_cv_func_mmap_ok+y}
7017 then :
7018 printf %s "(cached) " >&6
7019 else case e in #(
7020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7021 /* end confdefs.h. */
7022 #include <unistd.h>
7023 #include <sys/mman.h>
7024 #include <sys/stat.h>
7025 #include <fcntl.h>
7026 int
7027 main (void)
7028 {
7029 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
7030 ;
7031 return 0;
7032 }
7033 _ACEOF
7034 if ac_fn_c_try_link "$LINENO"
7035 then :
7036 ac_cv_func_mmap_ok=yes
7037 else case e in #(
7038 e) ac_cv_func_mmap_ok=no ;;
7039 esac
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7042 conftest$ac_exeext conftest.$ac_ext ;;
7043 esac
7044 fi
7045
7046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
7047 printf "%s\n" "$ac_cv_func_mmap_ok" >&6; }
7048 if test $ac_cv_func_mmap_ok = yes
7049 then
7050 HAVE_MMAP=1
7051 else
7052 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
7053 fi
7054
7055
7056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5
7057 printf %s "checking for genccode assembly... " >&6; }
7058
7059 # Check to see if genccode can generate simple assembly.
7060 GENCCODE_ASSEMBLY=
7061 case "${host}" in
7062 *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu)
7063 if test "$GCC" = yes; then
7064 # We're using gcc, and the simple -a gcc command line works for genccode
7065 GENCCODE_ASSEMBLY="-a gcc"
7066 fi ;;
7067 i*86-*-solaris*)
7068 if test "$GCC" = yes; then
7069 # When using gcc, look if we're also using GNU as.
7070 # When using GNU as, the simple -a gcc command line works for genccode.
7071 asv=`"${CC}" -print-prog-name=as 2>/dev/null`
7072 asv=`"${asv}" --version 2>/dev/null`
7073 case "X${asv}" in
7074 X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;;
7075 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
7076 esac
7077 unset asv
7078 else
7079 GENCCODE_ASSEMBLY="-a sun-x86"
7080 fi ;;
7081 sparc-*-solaris*)
7082 GENCCODE_ASSEMBLY="-a sun"
7083 ;;
7084 ia64-*-hpux*)
7085 # There has been some issues with building ICU data on HPUX ia64 aCC
7086 # when using the assemble code setting below. For now, build without
7087 # assemble code for this platform. This will increase the build time.
7088 # GENCCODE_ASSEMBLY="-a aCC-ia64"
7089 ;;
7090 esac
7091
7092
7093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5
7094 printf "%s\n" "$GENCCODE_ASSEMBLY" >&6; }
7095
7096 # Checks for header files
7097
7098
7099 ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
7100 if test "x$ac_cv_header_dirent_h" = xyes
7101 then :
7102 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
7103
7104 fi
7105
7106 if test $ac_cv_header_dirent_h = no; then
7107 U_HAVE_DIRENT_H=0
7108 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
7109 else
7110 U_HAVE_DIRENT_H=1
7111 fi
7112
7113
7114
7115 # Check for endianness
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
7117 printf %s "checking whether byte ordering is bigendian... " >&6; }
7118 if test ${ac_cv_c_bigendian+y}
7119 then :
7120 printf %s "(cached) " >&6
7121 else case e in #(
7122 e) ac_cv_c_bigendian=unknown
7123 # See if we're dealing with a universal compiler.
7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7125 /* end confdefs.h. */
7126 #ifndef __APPLE_CC__
7127 not a universal capable compiler
7128 #endif
7129 typedef int dummy;
7130
7131 _ACEOF
7132 if ac_fn_c_try_compile "$LINENO"
7133 then :
7134
7135 # Check for potential -arch flags. It is not universal unless
7136 # there are at least two -arch flags with different values.
7137 ac_arch=
7138 ac_prev=
7139 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
7140 if test -n "$ac_prev"; then
7141 case $ac_word in
7142 i?86 | x86_64 | ppc | ppc64)
7143 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
7144 ac_arch=$ac_word
7145 else
7146 ac_cv_c_bigendian=universal
7147 break
7148 fi
7149 ;;
7150 esac
7151 ac_prev=
7152 elif test "x$ac_word" = "x-arch"; then
7153 ac_prev=arch
7154 fi
7155 done
7156 fi
7157 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7158 if test $ac_cv_c_bigendian = unknown; then
7159 # See if sys/param.h defines the BYTE_ORDER macro.
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 #include <sys/types.h>
7163 #include <sys/param.h>
7164
7165 int
7166 main (void)
7167 {
7168 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \\
7169 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \\
7170 && LITTLE_ENDIAN)
7171 bogus endian macros
7172 #endif
7173
7174 ;
7175 return 0;
7176 }
7177 _ACEOF
7178 if ac_fn_c_try_compile "$LINENO"
7179 then :
7180 # It does; now see whether it defined to BIG_ENDIAN or not.
7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7182 /* end confdefs.h. */
7183 #include <sys/types.h>
7184 #include <sys/param.h>
7185
7186 int
7187 main (void)
7188 {
7189 #if BYTE_ORDER != BIG_ENDIAN
7190 not big endian
7191 #endif
7192
7193 ;
7194 return 0;
7195 }
7196 _ACEOF
7197 if ac_fn_c_try_compile "$LINENO"
7198 then :
7199 ac_cv_c_bigendian=yes
7200 else case e in #(
7201 e) ac_cv_c_bigendian=no ;;
7202 esac
7203 fi
7204 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7205 fi
7206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7207 fi
7208 if test $ac_cv_c_bigendian = unknown; then
7209 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7211 /* end confdefs.h. */
7212 #include <limits.h>
7213
7214 int
7215 main (void)
7216 {
7217 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
7218 bogus endian macros
7219 #endif
7220
7221 ;
7222 return 0;
7223 }
7224 _ACEOF
7225 if ac_fn_c_try_compile "$LINENO"
7226 then :
7227 # It does; now see whether it defined to _BIG_ENDIAN or not.
7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7229 /* end confdefs.h. */
7230 #include <limits.h>
7231
7232 int
7233 main (void)
7234 {
7235 #ifndef _BIG_ENDIAN
7236 not big endian
7237 #endif
7238
7239 ;
7240 return 0;
7241 }
7242 _ACEOF
7243 if ac_fn_c_try_compile "$LINENO"
7244 then :
7245 ac_cv_c_bigendian=yes
7246 else case e in #(
7247 e) ac_cv_c_bigendian=no ;;
7248 esac
7249 fi
7250 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7251 fi
7252 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7253 fi
7254 if test $ac_cv_c_bigendian = unknown; then
7255 # Compile a test program.
7256 if test "$cross_compiling" = yes
7257 then :
7258 # Try to guess by grepping values from an object file.
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261 unsigned short int ascii_mm[] =
7262 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7263 unsigned short int ascii_ii[] =
7264 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7265 int use_ascii (int i) {
7266 return ascii_mm[i] + ascii_ii[i];
7267 }
7268 unsigned short int ebcdic_ii[] =
7269 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7270 unsigned short int ebcdic_mm[] =
7271 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7272 int use_ebcdic (int i) {
7273 return ebcdic_mm[i] + ebcdic_ii[i];
7274 }
7275 int
7276 main (int argc, char **argv)
7277 {
7278 /* Intimidate the compiler so that it does not
7279 optimize the arrays away. */
7280 char *p = argv[0];
7281 ascii_mm[1] = *p++; ebcdic_mm[1] = *p++;
7282 ascii_ii[1] = *p++; ebcdic_ii[1] = *p++;
7283 return use_ascii (argc) == use_ebcdic (*p);
7284 }
7285 _ACEOF
7286 if ac_fn_c_try_link "$LINENO"
7287 then :
7288 if grep BIGenDianSyS conftest$ac_exeext >/dev/null; then
7289 ac_cv_c_bigendian=yes
7290 fi
7291 if grep LiTTleEnDian conftest$ac_exeext >/dev/null ; then
7292 if test "$ac_cv_c_bigendian" = unknown; then
7293 ac_cv_c_bigendian=no
7294 else
7295 # finding both strings is unlikely to happen, but who knows?
7296 ac_cv_c_bigendian=unknown
7297 fi
7298 fi
7299 fi
7300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7301 conftest$ac_exeext conftest.$ac_ext
7302 else case e in #(
7303 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7304 /* end confdefs.h. */
7305 $ac_includes_default
7306 int
7307 main (void)
7308 {
7309
7310 /* Are we little or big endian? From Harbison&Steele. */
7311 union
7312 {
7313 long int l;
7314 char c[sizeof (long int)];
7315 } u;
7316 u.l = 1;
7317 return u.c[sizeof (long int) - 1] == 1;
7318
7319 ;
7320 return 0;
7321 }
7322 _ACEOF
7323 if ac_fn_c_try_run "$LINENO"
7324 then :
7325 ac_cv_c_bigendian=no
7326 else case e in #(
7327 e) ac_cv_c_bigendian=yes ;;
7328 esac
7329 fi
7330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7331 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7332 esac
7333 fi
7334
7335 fi ;;
7336 esac
7337 fi
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
7339 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
7340 case $ac_cv_c_bigendian in #(
7341 yes)
7342
7343 U_IS_BIG_ENDIAN=1
7344 U_ENDIAN_CHAR="b"
7345 ;; #(
7346 no)
7347
7348 U_IS_BIG_ENDIAN=0
7349 U_ENDIAN_CHAR="l"
7350 ;; #(
7351 universal)
7352 as_fn_error $? "universal endianness not supported" "$LINENO" 5
7353 ;; #(
7354 *)
7355 as_fn_error $? "unknown endianness
7356 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
7357 esac
7358
7359
7360
7361 # Do various POSIX related checks
7362 U_HAVE_NL_LANGINFO_CODESET=0
7363 U_NL_LANGINFO_CODESET=-1
7364 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
7365 if test "x$ac_cv_func_nl_langinfo" = xyes
7366 then :
7367 U_HAVE_NL_LANGINFO=1
7368 else case e in #(
7369 e) U_HAVE_NL_LANGINFO=0 ;;
7370 esac
7371 fi
7372
7373 if test $U_HAVE_NL_LANGINFO -eq 1; then
7374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5
7375 printf %s "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
7376 if test ${ac_cv_nl_langinfo_codeset+y}
7377 then :
7378 printf %s "(cached) " >&6
7379 else case e in #(
7380 e) ac_cv_nl_langinfo_codeset="unknown"
7381 for a in CODESET _NL_CTYPE_CODESET_NAME; do
7382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7383 /* end confdefs.h. */
7384 #include <langinfo.h>
7385 int
7386 main (void)
7387 {
7388 nl_langinfo($a);
7389 ;
7390 return 0;
7391 }
7392 _ACEOF
7393 if ac_fn_c_try_link "$LINENO"
7394 then :
7395 ac_cv_nl_langinfo_codeset="$a"; break
7396 fi
7397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7398 conftest$ac_exeext conftest.$ac_ext
7399 done ;;
7400 esac
7401 fi
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5
7403 printf "%s\n" "$ac_cv_nl_langinfo_codeset" >&6; }
7404 if test x$ac_cv_nl_langinfo_codeset != xunknown
7405 then
7406 U_HAVE_NL_LANGINFO_CODESET=1
7407 U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset
7408 if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET"
7409 then
7410 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
7411 fi
7412 else
7413 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
7414 fi
7415 fi
7416
7417
7418
7419 ac_ext=cpp
7420 ac_cpp='$CXXCPP $CPPFLAGS'
7421 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7422 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7423 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7424
7425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5
7426 printf %s "checking for properly overriding new and delete... " >&6; }
7427 U_OVERRIDE_CXX_ALLOCATION=0
7428 U_HAVE_PLACEMENT_NEW=0
7429 if test ${ac_cv_override_cxx_allocation_ok+y}
7430 then :
7431 printf %s "(cached) " >&6
7432 else case e in #(
7433 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7435 #include <stdlib.h>
7436 class UMemory {
7437 public:
7438 void *operator new(size_t size) {return malloc(size);}
7439 void *operator new[](size_t size) {return malloc(size);}
7440 void operator delete(void *p) {free(p);}
7441 void operator delete[](void *p) {free(p);}
7442 };
7443
7444 int
7445 main (void)
7446 {
7447
7448 ;
7449 return 0;
7450 }
7451 _ACEOF
7452 if ac_fn_cxx_try_link "$LINENO"
7453 then :
7454 ac_cv_override_cxx_allocation_ok=yes
7455 else case e in #(
7456 e) ac_cv_override_cxx_allocation_ok=no ;;
7457 esac
7458 fi
7459 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7460 conftest$ac_exeext conftest.$ac_ext ;;
7461 esac
7462 fi
7463
7464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5
7465 printf "%s\n" "$ac_cv_override_cxx_allocation_ok" >&6; }
7466 if test $ac_cv_override_cxx_allocation_ok = yes
7467 then
7468 U_OVERRIDE_CXX_ALLOCATION=1
7469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5
7470 printf %s "checking for placement new and delete... " >&6; }
7471 if test ${ac_cv_override_placement_new_ok+y}
7472 then :
7473 printf %s "(cached) " >&6
7474 else case e in #(
7475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7476 /* end confdefs.h. */
7477 #include <stdlib.h>
7478 class UMemory {
7479 public:
7480 void *operator new(size_t size) {return malloc(size);}
7481 void *operator new[](size_t size) {return malloc(size);}
7482 void operator delete(void *p) {free(p);}
7483 void operator delete[](void *p) {free(p);}
7484 void * operator new(size_t, void *ptr) { return ptr; }
7485 void operator delete(void *, void *) {}
7486 };
7487
7488 int
7489 main (void)
7490 {
7491
7492 ;
7493 return 0;
7494 }
7495 _ACEOF
7496 if ac_fn_cxx_try_link "$LINENO"
7497 then :
7498 ac_cv_override_placement_new_ok=yes
7499 else case e in #(
7500 e) ac_cv_override_placement_new_ok=no ;;
7501 esac
7502 fi
7503 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7504 conftest$ac_exeext conftest.$ac_ext ;;
7505 esac
7506 fi
7507
7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5
7509 printf "%s\n" "$ac_cv_override_placement_new_ok" >&6; }
7510 if test $ac_cv_override_placement_new_ok = yes
7511 then
7512 U_HAVE_PLACEMENT_NEW=1
7513 else
7514 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
7515 fi
7516 else
7517 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
7518 fi
7519
7520
7521
7522 ac_ext=c
7523 ac_cpp='$CPP $CPPFLAGS'
7524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527
7528 ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
7529 if test "x$ac_cv_func_popen" = xyes
7530 then :
7531
7532 fi
7533
7534 if test x$ac_cv_func_popen = xyes
7535 then
7536 U_HAVE_POPEN=1
7537 else
7538 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
7539 U_HAVE_POPEN=0
7540 fi
7541
7542
7543 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
7544 if test "x$ac_cv_func_tzset" = xyes
7545 then :
7546
7547 fi
7548
7549 U_HAVE_TZSET=0
7550 if test x$ac_cv_func_tzset = xyes
7551 then
7552 U_TZSET=tzset
7553 U_HAVE_TZSET=1
7554 else
7555 ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset"
7556 if test "x$ac_cv_func__tzset" = xyes
7557 then :
7558
7559 fi
7560
7561 if test x$ac_cv_func__tzset = xyes
7562 then
7563 U_TZSET=_tzset
7564 U_HAVE_TZSET=1
7565 else
7566 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
7567 fi
7568 fi
7569
7570
7571
7572 U_HAVE_TZNAME=0
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7574 printf %s "checking for tzname... " >&6; }
7575 if test ${ac_cv_var_tzname+y}
7576 then :
7577 printf %s "(cached) " >&6
7578 else case e in #(
7579 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7580 /* end confdefs.h. */
7581 #ifndef _XOPEN_SOURCE
7582 #define _XOPEN_SOURCE
7583 #endif
7584 #include <stdlib.h>
7585 #include <time.h>
7586 #ifndef tzname /* For SGI. */
7587 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7588 #endif
7589 int
7590 main (void)
7591 {
7592 atoi(*tzname);
7593 ;
7594 return 0;
7595 }
7596 _ACEOF
7597 if ac_fn_c_try_link "$LINENO"
7598 then :
7599 ac_cv_var_tzname=yes
7600 else case e in #(
7601 e) ac_cv_var_tzname=no ;;
7602 esac
7603 fi
7604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7605 conftest$ac_exeext conftest.$ac_ext ;;
7606 esac
7607 fi
7608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7609 printf "%s\n" "$ac_cv_var_tzname" >&6; }
7610 if test $ac_cv_var_tzname = yes; then
7611 U_TZNAME=tzname
7612 U_HAVE_TZNAME=1
7613 else
7614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
7615 printf %s "checking for _tzname... " >&6; }
7616 if test ${ac_cv_var__tzname+y}
7617 then :
7618 printf %s "(cached) " >&6
7619 else case e in #(
7620 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7622 #include <stdlib.h>
7623 #include <time.h>
7624 extern char *_tzname[];
7625 int
7626 main (void)
7627 {
7628 atoi(*_tzname);
7629 ;
7630 return 0;
7631 }
7632 _ACEOF
7633 if ac_fn_c_try_link "$LINENO"
7634 then :
7635 ac_cv_var__tzname=yes
7636 else case e in #(
7637 e) ac_cv_var__tzname=no ;;
7638 esac
7639 fi
7640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7641 conftest$ac_exeext conftest.$ac_ext ;;
7642 esac
7643 fi
7644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5
7645 printf "%s\n" "$ac_cv_var__tzname" >&6; }
7646 if test $ac_cv_var__tzname = yes; then
7647 U_TZNAME=_tzname
7648 U_HAVE_TZNAME=1
7649 else
7650 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
7651 fi
7652 fi
7653
7654
7655
7656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
7657 printf %s "checking for timezone... " >&6; }
7658 if test ${ac_cv_var_timezone+y}
7659 then :
7660 printf %s "(cached) " >&6
7661 else case e in #(
7662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7664 #ifndef _XOPEN_SOURCE
7665 #define _XOPEN_SOURCE
7666 #endif
7667 #include <time.h>
7668
7669 int
7670 main (void)
7671 {
7672 timezone = 1;
7673 ;
7674 return 0;
7675 }
7676 _ACEOF
7677 if ac_fn_c_try_link "$LINENO"
7678 then :
7679 ac_cv_var_timezone=yes
7680 else case e in #(
7681 e) ac_cv_var_timezone=no ;;
7682 esac
7683 fi
7684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7685 conftest$ac_exeext conftest.$ac_ext ;;
7686 esac
7687 fi
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
7689 printf "%s\n" "$ac_cv_var_timezone" >&6; }
7690 U_HAVE_TIMEZONE=0
7691 if test $ac_cv_var_timezone = yes; then
7692 U_TIMEZONE=timezone
7693 U_HAVE_TIMEZONE=1
7694 else
7695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
7696 printf %s "checking for __timezone... " >&6; }
7697 if test ${ac_cv_var___timezone+y}
7698 then :
7699 printf %s "(cached) " >&6
7700 else case e in #(
7701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 #include <time.h>
7704 int
7705 main (void)
7706 {
7707 __timezone = 1;
7708 ;
7709 return 0;
7710 }
7711 _ACEOF
7712 if ac_fn_c_try_link "$LINENO"
7713 then :
7714 ac_cv_var___timezone=yes
7715 else case e in #(
7716 e) ac_cv_var___timezone=no ;;
7717 esac
7718 fi
7719 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7720 conftest$ac_exeext conftest.$ac_ext ;;
7721 esac
7722 fi
7723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5
7724 printf "%s\n" "$ac_cv_var___timezone" >&6; }
7725 if test $ac_cv_var___timezone = yes; then
7726 U_TIMEZONE=__timezone
7727 U_HAVE_TIMEZONE=1
7728 else
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5
7730 printf %s "checking for _timezone... " >&6; }
7731 if test ${ac_cv_var__timezone+y}
7732 then :
7733 printf %s "(cached) " >&6
7734 else case e in #(
7735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7737 #include <time.h>
7738 int
7739 main (void)
7740 {
7741 _timezone = 1;
7742 ;
7743 return 0;
7744 }
7745 _ACEOF
7746 if ac_fn_c_try_link "$LINENO"
7747 then :
7748 ac_cv_var__timezone=yes
7749 else case e in #(
7750 e) ac_cv_var__timezone=no ;;
7751 esac
7752 fi
7753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7754 conftest$ac_exeext conftest.$ac_ext ;;
7755 esac
7756 fi
7757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
7758 printf "%s\n" "$ac_cv_var__timezone" >&6; }
7759 if test $ac_cv_var__timezone = yes; then
7760 U_TIMEZONE=_timezone
7761 U_HAVE_TIMEZONE=1
7762 else
7763 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
7764 fi
7765 fi
7766 fi
7767
7768
7769
7770 ac_fn_c_check_func "$LINENO" "strtod_l" "ac_cv_func_strtod_l"
7771 if test "x$ac_cv_func_strtod_l" = xyes
7772 then :
7773
7774 fi
7775
7776 if test x$ac_cv_func_strtod_l = xyes
7777 then
7778 U_HAVE_STRTOD_L=1
7779 ac_fn_c_check_header_compile "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
7780 if test "x$ac_cv_header_xlocale_h" = xyes
7781 then :
7782
7783 fi
7784
7785 if test "$ac_cv_header_xlocale_h" = yes; then
7786 U_HAVE_XLOCALE_H=1
7787 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1"
7788 else
7789 U_HAVE_XLOCALE_H=0
7790 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=0"
7791 fi
7792 else
7793 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0"
7794 U_HAVE_STRTOD_L=0
7795 fi
7796
7797
7798 # Do various wchar_t related checks
7799 ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7800 if test "x$ac_cv_header_wchar_h" = xyes
7801 then :
7802
7803 fi
7804
7805 if test "$ac_cv_header_wchar_h" = no
7806 then
7807 U_HAVE_WCHAR_H=0
7808 U_HAVE_WCSCPY=0
7809 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
7810 else
7811
7812 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
7813
7814 U_HAVE_WCHAR_H=1
7815 # Some broken systems have wchar.h but not some of its functions...
7816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5
7817 printf %s "checking for library containing wcscpy... " >&6; }
7818 if test ${ac_cv_search_wcscpy+y}
7819 then :
7820 printf %s "(cached) " >&6
7821 else case e in #(
7822 e) ac_func_search_save_LIBS=$LIBS
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7825
7826 /* Override any GCC internal prototype to avoid an error.
7827 Use char because int might match the return type of a GCC
7828 builtin and then its argument prototype would still apply.
7829 The 'extern "C"' is for builds by C++ compilers;
7830 although this is not generally supported in C code supporting it here
7831 has little cost and some practical benefit (sr 110532). */
7832 #ifdef __cplusplus
7833 extern "C"
7834 #endif
7835 char wcscpy (void);
7836 int
7837 main (void)
7838 {
7839 return wcscpy ();
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 for ac_lib in '' wcs w
7845 do
7846 if test -z "$ac_lib"; then
7847 ac_res="none required"
7848 else
7849 ac_res=-l$ac_lib
7850 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7851 fi
7852 if ac_fn_c_try_link "$LINENO"
7853 then :
7854 ac_cv_search_wcscpy=$ac_res
7855 fi
7856 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7857 conftest$ac_exeext
7858 if test ${ac_cv_search_wcscpy+y}
7859 then :
7860 break
7861 fi
7862 done
7863 if test ${ac_cv_search_wcscpy+y}
7864 then :
7865
7866 else case e in #(
7867 e) ac_cv_search_wcscpy=no ;;
7868 esac
7869 fi
7870 rm conftest.$ac_ext
7871 LIBS=$ac_func_search_save_LIBS ;;
7872 esac
7873 fi
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
7875 printf "%s\n" "$ac_cv_search_wcscpy" >&6; }
7876 ac_res=$ac_cv_search_wcscpy
7877 if test "$ac_res" != no
7878 then :
7879 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7880
7881 fi
7882
7883 if test "$ac_cv_search_wcscpy" != no; then
7884 U_HAVE_WCSCPY=1
7885 else
7886 U_HAVE_WCSCPY=0
7887 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
7888 fi
7889 fi
7890
7891
7892
7893 # The cast to long int works around a bug in the HP C Compiler
7894 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7895 # declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'.
7896 # This bug is HP SR number 8606223364.
7897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
7898 printf %s "checking size of wchar_t... " >&6; }
7899 if test ${ac_cv_sizeof_wchar_t+y}
7900 then :
7901 printf %s "(cached) " >&6
7902 else case e in #(
7903 e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "
7904 #if STDC_HEADERS
7905 #include <stddef.h>
7906 #endif
7907 #include <stdlib.h>
7908 #if HAVE_WCHAR_H
7909 #include <string.h>
7910 #include <wchar.h>
7911 #endif
7912 "
7913 then :
7914
7915 else case e in #(
7916 e) if test "$ac_cv_type_wchar_t" = yes; then
7917 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7918 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7919 as_fn_error 77 "cannot compute sizeof (wchar_t)
7920 See 'config.log' for more details" "$LINENO" 5; }
7921 else
7922 ac_cv_sizeof_wchar_t=0
7923 fi ;;
7924 esac
7925 fi
7926 ;;
7927 esac
7928 fi
7929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
7930 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
7931
7932
7933
7934 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
7935
7936
7937 U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
7938 # We do this check to verify that everything is okay.
7939 if test $U_SIZEOF_WCHAR_T = 0; then
7940 if test $U_HAVE_WCHAR_H=1; then
7941 as_fn_error $? "There is wchar.h but the size of wchar_t is 0" "$LINENO" 5
7942 fi
7943 fi
7944
7945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5
7946 printf %s "checking for UTF-16 string literal support... " >&6; }
7947 U_CHECK_UTF16_STRING=1
7948 CHECK_UTF16_STRING_RESULT="unknown"
7949
7950 case "${host}" in
7951 *-*-aix*|powerpc64-*-linux*)
7952 if test "$GCC" = no; then
7953 OLD_CFLAGS="${CFLAGS}"
7954 OLD_CXXFLAGS="${CXXFLAGS}"
7955 CFLAGS="${CFLAGS} -qutf"
7956 CXXFLAGS="${CXXFLAGS} -qutf"
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 const unsigned short hello[] = u"hello";
7960 int
7961 main (void)
7962 {
7963
7964 ;
7965 return 0;
7966 }
7967 _ACEOF
7968 if ac_fn_c_try_compile "$LINENO"
7969 then :
7970 U_CHECK_UTF16_STRING=1
7971 else case e in #(
7972 e) U_CHECK_UTF16_STRING=0 ;;
7973 esac
7974 fi
7975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7976 if test "$U_CHECK_UTF16_STRING" = 0; then
7977 CFLAGS="${OLD_CFLAGS}"
7978 CXXFLAGS="${OLD_CXXFLAGS}"
7979 else
7980 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf"
7981 CHECK_UTF16_STRING_RESULT="-qutf"
7982 fi
7983 fi
7984 ;;
7985 *-*-solaris*)
7986 if test "$GCC" = no; then
7987 OLD_CFLAGS="${CFLAGS}"
7988 OLD_CXXFLAGS="${CXXFLAGS}"
7989 CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort"
7990 CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort"
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7993 const unsigned short hello[] = U"hello";
7994 int
7995 main (void)
7996 {
7997
7998 ;
7999 return 0;
8000 }
8001 _ACEOF
8002 if ac_fn_c_try_compile "$LINENO"
8003 then :
8004 U_CHECK_UTF16_STRING=1
8005 else case e in #(
8006 e) U_CHECK_UTF16_STRING=0 ;;
8007 esac
8008 fi
8009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8010 if test "$U_CHECK_UTF16_STRING" = 0; then
8011 CFLAGS="${OLD_CFLAGS}"
8012 CXXFLAGS="${OLD_CXXFLAGS}"
8013 else
8014 CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort"
8015 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort"
8016 UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort"
8017 # Since we can't detect the availability of this UTF-16 syntax at compile time,
8018 # we depend on configure telling us that we can use it.
8019 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
8020 # we only use this macro within ICU.
8021 # If an ICU user uses icu-config, this feature will be enabled.
8022 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
8023 U_CHECK_UTF16_STRING=0
8024 fi
8025 fi
8026 ;;
8027 *-*-hpux*)
8028 if test "$GCC" = no; then
8029 # The option will be detected at compile time without additional compiler options.
8030 CHECK_UTF16_STRING_RESULT="available"
8031 fi
8032 ;;
8033 *-*-cygwin)
8034 # wchar_t can be used
8035 CHECK_UTF16_STRING_RESULT="available"
8036 ;;
8037 *)
8038 ;;
8039 esac
8040
8041 # GCC >= 4.4 supports UTF16 string literals. As of ICU 62, both C and C++ files require them.
8042 if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
8043 if test "$GCC" = yes; then
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8046
8047 static const unsigned short test[] = u"This is a UTF16 literal string.";
8048
8049 int
8050 main (void)
8051 {
8052
8053 ;
8054 return 0;
8055 }
8056 _ACEOF
8057 if ac_fn_c_try_compile "$LINENO"
8058 then :
8059 CC_UTF16_STRING=1
8060 else case e in #(
8061 e) CC_UTF16_STRING=0 ;;
8062 esac
8063 fi
8064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8065 if test "$CC_UTF16_STRING" = 1; then
8066 CHECK_UTF16_STRING_RESULT="C only";
8067 fi
8068 fi
8069 if test "$GXX" = yes; then
8070 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
8071 ac_ext=cpp
8072 ac_cpp='$CXXCPP $CPPFLAGS'
8073 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8076
8077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8078 /* end confdefs.h. */
8079
8080 static const char16_t test[] = u"This is a UTF16 literal string.";
8081
8082 int
8083 main (void)
8084 {
8085
8086 ;
8087 return 0;
8088 }
8089 _ACEOF
8090 if ac_fn_cxx_try_compile "$LINENO"
8091 then :
8092 CXX_UTF16_STRING=1
8093 else case e in #(
8094 e) CXX_UTF16_STRING=0 ;;
8095 esac
8096 fi
8097 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8098 ac_ext=c
8099 ac_cpp='$CPP $CPPFLAGS'
8100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8103
8104 if test "$CXX_UTF16_STRING" = 1; then
8105 if test "$CC_UTF16_STRING" = 1; then
8106 CHECK_UTF16_STRING_RESULT="available";
8107 else
8108 CHECK_UTF16_STRING_RESULT="C++ only";
8109 fi
8110 fi
8111 fi
8112 fi
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5
8114 printf "%s\n" "$CHECK_UTF16_STRING_RESULT" >&6; }
8115
8116 # Enable/disable extras
8117 # Check whether --enable-extras was given.
8118 if test ${enable_extras+y}
8119 then :
8120 enableval=$enable_extras; case "${enableval}" in
8121 yes) extras=true ;;
8122 no) extras=false ;;
8123 *) as_fn_error $? "bad value ${enableval} for --enable-extras" "$LINENO" 5 ;;
8124 esac
8125 else case e in #(
8126 e) extras=true ;;
8127 esac
8128 fi
8129
8130
8131
8132 if test "$extras" = true; then
8133 EXTRAS_TRUE=
8134 U_HAVE_EXTRAS=1
8135 else
8136 EXTRAS_TRUE='#'
8137 U_HAVE_EXTRAS=0
8138 fi
8139 # Check whether --enable-icuio was given.
8140 if test ${enable_icuio+y}
8141 then :
8142 enableval=$enable_icuio; case "${enableval}" in
8143 yes) icuio=true ;;
8144 no) icuio=false ;;
8145 *) as_fn_error $? "bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;;
8146 esac
8147 else case e in #(
8148 e) icuio=true ;;
8149 esac
8150 fi
8151
8152
8153
8154 if test "$icuio" = true; then
8155 ICUIO_TRUE=
8156 U_HAVE_ICUIO=1
8157 else
8158 ICUIO_TRUE='#'
8159 U_HAVE_ICUIO=0
8160 fi
8161
8162 # Enable/disable layoutex
8163 # Check whether --enable-layoutex was given.
8164 if test ${enable_layoutex+y}
8165 then :
8166 enableval=$enable_layoutex; case "${enableval}" in
8167 yes) layoutex=$have_icu_le_hb ;;
8168 no) layoutex=false ;;
8169 *) as_fn_error $? "bad value ${enableval} for --enable-layoutex" "$LINENO" 5 ;;
8170 esac
8171 else case e in #(
8172 e) layoutex=false ;;
8173 esac
8174 fi
8175
8176
8177
8178 if test "$layoutex" = true; then
8179 LAYOUTEX_TRUE=
8180 U_HAVE_LAYOUTEX=1
8181 else
8182 LAYOUTEX_TRUE='#'
8183 U_HAVE_LAYOUTEX=0
8184 fi
8185
8186 # Enable/disable layout
8187 # Check whether --enable-layout was given.
8188 if test ${enable_layout+y}
8189 then :
8190 enableval=$enable_layout; case "${enableval}" in
8191 yes) as_fn_error $? "The ICU Layout Engine has been removed." "$LINENO" 5 ;;
8192 no) ;;
8193 *) ;;
8194 esac
8195 fi
8196
8197
8198 # Enable/disable tools
8199 # Check whether --enable-tools was given.
8200 if test ${enable_tools+y}
8201 then :
8202 enableval=$enable_tools; case "${enableval}" in
8203 yes) tools=true ;;
8204 no) tools=false ;;
8205 *) as_fn_error $? "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
8206 esac
8207 else case e in #(
8208 e) tools=true ;;
8209 esac
8210 fi
8211
8212
8213
8214 if test "$tools" = true; then
8215 TOOLS_TRUE=
8216 U_HAVE_TOOLS=1
8217 else
8218 TOOLS_TRUE='#'
8219 U_HAVE_TOOLS=0
8220 fi
8221
8222 # Enable/disable fuzzer target tests.
8223 # Check whether --enable-fuzzer was given.
8224 if test ${enable_fuzzer+y}
8225 then :
8226 enableval=$enable_fuzzer; case "${enableval}" in
8227 yes) fuzzer=true ;;
8228 no) fuzzer=false ;;
8229 *) as_fn_error $? "bad value ${enableval} for --enable-fuzzer" "$LINENO" 5 ;;
8230 esac
8231 else case e in #(
8232 e) fuzzer=false ;;
8233 esac
8234 fi
8235
8236
8237
8238 if test "$fuzzer" = true; then
8239 FUZZER_TRUE=
8240 U_HAVE_FUZZER=1
8241 else
8242 FUZZER_TRUE='#'
8243 U_HAVE_FUZZER=0
8244 fi
8245
8246
8247
8248 if test "$tools" = true || test "$cross_compiling" = "yes"; then
8249 DATA_TRUE=
8250 U_HAVE_DATA=1
8251 else
8252 DATA_TRUE='#'
8253 U_HAVE_DATA=0
8254 fi
8255
8256
8257 # Check whether --with-data-packaging was given.
8258 if test ${with_data_packaging+y}
8259 then :
8260 withval=$with_data_packaging; case "${withval}" in
8261 files|archive|library) datapackaging=$withval ;;
8262 auto) datapackaging=$withval ;;
8263 common) datapackaging=archive ;;
8264 dll) datapackaging=library ;;
8265 static) datapackaging=static ;;
8266 *) as_fn_error $? "bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;;
8267 esac
8268 else case e in #(
8269 e) datapackaging= ;;
8270 esac
8271 fi
8272
8273
8274 # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
8275 # thesysconfdir=`eval echo $sysconfdir`
8276 thedatadir=`eval echo $datadir`
8277 # Always put raw data files in share/icu/{version}, etc. Never use lib/icu/{version} for data files.. Actual shared libraries will go in {libdir}.
8278 pkgicudatadir=$datadir
8279 thepkgicudatadir=$thedatadir
8280
8281
8282
8283
8284 if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
8285 # default to library
8286 datapackaging=library
8287 if test "$ENABLE_STATIC" = "YES"; then
8288 if test "$ENABLE_SHARED" != "YES"; then
8289 datapackaging=static
8290 fi
8291 fi
8292 fi
8293
8294 datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}"
8295
8296 datapackaging_msg="(No explanation for mode $datapackaging.)"
8297
8298 datapackaging_msg_path="ICU will look in $datapackaging_dir which is the installation location. Call u_setDataDirectory() or use the ICU_DATA environment variable to override."
8299 datapackaging_msg_set="ICU will use the linked data library. If linked with the stub library located in stubdata/, the application can use udata_setCommonData() or set a data path to override."
8300 datapackaging_howfound="(unknown)"
8301
8302 case "$datapackaging" in
8303 files)
8304 DATA_PACKAGING_MODE=files
8305 datapackaging_msg="ICU data will be stored in individual files."
8306 datapackaging_howfound="$datapackaging_msg_path"
8307 ;;
8308 archive)
8309 DATA_PACKAGING_MODE=common
8310 datapackaging_msg="ICU data will be stored in a single .dat file."
8311 datapackaging_howfound="$datapackaging_msg_path"
8312 ;;
8313 library)
8314 DATA_PACKAGING_MODE=dll
8315 datapackaging_msg="ICU data will be linked with ICU."
8316 if test "$ENABLE_STATIC" = "YES"; then
8317 datapackaging_msg="$datapackaging_msg A static data library will be built. "
8318 fi
8319 if test "$ENABLE_SHARED" = "YES"; then
8320 datapackaging_msg="$datapackaging_msg A shared data library will be built. "
8321 fi
8322 datapackaging_howfound="$datapackaging_msg_set"
8323 ;;
8324 static)
8325 DATA_PACKAGING_MODE=static
8326 datapackaging_msg="ICU data will be stored in a static library."
8327 datapackaging_howfound="$datapackaging_msg_set"
8328 ;;
8329 esac
8330
8331
8332 # Sets a library suffix
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5
8334 printf %s "checking for a library suffix to use... " >&6; }
8335
8336 # Check whether --with-library-suffix was given.
8337 if test ${with_library_suffix+y}
8338 then :
8339 withval=$with_library_suffix; ICULIBSUFFIX="${withval}"
8340 else case e in #(
8341 e) ICULIBSUFFIX= ;;
8342 esac
8343 fi
8344
8345 msg=$ICULIBSUFFIX
8346 if test "$msg" = ""; then
8347 msg=none
8348 fi
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
8350 printf "%s\n" "$msg" >&6; }
8351
8352 if test "$ICULIBSUFFIX" != ""
8353 then
8354 U_HAVE_LIB_SUFFIX=1
8355 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
8356 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} "
8357 else
8358 U_HAVE_LIB_SUFFIX=0
8359 fi
8360
8361
8362
8363 # Enable/disable tests
8364 # Check whether --enable-tests was given.
8365 if test ${enable_tests+y}
8366 then :
8367 enableval=$enable_tests; case "${enableval}" in
8368 yes) tests=true ;;
8369 no) tests=false ;;
8370 *) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
8371 esac
8372 else case e in #(
8373 e) tests=true ;;
8374 esac
8375 fi
8376
8377
8378
8379 if test "$tests" = true; then
8380 TESTS_TRUE=
8381 U_HAVE_TESTS=1
8382 else
8383 TESTS_TRUE='#'
8384 U_HAVE_TESTS=0
8385 fi
8386
8387 # Enable/disable samples
8388 # Check whether --enable-samples was given.
8389 if test ${enable_samples+y}
8390 then :
8391 enableval=$enable_samples; case "${enableval}" in
8392 yes) samples=true ;;
8393 no) samples=false ;;
8394 *) as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
8395 esac
8396 else case e in #(
8397 e) samples=true ;;
8398 esac
8399 fi
8400
8401
8402
8403 if test "$samples" = true; then
8404 SAMPLES_TRUE=
8405 U_HAVE_SAMPLES=1
8406 else
8407 SAMPLES_TRUE='#'
8408 U_HAVE_SAMPLES=0
8409 fi
8410
8411 ICUDATA_CHAR=$U_ENDIAN_CHAR
8412
8413 # Platform-specific Makefile setup
8414 # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
8415 case "${host}" in
8416 *-*-solaris*) platform=U_SOLARIS ;;
8417 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;;
8418 *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;;
8419 *-*-aix*) platform=U_AIX ;;
8420 *-*-hpux*) platform=U_HPUX ;;
8421 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
8422 *-*-cygwin*) platform=U_CYGWIN ;;
8423 *-*-mingw*) platform=U_MINGW ;;
8424 *-*ibm-openedition*|*-*-os390*) platform=OS390
8425 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
8426 ICUDATA_CHAR="e"
8427 fi ;;
8428 *-*-os400*) platform=OS400
8429 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
8430 ICUDATA_CHAR="e"
8431 fi ;;
8432 *-*-nto*) platform=U_QNX ;;
8433 *-dec-osf*) platform=U_OSF ;;
8434 *-*-beos) platform=U_BEOS ;;
8435 *-*-haiku) platform=U_HAIKU ;;
8436 *-*-irix*) platform=U_IRIX ;;
8437 *-ncr-*) platform=U_MPRAS ;;
8438 *) platform=U_UNKNOWN_PLATFORM ;;
8439 esac
8440
8441
8442 platform_make_fragment_name="$icu_cv_host_frag"
8443 platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name"
8444
8445
8446
8447 if test "${FORCE_LIBS}" != ""; then
8448 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
8449 LIBS=${FORCE_LIBS}
8450 fi
8451
8452 # Now that we're done using CPPFLAGS etc. for tests, we can change it
8453 # for build.
8454
8455 if test "${CC}" = "clang"; then
8456 CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality"
8457 else
8458 CLANGCFLAGS=""
8459 fi
8460
8461 if test "${CXX}" = "clang++"; then
8462 CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality"
8463 LIBCXXFLAGS="$LIBCXXFLAGS -Wglobal-constructors"
8464 else
8465 CLANGCXXFLAGS=""
8466 fi
8467
8468 CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)"
8469 CFLAGS="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS"
8470 CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS"
8471
8472
8473
8474
8475 # append all config cppflags
8476 CPPFLAGS="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS"
8477
8478 echo "CPPFLAGS=$CPPFLAGS"
8479 echo "CFLAGS=$CFLAGS"
8480 echo "CXXFLAGS=$CXXFLAGS"
8481
8482
8483 # output the Makefiles
8484 ac_config_files="$ac_config_files icudefs.mk Makefile data/pkgdataMakefile config/Makefile.inc config/icu.pc config/pkgdataMakefile data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/uconv/pkgdataMakefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/gendict/Makefile tools/gentest/Makefile tools/gennorm2/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icuinfo/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/icuexportdata/Makefile tools/tzcode/Makefile tools/gencfu/Makefile tools/escapesrc/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdataMakefile test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/Makefile test/perf/collationperf/Makefile test/perf/collperf/Makefile test/perf/collperf2/Makefile test/perf/dicttrieperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/localecanperf/Makefile test/perf/normperf/Makefile test/perf/DateFmtPerf/Makefile test/perf/howExpensiveIs/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile test/perf/utrie2perf/Makefile test/fuzzer/Makefile samples/Makefile"
8485
8486 cat >confcache <<\_ACEOF
8487 # This file is a shell script that caches the results of configure
8488 # tests run on this system so they can be shared between configure
8489 # scripts and configure runs, see configure's option --config-cache.
8490 # It is not useful on other systems. If it contains results you don't
8491 # want to keep, you may remove or edit it.
8492 #
8493 # config.status only pays attention to the cache file if you give it
8494 # the --recheck option to rerun configure.
8495 #
8496 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
8497 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
8498 # following values.
8499
8500 _ACEOF
8501
8502 # The following way of writing the cache mishandles newlines in values,
8503 # but we know of no workaround that is simple, portable, and efficient.
8504 # So, we kill variables containing newlines.
8505 # Ultrix sh set writes to stderr and can't be redirected directly,
8506 # and sets the high bit in the cache file unless we assign to the vars.
8507 (
8508 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8509 eval ac_val=\$$ac_var
8510 case $ac_val in #(
8511 *${as_nl}*)
8512 case $ac_var in #(
8513 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8514 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8515 esac
8516 case $ac_var in #(
8517 _ | IFS | as_nl) ;; #(
8518 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8519 *) { eval $ac_var=; unset $ac_var;} ;;
8520 esac ;;
8521 esac
8522 done
8523
8524 (set) 2>&1 |
8525 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8526 *${as_nl}ac_space=\ *)
8527 # 'set' does not quote correctly, so add quotes: double-quote
8528 # substitution turns \\\\ into \\, and sed turns \\ into \.
8529 sed -n \
8530 "s/'/'\\\\''/g;
8531 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8532 ;; #(
8533 *)
8534 # 'set' quotes correctly as required by POSIX, so do not add quotes.
8535 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8536 ;;
8537 esac |
8538 sort
8539 ) |
8540 sed '
8541 /^ac_cv_env_/b end
8542 t clear
8543 :clear
8544 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
8545 t end
8546 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8547 :end' >>confcache
8548 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8549 if test -w "$cache_file"; then
8550 if test "x$cache_file" != "x/dev/null"; then
8551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8552 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
8553 if test ! -f "$cache_file" || test -h "$cache_file"; then
8554 cat confcache >"$cache_file"
8555 else
8556 case $cache_file in #(
8557 */* | ?:*)
8558 mv -f confcache "$cache_file"$$ &&
8559 mv -f "$cache_file"$$ "$cache_file" ;; #(
8560 *)
8561 mv -f confcache "$cache_file" ;;
8562 esac
8563 fi
8564 fi
8565 else
8566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8567 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
8568 fi
8569 fi
8570 rm -f confcache
8571
8572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8573 # Let make expand exec_prefix.
8574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8575
8576 # Transform confdefs.h into DEFS.
8577 # Protect against shell expansion while executing Makefile rules.
8578 # Protect against Makefile macro expansion.
8579 #
8580 # If the first sed substitution is executed (which looks for macros that
8581 # take arguments), then branch to the quote section. Otherwise,
8582 # look for a macro that doesn't take arguments.
8583 ac_script='
8584 :mline
8585 /\\$/{
8586 N
8587 s,\\\n,,
8588 b mline
8589 }
8590 t clear
8591 :clear
8592 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
8593 t quote
8594 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
8595 t quote
8596 b any
8597 :quote
8598 s/[][ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8599 s/\$/$$/g
8600 H
8601 :any
8602 ${
8603 g
8604 s/^\n//
8605 s/\n/ /g
8606 p
8607 }
8608 '
8609 DEFS=`sed -n "$ac_script" confdefs.h`
8610
8611
8612 ac_libobjs=
8613 ac_ltlibobjs=
8614 U=
8615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8616 # 1. Remove the extension, and $U if already installed.
8617 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8618 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
8619 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8620 # will be set to the directory where LIBOBJS objects are built.
8621 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8622 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8623 done
8624 LIBOBJS=$ac_libobjs
8625
8626 LTLIBOBJS=$ac_ltlibobjs
8627
8628
8629
8630 : "${CONFIG_STATUS=./config.status}"
8631 ac_write_fail=0
8632 ac_clean_files_save=$ac_clean_files
8633 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8635 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
8636 as_write_fail=0
8637 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8638 #! $SHELL
8639 # Generated by $as_me.
8640 # Run this file to recreate the current configuration.
8641 # Compiler output produced by configure, useful for debugging
8642 # configure, is in config.log if it exists.
8643
8644 debug=false
8645 ac_cs_recheck=false
8646 ac_cs_silent=false
8647
8648 SHELL=\${CONFIG_SHELL-$SHELL}
8649 export SHELL
8650 _ASEOF
8651 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8652 ## -------------------- ##
8653 ## M4sh Initialization. ##
8654 ## -------------------- ##
8655
8656 # Be more Bourne compatible
8657 DUALCASE=1; export DUALCASE # for MKS sh
8658 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
8659 then :
8660 emulate sh
8661 NULLCMD=:
8662 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8663 # is contrary to our usage. Disable this feature.
8664 alias -g '${1+"$@"}'='"$@"'
8665 setopt NO_GLOB_SUBST
8666 else case e in #(
8667 e) case `(set -o) 2>/dev/null` in #(
8668 *posix*) :
8669 set -o posix ;; #(
8670 *) :
8671 ;;
8672 esac ;;
8673 esac
8674 fi
8675
8676
8677
8678 # Reset variables that may have inherited troublesome values from
8679 # the environment.
8680
8681 # IFS needs to be set, to space, tab, and newline, in precisely that order.
8682 # (If _AS_PATH_WALK were called with IFS unset, it would have the
8683 # side effect of setting IFS to empty, thus disabling word splitting.)
8684 # Quoting is to prevent editors from complaining about space-tab.
8685 as_nl='
8686 '
8687 export as_nl
8688 IFS=" "" $as_nl"
8689
8690 PS1='$ '
8691 PS2='> '
8692 PS4='+ '
8693
8694 # Ensure predictable behavior from utilities with locale-dependent output.
8695 LC_ALL=C
8696 export LC_ALL
8697 LANGUAGE=C
8698 export LANGUAGE
8699
8700 # We cannot yet rely on "unset" to work, but we need these variables
8701 # to be unset--not just set to an empty or harmless value--now, to
8702 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
8703 # also avoids known problems related to "unset" and subshell syntax
8704 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
8705 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
8706 do eval test \${$as_var+y} \
8707 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8708 done
8709
8710 # Ensure that fds 0, 1, and 2 are open.
8711 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
8712 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
8713 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
8714
8715 # The user is always right.
8716 if ${PATH_SEPARATOR+false} :; then
8717 PATH_SEPARATOR=:
8718 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8719 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8720 PATH_SEPARATOR=';'
8721 }
8722 fi
8723
8724
8725 # Find who we are. Look in the path if we contain no directory separator.
8726 as_myself=
8727 case $0 in #((
8728 *[\\/]* ) as_myself=$0 ;;
8729 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 for as_dir in $PATH
8731 do
8732 IFS=$as_save_IFS
8733 case $as_dir in #(((
8734 '') as_dir=./ ;;
8735 */) ;;
8736 *) as_dir=$as_dir/ ;;
8737 esac
8738 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
8739 done
8740 IFS=$as_save_IFS
8741
8742 ;;
8743 esac
8744 # We did not find ourselves, most probably we were run as 'sh COMMAND'
8745 # in which case we are not to be found in the path.
8746 if test "x$as_myself" = x; then
8747 as_myself=$0
8748 fi
8749 if test ! -f "$as_myself"; then
8750 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8751 exit 1
8752 fi
8753
8754
8755
8756 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8757 # ----------------------------------------
8758 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8759 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8760 # script with STATUS, using 1 if that was 0.
8761 as_fn_error ()
8762 {
8763 as_status=$1; test $as_status -eq 0 && as_status=1
8764 if test "$4"; then
8765 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8766 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8767 fi
8768 printf "%s\n" "$as_me: error: $2" >&2
8769 as_fn_exit $as_status
8770 } # as_fn_error
8771
8772
8773 # as_fn_set_status STATUS
8774 # -----------------------
8775 # Set $? to STATUS, without forking.
8776 as_fn_set_status ()
8777 {
8778 return $1
8779 } # as_fn_set_status
8780
8781 # as_fn_exit STATUS
8782 # -----------------
8783 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8784 as_fn_exit ()
8785 {
8786 set +e
8787 as_fn_set_status $1
8788 exit $1
8789 } # as_fn_exit
8790
8791 # as_fn_unset VAR
8792 # ---------------
8793 # Portably unset VAR.
8794 as_fn_unset ()
8795 {
8796 { eval $1=; unset $1;}
8797 }
8798 as_unset=as_fn_unset
8799
8800 # as_fn_append VAR VALUE
8801 # ----------------------
8802 # Append the text in VALUE to the end of the definition contained in VAR. Take
8803 # advantage of any shell optimizations that allow amortized linear growth over
8804 # repeated appends, instead of the typical quadratic growth present in naive
8805 # implementations.
8806 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
8807 then :
8808 eval 'as_fn_append ()
8809 {
8810 eval $1+=\$2
8811 }'
8812 else case e in #(
8813 e) as_fn_append ()
8814 {
8815 eval $1=\$$1\$2
8816 } ;;
8817 esac
8818 fi # as_fn_append
8819
8820 # as_fn_arith ARG...
8821 # ------------------
8822 # Perform arithmetic evaluation on the ARGs, and store the result in the
8823 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8824 # must be portable across $(()) and expr.
8825 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
8826 then :
8827 eval 'as_fn_arith ()
8828 {
8829 as_val=$(( $* ))
8830 }'
8831 else case e in #(
8832 e) as_fn_arith ()
8833 {
8834 as_val=`expr "$@" || test $? -eq 1`
8835 } ;;
8836 esac
8837 fi # as_fn_arith
8838
8839
8840 if expr a : '\(a\)' >/dev/null 2>&1 &&
8841 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8842 as_expr=expr
8843 else
8844 as_expr=false
8845 fi
8846
8847 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8848 as_basename=basename
8849 else
8850 as_basename=false
8851 fi
8852
8853 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8854 as_dirname=dirname
8855 else
8856 as_dirname=false
8857 fi
8858
8859 as_me=`$as_basename -- "$0" ||
8860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8861 X"$0" : 'X\(//\)$' \| \
8862 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8863 printf "%s\n" X/"$0" |
8864 sed '/^.*\/\([^/][^/]*\)\/*$/{
8865 s//\1/
8866 q
8867 }
8868 /^X\/\(\/\/\)$/{
8869 s//\1/
8870 q
8871 }
8872 /^X\/\(\/\).*/{
8873 s//\1/
8874 q
8875 }
8876 s/.*/./; q'`
8877
8878 # Avoid depending upon Character Ranges.
8879 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8880 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8881 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8882 as_cr_digits='0123456789'
8883 as_cr_alnum=$as_cr_Letters$as_cr_digits
8884
8885
8886 # Determine whether it's possible to make 'echo' print without a newline.
8887 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
8888 # for compatibility with existing Makefiles.
8889 ECHO_C= ECHO_N= ECHO_T=
8890 case `echo -n x` in #(((((
8891 -n*)
8892 case `echo 'xy\c'` in
8893 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8894 xy) ECHO_C='\c';;
8895 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8896 ECHO_T=' ';;
8897 esac;;
8898 *)
8899 ECHO_N='-n';;
8900 esac
8901
8902 # For backward compatibility with old third-party macros, we provide
8903 # the shell variables $as_echo and $as_echo_n. New code should use
8904 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
8905 as_echo='printf %s\n'
8906 as_echo_n='printf %s'
8907
8908 rm -f conf$$ conf$$.exe conf$$.file
8909 if test -d conf$$.dir; then
8910 rm -f conf$$.dir/conf$$.file
8911 else
8912 rm -f conf$$.dir
8913 mkdir conf$$.dir 2>/dev/null
8914 fi
8915 if (echo >conf$$.file) 2>/dev/null; then
8916 if ln -s conf$$.file conf$$ 2>/dev/null; then
8917 as_ln_s='ln -s'
8918 # ... but there are two gotchas:
8919 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
8920 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
8921 # In both cases, we have to default to 'cp -pR'.
8922 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8923 as_ln_s='cp -pR'
8924 elif ln conf$$.file conf$$ 2>/dev/null; then
8925 as_ln_s=ln
8926 else
8927 as_ln_s='cp -pR'
8928 fi
8929 else
8930 as_ln_s='cp -pR'
8931 fi
8932 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8933 rmdir conf$$.dir 2>/dev/null
8934
8935
8936 # as_fn_mkdir_p
8937 # -------------
8938 # Create "$as_dir" as a directory, including parents if necessary.
8939 as_fn_mkdir_p ()
8940 {
8941
8942 case $as_dir in #(
8943 -*) as_dir=./$as_dir;;
8944 esac
8945 test -d "$as_dir" || eval $as_mkdir_p || {
8946 as_dirs=
8947 while :; do
8948 case $as_dir in #(
8949 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8950 *) as_qdir=$as_dir;;
8951 esac
8952 as_dirs="'$as_qdir' $as_dirs"
8953 as_dir=`$as_dirname -- "$as_dir" ||
8954 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8955 X"$as_dir" : 'X\(//\)[^/]' \| \
8956 X"$as_dir" : 'X\(//\)$' \| \
8957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8958 printf "%s\n" X"$as_dir" |
8959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8960 s//\1/
8961 q
8962 }
8963 /^X\(\/\/\)[^/].*/{
8964 s//\1/
8965 q
8966 }
8967 /^X\(\/\/\)$/{
8968 s//\1/
8969 q
8970 }
8971 /^X\(\/\).*/{
8972 s//\1/
8973 q
8974 }
8975 s/.*/./; q'`
8976 test -d "$as_dir" && break
8977 done
8978 test -z "$as_dirs" || eval "mkdir $as_dirs"
8979 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8980
8981
8982 } # as_fn_mkdir_p
8983 if mkdir -p . 2>/dev/null; then
8984 as_mkdir_p='mkdir -p "$as_dir"'
8985 else
8986 test -d ./-p && rmdir ./-p
8987 as_mkdir_p=false
8988 fi
8989
8990
8991 # as_fn_executable_p FILE
8992 # -----------------------
8993 # Test if FILE is an executable regular file.
8994 as_fn_executable_p ()
8995 {
8996 test -f "$1" && test -x "$1"
8997 } # as_fn_executable_p
8998 as_test_x='test -x'
8999 as_executable_p=as_fn_executable_p
9000
9001 # Sed expression to map a string onto a valid CPP name.
9002 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9003 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
9004
9005 # Sed expression to map a string onto a valid variable name.
9006 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9007 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
9008
9009
9010 exec 6>&1
9011 ## ----------------------------------- ##
9012 ## Main body of $CONFIG_STATUS script. ##
9013 ## ----------------------------------- ##
9014 _ASEOF
9015 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9016
9017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9018 # Save the log message, to keep $0 and so on meaningful, and to
9019 # report actual input values of CONFIG_FILES etc. instead of their
9020 # values after options handling.
9021 ac_log="
9022 This file was extended by ICU $as_me 77.1, which was
9023 generated by GNU Autoconf 2.72. Invocation command line was
9024
9025 CONFIG_FILES = $CONFIG_FILES
9026 CONFIG_HEADERS = $CONFIG_HEADERS
9027 CONFIG_LINKS = $CONFIG_LINKS
9028 CONFIG_COMMANDS = $CONFIG_COMMANDS
9029 $ $0 $@
9030
9031 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9032 "
9033
9034 _ACEOF
9035
9036 case $ac_config_files in *"
9037 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9038 esac
9039
9040
9041
9042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9043 # Files that config.status was made for.
9044 config_files="$ac_config_files"
9045
9046 _ACEOF
9047
9048 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9049 ac_cs_usage="\
9050 '$as_me' instantiates files and other configuration actions
9051 from templates according to the current configuration. Unless the files
9052 and actions are specified as TAGs, all are instantiated by default.
9053
9054 Usage: $0 [OPTION]... [TAG]...
9055
9056 -h, --help print this help, then exit
9057 -V, --version print version number and configuration settings, then exit
9058 --config print configuration, then exit
9059 -q, --quiet, --silent
9060 do not print progress messages
9061 -d, --debug don't remove temporary files
9062 --recheck update $as_me by reconfiguring in the same conditions
9063 --file=FILE[:TEMPLATE]
9064 instantiate the configuration file FILE
9065
9066 Configuration files:
9067 $config_files
9068
9069 Report bugs to <https://icu.unicode.org/bugs>.
9070 ICU home page: <https://icu.unicode.org/>."
9071
9072 _ACEOF
9073 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
9074 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
9075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9076 ac_cs_config='$ac_cs_config_escaped'
9077 ac_cs_version="\\
9078 ICU config.status 77.1
9079 configured by $0, generated by GNU Autoconf 2.72,
9080 with options \\"\$ac_cs_config\\"
9081
9082 Copyright (C) 2023 Free Software Foundation, Inc.
9083 This config.status script is free software; the Free Software Foundation
9084 gives unlimited permission to copy, distribute and modify it."
9085
9086 ac_pwd='$ac_pwd'
9087 srcdir='$srcdir'
9088 INSTALL='$INSTALL'
9089 test -n "\$AWK" || AWK=awk
9090 _ACEOF
9091
9092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9093 # The default lists apply if the user does not specify any file.
9094 ac_need_defaults=:
9095 while test $# != 0
9096 do
9097 case $1 in
9098 --*=?*)
9099 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9100 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9101 ac_shift=:
9102 ;;
9103 --*=)
9104 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9105 ac_optarg=
9106 ac_shift=:
9107 ;;
9108 *)
9109 ac_option=$1
9110 ac_optarg=$2
9111 ac_shift=shift
9112 ;;
9113 esac
9114
9115 case $ac_option in
9116 # Handling of the options.
9117 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9118 ac_cs_recheck=: ;;
9119 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9120 printf "%s\n" "$ac_cs_version"; exit ;;
9121 --config | --confi | --conf | --con | --co | --c )
9122 printf "%s\n" "$ac_cs_config"; exit ;;
9123 --debug | --debu | --deb | --de | --d | -d )
9124 debug=: ;;
9125 --file | --fil | --fi | --f )
9126 $ac_shift
9127 case $ac_optarg in
9128 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9129 '') as_fn_error $? "missing file argument" ;;
9130 esac
9131 as_fn_append CONFIG_FILES " '$ac_optarg'"
9132 ac_need_defaults=false;;
9133 --he | --h | --help | --hel | -h )
9134 printf "%s\n" "$ac_cs_usage"; exit ;;
9135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9136 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9137 ac_cs_silent=: ;;
9138
9139 # This is an error.
9140 -*) as_fn_error $? "unrecognized option: '$1'
9141 Try '$0 --help' for more information." ;;
9142
9143 *) as_fn_append ac_config_targets " $1"
9144 ac_need_defaults=false ;;
9145
9146 esac
9147 shift
9148 done
9149
9150 ac_configure_extra_args=
9151
9152 if $ac_cs_silent; then
9153 exec 6>/dev/null
9154 ac_configure_extra_args="$ac_configure_extra_args --silent"
9155 fi
9156
9157 _ACEOF
9158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9159 if \$ac_cs_recheck; then
9160 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9161 shift
9162 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
9163 CONFIG_SHELL='$SHELL'
9164 export CONFIG_SHELL
9165 exec "\$@"
9166 fi
9167
9168 _ACEOF
9169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9170 exec 5>>config.log
9171 {
9172 echo
9173 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9174 ## Running $as_me. ##
9175 _ASBOX
9176 printf "%s\n" "$ac_log"
9177 } >&5
9178
9179 _ACEOF
9180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9181 _ACEOF
9182
9183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9184
9185 # Handling of arguments.
9186 for ac_config_target in $ac_config_targets
9187 do
9188 case $ac_config_target in
9189 "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;;
9190 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9191 "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;;
9192 "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;;
9193 "config/icu.pc") CONFIG_FILES="$CONFIG_FILES config/icu.pc" ;;
9194 "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;;
9195 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
9196 "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;;
9197 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
9198 "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;;
9199 "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;;
9200 "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
9201 "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
9202 "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;;
9203 "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
9204 "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;;
9205 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
9206 "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;;
9207 "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;;
9208 "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;;
9209 "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;;
9210 "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;;
9211 "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;;
9212 "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;;
9213 "tools/gendict/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gendict/Makefile" ;;
9214 "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;;
9215 "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;;
9216 "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;;
9217 "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;;
9218 "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;;
9219 "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;;
9220 "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;;
9221 "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;;
9222 "tools/icuexportdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuexportdata/Makefile" ;;
9223 "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;;
9224 "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;;
9225 "tools/escapesrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/escapesrc/Makefile" ;;
9226 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
9227 "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;;
9228 "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;;
9229 "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
9230 "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;;
9231 "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;;
9232 "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;;
9233 "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;;
9234 "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;;
9235 "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;;
9236 "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
9237 "test/perf/collperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf/Makefile" ;;
9238 "test/perf/collperf2/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf2/Makefile" ;;
9239 "test/perf/dicttrieperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;;
9240 "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
9241 "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;;
9242 "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;;
9243 "test/perf/localecanperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/localecanperf/Makefile" ;;
9244 "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;;
9245 "test/perf/DateFmtPerf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;;
9246 "test/perf/howExpensiveIs/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;;
9247 "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
9248 "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
9249 "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
9250 "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
9251 "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
9252 "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
9253 "test/fuzzer/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzer/Makefile" ;;
9254 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
9255
9256 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
9257 esac
9258 done
9259
9260
9261 # If the user did not use the arguments to specify the items to instantiate,
9262 # then the envvar interface is used. Set only those that are not.
9263 # We use the long form for the default assignment because of an extremely
9264 # bizarre bug on SunOS 4.1.3.
9265 if $ac_need_defaults; then
9266 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
9267 fi
9268
9269 # Have a temporary directory for convenience. Make it in the build tree
9270 # simply because there is no reason against having it here, and in addition,
9271 # creating and moving files from /tmp can sometimes cause problems.
9272 # Hook for its removal unless debugging.
9273 # Note that there is a small window in which the directory will not be cleaned:
9274 # after its creation but before its name has been assigned to '$tmp'.
9275 $debug ||
9276 {
9277 tmp= ac_tmp=
9278 trap 'exit_status=$?
9279 : "${ac_tmp:=$tmp}"
9280 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9281 ' 0
9282 trap 'as_fn_exit 1' 1 2 13 15
9283 }
9284 # Create a (secure) tmp directory for tmp files.
9285
9286 {
9287 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9288 test -d "$tmp"
9289 } ||
9290 {
9291 tmp=./conf$$-$RANDOM
9292 (umask 077 && mkdir "$tmp")
9293 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9294 ac_tmp=$tmp
9295
9296 # Set up the scripts for CONFIG_FILES section.
9297 # No need to generate them if there are no CONFIG_FILES.
9298 # This happens for instance with './config.status config.h'.
9299 if test -n "$CONFIG_FILES"; then
9300
9301
9302 ac_cr=`echo X | tr X '\015'`
9303 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9304 # But we know of no other shell where ac_cr would be empty at this
9305 # point, so we can use a bashism as a fallback.
9306 if test "x$ac_cr" = x; then
9307 eval ac_cr=\$\'\\r\'
9308 fi
9309 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9310 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9311 ac_cs_awk_cr='\\r'
9312 else
9313 ac_cs_awk_cr=$ac_cr
9314 fi
9315
9316 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9317 _ACEOF
9318
9319
9320 {
9321 echo "cat >conf$$subs.awk <<_ACEOF" &&
9322 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9323 echo "_ACEOF"
9324 } >conf$$subs.sh ||
9325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9326 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9327 ac_delim='%!_!# '
9328 for ac_last_try in false false false false false :; do
9329 . ./conf$$subs.sh ||
9330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9331
9332 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9333 if test $ac_delim_n = $ac_delim_num; then
9334 break
9335 elif $ac_last_try; then
9336 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9337 else
9338 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9339 fi
9340 done
9341 rm -f conf$$subs.sh
9342
9343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9344 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9345 _ACEOF
9346 sed -n '
9347 h
9348 s/^/S["/; s/!.*/"]=/
9349 p
9350 g
9351 s/^[^!]*!//
9352 :repl
9353 t repl
9354 s/'"$ac_delim"'$//
9355 t delim
9356 :nl
9357 h
9358 s/\(.\{148\}\)..*/\1/
9359 t more1
9360 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9361 p
9362 n
9363 b repl
9364 :more1
9365 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9366 p
9367 g
9368 s/.\{148\}//
9369 t nl
9370 :delim
9371 h
9372 s/\(.\{148\}\)..*/\1/
9373 t more2
9374 s/["\\]/\\&/g; s/^/"/; s/$/"/
9375 p
9376 b
9377 :more2
9378 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9379 p
9380 g
9381 s/.\{148\}//
9382 t delim
9383 ' <conf$$subs.awk | sed '
9384 /^[^""]/{
9385 N
9386 s/\n//
9387 }
9388 ' >>$CONFIG_STATUS || ac_write_fail=1
9389 rm -f conf$$subs.awk
9390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9391 _ACAWK
9392 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9393 for (key in S) S_is_set[key] = 1
9394 FS = ""
9395
9396 }
9397 {
9398 line = $ 0
9399 nfields = split(line, field, "@")
9400 substed = 0
9401 len = length(field[1])
9402 for (i = 2; i < nfields; i++) {
9403 key = field[i]
9404 keylen = length(key)
9405 if (S_is_set[key]) {
9406 value = S[key]
9407 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9408 len += length(value) + length(field[++i])
9409 substed = 1
9410 } else
9411 len += 1 + keylen
9412 }
9413
9414 print line
9415 }
9416
9417 _ACAWK
9418 _ACEOF
9419 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9420 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9421 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9422 else
9423 cat
9424 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9425 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9426 _ACEOF
9427
9428 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9429 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9430 # trailing colons and then remove the whole line if VPATH becomes empty
9431 # (actually we leave an empty line to preserve line numbers).
9432 if test "x$srcdir" = x.; then
9433 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9434 h
9435 s///
9436 s/^/:/
9437 s/[ ]*$/:/
9438 s/:\$(srcdir):/:/g
9439 s/:\${srcdir}:/:/g
9440 s/:@srcdir@:/:/g
9441 s/^:*//
9442 s/:*$//
9443 x
9444 s/\(=[ ]*\).*/\1/
9445 G
9446 s/\n//
9447 s/^[^=]*=[ ]*$//
9448 }'
9449 fi
9450
9451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9452 fi # test -n "$CONFIG_FILES"
9453
9454
9455 eval set X " :F $CONFIG_FILES "
9456 shift
9457 for ac_tag
9458 do
9459 case $ac_tag in
9460 :[FHLC]) ac_mode=$ac_tag; continue;;
9461 esac
9462 case $ac_mode$ac_tag in
9463 :[FHL]*:*);;
9464 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
9465 :[FH]-) ac_tag=-:-;;
9466 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9467 esac
9468 ac_save_IFS=$IFS
9469 IFS=:
9470 set x $ac_tag
9471 IFS=$ac_save_IFS
9472 shift
9473 ac_file=$1
9474 shift
9475
9476 case $ac_mode in
9477 :L) ac_source=$1;;
9478 :[FH])
9479 ac_file_inputs=
9480 for ac_f
9481 do
9482 case $ac_f in
9483 -) ac_f="$ac_tmp/stdin";;
9484 *) # Look for the file first in the build tree, then in the source tree
9485 # (if the path is not absolute). The absolute path cannot be DOS-style,
9486 # because $ac_f cannot contain ':'.
9487 test -f "$ac_f" ||
9488 case $ac_f in
9489 [\\/$]*) false;;
9490 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9491 esac ||
9492 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
9493 esac
9494 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9495 as_fn_append ac_file_inputs " '$ac_f'"
9496 done
9497
9498 # Let's still pretend it is 'configure' which instantiates (i.e., don't
9499 # use $as_me), people would be surprised to read:
9500 # /* config.h. Generated by config.status. */
9501 configure_input='Generated from '`
9502 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9503 `' by configure.'
9504 if test x"$ac_file" != x-; then
9505 configure_input="$ac_file. $configure_input"
9506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9507 printf "%s\n" "$as_me: creating $ac_file" >&6;}
9508 fi
9509 # Neutralize special characters interpreted by sed in replacement strings.
9510 case $configure_input in #(
9511 *\&* | *\|* | *\\* )
9512 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
9513 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9514 *) ac_sed_conf_input=$configure_input;;
9515 esac
9516
9517 case $ac_tag in
9518 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9519 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9520 esac
9521 ;;
9522 esac
9523
9524 ac_dir=`$as_dirname -- "$ac_file" ||
9525 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9526 X"$ac_file" : 'X\(//\)[^/]' \| \
9527 X"$ac_file" : 'X\(//\)$' \| \
9528 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9529 printf "%s\n" X"$ac_file" |
9530 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9531 s//\1/
9532 q
9533 }
9534 /^X\(\/\/\)[^/].*/{
9535 s//\1/
9536 q
9537 }
9538 /^X\(\/\/\)$/{
9539 s//\1/
9540 q
9541 }
9542 /^X\(\/\).*/{
9543 s//\1/
9544 q
9545 }
9546 s/.*/./; q'`
9547 as_dir="$ac_dir"; as_fn_mkdir_p
9548 ac_builddir=.
9549
9550 case "$ac_dir" in
9551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9552 *)
9553 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
9554 # A ".." for each directory in $ac_dir_suffix.
9555 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9556 case $ac_top_builddir_sub in
9557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9559 esac ;;
9560 esac
9561 ac_abs_top_builddir=$ac_pwd
9562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9563 # for backward compatibility:
9564 ac_top_builddir=$ac_top_build_prefix
9565
9566 case $srcdir in
9567 .) # We are building in place.
9568 ac_srcdir=.
9569 ac_top_srcdir=$ac_top_builddir_sub
9570 ac_abs_top_srcdir=$ac_pwd ;;
9571 [\\/]* | ?:[\\/]* ) # Absolute name.
9572 ac_srcdir=$srcdir$ac_dir_suffix;
9573 ac_top_srcdir=$srcdir
9574 ac_abs_top_srcdir=$srcdir ;;
9575 *) # Relative name.
9576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9577 ac_top_srcdir=$ac_top_build_prefix$srcdir
9578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9579 esac
9580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9581
9582
9583 case $ac_mode in
9584 :F)
9585 #
9586 # CONFIG_FILE
9587 #
9588
9589 case $INSTALL in
9590 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9591 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9592 esac
9593 _ACEOF
9594
9595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9596 # If the template does not know about datarootdir, expand it.
9597 # FIXME: This hack should be removed a few years after 2.60.
9598 ac_datarootdir_hack=; ac_datarootdir_seen=
9599 ac_sed_dataroot='
9600 /datarootdir/ {
9601 p
9602 q
9603 }
9604 /@datadir@/p
9605 /@docdir@/p
9606 /@infodir@/p
9607 /@localedir@/p
9608 /@mandir@/p'
9609 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9610 *datarootdir*) ac_datarootdir_seen=yes;;
9611 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9613 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9614 _ACEOF
9615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9616 ac_datarootdir_hack='
9617 s&@datadir@&$datadir&g
9618 s&@docdir@&$docdir&g
9619 s&@infodir@&$infodir&g
9620 s&@localedir@&$localedir&g
9621 s&@mandir@&$mandir&g
9622 s&\\\${datarootdir}&$datarootdir&g' ;;
9623 esac
9624 _ACEOF
9625
9626 # Neutralize VPATH when '$srcdir' = '.'.
9627 # Shell code in configure.ac might set extrasub.
9628 # FIXME: do we really want to maintain this feature?
9629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9630 ac_sed_extra="$ac_vpsub
9631 $extrasub
9632 _ACEOF
9633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9634 :t
9635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9636 s|@configure_input@|$ac_sed_conf_input|;t t
9637 s&@top_builddir@&$ac_top_builddir_sub&;t t
9638 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9639 s&@srcdir@&$ac_srcdir&;t t
9640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9641 s&@top_srcdir@&$ac_top_srcdir&;t t
9642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9643 s&@builddir@&$ac_builddir&;t t
9644 s&@abs_builddir@&$ac_abs_builddir&;t t
9645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9646 s&@INSTALL@&$ac_INSTALL&;t t
9647 $ac_datarootdir_hack
9648 "
9649 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9650 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9651
9652 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9653 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9654 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9655 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9657 which seems to be undefined. Please make sure it is defined" >&5
9658 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
9659 which seems to be undefined. Please make sure it is defined" >&2;}
9660
9661 rm -f "$ac_tmp/stdin"
9662 case $ac_file in
9663 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9664 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9665 esac \
9666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9667 ;;
9668
9669
9670
9671 esac
9672
9673 done # for ac_tag
9674
9675
9676 as_fn_exit 0
9677 _ACEOF
9678 ac_clean_files=$ac_clean_files_save
9679
9680 test $ac_write_fail = 0 ||
9681 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9682
9683
9684 # configure is writing to config.log, and then calls config.status.
9685 # config.status does its own redirection, appending to config.log.
9686 # Unfortunately, on DOS this fails, as config.log is still kept open
9687 # by configure, so config.status won't be able to write to it; its
9688 # output is simply discarded. So we exec the FD to /dev/null,
9689 # effectively closing config.log, so it can be properly (re)opened and
9690 # appended to by config.status. When coming back to configure, we
9691 # need to make the FD available again.
9692 if test "$no_create" != yes; then
9693 ac_cs_success=:
9694 ac_config_status_args=
9695 test "$silent" = yes &&
9696 ac_config_status_args="$ac_config_status_args --quiet"
9697 exec 5>/dev/null
9698 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9699 exec 5>>config.log
9700 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9701 # would make configure fail if this is the last instruction.
9702 $ac_cs_success || as_fn_exit 1
9703 fi
9704 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9706 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9707 fi
9708
9709
9710 if test -z "$PYTHON";
9711 then
9712 echo "" > data/rules.mk
9713 echo "" > test/testdata/rules.mk
9714 else
9715 if test -f "$srcdir/data/locales/root.txt";
9716 then
9717 echo "Spawning Python to generate data/rules.mk..."
9718 PYTHONPATH="$srcdir/python" \
9719 $PYTHON -m icutools.databuilder \
9720 --mode gnumake \
9721 --seqmode parallel \
9722 --src_dir "$srcdir/data" \
9723 --filter_file "$ICU_DATA_FILTER_FILE" \
9724 $ICU_DATA_BUILDTOOL_OPTS \
9725 > data/rules.mk
9726 if test "$?" != "0"; then
9727 as_fn_error $? "Python failed to run; see above error." "$LINENO" 5
9728 fi
9729 else
9730 echo "Not rebuilding data/rules.mk, assuming prebuilt data in data/in"
9731 touch data/rules.mk
9732 fi
9733 echo "Spawning Python to generate test/testdata/rules.mk..."
9734 PYTHONPATH="$srcdir/python" \
9735 $PYTHON -m icutools.databuilder \
9736 --mode gnumake \
9737 --seqmode parallel \
9738 --src_dir "$srcdir/test/testdata" \
9739 > test/testdata/rules.mk
9740 if test "$?" != "0"; then
9741 as_fn_error $? "Python failed to run; see above error." "$LINENO" 5
9742 fi
9743 fi
9744
9745 echo
9746 echo "ICU for C/C++ $VERSION is ready to be built."
9747 echo "=== Important Notes: ==="
9748
9749 echo "Data Packaging: $datapackaging"
9750 echo " This means: $datapackaging_msg"
9751 echo " To locate data: $datapackaging_howfound"
9752
9753 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
9754 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
9755 else
9756 echo "** WARNING: $U_MAKE may not be GNU make."
9757 echo "This may cause ICU to fail to build. Please make sure that GNU make"
9758 echo "is in your PATH so that the configure script can detect its location."
9759 fi
9760 if test "x$AR" = "xfalse"; then
9761 echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail."
9762 fi
9763
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5
9765 printf %s "checking the version of \"$U_MAKE\"... " >&6; }
9766 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9768 printf "%s\n" "ok" >&6; }
9769 else
9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5
9771 printf "%s\n" "too old or test failed - try upgrading GNU Make" >&6; }
9772 fi
9773
9774
9775 if test -n "$UCONFIG_CPPFLAGS"; then
9776 HDRFILE="uconfig.h.prepend"
9777 echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:"
9778 echo
9779 echo " ${UCONFIG_CPPFLAGS}"
9780 echo
9781 echo 'The recommended way to do this is to prepend the following lines to source/common/unicode/uconfig.h or #include them near the top of that file.'
9782 echo "Creating the file ${HDRFILE}"
9783 echo
9784 echo '--------------- ' "${HDRFILE}"
9785 echo > "${HDRFILE}"
9786 echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}"
9787 echo >> "${HDRFILE}"
9788 for flag in ${UCONFIG_CPPFLAGS};
9789 do
9790 echo " /* $flag */" >> "${HDRFILE}"
9791 case "${flag}" in
9792 -D*=*)
9793 \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}"
9794 \echo >> "${HDRFILE}"
9795 ;;
9796 -D*)
9797 \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}"
9798 \echo >> "${HDRFILE}"
9799 ;;
9800 *)
9801 \echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}"
9802 \echo >> "${HDRFILE}"
9803 ;;
9804 esac
9805 done
9806 cat "${HDRFILE}"
9807 \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
9808 echo >> "${HDRFILE}"
9809 echo '--------------- end ' "${HDRFILE}"
9810 fi
9811
9812
9813 if test -n "$UCONFIG_CFLAGS"; then
9814 echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}"
9815 fi
9816
9817 if test -n "$UCONFIG_CXXFLAGS"; then
9818 echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}"
9819 fi
9820
9821 if test "$tools" = false;
9822 then
9823 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests."
9824 echo "## Expect build failures in the 'data', 'test', and other directories."
9825 fi
9826
9827 if test -z "$PYTHON";
9828 then
9829 echo "** Note: Python not found. You will not be able to build data from source or run tests."
9830 fi
9831
9832 $as_unset _CXX_CXXSUFFIX
9833