2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for ICU 55.1.
5 # Report bugs to <http://icu-project.org/bugs>.
7 # Copyright (c) 1999-2015, International Business Machines Corporation and others. All Rights Reserved.
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 :
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+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
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
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
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.
149 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
151 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
173 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
195 exitcode=1; echo positional parameters were not saved.
197 test x\$exitcode = x0 || 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 :
209 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
214 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
217 test -z "$as_dir" && as_dir
=.
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 :
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
242 if test "x$CONFIG_SHELL" != x
; then :
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.
250 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
252 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
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
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."
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."
281 SHELL
=${CONFIG_SHELL-/bin/sh}
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 ## --------------------- ##
292 # Portably unset VAR.
295 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 # Create "$as_dir" as a directory, including parents if necessary.
324 -*) as_dir
=.
/$as_dir;;
326 test -d "$as_dir" || eval $as_mkdir_p || {
330 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357 test -d "$as_dir" && break
359 test -z "$as_dirs" || eval "mkdir $as_dirs"
360 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
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
378 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
379 eval 'as_fn_append ()
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 :
403 as_val
=`expr "$@" || test $? -eq 1`
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.
415 as_status
=$1; test $as_status -eq 0 && as_status
=1
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
424 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
425 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
431 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
443 as_me
=`$as_basename -- "$0" ||
444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
445 X"$0" : 'X\(//\)$' \| \
446 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
448 sed '/^.*\/\([^/][^/]*\)\/*$/{
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. :-)
486 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
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).
501 # Exit status is that of the last command.
505 ECHO_C
= ECHO_N
= ECHO_T
=
506 case `echo -n x` in #(((((
508 case `echo 'xy\c'` in
509 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
511 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
518 rm -f conf$$ conf$$.exe conf$$.
file
519 if test -d conf$$.dir
; then
520 rm -f conf$$.dir
/conf$$.
file
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
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
||
534 elif ln conf$$.
file conf$$
2>/dev
/null
; then
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"'
548 test -d .
/-p && rmdir .
/-p
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
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`
573 ac_default_prefix
=/usr
/local
575 ac_config_libobj_dir
=.
582 # Identity of this package.
584 PACKAGE_TARNAME
='International Components for Unicode'
585 PACKAGE_VERSION
='55.1'
586 PACKAGE_STRING
='ICU 55.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
="\
594 #ifdef HAVE_SYS_TYPES_H
595 # include <sys/types.h>
597 #ifdef HAVE_SYS_STAT_H
598 # include <sys/stat.h>
604 # ifdef HAVE_STDLIB_H
609 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 #ifdef HAVE_STRINGS_H
615 # include <strings.h>
617 #ifdef HAVE_INTTYPES_H
618 # include <inttypes.h>
627 ac_subst_vars
='UCONFIG_CXXFLAGS
634 platform_make_fragment
635 platform_make_fragment_name
661 U_OVERRIDE_CXX_ALLOCATION
662 U_NL_LANGINFO_CODESET
663 U_HAVE_NL_LANGINFO_CODESET
753 program_transform_name
766 enable_option_checking
792 ac_precious_vars
='build_alias
809 # Initialize some variables set by options.
811 ac_init_version
=false
812 ac_unrecognized_opts
=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
823 program_transform_name
=s
,x
,x
,
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir
='${exec_prefix}/bin'
838 sbindir
='${exec_prefix}/sbin'
839 libexecdir
='${exec_prefix}/libexec'
840 datarootdir
='${prefix}/share'
841 datadir
='${datarootdir}'
842 sysconfdir
='${prefix}/etc'
843 sharedstatedir
='${prefix}/com'
844 localstatedir
='${prefix}/var'
845 includedir
='${prefix}/include'
846 oldincludedir
='/usr/include'
847 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir
='${datarootdir}/info'
853 libdir
='${exec_prefix}/lib'
854 localedir
='${datarootdir}/locale'
855 mandir
='${datarootdir}/man'
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\
$ac_option
869 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
874 # Accept the important Cygnus configure options, so we can diagnose typos.
876 case $ac_dashdash$ac_option in
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
885 -build | --build | --buil | --bui | --bu)
886 ac_prev
=build_alias
;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias
=$ac_optarg ;;
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev
=cache_file
;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file
=$ac_optarg ;;
898 cache_file
=config.cache
;;
900 -datadir | --datadir | --datadi | --datad)
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir
=$ac_optarg ;;
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev
=datarootdir
;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir
=$ac_optarg ;;
912 -disable-* | --disable-*)
913 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
916 as_fn_error $?
"invalid feature name: $ac_useropt"
917 ac_useropt_orig
=$ac_useropt
918 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
923 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep
=', ';;
926 eval enable_
$ac_useropt=no
;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
942 as_fn_error $?
"invalid feature name: $ac_useropt"
943 ac_useropt_orig
=$ac_useropt
944 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
949 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep
=', ';;
952 eval enable_
$ac_useropt=\
$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev
=exec_prefix
;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix
=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
967 -help | --help | --hel | --he | -h)
969 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
970 ac_init_help
=recursive
;;
971 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
972 ac_init_help
=short
;;
974 -host | --host | --hos | --ho)
975 ac_prev
=host_alias
;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias
=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 htmldir
=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev
=includedir
;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir
=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir
=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir
=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev
=libexecdir
;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir
=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev
=localedir
;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir
=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev
=localstatedir
;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir
=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir
=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev
=oldincludedir
;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir
=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix
=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev
=program_prefix
;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix
=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev
=program_suffix
;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix
=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev
=program_transform_name
;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name
=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir
=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 sbindir
=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1107 ac_prev
=sharedstatedir
;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 sharedstatedir
=$ac_optarg ;;
1114 -site | --site | --sit)
1116 -site=* | --site=* | --sit=*)
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir
=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev
=sysconfdir
;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir
=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev
=target_alias
;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias
=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version
=: ;;
1143 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1146 as_fn_error $?
"invalid package name: $ac_useropt"
1147 ac_useropt_orig
=$ac_useropt
1148 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1153 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep
=', ';;
1156 eval with_
$ac_useropt=\
$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1162 as_fn_error $?
"invalid package name: $ac_useropt"
1163 ac_useropt_orig
=$ac_useropt
1164 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1169 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep
=', ';;
1172 eval with_
$ac_useropt=no
;;
1175 # Obsolete; use --with-x.
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev
=x_includes
;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes
=$ac_optarg ;;
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev
=x_libraries
;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries
=$ac_optarg ;;
1192 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1197 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1203 eval $ac_envvar=\
$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1217 if test -n "$ac_prev"; then
1218 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $?
"missing argument to $ac_option"
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1225 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1230 # Check all directory arguments for consistency.
1231 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1236 eval ac_val
=\$
$ac_var
1237 # Remove trailing slashes.
1240 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\
$ac_val;;
1243 # Be sure to have absolute directory names.
1245 [\\/$
]* | ?
:[\\/]* ) continue;;
1246 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1248 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1256 target
=$target_alias
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x
; then
1260 if test "x$build_alias" = x
; then
1261 cross_compiling
=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1268 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1270 test "$silent" = yes && exec 6>/dev
/null
1273 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di
=`ls -di .` &&
1275 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $?
"working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $?
"pwd does not report name of working directory"
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted
=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir
=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1313 ac_srcdir_defaulted
=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1317 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1319 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1331 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 for ac_var
in $ac_precious_vars; do
1334 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1335 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1336 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1337 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1341 # Report the --help message.
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1347 \`configure' configures ICU 55.1 to adapt to many kinds of systems.
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1354 Defaults for the options are specified in brackets.
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1378 For better control, use the options below.
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/International
1396 Components for Unicode]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1406 --build=BUILD configure
for building on BUILD
[guessed
]
1407 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1411 if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short
| recursive
) echo "Configuration of ICU 55.1:";;
1418 --disable-option-checking ignore unrecognized
--enable/--with options
1419 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1420 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1421 --enable-debug build debug libraries and
enable the U_DEBUG define default
=no
1422 --enable-release build release libraries default
=yes
1423 --enable-strict compile with strict compiler options default
=yes
1424 --enable-64bit-libs (deprecated
, use
--with-library-bits) build
64-bit libraries default
= platform default
1425 --enable-shared build shared libraries default
=yes
1426 --enable-static build static libraries default
=no
1427 --enable-auto-cleanup enable auto cleanup of libraries default
=no
1428 --enable-draft enable draft APIs
(and internal APIs
) default
=yes
1429 --enable-renaming add a version suffix to symbols default
=yes
1430 --enable-tracing enable function and data tracing default
=no
1431 --disable-dyload disable dynamic loading default
=no
1432 --enable-rpath use rpath when linking default is only
if necessary
1433 --enable-weak-threads weakly reference the threading library default
=no
1434 --enable-extras build ICU extras default
=yes
1435 --enable-icuio build ICU
's icuio library default=yes
1436 --enable-layout build ICU's DEPRECATED layout library default
=yes
1437 --enable-layoutex build ICU
's Paragraph Layout library default=same-as-layout.
1438 If not building with the ICU Layout library, then icu-le-hb must be installed via pkg-config.
1439 See http://harfbuzz.org
1440 --enable-tools build ICU's tools default
=yes
1441 --enable-tests build ICU tests default
=yes
1442 --enable-samples build ICU samples default
=yes
1444 Additionally
, the variable FORCE_LIBS may be
set before calling configure.
1445 If
set, it will REPLACE any automatic list of libraries.
1448 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1449 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1450 --with-cross-build=dir specify an absolute path to the build directory of an ICU built
for the current platform default
=no cross dir
1451 --with-library-bits=bits specify how many bits to use
for the library
(32, 64, 64else32
, nochange
) default
=nochange
1452 --with-data-packaging specify how to package ICU data. Possible values
:
1453 files raw files
(.res
, etc
)
1454 archive build a single icudtXX.dat
file
1455 library shared library
(.dll
/.so
/etc.
)
1456 static static library
(.a
/.lib
/etc.
)
1457 auto build shared
if possible
(default
)
1458 See http
://userguide.icu
-project.org
/icudata
for more info.
1459 --with-library-suffix=suffix tag a suffix to the library names default
=
1461 Some influential environment variables
:
1462 CC C compiler
command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1465 nonstandard directory
<lib dir
>
1466 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1467 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1468 you have headers
in a nonstandard directory
<include dir
>
1469 CXX C
++ compiler
command
1470 CXXFLAGS C
++ compiler flags
1471 PKG_CONFIG path to pkg
-config utility
1473 C compiler flags
for ICULEHB
, overriding pkg
-config
1475 linker flags
for ICULEHB
, overriding pkg
-config
1478 Use these variables to override the choices made by
`configure' or to help
1479 it to find libraries and programs with nonstandard names/locations.
1481 Report bugs to <http://icu-project.org/bugs>.
1482 ICU home page: <http://icu-project.org>.
1487 if test "$ac_init_help" = "recursive"; then
1488 # If there are subdirs, report their specific --help.
1489 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1490 test -d "$ac_dir" ||
1491 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1512 .) # We are building in place.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1536 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1546 generated by GNU Autoconf 2.69
1548 Copyright (C) 2012 Free Software Foundation, Inc.
1549 This configure script is free software; the Free Software Foundation
1550 gives unlimited permission to copy, distribute and modify it.
1552 Copyright (c) 1999-2014, International Business Machines Corporation and others. All Rights Reserved.
1557 ## ------------------------ ##
1558 ## Autoconf initialization. ##
1559 ## ------------------------ ##
1561 # ac_fn_c_try_compile LINENO
1562 # --------------------------
1563 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1564 ac_fn_c_try_compile ()
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 rm -f conftest.$ac_objext
1568 if { { ac_try="$ac_compile"
1570 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1571 *) ac_try_echo
=$ac_try;;
1573 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1574 $as_echo "$ac_try_echo"; } >&5
1575 (eval "$ac_compile") 2>conftest.err
1577 if test -s conftest.err
; then
1578 grep -v '^ *+' conftest.err
>conftest.er1
1579 cat conftest.er1
>&5
1580 mv -f conftest.er1 conftest.err
1582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1583 test $ac_status = 0; } && {
1584 test -z "$ac_c_werror_flag" ||
1585 test ! -s conftest.err
1586 } && test -s conftest.
$ac_objext; then :
1589 $as_echo "$as_me: failed program was:" >&5
1590 sed 's/^/| /' conftest.
$ac_ext >&5
1594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1595 as_fn_set_status
$ac_retval
1597 } # ac_fn_c_try_compile
1599 # ac_fn_cxx_try_compile LINENO
1600 # ----------------------------
1601 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1602 ac_fn_cxx_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"
1608 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
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
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_cxx_werror_flag" ||
1623 test ! -s conftest.err
1624 } && test -s conftest.$ac_objext; then :
1627 $as_echo "$as_me: failed program was:" >&5
1628 sed 's/^/| /' conftest.$ac_ext >&5
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1635 } # ac_fn_cxx_try_compile
1637 # ac_fn_c_try_cpp LINENO
1638 # ----------------------
1639 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 if { { ac_try="$ac_cpp conftest.$ac_ext"
1645 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1646 *) ac_try_echo
=$ac_try;;
1648 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1652 if test -s conftest.err
; then
1653 grep -v '^ *+' conftest.err
>conftest.er1
1654 cat conftest.er1
>&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } > conftest.i
&& {
1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.
$ac_ext >&5
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status
$ac_retval
1674 # ac_fn_cxx_try_link LINENO
1675 # -------------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_cxx_try_link
()
1679 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1680 rm -f conftest.
$ac_objext conftest
$ac_exeext
1681 if { { ac_try
="$ac_link"
1683 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_link") 2>conftest.err
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; } && {
1697 test -z "$ac_cxx_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest$ac_exeext && {
1700 test "$cross_compiling" = yes ||
1701 test -x conftest$ac_exeext
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1710 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1711 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1712 # interfere with the next link command; also delete a directory that is
1713 # left behind by Apple's compiler. We do this before executing the actions.
1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1716 as_fn_set_status $ac_retval
1718 } # ac_fn_cxx_try_link
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1729 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1730 *) ac_try_echo
=$ac_try;;
1732 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=$ac_status
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1758 as_fn_set_status $ac_retval
1762 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1763 # --------------------------------------------
1764 # Tries to find the compile-time value of EXPR in a program that includes
1765 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1767 ac_fn_c_compute_int ()
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if test "$cross_compiling" = yes; then
1771 # Depending upon the size, compute the lo and hi bounds.
1772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1773 /* end confdefs.h. */
1778 static int test_array [1 - 2 * !(($2) >= 0)];
1780 return test_array [0];
1786 if ac_fn_c_try_compile "$LINENO"; then :
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h. */
1795 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1797 return test_array [0];
1803 if ac_fn_c_try_compile "$LINENO"; then :
1804 ac_hi=$ac_mid; break
1806 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1807 if test $ac_lo -le $ac_mid; then
1811 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817 /* end confdefs.h. */
1822 static int test_array [1 - 2 * !(($2) < 0)];
1824 return test_array [0];
1830 if ac_fn_c_try_compile "$LINENO"; then :
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1839 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1841 return test_array [0];
1847 if ac_fn_c_try_compile "$LINENO"; then :
1848 ac_lo=$ac_mid; break
1850 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1851 if test $ac_mid -le $ac_hi; then
1855 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865 # Binary search between lo and hi bounds.
1866 while test "x$ac_lo" != "x$ac_hi"; do
1867 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1874 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1876 return test_array [0];
1882 if ac_fn_c_try_compile "$LINENO"; then :
1885 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1897 static long int longval () { return $2; }
1898 static unsigned long int ulongval () { return $2; }
1905 FILE *f = fopen ("conftest.val", "w");
1910 long int i = longval ();
1913 fprintf (f, "%ld", i);
1917 unsigned long int i = ulongval ();
1920 fprintf (f, "%lu", i);
1922 /* Do not output a trailing newline, as this causes \r\n confusion
1923 on some platforms. */
1924 return ferror (f) || fclose (f) != 0;
1930 if ac_fn_c_try_run "$LINENO"; then :
1931 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1936 conftest.$ac_objext conftest.beam conftest.$ac_ext
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status $ac_retval
1943 } # ac_fn_c_compute_int
1945 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1946 # -------------------------------------------------------
1947 # Tests whether HEADER exists and can be compiled using the include files in
1948 # INCLUDES, setting the cache variable VAR accordingly.
1949 ac_fn_c_check_header_compile ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1953 $as_echo_n "checking for $2... " >&6; }
1954 if eval \${$3+:} false; then :
1955 $as_echo_n "(cached) " >&6
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1962 if ac_fn_c_try_compile "$LINENO"; then :
1967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1971 $as_echo "$ac_res" >&6; }
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 } # ac_fn_c_check_header_compile
1976 # ac_fn_c_try_link LINENO
1977 # -----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded.
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 rm -f conftest.$ac_objext conftest$ac_exeext
1983 if { { ac_try="$ac_link"
1985 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1986 *) ac_try_echo
=$ac_try;;
1988 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_link") 2>conftest.err
1992 if test -s conftest.err
; then
1993 grep -v '^ *+' conftest.err
>conftest.er1
1994 cat conftest.er1
>&5
1995 mv -f conftest.er1 conftest.err
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && {
1999 test -z "$ac_c_werror_flag" ||
2000 test ! -s conftest.err
2001 } && test -s conftest
$ac_exeext && {
2002 test "$cross_compiling" = yes ||
2003 test -x conftest
$ac_exeext
2007 $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.
$ac_ext >&5
2012 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014 # interfere with the next link command; also delete a directory that is
2015 # left behind by Apple's compiler. We do this before executing the actions.
2016 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018 as_fn_set_status
$ac_retval
2020 } # ac_fn_c_try_link
2022 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2023 # -------------------------------------------------------
2024 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2025 # the include files in INCLUDES and setting the cache variable VAR
2027 ac_fn_c_check_header_mongrel
()
2029 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2030 if eval \
${$3+:} false
; then :
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if eval \
${$3+:} false
; then :
2034 $as_echo_n "(cached) " >&6
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2040 # Is the header compilable?
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2042 $as_echo_n "checking $2 usability... " >&6; }
2043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2048 if ac_fn_c_try_compile
"$LINENO"; then :
2049 ac_header_compiler
=yes
2051 ac_header_compiler
=no
2053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2055 $as_echo "$ac_header_compiler" >&6; }
2057 # Is the header present?
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2059 $as_echo_n "checking $2 presence... " >&6; }
2060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2064 if ac_fn_c_try_cpp
"$LINENO"; then :
2065 ac_header_preproc
=yes
2067 ac_header_preproc
=no
2069 rm -f conftest.err conftest.i conftest.
$ac_ext
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2071 $as_echo "$ac_header_preproc" >&6; }
2073 # So? What about this header?
2074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2077 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2079 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2083 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2085 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2087 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2089 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2091 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2092 ( $as_echo "## ------------------------------------------ ##
2093 ## Report this to http://icu-project.org/bugs ##
2094 ## ------------------------------------------ ##"
2095 ) | sed "s/^/$as_me: WARNING: /" >&2
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099 $as_echo_n "checking for $2... " >&6; }
2100 if eval \
${$3+:} false
; then :
2101 $as_echo_n "(cached) " >&6
2103 eval "$3=\$ac_header_compiler"
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 } # ac_fn_c_check_header_mongrel
2113 # ac_fn_c_check_func LINENO FUNC VAR
2114 # ----------------------------------
2115 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2116 ac_fn_c_check_func
()
2118 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2120 $as_echo_n "checking for $2... " >&6; }
2121 if eval \
${$3+:} false
; then :
2122 $as_echo_n "(cached) " >&6
2124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2126 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2127 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2128 #define $2 innocuous_$2
2130 /* System header to define __stub macros and hopefully few prototypes,
2131 which can conflict with char $2 (); below.
2132 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2133 <limits.h> exists even on freestanding compilers. */
2136 # include <limits.h>
2138 # include <assert.h>
2143 /* Override any GCC internal prototype to avoid an error.
2144 Use char because int might match the return type of a GCC
2145 builtin and then its argument prototype would still apply. */
2150 /* The GNU C library defines this for functions which it implements
2151 to always fail with ENOSYS. Some functions are actually named
2152 something starting with __ and the normal name is an alias. */
2153 #if defined __stub_$2 || defined __stub___$2
2165 if ac_fn_c_try_link
"$LINENO"; then :
2170 rm -f core conftest.err conftest.
$ac_objext \
2171 conftest
$ac_exeext conftest.
$ac_ext
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2178 } # ac_fn_c_check_func
2180 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2181 # -------------------------------------------
2182 # Tests whether TYPE exists after having included INCLUDES, setting cache
2183 # variable VAR accordingly.
2184 ac_fn_c_check_type
()
2186 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if eval \
${$3+:} false
; then :
2190 $as_echo_n "(cached) " >&6
2193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2205 if ac_fn_c_try_compile
"$LINENO"; then :
2206 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2207 /* end confdefs.h. */
2218 if ac_fn_c_try_compile
"$LINENO"; then :
2223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2225 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2229 $as_echo "$ac_res" >&6; }
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2232 } # ac_fn_c_check_type
2233 cat >config.log
<<_ACEOF
2234 This file contains any messages produced by compilers while
2235 running configure, to aid debugging if configure makes a mistake.
2237 It was created by ICU $as_me 55.1, which was
2238 generated by GNU Autoconf 2.69. Invocation command line was
2250 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2251 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2252 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2253 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2254 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2256 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2257 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2259 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2260 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2261 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2262 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2263 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2264 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2265 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2273 test -z "$as_dir" && as_dir
=.
2274 $as_echo "PATH: $as_dir"
2290 # Keep a trace of the command line.
2291 # Strip out --no-create and --no-recursion so they do not pile up.
2292 # Strip out --silent because we don't want to record it for future runs.
2293 # Also quote any args containing shell meta-characters.
2294 # Make two passes to allow for proper duplicate-argument suppression.
2298 ac_must_keep_next
=false
2304 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2306 | -silent | --silent | --silen | --sile | --sil)
2309 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2314 as_fn_append ac_configure_args1
" '$ac_arg'"
2315 if test $ac_must_keep_next = true
; then
2316 ac_must_keep_next
=false
# Got value, back to normal.
2319 *=* | --config-cache | -C | -disable-* | --disable-* \
2320 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2321 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2322 | -with-* | --with-* | -without-* | --without-* | --x)
2323 case "$ac_configure_args0 " in
2324 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2327 -* ) ac_must_keep_next
=true
;;
2330 as_fn_append ac_configure_args
" '$ac_arg'"
2335 { ac_configure_args0
=; unset ac_configure_args0
;}
2336 { ac_configure_args1
=; unset ac_configure_args1
;}
2338 # When interrupted or exit'd, cleanup temporary files, and complete
2339 # config.log. We remove comments because anyway the quotes in there
2340 # would cause problems or look ugly.
2341 # WARNING: Use '\'' to represent an apostrophe within the trap.
2342 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2343 trap 'exit_status=$?
2344 # Save into config.log some information that might help in debugging.
2348 $as_echo "## ---------------- ##
2349 ## Cache variables. ##
2350 ## ---------------- ##"
2352 # The following way of writing the cache mishandles newlines in values,
2354 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2355 eval ac_val=\$$ac_var
2359 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2360 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2363 _ | IFS | as_nl) ;; #(
2364 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2365 *) { eval $ac_var=; unset $ac_var;} ;;
2370 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2371 *${as_nl}ac_space=\ *)
2373 "s/'\''/'\''\\\\'\'''\''/g;
2374 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2377 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2384 $as_echo "## ----------------- ##
2385 ## Output variables. ##
2386 ## ----------------- ##"
2388 for ac_var in $ac_subst_vars
2390 eval ac_val=\$$ac_var
2392 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2394 $as_echo "$ac_var='\''$ac_val'\''"
2398 if test -n "$ac_subst_files"; then
2399 $as_echo "## ------------------- ##
2400 ## File substitutions. ##
2401 ## ------------------- ##"
2403 for ac_var
in $ac_subst_files
2405 eval ac_val
=\$
$ac_var
2407 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 $as_echo "$ac_var='\''$ac_val'\''"
2414 if test -s confdefs.h; then
2415 $as_echo "## ----------- ##
2422 test "$ac_signal" != 0 &&
2423 $as_echo "$as_me: caught signal $ac_signal"
2424 $as_echo "$as_me: exit $exit_status"
2426 rm -f core *.core core.conftest.* &&
2427 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2430 for ac_signal
in 1 2 13 15; do
2431 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2435 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2436 rm -f -r conftest
* confdefs.h
2438 $as_echo "/* confdefs.h */" > confdefs.h
2440 # Predefined preprocessor variables.
2442 cat >>confdefs.h
<<_ACEOF
2443 #define PACKAGE_NAME "$PACKAGE_NAME"
2446 cat >>confdefs.h
<<_ACEOF
2447 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2450 cat >>confdefs.h
<<_ACEOF
2451 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2454 cat >>confdefs.h
<<_ACEOF
2455 #define PACKAGE_STRING "$PACKAGE_STRING"
2458 cat >>confdefs.h
<<_ACEOF
2459 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2462 cat >>confdefs.h
<<_ACEOF
2463 #define PACKAGE_URL "$PACKAGE_URL"
2467 # Let the site file select an alternate cache file if it wants to.
2468 # Prefer an explicitly selected file to automatically selected ones.
2471 if test -n "$CONFIG_SITE"; then
2472 # We do not want a PATH search for config.site.
2473 case $CONFIG_SITE in #((
2474 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2475 */*) ac_site_file1
=$CONFIG_SITE;;
2476 *) ac_site_file1
=.
/$CONFIG_SITE;;
2478 elif test "x$prefix" != xNONE
; then
2479 ac_site_file1
=$prefix/share
/config.site
2480 ac_site_file2
=$prefix/etc
/config.site
2482 ac_site_file1
=$ac_default_prefix/share
/config.site
2483 ac_site_file2
=$ac_default_prefix/etc
/config.site
2485 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2487 test "x$ac_site_file" = xNONE
&& continue
2488 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2490 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2491 sed 's/^/| /' "$ac_site_file" >&5
2493 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 as_fn_error $?
"failed to load site script $ac_site_file
2496 See \`config.log' for more details" "$LINENO" 5; }
2500 if test -r "$cache_file"; then
2501 # Some versions of bash will fail to source /dev/null (special files
2502 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2503 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2505 $as_echo "$as_me: loading cache $cache_file" >&6;}
2507 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2508 *) .
"./$cache_file";;
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2513 $as_echo "$as_me: creating cache $cache_file" >&6;}
2517 # Check that the precious variables saved in the cache have kept the same
2519 ac_cache_corrupted
=false
2520 for ac_var
in $ac_precious_vars; do
2521 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2522 eval ac_new_set
=\
$ac_env_${ac_var}_set
2523 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2524 eval ac_new_val
=\
$ac_env_${ac_var}_value
2525 case $ac_old_set,$ac_new_set in
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2528 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2529 ac_cache_corrupted
=: ;;
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2532 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2533 ac_cache_corrupted
=: ;;
2536 if test "x$ac_old_val" != "x$ac_new_val"; then
2537 # differences in whitespace do not lead to failure.
2538 ac_old_val_w
=`echo x $ac_old_val`
2539 ac_new_val_w
=`echo x $ac_new_val`
2540 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2542 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2543 ac_cache_corrupted
=:
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2546 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2547 eval $ac_var=\
$ac_old_val
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2550 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2552 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2555 # Pass precious variables to config.status.
2556 if test "$ac_new_set" = set; then
2558 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2559 *) ac_arg
=$ac_var=$ac_new_val ;;
2561 case " $ac_configure_args " in
2562 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2563 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2567 if $ac_cache_corrupted; then
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2571 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2572 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2574 ## -------------------- ##
2575 ## Main body of script. ##
2576 ## -------------------- ##
2579 ac_cpp
='$CPP $CPPFLAGS'
2580 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2581 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2582 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2592 # Use custom echo test for newline option
2593 # Current autoconf (2.65) gives incorrect echo newline option
2595 # This may be removed later - mow (June 17, 2010)
2596 ICU_ECHO_C
= ICU_ECHO_N
= ICU_ECHO_T
=
2597 case `/bin/sh -c "echo -n x"` in
2599 case `/bin/sh -c "echo 'x\c'"` in
2600 *c
*) ICU_ECHO_T
=' ';; # ECHO_T is single tab character.
2601 *) ICU_ECHO_C
='\c';;
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5
2611 $as_echo_n "checking for ICU version numbers... " >&6; }
2613 # Get the ICU version from uversion.h or other headers
2615 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2618 sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2620 VERSION
=`geticuversion $srcdir/common/unicode/uvernum.h`
2621 if test x
"$VERSION" = x
; then
2622 as_fn_error $?
"Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5
2626 #if test "$VERSION" != "$PACKAGE_VERSION"; then
2627 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf])
2630 UNICODE_VERSION
=`getuversion $srcdir/common/unicode/uchar.h`
2631 if test x
"$UNICODE_VERSION" = x
; then
2632 as_fn_error $?
"Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5
2634 # Compute a reasonable library version from the release version. This is
2635 # very bad, but that's wanted... We want to make sure that the LIB_VERSION
2636 # has at least a dot in it, so we'll add a .0 if needed.
2637 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
2638 LIB_VERSION
=$VERSION
2639 LIB_VERSION_MAJOR
=`echo $LIB_VERSION | sed 's/\..*//'`
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5
2644 $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; }
2648 # Determine the host system
2650 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2651 if test -f "$ac_dir/install-sh"; then
2653 ac_install_sh
="$ac_aux_dir/install-sh -c"
2655 elif test -f "$ac_dir/install.sh"; then
2657 ac_install_sh
="$ac_aux_dir/install.sh -c"
2659 elif test -f "$ac_dir/shtool"; then
2661 ac_install_sh
="$ac_aux_dir/shtool install -c"
2665 if test -z "$ac_aux_dir"; then
2666 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2669 # These three variables are undocumented and unsupported,
2670 # and are intended to be withdrawn in a future Autoconf release.
2671 # They can cause serious problems if a builder's source tree is in a directory
2672 # whose full name contains unusual characters.
2673 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2674 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2675 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2678 # Make sure we can run config.sub.
2679 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2680 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2683 $as_echo_n "checking build system type... " >&6; }
2684 if ${ac_cv_build+:} false
; then :
2685 $as_echo_n "(cached) " >&6
2687 ac_build_alias
=$build_alias
2688 test "x$ac_build_alias" = x
&&
2689 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2690 test "x$ac_build_alias" = x
&&
2691 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2692 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2693 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2697 $as_echo "$ac_cv_build" >&6; }
2698 case $ac_cv_build in
2700 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2703 ac_save_IFS
=$IFS; IFS
='-'
2709 # Remember, the first character of IFS is used to create $*,
2710 # except with old shells:
2713 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2717 $as_echo_n "checking host system type... " >&6; }
2718 if ${ac_cv_host+:} false
; then :
2719 $as_echo_n "(cached) " >&6
2721 if test "x$host_alias" = x
; then
2722 ac_cv_host
=$ac_cv_build
2724 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2725 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2730 $as_echo "$ac_cv_host" >&6; }
2733 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2736 ac_save_IFS
=$IFS; IFS
='-'
2742 # Remember, the first character of IFS is used to create $*,
2743 # except with old shells:
2746 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2752 # This variable is needed on z/OS because the C++ compiler only recognizes .C
2754 export _CXX_CXXSUFFIX
2756 # Accumulate #defines
2758 # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only.
2759 # They are only needed for building ICU itself. Example: platform stuff
2761 # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time,
2762 # and also a notice is output that they need to be set
2763 # for end-users of ICU also. uconfig.h.prepend is generated
2764 # with, for example, "#define U_DISABLE_RENAMING 1"
2765 # Example: ICU configuration stuff
2767 # UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users
2771 # Check whether to build debug libraries
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5
2773 $as_echo_n "checking whether to build debug libraries... " >&6; }
2776 # Check whether --enable-debug was given.
2777 if test "${enable_debug+set}" = set; then :
2778 enableval
=$enable_debug; case "${enableval}" in
2779 yes|"") enabled
=yes; ENABLE_DEBUG
=1; CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2785 $as_echo "$enabled" >&6; }
2788 # Check whether to build release libraries
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5
2790 $as_echo_n "checking whether to build release libraries... " >&6; }
2793 # Check whether --enable-release was given.
2794 if test "${enable_release+set}" = set; then :
2795 enableval
=$enable_release; case "${enableval}" in
2796 no
) enabled
=no
; ENABLE_RELEASE
=0 ;;
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2802 $as_echo "$enabled" >&6; }
2805 # Don't use the default C/CXXFLags
2809 # Checks for compilers
2811 ac_cpp
='$CPP $CPPFLAGS'
2812 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2815 if test -n "$ac_tool_prefix"; then
2816 for ac_prog
in clang gcc cc c99 c89 xlc_r xlc cl.exe icc
2818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2819 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2821 $as_echo_n "checking for $ac_word... " >&6; }
2822 if ${ac_cv_prog_CC+:} false
; then :
2823 $as_echo_n "(cached) " >&6
2825 if test -n "$CC"; then
2826 ac_cv_prog_CC
="$CC" # Let the user override the test.
2828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2832 test -z "$as_dir" && as_dir
=.
2833 for ac_exec_ext
in '' $ac_executable_extensions; do
2834 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2835 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2846 if test -n "$CC"; then
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2848 $as_echo "$CC" >&6; }
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2851 $as_echo "no" >&6; }
2855 test -n "$CC" && break
2858 if test -z "$CC"; then
2860 for ac_prog
in clang gcc cc c99 c89 xlc_r xlc cl.exe icc
2862 # Extract the first word of "$ac_prog", so it can be a program name with args.
2863 set dummy
$ac_prog; ac_word
=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2867 $as_echo_n "(cached) " >&6
2869 if test -n "$ac_ct_CC"; then
2870 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2876 test -z "$as_dir" && as_dir
=.
2877 for ac_exec_ext
in '' $ac_executable_extensions; do
2878 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2879 ac_cv_prog_ac_ct_CC
="$ac_prog"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2890 if test -n "$ac_ct_CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2892 $as_echo "$ac_ct_CC" >&6; }
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2899 test -n "$ac_ct_CC" && break
2902 if test "x$ac_ct_CC" = x
; then
2905 case $cross_compiling:$ac_tool_warned in
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2909 ac_tool_warned
=yes ;;
2916 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2918 as_fn_error $?
"no acceptable C compiler found in \$PATH
2919 See \`config.log' for more details" "$LINENO" 5; }
2921 # Provide some information about the compiler.
2922 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2925 for ac_option
in --version -v -V -qversion; do
2926 { { ac_try
="$ac_compiler $ac_option >&5"
2928 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932 $as_echo "$ac_try_echo"; } >&5
2933 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2935 if test -s conftest.err; then
2937 ... rest of stderr output deleted ...
2938 10q' conftest.err >conftest.er1
2939 cat conftest.er1 >&5
2941 rm -f conftest.er1 conftest.err
2942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2943 test $ac_status = 0; }
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947 /* end confdefs.h. */
2957 ac_clean_files_save=$ac_clean_files
2958 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2959 # Try to create an executable without -o first, disregard a.out.
2960 # It will help us diagnose broken compilers, and finding out an intuition
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2963 $as_echo_n "checking whether the C compiler works... " >&6; }
2964 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2966 # The possible output files:
2967 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2970 for ac_file in $ac_files
2973 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2974 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2979 if { { ac_try="$ac_link_default"
2981 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
2982 *) ac_try_echo
=$ac_try;;
2984 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
2986 (eval "$ac_link_default") 2>&5
2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 test $ac_status = 0; }; then :
2990 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2991 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2992 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2993 # so that the user can short-circuit this test for compilers unknown to
2995 for ac_file
in $ac_files ''
2997 test -f "$ac_file" || continue
2999 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3002 # We found the default executable, but exeext='' is most
3006 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3008 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3010 # We set ac_cv_exeext here because the later test for it is not
3011 # safe: cross compilers may not add the suffix if given an `-o'
3012 # argument, so we may need to know it at that point already.
3013 # Even if this section looks crufty: it has the advantage of
3020 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3025 if test -z "$ac_file"; then :
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3028 $as_echo "$as_me: failed program was:" >&5
3029 sed 's/^/| /' conftest.
$ac_ext >&5
3031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 as_fn_error
77 "C compiler cannot create executables
3034 See \`config.log' for more details" "$LINENO" 5; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3037 $as_echo "yes" >&6; }
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3040 $as_echo_n "checking for C compiler default output file name... " >&6; }
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3042 $as_echo "$ac_file" >&6; }
3043 ac_exeext
=$ac_cv_exeext
3045 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3046 ac_clean_files
=$ac_clean_files_save
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3048 $as_echo_n "checking for suffix of executables... " >&6; }
3049 if { { ac_try
="$ac_link"
3051 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055 $as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_link") 2>&5
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }; then :
3060 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3061 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3062 # work properly (i.e., refer to `conftest.exe'), while it won't with
3064 for ac_file
in conftest.exe conftest conftest.
*; do
3065 test -f "$ac_file" || continue
3067 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3068 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3077 See \`config.log' for more details" "$LINENO" 5; }
3079 rm -f conftest conftest
$ac_cv_exeext
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3081 $as_echo "$ac_cv_exeext" >&6; }
3083 rm -f conftest.
$ac_ext
3084 EXEEXT
=$ac_cv_exeext
3086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3087 /* end confdefs.h. */
3092 FILE *f = fopen ("conftest.out", "w");
3093 return ferror (f) || fclose (f) != 0;
3099 ac_clean_files
="$ac_clean_files conftest.out"
3100 # Check that the compiler produces executables we can run. If not, either
3101 # the compiler is broken, or we cross compile.
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3103 $as_echo_n "checking whether we are cross compiling... " >&6; }
3104 if test "$cross_compiling" != yes; then
3105 { { ac_try
="$ac_link"
3107 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_link") 2>&5
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }
3116 if { ac_try='./conftest$ac_cv_exeext'
3117 { { case "(($ac_try" in
3118 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3119 *) ac_try_echo
=$ac_try;;
3121 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3122 $as_echo "$ac_try_echo"; } >&5
3123 (eval "$ac_try") 2>&5
3125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3126 test $ac_status = 0; }; }; then
3129 if test "$cross_compiling" = maybe
; then
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error $?
"cannot run C compiled programs.
3135 If you meant to cross compile, use \`--host'.
3136 See \`config.log' for more details" "$LINENO" 5; }
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3141 $as_echo "$cross_compiling" >&6; }
3143 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3144 ac_clean_files
=$ac_clean_files_save
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3146 $as_echo_n "checking for suffix of object files... " >&6; }
3147 if ${ac_cv_objext+:} false
; then :
3148 $as_echo_n "(cached) " >&6
3150 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3161 rm -f conftest.o conftest.obj
3162 if { { ac_try
="$ac_compile"
3164 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 $as_echo "$ac_try_echo"; } >&5
3169 (eval "$ac_compile") 2>&5
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }; then :
3173 for ac_file in conftest.o conftest.obj conftest.*; do
3174 test -f "$ac_file" || continue;
3176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3177 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3182 $as_echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
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 object files
: cannot compile
3188 See \
`config.log' for more details" "$LINENO" 5; }
3190 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3193 $as_echo "$ac_cv_objext" >&6; }
3194 OBJEXT=$ac_cv_objext
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3197 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3198 if ${ac_cv_c_compiler_gnu+:} false; then :
3199 $as_echo_n "(cached) " >&6
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3215 if ac_fn_c_try_compile "$LINENO"; then :
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3225 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3226 if test $ac_compiler_gnu = yes; then
3231 ac_test_CFLAGS=${CFLAGS+set}
3232 ac_save_CFLAGS=$CFLAGS
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3234 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3235 if ${ac_cv_prog_cc_g+:} false; then :
3236 $as_echo_n "(cached) " >&6
3238 ac_save_c_werror_flag=$ac_c_werror_flag
3239 ac_c_werror_flag=yes
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3253 if ac_fn_c_try_compile "$LINENO"; then :
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3268 if ac_fn_c_try_compile "$LINENO"; then :
3271 ac_c_werror_flag=$ac_save_c_werror_flag
3273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3274 /* end confdefs.h. */
3284 if ac_fn_c_try_compile "$LINENO"; then :
3287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3292 ac_c_werror_flag=$ac_save_c_werror_flag
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3295 $as_echo "$ac_cv_prog_cc_g" >&6; }
3296 if test "$ac_test_CFLAGS" = set; then
3297 CFLAGS=$ac_save_CFLAGS
3298 elif test $ac_cv_prog_cc_g = yes; then
3299 if test "$GCC" = yes; then
3305 if test "$GCC" = yes; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3312 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3313 if ${ac_cv_prog_cc_c89+:} false; then :
3314 $as_echo_n "(cached) " >&6
3316 ac_cv_prog_cc_c89=no
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3337 s = g (p, va_arg (v,int));
3342 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3343 function prototypes and stuff, but not '\xHH' hex character constants.
3344 These don't provoke an error unfortunately, instead are silently treated
3345 as 'x'. The following induces an error, until -std is added to get
3346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3347 array size at least. It's necessary to write '\x00'==0 to get something
3348 that's true only with -std. */
3349 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3351 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3352 inside strings and character constants. */
3354 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3356 int test (int i, double x);
3357 struct s1 {int (*f) (int a);};
3358 struct s2 {int (*f) (double a);};
3359 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3365 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3370 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3371 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3373 CC="$ac_save_CC $ac_arg"
3374 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_cv_prog_cc_c89=$ac_arg
3377 rm -f core conftest.err conftest.$ac_objext
3378 test "x$ac_cv_prog_cc_c89" != "xno" && break
3380 rm -f conftest.$ac_ext
3385 case "x$ac_cv_prog_cc_c89" in
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3388 $as_echo "none needed" >&6; } ;;
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3391 $as_echo "unsupported" >&6; } ;;
3393 CC="$CC $ac_cv_prog_cc_c89"
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3395 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3397 if test "x$ac_cv_prog_cc_c89" != xno; then :
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 # Make sure that we try clang++ first, which provides C++11 support.
3408 # The g++ compiler is less likely to support C++11.
3410 ac_cpp='$CXXCPP $CPPFLAGS'
3411 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3414 if test -z "$CXX"; then
3415 if test -n "$CCC"; then
3418 if test -n "$ac_tool_prefix"; then
3419 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
3421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3424 $as_echo_n "checking for $ac_word... " >&6; }
3425 if ${ac_cv_prog_CXX+:} false; then :
3426 $as_echo_n "(cached) " >&6
3428 if test -n "$CXX"; then
3429 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 if test -n "$CXX"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3451 $as_echo "$CXX" >&6; }
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3454 $as_echo "no" >&6; }
3458 test -n "$CXX" && break
3461 if test -z "$CXX"; then
3463 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
3465 # Extract the first word of "$ac_prog", so it can be a program name with args.
3466 set dummy $ac_prog; ac_word=$2
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3468 $as_echo_n "checking for $ac_word... " >&6; }
3469 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3470 $as_echo_n "(cached) " >&6
3472 if test -n "$ac_ct_CXX"; then
3473 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_prog_ac_ct_CXX="$ac_prog"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3493 if test -n "$ac_ct_CXX"; then
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3495 $as_echo "$ac_ct_CXX" >&6; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3498 $as_echo "no" >&6; }
3502 test -n "$ac_ct_CXX" && break
3505 if test "x$ac_ct_CXX" = x; then
3508 case $cross_compiling:$ac_tool_warned in
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3512 ac_tool_warned=yes ;;
3520 # Provide some information about the compiler.
3521 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3524 for ac_option in --version -v -V -qversion; do
3525 { { ac_try="$ac_compiler $ac_option >&5"
3527 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3528 *) ac_try_echo
=$ac_try;;
3530 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3534 if test -s conftest.err
; then
3536 ... rest of stderr output deleted ...
3537 10q' conftest.err
>conftest.er1
3538 cat conftest.er1
>&5
3540 rm -f conftest.er1 conftest.err
3541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3542 test $ac_status = 0; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3546 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3547 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3548 $as_echo_n "(cached) " >&6
3550 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3564 if ac_fn_cxx_try_compile
"$LINENO"; then :
3569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3570 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3574 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3575 if test $ac_compiler_gnu = yes; then
3580 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3581 ac_save_CXXFLAGS
=$CXXFLAGS
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3583 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3584 if ${ac_cv_prog_cxx_g+:} false
; then :
3585 $as_echo_n "(cached) " >&6
3587 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3588 ac_cxx_werror_flag
=yes
3591 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3602 if ac_fn_cxx_try_compile
"$LINENO"; then :
3603 ac_cv_prog_cxx_g
=yes
3606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3607 /* end confdefs.h. */
3617 if ac_fn_cxx_try_compile
"$LINENO"; then :
3620 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3623 /* end confdefs.h. */
3633 if ac_fn_cxx_try_compile
"$LINENO"; then :
3634 ac_cv_prog_cxx_g
=yes
3636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3641 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3644 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3645 if test "$ac_test_CXXFLAGS" = set; then
3646 CXXFLAGS
=$ac_save_CXXFLAGS
3647 elif test $ac_cv_prog_cxx_g = yes; then
3648 if test "$GXX" = yes; then
3654 if test "$GXX" = yes; then
3661 ac_cpp
='$CPP $CPPFLAGS'
3662 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3663 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3664 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3667 # pkg-config is needed for harfbuzz support
3670 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3671 if test -n "$ac_tool_prefix"; then
3672 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3673 set dummy
${ac_tool_prefix}pkg
-config; ac_word
=$2
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3675 $as_echo_n "checking for $ac_word... " >&6; }
3676 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
3677 $as_echo_n "(cached) " >&6
3681 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
3684 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3688 test -z "$as_dir" && as_dir
=.
3689 for ac_exec_ext
in '' $ac_executable_extensions; do
3690 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3691 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
3703 if test -n "$PKG_CONFIG"; then
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3705 $as_echo "$PKG_CONFIG" >&6; }
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3708 $as_echo "no" >&6; }
3713 if test -z "$ac_cv_path_PKG_CONFIG"; then
3714 ac_pt_PKG_CONFIG
=$PKG_CONFIG
3715 # Extract the first word of "pkg-config", so it can be a program name with args.
3716 set dummy pkg
-config; ac_word
=$2
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3718 $as_echo_n "checking for $ac_word... " >&6; }
3719 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
3720 $as_echo_n "(cached) " >&6
3722 case $ac_pt_PKG_CONFIG in
3724 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3727 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3731 test -z "$as_dir" && as_dir
=.
3732 for ac_exec_ext
in '' $ac_executable_extensions; do
3733 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3734 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
3746 if test -n "$ac_pt_PKG_CONFIG"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3748 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3754 if test "x$ac_pt_PKG_CONFIG" = x
; then
3757 case $cross_compiling:$ac_tool_warned in
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3761 ac_tool_warned
=yes ;;
3763 PKG_CONFIG
=$ac_pt_PKG_CONFIG
3766 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
3770 if test -n "$PKG_CONFIG"; then
3771 _pkg_min_version
=0.20
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3773 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3774 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3776 $as_echo "yes" >&6; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICULEHB" >&5
3787 $as_echo_n "checking for ICULEHB... " >&6; }
3789 if test -n "$ICULEHB_CFLAGS"; then
3790 pkg_cv_ICULEHB_CFLAGS
="$ICULEHB_CFLAGS"
3791 elif test -n "$PKG_CONFIG"; then
3792 if test -n "$PKG_CONFIG" && \
3793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5
3794 ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }; then
3798 pkg_cv_ICULEHB_CFLAGS
=`$PKG_CONFIG --cflags "icu-le-hb" 2>/dev/null`
3805 if test -n "$ICULEHB_LIBS"; then
3806 pkg_cv_ICULEHB_LIBS
="$ICULEHB_LIBS"
3807 elif test -n "$PKG_CONFIG"; then
3808 if test -n "$PKG_CONFIG" && \
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"icu-le-hb\""; } >&5
3810 ($PKG_CONFIG --exists --print-errors "icu-le-hb") 2>&5
3812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }; then
3814 pkg_cv_ICULEHB_LIBS
=`$PKG_CONFIG --libs "icu-le-hb" 2>/dev/null`
3824 if test $pkg_failed = yes; then
3826 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3827 _pkg_short_errors_supported
=yes
3829 _pkg_short_errors_supported
=no
3831 if test $_pkg_short_errors_supported = yes; then
3832 ICULEHB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "icu-le-hb" 2>&1`
3834 ICULEHB_PKG_ERRORS
=`$PKG_CONFIG --print-errors "icu-le-hb" 2>&1`
3836 # Put the nasty error message in config.log where it belongs
3837 echo "$ICULEHB_PKG_ERRORS" >&5
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 $as_echo "no" >&6; }
3842 elif test $pkg_failed = untried
; then
3845 ICULEHB_CFLAGS
=$pkg_cv_ICULEHB_CFLAGS
3846 ICULEHB_LIBS
=$pkg_cv_ICULEHB_LIBS
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3848 $as_echo "yes" >&6; }
3852 # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option
3853 # The release mode use is the default one for autoconf
3854 if test "$GCC" = yes; then
3855 if test "$CFLAGS" = ""; then
3856 if test "$ENABLE_DEBUG" = 1; then
3859 if test "$ENABLE_RELEASE" = 1; then
3860 CFLAGS
="$CFLAGS -O2"
3863 if test "$CXXFLAGS" = ""; then
3864 if test "$ENABLE_DEBUG" = 1; then
3867 if test "$ENABLE_RELEASE" = 1; then
3868 CXXFLAGS
="$CXXFLAGS -O2"
3874 ac_cpp
='$CPP $CPPFLAGS'
3875 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3879 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3884 if test -z "$CPP"; then
3885 if ${ac_cv_prog_CPP+:} false
; then :
3886 $as_echo_n "(cached) " >&6
3888 # Double quotes because CPP needs to be expanded
3889 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3892 for ac_c_preproc_warn_flag
in '' yes
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3903 # include <limits.h>
3905 # include <assert.h>
3909 if ac_fn_c_try_cpp
"$LINENO"; then :
3912 # Broken: fails on valid input.
3915 rm -f conftest.err conftest.i conftest.
$ac_ext
3917 # OK, works on sane cases. Now check whether nonexistent headers
3918 # can be detected and how.
3919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #include <ac_nonexistent.h>
3923 if ac_fn_c_try_cpp
"$LINENO"; then :
3924 # Broken: success on invalid input.
3927 # Passes both tests.
3931 rm -f conftest.err conftest.i conftest.
$ac_ext
3934 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3935 rm -f conftest.i conftest.err conftest.
$ac_ext
3936 if $ac_preproc_ok; then :
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3949 $as_echo "$CPP" >&6; }
3951 for ac_c_preproc_warn_flag
in '' yes
3953 # Use a header file that comes with gcc, so configuring glibc
3954 # with a fresh cross-compiler works.
3955 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3956 # <limits.h> exists even on freestanding compilers.
3957 # On the NeXT, cc -E runs the code through the compiler's parser,
3958 # not just through cpp. "Syntax error" is here to catch this case.
3959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3962 # include <limits.h>
3964 # include <assert.h>
3968 if ac_fn_c_try_cpp
"$LINENO"; then :
3971 # Broken: fails on valid input.
3974 rm -f conftest.err conftest.i conftest.
$ac_ext
3976 # OK, works on sane cases. Now check whether nonexistent headers
3977 # can be detected and how.
3978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3979 /* end confdefs.h. */
3980 #include <ac_nonexistent.h>
3982 if ac_fn_c_try_cpp
"$LINENO"; then :
3983 # Broken: success on invalid input.
3986 # Passes both tests.
3990 rm -f conftest.err conftest.i conftest.
$ac_ext
3993 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3994 rm -f conftest.i conftest.err conftest.
$ac_ext
3995 if $ac_preproc_ok; then :
3998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4000 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4001 See \`config.log' for more details" "$LINENO" 5; }
4005 ac_cpp
='$CPP $CPPFLAGS'
4006 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4011 # Find a good install program. We prefer a C program (faster),
4012 # so one script is as good as another. But avoid the broken or
4013 # incompatible versions:
4014 # SysV /etc/install, /usr/sbin/install
4015 # SunOS /usr/etc/install
4016 # IRIX /sbin/install
4018 # AmigaOS /C/install, which installs bootblocks on floppy discs
4019 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4020 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4021 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4022 # OS/2's system install, which has a completely different semantic
4023 # ./install, which can be erroneously created by make from ./install.sh.
4024 # Reject install programs that cannot install multiple files.
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4026 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4027 if test -z "$INSTALL"; then
4028 if ${ac_cv_path_install+:} false
; then :
4029 $as_echo_n "(cached) " >&6
4031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir
=.
4036 # Account for people who put trailing slashes in PATH elements.
4037 case $as_dir/ in #((
4038 .
/ | .
// | /[cC
]/* | \
4039 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
4040 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
4043 # OSF1 and SCO ODT 3.0 have their own names for install.
4044 # Don't use installbsd from OSF since it installs stuff as root
4046 for ac_prog
in ginstall scoinst
install; do
4047 for ac_exec_ext
in '' $ac_executable_extensions; do
4048 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
4049 if test $ac_prog = install &&
4050 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4051 # AIX install. It has an incompatible calling convention.
4053 elif test $ac_prog = install &&
4054 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4055 # program-specific install script used by HP pwplus--don't use.
4058 rm -rf conftest.one conftest.two conftest.dir
4059 echo one
> conftest.one
4060 echo two
> conftest.two
4062 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4063 test -s conftest.one
&& test -s conftest.two
&&
4064 test -s conftest.dir
/conftest.one
&&
4065 test -s conftest.dir
/conftest.two
4067 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4080 rm -rf conftest.one conftest.two conftest.dir
4083 if test "${ac_cv_path_install+set}" = set; then
4084 INSTALL
=$ac_cv_path_install
4086 # As a last resort, use the slow shell script. Don't cache a
4087 # value for INSTALL within a source directory, because that will
4088 # break other packages using the cache if that directory is
4089 # removed, or if the value is a relative name.
4090 INSTALL
=$ac_install_sh
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4094 $as_echo "$INSTALL" >&6; }
4096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4097 # It thinks the first close brace ends the variable substitution.
4098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4102 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4108 ac_cpp
='$CXXCPP $CPPFLAGS'
4109 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4115 /* end confdefs.h. */
4125 if ac_fn_cxx_try_link
"$LINENO"; then :
4128 rm -f core conftest.err conftest.
$ac_objext \
4129 conftest
$ac_exeext conftest.
$ac_ext
4131 ac_cpp
='$CPP $CPPFLAGS'
4132 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4137 # make sure install is relative to srcdir - if a script
4138 if test "$srcdir" = "."; then
4139 # If srcdir isn't just ., then (srcdir) is already prepended.
4140 if test "${ac_install_sh}" = "${INSTALL}"; then
4141 INSTALL
="\\\$(top_srcdir)/${ac_install_sh}"
4145 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
4146 #AC_CHECK_PROG(STRIP, strip, strip, true)
4148 # Check for the platform make
4149 for ac_prog
in gmake gnumake
4151 # Extract the first word of "$ac_prog", so it can be a program name with args.
4152 set dummy
$ac_prog; ac_word
=$2
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154 $as_echo_n "checking for $ac_word... " >&6; }
4155 if ${ac_cv_path_U_MAKE+:} false
; then :
4156 $as_echo_n "(cached) " >&6
4160 ac_cv_path_U_MAKE
="$U_MAKE" # Let the user override the test with a path.
4163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4167 test -z "$as_dir" && as_dir
=.
4168 for ac_exec_ext
in '' $ac_executable_extensions; do
4169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4170 ac_cv_path_U_MAKE
="$as_dir/$ac_word$ac_exec_ext"
4171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 U_MAKE
=$ac_cv_path_U_MAKE
4182 if test -n "$U_MAKE"; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5
4184 $as_echo "$U_MAKE" >&6; }
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4191 test -n "$U_MAKE" && break
4193 test -n "$U_MAKE" || U_MAKE
="make"
4199 # Check whether --with-cross-build was given.
4200 if test "${with_cross_build+set}" = set; then :
4201 withval
=$with_cross_build; cross_buildroot
="${withval}"
4207 if test "X$cross_buildroot" = "X"; then
4208 if test "$cross_compiling" = "yes"; then
4209 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
4212 if test -f "${cross_buildroot}/config/icucross.mk"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5
4214 $as_echo "Using cross buildroot: $cross_buildroot" >&6; }
4216 if test -d "${cross_buildroot}"; then
4217 as_fn_error $?
"${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5
4219 as_fn_error $?
"No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5
4225 # Check for doxygen to generate documentation
4226 # Extract the first word of "doxygen", so it can be a program name with args.
4227 set dummy doxygen
; ac_word
=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if ${ac_cv_path_DOXYGEN+:} false
; then :
4231 $as_echo_n "(cached) " >&6
4235 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
4238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4239 as_dummy
="$PATH:/usr/local/bin:/usr/bin"
4240 for as_dir
in $as_dummy
4243 test -z "$as_dir" && as_dir
=.
4244 for ac_exec_ext
in '' $ac_executable_extensions; do
4245 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4246 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 DOXYGEN
=$ac_cv_path_DOXYGEN
4258 if test -n "$DOXYGEN"; then
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
4260 $as_echo "$DOXYGEN" >&6; }
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4263 $as_echo "no" >&6; }
4268 # Check that the linker is usable
4271 *-*-cygwin*|*-*-mingw*)
4272 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
4273 as_fn_error $?
"link.exe is not a valid linker. Your PATH is incorrect.
4274 Please follow the directions in ICU's readme." "$LINENO" 5
4279 # Determine the executable suffix
4280 # We don't use AC_EXEEXT because some compilers output separate debugging
4281 # files, which confuses the AC_EXEEXT macro.
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5
4283 $as_echo_n "checking checking for executable suffix... " >&6; }
4285 *-*-cygwin*|*-*-mingw*) EXEEXT
=.exe
;;
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
4290 $as_echo "$EXEEXT" >&6; }
4293 # Determine how strict we want to be when compiling
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5
4296 $as_echo_n "checking whether strict compiling is on... " >&6; }
4297 # Check whether --enable-strict was given.
4298 if test "${enable_strict+set}" = set; then :
4299 enableval
=$enable_strict;
4300 if test "$enableval" = no
4302 ac_use_strict_options
=no
4304 ac_use_strict_options
=yes
4308 ac_use_strict_options
=yes
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5
4312 $as_echo "$ac_use_strict_options" >&6; }
4314 if test "$ac_use_strict_options" = yes
4316 if test "$GCC" = yes
4320 # Do not use -ansi. It limits us to C90, and it breaks some platforms.
4321 # We use -std=c99 to disable the gnu99 defaults and its associated warnings
4322 CFLAGS
="$CFLAGS -std=c99"
4326 CFLAGS
="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
4330 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
4332 CFLAGS
="$CFLAGS /W4"
4335 CFLAGS
="$CFLAGS -W4" ;;
4338 if test "$GXX" = yes
4340 CXXFLAGS
="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
4344 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
4346 CXXFLAGS
="$CXXFLAGS /W4"
4349 CFLAGS
="$CFLAGS -W4" ;;
4355 # Check if we can build and use 64-bit libraries
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4359 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4360 if ${ac_cv_path_GREP+:} false
; then :
4361 $as_echo_n "(cached) " >&6
4363 if test -z "$GREP"; then
4364 ac_path_GREP_found
=false
4365 # Loop through the user's path and test for each of PROGNAME-LIST
4366 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4367 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4370 test -z "$as_dir" && as_dir
=.
4371 for ac_prog
in grep ggrep
; do
4372 for ac_exec_ext
in '' $ac_executable_extensions; do
4373 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4374 as_fn_executable_p
"$ac_path_GREP" || continue
4375 # Check for GNU ac_path_GREP and select it if it is found.
4376 # Check for GNU $ac_path_GREP
4377 case `"$ac_path_GREP" --version 2>&1` in
4379 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4382 $as_echo_n 0123456789 >"conftest.in"
4385 cat "conftest.in" "conftest.in" >"conftest.tmp"
4386 mv "conftest.tmp" "conftest.in"
4387 cp "conftest.in" "conftest.nl"
4388 $as_echo 'GREP' >> "conftest.nl"
4389 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4390 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4391 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4392 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4393 # Best one so far, save it but keep looking for a better one
4394 ac_cv_path_GREP
="$ac_path_GREP"
4395 ac_path_GREP_max
=$ac_count
4397 # 10*(2^10) chars as input seems more than enough
4398 test $ac_count -gt 10 && break
4400 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4403 $ac_path_GREP_found && break 3
4408 if test -z "$ac_cv_path_GREP"; then
4409 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4412 ac_cv_path_GREP
=$GREP
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4417 $as_echo "$ac_cv_path_GREP" >&6; }
4418 GREP
="$ac_cv_path_GREP"
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4422 $as_echo_n "checking for egrep... " >&6; }
4423 if ${ac_cv_path_EGREP+:} false
; then :
4424 $as_echo_n "(cached) " >&6
4426 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4427 then ac_cv_path_EGREP
="$GREP -E"
4429 if test -z "$EGREP"; then
4430 ac_path_EGREP_found
=false
4431 # Loop through the user's path and test for each of PROGNAME-LIST
4432 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4433 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4436 test -z "$as_dir" && as_dir
=.
4437 for ac_prog
in egrep; do
4438 for ac_exec_ext
in '' $ac_executable_extensions; do
4439 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4440 as_fn_executable_p
"$ac_path_EGREP" || continue
4441 # Check for GNU ac_path_EGREP and select it if it is found.
4442 # Check for GNU $ac_path_EGREP
4443 case `"$ac_path_EGREP" --version 2>&1` in
4445 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4448 $as_echo_n 0123456789 >"conftest.in"
4451 cat "conftest.in" "conftest.in" >"conftest.tmp"
4452 mv "conftest.tmp" "conftest.in"
4453 cp "conftest.in" "conftest.nl"
4454 $as_echo 'EGREP' >> "conftest.nl"
4455 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4456 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4457 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4458 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4459 # Best one so far, save it but keep looking for a better one
4460 ac_cv_path_EGREP
="$ac_path_EGREP"
4461 ac_path_EGREP_max
=$ac_count
4463 # 10*(2^10) chars as input seems more than enough
4464 test $ac_count -gt 10 && break
4466 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4469 $ac_path_EGREP_found && break 3
4474 if test -z "$ac_cv_path_EGREP"; then
4475 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4478 ac_cv_path_EGREP
=$EGREP
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4484 $as_echo "$ac_cv_path_EGREP" >&6; }
4485 EGREP
="$ac_cv_path_EGREP"
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4489 $as_echo_n "checking for ANSI C header files... " >&6; }
4490 if ${ac_cv_header_stdc+:} false
; then :
4491 $as_echo_n "(cached) " >&6
4493 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4508 if ac_fn_c_try_compile
"$LINENO"; then :
4509 ac_cv_header_stdc
=yes
4511 ac_cv_header_stdc
=no
4513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4515 if test $ac_cv_header_stdc = yes; then
4516 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523 $EGREP "memchr" >/dev
/null
2>&1; then :
4526 ac_cv_header_stdc
=no
4532 if test $ac_cv_header_stdc = yes; then
4533 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4540 $EGREP "free" >/dev
/null
2>&1; then :
4543 ac_cv_header_stdc
=no
4549 if test $ac_cv_header_stdc = yes; then
4550 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4551 if test "$cross_compiling" = yes; then :
4554 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4558 #if ((' ' & 0x0FF) == 0x020)
4559 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4560 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4562 # define ISLOWER(c) \
4563 (('a' <= (c) && (c) <= 'i') \
4564 || ('j' <= (c) && (c) <= 'r') \
4565 || ('s' <= (c) && (c) <= 'z'))
4566 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4569 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4574 for (i = 0; i < 256; i++)
4575 if (XOR (islower (i), ISLOWER (i))
4576 || toupper (i) != TOUPPER (i))
4581 if ac_fn_c_try_run
"$LINENO"; then :
4584 ac_cv_header_stdc
=no
4586 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4587 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4593 $as_echo "$ac_cv_header_stdc" >&6; }
4594 if test $ac_cv_header_stdc = yes; then
4596 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4601 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4602 inttypes.h stdint.h unistd.h
4604 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4605 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4607 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4608 cat >>confdefs.h
<<_ACEOF
4609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4619 ENABLE_64BIT_LIBS
=unknown
4620 ## revisit this for cross-compile.
4622 # Check whether --enable-64bit-libs was given.
4623 if test "${enable_64bit_libs+set}" = set; then :
4624 enableval
=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs"
4625 case "${enableval}" in
4626 no
|false
|32) with_library_bits
=32; ;;
4627 yes|true
|64) with_library_bits
=64else32
;;
4628 nochange
) with_library_bits
=nochange
; ;;
4629 *) as_fn_error $?
"bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;;
4636 # Check whether --with-library-bits was given.
4637 if test "${with_library_bits+set}" = set; then :
4638 withval
=$with_library_bits; case "${withval}" in
4639 ""|nochange
) BITS_REQ
=$withval ;;
4640 32|64|64else32
) BITS_REQ
=$withval ;;
4641 *) as_fn_error $?
"bad value ${withval} for --with-library-bits" "$LINENO" 5 ;;
4646 # don't use these for cross compiling
4647 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
4648 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
4650 # The cast to long int works around a bug in the HP C Compiler
4651 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4652 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4653 # This bug is HP SR number 8606223364.
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4655 $as_echo_n "checking size of void *... " >&6; }
4656 if ${ac_cv_sizeof_void_p+:} false
; then :
4657 $as_echo_n "(cached) " >&6
4659 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4662 if test "$ac_cv_type_void_p" = yes; then
4663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4665 as_fn_error
77 "cannot compute sizeof (void *)
4666 See \`config.log' for more details" "$LINENO" 5; }
4668 ac_cv_sizeof_void_p
=0
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4674 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4678 cat >>confdefs.h
<<_ACEOF
4679 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5
4684 $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; }
4685 case $ac_cv_sizeof_void_p in
4686 8) DEFAULT_64BIT
=yes ;;
4687 4) DEFAULT_64BIT
=no
;;
4688 *) DEFAULT_64BIT
=unknown
4692 # 'OK' here means, we can exit any further checking, everything's copa
4695 # do we need to check for buildable/runnable 32 or 64 bit?
4699 # later, can we run the 32/64 bit binaries so made?
4703 if test "$DEFAULT_64BIT" = "yes"; then
4704 # we get 64 bits by default.
4708 # need to look for 32 bit support.
4712 # everyone else is happy.
4716 elif test "$DEFAULT_64BIT" = "no"; then
4717 # not 64 bit by default.
4727 elif test "$DEFAULT_64BIT" = "unknown"; then
4731 64|64else32
) BITS_OK
=no
4733 BITS_CHECK_64
=yes ;;
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5
4741 $as_echo "$DEFAULT_64BIT" >&6; };
4743 if test "$BITS_OK" != "yes"; then
4744 # not copa. back these up.
4745 CFLAGS_OLD
="${CFLAGS}"
4746 CXXFLAGS_OLD
="${CXXFLAGS}"
4747 LDFLAGS_OLD
="${LDFLAGS}"
4748 ARFLAGS_OLD
="${ARFLAGS}"
4750 CFLAGS_32
="${CFLAGS}"
4751 CXXFLAGS_32
="${CXXFLAGS}"
4752 LDFLAGS_32
="${LDFLAGS}"
4753 ARFLAGS_32
="${ARFLAGS}"
4755 CFLAGS_64
="${CFLAGS}"
4756 CXXFLAGS_64
="${CXXFLAGS}"
4757 LDFLAGS_64
="${LDFLAGS}"
4758 ARFLAGS_64
="${ARFLAGS}"
4760 CAN_BUILD_64
=unknown
4761 CAN_BUILD_32
=unknown
4762 # These results can't be cached because is sets compiler flags.
4763 if test "$BITS_CHECK_64" = "yes"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5
4765 $as_echo_n "checking how to build 64-bit executables... " >&6; }
4768 # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it.
4769 # Note, we don't have to actually check if the options work- we'll try them before using them.
4770 # So, only try actually testing the options, if you are trying to decide between multiple options.
4771 # On exit from the following clauses:
4772 # if CAN_BUILD_64=yes:
4773 # *FLAGS are assumed to contain the right settings for 64bit
4774 # else if CAN_BUILD_64=no: (default)
4775 # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD
4777 if test "$GCC" = yes; then
4778 CFLAGS
="${CFLAGS} -m64"
4779 CXXFLAGS
="${CXXFLAGS} -m64"
4780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4781 /* end confdefs.h. */
4782 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4784 if ac_fn_c_try_compile
"$LINENO"; then :
4789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4794 CFLAGS
="${CFLAGS} -m64"
4795 CXXFLAGS
="${CXXFLAGS} -m64"
4796 if test "$cross_compiling" = yes; then :
4797 CAN_BUILD_64
=unknown
4799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4801 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4803 if ac_fn_c_try_run
"$LINENO"; then :
4808 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4809 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4812 if test "$CAN_BUILD_64" != yes; then
4813 # Nope. back out changes.
4814 CFLAGS
="${CFLAGS_OLD}"
4815 CXXFLAGS
="${CXXFLAGS_OLD}"
4816 # 2. try xarch=v9 [deprecated]
4817 ## TODO: cross compile: the following won't work.
4818 SPARCV9
=`isainfo -n 2>&1 | grep sparcv9`
4819 SOL64
=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
4820 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
4821 if test -z "$SOL64" && test -n "$SPARCV9"; then
4822 CFLAGS
="${CFLAGS} -xtarget=ultra -xarch=v9"
4823 CXXFLAGS
="${CXXFLAGS} -xtarget=ultra -xarch=v9"
4824 LDFLAGS
="${LDFLAGS} -xtarget=ultra -xarch=v9"
4831 CFLAGS
="${CFLAGS} -m64"
4832 CXXFLAGS
="${CXXFLAGS} -m64"
4833 if test "$cross_compiling" = yes; then :
4834 CAN_BUILD_64
=unknown
4836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4838 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4840 if ac_fn_c_try_run
"$LINENO"; then :
4845 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4846 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4849 if test "$CAN_BUILD_64" != yes; then
4850 # Nope. back out changes.
4851 CFLAGS
="${CFLAGS_OLD}"
4852 CXXFLAGS
="${CXXFLAGS_OLD}"
4853 # 2. try the older compiler option
4854 ## TODO: cross compile problem
4855 AMD64
=`isainfo -n 2>&1 | grep amd64`
4856 SOL64
=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
4857 if test -z "$SOL64" && test -n "$AMD64"; then
4858 CFLAGS
="${CFLAGS} -xtarget=generic64"
4859 CXXFLAGS
="${CXXFLAGS} -xtarget=generic64"
4865 # check for ecc/ecpc compiler support
4866 ## TODO: cross compiler problem
4867 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
4868 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
4874 # vcvarsamd64.bat should have been used to enable 64-bit builds.
4875 # We only do this check to display the correct answer.
4876 ## TODO: cross compiler problem
4877 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
4881 *-*-aix*|powerpc64
-*-linux*)
4882 CFLAGS
="${CFLAGS} -q64"
4883 CXXFLAGS
="${CXXFLAGS} -q64"
4884 LDFLAGS
="${LDFLAGS} -q64"
4885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4889 if ac_fn_c_try_compile
"$LINENO"; then :
4894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4895 if test "$CAN_BUILD_64" = yes; then
4896 # worked- set other options.
4899 # tell AIX what executable mode to use.
4900 ARFLAGS
="${ARFLAGS} -X64"
4905 # First we try the newer +DD64, if that doesn't work,
4906 # try other options.
4908 CFLAGS
="${CFLAGS} +DD64"
4909 CXXFLAGS
="${CXXFLAGS} +DD64"
4910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4914 if ac_fn_c_try_compile
"$LINENO"; then :
4919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4920 if test "$CAN_BUILD_64" != yes; then
4922 CFLAGS
="${CFLAGS_OLD}"
4923 CXXFLAGS
="${CXXFLAGS_OLD}"
4925 CFLAGS
="${CFLAGS} +DA2.0W"
4926 CXXFLAGS
="${CXXFLAGS} +DA2.0W"
4927 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4929 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4931 if ac_fn_c_try_compile
"$LINENO"; then :
4936 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4939 *-*ibm
-openedition*|*-*-os390*)
4940 CFLAGS
="${CFLAGS} -Wc,lp64"
4941 CXXFLAGS
="${CXXFLAGS} -Wc,lp64"
4942 LDFLAGS
="${LDFLAGS} -Wl,lp64"
4943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4947 if ac_fn_c_try_compile
"$LINENO"; then :
4952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5
4960 $as_echo "$CAN_BUILD_64" >&6; }
4961 if test "$CAN_BUILD_64" = yes; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5
4963 $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; }
4964 if test "$cross_compiling" = yes; then :
4967 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4969 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4971 if ac_fn_c_try_run
"$LINENO"; then :
4976 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4977 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5
4981 $as_echo "$BITS_RUN_64" >&6; };
4983 CFLAGS_64
="${CFLAGS}"
4984 CXXFLAGS_64
="${CXXFLAGS}"
4985 LDFLAGS_64
="${LDFLAGS}"
4986 ARFLAGS_64
="${ARFLAGS}"
4989 CFLAGS
="${CFLAGS_OLD}"
4990 CXXFLAGS
="${CXXFLAGS_OLD}"
4991 LDFLAGS
="${LDFLAGS_OLD}"
4992 ARFLAGS
="${ARFLAGS_OLD}"
4994 if test "$BITS_CHECK_32" = "yes"; then
4995 # see comment under 'if BITS_CHECK_64', above.
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5
4997 $as_echo_n "checking how to build 32-bit executables... " >&6; }
4998 if test "$GCC" = yes; then
4999 CFLAGS
="${CFLAGS} -m32"
5000 CXXFLAGS
="${CXXFLAGS} -m32"
5001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5002 /* end confdefs.h. */
5003 int main(void) {return (sizeof(void*)*8==32)?0:1;}
5005 if ac_fn_c_try_compile
"$LINENO"; then :
5010 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5
5013 $as_echo "$CAN_BUILD_32" >&6; }
5014 if test "$CAN_BUILD_32" = yes; then
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5
5016 $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; }
5017 if test "$cross_compiling" = yes; then :
5020 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5022 int main(void) {return (sizeof(void*)*8==32)?0:1;}
5024 if ac_fn_c_try_run
"$LINENO"; then :
5029 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5030 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5
5034 $as_echo "$BITS_RUN_32" >&6; };
5035 CFLAGS_32
="${CFLAGS}"
5036 CXXFLAGS_32
="${CXXFLAGS}"
5037 LDFLAGS_32
="${LDFLAGS}"
5038 ARFLAGS_32
="${ARFLAGS}"
5041 CFLAGS
="${CFLAGS_OLD}"
5042 CXXFLAGS
="${CXXFLAGS_OLD}"
5043 LDFLAGS
="${LDFLAGS_OLD}"
5044 ARFLAGS
="${ARFLAGS_OLD}"
5048 # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do.
5051 # First, implement 64else32
5052 if test "$BITS_REQ" = "64else32"; then
5053 if test "$BITS_RUN_64" = "yes"; then
5062 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
5063 CFLAGS
="${CFLAGS_32}"
5064 CXXFLAGS
="${CXXFLAGS_32}"
5065 LDFLAGS
="${LDFLAGS_32}"
5066 ARFLAGS
="${ARFLAGS_32}"
5068 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
5069 CFLAGS
="${CFLAGS_64}"
5070 CXXFLAGS
="${CXXFLAGS_64}"
5071 LDFLAGS
="${LDFLAGS_64}"
5072 ARFLAGS
="${ARFLAGS_64}"
5074 elif test "$BITS_OK" != "yes"; then
5075 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
5082 # Determine the Makefile fragment
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5
5085 $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; }
5086 if ${icu_cv_host_frag+:} false
; then :
5087 $as_echo_n "(cached) " >&6
5092 if test "$GCC" = yes; then
5093 icu_cv_host_frag
=mh
-solaris-gcc
5095 icu_cv_host_frag
=mh
-solaris
5098 if test "$GCC" = yes; then
5099 icu_cv_host_frag
=mh
-alpha-linux-gcc
5101 icu_cv_host_frag
=mh
-alpha-linux-cc
5104 if test "$GCC" = yes; then
5105 icu_cv_host_frag
=mh
-linux
5107 icu_cv_host_frag
=mh
-linux-va
5109 *-*-linux*|*-*-gnu|*-*-k*bsd
*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag
=mh
-linux ;;
5110 i
[34567]86-*-cygwin)
5111 if test "$GCC" = yes; then
5112 icu_cv_host_frag
=mh
-cygwin
5114 icu_cv_host_frag
=mh
-cygwin-msvc
5117 if test "$GCC" = yes; then
5118 icu_cv_host_frag
=mh
-cygwin64
5120 icu_cv_host_frag
=mh
-cygwin-msvc
5123 if test "$GCC" = yes; then
5124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5125 /* end confdefs.h. */
5128 #error This is not MinGW64
5138 if ac_fn_c_try_compile
"$LINENO"; then :
5139 icu_cv_host_frag
=mh
-mingw64
5141 icu_cv_host_frag
=mh
-mingw
5143 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5146 *-*-mingw*) icu_cv_host_frag
=mh
-msys-msvc ;;
5147 *-*-cygwin) icu_cv_host_frag
=mh
-cygwin-msvc ;;
5150 *-*-*bsd
*|*-*-dragonfly*) icu_cv_host_frag
=mh
-bsd-gcc ;;
5152 if test "$GCC" = yes; then
5153 icu_cv_host_frag
=mh
-aix-gcc
5155 icu_cv_host_frag
=mh
-aix-va
5158 if test "$GCC" = yes; then
5159 icu_cv_host_frag
=mh
-hpux-gcc
5162 *aCC
) icu_cv_host_frag
=mh
-hpux-acc ;;
5165 *-*ibm
-openedition*|*-*-os390*) icu_cv_host_frag
=mh
-os390 ;;
5166 *-*-os400*) icu_cv_host_frag
=mh
-os400 ;;
5167 *-apple-rhapsody*) icu_cv_host_frag
=mh
-darwin ;;
5168 *-apple-darwin*) icu_cv_host_frag
=mh
-darwin ;;
5169 *-*-beos) icu_cv_host_frag
=mh
-beos ;;
5170 *-*-haiku) icu_cv_host_frag
=mh
-haiku ;;
5171 *-*-irix*) icu_cv_host_frag
=mh
-irix ;;
5172 *-dec-osf*) icu_cv_host_frag
=mh
-alpha-osf ;;
5173 *-*-nto*) icu_cv_host_frag
=mh
-qnx ;;
5174 *-ncr-*) icu_cv_host_frag
=mh
-mpras ;;
5175 *) icu_cv_host_frag
=mh
-unknown ;;
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5
5181 $as_echo "$icu_cv_host_frag" >&6; }
5184 # Checks for libraries and other host specific stuff
5185 # On HP/UX, don't link to -lm from a shared lib because it isn't
5186 # PIC (at least on 10.2)
5188 *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5189 $as_echo_n "checking for floor in -lm... " >&6; }
5190 if ${ac_cv_lib_m_floor+:} false
; then :
5191 $as_echo_n "(cached) " >&6
5193 ac_check_lib_save_LIBS
=$LIBS
5195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5198 /* Override any GCC internal prototype to avoid an error.
5199 Use char because int might match the return type of a GCC
5200 builtin and then its argument prototype would still apply. */
5213 if ac_fn_c_try_link
"$LINENO"; then :
5214 ac_cv_lib_m_floor
=yes
5216 ac_cv_lib_m_floor
=no
5218 rm -f core conftest.err conftest.
$ac_objext \
5219 conftest
$ac_exeext conftest.
$ac_ext
5220 LIBS
=$ac_check_lib_save_LIBS
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5223 $as_echo "$ac_cv_lib_m_floor" >&6; }
5224 if test "x$ac_cv_lib_m_floor" = xyes
; then :
5229 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5230 $as_echo_n "checking for floor in -lm... " >&6; }
5231 if ${ac_cv_lib_m_floor+:} false
; then :
5232 $as_echo_n "(cached) " >&6
5234 ac_check_lib_save_LIBS
=$LIBS
5236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5239 /* Override any GCC internal prototype to avoid an error.
5240 Use char because int might match the return type of a GCC
5241 builtin and then its argument prototype would still apply. */
5254 if ac_fn_c_try_link
"$LINENO"; then :
5255 ac_cv_lib_m_floor
=yes
5257 ac_cv_lib_m_floor
=no
5259 rm -f core conftest.err conftest.
$ac_objext \
5260 conftest
$ac_exeext conftest.
$ac_ext
5261 LIBS
=$ac_check_lib_save_LIBS
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5264 $as_echo "$ac_cv_lib_m_floor" >&6; }
5265 if test "x$ac_cv_lib_m_floor" = xyes
; then :
5266 cat >>confdefs.h
<<_ACEOF
5278 # Check whether to build shared libraries
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5280 $as_echo_n "checking whether to build shared libraries... " >&6; }
5282 # Check whether --enable-shared was given.
5283 if test "${enable_shared+set}" = set; then :
5284 enableval
=$enable_shared; case "${enableval}" in
5285 yes|"") enabled
=yes; ENABLE_SHARED
=YES
;;
5290 enabled
=yes; ENABLE_SHARED
=YES
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5295 $as_echo "$enabled" >&6; }
5298 # Check whether to build static libraries
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5300 $as_echo_n "checking whether to build static libraries... " >&6; }
5302 # Check whether --enable-static was given.
5303 if test "${enable_static+set}" = set; then :
5304 enableval
=$enable_static; case "${enableval}" in
5305 yes|"") enabled
=yes; ENABLE_STATIC
=YES
;;
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5312 $as_echo "$enabled" >&6; }
5315 # When building release static library, there might be some optimization flags we can use
5316 if test "$ENABLE_STATIC" = "YES"; then
5317 if test "$ENABLE_SHARED" != "YES"; then
5318 if test "$ENABLE_RELEASE" = 1; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5
5320 $as_echo_n "checking whether we can use static library optimization option... " >&6; }
5321 CHECK_STATIC_OPT_FLAG
=no
5323 OLD_CPPFLAGS
="${CPPFLAGS}"
5324 OLD_LDFLAGS
="${LDFLAGS}"
5327 *-linux*|i
*86-*-*bsd
*|i
*86-pc-gnu)
5328 if test "$GCC" = yes; then
5329 CPPFLAGS
="${CPPFLAGS} -ffunction-sections -fdata-sections"
5330 LDFLAGS
="${LDFLAGS} -Wl,--gc-sections"
5337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5348 if ac_fn_c_try_link
"$LINENO"; then :
5349 CHECK_STATIC_OPT_FLAG
=yes
5351 CHECK_STATIC_OPT_FLAG
=no
5353 rm -f core conftest.err conftest.
$ac_objext \
5354 conftest
$ac_exeext conftest.
$ac_ext
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5
5356 $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; }
5357 if test "$CHECK_STATIC_OPT_FLAG" = no
; then
5358 CPPFLAGS
="${OLD_CPPFLAGS}"
5359 LDFLAGS
="${OLD_LDFLAGS}"
5366 # Check whether to enable auto cleanup of libraries
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5
5368 $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; }
5370 UCLN_NO_AUTO_CLEANUP
=1
5371 # Check whether --enable-auto-cleanup was given.
5372 if test "${enable_auto_cleanup+set}" = set; then :
5373 enableval
=$enable_auto_cleanup; case "${enableval}" in
5375 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
5376 UCLN_NO_AUTO_CLEANUP
=0
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5383 $as_echo "$enabled" >&6; }
5386 # MSVC floating-point option
5387 MSVC_RELEASE_FLAG
=""
5388 if test $enabled = yes
5390 if test $icu_cv_host_frag = mh
-cygwin-msvc -o $icu_cv_host_frag = mh
-msys-msvc
5392 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5395 #if defined _MSC_VER && _MSC_VER >= 1400
5397 Microsoft Visual C++ < 2005
5408 if ac_fn_c_try_compile
"$LINENO"; then :
5409 MSVC_RELEASE_FLAG
="/fp:precise"
5411 MSVC_RELEASE_FLAG
="/Op"
5413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5415 CFLAGS
="${CFLAGS} ${MSVC_RELEASE_FLAG}"
5416 CXXFLAGS
="${CXXFLAGS} ${MSVC_RELEASE_FLAG}"
5420 # Check whether to enabled draft APIs
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5
5422 $as_echo_n "checking whether to enable draft APIs... " >&6; }
5424 U_DEFAULT_SHOW_DRAFT
=1
5425 # Check whether --enable-draft was given.
5426 if test "${enable_draft+set}" = set; then :
5427 enableval
=$enable_draft; case "${enableval}" in
5428 no
) enabled
=no
; U_DEFAULT_SHOW_DRAFT
=0;
5429 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5436 $as_echo "$enabled" >&6; }
5437 # Make sure that we can use draft API in ICU.
5438 if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
5439 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API"
5443 if test -n "$ac_tool_prefix"; then
5444 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5445 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_prog_RANLIB+:} false
; then :
5449 $as_echo_n "(cached) " >&6
5451 if test -n "$RANLIB"; then
5452 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5454 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5458 test -z "$as_dir" && as_dir
=.
5459 for ac_exec_ext
in '' $ac_executable_extensions; do
5460 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5461 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 RANLIB
=$ac_cv_prog_RANLIB
5472 if test -n "$RANLIB"; then
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5474 $as_echo "$RANLIB" >&6; }
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5482 if test -z "$ac_cv_prog_RANLIB"; then
5483 ac_ct_RANLIB
=$RANLIB
5484 # Extract the first word of "ranlib", so it can be a program name with args.
5485 set dummy ranlib
; ac_word
=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5489 $as_echo_n "(cached) " >&6
5491 if test -n "$ac_ct_RANLIB"; then
5492 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir
=.
5499 for ac_exec_ext
in '' $ac_executable_extensions; do
5500 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5512 if test -n "$ac_ct_RANLIB"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5514 $as_echo "$ac_ct_RANLIB" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5520 if test "x$ac_ct_RANLIB" = x
; then
5523 case $cross_compiling:$ac_tool_warned in
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527 ac_tool_warned
=yes ;;
5529 RANLIB
=$ac_ct_RANLIB
5532 RANLIB
="$ac_cv_prog_RANLIB"
5536 # look for 'ar' the proper way
5537 if test -n "$ac_tool_prefix"; then
5538 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5539 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if ${ac_cv_prog_AR+:} false
; then :
5543 $as_echo_n "(cached) " >&6
5545 if test -n "$AR"; then
5546 ac_cv_prog_AR
="$AR" # Let the user override the test.
5548 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir
=.
5553 for ac_exec_ext
in '' $ac_executable_extensions; do
5554 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5555 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 if test -n "$AR"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5568 $as_echo "$AR" >&6; }
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5576 if test -z "$ac_cv_prog_AR"; then
5578 # Extract the first word of "ar", so it can be a program name with args.
5579 set dummy
ar; ac_word
=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5583 $as_echo_n "(cached) " >&6
5585 if test -n "$ac_ct_AR"; then
5586 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5592 test -z "$as_dir" && as_dir
=.
5593 for ac_exec_ext
in '' $ac_executable_extensions; do
5594 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_ac_ct_AR
="ar"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5606 if test -n "$ac_ct_AR"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5608 $as_echo "$ac_ct_AR" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5614 if test "x$ac_ct_AR" = x
; then
5617 case $cross_compiling:$ac_tool_warned in
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621 ac_tool_warned
=yes ;;
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5
5631 $as_echo_n "checking whether to enable renaming of symbols... " >&6; }
5633 U_DISABLE_RENAMING
=0
5634 # Check whether --enable-renaming was given.
5635 if test "${enable_renaming+set}" = set; then :
5636 enableval
=$enable_renaming; case "${enableval}" in
5637 yes|"") enabled
=yes ;;
5638 no
) enabled
=no
; U_DISABLE_RENAMING
=1;
5639 UCONFIG_CPPFLAGS
="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5646 $as_echo "$enabled" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5
5650 $as_echo_n "checking whether to enable function and data tracing... " >&6; }
5653 # Check whether --enable-tracing was given.
5654 if test "${enable_tracing+set}" = set; then :
5655 enableval
=$enable_tracing; case "${enableval}" in
5656 yes|"") enabled
=yes;
5657 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
5658 U_ENABLE_TRACING
=1 ;;
5659 no
) enabled
=no
; U_ENABLE_TRACING
=0 ;;
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5665 $as_echo "$enabled" >&6; }
5668 # check if elf.h is present.
5669 for ac_header
in elf.h
5671 ac_fn_c_check_header_mongrel
"$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
5672 if test "x$ac_cv_header_elf_h" = xyes
; then :
5673 cat >>confdefs.h
<<_ACEOF
5674 #define HAVE_ELF_H 1
5681 if test "x$ac_cv_header_elf_h" = "xyes"; then
5682 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5
5688 $as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; }
5689 # Check whether --enable-dyload was given.
5690 if test "${enable_dyload+set}" = set; then :
5691 enableval
=$enable_dyload; case "${enableval}" in
5699 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5
5706 $as_echo "$enable" >&6; }
5709 if test "$enable" = "yes"; then
5710 for ac_header
in dlfcn.h
5712 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5713 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5714 cat >>confdefs.h
<<_ACEOF
5715 #define HAVE_DLFCN_H 1
5722 #AC_MSG_RESULT($enabled)
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5724 $as_echo_n "checking for library containing dlopen... " >&6; }
5725 if ${ac_cv_search_dlopen+:} false
; then :
5726 $as_echo_n "(cached) " >&6
5728 ac_func_search_save_LIBS
=$LIBS
5729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5730 /* end confdefs.h. */
5732 /* Override any GCC internal prototype to avoid an error.
5733 Use char because int might match the return type of a GCC
5734 builtin and then its argument prototype would still apply. */
5747 for ac_lib
in '' dl
; do
5748 if test -z "$ac_lib"; then
5749 ac_res
="none required"
5752 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5754 if ac_fn_c_try_link
"$LINENO"; then :
5755 ac_cv_search_dlopen
=$ac_res
5757 rm -f core conftest.err conftest.
$ac_objext \
5759 if ${ac_cv_search_dlopen+:} false
; then :
5763 if ${ac_cv_search_dlopen+:} false
; then :
5766 ac_cv_search_dlopen
=no
5769 LIBS
=$ac_func_search_save_LIBS
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5772 $as_echo "$ac_cv_search_dlopen" >&6; }
5773 ac_res
=$ac_cv_search_dlopen
5774 if test "$ac_res" != no
; then :
5775 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5779 for ac_func
in dlopen
5781 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5782 if test "x$ac_cv_func_dlopen" = xyes
; then :
5783 cat >>confdefs.h
<<_ACEOF
5784 #define HAVE_DLOPEN 1
5791 if test "x$ac_cv_func_dlopen" != xyes
; then
5792 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
5796 # Check for miscellanous functions.
5797 # So, use for putil / tools only.
5798 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
5799 for ac_func
in gettimeofday
5801 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5802 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
5803 cat >>confdefs.h
<<_ACEOF
5804 #define HAVE_GETTIMEOFDAY 1
5812 # Check whether to use the evil rpath or not
5813 # Check whether --enable-rpath was given.
5814 if test "${enable_rpath+set}" = set; then :
5815 enableval
=$enable_rpath; case "${enableval}" in
5816 yes|"") ENABLE_RPATH
=YES
;;
5830 ac_cpp
='$CXXCPP $CPPFLAGS'
5831 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5832 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5833 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5
5836 $as_echo_n "checking if we have a C++ compiler... " >&6; }
5837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5848 if ac_fn_cxx_try_compile
"$LINENO"; then :
5853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5854 if test $cxx_okay = yes
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5
5857 $as_echo "Good" >&6; }
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5860 $as_echo "no" >&6; }
5861 as_fn_error $?
"C++ compiler $CXX does not work or no compiler found" "$LINENO" 5
5864 if [ "$GXX" = yes ]; then
5865 # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++0x,
5866 # and check that the compiler still works.
5867 if ! echo "$CXXFLAGS" | grep '\-std=' >/dev
/null
2>&1; then
5868 OLD_CXXFLAGS
="${CXXFLAGS}"
5869 CXXFLAGS
="$CXXFLAGS --std=c++0x"
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++11 compiler" >&5
5871 $as_echo_n "checking if we have a C++11 compiler... " >&6; }
5872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5873 /* end confdefs.h. */
5883 if ac_fn_cxx_try_compile
"$LINENO"; then :
5888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx11_okay" >&5
5890 $as_echo "$cxx11_okay" >&6; }
5891 if [ $cxx11_okay = yes ]; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option --std=c++0x" >&5
5893 $as_echo "$as_me: Adding CXXFLAGS option --std=c++0x" >&6;}
5894 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} --std=c++0x"
5896 CXXFLAGS
="$OLD_CXXFLAGS"
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5
5902 $as_echo_n "checking if #include <string> works... " >&6; }
5903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5904 /* end confdefs.h. */
5914 if ac_fn_cxx_try_compile
"$LINENO"; then :
5915 ac_cv_header_stdstring
=yes
5917 ac_cv_header_stdstring
=no
5919 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5
5921 $as_echo "$ac_cv_header_stdstring" >&6; }
5922 if test $ac_cv_header_stdstring = yes
5927 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <atomic> works" >&5
5933 $as_echo_n "checking if #include <atomic> works... " >&6; }
5934 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5945 if ac_fn_cxx_try_compile
"$LINENO"; then :
5946 ac_cv_header_atomic
=yes
5948 ac_cv_header_atomic
=no
5950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_atomic" >&5
5952 $as_echo "$ac_cv_header_atomic" >&6; }
5953 if test $ac_cv_header_atomic = yes
5959 # Make this available via CPPFLAGS
5960 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}"
5964 ac_cpp
='$CPP $CPPFLAGS'
5965 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5966 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5967 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5970 # Always build ICU with multi-threading support.
5975 if test $threads = true
; then
5976 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
5977 # and must do this before seaching for pthread_mutex_destroy, or
5978 # we will pick up libpthreads.so not libpthread.so
5979 # If this fails, then we must test for HPUX specials, before
5980 # moving on to a more generic test
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
5983 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
5984 if ${ac_cv_lib_pthread_pthread_attr_init+:} false
; then :
5985 $as_echo_n "(cached) " >&6
5987 ac_check_lib_save_LIBS
=$LIBS
5988 LIBS
="-lpthread $LIBS"
5989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5990 /* end confdefs.h. */
5992 /* Override any GCC internal prototype to avoid an error.
5993 Use char because int might match the return type of a GCC
5994 builtin and then its argument prototype would still apply. */
5998 char pthread_attr_init ();
6002 return pthread_attr_init ();
6007 if ac_fn_c_try_link
"$LINENO"; then :
6008 ac_cv_lib_pthread_pthread_attr_init
=yes
6010 ac_cv_lib_pthread_pthread_attr_init
=no
6012 rm -f core conftest.err conftest.
$ac_objext \
6013 conftest
$ac_exeext conftest.
$ac_ext
6014 LIBS
=$ac_check_lib_save_LIBS
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
6017 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
6018 if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes
; then :
6019 cat >>confdefs.h
<<_ACEOF
6020 #define HAVE_LIBPTHREAD 1
6023 LIBS
="-lpthread $LIBS"
6027 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
6030 # Locate the right library for POSIX threads. We look for the
6031 # symbols in the libraries first, because on Solaris libc provides
6032 # pthread_create but libpthread has the real code :(
6033 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
6034 # FreeBSD users may need libpthread if they do not have libc_r.
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5
6038 $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; }
6039 if ${ac_cv_search_pthread_mutex_destroy+:} false
; then :
6040 $as_echo_n "(cached) " >&6
6042 ac_func_search_save_LIBS
="$LIBS"
6043 ac_cv_search_pthread_mutex_destroy
="no"
6044 for i
in pthread pthreads c_r
; do
6045 LIBS
="-l$i $ac_func_search_save_LIBS"
6046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6047 /* end confdefs.h. */
6049 /* Override any GCC internal prototype to avoid an error.
6050 Use char because int might match the return type of a GCC
6051 builtin and then its argument prototype would still apply. */
6055 char pthread_mutex_destroy ();
6059 return pthread_mutex_destroy ();
6064 if ac_fn_c_try_link
"$LINENO"; then :
6065 ac_cv_search_pthread_mutex_destroy
="-l$i"
6068 rm -f core conftest.err conftest.
$ac_objext \
6069 conftest
$ac_exeext conftest.
$ac_ext
6071 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
6072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6075 /* Override any GCC internal prototype to avoid an error.
6076 Use char because int might match the return type of a GCC
6077 builtin and then its argument prototype would still apply. */
6081 char pthread_mutex_destroy ();
6085 return pthread_mutex_destroy ();
6090 if ac_fn_c_try_link
"$LINENO"; then :
6091 ac_cv_search_pthread_mutex_destroy
="none required"
6093 rm -f core conftest.err conftest.
$ac_objext \
6094 conftest
$ac_exeext conftest.
$ac_ext
6096 LIBS
="$ac_func_search_save_LIBS"
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5
6099 $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; }
6100 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
6101 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS
="$ac_cv_search_pthread_mutex_destroy $LIBS"
6107 if test "$ac_cv_search_pthread_mutex_destroy" != no
; then
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
6112 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
6113 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false
; then :
6114 $as_echo_n "(cached) " >&6
6116 ac_check_lib_save_LIBS
=$LIBS
6117 LIBS
="-lpthread $LIBS"
6118 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6119 /* end confdefs.h. */
6121 /* Override any GCC internal prototype to avoid an error.
6122 Use char because int might match the return type of a GCC
6123 builtin and then its argument prototype would still apply. */
6127 char pthread_mutex_init ();
6131 return pthread_mutex_init ();
6136 if ac_fn_c_try_link
"$LINENO"; then :
6137 ac_cv_lib_pthread_pthread_mutex_init
=yes
6139 ac_cv_lib_pthread_pthread_mutex_init
=no
6141 rm -f core conftest.err conftest.
$ac_objext \
6142 conftest
$ac_exeext conftest.
$ac_ext
6143 LIBS
=$ac_check_lib_save_LIBS
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6146 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6147 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
; then :
6148 cat >>confdefs.h
<<_ACEOF
6149 #define HAVE_LIBPTHREAD 1
6152 LIBS
="-lpthread $LIBS"
6156 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
6161 ac_fn_c_check_func
"$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
6162 if test "x$ac_cv_func_pthread_mutex_lock" = xyes
; then :
6167 if test $ac_cv_func_pthread_mutex_lock = yes; then
6171 # Check to see if we are using CygWin with MSVC
6173 *-pc-cygwin*|*-pc-mingw*)
6174 # For gcc, the thread options are set by mh-mingw/mh-cygwin
6175 # For msvc, the thread options are set by runConfigureICU
6179 # Add -mt because it does several nice things on newer compilers.
6180 case "${icu_cv_host_frag}" in
6182 OLD_CXXFLAGS
="${CXXFLAGS}"
6183 CXXFLAGS
="${CXXFLAGS} -mt"
6184 if test x
"`${CXX} ${CXXFLAGS} 2>&1`" != x
""; then
6185 CXXFLAGS
="${OLD_CXXFLAGS}"
6187 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} -mt"
6193 case "${icu_cv_host_frag}" in
6202 # Check whether --enable-weak-threads was given.
6203 if test "${enable_weak_threads+set}" = set; then :
6204 enableval
=$enable_weak_threads; case "${enableval}" in
6206 LIB_THREAD
="${LIBS%${OLD_LIBS}}"
6210 *) as_fn_error $?
"bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;;
6218 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
6219 # Do this check instead.
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
6222 $as_echo_n "checking for mmap... " >&6; }
6223 if ${ac_cv_func_mmap_ok+:} false
; then :
6224 $as_echo_n "(cached) " >&6
6226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6227 /* end confdefs.h. */
6229 #include <sys/mman.h>
6230 #include <sys/stat.h>
6235 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
6240 if ac_fn_c_try_link
"$LINENO"; then :
6241 ac_cv_func_mmap_ok
=yes
6243 ac_cv_func_mmap_ok
=no
6245 rm -f core conftest.err conftest.
$ac_objext \
6246 conftest
$ac_exeext conftest.
$ac_ext
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
6250 $as_echo "$ac_cv_func_mmap_ok" >&6; }
6251 if test $ac_cv_func_mmap_ok = yes
6255 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5
6260 $as_echo_n "checking for genccode assembly... " >&6; }
6262 # Check to see if genccode can generate simple assembly.
6265 *-linux*|*-kfreebsd*-gnu*|i
*86-*-*bsd
*|i
*86-pc-gnu)
6266 if test "$GCC" = yes; then
6267 # We're using gcc, and the simple -a gcc command line works for genccode
6268 GENCCODE_ASSEMBLY
="-a gcc"
6271 if test "$GCC" = yes; then
6272 # When using gcc, look if we're also using GNU as.
6273 # When using GNU as, the simple -a gcc command line works for genccode.
6274 asv
=`"${CC}" -print-prog-name=as 2>/dev/null`
6275 asv
=`"${asv}" --version 2>/dev/null`
6277 X
*GNU
*) GENCCODE_ASSEMBLY
="-a gcc" ;;
6278 X
*) GENCCODE_ASSEMBLY
="-a sun-x86" ;;
6282 GENCCODE_ASSEMBLY
="-a sun-x86"
6285 GENCCODE_ASSEMBLY
="-a sun"
6288 GENCCODE_ASSEMBLY
="-a aCC-ia64"
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5
6294 $as_echo "$GENCCODE_ASSEMBLY" >&6; }
6296 # Checks for header files
6297 for ac_header
in inttypes.h
6299 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6300 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
6301 cat >>confdefs.h
<<_ACEOF
6302 #define HAVE_INTTYPES_H 1
6309 if test $ac_cv_header_inttypes_h = no
; then
6311 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6315 if test "$CC" = ccc
; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5
6317 $as_echo "\"C compiler set to CCC ${CC}\" " >&6; }
6319 alpha
*-*-*) U_HAVE_INTTYPES_H
=0;
6320 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6326 for ac_header
in dirent.h
6328 ac_fn_c_check_header_mongrel
"$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
6329 if test "x$ac_cv_header_dirent_h" = xyes
; then :
6330 cat >>confdefs.h
<<_ACEOF
6331 #define HAVE_DIRENT_H 1
6338 if test $ac_cv_header_dirent_h = no
; then
6340 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
6347 # Check for endianness
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6349 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6350 if ${ac_cv_c_bigendian+:} false
; then :
6351 $as_echo_n "(cached) " >&6
6353 ac_cv_c_bigendian
=unknown
6354 # See if we're dealing with a universal compiler.
6355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6356 /* end confdefs.h. */
6357 #ifndef __APPLE_CC__
6358 not a universal capable compiler
6363 if ac_fn_c_try_compile
"$LINENO"; then :
6365 # Check for potential -arch flags. It is not universal unless
6366 # there are at least two -arch flags with different values.
6369 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6370 if test -n "$ac_prev"; then
6372 i?
86 | x86_64
| ppc
| ppc64
)
6373 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6376 ac_cv_c_bigendian
=universal
6382 elif test "x$ac_word" = "x-arch"; then
6387 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6388 if test $ac_cv_c_bigendian = unknown
; then
6389 # See if sys/param.h defines the BYTE_ORDER macro.
6390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6391 /* end confdefs.h. */
6392 #include <sys/types.h>
6393 #include <sys/param.h>
6398 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6399 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6408 if ac_fn_c_try_compile
"$LINENO"; then :
6409 # It does; now see whether it defined to BIG_ENDIAN or not.
6410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6411 /* end confdefs.h. */
6412 #include <sys/types.h>
6413 #include <sys/param.h>
6418 #if BYTE_ORDER != BIG_ENDIAN
6426 if ac_fn_c_try_compile
"$LINENO"; then :
6427 ac_cv_c_bigendian
=yes
6429 ac_cv_c_bigendian
=no
6431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6435 if test $ac_cv_c_bigendian = unknown
; then
6436 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6444 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6452 if ac_fn_c_try_compile
"$LINENO"; then :
6453 # It does; now see whether it defined to _BIG_ENDIAN or not.
6454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6469 if ac_fn_c_try_compile
"$LINENO"; then :
6470 ac_cv_c_bigendian
=yes
6472 ac_cv_c_bigendian
=no
6474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6478 if test $ac_cv_c_bigendian = unknown
; then
6479 # Compile a test program.
6480 if test "$cross_compiling" = yes; then :
6481 # Try to guess by grepping values from an object file.
6482 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6484 short int ascii_mm[] =
6485 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6486 short int ascii_ii[] =
6487 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6488 int use_ascii (int i) {
6489 return ascii_mm[i] + ascii_ii[i];
6491 short int ebcdic_ii[] =
6492 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6493 short int ebcdic_mm[] =
6494 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6495 int use_ebcdic (int i) {
6496 return ebcdic_mm[i] + ebcdic_ii[i];
6503 return use_ascii (foo) == use_ebcdic (foo);
6508 if ac_fn_c_try_compile
"$LINENO"; then :
6509 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6510 ac_cv_c_bigendian
=yes
6512 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6513 if test "$ac_cv_c_bigendian" = unknown
; then
6514 ac_cv_c_bigendian
=no
6516 # finding both strings is unlikely to happen, but who knows?
6517 ac_cv_c_bigendian
=unknown
6521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6525 $ac_includes_default
6530 /* Are we little or big endian? From Harbison&Steele. */
6534 char c[sizeof (long int)];
6537 return u.c[sizeof (long int) - 1] == 1;
6543 if ac_fn_c_try_run
"$LINENO"; then :
6544 ac_cv_c_bigendian
=no
6546 ac_cv_c_bigendian
=yes
6548 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6549 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6555 $as_echo "$ac_cv_c_bigendian" >&6; }
6556 case $ac_cv_c_bigendian in #(
6558 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6564 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6568 as_fn_error $?
"unknown endianness
6569 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6572 if test $ac_cv_c_bigendian = no
; then
6581 # Do various POSIX related checks
6582 U_HAVE_NL_LANGINFO_CODESET
=0
6583 U_NL_LANGINFO_CODESET
=-1
6584 ac_fn_c_check_func
"$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6585 if test "x$ac_cv_func_nl_langinfo" = xyes
; then :
6586 U_HAVE_NL_LANGINFO
=1
6588 U_HAVE_NL_LANGINFO
=0
6591 if test $U_HAVE_NL_LANGINFO -eq 1; then
6592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5
6593 $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
6594 if ${ac_cv_nl_langinfo_codeset+:} false
; then :
6595 $as_echo_n "(cached) " >&6
6597 ac_cv_nl_langinfo_codeset
="unknown"
6598 for a
in CODESET _NL_CTYPE_CODESET_NAME
; do
6599 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6600 /* end confdefs.h. */
6601 #include <langinfo.h>
6610 if ac_fn_c_try_link
"$LINENO"; then :
6611 ac_cv_nl_langinfo_codeset
="$a"; break
6613 rm -f core conftest.err conftest.
$ac_objext \
6614 conftest
$ac_exeext conftest.
$ac_ext
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5
6618 $as_echo "$ac_cv_nl_langinfo_codeset" >&6; }
6619 if test x
$ac_cv_nl_langinfo_codeset != xunknown
6621 U_HAVE_NL_LANGINFO_CODESET
=1
6622 U_NL_LANGINFO_CODESET
=$ac_cv_nl_langinfo_codeset
6623 if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET"
6625 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
6628 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
6634 # Namespace support checks
6636 ac_cpp
='$CXXCPP $CPPFLAGS'
6637 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6638 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6639 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5
6642 $as_echo_n "checking for namespace support... " >&6; }
6643 if ${ac_cv_namespace_ok+:} false
; then :
6644 $as_echo_n "(cached) " >&6
6646 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648 namespace x_version {void f(){}}
6649 namespace x = x_version;
6650 using namespace x_version;
6660 if ac_fn_cxx_try_link
"$LINENO"; then :
6661 ac_cv_namespace_ok
=yes
6663 ac_cv_namespace_ok
=no
6665 rm -f core conftest.err conftest.
$ac_objext \
6666 conftest
$ac_exeext conftest.
$ac_ext
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5
6670 $as_echo "$ac_cv_namespace_ok" >&6; }
6671 if test $ac_cv_namespace_ok = no
6673 as_fn_error $?
"Namespace support is required to build ICU." "$LINENO" 5
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5
6677 $as_echo_n "checking for properly overriding new and delete... " >&6; }
6678 U_OVERRIDE_CXX_ALLOCATION
=0
6679 U_HAVE_PLACEMENT_NEW
=0
6680 if ${ac_cv_override_cxx_allocation_ok+:} false
; then :
6681 $as_echo_n "(cached) " >&6
6683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6684 /* end confdefs.h. */
6688 void *operator new(size_t size) {return malloc(size);}
6689 void *operator new[](size_t size) {return malloc(size);}
6690 void operator delete(void *p) {free(p);}
6691 void operator delete[](void *p) {free(p);}
6702 if ac_fn_cxx_try_link
"$LINENO"; then :
6703 ac_cv_override_cxx_allocation_ok
=yes
6705 ac_cv_override_cxx_allocation_ok
=no
6707 rm -f core conftest.err conftest.
$ac_objext \
6708 conftest
$ac_exeext conftest.
$ac_ext
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5
6712 $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; }
6713 if test $ac_cv_override_cxx_allocation_ok = yes
6715 U_OVERRIDE_CXX_ALLOCATION
=1
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5
6717 $as_echo_n "checking for placement new and delete... " >&6; }
6718 if ${ac_cv_override_placement_new_ok+:} false
; then :
6719 $as_echo_n "(cached) " >&6
6721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6726 void *operator new(size_t size) {return malloc(size);}
6727 void *operator new[](size_t size) {return malloc(size);}
6728 void operator delete(void *p) {free(p);}
6729 void operator delete[](void *p) {free(p);}
6730 void * operator new(size_t, void *ptr) { return ptr; }
6731 void operator delete(void *, void *) {}
6742 if ac_fn_cxx_try_link
"$LINENO"; then :
6743 ac_cv_override_placement_new_ok
=yes
6745 ac_cv_override_placement_new_ok
=no
6747 rm -f core conftest.err conftest.
$ac_objext \
6748 conftest
$ac_exeext conftest.
$ac_ext
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5
6752 $as_echo "$ac_cv_override_placement_new_ok" >&6; }
6753 if test $ac_cv_override_placement_new_ok = yes
6755 U_HAVE_PLACEMENT_NEW
=1
6757 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
6760 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
6766 ac_cpp
='$CPP $CPPFLAGS'
6767 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6771 ac_fn_c_check_func
"$LINENO" "popen" "ac_cv_func_popen"
6772 if test "x$ac_cv_func_popen" = xyes
; then :
6776 if test x
$ac_cv_func_popen = xyes
6780 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
6785 ac_fn_c_check_func
"$LINENO" "tzset" "ac_cv_func_tzset"
6786 if test "x$ac_cv_func_tzset" = xyes
; then :
6791 if test x
$ac_cv_func_tzset = xyes
6796 ac_fn_c_check_func
"$LINENO" "_tzset" "ac_cv_func__tzset"
6797 if test "x$ac_cv_func__tzset" = xyes
; then :
6801 if test x
$ac_cv_func__tzset = xyes
6806 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6814 $as_echo_n "checking for tzname... " >&6; }
6815 if ${ac_cv_var_tzname+:} false
; then :
6816 $as_echo_n "(cached) " >&6
6818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6819 /* end confdefs.h. */
6825 #ifndef tzname /* For SGI. */
6826 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6836 if ac_fn_c_try_link
"$LINENO"; then :
6837 ac_cv_var_tzname
=yes
6841 rm -f core conftest.err conftest.
$ac_objext \
6842 conftest
$ac_exeext conftest.
$ac_ext
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6845 $as_echo "$ac_cv_var_tzname" >&6; }
6846 if test $ac_cv_var_tzname = yes; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
6851 $as_echo_n "checking for _tzname... " >&6; }
6852 if ${ac_cv_var__tzname+:} false
; then :
6853 $as_echo_n "(cached) " >&6
6855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6856 /* end confdefs.h. */
6859 extern char *_tzname[];
6868 if ac_fn_c_try_link
"$LINENO"; then :
6869 ac_cv_var__tzname
=yes
6871 ac_cv_var__tzname
=no
6873 rm -f core conftest.err conftest.
$ac_objext \
6874 conftest
$ac_exeext conftest.
$ac_ext
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5
6877 $as_echo "$ac_cv_var__tzname" >&6; }
6878 if test $ac_cv_var__tzname = yes; then
6882 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
6889 $as_echo_n "checking for timezone... " >&6; }
6890 if ${ac_cv_var_timezone+:} false
; then :
6891 $as_echo_n "(cached) " >&6
6893 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6894 /* end confdefs.h. */
6911 if ac_fn_c_try_link
"$LINENO"; then :
6912 ac_cv_var_timezone
=yes
6914 ac_cv_var_timezone
=no
6916 rm -f core conftest.err conftest.
$ac_objext \
6917 conftest
$ac_exeext conftest.
$ac_ext
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
6920 $as_echo "$ac_cv_var_timezone" >&6; }
6922 if test $ac_cv_var_timezone = yes; then
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
6927 $as_echo_n "checking for __timezone... " >&6; }
6928 if ${ac_cv_var___timezone+:} false
; then :
6929 $as_echo_n "(cached) " >&6
6931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6942 if ac_fn_c_try_link
"$LINENO"; then :
6943 ac_cv_var___timezone
=yes
6945 ac_cv_var___timezone
=no
6947 rm -f core conftest.err conftest.
$ac_objext \
6948 conftest
$ac_exeext conftest.
$ac_ext
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5
6951 $as_echo "$ac_cv_var___timezone" >&6; }
6952 if test $ac_cv_var___timezone = yes; then
6953 U_TIMEZONE
=__timezone
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5
6957 $as_echo_n "checking for _timezone... " >&6; }
6958 if ${ac_cv_var__timezone+:} false
; then :
6959 $as_echo_n "(cached) " >&6
6961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6972 if ac_fn_c_try_link
"$LINENO"; then :
6973 ac_cv_var__timezone
=yes
6975 ac_cv_var__timezone
=no
6977 rm -f core conftest.err conftest.
$ac_objext \
6978 conftest
$ac_exeext conftest.
$ac_ext
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
6981 $as_echo "$ac_cv_var__timezone" >&6; }
6982 if test $ac_cv_var__timezone = yes; then
6983 U_TIMEZONE
=_timezone
6986 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
6993 # Checks for typedefs
6994 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
6995 if test "x$ac_cv_type_int8_t" = xyes
; then :
6999 cat >>confdefs.h
<<_ACEOF
7000 #define int8_t signed char
7005 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
7006 if test "x$ac_cv_type_uint8_t" = xyes
; then :
7010 cat >>confdefs.h
<<_ACEOF
7011 #define uint8_t unsigned char
7016 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
7017 if test "x$ac_cv_type_int16_t" = xyes
; then :
7021 cat >>confdefs.h
<<_ACEOF
7022 #define int16_t signed short
7027 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
7028 if test "x$ac_cv_type_uint16_t" = xyes
; then :
7032 cat >>confdefs.h
<<_ACEOF
7033 #define uint16_t unsigned short
7038 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
7039 if test "x$ac_cv_type_int32_t" = xyes
; then :
7043 cat >>confdefs.h
<<_ACEOF
7044 #define int32_t signed long
7049 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
7050 if test "x$ac_cv_type_uint32_t" = xyes
; then :
7054 cat >>confdefs.h
<<_ACEOF
7055 #define uint32_t unsigned long
7060 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
7061 if test "x$ac_cv_type_int64_t" = xyes
; then :
7065 cat >>confdefs.h
<<_ACEOF
7066 #define int64_t signed long long
7071 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
7072 if test "x$ac_cv_type_uint64_t" = xyes
; then :
7076 cat >>confdefs.h
<<_ACEOF
7077 #define uint64_t unsigned long long
7083 if test $ac_cv_type_int8_t = no
; then
7084 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
7087 if test $ac_cv_type_uint8_t = no
; then
7088 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
7091 if test $ac_cv_type_int16_t = no
; then
7092 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
7095 if test $ac_cv_type_uint16_t = no
; then
7096 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
7099 if test $ac_cv_type_int32_t = no
; then
7100 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
7103 if test $ac_cv_type_uint32_t = no
; then
7104 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
7107 if test $ac_cv_type_int64_t = no
; then
7108 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
7111 if test $ac_cv_type_uint64_t = no
; then
7112 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
7115 # Do various wchar_t related checks
7116 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
7117 if test "x$ac_cv_header_wchar_h" = xyes
; then :
7122 if test "$ac_cv_header_wchar_h" = no
7126 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
7129 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
7132 # Some broken systems have wchar.h but not some of its functions...
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5
7134 $as_echo_n "checking for library containing wcscpy... " >&6; }
7135 if ${ac_cv_search_wcscpy+:} false
; then :
7136 $as_echo_n "(cached) " >&6
7138 ac_func_search_save_LIBS
=$LIBS
7139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7140 /* end confdefs.h. */
7142 /* Override any GCC internal prototype to avoid an error.
7143 Use char because int might match the return type of a GCC
7144 builtin and then its argument prototype would still apply. */
7157 for ac_lib
in '' wcs w
; do
7158 if test -z "$ac_lib"; then
7159 ac_res
="none required"
7162 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7164 if ac_fn_c_try_link
"$LINENO"; then :
7165 ac_cv_search_wcscpy
=$ac_res
7167 rm -f core conftest.err conftest.
$ac_objext \
7169 if ${ac_cv_search_wcscpy+:} false
; then :
7173 if ${ac_cv_search_wcscpy+:} false
; then :
7176 ac_cv_search_wcscpy
=no
7179 LIBS
=$ac_func_search_save_LIBS
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
7182 $as_echo "$ac_cv_search_wcscpy" >&6; }
7183 ac_res
=$ac_cv_search_wcscpy
7184 if test "$ac_res" != no
; then :
7185 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7189 if test "$ac_cv_search_wcscpy" != no
; then
7193 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
7199 # The cast to long int works around a bug in the HP C Compiler
7200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7202 # This bug is HP SR number 8606223364.
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
7204 $as_echo_n "checking size of wchar_t... " >&6; }
7205 if ${ac_cv_sizeof_wchar_t+:} false
; then :
7206 $as_echo_n "(cached) " >&6
7208 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "
7220 if test "$ac_cv_type_wchar_t" = yes; then
7221 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7222 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7223 as_fn_error
77 "cannot compute sizeof (wchar_t)
7224 See \`config.log' for more details" "$LINENO" 5; }
7226 ac_cv_sizeof_wchar_t
=0
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
7232 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
7236 cat >>confdefs.h
<<_ACEOF
7237 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
7241 U_SIZEOF_WCHAR_T
=$ac_cv_sizeof_wchar_t
7242 # We do this check to verify that everything is okay.
7243 if test $U_SIZEOF_WCHAR_T = 0; then
7244 if test $U_HAVE_WCHAR_H=1; then
7245 as_fn_error $?
"There is wchar.h but the size of wchar_t is 0" "$LINENO" 5
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5
7250 $as_echo_n "checking for UTF-16 string literal support... " >&6; }
7251 U_CHECK_UTF16_STRING
=1
7252 CHECK_UTF16_STRING_RESULT
="unknown"
7255 *-*-aix*|powerpc64
-*-linux*)
7256 if test "$GCC" = no
; then
7257 OLD_CFLAGS
="${CFLAGS}"
7258 OLD_CXXFLAGS
="${CXXFLAGS}"
7259 CFLAGS
="${CFLAGS} -qutf"
7260 CXXFLAGS
="${CXXFLAGS} -qutf"
7261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7262 /* end confdefs.h. */
7263 const unsigned short hello[] = u"hello";
7272 if ac_fn_c_try_compile
"$LINENO"; then :
7273 U_CHECK_UTF16_STRING
=1
7275 U_CHECK_UTF16_STRING
=0
7277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7278 if test "$U_CHECK_UTF16_STRING" = 0; then
7279 CFLAGS
="${OLD_CFLAGS}"
7280 CXXFLAGS
="${OLD_CXXFLAGS}"
7282 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} -qutf"
7283 CHECK_UTF16_STRING_RESULT
="-qutf"
7288 if test "$GCC" = no
; then
7289 OLD_CFLAGS
="${CFLAGS}"
7290 OLD_CXXFLAGS
="${CXXFLAGS}"
7291 CFLAGS
="${CFLAGS} -xustr=ascii_utf16_ushort"
7292 CXXFLAGS
="${CXXFLAGS} -xustr=ascii_utf16_ushort"
7293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7294 /* end confdefs.h. */
7295 const unsigned short hello[] = U"hello";
7304 if ac_fn_c_try_compile
"$LINENO"; then :
7305 U_CHECK_UTF16_STRING
=1
7307 U_CHECK_UTF16_STRING
=0
7309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7310 if test "$U_CHECK_UTF16_STRING" = 0; then
7311 CFLAGS
="${OLD_CFLAGS}"
7312 CXXFLAGS
="${OLD_CXXFLAGS}"
7314 CHECK_UTF16_STRING_RESULT
="-xustr=ascii_utf16_ushort"
7315 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort"
7316 UCONFIG_CFLAGS
="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort"
7317 # Since we can't detect the availability of this UTF-16 syntax at compile time,
7318 # we depend on configure telling us that we can use it.
7319 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
7320 # we only use this macro within ICU.
7321 # If an ICU user uses icu-config, this feature will be enabled.
7322 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
7323 U_CHECK_UTF16_STRING
=0
7328 if test "$GCC" = no
; then
7329 # The option will be detected at compile time without additional compiler options.
7330 CHECK_UTF16_STRING_RESULT
="available"
7334 # wchar_t can be used
7335 CHECK_UTF16_STRING_RESULT
="available"
7341 # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future.
7342 if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
7343 if test "$GCC" = yes; then
7344 OLD_CFLAGS
="${CFLAGS}"
7345 CFLAGS
="${CFLAGS} -std=gnu99"
7346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7347 /* end confdefs.h. */
7349 static const char16_t test[] = u"This is a UTF16 literal string.";
7359 if ac_fn_c_try_compile
"$LINENO"; then :
7364 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7365 if test "$CC_UTF16_STRING" = 1; then
7366 UCONFIG_CFLAGS
="${UCONFIG_CFLAGS} -std=gnu99"
7367 CHECK_UTF16_STRING_RESULT
="C only";
7369 CFLAGS
="${OLD_CFLAGS}"
7372 if test "$GXX" = yes; then
7373 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
7375 ac_cpp
='$CXXCPP $CPPFLAGS'
7376 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7380 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7381 /* end confdefs.h. */
7383 static const char16_t test[] = u"This is a UTF16 literal string.";
7393 if ac_fn_cxx_try_compile
"$LINENO"; then :
7398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7400 ac_cpp
='$CPP $CPPFLAGS'
7401 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7405 if test "$CXX_UTF16_STRING" = 1; then
7406 if test "$CC_UTF16_STRING" = 1; then
7407 CHECK_UTF16_STRING_RESULT
="available";
7409 CHECK_UTF16_STRING_RESULT
="C++ only";
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5
7415 $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; }
7417 # Enable/disable extras
7418 # Check whether --enable-extras was given.
7419 if test "${enable_extras+set}" = set; then :
7420 enableval
=$enable_extras; case "${enableval}" in
7423 *) as_fn_error $?
"bad value ${enableval} for --enable-extras" "$LINENO" 5 ;;
7430 if test "$extras" = true
; then
7435 # Check whether --enable-icuio was given.
7436 if test "${enable_icuio+set}" = set; then :
7437 enableval
=$enable_icuio; case "${enableval}" in
7440 *) as_fn_error $?
"bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;;
7447 if test "$icuio" = true
; then
7453 # Enable/disable layout
7454 # Check whether --enable-layout was given.
7455 if test "${enable_layout+set}" = set; then :
7456 enableval
=$enable_layout; case "${enableval}" in
7459 *) as_fn_error $?
"bad value ${enableval} for --enable-layout" "$LINENO" 5 ;;
7466 if test "$layout" = true
; then
7472 # Enable/disable layoutex
7473 # Check whether --enable-layoutex was given.
7474 if test "${enable_layoutex+set}" = set; then :
7475 enableval
=$enable_layoutex; case "${enableval}" in
7476 yes) layoutex
=true
;;
7477 no
) layoutex
=false
;;
7478 *) as_fn_error $?
"bad value ${enableval} for --enable-layoutex" "$LINENO" 5 ;;
7485 if test "$layoutex" = true
; then
7491 # Enable/disable tools
7492 # Check whether --enable-tools was given.
7493 if test "${enable_tools+set}" = set; then :
7494 enableval
=$enable_tools; case "${enableval}" in
7497 *) as_fn_error $?
"bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
7504 if test "$tools" = true
; then
7511 # Check whether --with-data-packaging was given.
7512 if test "${with_data_packaging+set}" = set; then :
7513 withval
=$with_data_packaging; case "${withval}" in
7514 files
|archive
|library
) datapackaging
=$withval ;;
7515 auto
) datapackaging
=$withval ;;
7516 common
) datapackaging
=archive
;;
7517 dll
) datapackaging
=library
;;
7518 static
) datapackaging
=static
;;
7519 *) as_fn_error $?
"bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;;
7526 # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
7527 # thesysconfdir=`eval echo $sysconfdir`
7528 thedatadir
=`eval echo $datadir`
7529 # 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}.
7530 pkgicudatadir
=$datadir
7531 thepkgicudatadir
=$thedatadir
7536 if test x
"$datapackaging" = x
-o x
"$datapackaging" = xauto
; then
7537 # default to library
7538 datapackaging
=library
7539 if test "$ENABLE_STATIC" = "YES"; then
7540 if test "$ENABLE_SHARED" != "YES"; then
7541 datapackaging
=static
7546 datapackaging_dir
=`eval echo $thedatadir`"/icu/${VERSION}"
7548 datapackaging_msg
="(No explaination for mode $datapackaging.)"
7550 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."
7551 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."
7552 datapackaging_howfound
="(unknown)"
7554 case "$datapackaging" in
7556 DATA_PACKAGING_MODE
=files
7557 datapackaging_msg
="ICU data will be stored in individual files."
7558 datapackaging_howfound
="$datapackaging_msg_path"
7561 DATA_PACKAGING_MODE
=common
7562 datapackaging_msg
="ICU data will be stored in a single .dat file."
7563 datapackaging_howfound
="$datapackaging_msg_path"
7566 DATA_PACKAGING_MODE
=dll
7567 datapackaging_msg
="ICU data will be linked with ICU."
7568 if test "$ENABLE_STATIC" = "YES"; then
7569 datapackaging_msg
="$datapackaging_msg A static data library will be built. "
7571 if test "$ENABLE_SHARED" = "YES"; then
7572 datapackaging_msg
="$datapackaging_msg A shared data library will be built. "
7574 datapackaging_howfound
="$datapackaging_msg_set"
7577 DATA_PACKAGING_MODE
=static
7578 datapackaging_msg
="ICU data will be stored in a static library."
7579 datapackaging_howfound
="$datapackaging_msg_set"
7584 # Sets a library suffix
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5
7586 $as_echo_n "checking for a library suffix to use... " >&6; }
7588 # Check whether --with-library-suffix was given.
7589 if test "${with_library_suffix+set}" = set; then :
7590 withval
=$with_library_suffix; ICULIBSUFFIX
="${withval}"
7596 if test "$msg" = ""; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
7600 $as_echo "$msg" >&6; }
7602 if test "$ICULIBSUFFIX" != ""
7605 ICULIBSUFFIXCNAME
=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
7606 UCONFIG_CPPFLAGS
="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} "
7613 # Enable/disable tests
7614 # Check whether --enable-tests was given.
7615 if test "${enable_tests+set}" = set; then :
7616 enableval
=$enable_tests; case "${enableval}" in
7619 *) as_fn_error $?
"bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
7626 if test "$tests" = true
; then
7632 # Enable/disable samples
7633 # Check whether --enable-samples was given.
7634 if test "${enable_samples+set}" = set; then :
7635 enableval
=$enable_samples; case "${enableval}" in
7636 yes) samples
=true
;;
7637 no
) samples
=false
;;
7638 *) as_fn_error $?
"bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
7645 if test "$samples" = true
; then
7651 ICUDATA_CHAR
=$U_ENDIAN_CHAR
7653 # Platform-specific Makefile setup
7654 # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
7656 *-*-solaris*) platform
=U_SOLARIS
;;
7657 *-*-linux*|*-*-gnu|*-*-k*bsd
*-gnu|*-*-kopensolaris*-gnu) platform
=U_LINUX
;;
7658 *-*-*bsd
*|*-*-dragonfly*) platform
=U_BSD
;;
7659 *-*-aix*) platform
=U_AIX
;;
7660 *-*-hpux*) platform
=U_HPUX
;;
7661 *-apple-darwin*|*-apple-rhapsody*) platform
=U_DARWIN
;;
7662 *-*-cygwin*) platform
=U_CYGWIN
;;
7663 *-*-mingw*) platform
=U_MINGW
;;
7664 *-*ibm
-openedition*|*-*-os390*) platform
=OS390
7665 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7668 *-*-os400*) platform
=OS400
7669 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7672 *-*-nto*) platform
=U_QNX
;;
7673 *-dec-osf*) platform
=U_OSF
;;
7674 *-*-beos) platform
=U_BEOS
;;
7675 *-*-irix*) platform
=U_IRIX
;;
7676 *-ncr-*) platform
=U_MPRAS
;;
7677 *) platform
=U_UNKNOWN_PLATFORM
;;
7681 platform_make_fragment_name
="$icu_cv_host_frag"
7682 platform_make_fragment
='$(top_srcdir)/config/'"$platform_make_fragment_name"
7686 if test "${FORCE_LIBS}" != ""; then
7687 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
7691 # Now that we're done using CPPFLAGS etc. for tests, we can change it
7694 if test "${CC}" == "clang"; then
7695 CLANGCFLAGS
="-Qunused-arguments -Wno-parentheses-equality"
7700 if test "${CXX}" == "clang++"; then
7701 CLANGCXXFLAGS
="-Qunused-arguments -Wno-parentheses-equality"
7706 CPPFLAGS
="$CPPFLAGS \$(THREADSCPPFLAGS)"
7707 CFLAGS
="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS"
7708 CXXFLAGS
="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS"
7713 # append all config cppflags
7714 CPPFLAGS
="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS"
7716 echo "CPPFLAGS=$CPPFLAGS"
7717 echo "CFLAGS=$CFLAGS"
7718 echo "CXXFLAGS=$CXXFLAGS"
7721 # output the Makefiles
7722 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 layout/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/tzcode/Makefile tools/gencfu/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/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 samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile"
7724 cat >confcache
<<\_ACEOF
7725 # This file is a shell script that caches the results of configure
7726 # tests run on this system so they can be shared between configure
7727 # scripts and configure runs, see configure's option --config-cache.
7728 # It is not useful on other systems. If it contains results you don't
7729 # want to keep, you may remove or edit it.
7731 # config.status only pays attention to the cache file if you give it
7732 # the --recheck option to rerun configure.
7734 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7735 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7740 # The following way of writing the cache mishandles newlines in values,
7741 # but we know of no workaround that is simple, portable, and efficient.
7742 # So, we kill variables containing newlines.
7743 # Ultrix sh set writes to stderr and can't be redirected directly,
7744 # and sets the high bit in the cache file unless we assign to the vars.
7746 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7747 eval ac_val
=\$
$ac_var
7751 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7752 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7755 _
| IFS
| as_nl
) ;; #(
7756 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
7757 *) { eval $ac_var=; unset $ac_var;} ;;
7763 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7764 *${as_nl}ac_space
=\
*)
7765 # `set' does not quote correctly, so add quotes: double-quote
7766 # substitution turns \\\\ into \\, and sed turns \\ into \.
7769 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7772 # `set' quotes correctly as required by POSIX, so do not add quotes.
7773 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7782 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7784 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7786 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7787 if test -w "$cache_file"; then
7788 if test "x$cache_file" != "x/dev/null"; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7790 $as_echo "$as_me: updating cache $cache_file" >&6;}
7791 if test ! -f "$cache_file" || test -h "$cache_file"; then
7792 cat confcache
>"$cache_file"
7794 case $cache_file in #(
7796 mv -f confcache
"$cache_file"$$
&&
7797 mv -f "$cache_file"$$
"$cache_file" ;; #(
7799 mv -f confcache
"$cache_file" ;;
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7805 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7810 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7811 # Let make expand exec_prefix.
7812 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7814 # Transform confdefs.h into DEFS.
7815 # Protect against shell expansion while executing Makefile rules.
7816 # Protect against Makefile macro expansion.
7818 # If the first sed substitution is executed (which looks for macros that
7819 # take arguments), then branch to the quote section. Otherwise,
7820 # look for a macro that doesn't take arguments.
7830 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7832 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7836 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7849 DEFS
=`sed -n "$ac_script" confdefs.h`
7855 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7856 # 1. Remove the extension, and $U if already installed.
7857 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7858 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7859 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7860 # will be set to the directory where LIBOBJS objects are built.
7861 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7862 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7866 LTLIBOBJS
=$ac_ltlibobjs
7871 : "${CONFIG_STATUS=./config.status}"
7873 ac_clean_files_save
=$ac_clean_files
7874 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7876 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7878 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7880 # Generated by $as_me.
7881 # Run this file to recreate the current configuration.
7882 # Compiler output produced by configure, useful for debugging
7883 # configure, is in config.log if it exists.
7889 SHELL=\${CONFIG_SHELL-$SHELL}
7892 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
7893 ## -------------------- ##
7894 ## M4sh Initialization. ##
7895 ## -------------------- ##
7897 # Be more Bourne compatible
7898 DUALCASE
=1; export DUALCASE
# for MKS sh
7899 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7902 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7903 # is contrary to our usage. Disable this feature.
7904 alias -g '${1+"$@"}'='"$@"'
7905 setopt NO_GLOB_SUBST
7907 case `(set -o) 2>/dev/null` in #(
7919 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7920 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7922 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7923 # Prefer a ksh shell builtin over an external printf program on Solaris,
7924 # but without wasting forks for bash or zsh.
7925 if test -z "$BASH_VERSION$ZSH_VERSION" \
7926 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7927 as_echo='print
-r --'
7928 as_echo_n='print
-rn --'
7929 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7930 as_echo='printf %s
\n'
7931 as_echo_n='printf %s
'
7933 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7934 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7935 as_echo_n='/usr
/ucb
/echo -n'
7937 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7938 as_echo_n_body='eval
7942 expr "X$arg" : "X\\(.*\\)$as_nl";
7943 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7945 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7947 export as_echo_n_body
7948 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7951 as_echo='sh
-c $as_echo_body as_echo
'
7954 # The user is always right.
7955 if test "${PATH_SEPARATOR+set}" != set; then
7957 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7958 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7965 # We need space, tab and new line, in precisely that order. Quoting is
7966 # there to prevent editors from complaining about space-tab.
7967 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7968 # splitting by setting IFS to empty value.)
7971 # Find who we are. Look in the path if we contain no directory separator.
7974 *[\\/]* ) as_myself=$0 ;;
7975 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 test -z "$as_dir" && as_dir=.
7980 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7986 # We did not find ourselves, most probably we were run as `sh COMMAND'
7987 # in which case we are not to be found in the path.
7988 if test "x$as_myself" = x
; then
7991 if test ! -f "$as_myself"; then
7992 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7996 # Unset variables that we do not need and which cause bugs (e.g. in
7997 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7998 # suppresses any "Segmentation fault" message there. '((' could
7999 # trigger a bug in pdksh 5.2.14.
8000 for as_var
in BASH_ENV ENV MAIL MAILPATH
8001 do eval test x\
${$as_var+set} = xset \
8002 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
8015 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
8018 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8019 # ----------------------------------------
8020 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8021 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8022 # script with STATUS, using 1 if that was 0.
8025 as_status
=$1; test $as_status -eq 0 && as_status
=1
8027 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
8028 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8030 $as_echo "$as_me: error: $2" >&2
8031 as_fn_exit
$as_status
8035 # as_fn_set_status STATUS
8036 # -----------------------
8037 # Set $? to STATUS, without forking.
8041 } # as_fn_set_status
8045 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8055 # Portably unset VAR.
8058 { eval $1=; unset $1;}
8060 as_unset
=as_fn_unset
8061 # as_fn_append VAR VALUE
8062 # ----------------------
8063 # Append the text in VALUE to the end of the definition contained in VAR. Take
8064 # advantage of any shell optimizations that allow amortized linear growth over
8065 # repeated appends, instead of the typical quadratic growth present in naive
8067 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
8068 eval 'as_fn_append ()
8079 # as_fn_arith ARG...
8080 # ------------------
8081 # Perform arithmetic evaluation on the ARGs, and store the result in the
8082 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8083 # must be portable across $(()) and expr.
8084 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
8085 eval 'as_fn_arith ()
8092 as_val
=`expr "$@" || test $? -eq 1`
8097 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
8098 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
8104 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8105 as_basename
=basename
8110 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
8116 as_me
=`$as_basename -- "$0" ||
8117 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8118 X"$0" : 'X\(//\)$' \| \
8119 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8121 sed '/^.*\/\([^/][^/]*\)\/*$/{
8135 # Avoid depending upon Character Ranges.
8136 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
8137 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8138 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
8139 as_cr_digits
='0123456789'
8140 as_cr_alnum
=$as_cr_Letters$as_cr_digits
8142 ECHO_C
= ECHO_N
= ECHO_T
=
8143 case `echo -n x` in #(((((
8145 case `echo 'xy\c'` in
8146 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
8148 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
8155 rm -f conf$$ conf$$.exe conf$$.
file
8156 if test -d conf$$.dir
; then
8157 rm -f conf$$.dir
/conf$$.
file
8160 mkdir conf$$.dir
2>/dev
/null
8162 if (echo >conf$$.
file) 2>/dev
/null
; then
8163 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
8165 # ... but there are two gotchas:
8166 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8167 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8168 # In both cases, we have to default to `cp -pR'.
8169 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
8171 elif ln conf$$.
file conf$$
2>/dev
/null
; then
8179 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
8180 rmdir conf$$.dir
2>/dev
/null
8185 # Create "$as_dir" as a directory, including parents if necessary.
8190 -*) as_dir
=.
/$as_dir;;
8192 test -d "$as_dir" || eval $as_mkdir_p || {
8196 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8197 *) as_qdir
=$as_dir;;
8199 as_dirs
="'$as_qdir' $as_dirs"
8200 as_dir
=`$as_dirname -- "$as_dir" ||
8201 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8202 X"$as_dir" : 'X\(//\)[^/]' \| \
8203 X"$as_dir" : 'X\(//\)$' \| \
8204 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8205 $as_echo X"$as_dir" |
8206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8223 test -d "$as_dir" && break
8225 test -z "$as_dirs" || eval "mkdir $as_dirs"
8226 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8230 if mkdir -p .
2>/dev
/null
; then
8231 as_mkdir_p
='mkdir -p "$as_dir"'
8233 test -d .
/-p && rmdir .
/-p
8238 # as_fn_executable_p FILE
8239 # -----------------------
8240 # Test if FILE is an executable regular file.
8241 as_fn_executable_p
()
8243 test -f "$1" && test -x "$1"
8244 } # as_fn_executable_p
8246 as_executable_p
=as_fn_executable_p
8248 # Sed expression to map a string onto a valid CPP name.
8249 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8251 # Sed expression to map a string onto a valid variable name.
8252 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8256 ## ----------------------------------- ##
8257 ## Main body of $CONFIG_STATUS script. ##
8258 ## ----------------------------------- ##
8260 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8262 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8263 # Save the log message, to keep $0 and so on meaningful, and to
8264 # report actual input values of CONFIG_FILES etc. instead of their
8265 # values after options handling.
8267 This file was extended by ICU $as_me 55.1, which was
8268 generated by GNU Autoconf 2.69. Invocation command line was
8270 CONFIG_FILES = $CONFIG_FILES
8271 CONFIG_HEADERS = $CONFIG_HEADERS
8272 CONFIG_LINKS = $CONFIG_LINKS
8273 CONFIG_COMMANDS = $CONFIG_COMMANDS
8276 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8281 case $ac_config_files in *"
8282 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8288 # Files that config.status was made for.
8289 config_files="$ac_config_files"
8293 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8295 \`$as_me' instantiates files and other configuration actions
8296 from templates according to the current configuration. Unless the files
8297 and actions are specified as TAGs, all are instantiated by default.
8299 Usage: $0 [OPTION]... [TAG]...
8301 -h, --help print this help, then exit
8302 -V, --version print version number and configuration settings, then exit
8303 --config print configuration, then exit
8304 -q, --quiet, --silent
8305 do not print progress messages
8306 -d, --debug don't remove temporary files
8307 --recheck update $as_me by reconfiguring in the same conditions
8308 --file=FILE[:TEMPLATE]
8309 instantiate the configuration file FILE
8311 Configuration files:
8314 Report bugs to <http://icu-project.org/bugs>.
8315 ICU home page: <http://icu-project.org>."
8318 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8319 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8321 ICU config.status 55.1
8322 configured by $0, generated by GNU Autoconf 2.69,
8323 with options \\"\$ac_cs_config\\"
8325 Copyright (C) 2012 Free Software Foundation, Inc.
8326 This config.status script is free software; the Free Software Foundation
8327 gives unlimited permission to copy, distribute and modify it."
8332 test -n "\$AWK" || AWK=awk
8335 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8336 # The default lists apply if the user does not specify any file.
8342 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8343 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8347 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8359 # Handling of the options.
8360 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8362 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8363 $as_echo "$ac_cs_version"; exit ;;
8364 --config | --confi | --conf | --con | --co | --c )
8365 $as_echo "$ac_cs_config"; exit ;;
8366 --debug | --debu | --deb | --de | --d | -d )
8368 --file | --fil | --fi | --f )
8371 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8372 '') as_fn_error $?
"missing file argument" ;;
8374 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8375 ac_need_defaults
=false
;;
8376 --he | --h | --help | --hel | -h )
8377 $as_echo "$ac_cs_usage"; exit ;;
8378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8379 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8383 -*) as_fn_error $?
"unrecognized option: \`$1'
8384 Try \`$0 --help' for more information." ;;
8386 *) as_fn_append ac_config_targets
" $1"
8387 ac_need_defaults
=false
;;
8393 ac_configure_extra_args
=
8395 if $ac_cs_silent; then
8397 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8402 if \$ac_cs_recheck; then
8403 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8405 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8406 CONFIG_SHELL='$SHELL'
8412 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8417 ## Running $as_me. ##
8423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8426 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8428 # Handling of arguments.
8429 for ac_config_target
in $ac_config_targets
8431 case $ac_config_target in
8432 "icudefs.mk") CONFIG_FILES
="$CONFIG_FILES icudefs.mk" ;;
8433 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8434 "data/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES data/pkgdataMakefile" ;;
8435 "config/Makefile.inc") CONFIG_FILES
="$CONFIG_FILES config/Makefile.inc" ;;
8436 "config/icu.pc") CONFIG_FILES
="$CONFIG_FILES config/icu.pc" ;;
8437 "config/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES config/pkgdataMakefile" ;;
8438 "data/Makefile") CONFIG_FILES
="$CONFIG_FILES data/Makefile" ;;
8439 "stubdata/Makefile") CONFIG_FILES
="$CONFIG_FILES stubdata/Makefile" ;;
8440 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8441 "i18n/Makefile") CONFIG_FILES
="$CONFIG_FILES i18n/Makefile" ;;
8442 "layout/Makefile") CONFIG_FILES
="$CONFIG_FILES layout/Makefile" ;;
8443 "layoutex/Makefile") CONFIG_FILES
="$CONFIG_FILES layoutex/Makefile" ;;
8444 "io/Makefile") CONFIG_FILES
="$CONFIG_FILES io/Makefile" ;;
8445 "extra/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/Makefile" ;;
8446 "extra/uconv/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/uconv/Makefile" ;;
8447 "extra/uconv/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
8448 "extra/scrptrun/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/scrptrun/Makefile" ;;
8449 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
8450 "tools/ctestfw/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/ctestfw/Makefile" ;;
8451 "tools/toolutil/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/toolutil/Makefile" ;;
8452 "tools/makeconv/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/makeconv/Makefile" ;;
8453 "tools/genrb/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genrb/Makefile" ;;
8454 "tools/genccode/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genccode/Makefile" ;;
8455 "tools/gencmn/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencmn/Makefile" ;;
8456 "tools/gencnval/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencnval/Makefile" ;;
8457 "tools/gendict/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gendict/Makefile" ;;
8458 "tools/gentest/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gentest/Makefile" ;;
8459 "tools/gennorm2/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gennorm2/Makefile" ;;
8460 "tools/genbrk/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genbrk/Makefile" ;;
8461 "tools/gensprep/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gensprep/Makefile" ;;
8462 "tools/icuinfo/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icuinfo/Makefile" ;;
8463 "tools/icupkg/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icupkg/Makefile" ;;
8464 "tools/icuswap/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icuswap/Makefile" ;;
8465 "tools/pkgdata/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/pkgdata/Makefile" ;;
8466 "tools/tzcode/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/tzcode/Makefile" ;;
8467 "tools/gencfu/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencfu/Makefile" ;;
8468 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
8469 "test/compat/Makefile") CONFIG_FILES
="$CONFIG_FILES test/compat/Makefile" ;;
8470 "test/testdata/Makefile") CONFIG_FILES
="$CONFIG_FILES test/testdata/Makefile" ;;
8471 "test/testdata/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
8472 "test/hdrtst/Makefile") CONFIG_FILES
="$CONFIG_FILES test/hdrtst/Makefile" ;;
8473 "test/intltest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/intltest/Makefile" ;;
8474 "test/cintltst/Makefile") CONFIG_FILES
="$CONFIG_FILES test/cintltst/Makefile" ;;
8475 "test/iotest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/iotest/Makefile" ;;
8476 "test/letest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/letest/Makefile" ;;
8477 "test/perf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/Makefile" ;;
8478 "test/perf/collationperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
8479 "test/perf/collperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collperf/Makefile" ;;
8480 "test/perf/collperf2/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collperf2/Makefile" ;;
8481 "test/perf/dicttrieperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;;
8482 "test/perf/ubrkperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
8483 "test/perf/charperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/charperf/Makefile" ;;
8484 "test/perf/convperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/convperf/Makefile" ;;
8485 "test/perf/normperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/normperf/Makefile" ;;
8486 "test/perf/DateFmtPerf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;;
8487 "test/perf/howExpensiveIs/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;;
8488 "test/perf/strsrchperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
8489 "test/perf/unisetperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
8490 "test/perf/usetperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
8491 "test/perf/ustrperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
8492 "test/perf/utfperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
8493 "test/perf/utrie2perf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
8494 "test/perf/leperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/leperf/Makefile" ;;
8495 "samples/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/Makefile" ;;
8496 "samples/date/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/date/Makefile" ;;
8497 "samples/cal/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/cal/Makefile" ;;
8498 "samples/layout/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/layout/Makefile" ;;
8500 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8505 # If the user did not use the arguments to specify the items to instantiate,
8506 # then the envvar interface is used. Set only those that are not.
8507 # We use the long form for the default assignment because of an extremely
8508 # bizarre bug on SunOS 4.1.3.
8509 if $ac_need_defaults; then
8510 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8513 # Have a temporary directory for convenience. Make it in the build tree
8514 # simply because there is no reason against having it here, and in addition,
8515 # creating and moving files from /tmp can sometimes cause problems.
8516 # Hook for its removal unless debugging.
8517 # Note that there is a small window in which the directory will not be cleaned:
8518 # after its creation but before its name has been assigned to `$tmp'.
8522 trap 'exit_status=$?
8524 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8526 trap 'as_fn_exit 1' 1 2 13 15
8528 # Create a (secure) tmp directory for tmp files.
8531 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8535 tmp
=.
/conf$$
-$RANDOM
8536 (umask 077 && mkdir "$tmp")
8537 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8540 # Set up the scripts for CONFIG_FILES section.
8541 # No need to generate them if there are no CONFIG_FILES.
8542 # This happens for instance with `./config.status config.h'.
8543 if test -n "$CONFIG_FILES"; then
8546 ac_cr
=`echo X | tr X '\015'`
8547 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8548 # But we know of no other shell where ac_cr would be empty at this
8549 # point, so we can use a bashism as a fallback.
8550 if test "x$ac_cr" = x
; then
8551 eval ac_cr
=\$
\'\\r
\'
8553 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8554 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8560 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8565 echo "cat >conf$$subs.awk <<_ACEOF" &&
8566 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8569 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8570 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8572 for ac_last_try in false false false false false :; do
8573 . ./conf$$subs.sh ||
8574 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8576 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8577 if test $ac_delim_n = $ac_delim_num; then
8579 elif $ac_last_try; then
8580 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8582 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8587 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8588 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8592 s/^/S["/; s
/!.
*/"]=/
8602 s/\(.\{148\}\)..*/\1/
8604 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8609 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8616 s/\(.\{148\}\)..*/\1/
8618 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8622 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8627 ' <conf$$subs.awk | sed '
8632 ' >>$CONFIG_STATUS || ac_write_fail=1
8633 rm -f conf$$subs.awk
8634 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8636 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8637 for (key in S) S_is_set[key] = 1
8643 nfields = split(line, field, "@
")
8645 len = length(field[1])
8646 for (i = 2; i < nfields; i++) {
8648 keylen = length(key)
8649 if (S_is_set[key]) {
8651 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8652 len += length(value) + length(field[++i])
8663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8664 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8665 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8668 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8669 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8672 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8673 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8674 # trailing colons and then remove the whole line if VPATH becomes empty
8675 # (actually we leave an empty line to preserve line numbers).
8676 if test "x
$srcdir" = x.; then
8677 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8695 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8696 fi # test -n "$CONFIG_FILES"
8699 eval set X " :F
$CONFIG_FILES "
8704 :[FHLC]) ac_mode=$ac_tag; continue;;
8706 case $ac_mode$ac_tag in
8708 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
8709 :[FH]-) ac_tag=-:-;;
8710 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8727 -) ac_f="$ac_tmp/stdin";;
8728 *) # Look for the file first in the build tree, then in the source tree
8729 # (if the path is not absolute). The absolute path cannot be DOS-style,
8730 # because $ac_f cannot contain `:'.
8734 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8736 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8738 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
8739 as_fn_append ac_file_inputs " '$ac_f'"
8742 # Let's still pretend it is `configure' which instantiates (i.e., don't
8743 # use $as_me), people would be surprised to read:
8744 # /* config.h. Generated by config.status. */
8745 configure_input='Generated from '`
8746 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8748 if test x"$ac_file" != x-; then
8749 configure_input="$ac_file.
$configure_input"
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
8751 $as_echo "$as_me: creating
$ac_file" >&6;}
8753 # Neutralize special characters interpreted by sed in replacement strings.
8754 case $configure_input in #(
8755 *\&* | *\|* | *\\* )
8756 ac_sed_conf_input=`$as_echo "$configure_input" |
8757 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8758 *) ac_sed_conf_input=$configure_input;;
8762 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
8763 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
8768 ac_dir=`$as_dirname -- "$ac_file" ||
8769 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8770 X"$ac_file" : 'X\(//\)[^/]' \| \
8771 X"$ac_file" : 'X\(//\)$' \| \
8772 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8773 $as_echo X"$ac_file" |
8774 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8791 as_dir="$ac_dir"; as_fn_mkdir_p
8795 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8797 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8798 # A "..
" for each directory in $ac_dir_suffix.
8799 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8800 case $ac_top_builddir_sub in
8801 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8802 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8805 ac_abs_top_builddir=$ac_pwd
8806 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8807 # for backward compatibility:
8808 ac_top_builddir=$ac_top_build_prefix
8811 .) # We are building in place.
8813 ac_top_srcdir=$ac_top_builddir_sub
8814 ac_abs_top_srcdir=$ac_pwd ;;
8815 [\\/]* | ?:[\\/]* ) # Absolute name.
8816 ac_srcdir=$srcdir$ac_dir_suffix;
8817 ac_top_srcdir=$srcdir
8818 ac_abs_top_srcdir=$srcdir ;;
8820 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8821 ac_top_srcdir=$ac_top_build_prefix$srcdir
8822 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8824 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8834 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8835 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8840 # If the template does not know about datarootdir, expand it.
8841 # FIXME: This hack should be removed a few years after 2.60.
8842 ac_datarootdir_hack=; ac_datarootdir_seen=
8853 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
8854 *datarootdir*) ac_datarootdir_seen=yes;;
8855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
8857 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
8859 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8860 ac_datarootdir_hack='
8861 s&@datadir@&$datadir&g
8862 s&@docdir@&$docdir&g
8863 s&@infodir@&$infodir&g
8864 s&@localedir@&$localedir&g
8865 s&@mandir@&$mandir&g
8866 s&\\\${datarootdir}&$datarootdir&g' ;;
8870 # Neutralize VPATH when `$srcdir' = `.'.
8871 # Shell code in configure.ac might set extrasub.
8872 # FIXME: do we really want to maintain this feature?
8873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8874 ac_sed_extra="$ac_vpsub
8877 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8879 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
8880 s
|@configure_input@
|$ac_sed_conf_input|;t t
8881 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8882 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8883 s
&@srcdir@
&$ac_srcdir&;t t
8884 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8885 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8886 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8887 s
&@builddir@
&$ac_builddir&;t t
8888 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8889 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8890 s
&@INSTALL@
&$ac_INSTALL&;t t
8891 $ac_datarootdir_hack
8893 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8894 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8896 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8897 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8898 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8899 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8901 which seems to be undefined. Please make sure it is defined" >&5
8902 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8903 which seems to be undefined. Please make sure it is defined" >&2;}
8905 rm -f "$ac_tmp/stdin"
8907 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8908 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8922 ac_clean_files=$ac_clean_files_save
8924 test $ac_write_fail = 0 ||
8925 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8928 # configure is writing to config.log, and then calls config.status.
8929 # config.status does its own redirection, appending to config.log.
8930 # Unfortunately, on DOS this fails, as config.log is still kept open
8931 # by configure, so config.status won't be able to
write to it
; its
8932 # output is simply discarded. So we exec the FD to /dev/null,
8933 # effectively closing config.log, so it can be properly (re)opened and
8934 # appended to by config.status. When coming back to configure, we
8935 # need to make the FD available again.
8936 if test "$no_create" != yes; then
8938 ac_config_status_args
=
8939 test "$silent" = yes &&
8940 ac_config_status_args
="$ac_config_status_args --quiet"
8942 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8945 # would make configure fail if this is the last instruction.
8946 $ac_cs_success || as_fn_exit
1
8948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8955 echo "ICU for C/C++ $VERSION is ready to be built."
8956 echo "=== Important Notes: ==="
8958 echo "Data Packaging: $datapackaging"
8959 echo " This means: $datapackaging_msg"
8960 echo " To locate data: $datapackaging_howfound"
8962 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
8963 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
8965 echo "** WARNING: $U_MAKE may not be GNU make."
8966 echo "This may cause ICU to fail to build. Please make sure that GNU make"
8967 echo "is in your PATH so that the configure script can detect its location."
8969 if test "x$AR" = "xfalse"; then
8970 echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail."
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5
8974 $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; }
8975 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM
="$platform"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8977 $as_echo "ok" >&6; }
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5
8980 $as_echo "too old or test failed - try upgrading GNU Make" >&6; }
8984 if test -n "$UCONFIG_CPPFLAGS"; then
8985 HDRFILE
="uconfig.h.prepend"
8986 echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:"
8988 echo " ${UCONFIG_CPPFLAGS}"
8990 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.'
8991 echo "Creating the file ${HDRFILE}"
8993 echo '--------------- ' "${HDRFILE}"
8995 echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}"
8996 echo >> "${HDRFILE}"
8997 for flag
in ${UCONFIG_CPPFLAGS};
8999 echo " /* $flag */" >> "${HDRFILE}"
9002 \
echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}"
9003 \
echo >> "${HDRFILE}"
9006 \
echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}"
9007 \
echo >> "${HDRFILE}"
9010 \
echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}"
9011 \
echo >> "${HDRFILE}"
9016 \
echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
9017 echo >> "${HDRFILE}"
9018 echo '--------------- end ' "${HDRFILE}"
9022 if test -n "$UCONFIG_CFLAGS"; then
9023 echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}"
9026 if test -n "$UCONFIG_CXXFLAGS"; then
9027 echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}"
9030 if test "$tools" = false
;
9032 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests."
9033 echo "## Expect build failures in the 'data', 'test', and other directories."
9036 $as_unset _CXX_CXXSUFFIX