Backed out changeset 2450366cf7ca (bug 1891629) for causing win msix mochitest failures
[gecko.git] / intl / icu / source / configure
blob1e5ffadce7413aa17d49689080dcca62e478c14b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ICU 73.1.
5 # Report bugs to <http://icu-project.org/bugs>.
7 # Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html
10 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
34 esac
38 as_nl='
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
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
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 # Use a proper internal environment variable to ensure we don't fall
140 # into an infinite loop, continuously re-executing ourselves.
141 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
142 _as_can_reexec=no; export _as_can_reexec;
143 # We cannot yet assume a decent shell, so we have to provide a
144 # neutralization value for shells without unset; and this also
145 # works around shells that cannot unset nonexistent variables.
146 # Preserve -v and -x to the replacement shell.
147 BASH_ENV=/dev/null
148 ENV=/dev/null
149 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
150 case $- in # ((((
151 *v*x* | *x*v* ) as_opts=-vx ;;
152 *v* ) as_opts=-v ;;
153 *x* ) as_opts=-x ;;
154 * ) as_opts= ;;
155 esac
156 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
157 # Admittedly, this is quite paranoid, since all the known shells bail
158 # out after a failed `exec'.
159 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 as_fn_exit 255
162 # We don't want this to propagate to other subprocesses.
163 { _as_can_reexec=; unset _as_can_reexec;}
164 if test "x$CONFIG_SHELL" = x; then
165 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 emulate sh
167 NULLCMD=:
168 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
169 # is contrary to our usage. Disable this feature.
170 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 setopt NO_GLOB_SUBST
172 else
173 case \`(set -o) 2>/dev/null\` in #(
174 *posix*) :
175 set -o posix ;; #(
176 *) :
178 esac
181 as_required="as_fn_return () { (exit \$1); }
182 as_fn_success () { as_fn_return 0; }
183 as_fn_failure () { as_fn_return 1; }
184 as_fn_ret_success () { return 0; }
185 as_fn_ret_failure () { return 1; }
187 exitcode=0
188 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
189 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
190 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
191 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
192 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
194 else
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || exit 1
198 test -x / || exit 1"
199 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
200 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
201 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
202 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
203 test \$(( 1 + 1 )) = 2 || exit 1"
204 if (eval "$as_required") 2>/dev/null; then :
205 as_have_required=yes
206 else
207 as_have_required=no
209 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
211 else
212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
213 as_found=false
214 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
216 IFS=$as_save_IFS
217 test -z "$as_dir" && as_dir=.
218 as_found=:
219 case $as_dir in #(
221 for as_base in sh bash ksh sh5; do
222 # Try only shells that exist, to save several forks.
223 as_shell=$as_dir/$as_base
224 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
225 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 CONFIG_SHELL=$as_shell as_have_required=yes
227 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
228 break 2
231 done;;
232 esac
233 as_found=false
234 done
235 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
236 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
237 CONFIG_SHELL=$SHELL as_have_required=yes
238 fi; }
239 IFS=$as_save_IFS
242 if test "x$CONFIG_SHELL" != x; then :
243 export CONFIG_SHELL
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
248 BASH_ENV=/dev/null
249 ENV=/dev/null
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
251 case $- in # ((((
252 *v*x* | *x*v* ) as_opts=-vx ;;
253 *v* ) as_opts=-v ;;
254 *x* ) as_opts=-x ;;
255 * ) as_opts= ;;
256 esac
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
261 exit 255
264 if test x$as_have_required = xno; then :
265 $as_echo "$0: This script requires a shell more modern than all"
266 $as_echo "$0: the shells that I found on your system."
267 if test x${ZSH_VERSION+set} = xset ; then
268 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 $as_echo "$0: Please tell bug-autoconf@gnu.org and
272 $0: http://icu-project.org/bugs about your system,
273 $0: including any error possibly output before this
274 $0: message. Then install a modern shell, or manually run
275 $0: the script under such a shell if you do have one."
277 exit 1
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
295 { eval $1=; unset $1;}
297 as_unset=as_fn_unset
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
304 return $1
305 } # as_fn_set_status
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
317 # as_fn_mkdir_p
318 # -------------
319 # Create "$as_dir" as a directory, including parents if necessary.
320 as_fn_mkdir_p ()
323 case $as_dir in #(
324 -*) as_dir=./$as_dir;;
325 esac
326 test -d "$as_dir" || eval $as_mkdir_p || {
327 as_dirs=
328 while :; do
329 case $as_dir in #(
330 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 *) as_qdir=$as_dir;;
332 esac
333 as_dirs="'$as_qdir' $as_dirs"
334 as_dir=`$as_dirname -- "$as_dir" ||
335 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
336 X"$as_dir" : 'X\(//\)[^/]' \| \
337 X"$as_dir" : 'X\(//\)$' \| \
338 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
339 $as_echo X"$as_dir" |
340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 s//\1/
344 /^X\(\/\/\)[^/].*/{
345 s//\1/
348 /^X\(\/\/\)$/{
349 s//\1/
352 /^X\(\/\).*/{
353 s//\1/
356 s/.*/./; q'`
357 test -d "$as_dir" && break
358 done
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
363 } # as_fn_mkdir_p
365 # as_fn_executable_p FILE
366 # -----------------------
367 # Test if FILE is an executable regular file.
368 as_fn_executable_p ()
370 test -f "$1" && test -x "$1"
371 } # as_fn_executable_p
372 # as_fn_append VAR VALUE
373 # ----------------------
374 # Append the text in VALUE to the end of the definition contained in VAR. Take
375 # advantage of any shell optimizations that allow amortized linear growth over
376 # repeated appends, instead of the typical quadratic growth present in naive
377 # implementations.
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
379 eval 'as_fn_append ()
381 eval $1+=\$2
383 else
384 as_fn_append ()
386 eval $1=\$$1\$2
388 fi # as_fn_append
390 # as_fn_arith ARG...
391 # ------------------
392 # Perform arithmetic evaluation on the ARGs, and store the result in the
393 # global $as_val. Take advantage of shells that can avoid forks. The arguments
394 # must be portable across $(()) and expr.
395 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
396 eval 'as_fn_arith ()
398 as_val=$(( $* ))
400 else
401 as_fn_arith ()
403 as_val=`expr "$@" || test $? -eq 1`
405 fi # as_fn_arith
408 # as_fn_error STATUS ERROR [LINENO LOG_FD]
409 # ----------------------------------------
410 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
411 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
412 # script with STATUS, using 1 if that was 0.
413 as_fn_error ()
415 as_status=$1; test $as_status -eq 0 && as_status=1
416 if test "$4"; then
417 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
418 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
420 $as_echo "$as_me: error: $2" >&2
421 as_fn_exit $as_status
422 } # as_fn_error
424 if expr a : '\(a\)' >/dev/null 2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 as_expr=expr
427 else
428 as_expr=false
431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 as_basename=basename
433 else
434 as_basename=false
437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_dirname=dirname
439 else
440 as_dirname=false
443 as_me=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
447 $as_echo X/"$0" |
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
449 s//\1/
452 /^X\/\(\/\/\)$/{
453 s//\1/
456 /^X\/\(\/\).*/{
457 s//\1/
460 s/.*/./; q'`
462 # Avoid depending upon Character Ranges.
463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
466 as_cr_digits='0123456789'
467 as_cr_alnum=$as_cr_Letters$as_cr_digits
470 as_lineno_1=$LINENO as_lineno_1a=$LINENO
471 as_lineno_2=$LINENO as_lineno_2a=$LINENO
472 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
473 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
474 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
475 sed -n '
477 /[$]LINENO/=
478 ' <$as_myself |
479 sed '
480 s/[$]LINENO.*/&-/
481 t lineno
483 :lineno
485 :loop
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
487 t loop
488 s/-\n.*//
489 ' >$as_me.lineno &&
490 chmod +x "$as_me.lineno" ||
491 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
493 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
494 # already done that, so ensure we don't try to do so again and fall
495 # in an infinite loop. This has already happened in practice.
496 _as_can_reexec=no; export _as_can_reexec
497 # Don't try to exec as it changes $[0], causing all sort of problems
498 # (the dirname of $[0] is not the place where we might find the
499 # original and so on. Autoconf is especially sensitive to this).
500 . "./$as_me.lineno"
501 # Exit status is that of the last command.
502 exit
505 ECHO_C= ECHO_N= ECHO_T=
506 case `echo -n x` in #(((((
507 -n*)
508 case `echo 'xy\c'` in
509 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
510 xy) ECHO_C='\c';;
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
512 ECHO_T=' ';;
513 esac;;
515 ECHO_N='-n';;
516 esac
518 rm -f conf$$ conf$$.exe conf$$.file
519 if test -d conf$$.dir; then
520 rm -f conf$$.dir/conf$$.file
521 else
522 rm -f conf$$.dir
523 mkdir conf$$.dir 2>/dev/null
525 if (echo >conf$$.file) 2>/dev/null; then
526 if ln -s conf$$.file conf$$ 2>/dev/null; then
527 as_ln_s='ln -s'
528 # ... but there are two gotchas:
529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
531 # In both cases, we have to default to `cp -pR'.
532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
533 as_ln_s='cp -pR'
534 elif ln conf$$.file conf$$ 2>/dev/null; then
535 as_ln_s=ln
536 else
537 as_ln_s='cp -pR'
539 else
540 as_ln_s='cp -pR'
542 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
543 rmdir conf$$.dir 2>/dev/null
545 if mkdir -p . 2>/dev/null; then
546 as_mkdir_p='mkdir -p "$as_dir"'
547 else
548 test -d ./-p && rmdir ./-p
549 as_mkdir_p=false
552 as_test_x='test -x'
553 as_executable_p=as_fn_executable_p
555 # Sed expression to map a string onto a valid CPP name.
556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
558 # Sed expression to map a string onto a valid variable name.
559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
562 test -n "$DJDIR" || exec 7<&0 </dev/null
563 exec 6>&1
565 # Name of the host.
566 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
567 # so uname gets run too.
568 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 # Initializations.
573 ac_default_prefix=/usr/local
574 ac_clean_files=
575 ac_config_libobj_dir=.
576 LIBOBJS=
577 cross_compiling=no
578 subdirs=
579 MFLAGS=
580 MAKEFLAGS=
582 # Identity of this package.
583 PACKAGE_NAME='ICU'
584 PACKAGE_TARNAME='International Components for Unicode'
585 PACKAGE_VERSION='73.1'
586 PACKAGE_STRING='ICU 73.1'
587 PACKAGE_BUGREPORT='http://icu-project.org/bugs'
588 PACKAGE_URL='http://icu-project.org'
590 ac_unique_file="common/unicode/utypes.h"
591 # Factoring default headers for most tests.
592 ac_includes_default="\
593 #include <stdio.h>
594 #ifdef HAVE_SYS_TYPES_H
595 # include <sys/types.h>
596 #endif
597 #ifdef HAVE_SYS_STAT_H
598 # include <sys/stat.h>
599 #endif
600 #ifdef STDC_HEADERS
601 # include <stdlib.h>
602 # include <stddef.h>
603 #else
604 # ifdef HAVE_STDLIB_H
605 # include <stdlib.h>
606 # endif
607 #endif
608 #ifdef HAVE_STRING_H
609 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
610 # include <memory.h>
611 # endif
612 # include <string.h>
613 #endif
614 #ifdef HAVE_STRINGS_H
615 # include <strings.h>
616 #endif
617 #ifdef HAVE_INTTYPES_H
618 # include <inttypes.h>
619 #endif
620 #ifdef HAVE_STDINT_H
621 # include <stdint.h>
622 #endif
623 #ifdef HAVE_UNISTD_H
624 # include <unistd.h>
625 #endif"
627 ac_subst_vars='UCONFIG_CXXFLAGS
628 UCONFIG_CFLAGS
629 UCONFIG_CPPFLAGS
630 LTLIBOBJS
631 LIBOBJS
632 LIBCXXFLAGS
633 LIBCFLAGS
634 platform_make_fragment
635 platform_make_fragment_name
636 platform
637 ICUDATA_CHAR
638 U_HAVE_SAMPLES
639 SAMPLES_TRUE
640 U_HAVE_TESTS
641 TESTS_TRUE
642 ICULIBSUFFIXCNAME
643 U_HAVE_LIB_SUFFIX
644 ICULIBSUFFIX
645 DATA_PACKAGING_MODE
646 thepkgicudatadir
647 pkgicudatadir
648 U_HAVE_DATA
649 DATA_TRUE
650 U_HAVE_FUZZER
651 FUZZER_TRUE
652 U_HAVE_TOOLS
653 TOOLS_TRUE
654 U_HAVE_LAYOUTEX
655 LAYOUTEX_TRUE
656 U_HAVE_ICUIO
657 ICUIO_TRUE
658 U_HAVE_EXTRAS
659 EXTRAS_TRUE
660 U_HAVE_WCSCPY
661 U_HAVE_WCHAR_H
662 U_HAVE_STRTOD_L
663 U_TIMEZONE
664 U_HAVE_TIMEZONE
665 U_TZNAME
666 U_HAVE_TZNAME
667 U_TZSET
668 U_HAVE_TZSET
669 U_HAVE_POPEN
670 U_HAVE_PLACEMENT_NEW
671 U_OVERRIDE_CXX_ALLOCATION
672 U_NL_LANGINFO_CODESET
673 U_HAVE_NL_LANGINFO_CODESET
674 U_IS_BIG_ENDIAN
675 U_HAVE_DIRENT_H
676 U_HAVE_INTTYPES_H
677 GENCCODE_ASSEMBLY
678 HAVE_MMAP
679 LIB_THREAD
680 ENABLE_RPATH
681 U_ENABLE_DYLOAD
682 U_HAVE_PLUGINS
683 PLUGINS_TRUE
684 U_ENABLE_TRACING
685 U_DISABLE_RENAMING
688 RANLIB
689 U_DEFAULT_SHOW_DRAFT
690 UCLN_NO_AUTO_CLEANUP
691 ENABLE_STATIC
692 ENABLE_SHARED
693 LIB_M
694 COMPILE_LINK_ENVVAR
695 ARFLAGS
696 EGREP
697 GREP
698 DOXYGEN
699 cross_buildroot
700 U_MAKE
701 PYTHON
702 cross_compiling
703 INSTALL_DATA
704 INSTALL_SCRIPT
705 INSTALL_PROGRAM
707 ICULEHB_LIBS
708 ICULEHB_CFLAGS
709 PKG_CONFIG_LIBDIR
710 PKG_CONFIG_PATH
711 PKG_CONFIG
712 ac_ct_CXX
713 CXXFLAGS
715 OBJEXT
716 EXEEXT
717 ac_ct_CC
718 LDFLAGS
719 CFLAGS
721 ENABLE_RELEASE
722 ENABLE_DEBUG
723 INSTALL_ICU_CONFIG
724 CPPFLAGS
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 UNICODE_VERSION
734 LIB_VERSION_MAJOR
735 LIB_VERSION
736 VERSION
737 ICU_ECHO_T
738 ICU_ECHO_C
739 ICU_ECHO_N
740 PACKAGE
741 target_alias
742 host_alias
743 build_alias
744 LIBS
745 ECHO_T
746 ECHO_N
747 ECHO_C
748 DEFS
749 mandir
750 localedir
751 libdir
752 psdir
753 pdfdir
754 dvidir
755 htmldir
756 infodir
757 docdir
758 oldincludedir
759 includedir
760 runstatedir
761 localstatedir
762 sharedstatedir
763 sysconfdir
764 datadir
765 datarootdir
766 libexecdir
767 sbindir
768 bindir
769 program_transform_name
770 prefix
771 exec_prefix
772 PACKAGE_URL
773 PACKAGE_BUGREPORT
774 PACKAGE_STRING
775 PACKAGE_VERSION
776 PACKAGE_TARNAME
777 PACKAGE_NAME
778 PATH_SEPARATOR
779 SHELL'
780 ac_subst_files=''
781 ac_user_opts='
782 enable_option_checking
783 enable_icu_config
784 enable_debug
785 enable_release
786 with_cross_build
787 enable_strict
788 enable_64bit_libs
789 with_library_bits
790 enable_shared
791 enable_static
792 enable_auto_cleanup
793 enable_draft
794 enable_renaming
795 enable_tracing
796 enable_plugins
797 enable_dyload
798 enable_rpath
799 enable_weak_threads
800 enable_extras
801 enable_icuio
802 enable_layoutex
803 enable_layout
804 enable_tools
805 enable_fuzzer
806 with_data_packaging
807 with_library_suffix
808 enable_tests
809 enable_samples
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
820 CXXFLAGS
822 PKG_CONFIG
823 PKG_CONFIG_PATH
824 PKG_CONFIG_LIBDIR
825 ICULEHB_CFLAGS
826 ICULEHB_LIBS
827 CPP'
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 runstatedir='${localstatedir}/run'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
879 ac_prev=
880 ac_dashdash=
881 for ac_option
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
890 case $ac_option in
891 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *=) ac_optarg= ;;
893 *) ac_optarg=yes ;;
894 esac
896 # Accept the important Cygnus configure options, so we can diagnose typos.
898 case $ac_dashdash$ac_option in
900 ac_dashdash=yes ;;
902 -bindir | --bindir | --bindi | --bind | --bin | --bi)
903 ac_prev=bindir ;;
904 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905 bindir=$ac_optarg ;;
907 -build | --build | --buil | --bui | --bu)
908 ac_prev=build_alias ;;
909 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910 build_alias=$ac_optarg ;;
912 -cache-file | --cache-file | --cache-fil | --cache-fi \
913 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914 ac_prev=cache_file ;;
915 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917 cache_file=$ac_optarg ;;
919 --config-cache | -C)
920 cache_file=config.cache ;;
922 -datadir | --datadir | --datadi | --datad)
923 ac_prev=datadir ;;
924 -datadir=* | --datadir=* | --datadi=* | --datad=*)
925 datadir=$ac_optarg ;;
927 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928 | --dataroo | --dataro | --datar)
929 ac_prev=datarootdir ;;
930 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932 datarootdir=$ac_optarg ;;
934 -disable-* | --disable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=no ;;
950 -docdir | --docdir | --docdi | --doc | --do)
951 ac_prev=docdir ;;
952 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953 docdir=$ac_optarg ;;
955 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956 ac_prev=dvidir ;;
957 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958 dvidir=$ac_optarg ;;
960 -enable-* | --enable-*)
961 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 # Reject names that are not valid shell variable names.
963 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 as_fn_error $? "invalid feature name: $ac_useropt"
965 ac_useropt_orig=$ac_useropt
966 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967 case $ac_user_opts in
969 "enable_$ac_useropt"
970 "*) ;;
971 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972 ac_unrecognized_sep=', ';;
973 esac
974 eval enable_$ac_useropt=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1119 -runstatedir | --runstatedir | --runstatedi | --runstated \
1120 | --runstate | --runstat | --runsta | --runst | --runs \
1121 | --run | --ru | --r)
1122 ac_prev=runstatedir ;;
1123 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1124 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1125 | --run=* | --ru=* | --r=*)
1126 runstatedir=$ac_optarg ;;
1128 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 ac_prev=sbindir ;;
1130 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 | --sbi=* | --sb=*)
1132 sbindir=$ac_optarg ;;
1134 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1135 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1136 | --sharedst | --shareds | --shared | --share | --shar \
1137 | --sha | --sh)
1138 ac_prev=sharedstatedir ;;
1139 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1140 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1141 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 | --sha=* | --sh=*)
1143 sharedstatedir=$ac_optarg ;;
1145 -site | --site | --sit)
1146 ac_prev=site ;;
1147 -site=* | --site=* | --sit=*)
1148 site=$ac_optarg ;;
1150 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 ac_prev=srcdir ;;
1152 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1153 srcdir=$ac_optarg ;;
1155 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1156 | --syscon | --sysco | --sysc | --sys | --sy)
1157 ac_prev=sysconfdir ;;
1158 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1159 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1160 sysconfdir=$ac_optarg ;;
1162 -target | --target | --targe | --targ | --tar | --ta | --t)
1163 ac_prev=target_alias ;;
1164 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1165 target_alias=$ac_optarg ;;
1167 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1168 verbose=yes ;;
1170 -version | --version | --versio | --versi | --vers | -V)
1171 ac_init_version=: ;;
1173 -with-* | --with-*)
1174 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1177 as_fn_error $? "invalid package name: $ac_useropt"
1178 ac_useropt_orig=$ac_useropt
1179 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1180 case $ac_user_opts in
1182 "with_$ac_useropt"
1183 "*) ;;
1184 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1185 ac_unrecognized_sep=', ';;
1186 esac
1187 eval with_$ac_useropt=\$ac_optarg ;;
1189 -without-* | --without-*)
1190 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1193 as_fn_error $? "invalid package name: $ac_useropt"
1194 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in
1198 "with_$ac_useropt"
1199 "*) ;;
1200 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1201 ac_unrecognized_sep=', ';;
1202 esac
1203 eval with_$ac_useropt=no ;;
1205 --x)
1206 # Obsolete; use --with-x.
1207 with_x=yes ;;
1209 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1210 | --x-incl | --x-inc | --x-in | --x-i)
1211 ac_prev=x_includes ;;
1212 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1213 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1214 x_includes=$ac_optarg ;;
1216 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1217 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1218 ac_prev=x_libraries ;;
1219 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1220 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1221 x_libraries=$ac_optarg ;;
1223 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1224 Try \`$0 --help' for more information"
1227 *=*)
1228 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1229 # Reject names that are not valid shell variable names.
1230 case $ac_envvar in #(
1231 '' | [0-9]* | *[!_$as_cr_alnum]* )
1232 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 esac
1234 eval $ac_envvar=\$ac_optarg
1235 export $ac_envvar ;;
1238 # FIXME: should be removed in autoconf 3.0.
1239 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1240 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1241 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1242 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1245 esac
1246 done
1248 if test -n "$ac_prev"; then
1249 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1250 as_fn_error $? "missing argument to $ac_option"
1253 if test -n "$ac_unrecognized_opts"; then
1254 case $enable_option_checking in
1255 no) ;;
1256 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1257 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1258 esac
1261 # Check all directory arguments for consistency.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir runstatedir
1267 eval ac_val=\$$ac_var
1268 # Remove trailing slashes.
1269 case $ac_val in
1270 */ )
1271 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1272 eval $ac_var=\$ac_val;;
1273 esac
1274 # Be sure to have absolute directory names.
1275 case $ac_val in
1276 [\\/$]* | ?:[\\/]* ) continue;;
1277 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 esac
1279 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1280 done
1282 # There might be people who depend on the old broken behavior: `$host'
1283 # used to hold the argument of --host etc.
1284 # FIXME: To remove some day.
1285 build=$build_alias
1286 host=$host_alias
1287 target=$target_alias
1289 # FIXME: To remove some day.
1290 if test "x$host_alias" != x; then
1291 if test "x$build_alias" = x; then
1292 cross_compiling=maybe
1293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1298 ac_tool_prefix=
1299 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1301 test "$silent" = yes && exec 6>/dev/null
1304 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305 ac_ls_di=`ls -di .` &&
1306 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1307 as_fn_error $? "working directory cannot be determined"
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 as_fn_error $? "pwd does not report name of working directory"
1312 # Find the source files, if location was not specified.
1313 if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
1315 # Try the directory containing this script, then the parent directory.
1316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321 $as_echo X"$as_myself" |
1322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1330 /^X\(\/\/\)$/{
1331 s//\1/
1334 /^X\(\/\).*/{
1335 s//\1/
1338 s/.*/./; q'`
1339 srcdir=$ac_confdir
1340 if test ! -r "$srcdir/$ac_unique_file"; then
1341 srcdir=..
1343 else
1344 ac_srcdir_defaulted=no
1346 if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1350 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 ac_abs_confdir=`(
1352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1353 pwd)`
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1361 case $srcdir in
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363 esac
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369 done
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1377 cat <<_ACEOF
1378 \`configure' configures ICU 73.1 to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1387 Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking ...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1402 [PREFIX]
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root [DATAROOTDIR/doc/International
1428 Components for Unicode]
1429 --htmldir=DIR html documentation [DOCDIR]
1430 --dvidir=DIR dvi documentation [DOCDIR]
1431 --pdfdir=DIR pdf documentation [DOCDIR]
1432 --psdir=DIR ps documentation [DOCDIR]
1433 _ACEOF
1435 cat <<\_ACEOF
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 _ACEOF
1443 if test -n "$ac_init_help"; then
1444 case $ac_init_help in
1445 short | recursive ) echo "Configuration of ICU 73.1:";;
1446 esac
1447 cat <<\_ACEOF
1449 Optional Features:
1450 --disable-option-checking ignore unrecognized --enable/--with options
1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1453 --enable-icu-config install icu-config
1454 --enable-debug build debug libraries and enable the U_DEBUG define default=no
1455 --enable-release build release libraries default=yes
1456 --enable-strict compile with strict compiler options default=yes
1457 --enable-64bit-libs (deprecated, use --with-library-bits) build 64-bit libraries default= platform default
1458 --enable-shared build shared libraries default=yes
1459 --enable-static build static libraries default=no
1460 --enable-auto-cleanup enable auto cleanup of libraries default=no
1461 --enable-draft enable draft APIs (and internal APIs) default=yes
1462 --enable-renaming add a version suffix to symbols default=yes
1463 --enable-tracing enable function and data tracing default=no
1464 --enable-plugins enable plugins default=no
1465 --disable-dyload disable dynamic loading default=no
1466 --enable-rpath use rpath when linking default is only if necessary
1467 --enable-weak-threads weakly reference the threading library default=no
1468 --enable-extras build ICU extras default=yes
1469 --enable-icuio build ICU's icuio library default=yes
1470 --enable-layoutex build ICU's Paragraph Layout library default=no.
1471 icu-le-hb must be installed via pkg-config. See http://harfbuzz.org
1473 --enable-tools build ICU's tools default=yes
1474 --enable-fuzzer build ICU's fuzzer test targets default=no
1475 --enable-tests build ICU tests default=yes
1476 --enable-samples build ICU samples default=yes
1478 Additionally, the variable FORCE_LIBS may be set before calling configure.
1479 If set, it will REPLACE any automatic list of libraries.
1481 Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir
1485 --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange
1486 --with-data-packaging specify how to package ICU data. Possible values:
1487 files raw files (.res, etc)
1488 archive build a single icudtXX.dat file
1489 library shared library (.dll/.so/etc.)
1490 static static library (.a/.lib/etc.)
1491 auto build shared if possible (default)
1492 See https://unicode-org.github.io/icu/userguide/icu_data for more info.
1493 --with-library-suffix=suffix tag a suffix to the library names default=
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 CXX C++ compiler command
1504 CXXFLAGS C++ compiler flags
1505 PKG_CONFIG path to pkg-config utility
1506 PKG_CONFIG_PATH
1507 directories to add to pkg-config's search path
1508 PKG_CONFIG_LIBDIR
1509 path overriding pkg-config's built-in search path
1510 ICULEHB_CFLAGS
1511 C compiler flags for ICULEHB, overriding pkg-config
1512 ICULEHB_LIBS
1513 linker flags for ICULEHB, overriding pkg-config
1514 CPP C preprocessor
1516 Use these variables to override the choices made by `configure' or to help
1517 it to find libraries and programs with nonstandard names/locations.
1519 Report bugs to <http://icu-project.org/bugs>.
1520 ICU home page: <http://icu-project.org>.
1521 _ACEOF
1522 ac_status=$?
1525 if test "$ac_init_help" = "recursive"; then
1526 # If there are subdirs, report their specific --help.
1527 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1528 test -d "$ac_dir" ||
1529 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1530 continue
1531 ac_builddir=.
1533 case "$ac_dir" in
1534 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1536 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1537 # A ".." for each directory in $ac_dir_suffix.
1538 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1539 case $ac_top_builddir_sub in
1540 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1541 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1542 esac ;;
1543 esac
1544 ac_abs_top_builddir=$ac_pwd
1545 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1546 # for backward compatibility:
1547 ac_top_builddir=$ac_top_build_prefix
1549 case $srcdir in
1550 .) # We are building in place.
1551 ac_srcdir=.
1552 ac_top_srcdir=$ac_top_builddir_sub
1553 ac_abs_top_srcdir=$ac_pwd ;;
1554 [\\/]* | ?:[\\/]* ) # Absolute name.
1555 ac_srcdir=$srcdir$ac_dir_suffix;
1556 ac_top_srcdir=$srcdir
1557 ac_abs_top_srcdir=$srcdir ;;
1558 *) # Relative name.
1559 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1560 ac_top_srcdir=$ac_top_build_prefix$srcdir
1561 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1562 esac
1563 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1565 cd "$ac_dir" || { ac_status=$?; continue; }
1566 # Check for guested configure.
1567 if test -f "$ac_srcdir/configure.gnu"; then
1568 echo &&
1569 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1570 elif test -f "$ac_srcdir/configure"; then
1571 echo &&
1572 $SHELL "$ac_srcdir/configure" --help=recursive
1573 else
1574 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1575 fi || ac_status=$?
1576 cd "$ac_pwd" || { ac_status=$?; break; }
1577 done
1580 test -n "$ac_init_help" && exit $ac_status
1581 if $ac_init_version; then
1582 cat <<\_ACEOF
1583 ICU configure 73.1
1584 generated by GNU Autoconf 2.69
1586 Copyright (C) 2012 Free Software Foundation, Inc.
1587 This configure script is free software; the Free Software Foundation
1588 gives unlimited permission to copy, distribute and modify it.
1590 Copyright (C) 2016 and later: Unicode, Inc. and others. License & terms of use: http://www.unicode.org/copyright.html
1591 _ACEOF
1592 exit
1595 ## ------------------------ ##
1596 ## Autoconf initialization. ##
1597 ## ------------------------ ##
1599 # ac_fn_c_try_compile LINENO
1600 # --------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_c_try_compile ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 rm -f conftest.$ac_objext
1606 if { { ac_try="$ac_compile"
1607 case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610 esac
1611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612 $as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_compile") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } && {
1622 test -z "$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext; then :
1625 ac_retval=0
1626 else
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1630 ac_retval=1
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_c_try_compile
1637 # ac_fn_cxx_try_compile LINENO
1638 # ----------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_cxx_try_compile ()
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext
1644 if { { ac_try="$ac_compile"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_cxx_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1668 ac_retval=1
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1673 } # ac_fn_cxx_try_compile
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_cpp ()
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } > conftest.i && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1705 ac_retval=1
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1710 } # ac_fn_c_try_cpp
1712 # ac_fn_cxx_try_link LINENO
1713 # -------------------------
1714 # Try to link conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_cxx_try_link ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext conftest$ac_exeext
1719 if { { ac_try="$ac_link"
1720 case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723 esac
1724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_cxx_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest$ac_exeext && {
1738 test "$cross_compiling" = yes ||
1739 test -x conftest$ac_exeext
1740 }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: failed program was:" >&5
1744 sed 's/^/| /' conftest.$ac_ext >&5
1746 ac_retval=1
1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750 # interfere with the next link command; also delete a directory that is
1751 # left behind by Apple's compiler. We do this before executing the actions.
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1756 } # ac_fn_cxx_try_link
1758 # ac_fn_c_try_run LINENO
1759 # ----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1761 # that executables *can* be run.
1762 ac_fn_c_try_run ()
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 if { { ac_try="$ac_link"
1766 case "(($ac_try" in
1767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1769 esac
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>&5
1773 ac_status=$?
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1776 { { case "(($ac_try" in
1777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1778 *) ac_try_echo=$ac_try;;
1779 esac
1780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_try") 2>&5
1783 ac_status=$?
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; }; }; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: program exited with status $ac_status" >&5
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1792 ac_retval=$ac_status
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1798 } # ac_fn_c_try_run
1800 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1801 # --------------------------------------------
1802 # Tries to find the compile-time value of EXPR in a program that includes
1803 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1804 # computed
1805 ac_fn_c_compute_int ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 if test "$cross_compiling" = yes; then
1809 # Depending upon the size, compute the lo and hi bounds.
1810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811 /* end confdefs.h. */
1814 main ()
1816 static int test_array [1 - 2 * !(($2) >= 0)];
1817 test_array [0] = 0;
1818 return test_array [0];
1821 return 0;
1823 _ACEOF
1824 if ac_fn_c_try_compile "$LINENO"; then :
1825 ac_lo=0 ac_mid=0
1826 while :; do
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1831 main ()
1833 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1834 test_array [0] = 0;
1835 return test_array [0];
1838 return 0;
1840 _ACEOF
1841 if ac_fn_c_try_compile "$LINENO"; then :
1842 ac_hi=$ac_mid; break
1843 else
1844 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1845 if test $ac_lo -le $ac_mid; then
1846 ac_lo= ac_hi=
1847 break
1849 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1852 done
1853 else
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1858 main ()
1860 static int test_array [1 - 2 * !(($2) < 0)];
1861 test_array [0] = 0;
1862 return test_array [0];
1865 return 0;
1867 _ACEOF
1868 if ac_fn_c_try_compile "$LINENO"; then :
1869 ac_hi=-1 ac_mid=-1
1870 while :; do
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1875 main ()
1877 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1878 test_array [0] = 0;
1879 return test_array [0];
1882 return 0;
1884 _ACEOF
1885 if ac_fn_c_try_compile "$LINENO"; then :
1886 ac_lo=$ac_mid; break
1887 else
1888 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1889 if test $ac_mid -le $ac_hi; then
1890 ac_lo= ac_hi=
1891 break
1893 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 done
1897 else
1898 ac_lo= ac_hi=
1900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 # Binary search between lo and hi bounds.
1904 while test "x$ac_lo" != "x$ac_hi"; do
1905 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1910 main ()
1912 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1913 test_array [0] = 0;
1914 return test_array [0];
1917 return 0;
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 ac_hi=$ac_mid
1922 else
1923 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1926 done
1927 case $ac_lo in #((
1928 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1929 '') ac_retval=1 ;;
1930 esac
1931 else
1932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1933 /* end confdefs.h. */
1935 static long int longval () { return $2; }
1936 static unsigned long int ulongval () { return $2; }
1937 #include <stdio.h>
1938 #include <stdlib.h>
1940 main ()
1943 FILE *f = fopen ("conftest.val", "w");
1944 if (! f)
1945 return 1;
1946 if (($2) < 0)
1948 long int i = longval ();
1949 if (i != ($2))
1950 return 1;
1951 fprintf (f, "%ld", i);
1953 else
1955 unsigned long int i = ulongval ();
1956 if (i != ($2))
1957 return 1;
1958 fprintf (f, "%lu", i);
1960 /* Do not output a trailing newline, as this causes \r\n confusion
1961 on some platforms. */
1962 return ferror (f) || fclose (f) != 0;
1965 return 0;
1967 _ACEOF
1968 if ac_fn_c_try_run "$LINENO"; then :
1969 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1970 else
1971 ac_retval=1
1973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1974 conftest.$ac_objext conftest.beam conftest.$ac_ext
1975 rm -f conftest.val
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979 as_fn_set_status $ac_retval
1981 } # ac_fn_c_compute_int
1983 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1984 # -------------------------------------------------------
1985 # Tests whether HEADER exists and can be compiled using the include files in
1986 # INCLUDES, setting the cache variable VAR accordingly.
1987 ac_fn_c_check_header_compile ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1994 else
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1998 #include <$2>
1999 _ACEOF
2000 if ac_fn_c_try_compile "$LINENO"; then :
2001 eval "$3=yes"
2002 else
2003 eval "$3=no"
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007 eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 } # ac_fn_c_check_header_compile
2014 # ac_fn_c_try_link LINENO
2015 # -----------------------
2016 # Try to link conftest.$ac_ext, and return whether this succeeded.
2017 ac_fn_c_try_link ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 rm -f conftest.$ac_objext conftest$ac_exeext
2021 if { { ac_try="$ac_link"
2022 case "(($ac_try" in
2023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2024 *) ac_try_echo=$ac_try;;
2025 esac
2026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2027 $as_echo "$ac_try_echo"; } >&5
2028 (eval "$ac_link") 2>conftest.err
2029 ac_status=$?
2030 if test -s conftest.err; then
2031 grep -v '^ *+' conftest.err >conftest.er1
2032 cat conftest.er1 >&5
2033 mv -f conftest.er1 conftest.err
2035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2036 test $ac_status = 0; } && {
2037 test -z "$ac_c_werror_flag" ||
2038 test ! -s conftest.err
2039 } && test -s conftest$ac_exeext && {
2040 test "$cross_compiling" = yes ||
2041 test -x conftest$ac_exeext
2042 }; then :
2043 ac_retval=0
2044 else
2045 $as_echo "$as_me: failed program was:" >&5
2046 sed 's/^/| /' conftest.$ac_ext >&5
2048 ac_retval=1
2050 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2051 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2052 # interfere with the next link command; also delete a directory that is
2053 # left behind by Apple's compiler. We do this before executing the actions.
2054 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 as_fn_set_status $ac_retval
2058 } # ac_fn_c_try_link
2060 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2061 # -------------------------------------------------------
2062 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2063 # the include files in INCLUDES and setting the cache variable VAR
2064 # accordingly.
2065 ac_fn_c_check_header_mongrel ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 if eval \${$3+:} false; then :
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070 $as_echo_n "checking for $2... " >&6; }
2071 if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2074 eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 else
2078 # Is the header compilable?
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2080 $as_echo_n "checking $2 usability... " >&6; }
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2084 #include <$2>
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_header_compiler=yes
2088 else
2089 ac_header_compiler=no
2091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2093 $as_echo "$ac_header_compiler" >&6; }
2095 # Is the header present?
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2097 $as_echo_n "checking $2 presence... " >&6; }
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 #include <$2>
2101 _ACEOF
2102 if ac_fn_c_try_cpp "$LINENO"; then :
2103 ac_header_preproc=yes
2104 else
2105 ac_header_preproc=no
2107 rm -f conftest.err conftest.i conftest.$ac_ext
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2109 $as_echo "$ac_header_preproc" >&6; }
2111 # So? What about this header?
2112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2113 yes:no: )
2114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2115 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2117 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2119 no:yes:* )
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2121 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2123 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2125 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2127 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2129 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2130 ( $as_echo "## ------------------------------------------ ##
2131 ## Report this to http://icu-project.org/bugs ##
2132 ## ------------------------------------------ ##"
2133 ) | sed "s/^/$as_me: WARNING: /" >&2
2135 esac
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if eval \${$3+:} false; then :
2139 $as_echo_n "(cached) " >&6
2140 else
2141 eval "$3=\$ac_header_compiler"
2143 eval ac_res=\$$3
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2145 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 } # ac_fn_c_check_header_mongrel
2151 # ac_fn_c_check_func LINENO FUNC VAR
2152 # ----------------------------------
2153 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2154 ac_fn_c_check_func ()
2156 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2158 $as_echo_n "checking for $2... " >&6; }
2159 if eval \${$3+:} false; then :
2160 $as_echo_n "(cached) " >&6
2161 else
2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2163 /* end confdefs.h. */
2164 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2166 #define $2 innocuous_$2
2168 /* System header to define __stub macros and hopefully few prototypes,
2169 which can conflict with char $2 (); below.
2170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2171 <limits.h> exists even on freestanding compilers. */
2173 #ifdef __STDC__
2174 # include <limits.h>
2175 #else
2176 # include <assert.h>
2177 #endif
2179 #undef $2
2181 /* Override any GCC internal prototype to avoid an error.
2182 Use char because int might match the return type of a GCC
2183 builtin and then its argument prototype would still apply. */
2184 #ifdef __cplusplus
2185 extern "C"
2186 #endif
2187 char $2 ();
2188 /* The GNU C library defines this for functions which it implements
2189 to always fail with ENOSYS. Some functions are actually named
2190 something starting with __ and the normal name is an alias. */
2191 #if defined __stub_$2 || defined __stub___$2
2192 choke me
2193 #endif
2196 main ()
2198 return $2 ();
2200 return 0;
2202 _ACEOF
2203 if ac_fn_c_try_link "$LINENO"; then :
2204 eval "$3=yes"
2205 else
2206 eval "$3=no"
2208 rm -f core conftest.err conftest.$ac_objext \
2209 conftest$ac_exeext conftest.$ac_ext
2211 eval ac_res=\$$3
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2213 $as_echo "$ac_res" >&6; }
2214 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 } # ac_fn_c_check_func
2218 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2219 # ---------------------------------------------
2220 # Tests whether TYPE exists after having included INCLUDES, setting cache
2221 # variable VAR accordingly.
2222 ac_fn_cxx_check_type ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2226 $as_echo_n "checking for $2... " >&6; }
2227 if eval \${$3+:} false; then :
2228 $as_echo_n "(cached) " >&6
2229 else
2230 eval "$3=no"
2231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h. */
2235 main ()
2237 if (sizeof ($2))
2238 return 0;
2240 return 0;
2242 _ACEOF
2243 if ac_fn_cxx_try_compile "$LINENO"; then :
2244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h. */
2248 main ()
2250 if (sizeof (($2)))
2251 return 0;
2253 return 0;
2255 _ACEOF
2256 if ac_fn_cxx_try_compile "$LINENO"; then :
2258 else
2259 eval "$3=yes"
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265 eval ac_res=\$$3
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 } # ac_fn_cxx_check_type
2272 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2273 # -------------------------------------------
2274 # Tests whether TYPE exists after having included INCLUDES, setting cache
2275 # variable VAR accordingly.
2276 ac_fn_c_check_type ()
2278 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2280 $as_echo_n "checking for $2... " >&6; }
2281 if eval \${$3+:} false; then :
2282 $as_echo_n "(cached) " >&6
2283 else
2284 eval "$3=no"
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286 /* end confdefs.h. */
2289 main ()
2291 if (sizeof ($2))
2292 return 0;
2294 return 0;
2296 _ACEOF
2297 if ac_fn_c_try_compile "$LINENO"; then :
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2302 main ()
2304 if (sizeof (($2)))
2305 return 0;
2307 return 0;
2309 _ACEOF
2310 if ac_fn_c_try_compile "$LINENO"; then :
2312 else
2313 eval "$3=yes"
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2319 eval ac_res=\$$3
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2321 $as_echo "$ac_res" >&6; }
2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2324 } # ac_fn_c_check_type
2325 cat >config.log <<_ACEOF
2326 This file contains any messages produced by compilers while
2327 running configure, to aid debugging if configure makes a mistake.
2329 It was created by ICU $as_me 73.1, which was
2330 generated by GNU Autoconf 2.69. Invocation command line was
2332 $ $0 $@
2334 _ACEOF
2335 exec 5>>config.log
2337 cat <<_ASUNAME
2338 ## --------- ##
2339 ## Platform. ##
2340 ## --------- ##
2342 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2343 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2344 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2345 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2346 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2348 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2349 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2351 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2352 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2353 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2354 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2355 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2356 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2357 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2359 _ASUNAME
2361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 for as_dir in $PATH
2364 IFS=$as_save_IFS
2365 test -z "$as_dir" && as_dir=.
2366 $as_echo "PATH: $as_dir"
2367 done
2368 IFS=$as_save_IFS
2370 } >&5
2372 cat >&5 <<_ACEOF
2375 ## ----------- ##
2376 ## Core tests. ##
2377 ## ----------- ##
2379 _ACEOF
2382 # Keep a trace of the command line.
2383 # Strip out --no-create and --no-recursion so they do not pile up.
2384 # Strip out --silent because we don't want to record it for future runs.
2385 # Also quote any args containing shell meta-characters.
2386 # Make two passes to allow for proper duplicate-argument suppression.
2387 ac_configure_args=
2388 ac_configure_args0=
2389 ac_configure_args1=
2390 ac_must_keep_next=false
2391 for ac_pass in 1 2
2393 for ac_arg
2395 case $ac_arg in
2396 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2397 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2398 | -silent | --silent | --silen | --sile | --sil)
2399 continue ;;
2400 *\'*)
2401 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2402 esac
2403 case $ac_pass in
2404 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2406 as_fn_append ac_configure_args1 " '$ac_arg'"
2407 if test $ac_must_keep_next = true; then
2408 ac_must_keep_next=false # Got value, back to normal.
2409 else
2410 case $ac_arg in
2411 *=* | --config-cache | -C | -disable-* | --disable-* \
2412 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2413 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2414 | -with-* | --with-* | -without-* | --without-* | --x)
2415 case "$ac_configure_args0 " in
2416 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2417 esac
2419 -* ) ac_must_keep_next=true ;;
2420 esac
2422 as_fn_append ac_configure_args " '$ac_arg'"
2424 esac
2425 done
2426 done
2427 { ac_configure_args0=; unset ac_configure_args0;}
2428 { ac_configure_args1=; unset ac_configure_args1;}
2430 # When interrupted or exit'd, cleanup temporary files, and complete
2431 # config.log. We remove comments because anyway the quotes in there
2432 # would cause problems or look ugly.
2433 # WARNING: Use '\'' to represent an apostrophe within the trap.
2434 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2435 trap 'exit_status=$?
2436 # Save into config.log some information that might help in debugging.
2438 echo
2440 $as_echo "## ---------------- ##
2441 ## Cache variables. ##
2442 ## ---------------- ##"
2443 echo
2444 # The following way of writing the cache mishandles newlines in values,
2446 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2447 eval ac_val=\$$ac_var
2448 case $ac_val in #(
2449 *${as_nl}*)
2450 case $ac_var in #(
2451 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2452 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2453 esac
2454 case $ac_var in #(
2455 _ | IFS | as_nl) ;; #(
2456 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2457 *) { eval $ac_var=; unset $ac_var;} ;;
2458 esac ;;
2459 esac
2460 done
2461 (set) 2>&1 |
2462 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2463 *${as_nl}ac_space=\ *)
2464 sed -n \
2465 "s/'\''/'\''\\\\'\'''\''/g;
2466 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2467 ;; #(
2469 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2471 esac |
2472 sort
2474 echo
2476 $as_echo "## ----------------- ##
2477 ## Output variables. ##
2478 ## ----------------- ##"
2479 echo
2480 for ac_var in $ac_subst_vars
2482 eval ac_val=\$$ac_var
2483 case $ac_val in
2484 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2485 esac
2486 $as_echo "$ac_var='\''$ac_val'\''"
2487 done | sort
2488 echo
2490 if test -n "$ac_subst_files"; then
2491 $as_echo "## ------------------- ##
2492 ## File substitutions. ##
2493 ## ------------------- ##"
2494 echo
2495 for ac_var in $ac_subst_files
2497 eval ac_val=\$$ac_var
2498 case $ac_val in
2499 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2500 esac
2501 $as_echo "$ac_var='\''$ac_val'\''"
2502 done | sort
2503 echo
2506 if test -s confdefs.h; then
2507 $as_echo "## ----------- ##
2508 ## confdefs.h. ##
2509 ## ----------- ##"
2510 echo
2511 cat confdefs.h
2512 echo
2514 test "$ac_signal" != 0 &&
2515 $as_echo "$as_me: caught signal $ac_signal"
2516 $as_echo "$as_me: exit $exit_status"
2517 } >&5
2518 rm -f core *.core core.conftest.* &&
2519 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2520 exit $exit_status
2522 for ac_signal in 1 2 13 15; do
2523 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2524 done
2525 ac_signal=0
2527 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2528 rm -f -r conftest* confdefs.h
2530 $as_echo "/* confdefs.h */" > confdefs.h
2532 # Predefined preprocessor variables.
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_NAME "$PACKAGE_NAME"
2536 _ACEOF
2538 cat >>confdefs.h <<_ACEOF
2539 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2540 _ACEOF
2542 cat >>confdefs.h <<_ACEOF
2543 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2544 _ACEOF
2546 cat >>confdefs.h <<_ACEOF
2547 #define PACKAGE_STRING "$PACKAGE_STRING"
2548 _ACEOF
2550 cat >>confdefs.h <<_ACEOF
2551 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2552 _ACEOF
2554 cat >>confdefs.h <<_ACEOF
2555 #define PACKAGE_URL "$PACKAGE_URL"
2556 _ACEOF
2559 # Let the site file select an alternate cache file if it wants to.
2560 # Prefer an explicitly selected file to automatically selected ones.
2561 ac_site_file1=NONE
2562 ac_site_file2=NONE
2563 if test -n "$CONFIG_SITE"; then
2564 # We do not want a PATH search for config.site.
2565 case $CONFIG_SITE in #((
2566 -*) ac_site_file1=./$CONFIG_SITE;;
2567 */*) ac_site_file1=$CONFIG_SITE;;
2568 *) ac_site_file1=./$CONFIG_SITE;;
2569 esac
2570 elif test "x$prefix" != xNONE; then
2571 ac_site_file1=$prefix/share/config.site
2572 ac_site_file2=$prefix/etc/config.site
2573 else
2574 ac_site_file1=$ac_default_prefix/share/config.site
2575 ac_site_file2=$ac_default_prefix/etc/config.site
2577 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2579 test "x$ac_site_file" = xNONE && continue
2580 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2582 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2583 sed 's/^/| /' "$ac_site_file" >&5
2584 . "$ac_site_file" \
2585 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2586 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2587 as_fn_error $? "failed to load site script $ac_site_file
2588 See \`config.log' for more details" "$LINENO" 5; }
2590 done
2592 if test -r "$cache_file"; then
2593 # Some versions of bash will fail to source /dev/null (special files
2594 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2595 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2597 $as_echo "$as_me: loading cache $cache_file" >&6;}
2598 case $cache_file in
2599 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2600 *) . "./$cache_file";;
2601 esac
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2605 $as_echo "$as_me: creating cache $cache_file" >&6;}
2606 >$cache_file
2609 # Check that the precious variables saved in the cache have kept the same
2610 # value.
2611 ac_cache_corrupted=false
2612 for ac_var in $ac_precious_vars; do
2613 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2614 eval ac_new_set=\$ac_env_${ac_var}_set
2615 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2616 eval ac_new_val=\$ac_env_${ac_var}_value
2617 case $ac_old_set,$ac_new_set in
2618 set,)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2620 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2621 ac_cache_corrupted=: ;;
2622 ,set)
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2624 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2625 ac_cache_corrupted=: ;;
2626 ,);;
2628 if test "x$ac_old_val" != "x$ac_new_val"; then
2629 # differences in whitespace do not lead to failure.
2630 ac_old_val_w=`echo x $ac_old_val`
2631 ac_new_val_w=`echo x $ac_new_val`
2632 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2634 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2635 ac_cache_corrupted=:
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2638 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2639 eval $ac_var=\$ac_old_val
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2642 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2644 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2645 fi;;
2646 esac
2647 # Pass precious variables to config.status.
2648 if test "$ac_new_set" = set; then
2649 case $ac_new_val in
2650 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2651 *) ac_arg=$ac_var=$ac_new_val ;;
2652 esac
2653 case " $ac_configure_args " in
2654 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2655 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2656 esac
2658 done
2659 if $ac_cache_corrupted; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2663 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2664 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2666 ## -------------------- ##
2667 ## Main body of script. ##
2668 ## -------------------- ##
2670 ac_ext=c
2671 ac_cpp='$CPP $CPPFLAGS'
2672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678 # Instruct Python to never write any byte code to the ICU source tree.
2679 PYTHONDONTWRITEBYTECODE=1
2680 export PYTHONDONTWRITEBYTECODE
2685 PACKAGE="icu"
2688 # Use custom echo test for newline option
2689 # Current autoconf (2.65) gives incorrect echo newline option
2690 # for icu-config
2691 # This may be removed later - mow (June 17, 2010)
2692 ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T=
2693 case `/bin/sh -c "echo -n x"` in
2694 -n*)
2695 case `/bin/sh -c "echo 'x\c'"` in
2696 *c*) ICU_ECHO_T=' ';; # ECHO_T is single tab character.
2697 *) ICU_ECHO_C='\c';;
2698 esac;;
2700 ICU_ECHO_N='-n';;
2701 esac
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5
2707 $as_echo_n "checking for ICU version numbers... " >&6; }
2709 # Get the ICU version from uversion.h or other headers
2710 geticuversion() {
2711 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2713 getuversion() {
2714 sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2716 VERSION=`geticuversion $srcdir/common/unicode/uvernum.h`
2717 if test x"$VERSION" = x; then
2718 as_fn_error $? "Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5
2721 #TODO: IcuBug:8502
2722 #if test "$VERSION" != "$PACKAGE_VERSION"; then
2723 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf])
2726 UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h`
2727 if test x"$UNICODE_VERSION" = x; then
2728 as_fn_error $? "Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5
2730 # Compute a reasonable library version from the release version. This is
2731 # very bad, but that's wanted... We want to make sure that the LIB_VERSION
2732 # has at least a dot in it, so we'll add a .0 if needed.
2733 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
2734 LIB_VERSION=$VERSION
2735 LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'`
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5
2740 $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; }
2744 # Determine the host system
2745 ac_aux_dir=
2746 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2747 if test -f "$ac_dir/install-sh"; then
2748 ac_aux_dir=$ac_dir
2749 ac_install_sh="$ac_aux_dir/install-sh -c"
2750 break
2751 elif test -f "$ac_dir/install.sh"; then
2752 ac_aux_dir=$ac_dir
2753 ac_install_sh="$ac_aux_dir/install.sh -c"
2754 break
2755 elif test -f "$ac_dir/shtool"; then
2756 ac_aux_dir=$ac_dir
2757 ac_install_sh="$ac_aux_dir/shtool install -c"
2758 break
2760 done
2761 if test -z "$ac_aux_dir"; then
2762 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2765 # These three variables are undocumented and unsupported,
2766 # and are intended to be withdrawn in a future Autoconf release.
2767 # They can cause serious problems if a builder's source tree is in a directory
2768 # whose full name contains unusual characters.
2769 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2770 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2771 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2774 # Make sure we can run config.sub.
2775 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2776 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2779 $as_echo_n "checking build system type... " >&6; }
2780 if ${ac_cv_build+:} false; then :
2781 $as_echo_n "(cached) " >&6
2782 else
2783 ac_build_alias=$build_alias
2784 test "x$ac_build_alias" = x &&
2785 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2786 test "x$ac_build_alias" = x &&
2787 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2788 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2789 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2793 $as_echo "$ac_cv_build" >&6; }
2794 case $ac_cv_build in
2795 *-*-*) ;;
2796 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2797 esac
2798 build=$ac_cv_build
2799 ac_save_IFS=$IFS; IFS='-'
2800 set x $ac_cv_build
2801 shift
2802 build_cpu=$1
2803 build_vendor=$2
2804 shift; shift
2805 # Remember, the first character of IFS is used to create $*,
2806 # except with old shells:
2807 build_os=$*
2808 IFS=$ac_save_IFS
2809 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2813 $as_echo_n "checking host system type... " >&6; }
2814 if ${ac_cv_host+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test "x$host_alias" = x; then
2818 ac_cv_host=$ac_cv_build
2819 else
2820 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2821 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2826 $as_echo "$ac_cv_host" >&6; }
2827 case $ac_cv_host in
2828 *-*-*) ;;
2829 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2830 esac
2831 host=$ac_cv_host
2832 ac_save_IFS=$IFS; IFS='-'
2833 set x $ac_cv_host
2834 shift
2835 host_cpu=$1
2836 host_vendor=$2
2837 shift; shift
2838 # Remember, the first character of IFS is used to create $*,
2839 # except with old shells:
2840 host_os=$*
2841 IFS=$ac_save_IFS
2842 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2848 # This variable is needed on z/OS because the C++ compiler only recognizes .C
2849 _CXX_CXXSUFFIX=cpp
2850 export _CXX_CXXSUFFIX
2852 # Accumulate #defines
2854 # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only.
2855 # They are only needed for building ICU itself. Example: platform stuff
2856 CONFIG_CPPFLAGS=""
2857 # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time,
2858 # and also a notice is output that they need to be set
2859 # for end-users of ICU also. uconfig.h.prepend is generated
2860 # with, for example, "#define U_DISABLE_RENAMING 1"
2861 # Example: ICU configuration stuff
2862 UCONFIG_CPPFLAGS=""
2863 # UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users
2864 # such as -std
2865 UCONFIG_CFLAGS=""
2867 # Check whether to install icu-config
2868 # Check whether --enable-icu-config was given.
2869 if test "${enable_icu_config+set}" = set; then :
2870 enableval=$enable_icu_config; case "${enableval}" in
2871 yes) enable_icu_config=true ;;
2872 no) enable_icu_config=false ;;
2873 *) as_fn_error $? "bad value '${enableval}' for --enable-icu-config" "$LINENO" 5 ;;
2874 esac
2875 else
2876 enable_icu_config=true
2879 INSTALL_ICU_CONFIG=$enable_icu_config
2882 # Check whether to build debug libraries
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5
2884 $as_echo_n "checking whether to build debug libraries... " >&6; }
2885 enabled=no
2886 ENABLE_DEBUG=0
2887 # Check whether --enable-debug was given.
2888 if test "${enable_debug+set}" = set; then :
2889 enableval=$enable_debug; case "${enableval}" in
2890 yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
2891 *) ;;
2892 esac
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2896 $as_echo "$enabled" >&6; }
2899 # Check whether to build release libraries
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5
2901 $as_echo_n "checking whether to build release libraries... " >&6; }
2902 enabled=yes
2903 ENABLE_RELEASE=1
2904 # Check whether --enable-release was given.
2905 if test "${enable_release+set}" = set; then :
2906 enableval=$enable_release; case "${enableval}" in
2907 no) enabled=no; ENABLE_RELEASE=0 ;;
2908 *) ;;
2909 esac
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2913 $as_echo "$enabled" >&6; }
2916 # Don't use the default C/CXXFLags
2917 : ${CFLAGS=""}
2918 : ${CXXFLAGS=""}
2920 # Checks for compilers
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926 if test -n "$ac_tool_prefix"; then
2927 for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc
2929 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2930 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932 $as_echo_n "checking for $ac_word... " >&6; }
2933 if ${ac_cv_prog_CC+:} false; then :
2934 $as_echo_n "(cached) " >&6
2935 else
2936 if test -n "$CC"; then
2937 ac_cv_prog_CC="$CC" # Let the user override the test.
2938 else
2939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940 for as_dir in $PATH
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2946 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2950 done
2951 done
2952 IFS=$as_save_IFS
2956 CC=$ac_cv_prog_CC
2957 if test -n "$CC"; then
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2959 $as_echo "$CC" >&6; }
2960 else
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962 $as_echo "no" >&6; }
2966 test -n "$CC" && break
2967 done
2969 if test -z "$CC"; then
2970 ac_ct_CC=$CC
2971 for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc
2973 # Extract the first word of "$ac_prog", so it can be a program name with args.
2974 set dummy $ac_prog; ac_word=$2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2976 $as_echo_n "checking for $ac_word... " >&6; }
2977 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2978 $as_echo_n "(cached) " >&6
2979 else
2980 if test -n "$ac_ct_CC"; then
2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2982 else
2983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2984 for as_dir in $PATH
2986 IFS=$as_save_IFS
2987 test -z "$as_dir" && as_dir=.
2988 for ac_exec_ext in '' $ac_executable_extensions; do
2989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2990 ac_cv_prog_ac_ct_CC="$ac_prog"
2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 break 2
2994 done
2995 done
2996 IFS=$as_save_IFS
3000 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3001 if test -n "$ac_ct_CC"; then
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3003 $as_echo "$ac_ct_CC" >&6; }
3004 else
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3006 $as_echo "no" >&6; }
3010 test -n "$ac_ct_CC" && break
3011 done
3013 if test "x$ac_ct_CC" = x; then
3014 CC=""
3015 else
3016 case $cross_compiling:$ac_tool_warned in
3017 yes:)
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3019 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3020 ac_tool_warned=yes ;;
3021 esac
3022 CC=$ac_ct_CC
3027 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3029 as_fn_error $? "no acceptable C compiler found in \$PATH
3030 See \`config.log' for more details" "$LINENO" 5; }
3032 # Provide some information about the compiler.
3033 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3034 set X $ac_compile
3035 ac_compiler=$2
3036 for ac_option in --version -v -V -qversion; do
3037 { { ac_try="$ac_compiler $ac_option >&5"
3038 case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3041 esac
3042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3043 $as_echo "$ac_try_echo"; } >&5
3044 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3045 ac_status=$?
3046 if test -s conftest.err; then
3047 sed '10a\
3048 ... rest of stderr output deleted ...
3049 10q' conftest.err >conftest.er1
3050 cat conftest.er1 >&5
3052 rm -f conftest.er1 conftest.err
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }
3055 done
3057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3058 /* end confdefs.h. */
3061 main ()
3065 return 0;
3067 _ACEOF
3068 ac_clean_files_save=$ac_clean_files
3069 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3072 # of exeext.
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3074 $as_echo_n "checking whether the C compiler works... " >&6; }
3075 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3077 # The possible output files:
3078 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3080 ac_rmfiles=
3081 for ac_file in $ac_files
3083 case $ac_file in
3084 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3085 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3086 esac
3087 done
3088 rm -f $ac_rmfiles
3090 if { { ac_try="$ac_link_default"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 $as_echo "$ac_try_echo"; } >&5
3097 (eval "$ac_link_default") 2>&5
3098 ac_status=$?
3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3100 test $ac_status = 0; }; then :
3101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3104 # so that the user can short-circuit this test for compilers unknown to
3105 # Autoconf.
3106 for ac_file in $ac_files ''
3108 test -f "$ac_file" || continue
3109 case $ac_file in
3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3112 [ab].out )
3113 # We found the default executable, but exeext='' is most
3114 # certainly right.
3115 break;;
3116 *.* )
3117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3118 then :; else
3119 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 # We set ac_cv_exeext here because the later test for it is not
3122 # safe: cross compilers may not add the suffix if given an `-o'
3123 # argument, so we may need to know it at that point already.
3124 # Even if this section looks crufty: it has the advantage of
3125 # actually working.
3126 break;;
3128 break;;
3129 esac
3130 done
3131 test "$ac_cv_exeext" = no && ac_cv_exeext=
3133 else
3134 ac_file=''
3136 if test -z "$ac_file"; then :
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3138 $as_echo "no" >&6; }
3139 $as_echo "$as_me: failed program was:" >&5
3140 sed 's/^/| /' conftest.$ac_ext >&5
3142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3144 as_fn_error 77 "C compiler cannot create executables
3145 See \`config.log' for more details" "$LINENO" 5; }
3146 else
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3148 $as_echo "yes" >&6; }
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3151 $as_echo_n "checking for C compiler default output file name... " >&6; }
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3153 $as_echo "$ac_file" >&6; }
3154 ac_exeext=$ac_cv_exeext
3156 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3157 ac_clean_files=$ac_clean_files_save
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3159 $as_echo_n "checking for suffix of executables... " >&6; }
3160 if { { ac_try="$ac_link"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166 $as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_link") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }; then :
3171 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3172 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3173 # work properly (i.e., refer to `conftest.exe'), while it won't with
3174 # `rm'.
3175 for ac_file in conftest.exe conftest conftest.*; do
3176 test -f "$ac_file" || continue
3177 case $ac_file in
3178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3179 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3180 break;;
3181 * ) break;;
3182 esac
3183 done
3184 else
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3188 See \`config.log' for more details" "$LINENO" 5; }
3190 rm -f conftest conftest$ac_cv_exeext
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3192 $as_echo "$ac_cv_exeext" >&6; }
3194 rm -f conftest.$ac_ext
3195 EXEEXT=$ac_cv_exeext
3196 ac_exeext=$EXEEXT
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3199 #include <stdio.h>
3201 main ()
3203 FILE *f = fopen ("conftest.out", "w");
3204 return ferror (f) || fclose (f) != 0;
3207 return 0;
3209 _ACEOF
3210 ac_clean_files="$ac_clean_files conftest.out"
3211 # Check that the compiler produces executables we can run. If not, either
3212 # the compiler is broken, or we cross compile.
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3214 $as_echo_n "checking whether we are cross compiling... " >&6; }
3215 if test "$cross_compiling" != yes; then
3216 { { ac_try="$ac_link"
3217 case "(($ac_try" in
3218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3219 *) ac_try_echo=$ac_try;;
3220 esac
3221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3222 $as_echo "$ac_try_echo"; } >&5
3223 (eval "$ac_link") 2>&5
3224 ac_status=$?
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }
3227 if { ac_try='./conftest$ac_cv_exeext'
3228 { { case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3233 $as_echo "$ac_try_echo"; } >&5
3234 (eval "$ac_try") 2>&5
3235 ac_status=$?
3236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3237 test $ac_status = 0; }; }; then
3238 cross_compiling=no
3239 else
3240 if test "$cross_compiling" = maybe; then
3241 cross_compiling=yes
3242 else
3243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3245 as_fn_error $? "cannot run C compiled programs.
3246 If you meant to cross compile, use \`--host'.
3247 See \`config.log' for more details" "$LINENO" 5; }
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3252 $as_echo "$cross_compiling" >&6; }
3254 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3255 ac_clean_files=$ac_clean_files_save
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3257 $as_echo_n "checking for suffix of object files... " >&6; }
3258 if ${ac_cv_objext+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3265 main ()
3269 return 0;
3271 _ACEOF
3272 rm -f conftest.o conftest.obj
3273 if { { ac_try="$ac_compile"
3274 case "(($ac_try" in
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3277 esac
3278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3279 $as_echo "$ac_try_echo"; } >&5
3280 (eval "$ac_compile") 2>&5
3281 ac_status=$?
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }; then :
3284 for ac_file in conftest.o conftest.obj conftest.*; do
3285 test -f "$ac_file" || continue;
3286 case $ac_file in
3287 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3288 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3289 break;;
3290 esac
3291 done
3292 else
3293 $as_echo "$as_me: failed program was:" >&5
3294 sed 's/^/| /' conftest.$ac_ext >&5
3296 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3298 as_fn_error $? "cannot compute suffix of object files: cannot compile
3299 See \`config.log' for more details" "$LINENO" 5; }
3301 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3304 $as_echo "$ac_cv_objext" >&6; }
3305 OBJEXT=$ac_cv_objext
3306 ac_objext=$OBJEXT
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3308 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3309 if ${ac_cv_c_compiler_gnu+:} false; then :
3310 $as_echo_n "(cached) " >&6
3311 else
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3316 main ()
3318 #ifndef __GNUC__
3319 choke me
3320 #endif
3323 return 0;
3325 _ACEOF
3326 if ac_fn_c_try_compile "$LINENO"; then :
3327 ac_compiler_gnu=yes
3328 else
3329 ac_compiler_gnu=no
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3336 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3337 if test $ac_compiler_gnu = yes; then
3338 GCC=yes
3339 else
3340 GCC=
3342 ac_test_CFLAGS=${CFLAGS+set}
3343 ac_save_CFLAGS=$CFLAGS
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3345 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3346 if ${ac_cv_prog_cc_g+:} false; then :
3347 $as_echo_n "(cached) " >&6
3348 else
3349 ac_save_c_werror_flag=$ac_c_werror_flag
3350 ac_c_werror_flag=yes
3351 ac_cv_prog_cc_g=no
3352 CFLAGS="-g"
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3357 main ()
3361 return 0;
3363 _ACEOF
3364 if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_cv_prog_cc_g=yes
3366 else
3367 CFLAGS=""
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3372 main ()
3376 return 0;
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3381 else
3382 ac_c_werror_flag=$ac_save_c_werror_flag
3383 CFLAGS="-g"
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3388 main ()
3392 return 0;
3394 _ACEOF
3395 if ac_fn_c_try_compile "$LINENO"; then :
3396 ac_cv_prog_cc_g=yes
3398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3403 ac_c_werror_flag=$ac_save_c_werror_flag
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3406 $as_echo "$ac_cv_prog_cc_g" >&6; }
3407 if test "$ac_test_CFLAGS" = set; then
3408 CFLAGS=$ac_save_CFLAGS
3409 elif test $ac_cv_prog_cc_g = yes; then
3410 if test "$GCC" = yes; then
3411 CFLAGS="-g -O2"
3412 else
3413 CFLAGS="-g"
3415 else
3416 if test "$GCC" = yes; then
3417 CFLAGS="-O2"
3418 else
3419 CFLAGS=
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3423 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3424 if ${ac_cv_prog_cc_c89+:} false; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 ac_cv_prog_cc_c89=no
3428 ac_save_CC=$CC
3429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430 /* end confdefs.h. */
3431 #include <stdarg.h>
3432 #include <stdio.h>
3433 struct stat;
3434 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3435 struct buf { int x; };
3436 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3437 static char *e (p, i)
3438 char **p;
3439 int i;
3441 return p[i];
3443 static char *f (char * (*g) (char **, int), char **p, ...)
3445 char *s;
3446 va_list v;
3447 va_start (v,p);
3448 s = g (p, va_arg (v,int));
3449 va_end (v);
3450 return s;
3453 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3454 function prototypes and stuff, but not '\xHH' hex character constants.
3455 These don't provoke an error unfortunately, instead are silently treated
3456 as 'x'. The following induces an error, until -std is added to get
3457 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3458 array size at least. It's necessary to write '\x00'==0 to get something
3459 that's true only with -std. */
3460 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3462 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3463 inside strings and character constants. */
3464 #define FOO(x) 'x'
3465 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3467 int test (int i, double x);
3468 struct s1 {int (*f) (int a);};
3469 struct s2 {int (*f) (double a);};
3470 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3471 int argc;
3472 char **argv;
3474 main ()
3476 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3478 return 0;
3480 _ACEOF
3481 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3482 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3484 CC="$ac_save_CC $ac_arg"
3485 if ac_fn_c_try_compile "$LINENO"; then :
3486 ac_cv_prog_cc_c89=$ac_arg
3488 rm -f core conftest.err conftest.$ac_objext
3489 test "x$ac_cv_prog_cc_c89" != "xno" && break
3490 done
3491 rm -f conftest.$ac_ext
3492 CC=$ac_save_CC
3495 # AC_CACHE_VAL
3496 case "x$ac_cv_prog_cc_c89" in
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3499 $as_echo "none needed" >&6; } ;;
3500 xno)
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3502 $as_echo "unsupported" >&6; } ;;
3504 CC="$CC $ac_cv_prog_cc_c89"
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3506 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3507 esac
3508 if test "x$ac_cv_prog_cc_c89" != xno; then :
3512 ac_ext=c
3513 ac_cpp='$CPP $CPPFLAGS'
3514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518 # Make sure that we try clang++ first, which provides C++11 support.
3519 # The g++ compiler is less likely to support C++11.
3520 ac_ext=cpp
3521 ac_cpp='$CXXCPP $CPPFLAGS'
3522 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3523 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3524 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3525 if test -z "$CXX"; then
3526 if test -n "$CCC"; then
3527 CXX=$CCC
3528 else
3529 if test -n "$ac_tool_prefix"; then
3530 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
3532 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3533 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3535 $as_echo_n "checking for $ac_word... " >&6; }
3536 if ${ac_cv_prog_CXX+:} false; then :
3537 $as_echo_n "(cached) " >&6
3538 else
3539 if test -n "$CXX"; then
3540 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3549 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3553 done
3554 done
3555 IFS=$as_save_IFS
3559 CXX=$ac_cv_prog_CXX
3560 if test -n "$CXX"; then
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3562 $as_echo "$CXX" >&6; }
3563 else
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3565 $as_echo "no" >&6; }
3569 test -n "$CXX" && break
3570 done
3572 if test -z "$CXX"; then
3573 ac_ct_CXX=$CXX
3574 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
3576 # Extract the first word of "$ac_prog", so it can be a program name with args.
3577 set dummy $ac_prog; ac_word=$2
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3579 $as_echo_n "checking for $ac_word... " >&6; }
3580 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3581 $as_echo_n "(cached) " >&6
3582 else
3583 if test -n "$ac_ct_CXX"; then
3584 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_ac_ct_CXX="$ac_prog"
3594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3597 done
3598 done
3599 IFS=$as_save_IFS
3603 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3604 if test -n "$ac_ct_CXX"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3606 $as_echo "$ac_ct_CXX" >&6; }
3607 else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3609 $as_echo "no" >&6; }
3613 test -n "$ac_ct_CXX" && break
3614 done
3616 if test "x$ac_ct_CXX" = x; then
3617 CXX="g++"
3618 else
3619 case $cross_compiling:$ac_tool_warned in
3620 yes:)
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623 ac_tool_warned=yes ;;
3624 esac
3625 CXX=$ac_ct_CXX
3631 # Provide some information about the compiler.
3632 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3633 set X $ac_compile
3634 ac_compiler=$2
3635 for ac_option in --version -v -V -qversion; do
3636 { { ac_try="$ac_compiler $ac_option >&5"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3644 ac_status=$?
3645 if test -s conftest.err; then
3646 sed '10a\
3647 ... rest of stderr output deleted ...
3648 10q' conftest.err >conftest.er1
3649 cat conftest.er1 >&5
3651 rm -f conftest.er1 conftest.err
3652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653 test $ac_status = 0; }
3654 done
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3657 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3658 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3659 $as_echo_n "(cached) " >&6
3660 else
3661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3662 /* end confdefs.h. */
3665 main ()
3667 #ifndef __GNUC__
3668 choke me
3669 #endif
3672 return 0;
3674 _ACEOF
3675 if ac_fn_cxx_try_compile "$LINENO"; then :
3676 ac_compiler_gnu=yes
3677 else
3678 ac_compiler_gnu=no
3680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3681 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3685 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3686 if test $ac_compiler_gnu = yes; then
3687 GXX=yes
3688 else
3689 GXX=
3691 ac_test_CXXFLAGS=${CXXFLAGS+set}
3692 ac_save_CXXFLAGS=$CXXFLAGS
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3694 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3695 if ${ac_cv_prog_cxx_g+:} false; then :
3696 $as_echo_n "(cached) " >&6
3697 else
3698 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3699 ac_cxx_werror_flag=yes
3700 ac_cv_prog_cxx_g=no
3701 CXXFLAGS="-g"
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3706 main ()
3710 return 0;
3712 _ACEOF
3713 if ac_fn_cxx_try_compile "$LINENO"; then :
3714 ac_cv_prog_cxx_g=yes
3715 else
3716 CXXFLAGS=""
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3721 main ()
3725 return 0;
3727 _ACEOF
3728 if ac_fn_cxx_try_compile "$LINENO"; then :
3730 else
3731 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3732 CXXFLAGS="-g"
3733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734 /* end confdefs.h. */
3737 main ()
3741 return 0;
3743 _ACEOF
3744 if ac_fn_cxx_try_compile "$LINENO"; then :
3745 ac_cv_prog_cxx_g=yes
3747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3755 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3756 if test "$ac_test_CXXFLAGS" = set; then
3757 CXXFLAGS=$ac_save_CXXFLAGS
3758 elif test $ac_cv_prog_cxx_g = yes; then
3759 if test "$GXX" = yes; then
3760 CXXFLAGS="-g -O2"
3761 else
3762 CXXFLAGS="-g"
3764 else
3765 if test "$GXX" = yes; then
3766 CXXFLAGS="-O2"
3767 else
3768 CXXFLAGS=
3771 ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778 # pkg-config is needed for harfbuzz support
3786 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3787 if test -n "$ac_tool_prefix"; then
3788 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3789 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 $as_echo_n "checking for $ac_word... " >&6; }
3792 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3793 $as_echo_n "(cached) " >&6
3794 else
3795 case $PKG_CONFIG in
3796 [\\/]* | ?:[\\/]*)
3797 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 for as_dir in $PATH
3803 IFS=$as_save_IFS
3804 test -z "$as_dir" && as_dir=.
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3807 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 break 2
3811 done
3812 done
3813 IFS=$as_save_IFS
3816 esac
3818 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3819 if test -n "$PKG_CONFIG"; then
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3821 $as_echo "$PKG_CONFIG" >&6; }
3822 else
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3824 $as_echo "no" >&6; }
3829 if test -z "$ac_cv_path_PKG_CONFIG"; then
3830 ac_pt_PKG_CONFIG=$PKG_CONFIG
3831 # Extract the first word of "pkg-config", so it can be a program name with args.
3832 set dummy pkg-config; ac_word=$2
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3834 $as_echo_n "checking for $ac_word... " >&6; }
3835 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3836 $as_echo_n "(cached) " >&6
3837 else
3838 case $ac_pt_PKG_CONFIG in
3839 [\\/]* | ?:[\\/]*)
3840 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3850 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 break 2
3854 done
3855 done
3856 IFS=$as_save_IFS
3859 esac
3861 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3862 if test -n "$ac_pt_PKG_CONFIG"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3864 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3865 else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3870 if test "x$ac_pt_PKG_CONFIG" = x; then
3871 PKG_CONFIG=""
3872 else
3873 case $cross_compiling:$ac_tool_warned in
3874 yes:)
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3876 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3877 ac_tool_warned=yes ;;
3878 esac
3879 PKG_CONFIG=$ac_pt_PKG_CONFIG
3881 else
3882 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3886 if test -n "$PKG_CONFIG"; then
3887 _pkg_min_version=0.20
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3889 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3890 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3892 $as_echo "yes" >&6; }
3893 else
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3895 $as_echo "no" >&6; }
3896 PKG_CONFIG=""
3900 pkg_failed=no
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICULEHB" >&5
3902 $as_echo_n "checking for ICULEHB... " >&6; }
3904 if test -n "$ICULEHB_CFLAGS"; then
3905 pkg_cv_ICULEHB_CFLAGS="$ICULEHB_CFLAGS"
3906 elif test -n "$PKG_CONFIG"; then
3907 if test -n "$PKG_CONFIG" && \
3908 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5
3909 ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5
3910 ac_status=$?
3911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3912 test $ac_status = 0; }; then
3913 pkg_cv_ICULEHB_CFLAGS=`$PKG_CONFIG --cflags "icu-le-hb" 2>/dev/null`
3914 test "x$?" != "x0" && pkg_failed=yes
3915 else
3916 pkg_failed=yes
3918 else
3919 pkg_failed=untried
3921 if test -n "$ICULEHB_LIBS"; then
3922 pkg_cv_ICULEHB_LIBS="$ICULEHB_LIBS"
3923 elif test -n "$PKG_CONFIG"; then
3924 if test -n "$PKG_CONFIG" && \
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5
3926 ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5
3927 ac_status=$?
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; then
3930 pkg_cv_ICULEHB_LIBS=`$PKG_CONFIG --libs "icu-le-hb" 2>/dev/null`
3931 test "x$?" != "x0" && pkg_failed=yes
3932 else
3933 pkg_failed=yes
3935 else
3936 pkg_failed=untried
3941 if test $pkg_failed = yes; then
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3945 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3946 _pkg_short_errors_supported=yes
3947 else
3948 _pkg_short_errors_supported=no
3950 if test $_pkg_short_errors_supported = yes; then
3951 ICULEHB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "icu-le-hb" 2>&1`
3952 else
3953 ICULEHB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "icu-le-hb" 2>&1`
3955 # Put the nasty error message in config.log where it belongs
3956 echo "$ICULEHB_PKG_ERRORS" >&5
3959 elif test $pkg_failed = untried; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3963 else
3964 ICULEHB_CFLAGS=$pkg_cv_ICULEHB_CFLAGS
3965 ICULEHB_LIBS=$pkg_cv_ICULEHB_LIBS
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3967 $as_echo "yes" >&6; }
3968 have_icu_le_hb=true
3971 # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option
3972 # The release mode use is the default one for autoconf
3973 if test "$GCC" = yes; then
3974 if test "$CFLAGS" = ""; then
3975 if test "$ENABLE_DEBUG" = 1; then
3976 CFLAGS=-g
3978 if test "$ENABLE_RELEASE" = 1; then
3979 CFLAGS="$CFLAGS -O2"
3982 if test "$CXXFLAGS" = ""; then
3983 if test "$ENABLE_DEBUG" = 1; then
3984 CXXFLAGS=-g
3986 if test "$ENABLE_RELEASE" = 1; then
3987 CXXFLAGS="$CXXFLAGS -O2"
3992 ac_ext=c
3993 ac_cpp='$CPP $CPPFLAGS'
3994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3998 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3999 # On Suns, sometimes $CPP names a directory.
4000 if test -n "$CPP" && test -d "$CPP"; then
4001 CPP=
4003 if test -z "$CPP"; then
4004 if ${ac_cv_prog_CPP+:} false; then :
4005 $as_echo_n "(cached) " >&6
4006 else
4007 # Double quotes because CPP needs to be expanded
4008 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4010 ac_preproc_ok=false
4011 for ac_c_preproc_warn_flag in '' yes
4013 # Use a header file that comes with gcc, so configuring glibc
4014 # with a fresh cross-compiler works.
4015 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4016 # <limits.h> exists even on freestanding compilers.
4017 # On the NeXT, cc -E runs the code through the compiler's parser,
4018 # not just through cpp. "Syntax error" is here to catch this case.
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021 #ifdef __STDC__
4022 # include <limits.h>
4023 #else
4024 # include <assert.h>
4025 #endif
4026 Syntax error
4027 _ACEOF
4028 if ac_fn_c_try_cpp "$LINENO"; then :
4030 else
4031 # Broken: fails on valid input.
4032 continue
4034 rm -f conftest.err conftest.i conftest.$ac_ext
4036 # OK, works on sane cases. Now check whether nonexistent headers
4037 # can be detected and how.
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 #include <ac_nonexistent.h>
4041 _ACEOF
4042 if ac_fn_c_try_cpp "$LINENO"; then :
4043 # Broken: success on invalid input.
4044 continue
4045 else
4046 # Passes both tests.
4047 ac_preproc_ok=:
4048 break
4050 rm -f conftest.err conftest.i conftest.$ac_ext
4052 done
4053 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4054 rm -f conftest.i conftest.err conftest.$ac_ext
4055 if $ac_preproc_ok; then :
4056 break
4059 done
4060 ac_cv_prog_CPP=$CPP
4063 CPP=$ac_cv_prog_CPP
4064 else
4065 ac_cv_prog_CPP=$CPP
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4068 $as_echo "$CPP" >&6; }
4069 ac_preproc_ok=false
4070 for ac_c_preproc_warn_flag in '' yes
4072 # Use a header file that comes with gcc, so configuring glibc
4073 # with a fresh cross-compiler works.
4074 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4075 # <limits.h> exists even on freestanding compilers.
4076 # On the NeXT, cc -E runs the code through the compiler's parser,
4077 # not just through cpp. "Syntax error" is here to catch this case.
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #ifdef __STDC__
4081 # include <limits.h>
4082 #else
4083 # include <assert.h>
4084 #endif
4085 Syntax error
4086 _ACEOF
4087 if ac_fn_c_try_cpp "$LINENO"; then :
4089 else
4090 # Broken: fails on valid input.
4091 continue
4093 rm -f conftest.err conftest.i conftest.$ac_ext
4095 # OK, works on sane cases. Now check whether nonexistent headers
4096 # can be detected and how.
4097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4098 /* end confdefs.h. */
4099 #include <ac_nonexistent.h>
4100 _ACEOF
4101 if ac_fn_c_try_cpp "$LINENO"; then :
4102 # Broken: success on invalid input.
4103 continue
4104 else
4105 # Passes both tests.
4106 ac_preproc_ok=:
4107 break
4109 rm -f conftest.err conftest.i conftest.$ac_ext
4111 done
4112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4113 rm -f conftest.i conftest.err conftest.$ac_ext
4114 if $ac_preproc_ok; then :
4116 else
4117 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4118 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4119 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4120 See \`config.log' for more details" "$LINENO" 5; }
4123 ac_ext=c
4124 ac_cpp='$CPP $CPPFLAGS'
4125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130 # Find a good install program. We prefer a C program (faster),
4131 # so one script is as good as another. But avoid the broken or
4132 # incompatible versions:
4133 # SysV /etc/install, /usr/sbin/install
4134 # SunOS /usr/etc/install
4135 # IRIX /sbin/install
4136 # AIX /bin/install
4137 # AmigaOS /C/install, which installs bootblocks on floppy discs
4138 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4139 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4140 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4141 # OS/2's system install, which has a completely different semantic
4142 # ./install, which can be erroneously created by make from ./install.sh.
4143 # Reject install programs that cannot install multiple files.
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4145 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4146 if test -z "$INSTALL"; then
4147 if ${ac_cv_path_install+:} false; then :
4148 $as_echo_n "(cached) " >&6
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4153 IFS=$as_save_IFS
4154 test -z "$as_dir" && as_dir=.
4155 # Account for people who put trailing slashes in PATH elements.
4156 case $as_dir/ in #((
4157 ./ | .// | /[cC]/* | \
4158 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4159 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4160 /usr/ucb/* ) ;;
4162 # OSF1 and SCO ODT 3.0 have their own names for install.
4163 # Don't use installbsd from OSF since it installs stuff as root
4164 # by default.
4165 for ac_prog in ginstall scoinst install; do
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4168 if test $ac_prog = install &&
4169 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4170 # AIX install. It has an incompatible calling convention.
4172 elif test $ac_prog = install &&
4173 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4174 # program-specific install script used by HP pwplus--don't use.
4176 else
4177 rm -rf conftest.one conftest.two conftest.dir
4178 echo one > conftest.one
4179 echo two > conftest.two
4180 mkdir conftest.dir
4181 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4182 test -s conftest.one && test -s conftest.two &&
4183 test -s conftest.dir/conftest.one &&
4184 test -s conftest.dir/conftest.two
4185 then
4186 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4187 break 3
4191 done
4192 done
4194 esac
4196 done
4197 IFS=$as_save_IFS
4199 rm -rf conftest.one conftest.two conftest.dir
4202 if test "${ac_cv_path_install+set}" = set; then
4203 INSTALL=$ac_cv_path_install
4204 else
4205 # As a last resort, use the slow shell script. Don't cache a
4206 # value for INSTALL within a source directory, because that will
4207 # break other packages using the cache if that directory is
4208 # removed, or if the value is a relative name.
4209 INSTALL=$ac_install_sh
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4213 $as_echo "$INSTALL" >&6; }
4215 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4216 # It thinks the first close brace ends the variable substitution.
4217 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4219 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4221 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4226 ac_ext=cpp
4227 ac_cpp='$CXXCPP $CPPFLAGS'
4228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4234 /* end confdefs.h. */
4237 main ()
4241 return 0;
4243 _ACEOF
4244 if ac_fn_cxx_try_link "$LINENO"; then :
4247 rm -f core conftest.err conftest.$ac_objext \
4248 conftest$ac_exeext conftest.$ac_ext
4249 ac_ext=c
4250 ac_cpp='$CPP $CPPFLAGS'
4251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256 # make sure install is relative to srcdir - if a script
4257 if test "$srcdir" = "."; then
4258 # If srcdir isn't just ., then (srcdir) is already prepended.
4259 if test "${ac_install_sh}" = "${INSTALL}"; then
4260 INSTALL="\\\$(top_srcdir)/${ac_install_sh}"
4264 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
4265 #AC_CHECK_PROG(STRIP, strip, strip, true)
4269 # TODO(ICU-20301): Remove fallback to Python 2.
4270 for ac_prog in python3 "py -3" python "py"
4272 # Extract the first word of "$ac_prog", so it can be a program name with args.
4273 set dummy $ac_prog; ac_word=$2
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4275 $as_echo_n "checking for $ac_word... " >&6; }
4276 if ${ac_cv_prog_PYTHON+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 if test -n "$PYTHON"; then
4280 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_PYTHON="$ac_prog"
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4293 done
4294 done
4295 IFS=$as_save_IFS
4299 PYTHON=$ac_cv_prog_PYTHON
4300 if test -n "$PYTHON"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
4302 $as_echo "$PYTHON" >&6; }
4303 else
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4309 test -n "$PYTHON" && break
4310 done
4314 # Check for the platform make
4315 for ac_prog in gmake gnumake
4317 # Extract the first word of "$ac_prog", so it can be a program name with args.
4318 set dummy $ac_prog; ac_word=$2
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4320 $as_echo_n "checking for $ac_word... " >&6; }
4321 if ${ac_cv_path_U_MAKE+:} false; then :
4322 $as_echo_n "(cached) " >&6
4323 else
4324 case $U_MAKE in
4325 [\\/]* | ?:[\\/]*)
4326 ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path.
4329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 for as_dir in $PATH
4332 IFS=$as_save_IFS
4333 test -z "$as_dir" && as_dir=.
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 break 2
4340 done
4341 done
4342 IFS=$as_save_IFS
4345 esac
4347 U_MAKE=$ac_cv_path_U_MAKE
4348 if test -n "$U_MAKE"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5
4350 $as_echo "$U_MAKE" >&6; }
4351 else
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4357 test -n "$U_MAKE" && break
4358 done
4359 test -n "$U_MAKE" || U_MAKE="make"
4365 # Check whether --with-cross-build was given.
4366 if test "${with_cross_build+set}" = set; then :
4367 withval=$with_cross_build; cross_buildroot="${withval}"
4368 else
4369 cross_buildroot=""
4373 if test "X$cross_buildroot" = "X"; then
4374 if test "$cross_compiling" = "yes"; then
4375 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
4377 else
4378 if test -f "${cross_buildroot}/config/icucross.mk"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5
4380 $as_echo "Using cross buildroot: $cross_buildroot" >&6; }
4381 else
4382 if test -d "${cross_buildroot}"; then
4383 as_fn_error $? "${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5
4384 else
4385 as_fn_error $? "No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5
4391 # Check for doxygen to generate documentation
4392 # Extract the first word of "doxygen", so it can be a program name with args.
4393 set dummy doxygen; ac_word=$2
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4395 $as_echo_n "checking for $ac_word... " >&6; }
4396 if ${ac_cv_path_DOXYGEN+:} false; then :
4397 $as_echo_n "(cached) " >&6
4398 else
4399 case $DOXYGEN in
4400 [\\/]* | ?:[\\/]*)
4401 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405 as_dummy="$PATH:/usr/local/bin:/usr/bin"
4406 for as_dir in $as_dummy
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4412 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
4413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 break 2
4416 done
4417 done
4418 IFS=$as_save_IFS
4421 esac
4423 DOXYGEN=$ac_cv_path_DOXYGEN
4424 if test -n "$DOXYGEN"; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
4426 $as_echo "$DOXYGEN" >&6; }
4427 else
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4429 $as_echo "no" >&6; }
4434 # Check that the linker is usable
4436 case "${host}" in
4437 *-*-cygwin*|*-*-mingw*)
4438 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
4439 as_fn_error $? "link.exe is not a valid linker. Your PATH is incorrect.
4440 Please follow the directions in ICU's readme." "$LINENO" 5
4441 fi;;
4442 *);;
4443 esac
4445 # Determine the executable suffix
4446 # We don't use AC_EXEEXT because some compilers output separate debugging
4447 # files, which confuses the AC_EXEEXT macro.
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5
4449 $as_echo_n "checking checking for executable suffix... " >&6; }
4450 case "${host}" in
4451 *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;;
4452 *) EXEEXT="" ;;
4453 esac
4454 ac_exeext=$EXEEXT
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
4456 $as_echo "$EXEEXT" >&6; }
4459 # Determine how strict we want to be when compiling
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5
4462 $as_echo_n "checking whether strict compiling is on... " >&6; }
4463 # Check whether --enable-strict was given.
4464 if test "${enable_strict+set}" = set; then :
4465 enableval=$enable_strict;
4466 if test "$enableval" = no
4467 then
4468 ac_use_strict_options=no
4469 else
4470 ac_use_strict_options=yes
4473 else
4474 ac_use_strict_options=yes
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5
4478 $as_echo "$ac_use_strict_options" >&6; }
4480 if test "$ac_use_strict_options" = yes
4481 then
4482 if test "$GCC" = yes
4483 then
4484 case "${host}" in
4485 *-*-solaris*)
4486 # Don't use -std=c11 on Solaris because of timezone check fails
4489 # Do not use -ansi. It limits us to C90, and it breaks some platforms.
4490 # We use -std=c11 to disable the gnu99 defaults and its associated warnings
4491 CFLAGS="$CFLAGS -std=c11"
4493 esac
4495 CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
4497 # Suppress clang C warnings:
4498 CFLAGS="$CFLAGS -Wno-sign-compare -Wno-unused"
4499 else
4500 case "${host}" in
4501 *-*-cygwin)
4502 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
4503 then
4504 CFLAGS="$CFLAGS /W4"
4505 fi ;;
4506 *-*-mingw*)
4507 CFLAGS="$CFLAGS -W4" ;;
4508 esac
4510 if test "$GXX" = yes
4511 then
4512 CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
4514 # Suppress clang C++ warnings:
4515 CXXFLAGS="$CXXFLAGS -Wno-unused -Wno-unused-parameter"
4516 else
4517 case "${host}" in
4518 *-*-cygwin)
4519 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
4520 then
4521 CXXFLAGS="$CXXFLAGS /W4"
4522 fi ;;
4523 *-*-mingw*)
4524 CFLAGS="$CFLAGS -W4" ;;
4525 esac
4530 # Check if we can build and use 64-bit libraries
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4534 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4535 if ${ac_cv_path_GREP+:} false; then :
4536 $as_echo_n "(cached) " >&6
4537 else
4538 if test -z "$GREP"; then
4539 ac_path_GREP_found=false
4540 # Loop through the user's path and test for each of PROGNAME-LIST
4541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4544 IFS=$as_save_IFS
4545 test -z "$as_dir" && as_dir=.
4546 for ac_prog in grep ggrep; do
4547 for ac_exec_ext in '' $ac_executable_extensions; do
4548 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4549 as_fn_executable_p "$ac_path_GREP" || continue
4550 # Check for GNU ac_path_GREP and select it if it is found.
4551 # Check for GNU $ac_path_GREP
4552 case `"$ac_path_GREP" --version 2>&1` in
4553 *GNU*)
4554 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4556 ac_count=0
4557 $as_echo_n 0123456789 >"conftest.in"
4558 while :
4560 cat "conftest.in" "conftest.in" >"conftest.tmp"
4561 mv "conftest.tmp" "conftest.in"
4562 cp "conftest.in" "conftest.nl"
4563 $as_echo 'GREP' >> "conftest.nl"
4564 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4565 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4566 as_fn_arith $ac_count + 1 && ac_count=$as_val
4567 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4568 # Best one so far, save it but keep looking for a better one
4569 ac_cv_path_GREP="$ac_path_GREP"
4570 ac_path_GREP_max=$ac_count
4572 # 10*(2^10) chars as input seems more than enough
4573 test $ac_count -gt 10 && break
4574 done
4575 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4576 esac
4578 $ac_path_GREP_found && break 3
4579 done
4580 done
4581 done
4582 IFS=$as_save_IFS
4583 if test -z "$ac_cv_path_GREP"; then
4584 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4586 else
4587 ac_cv_path_GREP=$GREP
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4592 $as_echo "$ac_cv_path_GREP" >&6; }
4593 GREP="$ac_cv_path_GREP"
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4597 $as_echo_n "checking for egrep... " >&6; }
4598 if ${ac_cv_path_EGREP+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4602 then ac_cv_path_EGREP="$GREP -E"
4603 else
4604 if test -z "$EGREP"; then
4605 ac_path_EGREP_found=false
4606 # Loop through the user's path and test for each of PROGNAME-LIST
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4608 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
4612 for ac_prog in egrep; do
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4615 as_fn_executable_p "$ac_path_EGREP" || continue
4616 # Check for GNU ac_path_EGREP and select it if it is found.
4617 # Check for GNU $ac_path_EGREP
4618 case `"$ac_path_EGREP" --version 2>&1` in
4619 *GNU*)
4620 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4622 ac_count=0
4623 $as_echo_n 0123456789 >"conftest.in"
4624 while :
4626 cat "conftest.in" "conftest.in" >"conftest.tmp"
4627 mv "conftest.tmp" "conftest.in"
4628 cp "conftest.in" "conftest.nl"
4629 $as_echo 'EGREP' >> "conftest.nl"
4630 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4632 as_fn_arith $ac_count + 1 && ac_count=$as_val
4633 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4634 # Best one so far, save it but keep looking for a better one
4635 ac_cv_path_EGREP="$ac_path_EGREP"
4636 ac_path_EGREP_max=$ac_count
4638 # 10*(2^10) chars as input seems more than enough
4639 test $ac_count -gt 10 && break
4640 done
4641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4642 esac
4644 $ac_path_EGREP_found && break 3
4645 done
4646 done
4647 done
4648 IFS=$as_save_IFS
4649 if test -z "$ac_cv_path_EGREP"; then
4650 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4652 else
4653 ac_cv_path_EGREP=$EGREP
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4659 $as_echo "$ac_cv_path_EGREP" >&6; }
4660 EGREP="$ac_cv_path_EGREP"
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4664 $as_echo_n "checking for ANSI C header files... " >&6; }
4665 if ${ac_cv_header_stdc+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4669 /* end confdefs.h. */
4670 #include <stdlib.h>
4671 #include <stdarg.h>
4672 #include <string.h>
4673 #include <float.h>
4676 main ()
4680 return 0;
4682 _ACEOF
4683 if ac_fn_c_try_compile "$LINENO"; then :
4684 ac_cv_header_stdc=yes
4685 else
4686 ac_cv_header_stdc=no
4688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4690 if test $ac_cv_header_stdc = yes; then
4691 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4694 #include <string.h>
4696 _ACEOF
4697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4698 $EGREP "memchr" >/dev/null 2>&1; then :
4700 else
4701 ac_cv_header_stdc=no
4703 rm -f conftest*
4707 if test $ac_cv_header_stdc = yes; then
4708 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711 #include <stdlib.h>
4713 _ACEOF
4714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4715 $EGREP "free" >/dev/null 2>&1; then :
4717 else
4718 ac_cv_header_stdc=no
4720 rm -f conftest*
4724 if test $ac_cv_header_stdc = yes; then
4725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4726 if test "$cross_compiling" = yes; then :
4728 else
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4731 #include <ctype.h>
4732 #include <stdlib.h>
4733 #if ((' ' & 0x0FF) == 0x020)
4734 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4735 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4736 #else
4737 # define ISLOWER(c) \
4738 (('a' <= (c) && (c) <= 'i') \
4739 || ('j' <= (c) && (c) <= 'r') \
4740 || ('s' <= (c) && (c) <= 'z'))
4741 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4742 #endif
4744 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4746 main ()
4748 int i;
4749 for (i = 0; i < 256; i++)
4750 if (XOR (islower (i), ISLOWER (i))
4751 || toupper (i) != TOUPPER (i))
4752 return 2;
4753 return 0;
4755 _ACEOF
4756 if ac_fn_c_try_run "$LINENO"; then :
4758 else
4759 ac_cv_header_stdc=no
4761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4762 conftest.$ac_objext conftest.beam conftest.$ac_ext
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4768 $as_echo "$ac_cv_header_stdc" >&6; }
4769 if test $ac_cv_header_stdc = yes; then
4771 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4775 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4776 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4777 inttypes.h stdint.h unistd.h
4778 do :
4779 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4780 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4783 cat >>confdefs.h <<_ACEOF
4784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4785 _ACEOF
4789 done
4793 BITS_REQ=nochange
4794 ENABLE_64BIT_LIBS=unknown
4795 ## revisit this for cross-compile.
4797 # Check whether --enable-64bit-libs was given.
4798 if test "${enable_64bit_libs+set}" = set; then :
4799 enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs"
4800 case "${enableval}" in
4801 no|false|32) with_library_bits=32; ;;
4802 yes|true|64) with_library_bits=64else32 ;;
4803 nochange) with_library_bits=nochange; ;;
4804 *) as_fn_error $? "bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;;
4805 esac
4811 # Check whether --with-library-bits was given.
4812 if test "${with_library_bits+set}" = set; then :
4813 withval=$with_library_bits; case "${withval}" in
4814 ""|nochange) BITS_REQ=$withval ;;
4815 32|64|64else32) BITS_REQ=$withval ;;
4816 *) as_fn_error $? "bad value ${withval} for --with-library-bits" "$LINENO" 5 ;;
4817 esac
4821 # don't use these for cross compiling
4822 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
4823 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
4825 # The cast to long int works around a bug in the HP C Compiler
4826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4828 # This bug is HP SR number 8606223364.
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4830 $as_echo_n "checking size of void *... " >&6; }
4831 if ${ac_cv_sizeof_void_p+:} false; then :
4832 $as_echo_n "(cached) " >&6
4833 else
4834 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4836 else
4837 if test "$ac_cv_type_void_p" = yes; then
4838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4840 as_fn_error 77 "cannot compute sizeof (void *)
4841 See \`config.log' for more details" "$LINENO" 5; }
4842 else
4843 ac_cv_sizeof_void_p=0
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4849 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4853 cat >>confdefs.h <<_ACEOF
4854 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4855 _ACEOF
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5
4859 $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; }
4860 case $ac_cv_sizeof_void_p in
4861 8) DEFAULT_64BIT=yes ;;
4862 4) DEFAULT_64BIT=no ;;
4863 *) DEFAULT_64BIT=unknown
4864 esac
4865 BITS_GOT=unknown
4867 # 'OK' here means, we can exit any further checking, everything's copa
4868 BITS_OK=yes
4870 # do we need to check for buildable/runnable 32 or 64 bit?
4871 BITS_CHECK_32=no
4872 BITS_CHECK_64=no
4874 # later, can we run the 32/64 bit binaries so made?
4875 BITS_RUN_32=no
4876 BITS_RUN_64=no
4878 if test "$DEFAULT_64BIT" = "yes"; then
4879 # we get 64 bits by default.
4880 BITS_GOT=64
4881 case "$BITS_REQ" in
4883 # need to look for 32 bit support.
4884 BITS_CHECK_32=yes
4885 # not copa.
4886 BITS_OK=no;;
4887 # everyone else is happy.
4888 nochange) ;;
4889 *) ;;
4890 esac
4891 elif test "$DEFAULT_64BIT" = "no"; then
4892 # not 64 bit by default.
4893 BITS_GOT=32
4894 case "$BITS_REQ" in
4895 64|64else32)
4896 BITS_CHECK_64=yes
4897 #BITS_CHECK_32=yes
4898 BITS_OK=no;;
4899 nochange) ;;
4900 *) ;;
4901 esac
4902 elif test "$DEFAULT_64BIT" = "unknown"; then
4903 # cross compiling.
4904 BITS_GOT=unknown
4905 case "$BITS_REQ" in
4906 64|64else32) BITS_OK=no
4907 BITS_CHECK_32=yes
4908 BITS_CHECK_64=yes ;;
4909 32) BITS_OK=no;;
4910 nochange) ;;
4911 *) ;;
4912 esac
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5
4916 $as_echo "$DEFAULT_64BIT" >&6; };
4918 if test "$BITS_OK" != "yes"; then
4919 # not copa. back these up.
4920 CFLAGS_OLD="${CFLAGS}"
4921 CXXFLAGS_OLD="${CXXFLAGS}"
4922 LDFLAGS_OLD="${LDFLAGS}"
4923 ARFLAGS_OLD="${ARFLAGS}"
4925 CFLAGS_32="${CFLAGS}"
4926 CXXFLAGS_32="${CXXFLAGS}"
4927 LDFLAGS_32="${LDFLAGS}"
4928 ARFLAGS_32="${ARFLAGS}"
4930 CFLAGS_64="${CFLAGS}"
4931 CXXFLAGS_64="${CXXFLAGS}"
4932 LDFLAGS_64="${LDFLAGS}"
4933 ARFLAGS_64="${ARFLAGS}"
4935 CAN_BUILD_64=unknown
4936 CAN_BUILD_32=unknown
4937 # These results can't be cached because is sets compiler flags.
4938 if test "$BITS_CHECK_64" = "yes"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5
4940 $as_echo_n "checking how to build 64-bit executables... " >&6; }
4941 CAN_BUILD_64=no
4942 ####
4943 # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it.
4944 # Note, we don't have to actually check if the options work- we'll try them before using them.
4945 # So, only try actually testing the options, if you are trying to decide between multiple options.
4946 # On exit from the following clauses:
4947 # if CAN_BUILD_64=yes:
4948 # *FLAGS are assumed to contain the right settings for 64bit
4949 # else if CAN_BUILD_64=no: (default)
4950 # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD
4952 if test "$GCC" = yes; then
4953 CFLAGS="${CFLAGS} -m64"
4954 CXXFLAGS="${CXXFLAGS} -m64"
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4957 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4958 _ACEOF
4959 if ac_fn_c_try_compile "$LINENO"; then :
4960 CAN_BUILD_64=yes
4961 else
4962 CAN_BUILD_64=no
4964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4965 else
4966 case "${host}" in
4967 sparc*-*-solaris*)
4968 # 1. try -m64
4969 CFLAGS="${CFLAGS} -m64"
4970 CXXFLAGS="${CXXFLAGS} -m64"
4971 if test "$cross_compiling" = yes; then :
4972 CAN_BUILD_64=unknown
4973 else
4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4976 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4977 _ACEOF
4978 if ac_fn_c_try_run "$LINENO"; then :
4979 CAN_BUILD_64=yes
4980 else
4981 CAN_BUILD_64=no
4983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4984 conftest.$ac_objext conftest.beam conftest.$ac_ext
4987 if test "$CAN_BUILD_64" != yes; then
4988 # Nope. back out changes.
4989 CFLAGS="${CFLAGS_OLD}"
4990 CXXFLAGS="${CXXFLAGS_OLD}"
4991 # 2. try xarch=v9 [deprecated]
4992 ## TODO: cross compile: the following won't work.
4993 SPARCV9=`isainfo -n 2>&1 | grep sparcv9`
4994 SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
4995 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
4996 if test -z "$SOL64" && test -n "$SPARCV9"; then
4997 CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9"
4998 CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9"
4999 LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9"
5000 CAN_BUILD_64=yes
5004 i386-*-solaris*)
5005 # 1. try -m64
5006 CFLAGS="${CFLAGS} -m64"
5007 CXXFLAGS="${CXXFLAGS} -m64"
5008 if test "$cross_compiling" = yes; then :
5009 CAN_BUILD_64=unknown
5010 else
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5014 _ACEOF
5015 if ac_fn_c_try_run "$LINENO"; then :
5016 CAN_BUILD_64=yes
5017 else
5018 CAN_BUILD_64=no
5020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5021 conftest.$ac_objext conftest.beam conftest.$ac_ext
5024 if test "$CAN_BUILD_64" != yes; then
5025 # Nope. back out changes.
5026 CFLAGS="${CFLAGS_OLD}"
5027 CXXFLAGS="${CXXFLAGS_OLD}"
5028 # 2. try the older compiler option
5029 ## TODO: cross compile problem
5030 AMD64=`isainfo -n 2>&1 | grep amd64`
5031 SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
5032 if test -z "$SOL64" && test -n "$AMD64"; then
5033 CFLAGS="${CFLAGS} -xtarget=generic64"
5034 CXXFLAGS="${CXXFLAGS} -xtarget=generic64"
5035 CAN_BUILD_64=yes
5039 ia64-*-linux*)
5040 # check for ecc/ecpc compiler support
5041 ## TODO: cross compiler problem
5042 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
5043 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
5044 CAN_BUILD_64=yes
5048 *-*-cygwin)
5049 # vcvarsamd64.bat should have been used to enable 64-bit builds.
5050 # We only do this check to display the correct answer.
5051 ## TODO: cross compiler problem
5052 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
5053 CAN_BUILD_64=yes
5056 *-*-aix*|powerpc64-*-linux*)
5057 CFLAGS="${CFLAGS} -q64"
5058 CXXFLAGS="${CXXFLAGS} -q64"
5059 LDFLAGS="${LDFLAGS} -q64"
5060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5062 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5063 _ACEOF
5064 if ac_fn_c_try_compile "$LINENO"; then :
5065 CAN_BUILD_64=yes
5066 else
5067 CAN_BUILD_64=no
5069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070 if test "$CAN_BUILD_64" = yes; then
5071 # worked- set other options.
5072 case "${host}" in
5073 *-*-aix*)
5074 # tell AIX what executable mode to use.
5075 ARFLAGS="${ARFLAGS} -X64"
5076 esac
5079 *-*-hpux*)
5080 # First we try the newer +DD64, if that doesn't work,
5081 # try other options.
5083 CFLAGS="${CFLAGS} +DD64"
5084 CXXFLAGS="${CXXFLAGS} +DD64"
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5088 _ACEOF
5089 if ac_fn_c_try_compile "$LINENO"; then :
5090 CAN_BUILD_64=yes
5091 else
5092 CAN_BUILD_64=no
5094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5095 if test "$CAN_BUILD_64" != yes; then
5096 # reset
5097 CFLAGS="${CFLAGS_OLD}"
5098 CXXFLAGS="${CXXFLAGS_OLD}"
5099 # append
5100 CFLAGS="${CFLAGS} +DA2.0W"
5101 CXXFLAGS="${CXXFLAGS} +DA2.0W"
5102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5103 /* end confdefs.h. */
5104 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5105 _ACEOF
5106 if ac_fn_c_try_compile "$LINENO"; then :
5107 CAN_BUILD_64=yes
5108 else
5109 CAN_BUILD_64=no
5111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5114 *-*ibm-openedition*|*-*-os390*)
5115 CFLAGS="${CFLAGS} -Wc,lp64"
5116 CXXFLAGS="${CXXFLAGS} -Wc,lp64"
5117 LDFLAGS="${LDFLAGS} -Wl,lp64"
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5120 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5121 _ACEOF
5122 if ac_fn_c_try_compile "$LINENO"; then :
5123 CAN_BUILD_64=yes
5124 else
5125 CAN_BUILD_64=no
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 # unknown platform.
5132 esac
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5
5135 $as_echo "$CAN_BUILD_64" >&6; }
5136 if test "$CAN_BUILD_64" = yes; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5
5138 $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; }
5139 if test "$cross_compiling" = yes; then :
5140 BITS_RUN_64=unknown
5141 else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 int main(void) {return (sizeof(void*)*8==64)?0:1;}
5145 _ACEOF
5146 if ac_fn_c_try_run "$LINENO"; then :
5147 BITS_RUN_64=yes
5148 else
5149 BITS_RUN_64=no
5151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5152 conftest.$ac_objext conftest.beam conftest.$ac_ext
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5
5156 $as_echo "$BITS_RUN_64" >&6; };
5158 CFLAGS_64="${CFLAGS}"
5159 CXXFLAGS_64="${CXXFLAGS}"
5160 LDFLAGS_64="${LDFLAGS}"
5161 ARFLAGS_64="${ARFLAGS}"
5163 # put it back.
5164 CFLAGS="${CFLAGS_OLD}"
5165 CXXFLAGS="${CXXFLAGS_OLD}"
5166 LDFLAGS="${LDFLAGS_OLD}"
5167 ARFLAGS="${ARFLAGS_OLD}"
5169 if test "$BITS_CHECK_32" = "yes"; then
5170 # see comment under 'if BITS_CHECK_64', above.
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5
5172 $as_echo_n "checking how to build 32-bit executables... " >&6; }
5173 if test "$GCC" = yes; then
5174 CFLAGS="${CFLAGS} -m32"
5175 CXXFLAGS="${CXXFLAGS} -m32"
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5178 int main(void) {return (sizeof(void*)*8==32)?0:1;}
5179 _ACEOF
5180 if ac_fn_c_try_compile "$LINENO"; then :
5181 CAN_BUILD_32=yes
5182 else
5183 CAN_BUILD_32=no
5185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5
5188 $as_echo "$CAN_BUILD_32" >&6; }
5189 if test "$CAN_BUILD_32" = yes; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5
5191 $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; }
5192 if test "$cross_compiling" = yes; then :
5193 BITS_RUN_32=unknown
5194 else
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5197 int main(void) {return (sizeof(void*)*8==32)?0:1;}
5198 _ACEOF
5199 if ac_fn_c_try_run "$LINENO"; then :
5200 BITS_RUN_32=yes
5201 else
5202 BITS_RUN_32=no
5204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5205 conftest.$ac_objext conftest.beam conftest.$ac_ext
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5
5209 $as_echo "$BITS_RUN_32" >&6; };
5210 CFLAGS_32="${CFLAGS}"
5211 CXXFLAGS_32="${CXXFLAGS}"
5212 LDFLAGS_32="${LDFLAGS}"
5213 ARFLAGS_32="${ARFLAGS}"
5215 # put it back.
5216 CFLAGS="${CFLAGS_OLD}"
5217 CXXFLAGS="${CXXFLAGS_OLD}"
5218 LDFLAGS="${LDFLAGS_OLD}"
5219 ARFLAGS="${ARFLAGS_OLD}"
5223 # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do.
5226 # First, implement 64else32
5227 if test "$BITS_REQ" = "64else32"; then
5228 if test "$BITS_RUN_64" = "yes"; then
5229 BITS_REQ=64
5230 else
5231 # no changes.
5232 BITS_OK=yes
5236 # implement.
5237 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
5238 CFLAGS="${CFLAGS_32}"
5239 CXXFLAGS="${CXXFLAGS_32}"
5240 LDFLAGS="${LDFLAGS_32}"
5241 ARFLAGS="${ARFLAGS_32}"
5242 BITS_OK=yes
5243 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
5244 CFLAGS="${CFLAGS_64}"
5245 CXXFLAGS="${CXXFLAGS_64}"
5246 LDFLAGS="${LDFLAGS_64}"
5247 ARFLAGS="${ARFLAGS_64}"
5248 BITS_OK=yes
5249 elif test "$BITS_OK" != "yes"; then
5250 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
5257 # Determine the Makefile fragment
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5
5260 $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; }
5261 if ${icu_cv_host_frag+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5265 case "${host}" in
5266 *-*-solaris*)
5267 if test "$GCC" = yes; then
5268 icu_cv_host_frag=mh-solaris-gcc
5269 else
5270 icu_cv_host_frag=mh-solaris
5271 fi ;;
5272 alpha*-*-linux-gnu)
5273 if test "$GCC" = yes; then
5274 icu_cv_host_frag=mh-alpha-linux-gcc
5275 else
5276 icu_cv_host_frag=mh-alpha-linux-cc
5277 fi ;;
5278 powerpc*-*-linux*)
5279 if test "$GCC" = yes; then
5280 icu_cv_host_frag=mh-linux
5281 else
5282 icu_cv_host_frag=mh-linux-va
5283 fi ;;
5284 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag=mh-linux ;;
5285 i[34567]86-*-cygwin)
5286 if test "$GCC" = yes; then
5287 icu_cv_host_frag=mh-cygwin
5288 else
5289 icu_cv_host_frag=mh-cygwin-msvc
5290 fi ;;
5291 x86_64-*-cygwin)
5292 if test "$GCC" = yes; then
5293 icu_cv_host_frag=mh-cygwin64
5294 else
5295 icu_cv_host_frag=mh-cygwin-msvc
5296 fi ;;
5297 *-*-mingw*)
5298 if test "$GCC" = yes; then
5299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5302 #ifndef __MINGW64__
5303 #error This is not MinGW64
5304 #endif
5306 main ()
5310 return 0;
5312 _ACEOF
5313 if ac_fn_c_try_compile "$LINENO"; then :
5314 icu_cv_host_frag=mh-mingw64
5315 else
5316 icu_cv_host_frag=mh-mingw
5318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5319 else
5320 case "${host}" in
5321 *-*-mingw*) icu_cv_host_frag=mh-msys-msvc ;;
5322 *-*-cygwin) icu_cv_host_frag=mh-cygwin-msvc ;;
5323 esac
5324 fi ;;
5325 *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;;
5326 *-*-aix*)
5327 if test "$GCC" = yes; then
5328 icu_cv_host_frag=mh-aix-gcc
5329 else
5330 icu_cv_host_frag=mh-aix-va
5331 fi ;;
5332 *-*-hpux*)
5333 if test "$GCC" = yes; then
5334 icu_cv_host_frag=mh-hpux-gcc
5335 else
5336 case "$CXX" in
5337 *aCC) icu_cv_host_frag=mh-hpux-acc ;;
5338 esac
5339 fi ;;
5340 *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;;
5341 *-*-os400*) icu_cv_host_frag=mh-os400 ;;
5342 *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;;
5343 powerpc*-apple-darwin*) icu_cv_host_frag=mh-darwin-ppc ;;
5344 *-apple-darwin*) icu_cv_host_frag=mh-darwin ;;
5345 *-*-beos) icu_cv_host_frag=mh-beos ;;
5346 *-*-haiku) icu_cv_host_frag=mh-haiku ;;
5347 *-*-irix*) icu_cv_host_frag=mh-irix ;;
5348 *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;;
5349 *-*-nto*) icu_cv_host_frag=mh-qnx ;;
5350 *-ncr-*) icu_cv_host_frag=mh-mpras ;;
5351 *) icu_cv_host_frag=mh-unknown ;;
5352 esac
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5
5357 $as_echo "$icu_cv_host_frag" >&6; }
5360 # Checks for libraries and other host specific stuff
5361 # On HP/UX, don't link to -lm from a shared lib because it isn't
5362 # PIC (at least on 10.2)
5363 case "${host}" in
5364 *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5365 $as_echo_n "checking for floor in -lm... " >&6; }
5366 if ${ac_cv_lib_m_floor+:} false; then :
5367 $as_echo_n "(cached) " >&6
5368 else
5369 ac_check_lib_save_LIBS=$LIBS
5370 LIBS="-lm $LIBS"
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372 /* end confdefs.h. */
5374 /* Override any GCC internal prototype to avoid an error.
5375 Use char because int might match the return type of a GCC
5376 builtin and then its argument prototype would still apply. */
5377 #ifdef __cplusplus
5378 extern "C"
5379 #endif
5380 char floor ();
5382 main ()
5384 return floor ();
5386 return 0;
5388 _ACEOF
5389 if ac_fn_c_try_link "$LINENO"; then :
5390 ac_cv_lib_m_floor=yes
5391 else
5392 ac_cv_lib_m_floor=no
5394 rm -f core conftest.err conftest.$ac_objext \
5395 conftest$ac_exeext conftest.$ac_ext
5396 LIBS=$ac_check_lib_save_LIBS
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5399 $as_echo "$ac_cv_lib_m_floor" >&6; }
5400 if test "x$ac_cv_lib_m_floor" = xyes; then :
5401 LIB_M="-lm"
5405 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5406 $as_echo_n "checking for floor in -lm... " >&6; }
5407 if ${ac_cv_lib_m_floor+:} false; then :
5408 $as_echo_n "(cached) " >&6
5409 else
5410 ac_check_lib_save_LIBS=$LIBS
5411 LIBS="-lm $LIBS"
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413 /* end confdefs.h. */
5415 /* Override any GCC internal prototype to avoid an error.
5416 Use char because int might match the return type of a GCC
5417 builtin and then its argument prototype would still apply. */
5418 #ifdef __cplusplus
5419 extern "C"
5420 #endif
5421 char floor ();
5423 main ()
5425 return floor ();
5427 return 0;
5429 _ACEOF
5430 if ac_fn_c_try_link "$LINENO"; then :
5431 ac_cv_lib_m_floor=yes
5432 else
5433 ac_cv_lib_m_floor=no
5435 rm -f core conftest.err conftest.$ac_objext \
5436 conftest$ac_exeext conftest.$ac_ext
5437 LIBS=$ac_check_lib_save_LIBS
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5440 $as_echo "$ac_cv_lib_m_floor" >&6; }
5441 if test "x$ac_cv_lib_m_floor" = xyes; then :
5442 cat >>confdefs.h <<_ACEOF
5443 #define HAVE_LIBM 1
5444 _ACEOF
5446 LIBS="-lm $LIBS"
5450 LIB_M="" ;;
5451 esac
5454 # Check whether to build shared libraries
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5456 $as_echo_n "checking whether to build shared libraries... " >&6; }
5457 enabled=no
5458 # Check whether --enable-shared was given.
5459 if test "${enable_shared+set}" = set; then :
5460 enableval=$enable_shared; case "${enableval}" in
5461 yes|"") enabled=yes; ENABLE_SHARED=YES ;;
5462 no);;
5463 *) ;;
5464 esac
5465 else
5466 enabled=yes; ENABLE_SHARED=YES
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5471 $as_echo "$enabled" >&6; }
5474 # Check whether to build static libraries
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5476 $as_echo_n "checking whether to build static libraries... " >&6; }
5477 enabled=no
5478 # Check whether --enable-static was given.
5479 if test "${enable_static+set}" = set; then :
5480 enableval=$enable_static; case "${enableval}" in
5481 yes|"") enabled=yes; ENABLE_STATIC=YES ;;
5482 no) ;;
5483 *) ;;
5484 esac
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5488 $as_echo "$enabled" >&6; }
5491 # When building release static library, there might be some optimization flags we can use
5492 if test "$ENABLE_STATIC" = "YES"; then
5493 if test "$ENABLE_SHARED" != "YES"; then
5494 if test "$ENABLE_RELEASE" = 1; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5
5496 $as_echo_n "checking whether we can use static library optimization option... " >&6; }
5497 CHECK_STATIC_OPT_FLAG=no
5499 OLD_CPPFLAGS="${CPPFLAGS}"
5500 OLD_LDFLAGS="${LDFLAGS}"
5502 case "${host}" in
5503 *-linux*|i*86-*-*bsd*|i*86-pc-gnu)
5504 if test "$GCC" = yes; then
5505 CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections"
5506 LDFLAGS="${LDFLAGS} -Wl,--gc-sections"
5511 esac
5513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5514 /* end confdefs.h. */
5517 main ()
5521 return 0;
5523 _ACEOF
5524 if ac_fn_c_try_link "$LINENO"; then :
5525 CHECK_STATIC_OPT_FLAG=yes
5526 else
5527 CHECK_STATIC_OPT_FLAG=no
5529 rm -f core conftest.err conftest.$ac_objext \
5530 conftest$ac_exeext conftest.$ac_ext
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5
5532 $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; }
5533 if test "$CHECK_STATIC_OPT_FLAG" = no; then
5534 CPPFLAGS="${OLD_CPPFLAGS}"
5535 LDFLAGS="${OLD_LDFLAGS}"
5542 # Check whether to enable auto cleanup of libraries
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5
5544 $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; }
5545 enabled=no
5546 UCLN_NO_AUTO_CLEANUP=1
5547 # Check whether --enable-auto-cleanup was given.
5548 if test "${enable_auto_cleanup+set}" = set; then :
5549 enableval=$enable_auto_cleanup; case "${enableval}" in
5550 yes) enabled=yes;
5551 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
5552 UCLN_NO_AUTO_CLEANUP=0
5554 *) ;;
5555 esac
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5559 $as_echo "$enabled" >&6; }
5562 # MSVC floating-point option
5563 MSVC_RELEASE_FLAG=""
5564 if test $enabled = yes
5565 then
5566 if test $icu_cv_host_frag = mh-cygwin-msvc -o $icu_cv_host_frag = mh-msys-msvc
5567 then
5568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5569 /* end confdefs.h. */
5571 #if defined _MSC_VER && _MSC_VER >= 1400
5572 #else
5573 Microsoft Visual C++ < 2005
5574 #endif
5577 main ()
5581 return 0;
5583 _ACEOF
5584 if ac_fn_c_try_compile "$LINENO"; then :
5585 MSVC_RELEASE_FLAG="/fp:precise"
5586 else
5587 MSVC_RELEASE_FLAG="/Op"
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 CFLAGS="${CFLAGS} ${MSVC_RELEASE_FLAG}"
5592 CXXFLAGS="${CXXFLAGS} ${MSVC_RELEASE_FLAG}"
5596 # Check whether to enabled draft APIs
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5
5598 $as_echo_n "checking whether to enable draft APIs... " >&6; }
5599 enabled=yes
5600 U_DEFAULT_SHOW_DRAFT=1
5601 # Check whether --enable-draft was given.
5602 if test "${enable_draft+set}" = set; then :
5603 enableval=$enable_draft; case "${enableval}" in
5604 no) enabled=no; U_DEFAULT_SHOW_DRAFT=0;
5605 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
5607 *) ;;
5608 esac
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5612 $as_echo "$enabled" >&6; }
5613 # Make sure that we can use draft API in ICU.
5614 if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
5615 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API -DU_SHOW_INTERNAL_API"
5619 if test -n "$ac_tool_prefix"; then
5620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5621 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623 $as_echo_n "checking for $ac_word... " >&6; }
5624 if ${ac_cv_prog_RANLIB+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626 else
5627 if test -n "$RANLIB"; then
5628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5629 else
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5641 done
5642 done
5643 IFS=$as_save_IFS
5647 RANLIB=$ac_cv_prog_RANLIB
5648 if test -n "$RANLIB"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5650 $as_echo "$RANLIB" >&6; }
5651 else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653 $as_echo "no" >&6; }
5658 if test -z "$ac_cv_prog_RANLIB"; then
5659 ac_ct_RANLIB=$RANLIB
5660 # Extract the first word of "ranlib", so it can be a program name with args.
5661 set dummy ranlib; ac_word=$2
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5663 $as_echo_n "checking for $ac_word... " >&6; }
5664 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666 else
5667 if test -n "$ac_ct_RANLIB"; then
5668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5669 else
5670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5671 for as_dir in $PATH
5673 IFS=$as_save_IFS
5674 test -z "$as_dir" && as_dir=.
5675 for ac_exec_ext in '' $ac_executable_extensions; do
5676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5677 ac_cv_prog_ac_ct_RANLIB="ranlib"
5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5679 break 2
5681 done
5682 done
5683 IFS=$as_save_IFS
5687 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5688 if test -n "$ac_ct_RANLIB"; then
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5690 $as_echo "$ac_ct_RANLIB" >&6; }
5691 else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5693 $as_echo "no" >&6; }
5696 if test "x$ac_ct_RANLIB" = x; then
5697 RANLIB=":"
5698 else
5699 case $cross_compiling:$ac_tool_warned in
5700 yes:)
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5702 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5703 ac_tool_warned=yes ;;
5704 esac
5705 RANLIB=$ac_ct_RANLIB
5707 else
5708 RANLIB="$ac_cv_prog_RANLIB"
5712 # need sed
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5714 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5715 if ${ac_cv_path_SED+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5719 for ac_i in 1 2 3 4 5 6 7; do
5720 ac_script="$ac_script$as_nl$ac_script"
5721 done
5722 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5723 { ac_script=; unset ac_script;}
5724 if test -z "$SED"; then
5725 ac_path_SED_found=false
5726 # Loop through the user's path and test for each of PROGNAME-LIST
5727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 for as_dir in $PATH
5730 IFS=$as_save_IFS
5731 test -z "$as_dir" && as_dir=.
5732 for ac_prog in sed gsed; do
5733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5735 as_fn_executable_p "$ac_path_SED" || continue
5736 # Check for GNU ac_path_SED and select it if it is found.
5737 # Check for GNU $ac_path_SED
5738 case `"$ac_path_SED" --version 2>&1` in
5739 *GNU*)
5740 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5742 ac_count=0
5743 $as_echo_n 0123456789 >"conftest.in"
5744 while :
5746 cat "conftest.in" "conftest.in" >"conftest.tmp"
5747 mv "conftest.tmp" "conftest.in"
5748 cp "conftest.in" "conftest.nl"
5749 $as_echo '' >> "conftest.nl"
5750 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5752 as_fn_arith $ac_count + 1 && ac_count=$as_val
5753 if test $ac_count -gt ${ac_path_SED_max-0}; then
5754 # Best one so far, save it but keep looking for a better one
5755 ac_cv_path_SED="$ac_path_SED"
5756 ac_path_SED_max=$ac_count
5758 # 10*(2^10) chars as input seems more than enough
5759 test $ac_count -gt 10 && break
5760 done
5761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5762 esac
5764 $ac_path_SED_found && break 3
5765 done
5766 done
5767 done
5768 IFS=$as_save_IFS
5769 if test -z "$ac_cv_path_SED"; then
5770 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5772 else
5773 ac_cv_path_SED=$SED
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5778 $as_echo "$ac_cv_path_SED" >&6; }
5779 SED="$ac_cv_path_SED"
5780 rm -f conftest.sed
5783 # look for 'ar' the proper way
5784 if test -n "$ac_tool_prefix"; then
5785 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5786 set dummy ${ac_tool_prefix}ar; ac_word=$2
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788 $as_echo_n "checking for $ac_word... " >&6; }
5789 if ${ac_cv_prog_AR+:} false; then :
5790 $as_echo_n "(cached) " >&6
5791 else
5792 if test -n "$AR"; then
5793 ac_cv_prog_AR="$AR" # Let the user override the test.
5794 else
5795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5796 for as_dir in $PATH
5798 IFS=$as_save_IFS
5799 test -z "$as_dir" && as_dir=.
5800 for ac_exec_ext in '' $ac_executable_extensions; do
5801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802 ac_cv_prog_AR="${ac_tool_prefix}ar"
5803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5804 break 2
5806 done
5807 done
5808 IFS=$as_save_IFS
5812 AR=$ac_cv_prog_AR
5813 if test -n "$AR"; then
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5815 $as_echo "$AR" >&6; }
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5823 if test -z "$ac_cv_prog_AR"; then
5824 ac_ct_AR=$AR
5825 # Extract the first word of "ar", so it can be a program name with args.
5826 set dummy ar; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5830 $as_echo_n "(cached) " >&6
5831 else
5832 if test -n "$ac_ct_AR"; then
5833 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5834 else
5835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5836 for as_dir in $PATH
5838 IFS=$as_save_IFS
5839 test -z "$as_dir" && as_dir=.
5840 for ac_exec_ext in '' $ac_executable_extensions; do
5841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5842 ac_cv_prog_ac_ct_AR="ar"
5843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5844 break 2
5846 done
5847 done
5848 IFS=$as_save_IFS
5852 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5853 if test -n "$ac_ct_AR"; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5855 $as_echo "$ac_ct_AR" >&6; }
5856 else
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5858 $as_echo "no" >&6; }
5861 if test "x$ac_ct_AR" = x; then
5862 AR="false"
5863 else
5864 case $cross_compiling:$ac_tool_warned in
5865 yes:)
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5868 ac_tool_warned=yes ;;
5869 esac
5870 AR=$ac_ct_AR
5872 else
5873 AR="$ac_cv_prog_AR"
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5
5878 $as_echo_n "checking whether to enable renaming of symbols... " >&6; }
5879 enabled=yes
5880 U_DISABLE_RENAMING=0
5881 # Check whether --enable-renaming was given.
5882 if test "${enable_renaming+set}" = set; then :
5883 enableval=$enable_renaming; case "${enableval}" in
5884 yes|"") enabled=yes ;;
5885 no) enabled=no; U_DISABLE_RENAMING=1;
5886 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
5888 *) ;;
5889 esac
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5893 $as_echo "$enabled" >&6; }
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5
5897 $as_echo_n "checking whether to enable function and data tracing... " >&6; }
5898 enabled=no
5899 U_ENABLE_TRACING=0
5900 # Check whether --enable-tracing was given.
5901 if test "${enable_tracing+set}" = set; then :
5902 enableval=$enable_tracing; case "${enableval}" in
5903 yes|"") enabled=yes;
5904 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
5905 U_ENABLE_TRACING=1 ;;
5906 no) enabled=no; U_ENABLE_TRACING=0 ;;
5907 *) ;;
5908 esac
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5912 $as_echo "$enabled" >&6; }
5915 # check if elf.h is present.
5916 for ac_header in elf.h
5917 do :
5918 ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
5919 if test "x$ac_cv_header_elf_h" = xyes; then :
5920 cat >>confdefs.h <<_ACEOF
5921 #define HAVE_ELF_H 1
5922 _ACEOF
5926 done
5928 if test "x$ac_cv_header_elf_h" = "xyes"; then
5929 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
5932 # Enable/disable plugins
5933 # Check whether --enable-plugins was given.
5934 if test "${enable_plugins+set}" = set; then :
5935 enableval=$enable_plugins; case "${enableval}" in
5936 yes) plugins=true ;;
5937 no) plugins=false ;;
5938 *) as_fn_error $? "bad value ${enableval} for --enable-plugins" "$LINENO" 5 ;;
5939 esac
5940 else
5941 plugins=false
5946 if test "$plugins" = true; then
5947 PLUGINS_TRUE=
5948 U_HAVE_PLUGINS=1
5949 else
5950 PLUGINS_TRUE='#'
5951 U_HAVE_PLUGINS=0
5954 if test "x$plugins" = "xtrue"; then
5955 UCONFIG_CPPFLAGS="$UCONFIG_CPPFLAGS -DUCONFIG_ENABLE_PLUGINS=1"
5959 U_ENABLE_DYLOAD=1
5960 enable=yes
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins. Ignored if plugins disabled." >&5
5962 $as_echo_n "checking whether to enable dynamic loading of plugins. Ignored if plugins disabled.... " >&6; }
5963 # Check whether --enable-dyload was given.
5964 if test "${enable_dyload+set}" = set; then :
5965 enableval=$enable_dyload; case "${enableval}" in
5966 yes|"")
5967 U_ENABLE_DYLOAD=1
5968 enable=yes
5971 U_ENABLE_DYLOAD=0;
5972 enable=no;
5973 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
5975 *) ;;
5976 esac
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5
5980 $as_echo "$enable" >&6; }
5983 if test "$enable" = "yes"; then
5984 for ac_header in dlfcn.h
5985 do :
5986 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5987 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5988 cat >>confdefs.h <<_ACEOF
5989 #define HAVE_DLFCN_H 1
5990 _ACEOF
5994 done
5996 #AC_MSG_RESULT($enabled)
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5998 $as_echo_n "checking for library containing dlopen... " >&6; }
5999 if ${ac_cv_search_dlopen+:} false; then :
6000 $as_echo_n "(cached) " >&6
6001 else
6002 ac_func_search_save_LIBS=$LIBS
6003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004 /* end confdefs.h. */
6006 /* Override any GCC internal prototype to avoid an error.
6007 Use char because int might match the return type of a GCC
6008 builtin and then its argument prototype would still apply. */
6009 #ifdef __cplusplus
6010 extern "C"
6011 #endif
6012 char dlopen ();
6014 main ()
6016 return dlopen ();
6018 return 0;
6020 _ACEOF
6021 for ac_lib in '' dl; do
6022 if test -z "$ac_lib"; then
6023 ac_res="none required"
6024 else
6025 ac_res=-l$ac_lib
6026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6028 if ac_fn_c_try_link "$LINENO"; then :
6029 ac_cv_search_dlopen=$ac_res
6031 rm -f core conftest.err conftest.$ac_objext \
6032 conftest$ac_exeext
6033 if ${ac_cv_search_dlopen+:} false; then :
6034 break
6036 done
6037 if ${ac_cv_search_dlopen+:} false; then :
6039 else
6040 ac_cv_search_dlopen=no
6042 rm conftest.$ac_ext
6043 LIBS=$ac_func_search_save_LIBS
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
6046 $as_echo "$ac_cv_search_dlopen" >&6; }
6047 ac_res=$ac_cv_search_dlopen
6048 if test "$ac_res" != no; then :
6049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6053 for ac_func in dlopen
6054 do :
6055 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
6056 if test "x$ac_cv_func_dlopen" = xyes; then :
6057 cat >>confdefs.h <<_ACEOF
6058 #define HAVE_DLOPEN 1
6059 _ACEOF
6062 done
6065 if test "x$ac_cv_func_dlopen" != xyes; then
6066 CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
6070 # Check for miscellaneous functions.
6071 # So, use for putil / tools only.
6072 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
6073 for ac_func in gettimeofday
6074 do :
6075 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
6076 if test "x$ac_cv_func_gettimeofday" = xyes; then :
6077 cat >>confdefs.h <<_ACEOF
6078 #define HAVE_GETTIMEOFDAY 1
6079 _ACEOF
6082 done
6086 # Check whether to use the evil rpath or not
6087 # Check whether --enable-rpath was given.
6088 if test "${enable_rpath+set}" = set; then :
6089 enableval=$enable_rpath; case "${enableval}" in
6090 yes|"") ENABLE_RPATH=YES ;;
6091 no) ;;
6092 *) ;;
6093 esac
6094 else
6095 ENABLE_RPATH=NO
6103 ac_ext=cpp
6104 ac_cpp='$CXXCPP $CPPFLAGS'
6105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5
6110 $as_echo_n "checking if we have a C++ compiler... " >&6; }
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112 /* end confdefs.h. */
6115 main ()
6119 return 0;
6121 _ACEOF
6122 if ac_fn_cxx_try_compile "$LINENO"; then :
6123 cxx_okay=yes
6124 else
6125 cxx_okay=no
6127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6128 if test $cxx_okay = yes
6129 then
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5
6131 $as_echo "Good" >&6; }
6132 else
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6134 $as_echo "no" >&6; }
6135 as_fn_error $? "C++ compiler $CXX does not work or no compiler found" "$LINENO" 5
6138 if [ "$GXX" = yes ]; then
6139 # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++11,
6140 # and check that the compiler still works.
6141 if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then
6142 OLD_CXXFLAGS="${CXXFLAGS}"
6143 CXXFLAGS="$CXXFLAGS -std=c++11"
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++11 compiler" >&5
6145 $as_echo_n "checking if we have a C++11 compiler... " >&6; }
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6150 main ()
6154 return 0;
6156 _ACEOF
6157 if ac_fn_cxx_try_compile "$LINENO"; then :
6158 cxx11_okay=yes
6159 else
6160 cxx11_okay=no
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx11_okay" >&5
6164 $as_echo "$cxx11_okay" >&6; }
6165 if [ $cxx11_okay = yes ]; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option -std=c++11" >&5
6167 $as_echo "$as_me: Adding CXXFLAGS option -std=c++11" >&6;}
6168 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -std=c++11"
6169 else
6170 CXXFLAGS="$OLD_CXXFLAGS"
6175 ac_ext=c
6176 ac_cpp='$CPP $CPPFLAGS'
6177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6182 # Always build ICU with multi-threading support.
6183 OLD_LIBS=${LIBS}
6185 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
6186 # and must do this before searching for pthread_mutex_destroy, or
6187 # we will pick up libpthreads.so not libpthread.so
6188 # If this fails, then we must test for HPUX specials, before
6189 # moving on to a more generic test
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
6192 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
6193 if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 ac_check_lib_save_LIBS=$LIBS
6197 LIBS="-lpthread $LIBS"
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199 /* end confdefs.h. */
6201 /* Override any GCC internal prototype to avoid an error.
6202 Use char because int might match the return type of a GCC
6203 builtin and then its argument prototype would still apply. */
6204 #ifdef __cplusplus
6205 extern "C"
6206 #endif
6207 char pthread_attr_init ();
6209 main ()
6211 return pthread_attr_init ();
6213 return 0;
6215 _ACEOF
6216 if ac_fn_c_try_link "$LINENO"; then :
6217 ac_cv_lib_pthread_pthread_attr_init=yes
6218 else
6219 ac_cv_lib_pthread_pthread_attr_init=no
6221 rm -f core conftest.err conftest.$ac_objext \
6222 conftest$ac_exeext conftest.$ac_ext
6223 LIBS=$ac_check_lib_save_LIBS
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6226 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
6227 if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes; then :
6228 cat >>confdefs.h <<_ACEOF
6229 #define HAVE_LIBPTHREAD 1
6230 _ACEOF
6232 LIBS="-lpthread $LIBS"
6236 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6238 else
6239 # Locate the right library for POSIX threads. We look for the
6240 # symbols in the libraries first, because on Solaris libc provides
6241 # pthread_create but libpthread has the real code :(
6242 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
6243 # FreeBSD users may need libpthread if they do not have libc_r.
6246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5
6247 $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; }
6248 if ${ac_cv_search_pthread_mutex_destroy+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250 else
6251 ac_func_search_save_LIBS="$LIBS"
6252 ac_cv_search_pthread_mutex_destroy="no"
6253 for i in pthread pthreads c_r ; do
6254 LIBS="-l$i $ac_func_search_save_LIBS"
6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6258 /* Override any GCC internal prototype to avoid an error.
6259 Use char because int might match the return type of a GCC
6260 builtin and then its argument prototype would still apply. */
6261 #ifdef __cplusplus
6262 extern "C"
6263 #endif
6264 char pthread_mutex_destroy ();
6266 main ()
6268 return pthread_mutex_destroy ();
6270 return 0;
6272 _ACEOF
6273 if ac_fn_c_try_link "$LINENO"; then :
6274 ac_cv_search_pthread_mutex_destroy="-l$i"
6275 break
6277 rm -f core conftest.err conftest.$ac_objext \
6278 conftest$ac_exeext conftest.$ac_ext
6279 done
6280 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
6281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6282 /* end confdefs.h. */
6284 /* Override any GCC internal prototype to avoid an error.
6285 Use char because int might match the return type of a GCC
6286 builtin and then its argument prototype would still apply. */
6287 #ifdef __cplusplus
6288 extern "C"
6289 #endif
6290 char pthread_mutex_destroy ();
6292 main ()
6294 return pthread_mutex_destroy ();
6296 return 0;
6298 _ACEOF
6299 if ac_fn_c_try_link "$LINENO"; then :
6300 ac_cv_search_pthread_mutex_destroy="none required"
6302 rm -f core conftest.err conftest.$ac_objext \
6303 conftest$ac_exeext conftest.$ac_ext
6305 LIBS="$ac_func_search_save_LIBS"
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5
6308 $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; }
6309 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
6310 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS"
6312 else :
6316 if test "$ac_cv_search_pthread_mutex_destroy" != no; then
6318 else
6319 # For HP 11
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
6321 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
6322 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
6323 $as_echo_n "(cached) " >&6
6324 else
6325 ac_check_lib_save_LIBS=$LIBS
6326 LIBS="-lpthread $LIBS"
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6330 /* Override any GCC internal prototype to avoid an error.
6331 Use char because int might match the return type of a GCC
6332 builtin and then its argument prototype would still apply. */
6333 #ifdef __cplusplus
6334 extern "C"
6335 #endif
6336 char pthread_mutex_init ();
6338 main ()
6340 return pthread_mutex_init ();
6342 return 0;
6344 _ACEOF
6345 if ac_fn_c_try_link "$LINENO"; then :
6346 ac_cv_lib_pthread_pthread_mutex_init=yes
6347 else
6348 ac_cv_lib_pthread_pthread_mutex_init=no
6350 rm -f core conftest.err conftest.$ac_objext \
6351 conftest$ac_exeext conftest.$ac_ext
6352 LIBS=$ac_check_lib_save_LIBS
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6355 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6356 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
6357 cat >>confdefs.h <<_ACEOF
6358 #define HAVE_LIBPTHREAD 1
6359 _ACEOF
6361 LIBS="-lpthread $LIBS"
6365 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
6370 ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
6371 if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then :
6376 if test $ac_cv_func_pthread_mutex_lock = yes; then
6380 # Check to see if we are using CygWin with MSVC
6381 case "${host}" in
6382 *-pc-cygwin*|*-pc-mingw*)
6383 # For gcc, the thread options are set by mh-mingw/mh-cygwin
6384 # For msvc, the thread options are set by runConfigureICU
6387 *-*-hpux*)
6388 # Add -mt because it does several nice things on newer compilers.
6389 case "${icu_cv_host_frag}" in
6390 mh-hpux-acc)
6391 OLD_CXXFLAGS="${CXXFLAGS}"
6392 CXXFLAGS="${CXXFLAGS} -mt"
6393 if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then
6394 CXXFLAGS="${OLD_CXXFLAGS}"
6395 else
6396 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt"
6399 esac
6401 *-*-solaris*)
6402 case "${icu_cv_host_frag}" in
6403 mh-solaris)
6404 LIBS="${LIBS} -mt"
6406 esac
6408 esac
6410 # Check whether --enable-weak-threads was given.
6411 if test "${enable_weak_threads+set}" = set; then :
6412 enableval=$enable_weak_threads; case "${enableval}" in
6413 yes)
6414 LIB_THREAD="${LIBS%${OLD_LIBS}}"
6415 LIBS=${OLD_LIBS}
6417 no) ;;
6418 *) as_fn_error $? "bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;;
6419 esac
6424 # Check for mmap()
6426 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
6427 # Do this check instead.
6428 HAVE_MMAP=0
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
6430 $as_echo_n "checking for mmap... " >&6; }
6431 if ${ac_cv_func_mmap_ok+:} false; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6436 #include <unistd.h>
6437 #include <sys/mman.h>
6438 #include <sys/stat.h>
6439 #include <fcntl.h>
6441 main ()
6443 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
6445 return 0;
6447 _ACEOF
6448 if ac_fn_c_try_link "$LINENO"; then :
6449 ac_cv_func_mmap_ok=yes
6450 else
6451 ac_cv_func_mmap_ok=no
6453 rm -f core conftest.err conftest.$ac_objext \
6454 conftest$ac_exeext conftest.$ac_ext
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
6458 $as_echo "$ac_cv_func_mmap_ok" >&6; }
6459 if test $ac_cv_func_mmap_ok = yes
6460 then
6461 HAVE_MMAP=1
6462 else
6463 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5
6468 $as_echo_n "checking for genccode assembly... " >&6; }
6470 # Check to see if genccode can generate simple assembly.
6471 GENCCODE_ASSEMBLY=
6472 case "${host}" in
6473 *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu)
6474 if test "$GCC" = yes; then
6475 # We're using gcc, and the simple -a gcc command line works for genccode
6476 GENCCODE_ASSEMBLY="-a gcc"
6477 fi ;;
6478 i*86-*-solaris*)
6479 if test "$GCC" = yes; then
6480 # When using gcc, look if we're also using GNU as.
6481 # When using GNU as, the simple -a gcc command line works for genccode.
6482 asv=`"${CC}" -print-prog-name=as 2>/dev/null`
6483 asv=`"${asv}" --version 2>/dev/null`
6484 case "X${asv}" in
6485 X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;;
6486 X*) GENCCODE_ASSEMBLY="-a sun-x86" ;;
6487 esac
6488 unset asv
6489 else
6490 GENCCODE_ASSEMBLY="-a sun-x86"
6491 fi ;;
6492 sparc-*-solaris*)
6493 GENCCODE_ASSEMBLY="-a sun"
6495 ia64-*-hpux*)
6496 # There has been some issues with building ICU data on HPUX ia64 aCC
6497 # when using the assemble code setting below. For now, build without
6498 # assemble code for this platform. This will increase the build time.
6499 # GENCCODE_ASSEMBLY="-a aCC-ia64"
6501 esac
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5
6505 $as_echo "$GENCCODE_ASSEMBLY" >&6; }
6507 # Checks for header files
6508 for ac_header in inttypes.h
6509 do :
6510 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6511 if test "x$ac_cv_header_inttypes_h" = xyes; then :
6512 cat >>confdefs.h <<_ACEOF
6513 #define HAVE_INTTYPES_H 1
6514 _ACEOF
6518 done
6520 if test $ac_cv_header_inttypes_h = no; then
6521 U_HAVE_INTTYPES_H=0
6522 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6523 else
6524 U_HAVE_INTTYPES_H=1
6526 if test "$CC" = ccc; then
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5
6528 $as_echo "\"C compiler set to CCC ${CC}\" " >&6; }
6529 case "${host}" in
6530 alpha*-*-*) U_HAVE_INTTYPES_H=0;
6531 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6532 esac
6537 for ac_header in dirent.h
6538 do :
6539 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
6540 if test "x$ac_cv_header_dirent_h" = xyes; then :
6541 cat >>confdefs.h <<_ACEOF
6542 #define HAVE_DIRENT_H 1
6543 _ACEOF
6547 done
6549 if test $ac_cv_header_dirent_h = no; then
6550 U_HAVE_DIRENT_H=0
6551 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
6552 else
6553 U_HAVE_DIRENT_H=1
6558 # Check for endianness
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6560 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6561 if ${ac_cv_c_bigendian+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564 ac_cv_c_bigendian=unknown
6565 # See if we're dealing with a universal compiler.
6566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6567 /* end confdefs.h. */
6568 #ifndef __APPLE_CC__
6569 not a universal capable compiler
6570 #endif
6571 typedef int dummy;
6573 _ACEOF
6574 if ac_fn_c_try_compile "$LINENO"; then :
6576 # Check for potential -arch flags. It is not universal unless
6577 # there are at least two -arch flags with different values.
6578 ac_arch=
6579 ac_prev=
6580 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6581 if test -n "$ac_prev"; then
6582 case $ac_word in
6583 i?86 | x86_64 | ppc | ppc64)
6584 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6585 ac_arch=$ac_word
6586 else
6587 ac_cv_c_bigendian=universal
6588 break
6591 esac
6592 ac_prev=
6593 elif test "x$ac_word" = "x-arch"; then
6594 ac_prev=arch
6596 done
6598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6599 if test $ac_cv_c_bigendian = unknown; then
6600 # See if sys/param.h defines the BYTE_ORDER macro.
6601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6603 #include <sys/types.h>
6604 #include <sys/param.h>
6607 main ()
6609 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6610 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6611 && LITTLE_ENDIAN)
6612 bogus endian macros
6613 #endif
6616 return 0;
6618 _ACEOF
6619 if ac_fn_c_try_compile "$LINENO"; then :
6620 # It does; now see whether it defined to BIG_ENDIAN or not.
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* end confdefs.h. */
6623 #include <sys/types.h>
6624 #include <sys/param.h>
6627 main ()
6629 #if BYTE_ORDER != BIG_ENDIAN
6630 not big endian
6631 #endif
6634 return 0;
6636 _ACEOF
6637 if ac_fn_c_try_compile "$LINENO"; then :
6638 ac_cv_c_bigendian=yes
6639 else
6640 ac_cv_c_bigendian=no
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 if test $ac_cv_c_bigendian = unknown; then
6647 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6649 /* end confdefs.h. */
6650 #include <limits.h>
6653 main ()
6655 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6656 bogus endian macros
6657 #endif
6660 return 0;
6662 _ACEOF
6663 if ac_fn_c_try_compile "$LINENO"; then :
6664 # It does; now see whether it defined to _BIG_ENDIAN or not.
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6667 #include <limits.h>
6670 main ()
6672 #ifndef _BIG_ENDIAN
6673 not big endian
6674 #endif
6677 return 0;
6679 _ACEOF
6680 if ac_fn_c_try_compile "$LINENO"; then :
6681 ac_cv_c_bigendian=yes
6682 else
6683 ac_cv_c_bigendian=no
6685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6689 if test $ac_cv_c_bigendian = unknown; then
6690 # Compile a test program.
6691 if test "$cross_compiling" = yes; then :
6692 # Try to guess by grepping values from an object file.
6693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6694 /* end confdefs.h. */
6695 short int ascii_mm[] =
6696 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6697 short int ascii_ii[] =
6698 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6699 int use_ascii (int i) {
6700 return ascii_mm[i] + ascii_ii[i];
6702 short int ebcdic_ii[] =
6703 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6704 short int ebcdic_mm[] =
6705 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6706 int use_ebcdic (int i) {
6707 return ebcdic_mm[i] + ebcdic_ii[i];
6709 extern int foo;
6712 main ()
6714 return use_ascii (foo) == use_ebcdic (foo);
6716 return 0;
6718 _ACEOF
6719 if ac_fn_c_try_compile "$LINENO"; then :
6720 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
6721 ac_cv_c_bigendian=yes
6723 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
6724 if test "$ac_cv_c_bigendian" = unknown; then
6725 ac_cv_c_bigendian=no
6726 else
6727 # finding both strings is unlikely to happen, but who knows?
6728 ac_cv_c_bigendian=unknown
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 else
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6736 $ac_includes_default
6738 main ()
6741 /* Are we little or big endian? From Harbison&Steele. */
6742 union
6744 long int l;
6745 char c[sizeof (long int)];
6746 } u;
6747 u.l = 1;
6748 return u.c[sizeof (long int) - 1] == 1;
6751 return 0;
6753 _ACEOF
6754 if ac_fn_c_try_run "$LINENO"; then :
6755 ac_cv_c_bigendian=no
6756 else
6757 ac_cv_c_bigendian=yes
6759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6760 conftest.$ac_objext conftest.beam conftest.$ac_ext
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6766 $as_echo "$ac_cv_c_bigendian" >&6; }
6767 case $ac_cv_c_bigendian in #(
6768 yes)
6769 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6770 ;; #(
6772 ;; #(
6773 universal)
6775 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6777 ;; #(
6779 as_fn_error $? "unknown endianness
6780 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6781 esac
6783 if test $ac_cv_c_bigendian = no; then
6784 U_IS_BIG_ENDIAN=0
6785 U_ENDIAN_CHAR="l"
6786 else
6787 U_IS_BIG_ENDIAN=1
6788 U_ENDIAN_CHAR="b"
6792 # Do various POSIX related checks
6793 U_HAVE_NL_LANGINFO_CODESET=0
6794 U_NL_LANGINFO_CODESET=-1
6795 ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6796 if test "x$ac_cv_func_nl_langinfo" = xyes; then :
6797 U_HAVE_NL_LANGINFO=1
6798 else
6799 U_HAVE_NL_LANGINFO=0
6802 if test $U_HAVE_NL_LANGINFO -eq 1; then
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5
6804 $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
6805 if ${ac_cv_nl_langinfo_codeset+:} false; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 ac_cv_nl_langinfo_codeset="unknown"
6809 for a in CODESET _NL_CTYPE_CODESET_NAME; do
6810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6811 /* end confdefs.h. */
6812 #include <langinfo.h>
6814 main ()
6816 nl_langinfo($a);
6818 return 0;
6820 _ACEOF
6821 if ac_fn_c_try_link "$LINENO"; then :
6822 ac_cv_nl_langinfo_codeset="$a"; break
6824 rm -f core conftest.err conftest.$ac_objext \
6825 conftest$ac_exeext conftest.$ac_ext
6826 done
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5
6829 $as_echo "$ac_cv_nl_langinfo_codeset" >&6; }
6830 if test x$ac_cv_nl_langinfo_codeset != xunknown
6831 then
6832 U_HAVE_NL_LANGINFO_CODESET=1
6833 U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset
6834 if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET"
6835 then
6836 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
6838 else
6839 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
6845 # Namespace support checks
6846 ac_ext=cpp
6847 ac_cpp='$CXXCPP $CPPFLAGS'
6848 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6849 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6850 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5
6853 $as_echo_n "checking for namespace support... " >&6; }
6854 if ${ac_cv_namespace_ok+:} false; then :
6855 $as_echo_n "(cached) " >&6
6856 else
6857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6858 /* end confdefs.h. */
6859 namespace x_version {void f(){}}
6860 namespace x = x_version;
6861 using namespace x_version;
6864 main ()
6866 f();
6868 return 0;
6870 _ACEOF
6871 if ac_fn_cxx_try_link "$LINENO"; then :
6872 ac_cv_namespace_ok=yes
6873 else
6874 ac_cv_namespace_ok=no
6876 rm -f core conftest.err conftest.$ac_objext \
6877 conftest$ac_exeext conftest.$ac_ext
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5
6881 $as_echo "$ac_cv_namespace_ok" >&6; }
6882 if test $ac_cv_namespace_ok = no
6883 then
6884 as_fn_error $? "Namespace support is required to build ICU." "$LINENO" 5
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5
6888 $as_echo_n "checking for properly overriding new and delete... " >&6; }
6889 U_OVERRIDE_CXX_ALLOCATION=0
6890 U_HAVE_PLACEMENT_NEW=0
6891 if ${ac_cv_override_cxx_allocation_ok+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6895 /* end confdefs.h. */
6896 #include <stdlib.h>
6897 class UMemory {
6898 public:
6899 void *operator new(size_t size) {return malloc(size);}
6900 void *operator new[](size_t size) {return malloc(size);}
6901 void operator delete(void *p) {free(p);}
6902 void operator delete[](void *p) {free(p);}
6906 main ()
6910 return 0;
6912 _ACEOF
6913 if ac_fn_cxx_try_link "$LINENO"; then :
6914 ac_cv_override_cxx_allocation_ok=yes
6915 else
6916 ac_cv_override_cxx_allocation_ok=no
6918 rm -f core conftest.err conftest.$ac_objext \
6919 conftest$ac_exeext conftest.$ac_ext
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5
6923 $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; }
6924 if test $ac_cv_override_cxx_allocation_ok = yes
6925 then
6926 U_OVERRIDE_CXX_ALLOCATION=1
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5
6928 $as_echo_n "checking for placement new and delete... " >&6; }
6929 if ${ac_cv_override_placement_new_ok+:} false; then :
6930 $as_echo_n "(cached) " >&6
6931 else
6932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6933 /* end confdefs.h. */
6934 #include <stdlib.h>
6935 class UMemory {
6936 public:
6937 void *operator new(size_t size) {return malloc(size);}
6938 void *operator new[](size_t size) {return malloc(size);}
6939 void operator delete(void *p) {free(p);}
6940 void operator delete[](void *p) {free(p);}
6941 void * operator new(size_t, void *ptr) { return ptr; }
6942 void operator delete(void *, void *) {}
6946 main ()
6950 return 0;
6952 _ACEOF
6953 if ac_fn_cxx_try_link "$LINENO"; then :
6954 ac_cv_override_placement_new_ok=yes
6955 else
6956 ac_cv_override_placement_new_ok=no
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5
6963 $as_echo "$ac_cv_override_placement_new_ok" >&6; }
6964 if test $ac_cv_override_placement_new_ok = yes
6965 then
6966 U_HAVE_PLACEMENT_NEW=1
6967 else
6968 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
6970 else
6971 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
6976 ac_ext=c
6977 ac_cpp='$CPP $CPPFLAGS'
6978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982 ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen"
6983 if test "x$ac_cv_func_popen" = xyes; then :
6987 if test x$ac_cv_func_popen = xyes
6988 then
6989 U_HAVE_POPEN=1
6990 else
6991 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
6992 U_HAVE_POPEN=0
6996 ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset"
6997 if test "x$ac_cv_func_tzset" = xyes; then :
7001 U_HAVE_TZSET=0
7002 if test x$ac_cv_func_tzset = xyes
7003 then
7004 U_TZSET=tzset
7005 U_HAVE_TZSET=1
7006 else
7007 ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset"
7008 if test "x$ac_cv_func__tzset" = xyes; then :
7012 if test x$ac_cv_func__tzset = xyes
7013 then
7014 U_TZSET=_tzset
7015 U_HAVE_TZSET=1
7016 else
7017 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
7023 U_HAVE_TZNAME=0
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
7025 $as_echo_n "checking for tzname... " >&6; }
7026 if ${ac_cv_var_tzname+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7030 /* end confdefs.h. */
7031 #ifndef _XOPEN_SOURCE
7032 #define _XOPEN_SOURCE
7033 #endif
7034 #include <stdlib.h>
7035 #include <time.h>
7036 #ifndef tzname /* For SGI. */
7037 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
7038 #endif
7040 main ()
7042 atoi(*tzname);
7044 return 0;
7046 _ACEOF
7047 if ac_fn_c_try_link "$LINENO"; then :
7048 ac_cv_var_tzname=yes
7049 else
7050 ac_cv_var_tzname=no
7052 rm -f core conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
7056 $as_echo "$ac_cv_var_tzname" >&6; }
7057 if test $ac_cv_var_tzname = yes; then
7058 U_TZNAME=tzname
7059 U_HAVE_TZNAME=1
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
7062 $as_echo_n "checking for _tzname... " >&6; }
7063 if ${ac_cv_var__tzname+:} false; then :
7064 $as_echo_n "(cached) " >&6
7065 else
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7068 #include <stdlib.h>
7069 #include <time.h>
7070 extern char *_tzname[];
7072 main ()
7074 atoi(*_tzname);
7076 return 0;
7078 _ACEOF
7079 if ac_fn_c_try_link "$LINENO"; then :
7080 ac_cv_var__tzname=yes
7081 else
7082 ac_cv_var__tzname=no
7084 rm -f core conftest.err conftest.$ac_objext \
7085 conftest$ac_exeext conftest.$ac_ext
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5
7088 $as_echo "$ac_cv_var__tzname" >&6; }
7089 if test $ac_cv_var__tzname = yes; then
7090 U_TZNAME=_tzname
7091 U_HAVE_TZNAME=1
7092 else
7093 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
7100 $as_echo_n "checking for timezone... " >&6; }
7101 if ${ac_cv_var_timezone+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7105 /* end confdefs.h. */
7106 #ifndef _XOPEN_SOURCE
7107 #define _XOPEN_SOURCE
7108 #endif
7109 #include <time.h>
7112 main ()
7114 timezone = 1;
7116 return 0;
7118 _ACEOF
7119 if ac_fn_c_try_link "$LINENO"; then :
7120 ac_cv_var_timezone=yes
7121 else
7122 ac_cv_var_timezone=no
7124 rm -f core conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
7128 $as_echo "$ac_cv_var_timezone" >&6; }
7129 U_HAVE_TIMEZONE=0
7130 if test $ac_cv_var_timezone = yes; then
7131 U_TIMEZONE=timezone
7132 U_HAVE_TIMEZONE=1
7133 else
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
7135 $as_echo_n "checking for __timezone... " >&6; }
7136 if ${ac_cv_var___timezone+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7141 #include <time.h>
7143 main ()
7145 __timezone = 1;
7147 return 0;
7149 _ACEOF
7150 if ac_fn_c_try_link "$LINENO"; then :
7151 ac_cv_var___timezone=yes
7152 else
7153 ac_cv_var___timezone=no
7155 rm -f core conftest.err conftest.$ac_objext \
7156 conftest$ac_exeext conftest.$ac_ext
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5
7159 $as_echo "$ac_cv_var___timezone" >&6; }
7160 if test $ac_cv_var___timezone = yes; then
7161 U_TIMEZONE=__timezone
7162 U_HAVE_TIMEZONE=1
7163 else
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5
7165 $as_echo_n "checking for _timezone... " >&6; }
7166 if ${ac_cv_var__timezone+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168 else
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7171 #include <time.h>
7173 main ()
7175 _timezone = 1;
7177 return 0;
7179 _ACEOF
7180 if ac_fn_c_try_link "$LINENO"; then :
7181 ac_cv_var__timezone=yes
7182 else
7183 ac_cv_var__timezone=no
7185 rm -f core conftest.err conftest.$ac_objext \
7186 conftest$ac_exeext conftest.$ac_ext
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
7189 $as_echo "$ac_cv_var__timezone" >&6; }
7190 if test $ac_cv_var__timezone = yes; then
7191 U_TIMEZONE=_timezone
7192 U_HAVE_TIMEZONE=1
7193 else
7194 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
7201 ac_fn_c_check_func "$LINENO" "strtod_l" "ac_cv_func_strtod_l"
7202 if test "x$ac_cv_func_strtod_l" = xyes; then :
7206 if test x$ac_cv_func_strtod_l = xyes
7207 then
7208 U_HAVE_STRTOD_L=1
7209 ac_fn_c_check_header_mongrel "$LINENO" "xlocale.h" "ac_cv_header_xlocale_h" "$ac_includes_default"
7210 if test "x$ac_cv_header_xlocale_h" = xyes; then :
7215 if test "$ac_cv_header_xlocale_h" = yes; then
7216 U_HAVE_XLOCALE_H=1
7217 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=1"
7218 else
7219 U_HAVE_XLOCALE_H=0
7220 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=1 -DU_HAVE_XLOCALE_H=0"
7222 else
7223 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRTOD_L=0"
7224 U_HAVE_STRTOD_L=0
7228 # Check if C++17 std::string_view is available.
7229 ac_ext=cpp
7230 ac_cpp='$CXXCPP $CPPFLAGS'
7231 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7232 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7233 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7235 ac_fn_cxx_check_type "$LINENO" "std::string_view" "ac_cv_type_std__string_view" "#include <string_view>
7237 if test "x$ac_cv_type_std__string_view" = xyes; then :
7241 if test "x$ac_cv_type_std__string_view" = xyes; then :
7242 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STRING_VIEW=1"
7244 ac_ext=c
7245 ac_cpp='$CPP $CPPFLAGS'
7246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7251 # Checks for typedefs
7252 ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
7253 if test "x$ac_cv_type_int8_t" = xyes; then :
7255 else
7257 cat >>confdefs.h <<_ACEOF
7258 #define int8_t signed char
7259 _ACEOF
7263 ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7264 if test "x$ac_cv_type_uint8_t" = xyes; then :
7266 else
7268 cat >>confdefs.h <<_ACEOF
7269 #define uint8_t unsigned char
7270 _ACEOF
7274 ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7275 if test "x$ac_cv_type_int16_t" = xyes; then :
7277 else
7279 cat >>confdefs.h <<_ACEOF
7280 #define int16_t signed short
7281 _ACEOF
7285 ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7286 if test "x$ac_cv_type_uint16_t" = xyes; then :
7288 else
7290 cat >>confdefs.h <<_ACEOF
7291 #define uint16_t unsigned short
7292 _ACEOF
7296 ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7297 if test "x$ac_cv_type_int32_t" = xyes; then :
7299 else
7301 cat >>confdefs.h <<_ACEOF
7302 #define int32_t signed long
7303 _ACEOF
7307 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7308 if test "x$ac_cv_type_uint32_t" = xyes; then :
7310 else
7312 cat >>confdefs.h <<_ACEOF
7313 #define uint32_t unsigned long
7314 _ACEOF
7318 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
7319 if test "x$ac_cv_type_int64_t" = xyes; then :
7321 else
7323 cat >>confdefs.h <<_ACEOF
7324 #define int64_t signed long long
7325 _ACEOF
7329 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
7330 if test "x$ac_cv_type_uint64_t" = xyes; then :
7332 else
7334 cat >>confdefs.h <<_ACEOF
7335 #define uint64_t unsigned long long
7336 _ACEOF
7341 if test $ac_cv_type_int8_t = no; then
7342 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
7345 if test $ac_cv_type_uint8_t = no; then
7346 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
7349 if test $ac_cv_type_int16_t = no; then
7350 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
7353 if test $ac_cv_type_uint16_t = no; then
7354 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
7357 if test $ac_cv_type_int32_t = no; then
7358 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
7361 if test $ac_cv_type_uint32_t = no; then
7362 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
7365 if test $ac_cv_type_int64_t = no; then
7366 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
7369 if test $ac_cv_type_uint64_t = no; then
7370 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
7373 # Do various wchar_t related checks
7374 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7375 if test "x$ac_cv_header_wchar_h" = xyes; then :
7380 if test "$ac_cv_header_wchar_h" = no
7381 then
7382 U_HAVE_WCHAR_H=0
7383 U_HAVE_WCSCPY=0
7384 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
7385 else
7387 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
7389 U_HAVE_WCHAR_H=1
7390 # Some broken systems have wchar.h but not some of its functions...
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5
7392 $as_echo_n "checking for library containing wcscpy... " >&6; }
7393 if ${ac_cv_search_wcscpy+:} false; then :
7394 $as_echo_n "(cached) " >&6
7395 else
7396 ac_func_search_save_LIBS=$LIBS
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7400 /* Override any GCC internal prototype to avoid an error.
7401 Use char because int might match the return type of a GCC
7402 builtin and then its argument prototype would still apply. */
7403 #ifdef __cplusplus
7404 extern "C"
7405 #endif
7406 char wcscpy ();
7408 main ()
7410 return wcscpy ();
7412 return 0;
7414 _ACEOF
7415 for ac_lib in '' wcs w; do
7416 if test -z "$ac_lib"; then
7417 ac_res="none required"
7418 else
7419 ac_res=-l$ac_lib
7420 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7422 if ac_fn_c_try_link "$LINENO"; then :
7423 ac_cv_search_wcscpy=$ac_res
7425 rm -f core conftest.err conftest.$ac_objext \
7426 conftest$ac_exeext
7427 if ${ac_cv_search_wcscpy+:} false; then :
7428 break
7430 done
7431 if ${ac_cv_search_wcscpy+:} false; then :
7433 else
7434 ac_cv_search_wcscpy=no
7436 rm conftest.$ac_ext
7437 LIBS=$ac_func_search_save_LIBS
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
7440 $as_echo "$ac_cv_search_wcscpy" >&6; }
7441 ac_res=$ac_cv_search_wcscpy
7442 if test "$ac_res" != no; then :
7443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7447 if test "$ac_cv_search_wcscpy" != no; then
7448 U_HAVE_WCSCPY=1
7449 else
7450 U_HAVE_WCSCPY=0
7451 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
7457 # The cast to long int works around a bug in the HP C Compiler
7458 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7459 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7460 # This bug is HP SR number 8606223364.
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
7462 $as_echo_n "checking size of wchar_t... " >&6; }
7463 if ${ac_cv_sizeof_wchar_t+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465 else
7466 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "
7467 #if STDC_HEADERS
7468 #include <stddef.h>
7469 #endif
7470 #include <stdlib.h>
7471 #if HAVE_WCHAR_H
7472 #include <string.h>
7473 #include <wchar.h>
7474 #endif
7475 "; then :
7477 else
7478 if test "$ac_cv_type_wchar_t" = yes; then
7479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7481 as_fn_error 77 "cannot compute sizeof (wchar_t)
7482 See \`config.log' for more details" "$LINENO" 5; }
7483 else
7484 ac_cv_sizeof_wchar_t=0
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
7490 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
7494 cat >>confdefs.h <<_ACEOF
7495 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
7496 _ACEOF
7499 U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t
7500 # We do this check to verify that everything is okay.
7501 if test $U_SIZEOF_WCHAR_T = 0; then
7502 if test $U_HAVE_WCHAR_H=1; then
7503 as_fn_error $? "There is wchar.h but the size of wchar_t is 0" "$LINENO" 5
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5
7508 $as_echo_n "checking for UTF-16 string literal support... " >&6; }
7509 U_CHECK_UTF16_STRING=1
7510 CHECK_UTF16_STRING_RESULT="unknown"
7512 case "${host}" in
7513 *-*-aix*|powerpc64-*-linux*)
7514 if test "$GCC" = no; then
7515 OLD_CFLAGS="${CFLAGS}"
7516 OLD_CXXFLAGS="${CXXFLAGS}"
7517 CFLAGS="${CFLAGS} -qutf"
7518 CXXFLAGS="${CXXFLAGS} -qutf"
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521 const unsigned short hello[] = u"hello";
7523 main ()
7527 return 0;
7529 _ACEOF
7530 if ac_fn_c_try_compile "$LINENO"; then :
7531 U_CHECK_UTF16_STRING=1
7532 else
7533 U_CHECK_UTF16_STRING=0
7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7536 if test "$U_CHECK_UTF16_STRING" = 0; then
7537 CFLAGS="${OLD_CFLAGS}"
7538 CXXFLAGS="${OLD_CXXFLAGS}"
7539 else
7540 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf"
7541 CHECK_UTF16_STRING_RESULT="-qutf"
7545 *-*-solaris*)
7546 if test "$GCC" = no; then
7547 OLD_CFLAGS="${CFLAGS}"
7548 OLD_CXXFLAGS="${CXXFLAGS}"
7549 CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort"
7550 CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort"
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7553 const unsigned short hello[] = U"hello";
7555 main ()
7559 return 0;
7561 _ACEOF
7562 if ac_fn_c_try_compile "$LINENO"; then :
7563 U_CHECK_UTF16_STRING=1
7564 else
7565 U_CHECK_UTF16_STRING=0
7567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 if test "$U_CHECK_UTF16_STRING" = 0; then
7569 CFLAGS="${OLD_CFLAGS}"
7570 CXXFLAGS="${OLD_CXXFLAGS}"
7571 else
7572 CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort"
7573 UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort"
7574 UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort"
7575 # Since we can't detect the availability of this UTF-16 syntax at compile time,
7576 # we depend on configure telling us that we can use it.
7577 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
7578 # we only use this macro within ICU.
7579 # If an ICU user uses icu-config, this feature will be enabled.
7580 CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
7581 U_CHECK_UTF16_STRING=0
7585 *-*-hpux*)
7586 if test "$GCC" = no; then
7587 # The option will be detected at compile time without additional compiler options.
7588 CHECK_UTF16_STRING_RESULT="available"
7591 *-*-cygwin)
7592 # wchar_t can be used
7593 CHECK_UTF16_STRING_RESULT="available"
7597 esac
7599 # GCC >= 4.4 supports UTF16 string literals. As of ICU 62, both C and C++ files require them.
7600 if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
7601 if test "$GCC" = yes; then
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7605 static const unsigned short test[] = u"This is a UTF16 literal string.";
7608 main ()
7612 return 0;
7614 _ACEOF
7615 if ac_fn_c_try_compile "$LINENO"; then :
7616 CC_UTF16_STRING=1
7617 else
7618 CC_UTF16_STRING=0
7620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 if test "$CC_UTF16_STRING" = 1; then
7622 CHECK_UTF16_STRING_RESULT="C only";
7625 if test "$GXX" = yes; then
7626 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
7627 ac_ext=cpp
7628 ac_cpp='$CXXCPP $CPPFLAGS'
7629 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7630 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7631 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7634 /* end confdefs.h. */
7636 static const char16_t test[] = u"This is a UTF16 literal string.";
7639 main ()
7643 return 0;
7645 _ACEOF
7646 if ac_fn_cxx_try_compile "$LINENO"; then :
7647 CXX_UTF16_STRING=1
7648 else
7649 CXX_UTF16_STRING=0
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 ac_ext=c
7653 ac_cpp='$CPP $CPPFLAGS'
7654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658 if test "$CXX_UTF16_STRING" = 1; then
7659 if test "$CC_UTF16_STRING" = 1; then
7660 CHECK_UTF16_STRING_RESULT="available";
7661 else
7662 CHECK_UTF16_STRING_RESULT="C++ only";
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5
7668 $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; }
7670 # Enable/disable extras
7671 # Check whether --enable-extras was given.
7672 if test "${enable_extras+set}" = set; then :
7673 enableval=$enable_extras; case "${enableval}" in
7674 yes) extras=true ;;
7675 no) extras=false ;;
7676 *) as_fn_error $? "bad value ${enableval} for --enable-extras" "$LINENO" 5 ;;
7677 esac
7678 else
7679 extras=true
7684 if test "$extras" = true; then
7685 EXTRAS_TRUE=
7686 U_HAVE_EXTRAS=1
7687 else
7688 EXTRAS_TRUE='#'
7689 U_HAVE_EXTRAS=0
7691 # Check whether --enable-icuio was given.
7692 if test "${enable_icuio+set}" = set; then :
7693 enableval=$enable_icuio; case "${enableval}" in
7694 yes) icuio=true ;;
7695 no) icuio=false ;;
7696 *) as_fn_error $? "bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;;
7697 esac
7698 else
7699 icuio=true
7704 if test "$icuio" = true; then
7705 ICUIO_TRUE=
7706 U_HAVE_ICUIO=1
7707 else
7708 ICUIO_TRUE='#'
7709 U_HAVE_ICUIO=0
7712 # Enable/disable layoutex
7713 # Check whether --enable-layoutex was given.
7714 if test "${enable_layoutex+set}" = set; then :
7715 enableval=$enable_layoutex; case "${enableval}" in
7716 yes) layoutex=$have_icu_le_hb ;;
7717 no) layoutex=false ;;
7718 *) as_fn_error $? "bad value ${enableval} for --enable-layoutex" "$LINENO" 5 ;;
7719 esac
7720 else
7721 layoutex=false
7726 if test "$layoutex" = true; then
7727 LAYOUTEX_TRUE=
7728 U_HAVE_LAYOUTEX=1
7729 else
7730 LAYOUTEX_TRUE='#'
7731 U_HAVE_LAYOUTEX=0
7734 # Enable/disable layout
7735 # Check whether --enable-layout was given.
7736 if test "${enable_layout+set}" = set; then :
7737 enableval=$enable_layout; case "${enableval}" in
7738 yes) as_fn_error $? "The ICU Layout Engine has been removed." "$LINENO" 5 ;;
7739 no) ;;
7740 *) ;;
7741 esac
7745 # Enable/disable tools
7746 # Check whether --enable-tools was given.
7747 if test "${enable_tools+set}" = set; then :
7748 enableval=$enable_tools; case "${enableval}" in
7749 yes) tools=true ;;
7750 no) tools=false ;;
7751 *) as_fn_error $? "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
7752 esac
7753 else
7754 tools=true
7759 if test "$tools" = true; then
7760 TOOLS_TRUE=
7761 U_HAVE_TOOLS=1
7762 else
7763 TOOLS_TRUE='#'
7764 U_HAVE_TOOLS=0
7767 # Enable/disable fuzzer target tests.
7768 # Check whether --enable-fuzzer was given.
7769 if test "${enable_fuzzer+set}" = set; then :
7770 enableval=$enable_fuzzer; case "${enableval}" in
7771 yes) fuzzer=true ;;
7772 no) fuzzer=false ;;
7773 *) as_fn_error $? "bad value ${enableval} for --enable-fuzzer" "$LINENO" 5 ;;
7774 esac
7775 else
7776 fuzzer=false
7781 if test "$fuzzer" = true; then
7782 FUZZER_TRUE=
7783 U_HAVE_FUZZER=1
7784 else
7785 FUZZER_TRUE='#'
7786 U_HAVE_FUZZER=0
7791 if test "$tools" = true || test "$cross_compiling" = "yes"; then
7792 DATA_TRUE=
7793 U_HAVE_DATA=1
7794 else
7795 DATA_TRUE='#'
7796 U_HAVE_DATA=0
7800 # Check whether --with-data-packaging was given.
7801 if test "${with_data_packaging+set}" = set; then :
7802 withval=$with_data_packaging; case "${withval}" in
7803 files|archive|library) datapackaging=$withval ;;
7804 auto) datapackaging=$withval ;;
7805 common) datapackaging=archive ;;
7806 dll) datapackaging=library ;;
7807 static) datapackaging=static ;;
7808 *) as_fn_error $? "bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;;
7809 esac
7810 else
7811 datapackaging=
7815 # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
7816 # thesysconfdir=`eval echo $sysconfdir`
7817 thedatadir=`eval echo $datadir`
7818 # 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}.
7819 pkgicudatadir=$datadir
7820 thepkgicudatadir=$thedatadir
7825 if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then
7826 # default to library
7827 datapackaging=library
7828 if test "$ENABLE_STATIC" = "YES"; then
7829 if test "$ENABLE_SHARED" != "YES"; then
7830 datapackaging=static
7835 datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}"
7837 datapackaging_msg="(No explanation for mode $datapackaging.)"
7839 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."
7840 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."
7841 datapackaging_howfound="(unknown)"
7843 case "$datapackaging" in
7844 files)
7845 DATA_PACKAGING_MODE=files
7846 datapackaging_msg="ICU data will be stored in individual files."
7847 datapackaging_howfound="$datapackaging_msg_path"
7849 archive)
7850 DATA_PACKAGING_MODE=common
7851 datapackaging_msg="ICU data will be stored in a single .dat file."
7852 datapackaging_howfound="$datapackaging_msg_path"
7854 library)
7855 DATA_PACKAGING_MODE=dll
7856 datapackaging_msg="ICU data will be linked with ICU."
7857 if test "$ENABLE_STATIC" = "YES"; then
7858 datapackaging_msg="$datapackaging_msg A static data library will be built. "
7860 if test "$ENABLE_SHARED" = "YES"; then
7861 datapackaging_msg="$datapackaging_msg A shared data library will be built. "
7863 datapackaging_howfound="$datapackaging_msg_set"
7865 static)
7866 DATA_PACKAGING_MODE=static
7867 datapackaging_msg="ICU data will be stored in a static library."
7868 datapackaging_howfound="$datapackaging_msg_set"
7870 esac
7873 # Sets a library suffix
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5
7875 $as_echo_n "checking for a library suffix to use... " >&6; }
7877 # Check whether --with-library-suffix was given.
7878 if test "${with_library_suffix+set}" = set; then :
7879 withval=$with_library_suffix; ICULIBSUFFIX="${withval}"
7880 else
7881 ICULIBSUFFIX=
7884 msg=$ICULIBSUFFIX
7885 if test "$msg" = ""; then
7886 msg=none
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
7889 $as_echo "$msg" >&6; }
7891 if test "$ICULIBSUFFIX" != ""
7892 then
7893 U_HAVE_LIB_SUFFIX=1
7894 ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
7895 UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} "
7896 else
7897 U_HAVE_LIB_SUFFIX=0
7902 # Enable/disable tests
7903 # Check whether --enable-tests was given.
7904 if test "${enable_tests+set}" = set; then :
7905 enableval=$enable_tests; case "${enableval}" in
7906 yes) tests=true ;;
7907 no) tests=false ;;
7908 *) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
7909 esac
7910 else
7911 tests=true
7916 if test "$tests" = true; then
7917 TESTS_TRUE=
7918 U_HAVE_TESTS=1
7919 else
7920 TESTS_TRUE='#'
7921 U_HAVE_TESTS=0
7924 # Enable/disable samples
7925 # Check whether --enable-samples was given.
7926 if test "${enable_samples+set}" = set; then :
7927 enableval=$enable_samples; case "${enableval}" in
7928 yes) samples=true ;;
7929 no) samples=false ;;
7930 *) as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
7931 esac
7932 else
7933 samples=true
7938 if test "$samples" = true; then
7939 SAMPLES_TRUE=
7940 U_HAVE_SAMPLES=1
7941 else
7942 SAMPLES_TRUE='#'
7943 U_HAVE_SAMPLES=0
7946 ICUDATA_CHAR=$U_ENDIAN_CHAR
7948 # Platform-specific Makefile setup
7949 # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
7950 case "${host}" in
7951 *-*-solaris*) platform=U_SOLARIS ;;
7952 *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;;
7953 *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;;
7954 *-*-aix*) platform=U_AIX ;;
7955 *-*-hpux*) platform=U_HPUX ;;
7956 *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;;
7957 *-*-cygwin*) platform=U_CYGWIN ;;
7958 *-*-mingw*) platform=U_MINGW ;;
7959 *-*ibm-openedition*|*-*-os390*) platform=OS390
7960 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7961 ICUDATA_CHAR="e"
7962 fi ;;
7963 *-*-os400*) platform=OS400
7964 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7965 ICUDATA_CHAR="e"
7966 fi ;;
7967 *-*-nto*) platform=U_QNX ;;
7968 *-dec-osf*) platform=U_OSF ;;
7969 *-*-beos) platform=U_BEOS ;;
7970 *-*-irix*) platform=U_IRIX ;;
7971 *-ncr-*) platform=U_MPRAS ;;
7972 *) platform=U_UNKNOWN_PLATFORM ;;
7973 esac
7976 platform_make_fragment_name="$icu_cv_host_frag"
7977 platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name"
7981 if test "${FORCE_LIBS}" != ""; then
7982 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
7983 LIBS=${FORCE_LIBS}
7986 # Now that we're done using CPPFLAGS etc. for tests, we can change it
7987 # for build.
7989 ac_ext=cpp
7990 ac_cpp='$CXXCPP $CPPFLAGS'
7991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7995 # Silence a Clang warning about ambiguous operators with C++20 rewritten
7996 # expressions that possibly or maybe even probably is a mistake (ICU-20973).
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler accepts -Wambiguous-reversed-operator" >&5
7998 $as_echo_n "checking whether C++ compiler accepts -Wambiguous-reversed-operator... " >&6; }
7999 if ${ax_cv_check_cxxflags__Werror__Wambiguous_reversed_operator+:} false; then :
8000 $as_echo_n "(cached) " >&6
8001 else
8003 ax_check_save_flags=$CXXFLAGS
8004 CXXFLAGS="$CXXFLAGS -Werror -Wambiguous-reversed-operator"
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8009 main ()
8013 return 0;
8015 _ACEOF
8016 if ac_fn_cxx_try_compile "$LINENO"; then :
8017 ax_cv_check_cxxflags__Werror__Wambiguous_reversed_operator=yes
8018 else
8019 ax_cv_check_cxxflags__Werror__Wambiguous_reversed_operator=no
8021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8022 CXXFLAGS=$ax_check_save_flags
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cxxflags__Werror__Wambiguous_reversed_operator" >&5
8025 $as_echo "$ax_cv_check_cxxflags__Werror__Wambiguous_reversed_operator" >&6; }
8026 if test "x$ax_cv_check_cxxflags__Werror__Wambiguous_reversed_operator" = xyes; then :
8027 CXXFLAGS+=" -Wno-ambiguous-reversed-operator"
8028 else
8032 ac_ext=c
8033 ac_cpp='$CPP $CPPFLAGS'
8034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8039 if test "${CC}" = "clang"; then
8040 CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality"
8041 else
8042 CLANGCFLAGS=""
8045 if test "${CXX}" = "clang++"; then
8046 CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality"
8047 LIBCXXFLAGS="$LIBCXXFLAGS -Wglobal-constructors"
8048 else
8049 CLANGCXXFLAGS=""
8052 CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)"
8053 CFLAGS="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS"
8054 CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS"
8059 # append all config cppflags
8060 CPPFLAGS="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS"
8062 echo "CPPFLAGS=$CPPFLAGS"
8063 echo "CFLAGS=$CFLAGS"
8064 echo "CXXFLAGS=$CXXFLAGS"
8067 # output the Makefiles
8068 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/perf/leperf/Makefile test/fuzzer/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile"
8070 cat >confcache <<\_ACEOF
8071 # This file is a shell script that caches the results of configure
8072 # tests run on this system so they can be shared between configure
8073 # scripts and configure runs, see configure's option --config-cache.
8074 # It is not useful on other systems. If it contains results you don't
8075 # want to keep, you may remove or edit it.
8077 # config.status only pays attention to the cache file if you give it
8078 # the --recheck option to rerun configure.
8080 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8081 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8082 # following values.
8084 _ACEOF
8086 # The following way of writing the cache mishandles newlines in values,
8087 # but we know of no workaround that is simple, portable, and efficient.
8088 # So, we kill variables containing newlines.
8089 # Ultrix sh set writes to stderr and can't be redirected directly,
8090 # and sets the high bit in the cache file unless we assign to the vars.
8092 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8093 eval ac_val=\$$ac_var
8094 case $ac_val in #(
8095 *${as_nl}*)
8096 case $ac_var in #(
8097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8099 esac
8100 case $ac_var in #(
8101 _ | IFS | as_nl) ;; #(
8102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8103 *) { eval $ac_var=; unset $ac_var;} ;;
8104 esac ;;
8105 esac
8106 done
8108 (set) 2>&1 |
8109 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8110 *${as_nl}ac_space=\ *)
8111 # `set' does not quote correctly, so add quotes: double-quote
8112 # substitution turns \\\\ into \\, and sed turns \\ into \.
8113 sed -n \
8114 "s/'/'\\\\''/g;
8115 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8116 ;; #(
8118 # `set' quotes correctly as required by POSIX, so do not add quotes.
8119 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8121 esac |
8122 sort
8124 sed '
8125 /^ac_cv_env_/b end
8126 t clear
8127 :clear
8128 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8129 t end
8130 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8131 :end' >>confcache
8132 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8133 if test -w "$cache_file"; then
8134 if test "x$cache_file" != "x/dev/null"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8136 $as_echo "$as_me: updating cache $cache_file" >&6;}
8137 if test ! -f "$cache_file" || test -h "$cache_file"; then
8138 cat confcache >"$cache_file"
8139 else
8140 case $cache_file in #(
8141 */* | ?:*)
8142 mv -f confcache "$cache_file"$$ &&
8143 mv -f "$cache_file"$$ "$cache_file" ;; #(
8145 mv -f confcache "$cache_file" ;;
8146 esac
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8151 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8154 rm -f confcache
8156 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8157 # Let make expand exec_prefix.
8158 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8160 # Transform confdefs.h into DEFS.
8161 # Protect against shell expansion while executing Makefile rules.
8162 # Protect against Makefile macro expansion.
8164 # If the first sed substitution is executed (which looks for macros that
8165 # take arguments), then branch to the quote section. Otherwise,
8166 # look for a macro that doesn't take arguments.
8167 ac_script='
8168 :mline
8169 /\\$/{
8171 s,\\\n,,
8172 b mline
8174 t clear
8175 :clear
8176 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
8177 t quote
8178 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
8179 t quote
8180 b any
8181 :quote
8182 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
8183 s/\[/\\&/g
8184 s/\]/\\&/g
8185 s/\$/$$/g
8187 :any
8190 s/^\n//
8191 s/\n/ /g
8195 DEFS=`sed -n "$ac_script" confdefs.h`
8198 ac_libobjs=
8199 ac_ltlibobjs=
8201 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8202 # 1. Remove the extension, and $U if already installed.
8203 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8204 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8205 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8206 # will be set to the directory where LIBOBJS objects are built.
8207 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8208 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8209 done
8210 LIBOBJS=$ac_libobjs
8212 LTLIBOBJS=$ac_ltlibobjs
8217 : "${CONFIG_STATUS=./config.status}"
8218 ac_write_fail=0
8219 ac_clean_files_save=$ac_clean_files
8220 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8222 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8223 as_write_fail=0
8224 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8225 #! $SHELL
8226 # Generated by $as_me.
8227 # Run this file to recreate the current configuration.
8228 # Compiler output produced by configure, useful for debugging
8229 # configure, is in config.log if it exists.
8231 debug=false
8232 ac_cs_recheck=false
8233 ac_cs_silent=false
8235 SHELL=\${CONFIG_SHELL-$SHELL}
8236 export SHELL
8237 _ASEOF
8238 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8239 ## -------------------- ##
8240 ## M4sh Initialization. ##
8241 ## -------------------- ##
8243 # Be more Bourne compatible
8244 DUALCASE=1; export DUALCASE # for MKS sh
8245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8246 emulate sh
8247 NULLCMD=:
8248 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8249 # is contrary to our usage. Disable this feature.
8250 alias -g '${1+"$@"}'='"$@"'
8251 setopt NO_GLOB_SUBST
8252 else
8253 case `(set -o) 2>/dev/null` in #(
8254 *posix*) :
8255 set -o posix ;; #(
8256 *) :
8258 esac
8262 as_nl='
8264 export as_nl
8265 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8266 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8267 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8268 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8269 # Prefer a ksh shell builtin over an external printf program on Solaris,
8270 # but without wasting forks for bash or zsh.
8271 if test -z "$BASH_VERSION$ZSH_VERSION" \
8272 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8273 as_echo='print -r --'
8274 as_echo_n='print -rn --'
8275 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8276 as_echo='printf %s\n'
8277 as_echo_n='printf %s'
8278 else
8279 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8280 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8281 as_echo_n='/usr/ucb/echo -n'
8282 else
8283 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8284 as_echo_n_body='eval
8285 arg=$1;
8286 case $arg in #(
8287 *"$as_nl"*)
8288 expr "X$arg" : "X\\(.*\\)$as_nl";
8289 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8290 esac;
8291 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8293 export as_echo_n_body
8294 as_echo_n='sh -c $as_echo_n_body as_echo'
8296 export as_echo_body
8297 as_echo='sh -c $as_echo_body as_echo'
8300 # The user is always right.
8301 if test "${PATH_SEPARATOR+set}" != set; then
8302 PATH_SEPARATOR=:
8303 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8304 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8305 PATH_SEPARATOR=';'
8310 # IFS
8311 # We need space, tab and new line, in precisely that order. Quoting is
8312 # there to prevent editors from complaining about space-tab.
8313 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8314 # splitting by setting IFS to empty value.)
8315 IFS=" "" $as_nl"
8317 # Find who we are. Look in the path if we contain no directory separator.
8318 as_myself=
8319 case $0 in #((
8320 *[\\/]* ) as_myself=$0 ;;
8321 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8327 done
8328 IFS=$as_save_IFS
8331 esac
8332 # We did not find ourselves, most probably we were run as `sh COMMAND'
8333 # in which case we are not to be found in the path.
8334 if test "x$as_myself" = x; then
8335 as_myself=$0
8337 if test ! -f "$as_myself"; then
8338 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8339 exit 1
8342 # Unset variables that we do not need and which cause bugs (e.g. in
8343 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8344 # suppresses any "Segmentation fault" message there. '((' could
8345 # trigger a bug in pdksh 5.2.14.
8346 for as_var in BASH_ENV ENV MAIL MAILPATH
8347 do eval test x\${$as_var+set} = xset \
8348 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8349 done
8350 PS1='$ '
8351 PS2='> '
8352 PS4='+ '
8354 # NLS nuisances.
8355 LC_ALL=C
8356 export LC_ALL
8357 LANGUAGE=C
8358 export LANGUAGE
8360 # CDPATH.
8361 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8364 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8365 # ----------------------------------------
8366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8368 # script with STATUS, using 1 if that was 0.
8369 as_fn_error ()
8371 as_status=$1; test $as_status -eq 0 && as_status=1
8372 if test "$4"; then
8373 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8376 $as_echo "$as_me: error: $2" >&2
8377 as_fn_exit $as_status
8378 } # as_fn_error
8381 # as_fn_set_status STATUS
8382 # -----------------------
8383 # Set $? to STATUS, without forking.
8384 as_fn_set_status ()
8386 return $1
8387 } # as_fn_set_status
8389 # as_fn_exit STATUS
8390 # -----------------
8391 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8392 as_fn_exit ()
8394 set +e
8395 as_fn_set_status $1
8396 exit $1
8397 } # as_fn_exit
8399 # as_fn_unset VAR
8400 # ---------------
8401 # Portably unset VAR.
8402 as_fn_unset ()
8404 { eval $1=; unset $1;}
8406 as_unset=as_fn_unset
8407 # as_fn_append VAR VALUE
8408 # ----------------------
8409 # Append the text in VALUE to the end of the definition contained in VAR. Take
8410 # advantage of any shell optimizations that allow amortized linear growth over
8411 # repeated appends, instead of the typical quadratic growth present in naive
8412 # implementations.
8413 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8414 eval 'as_fn_append ()
8416 eval $1+=\$2
8418 else
8419 as_fn_append ()
8421 eval $1=\$$1\$2
8423 fi # as_fn_append
8425 # as_fn_arith ARG...
8426 # ------------------
8427 # Perform arithmetic evaluation on the ARGs, and store the result in the
8428 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8429 # must be portable across $(()) and expr.
8430 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8431 eval 'as_fn_arith ()
8433 as_val=$(( $* ))
8435 else
8436 as_fn_arith ()
8438 as_val=`expr "$@" || test $? -eq 1`
8440 fi # as_fn_arith
8443 if expr a : '\(a\)' >/dev/null 2>&1 &&
8444 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8445 as_expr=expr
8446 else
8447 as_expr=false
8450 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8451 as_basename=basename
8452 else
8453 as_basename=false
8456 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8457 as_dirname=dirname
8458 else
8459 as_dirname=false
8462 as_me=`$as_basename -- "$0" ||
8463 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8464 X"$0" : 'X\(//\)$' \| \
8465 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8466 $as_echo X/"$0" |
8467 sed '/^.*\/\([^/][^/]*\)\/*$/{
8468 s//\1/
8471 /^X\/\(\/\/\)$/{
8472 s//\1/
8475 /^X\/\(\/\).*/{
8476 s//\1/
8479 s/.*/./; q'`
8481 # Avoid depending upon Character Ranges.
8482 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8483 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8484 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8485 as_cr_digits='0123456789'
8486 as_cr_alnum=$as_cr_Letters$as_cr_digits
8488 ECHO_C= ECHO_N= ECHO_T=
8489 case `echo -n x` in #(((((
8490 -n*)
8491 case `echo 'xy\c'` in
8492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8493 xy) ECHO_C='\c';;
8494 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8495 ECHO_T=' ';;
8496 esac;;
8498 ECHO_N='-n';;
8499 esac
8501 rm -f conf$$ conf$$.exe conf$$.file
8502 if test -d conf$$.dir; then
8503 rm -f conf$$.dir/conf$$.file
8504 else
8505 rm -f conf$$.dir
8506 mkdir conf$$.dir 2>/dev/null
8508 if (echo >conf$$.file) 2>/dev/null; then
8509 if ln -s conf$$.file conf$$ 2>/dev/null; then
8510 as_ln_s='ln -s'
8511 # ... but there are two gotchas:
8512 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8513 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8514 # In both cases, we have to default to `cp -pR'.
8515 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8516 as_ln_s='cp -pR'
8517 elif ln conf$$.file conf$$ 2>/dev/null; then
8518 as_ln_s=ln
8519 else
8520 as_ln_s='cp -pR'
8522 else
8523 as_ln_s='cp -pR'
8525 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8526 rmdir conf$$.dir 2>/dev/null
8529 # as_fn_mkdir_p
8530 # -------------
8531 # Create "$as_dir" as a directory, including parents if necessary.
8532 as_fn_mkdir_p ()
8535 case $as_dir in #(
8536 -*) as_dir=./$as_dir;;
8537 esac
8538 test -d "$as_dir" || eval $as_mkdir_p || {
8539 as_dirs=
8540 while :; do
8541 case $as_dir in #(
8542 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8543 *) as_qdir=$as_dir;;
8544 esac
8545 as_dirs="'$as_qdir' $as_dirs"
8546 as_dir=`$as_dirname -- "$as_dir" ||
8547 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8548 X"$as_dir" : 'X\(//\)[^/]' \| \
8549 X"$as_dir" : 'X\(//\)$' \| \
8550 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8551 $as_echo X"$as_dir" |
8552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8553 s//\1/
8556 /^X\(\/\/\)[^/].*/{
8557 s//\1/
8560 /^X\(\/\/\)$/{
8561 s//\1/
8564 /^X\(\/\).*/{
8565 s//\1/
8568 s/.*/./; q'`
8569 test -d "$as_dir" && break
8570 done
8571 test -z "$as_dirs" || eval "mkdir $as_dirs"
8572 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8575 } # as_fn_mkdir_p
8576 if mkdir -p . 2>/dev/null; then
8577 as_mkdir_p='mkdir -p "$as_dir"'
8578 else
8579 test -d ./-p && rmdir ./-p
8580 as_mkdir_p=false
8584 # as_fn_executable_p FILE
8585 # -----------------------
8586 # Test if FILE is an executable regular file.
8587 as_fn_executable_p ()
8589 test -f "$1" && test -x "$1"
8590 } # as_fn_executable_p
8591 as_test_x='test -x'
8592 as_executable_p=as_fn_executable_p
8594 # Sed expression to map a string onto a valid CPP name.
8595 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8597 # Sed expression to map a string onto a valid variable name.
8598 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8601 exec 6>&1
8602 ## ----------------------------------- ##
8603 ## Main body of $CONFIG_STATUS script. ##
8604 ## ----------------------------------- ##
8605 _ASEOF
8606 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8609 # Save the log message, to keep $0 and so on meaningful, and to
8610 # report actual input values of CONFIG_FILES etc. instead of their
8611 # values after options handling.
8612 ac_log="
8613 This file was extended by ICU $as_me 73.1, which was
8614 generated by GNU Autoconf 2.69. Invocation command line was
8616 CONFIG_FILES = $CONFIG_FILES
8617 CONFIG_HEADERS = $CONFIG_HEADERS
8618 CONFIG_LINKS = $CONFIG_LINKS
8619 CONFIG_COMMANDS = $CONFIG_COMMANDS
8620 $ $0 $@
8622 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8625 _ACEOF
8627 case $ac_config_files in *"
8628 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8629 esac
8633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8634 # Files that config.status was made for.
8635 config_files="$ac_config_files"
8637 _ACEOF
8639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8640 ac_cs_usage="\
8641 \`$as_me' instantiates files and other configuration actions
8642 from templates according to the current configuration. Unless the files
8643 and actions are specified as TAGs, all are instantiated by default.
8645 Usage: $0 [OPTION]... [TAG]...
8647 -h, --help print this help, then exit
8648 -V, --version print version number and configuration settings, then exit
8649 --config print configuration, then exit
8650 -q, --quiet, --silent
8651 do not print progress messages
8652 -d, --debug don't remove temporary files
8653 --recheck update $as_me by reconfiguring in the same conditions
8654 --file=FILE[:TEMPLATE]
8655 instantiate the configuration file FILE
8657 Configuration files:
8658 $config_files
8660 Report bugs to <http://icu-project.org/bugs>.
8661 ICU home page: <http://icu-project.org>."
8663 _ACEOF
8664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8665 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8666 ac_cs_version="\\
8667 ICU config.status 73.1
8668 configured by $0, generated by GNU Autoconf 2.69,
8669 with options \\"\$ac_cs_config\\"
8671 Copyright (C) 2012 Free Software Foundation, Inc.
8672 This config.status script is free software; the Free Software Foundation
8673 gives unlimited permission to copy, distribute and modify it."
8675 ac_pwd='$ac_pwd'
8676 srcdir='$srcdir'
8677 INSTALL='$INSTALL'
8678 test -n "\$AWK" || AWK=awk
8679 _ACEOF
8681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8682 # The default lists apply if the user does not specify any file.
8683 ac_need_defaults=:
8684 while test $# != 0
8686 case $1 in
8687 --*=?*)
8688 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8689 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8690 ac_shift=:
8692 --*=)
8693 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8694 ac_optarg=
8695 ac_shift=:
8698 ac_option=$1
8699 ac_optarg=$2
8700 ac_shift=shift
8702 esac
8704 case $ac_option in
8705 # Handling of the options.
8706 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8707 ac_cs_recheck=: ;;
8708 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8709 $as_echo "$ac_cs_version"; exit ;;
8710 --config | --confi | --conf | --con | --co | --c )
8711 $as_echo "$ac_cs_config"; exit ;;
8712 --debug | --debu | --deb | --de | --d | -d )
8713 debug=: ;;
8714 --file | --fil | --fi | --f )
8715 $ac_shift
8716 case $ac_optarg in
8717 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8718 '') as_fn_error $? "missing file argument" ;;
8719 esac
8720 as_fn_append CONFIG_FILES " '$ac_optarg'"
8721 ac_need_defaults=false;;
8722 --he | --h | --help | --hel | -h )
8723 $as_echo "$ac_cs_usage"; exit ;;
8724 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8725 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8726 ac_cs_silent=: ;;
8728 # This is an error.
8729 -*) as_fn_error $? "unrecognized option: \`$1'
8730 Try \`$0 --help' for more information." ;;
8732 *) as_fn_append ac_config_targets " $1"
8733 ac_need_defaults=false ;;
8735 esac
8736 shift
8737 done
8739 ac_configure_extra_args=
8741 if $ac_cs_silent; then
8742 exec 6>/dev/null
8743 ac_configure_extra_args="$ac_configure_extra_args --silent"
8746 _ACEOF
8747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8748 if \$ac_cs_recheck; then
8749 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8750 shift
8751 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8752 CONFIG_SHELL='$SHELL'
8753 export CONFIG_SHELL
8754 exec "\$@"
8757 _ACEOF
8758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8759 exec 5>>config.log
8761 echo
8762 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8763 ## Running $as_me. ##
8764 _ASBOX
8765 $as_echo "$ac_log"
8766 } >&5
8768 _ACEOF
8769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8770 _ACEOF
8772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8774 # Handling of arguments.
8775 for ac_config_target in $ac_config_targets
8777 case $ac_config_target in
8778 "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;;
8779 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8780 "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;;
8781 "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;;
8782 "config/icu.pc") CONFIG_FILES="$CONFIG_FILES config/icu.pc" ;;
8783 "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;;
8784 "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
8785 "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;;
8786 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
8787 "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;;
8788 "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;;
8789 "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;;
8790 "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;;
8791 "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;;
8792 "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
8793 "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;;
8794 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
8795 "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;;
8796 "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;;
8797 "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;;
8798 "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;;
8799 "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;;
8800 "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;;
8801 "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;;
8802 "tools/gendict/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gendict/Makefile" ;;
8803 "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;;
8804 "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;;
8805 "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;;
8806 "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;;
8807 "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;;
8808 "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;;
8809 "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;;
8810 "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;;
8811 "tools/icuexportdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuexportdata/Makefile" ;;
8812 "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;;
8813 "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;;
8814 "tools/escapesrc/Makefile") CONFIG_FILES="$CONFIG_FILES tools/escapesrc/Makefile" ;;
8815 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
8816 "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;;
8817 "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;;
8818 "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
8819 "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;;
8820 "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;;
8821 "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;;
8822 "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;;
8823 "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;;
8824 "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;;
8825 "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
8826 "test/perf/collperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf/Makefile" ;;
8827 "test/perf/collperf2/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf2/Makefile" ;;
8828 "test/perf/dicttrieperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;;
8829 "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
8830 "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;;
8831 "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;;
8832 "test/perf/localecanperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/localecanperf/Makefile" ;;
8833 "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;;
8834 "test/perf/DateFmtPerf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;;
8835 "test/perf/howExpensiveIs/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;;
8836 "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
8837 "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
8838 "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
8839 "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
8840 "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
8841 "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
8842 "test/perf/leperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/leperf/Makefile" ;;
8843 "test/fuzzer/Makefile") CONFIG_FILES="$CONFIG_FILES test/fuzzer/Makefile" ;;
8844 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
8845 "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;;
8846 "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;;
8847 "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;;
8849 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8850 esac
8851 done
8854 # If the user did not use the arguments to specify the items to instantiate,
8855 # then the envvar interface is used. Set only those that are not.
8856 # We use the long form for the default assignment because of an extremely
8857 # bizarre bug on SunOS 4.1.3.
8858 if $ac_need_defaults; then
8859 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8862 # Have a temporary directory for convenience. Make it in the build tree
8863 # simply because there is no reason against having it here, and in addition,
8864 # creating and moving files from /tmp can sometimes cause problems.
8865 # Hook for its removal unless debugging.
8866 # Note that there is a small window in which the directory will not be cleaned:
8867 # after its creation but before its name has been assigned to `$tmp'.
8868 $debug ||
8870 tmp= ac_tmp=
8871 trap 'exit_status=$?
8872 : "${ac_tmp:=$tmp}"
8873 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8875 trap 'as_fn_exit 1' 1 2 13 15
8877 # Create a (secure) tmp directory for tmp files.
8880 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8881 test -d "$tmp"
8882 } ||
8884 tmp=./conf$$-$RANDOM
8885 (umask 077 && mkdir "$tmp")
8886 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8887 ac_tmp=$tmp
8889 # Set up the scripts for CONFIG_FILES section.
8890 # No need to generate them if there are no CONFIG_FILES.
8891 # This happens for instance with `./config.status config.h'.
8892 if test -n "$CONFIG_FILES"; then
8895 ac_cr=`echo X | tr X '\015'`
8896 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8897 # But we know of no other shell where ac_cr would be empty at this
8898 # point, so we can use a bashism as a fallback.
8899 if test "x$ac_cr" = x; then
8900 eval ac_cr=\$\'\\r\'
8902 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8903 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8904 ac_cs_awk_cr='\\r'
8905 else
8906 ac_cs_awk_cr=$ac_cr
8909 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8910 _ACEOF
8914 echo "cat >conf$$subs.awk <<_ACEOF" &&
8915 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8916 echo "_ACEOF"
8917 } >conf$$subs.sh ||
8918 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8919 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8920 ac_delim='%!_!# '
8921 for ac_last_try in false false false false false :; do
8922 . ./conf$$subs.sh ||
8923 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8925 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8926 if test $ac_delim_n = $ac_delim_num; then
8927 break
8928 elif $ac_last_try; then
8929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8930 else
8931 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8933 done
8934 rm -f conf$$subs.sh
8936 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8937 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8938 _ACEOF
8939 sed -n '
8941 s/^/S["/; s/!.*/"]=/
8944 s/^[^!]*!//
8945 :repl
8946 t repl
8947 s/'"$ac_delim"'$//
8948 t delim
8951 s/\(.\{148\}\)..*/\1/
8952 t more1
8953 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8956 b repl
8957 :more1
8958 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8961 s/.\{148\}//
8962 t nl
8963 :delim
8965 s/\(.\{148\}\)..*/\1/
8966 t more2
8967 s/["\\]/\\&/g; s/^/"/; s/$/"/
8970 :more2
8971 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8974 s/.\{148\}//
8975 t delim
8976 ' <conf$$subs.awk | sed '
8977 /^[^""]/{
8979 s/\n//
8981 ' >>$CONFIG_STATUS || ac_write_fail=1
8982 rm -f conf$$subs.awk
8983 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8984 _ACAWK
8985 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8986 for (key in S) S_is_set[key] = 1
8987 FS = "\a"
8991 line = $ 0
8992 nfields = split(line, field, "@")
8993 substed = 0
8994 len = length(field[1])
8995 for (i = 2; i < nfields; i++) {
8996 key = field[i]
8997 keylen = length(key)
8998 if (S_is_set[key]) {
8999 value = S[key]
9000 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9001 len += length(value) + length(field[++i])
9002 substed = 1
9003 } else
9004 len += 1 + keylen
9007 print line
9010 _ACAWK
9011 _ACEOF
9012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9013 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9014 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9015 else
9017 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9018 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9019 _ACEOF
9021 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9022 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9023 # trailing colons and then remove the whole line if VPATH becomes empty
9024 # (actually we leave an empty line to preserve line numbers).
9025 if test "x$srcdir" = x.; then
9026 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9028 s///
9029 s/^/:/
9030 s/[ ]*$/:/
9031 s/:\$(srcdir):/:/g
9032 s/:\${srcdir}:/:/g
9033 s/:@srcdir@:/:/g
9034 s/^:*//
9035 s/:*$//
9037 s/\(=[ ]*\).*/\1/
9039 s/\n//
9040 s/^[^=]*=[ ]*$//
9044 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9045 fi # test -n "$CONFIG_FILES"
9048 eval set X " :F $CONFIG_FILES "
9049 shift
9050 for ac_tag
9052 case $ac_tag in
9053 :[FHLC]) ac_mode=$ac_tag; continue;;
9054 esac
9055 case $ac_mode$ac_tag in
9056 :[FHL]*:*);;
9057 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9058 :[FH]-) ac_tag=-:-;;
9059 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9060 esac
9061 ac_save_IFS=$IFS
9062 IFS=:
9063 set x $ac_tag
9064 IFS=$ac_save_IFS
9065 shift
9066 ac_file=$1
9067 shift
9069 case $ac_mode in
9070 :L) ac_source=$1;;
9071 :[FH])
9072 ac_file_inputs=
9073 for ac_f
9075 case $ac_f in
9076 -) ac_f="$ac_tmp/stdin";;
9077 *) # Look for the file first in the build tree, then in the source tree
9078 # (if the path is not absolute). The absolute path cannot be DOS-style,
9079 # because $ac_f cannot contain `:'.
9080 test -f "$ac_f" ||
9081 case $ac_f in
9082 [\\/$]*) false;;
9083 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9084 esac ||
9085 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9086 esac
9087 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9088 as_fn_append ac_file_inputs " '$ac_f'"
9089 done
9091 # Let's still pretend it is `configure' which instantiates (i.e., don't
9092 # use $as_me), people would be surprised to read:
9093 # /* config.h. Generated by config.status. */
9094 configure_input='Generated from '`
9095 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9096 `' by configure.'
9097 if test x"$ac_file" != x-; then
9098 configure_input="$ac_file. $configure_input"
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9100 $as_echo "$as_me: creating $ac_file" >&6;}
9102 # Neutralize special characters interpreted by sed in replacement strings.
9103 case $configure_input in #(
9104 *\&* | *\|* | *\\* )
9105 ac_sed_conf_input=`$as_echo "$configure_input" |
9106 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9107 *) ac_sed_conf_input=$configure_input;;
9108 esac
9110 case $ac_tag in
9111 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9113 esac
9115 esac
9117 ac_dir=`$as_dirname -- "$ac_file" ||
9118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9119 X"$ac_file" : 'X\(//\)[^/]' \| \
9120 X"$ac_file" : 'X\(//\)$' \| \
9121 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9122 $as_echo X"$ac_file" |
9123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9124 s//\1/
9127 /^X\(\/\/\)[^/].*/{
9128 s//\1/
9131 /^X\(\/\/\)$/{
9132 s//\1/
9135 /^X\(\/\).*/{
9136 s//\1/
9139 s/.*/./; q'`
9140 as_dir="$ac_dir"; as_fn_mkdir_p
9141 ac_builddir=.
9143 case "$ac_dir" in
9144 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9146 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9147 # A ".." for each directory in $ac_dir_suffix.
9148 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9149 case $ac_top_builddir_sub in
9150 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9151 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9152 esac ;;
9153 esac
9154 ac_abs_top_builddir=$ac_pwd
9155 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9156 # for backward compatibility:
9157 ac_top_builddir=$ac_top_build_prefix
9159 case $srcdir in
9160 .) # We are building in place.
9161 ac_srcdir=.
9162 ac_top_srcdir=$ac_top_builddir_sub
9163 ac_abs_top_srcdir=$ac_pwd ;;
9164 [\\/]* | ?:[\\/]* ) # Absolute name.
9165 ac_srcdir=$srcdir$ac_dir_suffix;
9166 ac_top_srcdir=$srcdir
9167 ac_abs_top_srcdir=$srcdir ;;
9168 *) # Relative name.
9169 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9170 ac_top_srcdir=$ac_top_build_prefix$srcdir
9171 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9172 esac
9173 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9176 case $ac_mode in
9179 # CONFIG_FILE
9182 case $INSTALL in
9183 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9184 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9185 esac
9186 _ACEOF
9188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9189 # If the template does not know about datarootdir, expand it.
9190 # FIXME: This hack should be removed a few years after 2.60.
9191 ac_datarootdir_hack=; ac_datarootdir_seen=
9192 ac_sed_dataroot='
9193 /datarootdir/ {
9197 /@datadir@/p
9198 /@docdir@/p
9199 /@infodir@/p
9200 /@localedir@/p
9201 /@mandir@/p'
9202 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9203 *datarootdir*) ac_datarootdir_seen=yes;;
9204 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9206 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9207 _ACEOF
9208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9209 ac_datarootdir_hack='
9210 s&@datadir@&$datadir&g
9211 s&@docdir@&$docdir&g
9212 s&@infodir@&$infodir&g
9213 s&@localedir@&$localedir&g
9214 s&@mandir@&$mandir&g
9215 s&\\\${datarootdir}&$datarootdir&g' ;;
9216 esac
9217 _ACEOF
9219 # Neutralize VPATH when `$srcdir' = `.'.
9220 # Shell code in configure.ac might set extrasub.
9221 # FIXME: do we really want to maintain this feature?
9222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9223 ac_sed_extra="$ac_vpsub
9224 $extrasub
9225 _ACEOF
9226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9229 s|@configure_input@|$ac_sed_conf_input|;t t
9230 s&@top_builddir@&$ac_top_builddir_sub&;t t
9231 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9232 s&@srcdir@&$ac_srcdir&;t t
9233 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9234 s&@top_srcdir@&$ac_top_srcdir&;t t
9235 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9236 s&@builddir@&$ac_builddir&;t t
9237 s&@abs_builddir@&$ac_abs_builddir&;t t
9238 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9239 s&@INSTALL@&$ac_INSTALL&;t t
9240 $ac_datarootdir_hack
9242 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9243 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9245 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9246 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9247 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9248 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9250 which seems to be undefined. Please make sure it is defined" >&5
9251 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9252 which seems to be undefined. Please make sure it is defined" >&2;}
9254 rm -f "$ac_tmp/stdin"
9255 case $ac_file in
9256 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9257 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9258 esac \
9259 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9264 esac
9266 done # for ac_tag
9269 as_fn_exit 0
9270 _ACEOF
9271 ac_clean_files=$ac_clean_files_save
9273 test $ac_write_fail = 0 ||
9274 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9277 # configure is writing to config.log, and then calls config.status.
9278 # config.status does its own redirection, appending to config.log.
9279 # Unfortunately, on DOS this fails, as config.log is still kept open
9280 # by configure, so config.status won't be able to write to it; its
9281 # output is simply discarded. So we exec the FD to /dev/null,
9282 # effectively closing config.log, so it can be properly (re)opened and
9283 # appended to by config.status. When coming back to configure, we
9284 # need to make the FD available again.
9285 if test "$no_create" != yes; then
9286 ac_cs_success=:
9287 ac_config_status_args=
9288 test "$silent" = yes &&
9289 ac_config_status_args="$ac_config_status_args --quiet"
9290 exec 5>/dev/null
9291 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9292 exec 5>>config.log
9293 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9294 # would make configure fail if this is the last instruction.
9295 $ac_cs_success || as_fn_exit 1
9297 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9299 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9303 if test -z "$PYTHON";
9304 then
9305 echo "" > data/rules.mk
9306 echo "" > test/testdata/rules.mk
9307 else
9308 if test -f "$srcdir/data/locales/root.txt";
9309 then
9310 echo "Spawning Python to generate data/rules.mk..."
9311 PYTHONPATH="$srcdir/python" \
9312 $PYTHON -m icutools.databuilder \
9313 --mode gnumake \
9314 --seqmode parallel \
9315 --src_dir "$srcdir/data" \
9316 --filter_file "$ICU_DATA_FILTER_FILE" \
9317 $ICU_DATA_BUILDTOOL_OPTS \
9318 > data/rules.mk
9319 if test "$?" != "0"; then
9320 as_fn_error $? "Python failed to run; see above error." "$LINENO" 5
9322 else
9323 echo "Not rebuilding data/rules.mk, assuming prebuilt data in data/in"
9324 touch data/rules.mk
9326 echo "Spawning Python to generate test/testdata/rules.mk..."
9327 PYTHONPATH="$srcdir/python" \
9328 $PYTHON -m icutools.databuilder \
9329 --mode gnumake \
9330 --seqmode parallel \
9331 --src_dir "$srcdir/test/testdata" \
9332 > test/testdata/rules.mk
9333 if test "$?" != "0"; then
9334 as_fn_error $? "Python failed to run; see above error." "$LINENO" 5
9338 echo
9339 echo "ICU for C/C++ $VERSION is ready to be built."
9340 echo "=== Important Notes: ==="
9342 echo "Data Packaging: $datapackaging"
9343 echo " This means: $datapackaging_msg"
9344 echo " To locate data: $datapackaging_howfound"
9346 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
9347 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
9348 else
9349 echo "** WARNING: $U_MAKE may not be GNU make."
9350 echo "This may cause ICU to fail to build. Please make sure that GNU make"
9351 echo "is in your PATH so that the configure script can detect its location."
9353 if test "x$AR" = "xfalse"; then
9354 echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail."
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5
9358 $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; }
9359 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then
9360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9361 $as_echo "ok" >&6; }
9362 else
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5
9364 $as_echo "too old or test failed - try upgrading GNU Make" >&6; }
9368 if test -n "$UCONFIG_CPPFLAGS"; then
9369 HDRFILE="uconfig.h.prepend"
9370 echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:"
9371 echo
9372 echo " ${UCONFIG_CPPFLAGS}"
9373 echo
9374 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.'
9375 echo "Creating the file ${HDRFILE}"
9376 echo
9377 echo '--------------- ' "${HDRFILE}"
9378 echo > "${HDRFILE}"
9379 echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}"
9380 echo >> "${HDRFILE}"
9381 for flag in ${UCONFIG_CPPFLAGS};
9383 echo " /* $flag */" >> "${HDRFILE}"
9384 case "${flag}" in
9385 -D*=*)
9386 \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}"
9387 \echo >> "${HDRFILE}"
9389 -D*)
9390 \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}"
9391 \echo >> "${HDRFILE}"
9394 \echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}"
9395 \echo >> "${HDRFILE}"
9397 esac
9398 done
9399 cat "${HDRFILE}"
9400 \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
9401 echo >> "${HDRFILE}"
9402 echo '--------------- end ' "${HDRFILE}"
9406 if test -n "$UCONFIG_CFLAGS"; then
9407 echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}"
9410 if test -n "$UCONFIG_CXXFLAGS"; then
9411 echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}"
9414 if test "$tools" = false;
9415 then
9416 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests."
9417 echo "## Expect build failures in the 'data', 'test', and other directories."
9420 if test -z "$PYTHON";
9421 then
9422 echo "** Note: Python not found. You will not be able to build data from source or run tests."
9425 $as_unset _CXX_CXXSUFFIX