2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
5 # Copyright (c) 1999-2012, International Business Machines Corporation and others. All Rights Reserved.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
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 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
242 $0: including any error possibly output before this
243 $0: message. Then install a modern shell, or manually run
244 $0: the script under such a shell if you do have one."
250 SHELL
=${CONFIG_SHELL-/bin/sh}
252 # Unset more variables known to interfere with behavior of common tools.
253 CLICOLOR_FORCE
= GREP_OPTIONS
=
254 unset CLICOLOR_FORCE GREP_OPTIONS
256 ## --------------------- ##
257 ## M4sh Shell Functions. ##
258 ## --------------------- ##
261 # Portably unset VAR.
264 { eval $1=; unset $1;}
268 # as_fn_set_status STATUS
269 # -----------------------
270 # Set $? to STATUS, without forking.
278 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288 # Create "$as_dir" as a directory, including parents if necessary.
293 -*) as_dir
=.
/$as_dir;;
295 test -d "$as_dir" || eval $as_mkdir_p || {
299 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
302 as_dirs
="'$as_qdir' $as_dirs"
303 as_dir
=`$as_dirname -- "$as_dir" ||
304 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
305 X"$as_dir" : 'X\(//\)[^/]' \| \
306 X"$as_dir" : 'X\(//\)$' \| \
307 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
308 $as_echo X"$as_dir" |
309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
326 test -d "$as_dir" && break
328 test -z "$as_dirs" || eval "mkdir $as_dirs"
329 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
333 # as_fn_append VAR VALUE
334 # ----------------------
335 # Append the text in VALUE to the end of the definition contained in VAR. Take
336 # advantage of any shell optimizations that allow amortized linear growth over
337 # repeated appends, instead of the typical quadratic growth present in naive
339 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
340 eval 'as_fn_append ()
353 # Perform arithmetic evaluation on the ARGs, and store the result in the
354 # global $as_val. Take advantage of shells that can avoid forks. The arguments
355 # must be portable across $(()) and expr.
356 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
364 as_val
=`expr "$@" || test $? -eq 1`
369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
370 # ----------------------------------------
371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
373 # script with STATUS, using 1 if that was 0.
376 as_status
=$1; test $as_status -eq 0 && as_status
=1
378 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 $as_echo "$as_me: error: $2" >&2
382 as_fn_exit
$as_status
385 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
386 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
392 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
398 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
404 as_me
=`$as_basename -- "$0" ||
405 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
406 X"$0" : 'X\(//\)$' \| \
407 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 sed '/^.*\/\([^/][^/]*\)\/*$/{
423 # Avoid depending upon Character Ranges.
424 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
425 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
426 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
427 as_cr_digits
='0123456789'
428 as_cr_alnum
=$as_cr_Letters$as_cr_digits
431 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
432 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
433 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
434 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
435 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
462 ECHO_C
= ECHO_N
= ECHO_T
=
463 case `echo -n x` in #(((((
465 case `echo 'xy\c'` in
466 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
468 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
475 rm -f conf$$ conf$$.exe conf$$.
file
476 if test -d conf$$.dir
; then
477 rm -f conf$$.dir
/conf$$.
file
480 mkdir conf$$.dir
2>/dev
/null
482 if (echo >conf$$.
file) 2>/dev
/null
; then
483 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
485 # ... but there are two gotchas:
486 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
487 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
488 # In both cases, we have to default to `cp -p'.
489 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
491 elif ln conf$$.
file conf$$
2>/dev
/null
; then
499 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
500 rmdir conf$$.dir
2>/dev
/null
502 if mkdir -p .
2>/dev
/null
; then
503 as_mkdir_p
='mkdir -p "$as_dir"'
505 test -d .
/-p && rmdir .
/-p
509 if test -x / >/dev
/null
2>&1; then
512 if ls -dL / >/dev
/null
2>&1; then
519 if test -d "$1"; then
525 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
526 ???[sx]*):;;*)false;;esac;fi
530 as_executable_p
=$as_test_x
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 test -n "$DJDIR" || exec 7<&0 </dev
/null
543 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix
=/usr
/local
552 ac_config_libobj_dir
=.
559 # Identity of this package.
568 ac_unique_file
="common/unicode/utypes.h"
569 # Factoring default headers for most tests.
570 ac_includes_default
="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
605 ac_subst_vars
='LTLIBOBJS
609 platform_make_fragment
610 platform_make_fragment_name
625 U_CHECK_GNUC_UTF16_STRING
636 U_OVERRIDE_CXX_ALLOCATION
638 U_NL_LANGINFO_CODESET
639 U_HAVE_NL_LANGINFO_CODESET
727 program_transform_name
740 enable_option_checking
765 ac_precious_vars
='build_alias
779 # Initialize some variables set by options.
781 ac_init_version
=false
782 ac_unrecognized_opts
=
784 # The variables have the same names as the options, with
785 # dashes changed to underlines.
793 program_transform_name
=s
,x
,x
,
801 # Installation directory options.
802 # These are left unexpanded so users can "make install exec_prefix=/foo"
803 # and all the variables that are supposed to be based on exec_prefix
804 # by default will actually change.
805 # Use braces instead of parens because sh, perl, etc. also accept them.
806 # (The list follows the same order as the GNU Coding Standards.)
807 bindir
='${exec_prefix}/bin'
808 sbindir
='${exec_prefix}/sbin'
809 libexecdir
='${exec_prefix}/libexec'
810 datarootdir
='${prefix}/share'
811 datadir
='${datarootdir}'
812 sysconfdir
='${prefix}/etc'
813 sharedstatedir
='${prefix}/com'
814 localstatedir
='${prefix}/var'
815 includedir
='${prefix}/include'
816 oldincludedir
='/usr/include'
817 docdir
='${datarootdir}/doc/${PACKAGE}'
818 infodir
='${datarootdir}/info'
823 libdir
='${exec_prefix}/lib'
824 localedir
='${datarootdir}/locale'
825 mandir
='${datarootdir}/man'
831 # If the previous option needs an argument, assign it.
832 if test -n "$ac_prev"; then
833 eval $ac_prev=\
$ac_option
839 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 # Accept the important Cygnus configure options, so we can diagnose typos.
846 case $ac_dashdash$ac_option in
850 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
855 -build | --build | --buil | --bui | --bu)
856 ac_prev
=build_alias
;;
857 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
858 build_alias
=$ac_optarg ;;
860 -cache-file | --cache-file | --cache-fil | --cache-fi \
861 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
862 ac_prev
=cache_file
;;
863 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
864 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
865 cache_file
=$ac_optarg ;;
868 cache_file
=config.cache
;;
870 -datadir | --datadir | --datadi | --datad)
872 -datadir=* | --datadir=* | --datadi=* | --datad=*)
873 datadir
=$ac_optarg ;;
875 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
876 | --dataroo | --dataro | --datar)
877 ac_prev
=datarootdir
;;
878 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
879 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
880 datarootdir
=$ac_optarg ;;
882 -disable-* | --disable-*)
883 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
884 # Reject names that are not valid shell variable names.
885 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
886 as_fn_error $?
"invalid feature name: $ac_useropt"
887 ac_useropt_orig
=$ac_useropt
888 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
889 case $ac_user_opts in
893 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
894 ac_unrecognized_sep
=', ';;
896 eval enable_
$ac_useropt=no
;;
898 -docdir | --docdir | --docdi | --doc | --do)
900 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
903 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
908 -enable-* | --enable-*)
909 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
912 as_fn_error $?
"invalid feature name: $ac_useropt"
913 ac_useropt_orig
=$ac_useropt
914 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
920 ac_unrecognized_sep
=', ';;
922 eval enable_
$ac_useropt=\
$ac_optarg ;;
924 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
925 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
926 | --exec | --exe | --ex)
927 ac_prev
=exec_prefix
;;
928 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
929 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
930 | --exec=* | --exe=* | --ex=*)
931 exec_prefix
=$ac_optarg ;;
933 -gas | --gas | --ga | --g)
934 # Obsolete; use --with-gas.
937 -help | --help | --hel | --he | -h)
939 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
940 ac_init_help
=recursive
;;
941 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
942 ac_init_help
=short
;;
944 -host | --host | --hos | --ho)
945 ac_prev
=host_alias
;;
946 -host=* | --host=* | --hos=* | --ho=*)
947 host_alias
=$ac_optarg ;;
949 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 htmldir
=$ac_optarg ;;
955 -includedir | --includedir | --includedi | --included | --include \
956 | --includ | --inclu | --incl | --inc)
957 ac_prev
=includedir
;;
958 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
959 | --includ=* | --inclu=* | --incl=* | --inc=*)
960 includedir
=$ac_optarg ;;
962 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
965 infodir
=$ac_optarg ;;
967 -libdir | --libdir | --libdi | --libd)
969 -libdir=* | --libdir=* | --libdi=* | --libd=*)
972 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
973 | --libexe | --libex | --libe)
974 ac_prev
=libexecdir
;;
975 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
976 | --libexe=* | --libex=* | --libe=*)
977 libexecdir
=$ac_optarg ;;
979 -localedir | --localedir | --localedi | --localed | --locale)
981 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
982 localedir
=$ac_optarg ;;
984 -localstatedir | --localstatedir | --localstatedi | --localstated \
985 | --localstate | --localstat | --localsta | --localst | --locals)
986 ac_prev
=localstatedir
;;
987 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
988 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
989 localstatedir
=$ac_optarg ;;
991 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 # Obsolete; use --without-fp.
1000 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1001 | --no-cr | --no-c | -n)
1004 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1005 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1008 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1009 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1010 | --oldin | --oldi | --old | --ol | --o)
1011 ac_prev
=oldincludedir
;;
1012 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1013 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1014 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1015 oldincludedir
=$ac_optarg ;;
1017 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1020 prefix
=$ac_optarg ;;
1022 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1023 | --program-pre | --program-pr | --program-p)
1024 ac_prev
=program_prefix
;;
1025 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1026 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1027 program_prefix
=$ac_optarg ;;
1029 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1030 | --program-suf | --program-su | --program-s)
1031 ac_prev
=program_suffix
;;
1032 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1033 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1034 program_suffix
=$ac_optarg ;;
1036 -program-transform-name | --program-transform-name \
1037 | --program-transform-nam | --program-transform-na \
1038 | --program-transform-n | --program-transform- \
1039 | --program-transform | --program-transfor \
1040 | --program-transfo | --program-transf \
1041 | --program-trans | --program-tran \
1042 | --progr-tra | --program-tr | --program-t)
1043 ac_prev
=program_transform_name
;;
1044 -program-transform-name=* | --program-transform-name=* \
1045 | --program-transform-nam=* | --program-transform-na=* \
1046 | --program-transform-n=* | --program-transform-=* \
1047 | --program-transform=* | --program-transfor=* \
1048 | --program-transfo=* | --program-transf=* \
1049 | --program-trans=* | --program-tran=* \
1050 | --progr-tra=* | --program-tr=* | --program-t=*)
1051 program_transform_name
=$ac_optarg ;;
1053 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1056 pdfdir
=$ac_optarg ;;
1058 -psdir | --psdir | --psdi | --psd | --ps)
1060 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1063 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1064 | -silent | --silent | --silen | --sile | --sil)
1067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 sbindir
=$ac_optarg ;;
1073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1075 | --sharedst | --shareds | --shared | --share | --shar \
1077 ac_prev
=sharedstatedir
;;
1078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 sharedstatedir
=$ac_optarg ;;
1084 -site | --site | --sit)
1086 -site=* | --site=* | --sit=*)
1089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1092 srcdir
=$ac_optarg ;;
1094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1095 | --syscon | --sysco | --sysc | --sys | --sy)
1096 ac_prev
=sysconfdir
;;
1097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1099 sysconfdir
=$ac_optarg ;;
1101 -target | --target | --targe | --targ | --tar | --ta | --t)
1102 ac_prev
=target_alias
;;
1103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1104 target_alias
=$ac_optarg ;;
1106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1109 -version | --version | --versio | --versi | --vers | -V)
1110 ac_init_version
=: ;;
1113 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1116 as_fn_error $?
"invalid package name: $ac_useropt"
1117 ac_useropt_orig
=$ac_useropt
1118 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119 case $ac_user_opts in
1123 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1124 ac_unrecognized_sep
=', ';;
1126 eval with_
$ac_useropt=\
$ac_optarg ;;
1128 -without-* | --without-*)
1129 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1132 as_fn_error $?
"invalid package name: $ac_useropt"
1133 ac_useropt_orig
=$ac_useropt
1134 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep
=', ';;
1142 eval with_
$ac_useropt=no
;;
1145 # Obsolete; use --with-x.
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev
=x_includes
;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes
=$ac_optarg ;;
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev
=x_libraries
;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries
=$ac_optarg ;;
1162 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1163 Try \`$0 --help' for more information"
1167 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1168 # Reject names that are not valid shell variable names.
1169 case $ac_envvar in #(
1170 '' | [0-9]* | *[!_$as_cr_alnum]* )
1171 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1173 eval $ac_envvar=\
$ac_optarg
1174 export $ac_envvar ;;
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1187 if test -n "$ac_prev"; then
1188 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1189 as_fn_error $?
"missing argument to $ac_option"
1192 if test -n "$ac_unrecognized_opts"; then
1193 case $enable_option_checking in
1195 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1196 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 # Check all directory arguments for consistency.
1201 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1202 datadir sysconfdir sharedstatedir localstatedir includedir \
1203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1204 libdir localedir mandir
1206 eval ac_val
=\$
$ac_var
1207 # Remove trailing slashes.
1210 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1211 eval $ac_var=\
$ac_val;;
1213 # Be sure to have absolute directory names.
1215 [\\/$
]* | ?
:[\\/]* ) continue;;
1216 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1218 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target
=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x
; then
1230 if test "x$build_alias" = x
; then
1231 cross_compiling
=maybe
1232 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used" >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1242 test "$silent" = yes && exec 6>/dev
/null
1245 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di
=`ls -di .` &&
1247 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1248 as_fn_error $?
"working directory cannot be determined"
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 as_fn_error $?
"pwd does not report name of working directory"
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted
=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir
=`$as_dirname -- "$as_myself" ||
1258 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$as_myself" : 'X\(//\)[^/]' \| \
1260 X"$as_myself" : 'X\(//\)$' \| \
1261 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1262 $as_echo X"$as_myself" |
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted
=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1289 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1291 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1293 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var
in $ac_precious_vars; do
1306 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1307 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1308 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1309 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures this package to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking ...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure
for building on BUILD
[guessed
]
1378 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1382 if test -n "$ac_init_help"; then
1387 --disable-option-checking ignore unrecognized
--enable/--with options
1388 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1389 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1390 --enable-debug build debug libraries and
enable the U_DEBUG define default
=no
1391 --enable-release build release libraries default
=yes
1392 --enable-strict compile with strict compiler options default
=yes
1393 --enable-64bit-libs (deprecated
, use
--with-library-bits) build
64-bit libraries default
= platform default
1394 --enable-shared build shared libraries default
=yes
1395 --enable-static build static libraries default
=no
1396 --enable-auto-cleanup enable auto cleanup of libraries default
=no
1397 --enable-draft enable draft APIs
(and internal APIs
) default
=yes
1398 --enable-renaming add a version suffix to symbols default
=yes
1399 --enable-tracing enable function and data tracing default
=no
1400 --disable-dyload disable dynamic loading default
=no
1401 --enable-rpath use rpath when linking default is only
if necessary
1402 --enable-threads build ICU with thread safety default
=yes
1403 --enable-weak-threads weakly reference the threading library default
=no
1404 --enable-extras build ICU extras default
=yes
1405 --enable-icuio build ICU
's icuio library default=yes
1406 --enable-layout build ICU's layout library default
=yes
1407 --enable-tests build ICU tests default
=yes
1408 --enable-samples build ICU samples default
=yes
1410 Additionally
, the variable FORCE_LIBS may be
set before calling configure.
1411 If
set, it will REPLACE any automatic list of libraries.
1414 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1415 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1416 --with-cross-build=dir specify an absolute path to the build directory of an ICU built
for the current platform default
=no cross dir
1417 --with-library-bits=bits specify how many bits to use
for the library
(32, 64, 64else32
, nochange
) default
=nochange
1418 --with-data-packaging=type specify how to package ICU data
(files
, archive
, library
, static
, auto
) default
=auto
1419 --with-library-suffix=suffix tag a suffix to the library names default
=
1421 Some influential environment variables
:
1422 CC C compiler
command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1425 nonstandard directory
<lib dir
>
1426 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1427 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1428 you have headers
in a nonstandard directory
<include dir
>
1429 CXX C
++ compiler
command
1430 CXXFLAGS C
++ compiler flags
1433 Use these variables to override the choices made by
`configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1436 Report bugs to the package provider.
1441 if test "$ac_init_help" = "recursive"; then
1442 # If there are subdirs, report their specific --help.
1443 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1444 test -d "$ac_dir" ||
1445 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1450 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1453 # A ".." for each directory in $ac_dir_suffix.
1454 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1455 case $ac_top_builddir_sub in
1456 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1457 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1460 ac_abs_top_builddir=$ac_pwd
1461 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1462 # for backward compatibility:
1463 ac_top_builddir=$ac_top_build_prefix
1466 .) # We are building in place.
1468 ac_top_srcdir=$ac_top_builddir_sub
1469 ac_abs_top_srcdir=$ac_pwd ;;
1470 [\\/]* | ?:[\\/]* ) # Absolute name.
1471 ac_srcdir=$srcdir$ac_dir_suffix;
1472 ac_top_srcdir=$srcdir
1473 ac_abs_top_srcdir=$srcdir ;;
1475 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1476 ac_top_srcdir=$ac_top_build_prefix$srcdir
1477 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1479 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1481 cd "$ac_dir" || { ac_status=$?; continue; }
1482 # Check for guested configure.
1483 if test -f "$ac_srcdir/configure.gnu"; then
1485 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1486 elif test -f "$ac_srcdir/configure"; then
1488 $SHELL "$ac_srcdir/configure" --help=recursive
1490 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1492 cd "$ac_pwd" || { ac_status=$?; break; }
1496 test -n "$ac_init_help" && exit $ac_status
1497 if $ac_init_version; then
1500 generated by GNU Autoconf 2.68
1502 Copyright (C) 2010 Free Software Foundation, Inc.
1503 This configure script is free software; the Free Software Foundation
1504 gives unlimited permission to copy, distribute and modify it.
1506 Copyright (c) 1999-2012, International Business Machines Corporation and others. All Rights Reserved.
1511 ## ------------------------ ##
1512 ## Autoconf initialization. ##
1513 ## ------------------------ ##
1515 # ac_fn_c_try_compile LINENO
1516 # --------------------------
1517 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1518 ac_fn_c_try_compile ()
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1524 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1525 *) ac_try_echo
=$ac_try;;
1527 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528 $as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1531 if test -s conftest.err
; then
1532 grep -v '^ *+' conftest.err
>conftest.er1
1533 cat conftest.er1
>&5
1534 mv -f conftest.er1 conftest.err
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.
$ac_objext; then :
1543 $as_echo "$as_me: failed program was:" >&5
1544 sed 's/^/| /' conftest.
$ac_ext >&5
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status
$ac_retval
1551 } # ac_fn_c_try_compile
1553 # ac_fn_cxx_try_compile LINENO
1554 # ----------------------------
1555 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1556 ac_fn_cxx_try_compile
()
1558 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1559 rm -f conftest.
$ac_objext
1560 if { { ac_try
="$ac_compile"
1562 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566 $as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_cxx_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then :
1581 $as_echo "$as_me: failed program was:" >&5
1582 sed 's/^/| /' conftest.$ac_ext >&5
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1589 } # ac_fn_cxx_try_compile
1591 # ac_fn_c_try_cpp LINENO
1592 # ----------------------
1593 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_cpp conftest.$ac_ext"
1599 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1600 *) ac_try_echo
=$ac_try;;
1602 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1606 if test -s conftest.err
; then
1607 grep -v '^ *+' conftest.err
>conftest.er1
1608 cat conftest.er1
>&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } > conftest.i
&& {
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.
$ac_ext >&5
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status
$ac_retval
1628 # ac_fn_cxx_try_link LINENO
1629 # -------------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_cxx_try_link
()
1633 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1634 rm -f conftest.
$ac_objext conftest
$ac_exeext
1635 if { { ac_try
="$ac_link"
1637 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_cxx_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 $as_test_x conftest$ac_exeext
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1670 as_fn_set_status $ac_retval
1672 } # ac_fn_cxx_try_link
1674 # ac_fn_c_try_run LINENO
1675 # ----------------------
1676 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1677 # that executables *can* be run.
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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>&5
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1692 { { case "(($ac_try" in
1693 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_try") 2>&5
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; }; }; then :
1704 $as_echo "$as_me: program exited with status $ac_status" >&5
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1708 ac_retval=$ac_status
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1716 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1717 # --------------------------------------------
1718 # Tries to find the compile-time value of EXPR in a program that includes
1719 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1721 ac_fn_c_compute_int ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if test "$cross_compiling" = yes; then
1725 # Depending upon the size, compute the lo and hi bounds.
1726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1727 /* end confdefs.h. */
1732 static int test_array [1 - 2 * !(($2) >= 0)];
1739 if ac_fn_c_try_compile "$LINENO"; then :
1742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1743 /* end confdefs.h. */
1748 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756 ac_hi=$ac_mid; break
1758 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1759 if test $ac_lo -le $ac_mid; then
1763 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1774 static int test_array [1 - 2 * !(($2) < 0)];
1781 if ac_fn_c_try_compile "$LINENO"; then :
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1790 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1797 if ac_fn_c_try_compile "$LINENO"; then :
1798 ac_lo=$ac_mid; break
1800 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1801 if test $ac_mid -le $ac_hi; then
1805 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815 # Binary search between lo and hi bounds.
1816 while test "x$ac_lo" != "x$ac_hi"; do
1817 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1819 /* end confdefs.h. */
1824 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1831 if ac_fn_c_try_compile "$LINENO"; then :
1834 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1846 static long int longval () { return $2; }
1847 static unsigned long int ulongval () { return $2; }
1854 FILE *f = fopen ("conftest.val", "w");
1859 long int i = longval ();
1862 fprintf (f, "%ld", i);
1866 unsigned long int i = ulongval ();
1869 fprintf (f, "%lu", i);
1871 /* Do not output a trailing newline, as this causes \r\n confusion
1872 on some platforms. */
1873 return ferror (f) || fclose (f) != 0;
1879 if ac_fn_c_try_run "$LINENO"; then :
1880 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1885 conftest.$ac_objext conftest.beam conftest.$ac_ext
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_c_compute_int
1894 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1895 # -------------------------------------------------------
1896 # Tests whether HEADER exists and can be compiled using the include files in
1897 # INCLUDES, setting the cache variable VAR accordingly.
1898 ac_fn_c_check_header_compile ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1911 if ac_fn_c_try_compile "$LINENO"; then :
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_header_compile
1925 # ac_fn_c_try_link LINENO
1926 # -----------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded.
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1934 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1935 *) ac_try_echo
=$ac_try;;
1937 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1941 if test -s conftest.err
; then
1942 grep -v '^ *+' conftest.err
>conftest.er1
1943 cat conftest.er1
>&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest
$ac_exeext && {
1951 test "$cross_compiling" = yes ||
1952 $as_test_x conftest
$ac_exeext
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.
$ac_ext >&5
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963 # interfere with the next link command; also delete a directory that is
1964 # left behind by Apple's compiler. We do this before executing the actions.
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status
$ac_retval
1969 } # ac_fn_c_try_link
1971 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1974 # the include files in INCLUDES and setting the cache variable VAR
1976 ac_fn_c_check_header_mongrel
()
1978 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1979 if eval \
${$3+:} false
; then :
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \
${$3+:} false
; then :
1983 $as_echo_n "(cached) " >&6
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1989 # Is the header compilable?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1991 $as_echo_n "checking $2 usability... " >&6; }
1992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1997 if ac_fn_c_try_compile
"$LINENO"; then :
1998 ac_header_compiler
=yes
2000 ac_header_compiler
=no
2002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2004 $as_echo "$ac_header_compiler" >&6; }
2006 # Is the header present?
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2008 $as_echo_n "checking $2 presence... " >&6; }
2009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2013 if ac_fn_c_try_cpp
"$LINENO"; then :
2014 ac_header_preproc
=yes
2016 ac_header_preproc
=no
2018 rm -f conftest.err conftest.i conftest.
$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2020 $as_echo "$ac_header_preproc" >&6; }
2022 # So? What about this header?
2023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2026 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2032 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2034 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2036 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2038 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \
${$3+:} false
; then :
2046 $as_echo_n "(cached) " >&6
2048 eval "$3=\$ac_header_compiler"
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_header_mongrel
2058 # ac_fn_c_check_func LINENO FUNC VAR
2059 # ----------------------------------
2060 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2061 ac_fn_c_check_func
()
2063 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \
${$3+:} false
; then :
2067 $as_echo_n "(cached) " >&6
2069 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2073 #define $2 innocuous_$2
2075 /* System header to define __stub macros and hopefully few prototypes,
2076 which can conflict with char $2 (); below.
2077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2078 <limits.h> exists even on freestanding compilers. */
2081 # include <limits.h>
2083 # include <assert.h>
2088 /* Override any GCC internal prototype to avoid an error.
2089 Use char because int might match the return type of a GCC
2090 builtin and then its argument prototype would still apply. */
2095 /* The GNU C library defines this for functions which it implements
2096 to always fail with ENOSYS. Some functions are actually named
2097 something starting with __ and the normal name is an alias. */
2098 #if defined __stub_$2 || defined __stub___$2
2110 if ac_fn_c_try_link
"$LINENO"; then :
2115 rm -f core conftest.err conftest.
$ac_objext \
2116 conftest
$ac_exeext conftest.
$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120 $as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123 } # ac_fn_c_check_func
2125 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2126 # -------------------------------------------
2127 # Tests whether TYPE exists after having included INCLUDES, setting cache
2128 # variable VAR accordingly.
2129 ac_fn_c_check_type
()
2131 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if eval \
${$3+:} false
; then :
2135 $as_echo_n "(cached) " >&6
2138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2150 if ac_fn_c_try_compile
"$LINENO"; then :
2151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2152 /* end confdefs.h. */
2163 if ac_fn_c_try_compile
"$LINENO"; then :
2168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174 $as_echo "$ac_res" >&6; }
2175 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177 } # ac_fn_c_check_type
2178 cat >config.log
<<_ACEOF
2179 This file contains any messages produced by compilers while
2180 running configure, to aid debugging if configure makes a mistake.
2182 It was created by $as_me, which was
2183 generated by GNU Autoconf 2.68. Invocation command line was
2195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2204 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2205 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2208 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2209 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2210 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2214 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2218 test -z "$as_dir" && as_dir
=.
2219 $as_echo "PATH: $as_dir"
2235 # Keep a trace of the command line.
2236 # Strip out --no-create and --no-recursion so they do not pile up.
2237 # Strip out --silent because we don't want to record it for future runs.
2238 # Also quote any args containing shell meta-characters.
2239 # Make two passes to allow for proper duplicate-argument suppression.
2243 ac_must_keep_next
=false
2249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251 | -silent | --silent | --silen | --sile | --sil)
2254 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2257 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2259 as_fn_append ac_configure_args1
" '$ac_arg'"
2260 if test $ac_must_keep_next = true
; then
2261 ac_must_keep_next
=false
# Got value, back to normal.
2264 *=* | --config-cache | -C | -disable-* | --disable-* \
2265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267 | -with-* | --with-* | -without-* | --without-* | --x)
2268 case "$ac_configure_args0 " in
2269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2272 -* ) ac_must_keep_next
=true
;;
2275 as_fn_append ac_configure_args
" '$ac_arg'"
2280 { ac_configure_args0
=; unset ac_configure_args0
;}
2281 { ac_configure_args1
=; unset ac_configure_args1
;}
2283 # When interrupted or exit'd, cleanup temporary files, and complete
2284 # config.log. We remove comments because anyway the quotes in there
2285 # would cause problems or look ugly.
2286 # WARNING: Use '\'' to represent an apostrophe within the trap.
2287 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288 trap 'exit_status=$?
2289 # Save into config.log some information that might help in debugging.
2293 $as_echo "## ---------------- ##
2294 ## Cache variables. ##
2295 ## ---------------- ##"
2297 # The following way of writing the cache mishandles newlines in values,
2299 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2300 eval ac_val=\$$ac_var
2304 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2305 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2308 _ | IFS | as_nl) ;; #(
2309 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2310 *) { eval $ac_var=; unset $ac_var;} ;;
2315 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2316 *${as_nl}ac_space=\ *)
2318 "s/'\''/'\''\\\\'\'''\''/g;
2319 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2322 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2329 $as_echo "## ----------------- ##
2330 ## Output variables. ##
2331 ## ----------------- ##"
2333 for ac_var in $ac_subst_vars
2335 eval ac_val=\$$ac_var
2337 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 $as_echo "$ac_var='\''$ac_val'\''"
2343 if test -n "$ac_subst_files"; then
2344 $as_echo "## ------------------- ##
2345 ## File substitutions. ##
2346 ## ------------------- ##"
2348 for ac_var
in $ac_subst_files
2350 eval ac_val
=\$
$ac_var
2352 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 $as_echo "$ac_var='\''$ac_val'\''"
2359 if test -s confdefs.h; then
2360 $as_echo "## ----------- ##
2367 test "$ac_signal" != 0 &&
2368 $as_echo "$as_me: caught signal $ac_signal"
2369 $as_echo "$as_me: exit $exit_status"
2371 rm -f core *.core core.conftest.* &&
2372 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2375 for ac_signal
in 1 2 13 15; do
2376 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2380 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2381 rm -f -r conftest
* confdefs.h
2383 $as_echo "/* confdefs.h */" > confdefs.h
2385 # Predefined preprocessor variables.
2387 cat >>confdefs.h
<<_ACEOF
2388 #define PACKAGE_NAME "$PACKAGE_NAME"
2391 cat >>confdefs.h
<<_ACEOF
2392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2395 cat >>confdefs.h
<<_ACEOF
2396 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2399 cat >>confdefs.h
<<_ACEOF
2400 #define PACKAGE_STRING "$PACKAGE_STRING"
2403 cat >>confdefs.h
<<_ACEOF
2404 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2407 cat >>confdefs.h
<<_ACEOF
2408 #define PACKAGE_URL "$PACKAGE_URL"
2412 # Let the site file select an alternate cache file if it wants to.
2413 # Prefer an explicitly selected file to automatically selected ones.
2416 if test -n "$CONFIG_SITE"; then
2417 # We do not want a PATH search for config.site.
2418 case $CONFIG_SITE in #((
2419 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2420 */*) ac_site_file1
=$CONFIG_SITE;;
2421 *) ac_site_file1
=.
/$CONFIG_SITE;;
2423 elif test "x$prefix" != xNONE
; then
2424 ac_site_file1
=$prefix/share
/config.site
2425 ac_site_file2
=$prefix/etc
/config.site
2427 ac_site_file1
=$ac_default_prefix/share
/config.site
2428 ac_site_file2
=$ac_default_prefix/etc
/config.site
2430 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2432 test "x$ac_site_file" = xNONE
&& continue
2433 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2435 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2436 sed 's/^/| /' "$ac_site_file" >&5
2438 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440 as_fn_error $?
"failed to load site script $ac_site_file
2441 See \`config.log' for more details" "$LINENO" 5; }
2445 if test -r "$cache_file"; then
2446 # Some versions of bash will fail to source /dev/null (special files
2447 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2448 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2450 $as_echo "$as_me: loading cache $cache_file" >&6;}
2452 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2453 *) .
"./$cache_file";;
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2458 $as_echo "$as_me: creating cache $cache_file" >&6;}
2462 # Check that the precious variables saved in the cache have kept the same
2464 ac_cache_corrupted
=false
2465 for ac_var
in $ac_precious_vars; do
2466 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2467 eval ac_new_set
=\
$ac_env_${ac_var}_set
2468 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2469 eval ac_new_val
=\
$ac_env_${ac_var}_value
2470 case $ac_old_set,$ac_new_set in
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2473 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2474 ac_cache_corrupted
=: ;;
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2477 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2478 ac_cache_corrupted
=: ;;
2481 if test "x$ac_old_val" != "x$ac_new_val"; then
2482 # differences in whitespace do not lead to failure.
2483 ac_old_val_w
=`echo x $ac_old_val`
2484 ac_new_val_w
=`echo x $ac_new_val`
2485 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2487 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2488 ac_cache_corrupted
=:
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2491 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2492 eval $ac_var=\
$ac_old_val
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2495 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2497 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2500 # Pass precious variables to config.status.
2501 if test "$ac_new_set" = set; then
2503 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2504 *) ac_arg
=$ac_var=$ac_new_val ;;
2506 case " $ac_configure_args " in
2507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2508 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2512 if $ac_cache_corrupted; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2514 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2516 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2517 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2519 ## -------------------- ##
2520 ## Main body of script. ##
2521 ## -------------------- ##
2524 ac_cpp
='$CPP $CPPFLAGS'
2525 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2526 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2527 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2533 # m4_esyscmd_s([sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "./common/unicode/uvernum.h]"),
2534 # [http://icu-project.org/bugs],
2535 # [International Components for Unicode],
2536 # [http://icu-project.org])
2543 # Use custom echo test for newline option
2544 # Current autoconf (2.65) gives incorrect echo newline option
2546 # This may be removed later - mow (June 17, 2010)
2547 ICU_ECHO_C
= ICU_ECHO_N
= ICU_ECHO_T
=
2548 case `/bin/sh -c "echo -n x"` in
2550 case `/bin/sh -c "echo 'x\c'"` in
2551 *c
*) ICU_ECHO_T
=' ';; # ECHO_T is single tab character.
2552 *) ICU_ECHO_C
='\c';;
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5
2562 $as_echo_n "checking for ICU version numbers... " >&6; }
2564 # Get the ICU version from uversion.h or other headers
2566 sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2569 sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@"
2571 VERSION
=`geticuversion $srcdir/common/unicode/uvernum.h`
2572 if test x
"$VERSION" = x
; then
2573 as_fn_error $?
"Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5
2577 #if test "$VERSION" != "$PACKAGE_VERSION"; then
2578 # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf])
2581 UNICODE_VERSION
=`getuversion $srcdir/common/unicode/uchar.h`
2582 if test x
"$UNICODE_VERSION" = x
; then
2583 as_fn_error $?
"Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5
2585 # Compute a reasonable library version from the release version. This is
2586 # very bad, but that's wanted... We want to make sure that the LIB_VERSION
2587 # has at least a dot in it, so we'll add a .0 if needed.
2588 #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`]
2589 LIB_VERSION
=$VERSION
2590 LIB_VERSION_MAJOR
=`echo $LIB_VERSION | sed 's/\..*//'`
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5
2595 $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; }
2599 # Determine the host system
2601 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2602 if test -f "$ac_dir/install-sh"; then
2604 ac_install_sh
="$ac_aux_dir/install-sh -c"
2606 elif test -f "$ac_dir/install.sh"; then
2608 ac_install_sh
="$ac_aux_dir/install.sh -c"
2610 elif test -f "$ac_dir/shtool"; then
2612 ac_install_sh
="$ac_aux_dir/shtool install -c"
2616 if test -z "$ac_aux_dir"; then
2617 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2620 # These three variables are undocumented and unsupported,
2621 # and are intended to be withdrawn in a future Autoconf release.
2622 # They can cause serious problems if a builder's source tree is in a directory
2623 # whose full name contains unusual characters.
2624 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2625 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2626 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2629 # Make sure we can run config.sub.
2630 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2631 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2634 $as_echo_n "checking build system type... " >&6; }
2635 if ${ac_cv_build+:} false
; then :
2636 $as_echo_n "(cached) " >&6
2638 ac_build_alias
=$build_alias
2639 test "x$ac_build_alias" = x
&&
2640 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2641 test "x$ac_build_alias" = x
&&
2642 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2643 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2644 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2648 $as_echo "$ac_cv_build" >&6; }
2649 case $ac_cv_build in
2651 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2654 ac_save_IFS
=$IFS; IFS
='-'
2660 # Remember, the first character of IFS is used to create $*,
2661 # except with old shells:
2664 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2668 $as_echo_n "checking host system type... " >&6; }
2669 if ${ac_cv_host+:} false
; then :
2670 $as_echo_n "(cached) " >&6
2672 if test "x$host_alias" = x
; then
2673 ac_cv_host
=$ac_cv_build
2675 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2676 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2681 $as_echo "$ac_cv_host" >&6; }
2684 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2687 ac_save_IFS
=$IFS; IFS
='-'
2693 # Remember, the first character of IFS is used to create $*,
2694 # except with old shells:
2697 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2703 # This variable is needed on z/OS because the C++ compiler only recognizes .C
2705 export _CXX_CXXSUFFIX
2707 # Accumulate #defines
2711 # Check whether to build debug libraries
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5
2713 $as_echo_n "checking whether to build debug libraries... " >&6; }
2716 # Check whether --enable-debug was given.
2717 if test "${enable_debug+set}" = set; then :
2718 enableval
=$enable_debug; case "${enableval}" in
2719 yes|"") enabled
=yes; ENABLE_DEBUG
=1; CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2725 $as_echo "$enabled" >&6; }
2728 # Check whether to build release libraries
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5
2730 $as_echo_n "checking whether to build release libraries... " >&6; }
2733 # Check whether --enable-release was given.
2734 if test "${enable_release+set}" = set; then :
2735 enableval
=$enable_release; case "${enableval}" in
2736 no
) enabled
=no
; ENABLE_RELEASE
=0 ;;
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2742 $as_echo "$enabled" >&6; }
2745 # Don't use the default C/CXXFLags
2749 # Checks for programs
2751 ac_cpp
='$CPP $CPPFLAGS'
2752 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2753 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2754 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2755 if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2757 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_CC+:} false
; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC
="$CC" # Let the user override the test.
2766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir
=.
2771 for ac_exec_ext
in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2794 if test -z "$ac_cv_prog_CC"; then
2796 # Extract the first word of "gcc", so it can be a program name with args.
2797 set dummy gcc
; ac_word
=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2801 $as_echo_n "(cached) " >&6
2803 if test -n "$ac_ct_CC"; then
2804 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2806 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2810 test -z "$as_dir" && as_dir
=.
2811 for ac_exec_ext
in '' $ac_executable_extensions; do
2812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2813 ac_cv_prog_ac_ct_CC
="gcc"
2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2823 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2824 if test -n "$ac_ct_CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2826 $as_echo "$ac_ct_CC" >&6; }
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2832 if test "x$ac_ct_CC" = x
; then
2835 case $cross_compiling:$ac_tool_warned in
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2839 ac_tool_warned
=yes ;;
2847 if test -z "$CC"; then
2848 if test -n "$ac_tool_prefix"; then
2849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2850 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2852 $as_echo_n "checking for $ac_word... " >&6; }
2853 if ${ac_cv_prog_CC+:} false
; then :
2854 $as_echo_n "(cached) " >&6
2856 if test -n "$CC"; then
2857 ac_cv_prog_CC
="$CC" # Let the user override the test.
2859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir
=.
2864 for ac_exec_ext
in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2877 if test -n "$CC"; then
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2879 $as_echo "$CC" >&6; }
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2882 $as_echo "no" >&6; }
2888 if test -z "$CC"; then
2889 # Extract the first word of "cc", so it can be a program name with args.
2890 set dummy cc
; ac_word
=$2
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892 $as_echo_n "checking for $ac_word... " >&6; }
2893 if ${ac_cv_prog_CC+:} false
; then :
2894 $as_echo_n "(cached) " >&6
2896 if test -n "$CC"; then
2897 ac_cv_prog_CC
="$CC" # Let the user override the test.
2900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2904 test -z "$as_dir" && as_dir
=.
2905 for ac_exec_ext
in '' $ac_executable_extensions; do
2906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2908 ac_prog_rejected
=yes
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919 if test $ac_prog_rejected = yes; then
2920 # We found a bogon in the path, so make sure we never use it.
2921 set dummy
$ac_cv_prog_CC
2923 if test $# != 0; then
2924 # We chose a different compiler from the bogus one.
2925 # However, it has the same basename, so the bogon will be chosen
2926 # first if we set CC to just the basename; use the full file name.
2928 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2934 if test -n "$CC"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2936 $as_echo "$CC" >&6; }
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2944 if test -z "$CC"; then
2945 if test -n "$ac_tool_prefix"; then
2946 for ac_prog
in cl.exe
2948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2949 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_CC+:} false
; then :
2953 $as_echo_n "(cached) " >&6
2955 if test -n "$CC"; then
2956 ac_cv_prog_CC
="$CC" # Let the user override the test.
2958 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2962 test -z "$as_dir" && as_dir
=.
2963 for ac_exec_ext
in '' $ac_executable_extensions; do
2964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2965 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 if test -n "$CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2978 $as_echo "$CC" >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2985 test -n "$CC" && break
2988 if test -z "$CC"; then
2990 for ac_prog
in cl.exe
2992 # Extract the first word of "$ac_prog", so it can be a program name with args.
2993 set dummy
$ac_prog; ac_word
=$2
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2995 $as_echo_n "checking for $ac_word... " >&6; }
2996 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2997 $as_echo_n "(cached) " >&6
2999 if test -n "$ac_ct_CC"; then
3000 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3006 test -z "$as_dir" && as_dir
=.
3007 for ac_exec_ext
in '' $ac_executable_extensions; do
3008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3009 ac_cv_prog_ac_ct_CC
="$ac_prog"
3010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3020 if test -n "$ac_ct_CC"; then
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3022 $as_echo "$ac_ct_CC" >&6; }
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025 $as_echo "no" >&6; }
3029 test -n "$ac_ct_CC" && break
3032 if test "x$ac_ct_CC" = x
; then
3035 case $cross_compiling:$ac_tool_warned in
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3039 ac_tool_warned
=yes ;;
3048 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3050 as_fn_error $?
"no acceptable C compiler found in \$PATH
3051 See \`config.log' for more details" "$LINENO" 5; }
3053 # Provide some information about the compiler.
3054 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3057 for ac_option
in --version -v -V -qversion; do
3058 { { ac_try
="$ac_compiler $ac_option >&5"
3060 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3067 if test -s conftest.err; then
3069 ... rest of stderr output deleted ...
3070 10q' conftest.err >conftest.er1
3071 cat conftest.er1 >&5
3073 rm -f conftest.er1 conftest.err
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }
3078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3079 /* end confdefs.h. */
3089 ac_clean_files_save=$ac_clean_files
3090 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3091 # Try to create an executable without -o first, disregard a.out.
3092 # It will help us diagnose broken compilers, and finding out an intuition
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3095 $as_echo_n "checking whether the C compiler works... " >&6; }
3096 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3098 # The possible output files:
3099 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3102 for ac_file in $ac_files
3105 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3106 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3111 if { { ac_try="$ac_link_default"
3113 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3114 *) ac_try_echo
=$ac_try;;
3116 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_link_default") 2>&5
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; then :
3122 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3123 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3124 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3125 # so that the user can short-circuit this test for compilers unknown to
3127 for ac_file
in $ac_files ''
3129 test -f "$ac_file" || continue
3131 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3134 # We found the default executable, but exeext='' is most
3138 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3140 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3142 # We set ac_cv_exeext here because the later test for it is not
3143 # safe: cross compilers may not add the suffix if given an `-o'
3144 # argument, so we may need to know it at that point already.
3145 # Even if this section looks crufty: it has the advantage of
3152 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3157 if test -z "$ac_file"; then :
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 $as_echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.
$ac_ext >&5
3163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3165 as_fn_error
77 "C compiler cannot create executables
3166 See \`config.log' for more details" "$LINENO" 5; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3169 $as_echo "yes" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3172 $as_echo_n "checking for C compiler default output file name... " >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3174 $as_echo "$ac_file" >&6; }
3175 ac_exeext
=$ac_cv_exeext
3177 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3178 ac_clean_files
=$ac_clean_files_save
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3180 $as_echo_n "checking for suffix of executables... " >&6; }
3181 if { { ac_try
="$ac_link"
3183 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_link") 2>&5
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }; then :
3192 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3193 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3194 # work properly (i.e., refer to `conftest.exe'), while it won't with
3196 for ac_file
in conftest.exe conftest conftest.
*; do
3197 test -f "$ac_file" || continue
3199 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3200 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3209 See \`config.log' for more details" "$LINENO" 5; }
3211 rm -f conftest conftest
$ac_cv_exeext
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3213 $as_echo "$ac_cv_exeext" >&6; }
3215 rm -f conftest.
$ac_ext
3216 EXEEXT
=$ac_cv_exeext
3218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3224 FILE *f = fopen ("conftest.out", "w");
3225 return ferror (f) || fclose (f) != 0;
3231 ac_clean_files
="$ac_clean_files conftest.out"
3232 # Check that the compiler produces executables we can run. If not, either
3233 # the compiler is broken, or we cross compile.
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3235 $as_echo_n "checking whether we are cross compiling... " >&6; }
3236 if test "$cross_compiling" != yes; then
3237 { { ac_try
="$ac_link"
3239 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243 $as_echo "$ac_try_echo"; } >&5
3244 (eval "$ac_link") 2>&5
3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247 test $ac_status = 0; }
3248 if { ac_try='./conftest$ac_cv_exeext'
3249 { { case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3251 *) ac_try_echo
=$ac_try;;
3253 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3254 $as_echo "$ac_try_echo"; } >&5
3255 (eval "$ac_try") 2>&5
3257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3258 test $ac_status = 0; }; }; then
3261 if test "$cross_compiling" = maybe
; then
3264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3265 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3266 as_fn_error $?
"cannot run C compiled programs.
3267 If you meant to cross compile, use \`--host'.
3268 See \`config.log' for more details" "$LINENO" 5; }
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3273 $as_echo "$cross_compiling" >&6; }
3275 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3276 ac_clean_files
=$ac_clean_files_save
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3278 $as_echo_n "checking for suffix of object files... " >&6; }
3279 if ${ac_cv_objext+:} false
; then :
3280 $as_echo_n "(cached) " >&6
3282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3293 rm -f conftest.o conftest.obj
3294 if { { ac_try
="$ac_compile"
3296 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3297 *) ac_try_echo=$ac_try;;
3299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3300 $as_echo "$ac_try_echo"; } >&5
3301 (eval "$ac_compile") 2>&5
3303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3304 test $ac_status = 0; }; then :
3305 for ac_file in conftest.o conftest.obj conftest.*; do
3306 test -f "$ac_file" || continue;
3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3309 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3314 $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3319 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3320 See \
`config.log' for more details" "$LINENO" 5; }
3322 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3325 $as_echo "$ac_cv_objext" >&6; }
3326 OBJEXT=$ac_cv_objext
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3329 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3330 if ${ac_cv_c_compiler_gnu+:} false; then :
3331 $as_echo_n "(cached) " >&6
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3347 if ac_fn_c_try_compile "$LINENO"; then :
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3357 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3358 if test $ac_compiler_gnu = yes; then
3363 ac_test_CFLAGS=${CFLAGS+set}
3364 ac_save_CFLAGS=$CFLAGS
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3366 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3367 if ${ac_cv_prog_cc_g+:} false; then :
3368 $as_echo_n "(cached) " >&6
3370 ac_save_c_werror_flag=$ac_c_werror_flag
3371 ac_c_werror_flag=yes
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3385 if ac_fn_c_try_compile "$LINENO"; then :
3389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3390 /* end confdefs.h. */
3400 if ac_fn_c_try_compile "$LINENO"; then :
3403 ac_c_werror_flag=$ac_save_c_werror_flag
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3416 if ac_fn_c_try_compile "$LINENO"; then :
3419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3424 ac_c_werror_flag=$ac_save_c_werror_flag
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3427 $as_echo "$ac_cv_prog_cc_g" >&6; }
3428 if test "$ac_test_CFLAGS" = set; then
3429 CFLAGS=$ac_save_CFLAGS
3430 elif test $ac_cv_prog_cc_g = yes; then
3431 if test "$GCC" = yes; then
3437 if test "$GCC" = yes; then
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3444 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3445 if ${ac_cv_prog_cc_c89+:} false; then :
3446 $as_echo_n "(cached) " >&6
3448 ac_cv_prog_cc_c89=no
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3454 #include <sys/types.h>
3455 #include <sys/stat.h>
3456 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3457 struct buf { int x; };
3458 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3459 static char *e (p, i)
3465 static char *f (char * (*g) (char **, int), char **p, ...)
3470 s = g (p, va_arg (v,int));
3475 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3476 function prototypes and stuff, but not '\xHH' hex character constants.
3477 These don't provoke an error unfortunately, instead are silently treated
3478 as 'x'. The following induces an error, until -std is added to get
3479 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3480 array size at least. It's necessary to write '\x00'==0 to get something
3481 that's true only with -std. */
3482 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3484 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3485 inside strings and character constants. */
3487 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3489 int test (int i, double x);
3490 struct s1 {int (*f) (int a);};
3491 struct s2 {int (*f) (double a);};
3492 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3498 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3503 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3504 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3506 CC="$ac_save_CC $ac_arg"
3507 if ac_fn_c_try_compile "$LINENO"; then :
3508 ac_cv_prog_cc_c89=$ac_arg
3510 rm -f core conftest.err conftest.$ac_objext
3511 test "x$ac_cv_prog_cc_c89" != "xno" && break
3513 rm -f conftest.$ac_ext
3518 case "x$ac_cv_prog_cc_c89" in
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3521 $as_echo "none needed" >&6; } ;;
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3524 $as_echo "unsupported" >&6; } ;;
3526 CC="$CC $ac_cv_prog_cc_c89"
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3528 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3530 if test "x$ac_cv_prog_cc_c89" != xno; then :
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 ac_cpp='$CXXCPP $CPPFLAGS'
3542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3545 if test -z "$CXX"; then
3546 if test -n "$CCC"; then
3549 if test -n "$ac_tool_prefix"; then
3550 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3552 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3553 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_CXX+:} false; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$CXX"; then
3560 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir=.
3567 for ac_exec_ext in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3580 if test -n "$CXX"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3582 $as_echo "$CXX" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3589 test -n "$CXX" && break
3592 if test -z "$CXX"; then
3594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3596 # Extract the first word of "$ac_prog", so it can be a program name with args.
3597 set dummy $ac_prog; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3601 $as_echo_n "(cached) " >&6
3603 if test -n "$ac_ct_CXX"; then
3604 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_ac_ct_CXX="$ac_prog"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3624 if test -n "$ac_ct_CXX"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3626 $as_echo "$ac_ct_CXX" >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3633 test -n "$ac_ct_CXX" && break
3636 if test "x$ac_ct_CXX" = x; then
3639 case $cross_compiling:$ac_tool_warned in
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3643 ac_tool_warned=yes ;;
3651 # Provide some information about the compiler.
3652 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3655 for ac_option in --version -v -V -qversion; do
3656 { { ac_try="$ac_compiler $ac_option >&5"
3658 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3659 *) ac_try_echo
=$ac_try;;
3661 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3665 if test -s conftest.err
; then
3667 ... rest of stderr output deleted ...
3668 10q' conftest.err
>conftest.er1
3669 cat conftest.er1
>&5
3671 rm -f conftest.er1 conftest.err
3672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3673 test $ac_status = 0; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3677 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3678 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3679 $as_echo_n "(cached) " >&6
3681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3695 if ac_fn_cxx_try_compile
"$LINENO"; then :
3700 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3701 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3705 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3706 if test $ac_compiler_gnu = yes; then
3711 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3712 ac_save_CXXFLAGS
=$CXXFLAGS
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3714 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3715 if ${ac_cv_prog_cxx_g+:} false
; then :
3716 $as_echo_n "(cached) " >&6
3718 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3719 ac_cxx_werror_flag
=yes
3722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3733 if ac_fn_cxx_try_compile
"$LINENO"; then :
3734 ac_cv_prog_cxx_g
=yes
3737 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3748 if ac_fn_cxx_try_compile
"$LINENO"; then :
3751 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3764 if ac_fn_cxx_try_compile
"$LINENO"; then :
3765 ac_cv_prog_cxx_g
=yes
3767 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3772 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3775 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3776 if test "$ac_test_CXXFLAGS" = set; then
3777 CXXFLAGS
=$ac_save_CXXFLAGS
3778 elif test $ac_cv_prog_cxx_g = yes; then
3779 if test "$GXX" = yes; then
3785 if test "$GXX" = yes; then
3792 ac_cpp
='$CPP $CPPFLAGS'
3793 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3794 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3795 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3798 # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option
3799 # The release mode use is the default one for autoconf
3800 if test "$GCC" = yes; then
3801 if test "$CFLAGS" = ""; then
3802 if test "$ENABLE_DEBUG" = 1; then
3805 if test "$ENABLE_RELEASE" = 1; then
3806 CFLAGS
="$CFLAGS -O2"
3809 if test "$CXXFLAGS" = ""; then
3810 if test "$ENABLE_DEBUG" = 1; then
3813 if test "$ENABLE_RELEASE" = 1; then
3814 CXXFLAGS
="$CXXFLAGS -O2"
3820 ac_cpp
='$CPP $CPPFLAGS'
3821 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3825 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3830 if test -z "$CPP"; then
3831 if ${ac_cv_prog_CPP+:} false
; then :
3832 $as_echo_n "(cached) " >&6
3834 # Double quotes because CPP needs to be expanded
3835 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3838 for ac_c_preproc_warn_flag
in '' yes
3840 # Use a header file that comes with gcc, so configuring glibc
3841 # with a fresh cross-compiler works.
3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3843 # <limits.h> exists even on freestanding compilers.
3844 # On the NeXT, cc -E runs the code through the compiler's parser,
3845 # not just through cpp. "Syntax error" is here to catch this case.
3846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3849 # include <limits.h>
3851 # include <assert.h>
3855 if ac_fn_c_try_cpp
"$LINENO"; then :
3858 # Broken: fails on valid input.
3861 rm -f conftest.err conftest.i conftest.
$ac_ext
3863 # OK, works on sane cases. Now check whether nonexistent headers
3864 # can be detected and how.
3865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #include <ac_nonexistent.h>
3869 if ac_fn_c_try_cpp
"$LINENO"; then :
3870 # Broken: success on invalid input.
3873 # Passes both tests.
3877 rm -f conftest.err conftest.i conftest.
$ac_ext
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.i conftest.err conftest.
$ac_ext
3882 if $ac_preproc_ok; then :
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3895 $as_echo "$CPP" >&6; }
3897 for ac_c_preproc_warn_flag
in '' yes
3899 # Use a header file that comes with gcc, so configuring glibc
3900 # with a fresh cross-compiler works.
3901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902 # <limits.h> exists even on freestanding compilers.
3903 # On the NeXT, cc -E runs the code through the compiler's parser,
3904 # not just through cpp. "Syntax error" is here to catch this case.
3905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3908 # include <limits.h>
3910 # include <assert.h>
3914 if ac_fn_c_try_cpp
"$LINENO"; then :
3917 # Broken: fails on valid input.
3920 rm -f conftest.err conftest.i conftest.
$ac_ext
3922 # OK, works on sane cases. Now check whether nonexistent headers
3923 # can be detected and how.
3924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3928 if ac_fn_c_try_cpp
"$LINENO"; then :
3929 # Broken: success on invalid input.
3932 # Passes both tests.
3936 rm -f conftest.err conftest.i conftest.
$ac_ext
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.i conftest.err conftest.
$ac_ext
3941 if $ac_preproc_ok; then :
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details" "$LINENO" 5; }
3951 ac_cpp
='$CPP $CPPFLAGS'
3952 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3957 # Find a good install program. We prefer a C program (faster),
3958 # so one script is as good as another. But avoid the broken or
3959 # incompatible versions:
3960 # SysV /etc/install, /usr/sbin/install
3961 # SunOS /usr/etc/install
3962 # IRIX /sbin/install
3964 # AmigaOS /C/install, which installs bootblocks on floppy discs
3965 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3966 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3967 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3968 # OS/2's system install, which has a completely different semantic
3969 # ./install, which can be erroneously created by make from ./install.sh.
3970 # Reject install programs that cannot install multiple files.
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3972 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3973 if test -z "$INSTALL"; then
3974 if ${ac_cv_path_install+:} false
; then :
3975 $as_echo_n "(cached) " >&6
3977 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3981 test -z "$as_dir" && as_dir
=.
3982 # Account for people who put trailing slashes in PATH elements.
3983 case $as_dir/ in #((
3984 .
/ | .
// | /[cC
]/* | \
3985 /etc
/* | /usr
/sbin
/* | /usr
/etc
/* | /sbin
/* | /usr
/afsws
/bin
/* | \
3986 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3989 # OSF1 and SCO ODT 3.0 have their own names for install.
3990 # Don't use installbsd from OSF since it installs stuff as root
3992 for ac_prog
in ginstall scoinst
install; do
3993 for ac_exec_ext
in '' $ac_executable_extensions; do
3994 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3995 if test $ac_prog = install &&
3996 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3997 # AIX install. It has an incompatible calling convention.
3999 elif test $ac_prog = install &&
4000 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4001 # program-specific install script used by HP pwplus--don't use.
4004 rm -rf conftest.one conftest.two conftest.dir
4005 echo one
> conftest.one
4006 echo two
> conftest.two
4008 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
4009 test -s conftest.one
&& test -s conftest.two
&&
4010 test -s conftest.dir
/conftest.one
&&
4011 test -s conftest.dir
/conftest.two
4013 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4026 rm -rf conftest.one conftest.two conftest.dir
4029 if test "${ac_cv_path_install+set}" = set; then
4030 INSTALL
=$ac_cv_path_install
4032 # As a last resort, use the slow shell script. Don't cache a
4033 # value for INSTALL within a source directory, because that will
4034 # break other packages using the cache if that directory is
4035 # removed, or if the value is a relative name.
4036 INSTALL
=$ac_install_sh
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4040 $as_echo "$INSTALL" >&6; }
4042 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4043 # It thinks the first close brace ends the variable substitution.
4044 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4046 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4048 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4054 ac_cpp
='$CXXCPP $CPPFLAGS'
4055 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4056 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4057 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4071 if ac_fn_cxx_try_link
"$LINENO"; then :
4074 rm -f core conftest.err conftest.
$ac_objext \
4075 conftest
$ac_exeext conftest.
$ac_ext
4077 ac_cpp
='$CPP $CPPFLAGS'
4078 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4083 # make sure install is relative to srcdir - if a script
4084 if test "$srcdir" = "."; then
4085 # If srcdir isn't just ., then (srcdir) is already prepended.
4086 if test "${ac_install_sh}" = "${INSTALL}"; then
4087 INSTALL
="\\\$(top_srcdir)/${ac_install_sh}"
4091 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
4092 #AC_CHECK_PROG(STRIP, strip, strip, true)
4094 # Check for the platform make
4095 for ac_prog
in gmake gnumake
4097 # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy
$ac_prog; ac_word
=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_path_U_MAKE+:} false
; then :
4102 $as_echo_n "(cached) " >&6
4106 ac_cv_path_U_MAKE
="$U_MAKE" # Let the user override the test with a path.
4109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir
=.
4114 for ac_exec_ext
in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_path_U_MAKE
="$as_dir/$ac_word$ac_exec_ext"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 U_MAKE
=$ac_cv_path_U_MAKE
4128 if test -n "$U_MAKE"; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5
4130 $as_echo "$U_MAKE" >&6; }
4132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4133 $as_echo "no" >&6; }
4137 test -n "$U_MAKE" && break
4139 test -n "$U_MAKE" || U_MAKE
="make"
4145 # Check whether --with-cross-build was given.
4146 if test "${with_cross_build+set}" = set; then :
4147 withval
=$with_cross_build; cross_buildroot
="${withval}"
4153 if test "X$cross_buildroot" = "X"; then
4154 if test "$cross_compiling" = "yes"; then
4155 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
4158 if test -f "${cross_buildroot}/config/icucross.mk"; then
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5
4160 $as_echo "Using cross buildroot: $cross_buildroot" >&6; }
4162 if test -d "${cross_buildroot}"; then
4163 as_fn_error $?
"${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5
4165 as_fn_error $?
"No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5
4171 # Check for doxygen to generate documentation
4172 # Extract the first word of "doxygen", so it can be a program name with args.
4173 set dummy doxygen
; ac_word
=$2
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175 $as_echo_n "checking for $ac_word... " >&6; }
4176 if ${ac_cv_path_DOXYGEN+:} false
; then :
4177 $as_echo_n "(cached) " >&6
4181 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
4184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4185 as_dummy
="$PATH:/usr/local/bin:/usr/bin"
4186 for as_dir
in $as_dummy
4189 test -z "$as_dir" && as_dir
=.
4190 for ac_exec_ext
in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 DOXYGEN
=$ac_cv_path_DOXYGEN
4204 if test -n "$DOXYGEN"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
4206 $as_echo "$DOXYGEN" >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4214 # Check that the linker is usable
4217 *-*-cygwin*|*-*-mingw*)
4218 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
4219 as_fn_error $?
"link.exe is not a valid linker. Your PATH is incorrect.
4220 Please follow the directions in ICU's readme." "$LINENO" 5
4225 # Determine the executable suffix
4226 # We don't use AC_EXEEXT because some compilers output separate debugging
4227 # files, which confuses the AC_EXEEXT macro.
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5
4229 $as_echo_n "checking checking for executable suffix... " >&6; }
4231 *-*-cygwin*|*-*-mingw*) EXEEXT
=.exe
;;
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
4236 $as_echo "$EXEEXT" >&6; }
4239 # Determine how strict we want to be when compiling
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5
4242 $as_echo_n "checking whether strict compiling is on... " >&6; }
4243 # Check whether --enable-strict was given.
4244 if test "${enable_strict+set}" = set; then :
4245 enableval
=$enable_strict;
4246 if test "$enableval" = no
4248 ac_use_strict_options
=no
4250 ac_use_strict_options
=yes
4254 ac_use_strict_options
=yes
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5
4258 $as_echo "$ac_use_strict_options" >&6; }
4260 if test "$ac_use_strict_options" = yes
4262 if test "$GCC" = yes
4266 CFLAGS
="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long"
4267 CFLAGS
="$CFLAGS -D__STDC__=0";;
4269 echo "# Note: We are not using '-ansi' with HP/UX GCC because int64_t broke, see <http://bugs.icu-project.org/trac/ticket/8493>"
4270 CFLAGS
="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
4272 CFLAGS
="$CFLAGS -Wall -ansi -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -Wno-long-long";;
4277 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
4279 CFLAGS
="$CFLAGS /W4"
4283 if test "$GXX" = yes
4285 CXXFLAGS
="$CXXFLAGS -W -Wall -ansi -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
4288 CXXFLAGS
="$CXXFLAGS -D__STDC__=0";;
4293 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
4295 CXXFLAGS
="$CXXFLAGS /W4"
4302 # Check if we can build and use 64-bit libraries
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4306 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4307 if ${ac_cv_path_GREP+:} false
; then :
4308 $as_echo_n "(cached) " >&6
4310 if test -z "$GREP"; then
4311 ac_path_GREP_found
=false
4312 # Loop through the user's path and test for each of PROGNAME-LIST
4313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4314 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4317 test -z "$as_dir" && as_dir
=.
4318 for ac_prog
in grep ggrep
; do
4319 for ac_exec_ext
in '' $ac_executable_extensions; do
4320 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4321 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4322 # Check for GNU ac_path_GREP and select it if it is found.
4323 # Check for GNU $ac_path_GREP
4324 case `"$ac_path_GREP" --version 2>&1` in
4326 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4329 $as_echo_n 0123456789 >"conftest.in"
4332 cat "conftest.in" "conftest.in" >"conftest.tmp"
4333 mv "conftest.tmp" "conftest.in"
4334 cp "conftest.in" "conftest.nl"
4335 $as_echo 'GREP' >> "conftest.nl"
4336 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4337 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4338 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4339 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4340 # Best one so far, save it but keep looking for a better one
4341 ac_cv_path_GREP
="$ac_path_GREP"
4342 ac_path_GREP_max
=$ac_count
4344 # 10*(2^10) chars as input seems more than enough
4345 test $ac_count -gt 10 && break
4347 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4350 $ac_path_GREP_found && break 3
4355 if test -z "$ac_cv_path_GREP"; then
4356 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359 ac_cv_path_GREP
=$GREP
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4364 $as_echo "$ac_cv_path_GREP" >&6; }
4365 GREP
="$ac_cv_path_GREP"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4369 $as_echo_n "checking for egrep... " >&6; }
4370 if ${ac_cv_path_EGREP+:} false
; then :
4371 $as_echo_n "(cached) " >&6
4373 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4374 then ac_cv_path_EGREP
="$GREP -E"
4376 if test -z "$EGREP"; then
4377 ac_path_EGREP_found
=false
4378 # Loop through the user's path and test for each of PROGNAME-LIST
4379 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4380 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4383 test -z "$as_dir" && as_dir
=.
4384 for ac_prog
in egrep; do
4385 for ac_exec_ext
in '' $ac_executable_extensions; do
4386 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4387 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4388 # Check for GNU ac_path_EGREP and select it if it is found.
4389 # Check for GNU $ac_path_EGREP
4390 case `"$ac_path_EGREP" --version 2>&1` in
4392 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4395 $as_echo_n 0123456789 >"conftest.in"
4398 cat "conftest.in" "conftest.in" >"conftest.tmp"
4399 mv "conftest.tmp" "conftest.in"
4400 cp "conftest.in" "conftest.nl"
4401 $as_echo 'EGREP' >> "conftest.nl"
4402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4403 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4404 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4406 # Best one so far, save it but keep looking for a better one
4407 ac_cv_path_EGREP
="$ac_path_EGREP"
4408 ac_path_EGREP_max
=$ac_count
4410 # 10*(2^10) chars as input seems more than enough
4411 test $ac_count -gt 10 && break
4413 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4416 $ac_path_EGREP_found && break 3
4421 if test -z "$ac_cv_path_EGREP"; then
4422 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4425 ac_cv_path_EGREP
=$EGREP
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4431 $as_echo "$ac_cv_path_EGREP" >&6; }
4432 EGREP
="$ac_cv_path_EGREP"
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4436 $as_echo_n "checking for ANSI C header files... " >&6; }
4437 if ${ac_cv_header_stdc+:} false
; then :
4438 $as_echo_n "(cached) " >&6
4440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4441 /* end confdefs.h. */
4455 if ac_fn_c_try_compile
"$LINENO"; then :
4456 ac_cv_header_stdc
=yes
4458 ac_cv_header_stdc
=no
4460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4462 if test $ac_cv_header_stdc = yes; then
4463 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4470 $EGREP "memchr" >/dev
/null
2>&1; then :
4473 ac_cv_header_stdc
=no
4479 if test $ac_cv_header_stdc = yes; then
4480 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "free" >/dev
/null
2>&1; then :
4490 ac_cv_header_stdc
=no
4496 if test $ac_cv_header_stdc = yes; then
4497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4498 if test "$cross_compiling" = yes; then :
4501 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4505 #if ((' ' & 0x0FF) == 0x020)
4506 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4507 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4509 # define ISLOWER(c) \
4510 (('a' <= (c) && (c) <= 'i') \
4511 || ('j' <= (c) && (c) <= 'r') \
4512 || ('s' <= (c) && (c) <= 'z'))
4513 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4516 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4521 for (i = 0; i < 256; i++)
4522 if (XOR (islower (i), ISLOWER (i))
4523 || toupper (i) != TOUPPER (i))
4528 if ac_fn_c_try_run
"$LINENO"; then :
4531 ac_cv_header_stdc
=no
4533 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4534 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4540 $as_echo "$ac_cv_header_stdc" >&6; }
4541 if test $ac_cv_header_stdc = yes; then
4543 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4547 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4548 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4549 inttypes.h stdint.h unistd.h
4551 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4552 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4554 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4555 cat >>confdefs.h
<<_ACEOF
4556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4566 ENABLE_64BIT_LIBS
=unknown
4567 ## revisit this for cross-compile.
4569 # Check whether --enable-64bit-libs was given.
4570 if test "${enable_64bit_libs+set}" = set; then :
4571 enableval
=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs"
4572 case "${enableval}" in
4573 no
|false
|32) with_library_bits
=32; ;;
4574 yes|true
|64) with_library_bits
=64else32
;;
4575 nochange
) with_library_bits
=nochange
; ;;
4576 *) as_fn_error $?
"bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;;
4583 # Check whether --with-library-bits was given.
4584 if test "${with_library_bits+set}" = set; then :
4585 withval
=$with_library_bits; case "${withval}" in
4586 ""|nochange
) BITS_REQ
=$withval ;;
4587 32|64|64else32
) BITS_REQ
=$withval ;;
4588 *) as_fn_error $?
"bad value ${withval} for --with-library-bits" "$LINENO" 5 ;;
4593 # don't use these for cross compiling
4594 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
4595 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
4597 # The cast to long int works around a bug in the HP C Compiler
4598 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4599 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4600 # This bug is HP SR number 8606223364.
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4602 $as_echo_n "checking size of void *... " >&6; }
4603 if ${ac_cv_sizeof_void_p+:} false
; then :
4604 $as_echo_n "(cached) " >&6
4606 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4609 if test "$ac_cv_type_void_p" = yes; then
4610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4612 as_fn_error
77 "cannot compute sizeof (void *)
4613 See \`config.log' for more details" "$LINENO" 5; }
4615 ac_cv_sizeof_void_p
=0
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4621 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4625 cat >>confdefs.h
<<_ACEOF
4626 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5
4631 $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; }
4632 case $ac_cv_sizeof_void_p in
4633 8) DEFAULT_64BIT
=yes ;;
4634 4) DEFAULT_64BIT
=no
;;
4635 *) DEFAULT_64BIT
=unknown
4639 # 'OK' here means, we can exit any further checking, everything's copa
4642 # do we need to check for buildable/runnable 32 or 64 bit?
4646 # later, can we run the 32/64 bit binaries so made?
4650 if test "$DEFAULT_64BIT" = "yes"; then
4651 # we get 64 bits by default.
4655 # need to look for 32 bit support.
4659 # everyone else is happy.
4663 elif test "$DEFAULT_64BIT" = "no"; then
4664 # not 64 bit by default.
4674 elif test "$DEFAULT_64BIT" = "unknown"; then
4678 64|64else32
) BITS_OK
=no
4680 BITS_CHECK_64
=yes ;;
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5
4688 $as_echo "$DEFAULT_64BIT" >&6; };
4690 if test "$BITS_OK" != "yes"; then
4691 # not copa. back these up.
4692 CFLAGS_OLD
="${CFLAGS}"
4693 CXXFLAGS_OLD
="${CXXFLAGS}"
4694 LDFLAGS_OLD
="${LDFLAGS}"
4695 ARFLAGS_OLD
="${ARFLAGS}"
4697 CFLAGS_32
="${CFLAGS}"
4698 CXXFLAGS_32
="${CXXFLAGS}"
4699 LDFLAGS_32
="${LDFLAGS}"
4700 ARFLAGS_32
="${ARFLAGS}"
4702 CFLAGS_64
="${CFLAGS}"
4703 CXXFLAGS_64
="${CXXFLAGS}"
4704 LDFLAGS_64
="${LDFLAGS}"
4705 ARFLAGS_64
="${ARFLAGS}"
4707 CAN_BUILD_64
=unknown
4708 CAN_BUILD_32
=unknown
4709 # These results can't be cached because is sets compiler flags.
4710 if test "$BITS_CHECK_64" = "yes"; then
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5
4712 $as_echo_n "checking how to build 64-bit executables... " >&6; }
4715 # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it.
4716 # Note, we don't have to actually check if the options work- we'll try them before using them.
4717 # So, only try actually testing the options, if you are trying to decide between multiple options.
4718 # On exit from the following clauses:
4719 # if CAN_BUILD_64=yes:
4720 # *FLAGS are assumed to contain the right settings for 64bit
4721 # else if CAN_BUILD_64=no: (default)
4722 # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD
4724 if test "$GCC" = yes; then
4725 CFLAGS
="${CFLAGS} -m64"
4726 CXXFLAGS
="${CXXFLAGS} -m64"
4727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4729 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4731 if ac_fn_c_try_compile
"$LINENO"; then :
4736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4741 CFLAGS
="${CFLAGS} -m64"
4742 CXXFLAGS
="${CXXFLAGS} -m64"
4743 if test "$cross_compiling" = yes; then :
4744 CAN_BUILD_64
=unknown
4746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4748 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4750 if ac_fn_c_try_run
"$LINENO"; then :
4755 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4756 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4759 if test "$CAN_BUILD_64" != yes; then
4760 # Nope. back out changes.
4761 CFLAGS
="${CFLAGS_OLD}"
4762 CXXFLAGS
="${CFLAGS_OLD}"
4763 # 2. try xarch=v9 [deprecated]
4764 ## TODO: cross compile: the following won't work.
4765 SPARCV9
=`isainfo -n 2>&1 | grep sparcv9`
4766 SOL64
=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
4767 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
4768 if test -z "$SOL64" && test -n "$SPARCV9"; then
4769 CFLAGS
="${CFLAGS} -xtarget=ultra -xarch=v9"
4770 CXXFLAGS
="${CXXFLAGS} -xtarget=ultra -xarch=v9"
4771 LDFLAGS
="${LDFLAGS} -xtarget=ultra -xarch=v9"
4778 CFLAGS
="${CFLAGS} -m64"
4779 CXXFLAGS
="${CXXFLAGS} -m64"
4780 if test "$cross_compiling" = yes; then :
4781 CAN_BUILD_64
=unknown
4783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4785 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4787 if ac_fn_c_try_run
"$LINENO"; then :
4792 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4793 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4796 if test "$CAN_BUILD_64" != yes; then
4797 # Nope. back out changes.
4798 CFLAGS
="${CFLAGS_OLD}"
4799 CXXFLAGS
="${CXXFLAGS_OLD}"
4800 # 2. try the older compiler option
4801 ## TODO: cross compile problem
4802 AMD64
=`isainfo -n 2>&1 | grep amd64`
4803 SOL64
=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
4804 if test -z "$SOL64" && test -n "$AMD64"; then
4805 CFLAGS
="${CFLAGS} -xtarget=generic64"
4806 CXXFLAGS
="${CXXFLAGS} -xtarget=generic64"
4812 # check for ecc/ecpc compiler support
4813 ## TODO: cross compiler problem
4814 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
4815 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
4821 # vcvarsamd64.bat should have been used to enable 64-bit builds.
4822 # We only do this check to display the correct answer.
4823 ## TODO: cross compiler problem
4824 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
4828 *-*-aix*|powerpc64
-*-linux*)
4829 CFLAGS
="${CFLAGS} -q64"
4830 CXXFLAGS
="${CXXFLAGS} -q64"
4831 LDFLAGS
="${LDFLAGS} -q64"
4832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4836 if ac_fn_c_try_compile
"$LINENO"; then :
4841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4842 if test "$CAN_BUILD_64" = yes; then
4843 # worked- set other options.
4846 # tell AIX what executable mode to use.
4847 ARFLAGS
="${ARFLAGS} -X64"
4852 # First we try the newer +DD64, if that doesn't work,
4853 # try other options.
4855 CFLAGS
="${CFLAGS} +DD64"
4856 CXXFLAGS
="${CXXFLAGS} +DD64"
4857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4861 if ac_fn_c_try_compile
"$LINENO"; then :
4866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4867 if test "$CAN_BUILD_64" != yes; then
4869 CFLAGS
="${CFLAGS_OLD}"
4870 CXXFLAGS
="${CXXFLAGS_OLD}"
4872 CFLAGS
="${CFLAGS} +DA2.0W"
4873 CXXFLAGS
="${CXXFLAGS} +DA2.0W"
4874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4875 /* end confdefs.h. */
4876 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4878 if ac_fn_c_try_compile
"$LINENO"; then :
4883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4886 *-*ibm
-openedition*|*-*-os390*)
4887 CFLAGS
="${CFLAGS} -Wc,lp64"
4888 CXXFLAGS
="${CXXFLAGS} -Wc,lp64"
4889 LDFLAGS
="${LDFLAGS} -Wl,lp64"
4890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4892 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4894 if ac_fn_c_try_compile
"$LINENO"; then :
4899 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5
4907 $as_echo "$CAN_BUILD_64" >&6; }
4908 if test "$CAN_BUILD_64" = yes; then
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5
4910 $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; }
4911 if test "$cross_compiling" = yes; then :
4914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4916 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4918 if ac_fn_c_try_run
"$LINENO"; then :
4923 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4924 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5
4928 $as_echo "$BITS_RUN_64" >&6; };
4930 CFLAGS_64
="${CFLAGS}"
4931 CXXFLAGS_64
="${CXXFLAGS}"
4932 LDFLAGS_64
="${LDFLAGS}"
4933 ARFLAGS_64
="${ARFLAGS}"
4936 CFLAGS
="${CFLAGS_OLD}"
4937 CXXFLAGS
="${CXXFLAGS_OLD}"
4938 LDFLAGS
="${LDFLAGS_OLD}"
4939 ARFLAGS
="${ARFLAGS_OLD}"
4941 if test "$BITS_CHECK_32" = "yes"; then
4942 # see comment under 'if BITS_CHECK_64', above.
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5
4944 $as_echo_n "checking how to build 32-bit executables... " >&6; }
4945 if test "$GCC" = yes; then
4946 CFLAGS
="${CFLAGS} -m32"
4947 CXXFLAGS
="${CXXFLAGS} -m32"
4948 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4949 /* end confdefs.h. */
4950 int main(void) {return (sizeof(void*)*8==32)?0:1;}
4952 if ac_fn_c_try_compile
"$LINENO"; then :
4957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5
4960 $as_echo "$CAN_BUILD_32" >&6; }
4961 if test "$CAN_BUILD_32" = yes; then
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5
4963 $as_echo_n "checking whether runnable 32-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==32)?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_32" >&5
4981 $as_echo "$BITS_RUN_32" >&6; };
4982 CFLAGS_32
="${CFLAGS}"
4983 CXXFLAGS_32
="${CXXFLAGS}"
4984 LDFLAGS_32
="${LDFLAGS}"
4985 ARFLAGS_32
="${ARFLAGS}"
4988 CFLAGS
="${CFLAGS_OLD}"
4989 CXXFLAGS
="${CXXFLAGS_OLD}"
4990 LDFLAGS
="${LDFLAGS_OLD}"
4991 ARFLAGS
="${ARFLAGS_OLD}"
4995 # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do.
4998 # First, implement 64else32
4999 if test "$BITS_REQ" = "64else32"; then
5000 if test "$BITS_RUN_64" = "yes"; then
5009 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
5010 CFLAGS
="${CFLAGS_32}"
5011 CXXFLAGS
="${CXXFLAGS_32}"
5012 LDFLAGS
="${LDFLAGS_32}"
5013 ARFLAGS
="${ARFLAGS_32}"
5015 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
5016 CFLAGS
="${CFLAGS_64}"
5017 CXXFLAGS
="${CXXFLAGS_64}"
5018 LDFLAGS
="${LDFLAGS_64}"
5019 ARFLAGS
="${ARFLAGS_64}"
5021 elif test "$BITS_OK" != "yes"; then
5022 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
5029 # Determine the Makefile fragment
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5
5032 $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; }
5033 if ${icu_cv_host_frag+:} false
; then :
5034 $as_echo_n "(cached) " >&6
5039 if test "$GCC" = yes; then
5040 icu_cv_host_frag
=mh
-solaris-gcc
5042 icu_cv_host_frag
=mh
-solaris
5045 if test "$GCC" = yes; then
5046 icu_cv_host_frag
=mh
-alpha-linux-gcc
5048 icu_cv_host_frag
=mh
-alpha-linux-cc
5051 if test "$GCC" = yes; then
5052 icu_cv_host_frag
=mh
-linux
5054 icu_cv_host_frag
=mh
-linux-va
5056 *-*-linux*|*-*-gnu|*-*-k*bsd
*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag
=mh
-linux ;;
5057 *-*-cygwin|*-*-mingw32)
5058 if test "$GCC" = yes; then
5059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5063 #error This is not MinGW
5073 if ac_fn_c_try_compile
"$LINENO"; then :
5074 icu_cv_host_frag
=mh
-mingw
5076 icu_cv_host_frag
=mh
-cygwin
5078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5080 icu_cv_host_frag
=mh
-cygwin-msvc
5082 *-*-*bsd
*|*-*-dragonfly*) icu_cv_host_frag
=mh
-bsd-gcc ;;
5084 if test "$GCC" = yes; then
5085 icu_cv_host_frag
=mh
-aix-gcc
5087 icu_cv_host_frag
=mh
-aix-va
5090 if test "$GCC" = yes; then
5091 icu_cv_host_frag
=mh
-hpux-gcc
5094 *aCC
) icu_cv_host_frag
=mh
-hpux-acc ;;
5097 *-*ibm
-openedition*|*-*-os390*) icu_cv_host_frag
=mh
-os390 ;;
5098 *-*-os400*) icu_cv_host_frag
=mh
-os400 ;;
5099 *-apple-rhapsody*) icu_cv_host_frag
=mh
-darwin ;;
5100 *-apple-darwin*) icu_cv_host_frag
=mh
-darwin ;;
5101 *-*-beos) icu_cv_host_frag
=mh
-beos ;;
5102 *-*-haiku) icu_cv_host_frag
=mh
-haiku ;;
5103 *-*-irix*) icu_cv_host_frag
=mh
-irix ;;
5104 *-dec-osf*) icu_cv_host_frag
=mh
-alpha-osf ;;
5105 *-*-nto*) icu_cv_host_frag
=mh
-qnx ;;
5106 *-ncr-*) icu_cv_host_frag
=mh
-mpras ;;
5107 *) icu_cv_host_frag
=mh
-unknown ;;
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5
5113 $as_echo "$icu_cv_host_frag" >&6; }
5116 # Checks for libraries and other host specific stuff
5117 # On HP/UX, don't link to -lm from a shared lib because it isn't
5118 # PIC (at least on 10.2)
5120 *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5121 $as_echo_n "checking for floor in -lm... " >&6; }
5122 if ${ac_cv_lib_m_floor+:} false
; then :
5123 $as_echo_n "(cached) " >&6
5125 ac_check_lib_save_LIBS
=$LIBS
5127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5130 /* Override any GCC internal prototype to avoid an error.
5131 Use char because int might match the return type of a GCC
5132 builtin and then its argument prototype would still apply. */
5145 if ac_fn_c_try_link
"$LINENO"; then :
5146 ac_cv_lib_m_floor
=yes
5148 ac_cv_lib_m_floor
=no
5150 rm -f core conftest.err conftest.
$ac_objext \
5151 conftest
$ac_exeext conftest.
$ac_ext
5152 LIBS
=$ac_check_lib_save_LIBS
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5155 $as_echo "$ac_cv_lib_m_floor" >&6; }
5156 if test "x$ac_cv_lib_m_floor" = xyes
; then :
5161 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5162 $as_echo_n "checking for floor in -lm... " >&6; }
5163 if ${ac_cv_lib_m_floor+:} false
; then :
5164 $as_echo_n "(cached) " >&6
5166 ac_check_lib_save_LIBS
=$LIBS
5168 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5169 /* end confdefs.h. */
5171 /* Override any GCC internal prototype to avoid an error.
5172 Use char because int might match the return type of a GCC
5173 builtin and then its argument prototype would still apply. */
5186 if ac_fn_c_try_link
"$LINENO"; then :
5187 ac_cv_lib_m_floor
=yes
5189 ac_cv_lib_m_floor
=no
5191 rm -f core conftest.err conftest.
$ac_objext \
5192 conftest
$ac_exeext conftest.
$ac_ext
5193 LIBS
=$ac_check_lib_save_LIBS
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5196 $as_echo "$ac_cv_lib_m_floor" >&6; }
5197 if test "x$ac_cv_lib_m_floor" = xyes
; then :
5198 cat >>confdefs.h
<<_ACEOF
5210 # Check whether to build shared libraries
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5212 $as_echo_n "checking whether to build shared libraries... " >&6; }
5214 # Check whether --enable-shared was given.
5215 if test "${enable_shared+set}" = set; then :
5216 enableval
=$enable_shared; case "${enableval}" in
5217 yes|"") enabled
=yes; ENABLE_SHARED
=YES
;;
5222 enabled
=yes; ENABLE_SHARED
=YES
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5227 $as_echo "$enabled" >&6; }
5230 # Check whether to build static libraries
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5232 $as_echo_n "checking whether to build static libraries... " >&6; }
5234 # Check whether --enable-static was given.
5235 if test "${enable_static+set}" = set; then :
5236 enableval
=$enable_static; case "${enableval}" in
5237 yes|"") enabled
=yes; ENABLE_STATIC
=YES
;;
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5244 $as_echo "$enabled" >&6; }
5247 # When building release static library, there might be some optimization flags we can use
5248 if test "$ENABLE_STATIC" = "YES"; then
5249 if test "$ENABLE_SHARED" != "YES"; then
5250 if test "$ENABLE_RELEASE" = 1; then
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5
5252 $as_echo_n "checking whether we can use static library optimization option... " >&6; }
5253 CHECK_STATIC_OPT_FLAG
=no
5255 OLD_CPPFLAGS
="${CPPFLAGS}"
5256 OLD_LDFLAGS
="${LDFLAGS}"
5259 *-linux*|i
*86-*-*bsd
*|i
*86-pc-gnu)
5260 if test "$ac_cv_c_compiler_gnu" = yes; then
5261 CPPFLAGS
="${CPPFLAGS} -ffunction-sections -fdata-sections"
5262 LDFLAGS
="${LDFLAGS} -Wl,--gc-sections"
5269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5280 if ac_fn_c_try_link
"$LINENO"; then :
5281 CHECK_STATIC_OPT_FLAG
=yes
5283 CHECK_STATIC_OPT_FLAG
=no
5285 rm -f core conftest.err conftest.
$ac_objext \
5286 conftest
$ac_exeext conftest.
$ac_ext
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5
5288 $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; }
5289 if test "$CHECK_STATIC_OPT_FLAG" = no
; then
5290 CPPFLAGS
="${OLD_CPPFLAGS}"
5291 LDFLAGS
="${OLD_LDFLAGS}"
5298 # Check whether to enable auto cleanup of libraries
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5
5300 $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; }
5302 UCLN_NO_AUTO_CLEANUP
=1
5303 # Check whether --enable-auto-cleanup was given.
5304 if test "${enable_auto_cleanup+set}" = set; then :
5305 enableval
=$enable_auto_cleanup; case "${enableval}" in
5307 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
5308 UCLN_NO_AUTO_CLEANUP
=0
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5315 $as_echo "$enabled" >&6; }
5318 # MSVC floating-point option
5319 MSVC_RELEASE_FLAG
=""
5320 if test $enabled = yes
5322 if test $icu_cv_host_frag = mh
-cygwin-msvc
5324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5327 #if defined _MSC_VER && _MSC_VER >= 1400
5329 Microsoft Visual C++ < 2005
5340 if ac_fn_c_try_compile
"$LINENO"; then :
5341 MSVC_RELEASE_FLAG
="/fp:precise"
5343 MSVC_RELEASE_FLAG
="/Op"
5345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5347 CFLAGS
="${CFLAGS} ${MSVC_RELEASE_FLAG}"
5348 CXXFLAGS
="${CXXFLAGS} ${MSVC_RELEASE_FLAG}"
5352 # Check whether to enabled draft APIs
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5
5354 $as_echo_n "checking whether to enable draft APIs... " >&6; }
5356 U_DEFAULT_SHOW_DRAFT
=1
5357 # Check whether --enable-draft was given.
5358 if test "${enable_draft+set}" = set; then :
5359 enableval
=$enable_draft; case "${enableval}" in
5360 no
) enabled
=no
; U_DEFAULT_SHOW_DRAFT
=0;
5361 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5368 $as_echo "$enabled" >&6; }
5369 # Make sure that we can use draft API in ICU.
5370 if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
5371 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API"
5375 if test -n "$ac_tool_prefix"; then
5376 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5377 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_prog_RANLIB+:} false
; then :
5381 $as_echo_n "(cached) " >&6
5383 if test -n "$RANLIB"; then
5384 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5390 test -z "$as_dir" && as_dir
=.
5391 for ac_exec_ext
in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 RANLIB
=$ac_cv_prog_RANLIB
5404 if test -n "$RANLIB"; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5406 $as_echo "$RANLIB" >&6; }
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; }
5414 if test -z "$ac_cv_prog_RANLIB"; then
5415 ac_ct_RANLIB
=$RANLIB
5416 # Extract the first word of "ranlib", so it can be a program name with args.
5417 set dummy ranlib
; ac_word
=$2
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5419 $as_echo_n "checking for $ac_word... " >&6; }
5420 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5421 $as_echo_n "(cached) " >&6
5423 if test -n "$ac_ct_RANLIB"; then
5424 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5430 test -z "$as_dir" && as_dir
=.
5431 for ac_exec_ext
in '' $ac_executable_extensions; do
5432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5433 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5443 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5444 if test -n "$ac_ct_RANLIB"; then
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5446 $as_echo "$ac_ct_RANLIB" >&6; }
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5449 $as_echo "no" >&6; }
5452 if test "x$ac_ct_RANLIB" = x
; then
5455 case $cross_compiling:$ac_tool_warned in
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5458 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5459 ac_tool_warned
=yes ;;
5461 RANLIB
=$ac_ct_RANLIB
5464 RANLIB
="$ac_cv_prog_RANLIB"
5468 # look for 'ar' the proper way
5469 if test -n "$ac_tool_prefix"; then
5470 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5471 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if ${ac_cv_prog_AR+:} false
; then :
5475 $as_echo_n "(cached) " >&6
5477 if test -n "$AR"; then
5478 ac_cv_prog_AR
="$AR" # Let the user override the test.
5480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5484 test -z "$as_dir" && as_dir
=.
5485 for ac_exec_ext
in '' $ac_executable_extensions; do
5486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5487 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 if test -n "$AR"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5500 $as_echo "$AR" >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5508 if test -z "$ac_cv_prog_AR"; then
5510 # Extract the first word of "ar", so it can be a program name with args.
5511 set dummy
ar; ac_word
=$2
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5513 $as_echo_n "checking for $ac_word... " >&6; }
5514 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5515 $as_echo_n "(cached) " >&6
5517 if test -n "$ac_ct_AR"; then
5518 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5524 test -z "$as_dir" && as_dir
=.
5525 for ac_exec_ext
in '' $ac_executable_extensions; do
5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527 ac_cv_prog_ac_ct_AR
="ar"
5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5537 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5538 if test -n "$ac_ct_AR"; then
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5540 $as_echo "$ac_ct_AR" >&6; }
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5546 if test "x$ac_ct_AR" = x
; then
5549 case $cross_compiling:$ac_tool_warned in
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5553 ac_tool_warned
=yes ;;
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5
5563 $as_echo_n "checking whether to enable renaming of symbols... " >&6; }
5565 U_DISABLE_RENAMING
=0
5566 # Check whether --enable-renaming was given.
5567 if test "${enable_renaming+set}" = set; then :
5568 enableval
=$enable_renaming; case "${enableval}" in
5569 yes|"") enabled
=yes ;;
5570 no
) enabled
=no
; U_DISABLE_RENAMING
=1;
5571 UCONFIG_CPPFLAGS
="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5578 $as_echo "$enabled" >&6; }
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5
5582 $as_echo_n "checking whether to enable function and data tracing... " >&6; }
5585 # Check whether --enable-tracing was given.
5586 if test "${enable_tracing+set}" = set; then :
5587 enableval
=$enable_tracing; case "${enableval}" in
5588 yes|"") enabled
=yes;
5589 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
5590 U_ENABLE_TRACING
=1 ;;
5591 no
) enabled
=no
; U_ENABLE_TRACING
=0 ;;
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5597 $as_echo "$enabled" >&6; }
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5
5604 $as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; }
5605 # Check whether --enable-dyload was given.
5606 if test "${enable_dyload+set}" = set; then :
5607 enableval
=$enable_dyload; case "${enableval}" in
5615 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5
5622 $as_echo "$enable" >&6; }
5625 if test "$enable" = "yes"; then
5626 for ac_header
in dlfcn.h
5628 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5629 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5630 cat >>confdefs.h
<<_ACEOF
5631 #define HAVE_DLFCN_H 1
5638 #AC_MSG_RESULT($enabled)
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5640 $as_echo_n "checking for library containing dlopen... " >&6; }
5641 if ${ac_cv_search_dlopen+:} false
; then :
5642 $as_echo_n "(cached) " >&6
5644 ac_func_search_save_LIBS
=$LIBS
5645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5648 /* Override any GCC internal prototype to avoid an error.
5649 Use char because int might match the return type of a GCC
5650 builtin and then its argument prototype would still apply. */
5663 for ac_lib
in '' dl
; do
5664 if test -z "$ac_lib"; then
5665 ac_res
="none required"
5668 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5670 if ac_fn_c_try_link
"$LINENO"; then :
5671 ac_cv_search_dlopen
=$ac_res
5673 rm -f core conftest.err conftest.
$ac_objext \
5675 if ${ac_cv_search_dlopen+:} false
; then :
5679 if ${ac_cv_search_dlopen+:} false
; then :
5682 ac_cv_search_dlopen
=no
5685 LIBS
=$ac_func_search_save_LIBS
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5688 $as_echo "$ac_cv_search_dlopen" >&6; }
5689 ac_res
=$ac_cv_search_dlopen
5690 if test "$ac_res" != no
; then :
5691 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5695 for ac_func
in dlopen
5697 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5698 if test "x$ac_cv_func_dlopen" = xyes
; then :
5699 cat >>confdefs.h
<<_ACEOF
5700 #define HAVE_DLOPEN 1
5707 if test "x$ac_cv_func_dlopen" != xyes
; then
5708 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
5712 # Check for miscellanous functions.
5713 # So, use for putil / tools only.
5714 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
5715 for ac_func
in gettimeofday
5717 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5718 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
5719 cat >>confdefs.h
<<_ACEOF
5720 #define HAVE_GETTIMEOFDAY 1
5728 # Check whether to use the evil rpath or not
5729 # Check whether --enable-rpath was given.
5730 if test "${enable_rpath+set}" = set; then :
5731 enableval
=$enable_rpath; case "${enableval}" in
5732 yes|"") ENABLE_RPATH
=YES
;;
5746 ac_cpp
='$CXXCPP $CPPFLAGS'
5747 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5
5752 $as_echo_n "checking if we have a C++ compiler... " >&6; }
5753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5764 if ac_fn_cxx_try_compile
"$LINENO"; then :
5769 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5770 if test $cxx_okay = yes
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5
5773 $as_echo "Good" >&6; }
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5776 $as_echo "no" >&6; }
5777 as_fn_error $?
"C++ compiler $CXX does not work or no compiler found" "$LINENO" 5
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5
5781 $as_echo_n "checking if #include <string> works... " >&6; }
5782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5783 /* end confdefs.h. */
5793 if ac_fn_cxx_try_compile
"$LINENO"; then :
5794 ac_cv_header_stdstring
=yes
5796 ac_cv_header_stdstring
=no
5798 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5
5800 $as_echo "$ac_cv_header_stdstring" >&6; }
5801 if test $ac_cv_header_stdstring = yes
5806 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0"
5810 ac_cpp
='$CPP $CPPFLAGS'
5811 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5818 # Enable/disable threads
5819 # Check whether --enable-threads was given.
5820 if test "${enable_threads+set}" = set; then :
5821 enableval
=$enable_threads; case "${enableval}" in
5822 yes) threads
=true
;;
5823 no
) threads
=false
;;
5824 *) as_fn_error $?
"bad value ${enableval} for --enable-threads" "$LINENO" 5 ;;
5831 if test "$threads" = true
; then
5840 if test $threads = true
; then
5841 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
5842 # and must do this before seaching for pthread_mutex_destroy, or
5843 # we will pick up libpthreads.so not libpthread.so
5844 # If this fails, then we must test for HPUX specials, before
5845 # moving on to a more generic test
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
5848 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
5849 if ${ac_cv_lib_pthread_pthread_attr_init+:} false
; then :
5850 $as_echo_n "(cached) " >&6
5852 ac_check_lib_save_LIBS
=$LIBS
5853 LIBS
="-lpthread $LIBS"
5854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5855 /* end confdefs.h. */
5857 /* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5863 char pthread_attr_init ();
5867 return pthread_attr_init ();
5872 if ac_fn_c_try_link
"$LINENO"; then :
5873 ac_cv_lib_pthread_pthread_attr_init
=yes
5875 ac_cv_lib_pthread_pthread_attr_init
=no
5877 rm -f core conftest.err conftest.
$ac_objext \
5878 conftest
$ac_exeext conftest.
$ac_ext
5879 LIBS
=$ac_check_lib_save_LIBS
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
5882 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
5883 if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes
; then :
5884 cat >>confdefs.h
<<_ACEOF
5885 #define HAVE_LIBPTHREAD 1
5888 LIBS
="-lpthread $LIBS"
5892 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
5895 # Locate the right library for POSIX threads. We look for the
5896 # symbols in the libraries first, because on Solaris libc provides
5897 # pthread_create but libpthread has the real code :(
5898 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
5899 # FreeBSD users may need libpthread if they do not have libc_r.
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5
5903 $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; }
5904 if ${ac_cv_search_pthread_mutex_destroy+:} false
; then :
5905 $as_echo_n "(cached) " >&6
5907 ac_func_search_save_LIBS
="$LIBS"
5908 ac_cv_search_pthread_mutex_destroy
="no"
5909 for i
in pthread pthreads c_r
; do
5910 LIBS
="-l$i $ac_func_search_save_LIBS"
5911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5912 /* end confdefs.h. */
5914 /* Override any GCC internal prototype to avoid an error.
5915 Use char because int might match the return type of a GCC
5916 builtin and then its argument prototype would still apply. */
5920 char pthread_mutex_destroy ();
5924 return pthread_mutex_destroy ();
5929 if ac_fn_c_try_link
"$LINENO"; then :
5930 ac_cv_search_pthread_mutex_destroy
="-l$i"
5933 rm -f core conftest.err conftest.
$ac_objext \
5934 conftest
$ac_exeext conftest.
$ac_ext
5936 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
5937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5940 /* Override any GCC internal prototype to avoid an error.
5941 Use char because int might match the return type of a GCC
5942 builtin and then its argument prototype would still apply. */
5946 char pthread_mutex_destroy ();
5950 return pthread_mutex_destroy ();
5955 if ac_fn_c_try_link
"$LINENO"; then :
5956 ac_cv_search_pthread_mutex_destroy
="none required"
5958 rm -f core conftest.err conftest.
$ac_objext \
5959 conftest
$ac_exeext conftest.
$ac_ext
5961 LIBS
="$ac_func_search_save_LIBS"
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5
5964 $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; }
5965 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
5966 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS
="$ac_cv_search_pthread_mutex_destroy $LIBS"
5972 if test "$ac_cv_search_pthread_mutex_destroy" != no
; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
5977 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
5978 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false
; then :
5979 $as_echo_n "(cached) " >&6
5981 ac_check_lib_save_LIBS
=$LIBS
5982 LIBS
="-lpthread $LIBS"
5983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5986 /* Override any GCC internal prototype to avoid an error.
5987 Use char because int might match the return type of a GCC
5988 builtin and then its argument prototype would still apply. */
5992 char pthread_mutex_init ();
5996 return pthread_mutex_init ();
6001 if ac_fn_c_try_link
"$LINENO"; then :
6002 ac_cv_lib_pthread_pthread_mutex_init
=yes
6004 ac_cv_lib_pthread_pthread_mutex_init
=no
6006 rm -f core conftest.err conftest.
$ac_objext \
6007 conftest
$ac_exeext conftest.
$ac_ext
6008 LIBS
=$ac_check_lib_save_LIBS
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
6011 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
6012 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
; then :
6013 cat >>confdefs.h
<<_ACEOF
6014 #define HAVE_LIBPTHREAD 1
6017 LIBS
="-lpthread $LIBS"
6021 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
6026 ac_fn_c_check_func
"$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
6027 if test "x$ac_cv_func_pthread_mutex_lock" = xyes
; then :
6032 if test $ac_cv_func_pthread_mutex_lock = yes; then
6036 # Check to see if we are using CygWin with MSVC
6038 *-pc-cygwin*|*-pc-mingw*)
6039 # For gcc, the thread options are set by mh-mingw/mh-cygwin
6040 # For msvc, the thread options are set by runConfigureICU
6044 # Add -mt because it does several nice things on newer compilers.
6045 case "${icu_cv_host_frag}" in
6047 OLD_CXXFLAGS
="${CXXFLAGS}"
6048 CXXFLAGS
="${CXXFLAGS} -mt"
6049 if test x
"`${CXX} ${CXXFLAGS} 2>&1`" != x
""; then
6050 CXXFLAGS
="${OLD_CXXFLAGS}"
6056 case "${icu_cv_host_frag}" in
6067 # Check whether --enable-weak-threads was given.
6068 if test "${enable_weak_threads+set}" = set; then :
6069 enableval
=$enable_weak_threads; case "${enableval}" in
6071 LIB_THREAD
="${LIBS%${OLD_LIBS}}"
6075 *) as_fn_error $?
"bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;;
6083 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
6084 # Do this check instead.
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
6087 $as_echo_n "checking for mmap... " >&6; }
6088 if ${ac_cv_func_mmap_ok+:} false
; then :
6089 $as_echo_n "(cached) " >&6
6091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6092 /* end confdefs.h. */
6094 #include <sys/mman.h>
6095 #include <sys/stat.h>
6100 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
6105 if ac_fn_c_try_link
"$LINENO"; then :
6106 ac_cv_func_mmap_ok
=yes
6108 ac_cv_func_mmap_ok
=no
6110 rm -f core conftest.err conftest.
$ac_objext \
6111 conftest
$ac_exeext conftest.
$ac_ext
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
6115 $as_echo "$ac_cv_func_mmap_ok" >&6; }
6116 if test $ac_cv_func_mmap_ok = yes
6120 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5
6125 $as_echo_n "checking for genccode assembly... " >&6; }
6127 # Check to see if genccode can generate simple assembly.
6130 *-linux*|*-kfreebsd*-gnu*|i
*86-*-*bsd
*|i
*86-pc-gnu)
6131 if test "$GCC" = yes; then
6132 # We're using gcc, and the simple -a gcc command line works for genccode
6133 GENCCODE_ASSEMBLY
="-a gcc"
6136 if test "$GCC" = yes; then
6137 # When using gcc, look if we're also using GNU as.
6138 # When using GNU as, the simple -a gcc command line works for genccode.
6139 asv
=`"${CC}" -print-prog-name=as 2>/dev/null`
6140 asv
=`"${asv}" --version 2>/dev/null`
6142 X
*GNU
*) GENCCODE_ASSEMBLY
="-a gcc" ;;
6143 X
*) GENCCODE_ASSEMBLY
="-a sun-x86" ;;
6147 GENCCODE_ASSEMBLY
="-a sun-x86"
6150 GENCCODE_ASSEMBLY
="-a sun"
6153 GENCCODE_ASSEMBLY
="-a aCC-ia64"
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5
6159 $as_echo "$GENCCODE_ASSEMBLY" >&6; }
6161 # Checks for header files
6162 for ac_header
in inttypes.h
6164 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6165 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
6166 cat >>confdefs.h
<<_ACEOF
6167 #define HAVE_INTTYPES_H 1
6174 if test $ac_cv_header_inttypes_h = no
; then
6176 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6180 if test "$CC" = ccc
; then
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5
6182 $as_echo "\"C compiler set to CCC ${CC}\" " >&6; }
6184 alpha
*-*-*) U_HAVE_INTTYPES_H
=0;
6185 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6191 for ac_header
in dirent.h
6193 ac_fn_c_check_header_mongrel
"$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
6194 if test "x$ac_cv_header_dirent_h" = xyes
; then :
6195 cat >>confdefs.h
<<_ACEOF
6196 #define HAVE_DIRENT_H 1
6203 if test $ac_cv_header_dirent_h = no
; then
6205 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
6212 # Check for endianness
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6214 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6215 if ${ac_cv_c_bigendian+:} false
; then :
6216 $as_echo_n "(cached) " >&6
6218 ac_cv_c_bigendian
=unknown
6219 # See if we're dealing with a universal compiler.
6220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6222 #ifndef __APPLE_CC__
6223 not a universal capable compiler
6228 if ac_fn_c_try_compile
"$LINENO"; then :
6230 # Check for potential -arch flags. It is not universal unless
6231 # there are at least two -arch flags with different values.
6234 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6235 if test -n "$ac_prev"; then
6237 i?
86 | x86_64
| ppc
| ppc64
)
6238 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
6241 ac_cv_c_bigendian
=universal
6247 elif test "x$ac_word" = "x-arch"; then
6252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6253 if test $ac_cv_c_bigendian = unknown
; then
6254 # See if sys/param.h defines the BYTE_ORDER macro.
6255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6256 /* end confdefs.h. */
6257 #include <sys/types.h>
6258 #include <sys/param.h>
6263 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6264 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6273 if ac_fn_c_try_compile
"$LINENO"; then :
6274 # It does; now see whether it defined to BIG_ENDIAN or not.
6275 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6276 /* end confdefs.h. */
6277 #include <sys/types.h>
6278 #include <sys/param.h>
6283 #if BYTE_ORDER != BIG_ENDIAN
6291 if ac_fn_c_try_compile
"$LINENO"; then :
6292 ac_cv_c_bigendian
=yes
6294 ac_cv_c_bigendian
=no
6296 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6298 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6300 if test $ac_cv_c_bigendian = unknown
; then
6301 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6303 /* end confdefs.h. */
6309 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6317 if ac_fn_c_try_compile
"$LINENO"; then :
6318 # It does; now see whether it defined to _BIG_ENDIAN or not.
6319 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6334 if ac_fn_c_try_compile
"$LINENO"; then :
6335 ac_cv_c_bigendian
=yes
6337 ac_cv_c_bigendian
=no
6339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6341 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6343 if test $ac_cv_c_bigendian = unknown
; then
6344 # Compile a test program.
6345 if test "$cross_compiling" = yes; then :
6346 # Try to guess by grepping values from an object file.
6347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6348 /* end confdefs.h. */
6349 short int ascii_mm[] =
6350 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6351 short int ascii_ii[] =
6352 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6353 int use_ascii (int i) {
6354 return ascii_mm[i] + ascii_ii[i];
6356 short int ebcdic_ii[] =
6357 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6358 short int ebcdic_mm[] =
6359 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6360 int use_ebcdic (int i) {
6361 return ebcdic_mm[i] + ebcdic_ii[i];
6368 return use_ascii (foo) == use_ebcdic (foo);
6373 if ac_fn_c_try_compile
"$LINENO"; then :
6374 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6375 ac_cv_c_bigendian
=yes
6377 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6378 if test "$ac_cv_c_bigendian" = unknown
; then
6379 ac_cv_c_bigendian
=no
6381 # finding both strings is unlikely to happen, but who knows?
6382 ac_cv_c_bigendian
=unknown
6386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6388 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6389 /* end confdefs.h. */
6390 $ac_includes_default
6395 /* Are we little or big endian? From Harbison&Steele. */
6399 char c[sizeof (long int)];
6402 return u.c[sizeof (long int) - 1] == 1;
6408 if ac_fn_c_try_run
"$LINENO"; then :
6409 ac_cv_c_bigendian
=no
6411 ac_cv_c_bigendian
=yes
6413 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6414 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6420 $as_echo "$ac_cv_c_bigendian" >&6; }
6421 case $ac_cv_c_bigendian in #(
6423 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6429 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6433 as_fn_error $?
"unknown endianness
6434 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6437 if test $ac_cv_c_bigendian = no
; then
6446 # Do various POSIX related checks
6447 U_HAVE_NL_LANGINFO_CODESET
=0
6448 U_NL_LANGINFO_CODESET
=-1
6449 ac_fn_c_check_func
"$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6450 if test "x$ac_cv_func_nl_langinfo" = xyes
; then :
6451 U_HAVE_NL_LANGINFO
=1
6453 U_HAVE_NL_LANGINFO
=0
6456 if test $U_HAVE_NL_LANGINFO -eq 1; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5
6458 $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
6459 if ${ac_cv_nl_langinfo_codeset+:} false
; then :
6460 $as_echo_n "(cached) " >&6
6462 ac_cv_nl_langinfo_codeset
="unknown"
6463 for a
in CODESET _NL_CTYPE_CODESET_NAME
; do
6464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6465 /* end confdefs.h. */
6466 #include <langinfo.h>
6475 if ac_fn_c_try_link
"$LINENO"; then :
6476 ac_cv_nl_langinfo_codeset
="$a"; break
6478 rm -f core conftest.err conftest.
$ac_objext \
6479 conftest
$ac_exeext conftest.
$ac_ext
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5
6483 $as_echo "$ac_cv_nl_langinfo_codeset" >&6; }
6484 if test x
$ac_cv_nl_langinfo_codeset != xunknown
6486 U_HAVE_NL_LANGINFO_CODESET
=1
6487 U_NL_LANGINFO_CODESET
=$ac_cv_nl_langinfo_codeset
6488 if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET"
6490 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
6493 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
6499 # Namespace support checks
6501 ac_cpp
='$CXXCPP $CPPFLAGS'
6502 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6503 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6504 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5
6507 $as_echo_n "checking for namespace support... " >&6; }
6508 if ${ac_cv_namespace_ok+:} false
; then :
6509 $as_echo_n "(cached) " >&6
6511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6512 /* end confdefs.h. */
6513 namespace x_version {void f(){}}
6514 namespace x = x_version;
6515 using namespace x_version;
6525 if ac_fn_cxx_try_link
"$LINENO"; then :
6526 ac_cv_namespace_ok
=yes
6528 ac_cv_namespace_ok
=no
6530 rm -f core conftest.err conftest.
$ac_objext \
6531 conftest
$ac_exeext conftest.
$ac_ext
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5
6535 $as_echo "$ac_cv_namespace_ok" >&6; }
6537 if test $ac_cv_namespace_ok = no
6539 as_fn_error $?
"Namespace support is required to build ICU." "$LINENO" 5
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5
6545 $as_echo_n "checking for properly overriding new and delete... " >&6; }
6546 U_OVERRIDE_CXX_ALLOCATION
=0
6547 U_HAVE_PLACEMENT_NEW
=0
6548 if ${ac_cv_override_cxx_allocation_ok+:} false
; then :
6549 $as_echo_n "(cached) " >&6
6551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6552 /* end confdefs.h. */
6556 void *operator new(size_t size) {return malloc(size);}
6557 void *operator new[](size_t size) {return malloc(size);}
6558 void operator delete(void *p) {free(p);}
6559 void operator delete[](void *p) {free(p);}
6570 if ac_fn_cxx_try_link
"$LINENO"; then :
6571 ac_cv_override_cxx_allocation_ok
=yes
6573 ac_cv_override_cxx_allocation_ok
=no
6575 rm -f core conftest.err conftest.
$ac_objext \
6576 conftest
$ac_exeext conftest.
$ac_ext
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5
6580 $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; }
6581 if test $ac_cv_override_cxx_allocation_ok = yes
6583 U_OVERRIDE_CXX_ALLOCATION
=1
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5
6585 $as_echo_n "checking for placement new and delete... " >&6; }
6586 if ${ac_cv_override_placement_new_ok+:} false
; then :
6587 $as_echo_n "(cached) " >&6
6589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6590 /* end confdefs.h. */
6594 void *operator new(size_t size) {return malloc(size);}
6595 void *operator new[](size_t size) {return malloc(size);}
6596 void operator delete(void *p) {free(p);}
6597 void operator delete[](void *p) {free(p);}
6598 void * operator new(size_t, void *ptr) { return ptr; }
6599 void operator delete(void *, void *) {}
6610 if ac_fn_cxx_try_link
"$LINENO"; then :
6611 ac_cv_override_placement_new_ok
=yes
6613 ac_cv_override_placement_new_ok
=no
6615 rm -f core conftest.err conftest.
$ac_objext \
6616 conftest
$ac_exeext conftest.
$ac_ext
6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5
6620 $as_echo "$ac_cv_override_placement_new_ok" >&6; }
6621 if test $ac_cv_override_placement_new_ok = yes
6623 U_HAVE_PLACEMENT_NEW
=1
6625 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
6628 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
6634 ac_cpp
='$CPP $CPPFLAGS'
6635 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6636 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6637 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6639 ac_fn_c_check_func
"$LINENO" "popen" "ac_cv_func_popen"
6640 if test "x$ac_cv_func_popen" = xyes
; then :
6644 if test x
$ac_cv_func_popen = xyes
6648 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
6653 ac_fn_c_check_func
"$LINENO" "tzset" "ac_cv_func_tzset"
6654 if test "x$ac_cv_func_tzset" = xyes
; then :
6659 if test x
$ac_cv_func_tzset = xyes
6664 ac_fn_c_check_func
"$LINENO" "_tzset" "ac_cv_func__tzset"
6665 if test "x$ac_cv_func__tzset" = xyes
; then :
6669 if test x
$ac_cv_func__tzset = xyes
6674 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6682 $as_echo_n "checking for tzname... " >&6; }
6683 if ${ac_cv_var_tzname+:} false
; then :
6684 $as_echo_n "(cached) " >&6
6686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6687 /* end confdefs.h. */
6693 #ifndef tzname /* For SGI. */
6694 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6704 if ac_fn_c_try_link
"$LINENO"; then :
6705 ac_cv_var_tzname
=yes
6709 rm -f core conftest.err conftest.
$ac_objext \
6710 conftest
$ac_exeext conftest.
$ac_ext
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6713 $as_echo "$ac_cv_var_tzname" >&6; }
6714 if test $ac_cv_var_tzname = yes; then
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
6719 $as_echo_n "checking for _tzname... " >&6; }
6720 if ${ac_cv_var__tzname+:} false
; then :
6721 $as_echo_n "(cached) " >&6
6723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6724 /* end confdefs.h. */
6727 extern char *_tzname[];
6736 if ac_fn_c_try_link
"$LINENO"; then :
6737 ac_cv_var__tzname
=yes
6739 ac_cv_var__tzname
=no
6741 rm -f core conftest.err conftest.
$ac_objext \
6742 conftest
$ac_exeext conftest.
$ac_ext
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5
6745 $as_echo "$ac_cv_var__tzname" >&6; }
6746 if test $ac_cv_var__tzname = yes; then
6750 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
6757 $as_echo_n "checking for timezone... " >&6; }
6758 if ${ac_cv_var_timezone+:} false
; then :
6759 $as_echo_n "(cached) " >&6
6761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6779 if ac_fn_c_try_link
"$LINENO"; then :
6780 ac_cv_var_timezone
=yes
6782 ac_cv_var_timezone
=no
6784 rm -f core conftest.err conftest.
$ac_objext \
6785 conftest
$ac_exeext conftest.
$ac_ext
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
6788 $as_echo "$ac_cv_var_timezone" >&6; }
6790 if test $ac_cv_var_timezone = yes; then
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
6795 $as_echo_n "checking for __timezone... " >&6; }
6796 if ${ac_cv_var___timezone+:} false
; then :
6797 $as_echo_n "(cached) " >&6
6799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6800 /* end confdefs.h. */
6810 if ac_fn_c_try_link
"$LINENO"; then :
6811 ac_cv_var___timezone
=yes
6813 ac_cv_var___timezone
=no
6815 rm -f core conftest.err conftest.
$ac_objext \
6816 conftest
$ac_exeext conftest.
$ac_ext
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5
6819 $as_echo "$ac_cv_var___timezone" >&6; }
6820 if test $ac_cv_var___timezone = yes; then
6821 U_TIMEZONE
=__timezone
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5
6825 $as_echo_n "checking for _timezone... " >&6; }
6826 if ${ac_cv_var__timezone+:} false
; then :
6827 $as_echo_n "(cached) " >&6
6829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6830 /* end confdefs.h. */
6840 if ac_fn_c_try_link
"$LINENO"; then :
6841 ac_cv_var__timezone
=yes
6843 ac_cv_var__timezone
=no
6845 rm -f core conftest.err conftest.
$ac_objext \
6846 conftest
$ac_exeext conftest.
$ac_ext
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
6849 $as_echo "$ac_cv_var__timezone" >&6; }
6850 if test $ac_cv_var__timezone = yes; then
6851 U_TIMEZONE
=_timezone
6854 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
6861 # Checks for typedefs
6862 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
6863 if test "x$ac_cv_type_int8_t" = xyes
; then :
6867 cat >>confdefs.h
<<_ACEOF
6868 #define int8_t signed char
6873 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
6874 if test "x$ac_cv_type_uint8_t" = xyes
; then :
6878 cat >>confdefs.h
<<_ACEOF
6879 #define uint8_t unsigned char
6884 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
6885 if test "x$ac_cv_type_int16_t" = xyes
; then :
6889 cat >>confdefs.h
<<_ACEOF
6890 #define int16_t signed short
6895 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6896 if test "x$ac_cv_type_uint16_t" = xyes
; then :
6900 cat >>confdefs.h
<<_ACEOF
6901 #define uint16_t unsigned short
6906 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
6907 if test "x$ac_cv_type_int32_t" = xyes
; then :
6911 cat >>confdefs.h
<<_ACEOF
6912 #define int32_t signed long
6917 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6918 if test "x$ac_cv_type_uint32_t" = xyes
; then :
6922 cat >>confdefs.h
<<_ACEOF
6923 #define uint32_t unsigned long
6928 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
6929 if test "x$ac_cv_type_int64_t" = xyes
; then :
6933 cat >>confdefs.h
<<_ACEOF
6934 #define int64_t signed long long
6939 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
6940 if test "x$ac_cv_type_uint64_t" = xyes
; then :
6944 cat >>confdefs.h
<<_ACEOF
6945 #define uint64_t unsigned long long
6951 if test $ac_cv_type_int8_t = no
; then
6952 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
6955 if test $ac_cv_type_uint8_t = no
; then
6956 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
6959 if test $ac_cv_type_int16_t = no
; then
6960 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
6963 if test $ac_cv_type_uint16_t = no
; then
6964 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
6967 if test $ac_cv_type_int32_t = no
; then
6968 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
6971 if test $ac_cv_type_uint32_t = no
; then
6972 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
6975 if test $ac_cv_type_int64_t = no
; then
6976 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
6979 if test $ac_cv_type_uint64_t = no
; then
6980 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
6983 # Do various wchar_t related checks
6984 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6985 if test "x$ac_cv_header_wchar_h" = xyes
; then :
6990 if test "$ac_cv_header_wchar_h" = no
6994 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
6997 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
7000 # Some broken systems have wchar.h but not some of its functions...
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5
7002 $as_echo_n "checking for library containing wcscpy... " >&6; }
7003 if ${ac_cv_search_wcscpy+:} false
; then :
7004 $as_echo_n "(cached) " >&6
7006 ac_func_search_save_LIBS
=$LIBS
7007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7010 /* Override any GCC internal prototype to avoid an error.
7011 Use char because int might match the return type of a GCC
7012 builtin and then its argument prototype would still apply. */
7025 for ac_lib
in '' wcs w
; do
7026 if test -z "$ac_lib"; then
7027 ac_res
="none required"
7030 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
7032 if ac_fn_c_try_link
"$LINENO"; then :
7033 ac_cv_search_wcscpy
=$ac_res
7035 rm -f core conftest.err conftest.
$ac_objext \
7037 if ${ac_cv_search_wcscpy+:} false
; then :
7041 if ${ac_cv_search_wcscpy+:} false
; then :
7044 ac_cv_search_wcscpy
=no
7047 LIBS
=$ac_func_search_save_LIBS
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
7050 $as_echo "$ac_cv_search_wcscpy" >&6; }
7051 ac_res
=$ac_cv_search_wcscpy
7052 if test "$ac_res" != no
; then :
7053 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
7057 if test "$ac_cv_search_wcscpy" != no
; then
7061 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
7067 # The cast to long int works around a bug in the HP C Compiler
7068 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7069 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7070 # This bug is HP SR number 8606223364.
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
7072 $as_echo_n "checking size of wchar_t... " >&6; }
7073 if ${ac_cv_sizeof_wchar_t+:} false
; then :
7074 $as_echo_n "(cached) " >&6
7076 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "
7088 if test "$ac_cv_type_wchar_t" = yes; then
7089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7091 as_fn_error
77 "cannot compute sizeof (wchar_t)
7092 See \`config.log' for more details" "$LINENO" 5; }
7094 ac_cv_sizeof_wchar_t
=0
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
7100 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
7104 cat >>confdefs.h
<<_ACEOF
7105 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
7109 U_SIZEOF_WCHAR_T
=$ac_cv_sizeof_wchar_t
7110 # We do this check to verify that everything is okay.
7111 if test $U_SIZEOF_WCHAR_T = 0; then
7112 if test $U_HAVE_WCHAR_H=1; then
7113 as_fn_error $?
"There is wchar.h but the size of wchar_t is 0" "$LINENO" 5
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5
7118 $as_echo_n "checking for UTF-16 string literal support... " >&6; }
7119 U_CHECK_UTF16_STRING
=1
7120 CHECK_UTF16_STRING_RESULT
="unknown"
7123 *-*-aix*|powerpc64
-*-linux*)
7124 if test "$ac_cv_c_compiler_gnu" = no
; then
7125 OLD_CFLAGS
="${CFLAGS}"
7126 OLD_CXXFLAGS
="${CXXFLAGS}"
7127 CFLAGS
="${CFLAGS} -qutf"
7128 CXXFLAGS
="${CXXFLAGS} -qutf"
7129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7131 const unsigned short hello[] = u"hello";
7140 if ac_fn_c_try_compile
"$LINENO"; then :
7141 U_CHECK_UTF16_STRING
=1
7143 U_CHECK_UTF16_STRING
=0
7145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7146 if test "$U_CHECK_UTF16_STRING" = 0; then
7147 CFLAGS
="${OLD_CFLAGS}"
7148 CXXFLAGS
="${OLD_CXXFLAGS}"
7150 CHECK_UTF16_STRING_RESULT
="-qutf"
7155 if test "$ac_cv_c_compiler_gnu" = no
; then
7156 OLD_CFLAGS
="${CFLAGS}"
7157 OLD_CXXFLAGS
="${CXXFLAGS}"
7158 CFLAGS
="${CFLAGS} -xustr=ascii_utf16_ushort"
7159 CXXFLAGS
="${CXXFLAGS} -xustr=ascii_utf16_ushort"
7160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 const unsigned short hello[] = U"hello";
7171 if ac_fn_c_try_compile
"$LINENO"; then :
7172 U_CHECK_UTF16_STRING
=1
7174 U_CHECK_UTF16_STRING
=0
7176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7177 if test "$U_CHECK_UTF16_STRING" = 0; then
7178 CFLAGS
="${OLD_CFLAGS}"
7179 CXXFLAGS
="${OLD_CXXFLAGS}"
7181 CHECK_UTF16_STRING_RESULT
="-xustr=ascii_utf16_ushort"
7183 # Since we can't detect the availability of this UTF-16 syntax at compile time,
7184 # we depend on configure telling us that we can use it.
7185 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
7186 # we only use this macro within ICU.
7187 # If an ICU user uses icu-config, this feature will be enabled.
7188 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
7189 U_CHECK_UTF16_STRING
=0
7194 if test "$ac_cv_c_compiler_gnu" = no
; then
7195 # The option will be detected at compile time without additional compiler options.
7196 CHECK_UTF16_STRING_RESULT
="available"
7200 # wchar_t can be used
7201 CHECK_UTF16_STRING_RESULT
="available"
7207 # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future.
7208 # Since we have to use a different standard, if strict is enable, don't enable UTF16 string literals.
7209 U_CHECK_GNUC_UTF16_STRING
=0
7210 if test "$ac_use_strict_options" = no
&& test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
7211 if test "$ac_cv_c_compiler_gnu" = yes; then
7212 OLD_CFLAGS
="${CFLAGS}"
7213 OLD_CXXFLAGS
="${CXXFLAGS}"
7214 CFLAGS
="${CFLAGS} -std=gnu99 -D_GCC_"
7215 CXXFLAGS
="${CXXFLAGS} -std=c++0x"
7216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7217 /* end confdefs.h. */
7219 #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
7221 typedef __CHAR16_TYPE__ char16_t;
7223 char16_t test[] = u"This is a UTF16 literal string.";
7236 if ac_fn_c_try_compile
"$LINENO"; then :
7237 U_CHECK_UTF16_STRING
=1
7239 U_CHECK_UTF16_STRING
=0
7241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7242 if test "$U_CHECK_UTF16_STRING" = 1; then
7243 CHECK_UTF16_STRING_RESULT
="available";
7244 U_CHECK_GNUC_UTF16_STRING
=1
7246 CFLAGS
="${OLD_CFLAGS}"
7247 CXXFLAGS
="${OLD_CXXFLAGS}"
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5
7254 $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; }
7257 # Enable/disable extras
7258 # Check whether --enable-extras was given.
7259 if test "${enable_extras+set}" = set; then :
7260 enableval
=$enable_extras; case "${enableval}" in
7263 *) as_fn_error $?
"bad value ${enableval} for --enable-extras" "$LINENO" 5 ;;
7270 if test "$extras" = true
; then
7275 # Check whether --enable-icuio was given.
7276 if test "${enable_icuio+set}" = set; then :
7277 enableval
=$enable_icuio; case "${enableval}" in
7280 *) as_fn_error $?
"bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;;
7287 if test "$icuio" = true
; then
7293 # Enable/disable layout
7294 # Check whether --enable-layout was given.
7295 if test "${enable_layout+set}" = set; then :
7296 enableval
=$enable_layout; case "${enableval}" in
7299 *) as_fn_error $?
"bad value ${enableval} for --enable-layout" "$LINENO" 5 ;;
7306 if test "$layout" = true
; then
7313 # Check whether --with-data-packaging was given.
7314 if test "${with_data_packaging+set}" = set; then :
7315 withval
=$with_data_packaging; case "${withval}" in
7316 files
|archive
|library
) datapackaging
=$withval ;;
7317 auto
) datapackaging
=$withval ;;
7318 common
) datapackaging
=archive
;;
7319 dll
) datapackaging
=library
;;
7320 static
) datapackaging
=static
;;
7321 *) as_fn_error $?
"bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;;
7328 # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
7329 # thesysconfdir=`eval echo $sysconfdir`
7330 thedatadir
=`eval echo $datadir`
7331 # 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}.
7332 pkgicudatadir
=$datadir
7333 thepkgicudatadir
=$thedatadir
7338 if test x
"$datapackaging" = x
-o x
"$datapackaging" = xauto
; then
7339 # default to library
7340 datapackaging
=library
7341 if test "$ENABLE_STATIC" = "YES"; then
7342 if test "$ENABLE_SHARED" != "YES"; then
7343 datapackaging
=static
7348 datapackaging_dir
=`eval echo $thedatadir`"/icu/${VERSION}"
7350 datapackaging_msg
="(No explaination for mode $datapackaging.)"
7352 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."
7353 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."
7354 datapackaging_howfound
="(unknown)"
7356 case "$datapackaging" in
7358 DATA_PACKAGING_MODE
=files
7359 datapackaging_msg
="ICU data will be stored in individual files."
7360 datapackaging_howfound
="$datapackaging_msg_path"
7363 DATA_PACKAGING_MODE
=common
7364 datapackaging_msg
="ICU data will be stored in a single .dat file."
7365 datapackaging_howfound
="$datapackaging_msg_path"
7368 DATA_PACKAGING_MODE
=dll
7369 datapackaging_msg
="ICU data will be linked with ICU."
7370 if test "$ENABLE_STATIC" = "YES"; then
7371 datapackaging_msg
="$datapackaging_msg A static data library will be built. "
7373 if test "$ENABLE_SHARED" = "YES"; then
7374 datapackaging_msg
="$datapackaging_msg A shared data library will be built. "
7376 datapackaging_howfound
="$datapackaging_msg_set"
7379 DATA_PACKAGING_MODE
=static
7380 datapackaging_msg
="ICU data will be stored in a static library."
7381 datapackaging_howfound
="$datapackaging_msg_set"
7386 # Sets a library suffix
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5
7388 $as_echo_n "checking for a library suffix to use... " >&6; }
7390 # Check whether --with-library-suffix was given.
7391 if test "${with_library_suffix+set}" = set; then :
7392 withval
=$with_library_suffix; ICULIBSUFFIX
="${withval}"
7398 if test "$msg" = ""; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
7402 $as_echo "$msg" >&6; }
7404 if test "$ICULIBSUFFIX" != ""
7407 ICULIBSUFFIXCNAME
=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
7408 UCONFIG_CPPFLAGS
="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} "
7415 # Enable/disable tests
7416 # Check whether --enable-tests was given.
7417 if test "${enable_tests+set}" = set; then :
7418 enableval
=$enable_tests; case "${enableval}" in
7421 *) as_fn_error $?
"bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
7428 if test "$tests" = true
; then
7434 # Enable/disable samples
7435 # Check whether --enable-samples was given.
7436 if test "${enable_samples+set}" = set; then :
7437 enableval
=$enable_samples; case "${enableval}" in
7438 yes) samples
=true
;;
7439 no
) samples
=false
;;
7440 *) as_fn_error $?
"bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
7447 if test "$samples" = true
; then
7453 ICUDATA_CHAR
=$U_ENDIAN_CHAR
7455 # Platform-specific Makefile setup
7456 # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
7458 *-*-solaris*) platform
=U_SOLARIS
;;
7459 *-*-linux*|*-*-gnu|*-*-k*bsd
*-gnu|*-*-kopensolaris*-gnu) platform
=U_LINUX
;;
7460 *-*-*bsd
*|*-*-dragonfly*) platform
=U_BSD
;;
7461 *-*-aix*) platform
=U_AIX
;;
7462 *-*-hpux*) platform
=U_HPUX
;;
7463 *-apple-darwin*|*-apple-rhapsody*) platform
=U_DARWIN
;;
7464 *-*-cygwin*) platform
=U_CYGWIN
;;
7465 *-*-mingw*) platform
=U_MINGW
;;
7466 *-*ibm
-openedition*|*-*-os390*) platform
=OS390
7467 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7470 *-*-os400*) platform
=OS400
7471 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7474 *-*-nto*) platform
=U_QNX
;;
7475 *-dec-osf*) platform
=U_OSF
;;
7476 *-*-beos) platform
=U_BEOS
;;
7477 *-*-irix*) platform
=U_IRIX
;;
7478 *-ncr-*) platform
=U_MPRAS
;;
7479 *) platform
=U_UNKNOWN_PLATFORM
;;
7483 platform_make_fragment_name
="$icu_cv_host_frag"
7484 platform_make_fragment
='$(top_srcdir)/config/'"$platform_make_fragment_name"
7488 if test "${FORCE_LIBS}" != ""; then
7489 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
7493 # Now that we're done using CPPFLAGS etc. for tests, we can change it
7496 if test $ICU_USE_THREADS -ne 0
7498 CPPFLAGS
="$CPPFLAGS \$(THREADSCPPFLAGS)"
7499 CFLAGS
="$CFLAGS \$(THREADSCFLAGS)"
7500 CXXFLAGS
="$CXXFLAGS \$(THREADSCXXFLAGS)"
7502 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DICU_USE_THREADS=0"
7508 # append all config cppflags
7509 CPPFLAGS
="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS"
7511 echo "CPPFLAGS=$CPPFLAGS"
7512 echo "CFLAGS=$CFLAGS"
7513 echo "CXXFLAGS=$CXXFLAGS"
7516 # output the Makefiles
7517 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/genctd/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/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 samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile"
7519 cat >confcache
<<\_ACEOF
7520 # This file is a shell script that caches the results of configure
7521 # tests run on this system so they can be shared between configure
7522 # scripts and configure runs, see configure's option --config-cache.
7523 # It is not useful on other systems. If it contains results you don't
7524 # want to keep, you may remove or edit it.
7526 # config.status only pays attention to the cache file if you give it
7527 # the --recheck option to rerun configure.
7529 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7530 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7535 # The following way of writing the cache mishandles newlines in values,
7536 # but we know of no workaround that is simple, portable, and efficient.
7537 # So, we kill variables containing newlines.
7538 # Ultrix sh set writes to stderr and can't be redirected directly,
7539 # and sets the high bit in the cache file unless we assign to the vars.
7541 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7542 eval ac_val
=\$
$ac_var
7546 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7547 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7550 _
| IFS
| as_nl
) ;; #(
7551 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
7552 *) { eval $ac_var=; unset $ac_var;} ;;
7558 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7559 *${as_nl}ac_space
=\
*)
7560 # `set' does not quote correctly, so add quotes: double-quote
7561 # substitution turns \\\\ into \\, and sed turns \\ into \.
7564 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7567 # `set' quotes correctly as required by POSIX, so do not add quotes.
7568 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7579 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7581 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7582 if test -w "$cache_file"; then
7583 if test "x$cache_file" != "x/dev/null"; then
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7585 $as_echo "$as_me: updating cache $cache_file" >&6;}
7586 if test ! -f "$cache_file" || test -h "$cache_file"; then
7587 cat confcache
>"$cache_file"
7589 case $cache_file in #(
7591 mv -f confcache
"$cache_file"$$
&&
7592 mv -f "$cache_file"$$
"$cache_file" ;; #(
7594 mv -f confcache
"$cache_file" ;;
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7600 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7605 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7606 # Let make expand exec_prefix.
7607 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7609 # Transform confdefs.h into DEFS.
7610 # Protect against shell expansion while executing Makefile rules.
7611 # Protect against Makefile macro expansion.
7613 # If the first sed substitution is executed (which looks for macros that
7614 # take arguments), then branch to the quote section. Otherwise,
7615 # look for a macro that doesn't take arguments.
7625 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7627 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7631 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7644 DEFS
=`sed -n "$ac_script" confdefs.h`
7650 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7651 # 1. Remove the extension, and $U if already installed.
7652 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7653 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7654 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7655 # will be set to the directory where LIBOBJS objects are built.
7656 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7657 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7661 LTLIBOBJS
=$ac_ltlibobjs
7666 : "${CONFIG_STATUS=./config.status}"
7668 ac_clean_files_save
=$ac_clean_files
7669 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7671 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7673 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7675 # Generated by $as_me.
7676 # Run this file to recreate the current configuration.
7677 # Compiler output produced by configure, useful for debugging
7678 # configure, is in config.log if it exists.
7684 SHELL=\${CONFIG_SHELL-$SHELL}
7687 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
7688 ## -------------------- ##
7689 ## M4sh Initialization. ##
7690 ## -------------------- ##
7692 # Be more Bourne compatible
7693 DUALCASE
=1; export DUALCASE
# for MKS sh
7694 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7697 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7698 # is contrary to our usage. Disable this feature.
7699 alias -g '${1+"$@"}'='"$@"'
7700 setopt NO_GLOB_SUBST
7702 case `(set -o) 2>/dev/null` in #(
7714 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7715 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7716 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7717 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7718 # Prefer a ksh shell builtin over an external printf program on Solaris,
7719 # but without wasting forks for bash or zsh.
7720 if test -z "$BASH_VERSION$ZSH_VERSION" \
7721 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7722 as_echo='print
-r --'
7723 as_echo_n='print
-rn --'
7724 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7725 as_echo='printf %s
\n'
7726 as_echo_n='printf %s
'
7728 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7729 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7730 as_echo_n='/usr
/ucb
/echo -n'
7732 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7733 as_echo_n_body='eval
7737 expr "X$arg" : "X\\(.*\\)$as_nl";
7738 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7740 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7742 export as_echo_n_body
7743 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7746 as_echo='sh
-c $as_echo_body as_echo
'
7749 # The user is always right.
7750 if test "${PATH_SEPARATOR+set}" != set; then
7752 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7753 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7760 # We need space, tab and new line, in precisely that order. Quoting is
7761 # there to prevent editors from complaining about space-tab.
7762 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7763 # splitting by setting IFS to empty value.)
7766 # Find who we are. Look in the path if we contain no directory separator.
7769 *[\\/]* ) as_myself=$0 ;;
7770 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 test -z "$as_dir" && as_dir=.
7775 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7781 # We did not find ourselves, most probably we were run as `sh COMMAND'
7782 # in which case we are not to be found in the path.
7783 if test "x$as_myself" = x
; then
7786 if test ! -f "$as_myself"; then
7787 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7791 # Unset variables that we do not need and which cause bugs (e.g. in
7792 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7793 # suppresses any "Segmentation fault" message there. '((' could
7794 # trigger a bug in pdksh 5.2.14.
7795 for as_var
in BASH_ENV ENV MAIL MAILPATH
7796 do eval test x\
${$as_var+set} = xset \
7797 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
7810 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7813 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7814 # ----------------------------------------
7815 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7816 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7817 # script with STATUS, using 1 if that was 0.
7820 as_status
=$1; test $as_status -eq 0 && as_status
=1
7822 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7823 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7825 $as_echo "$as_me: error: $2" >&2
7826 as_fn_exit
$as_status
7830 # as_fn_set_status STATUS
7831 # -----------------------
7832 # Set $? to STATUS, without forking.
7836 } # as_fn_set_status
7840 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7850 # Portably unset VAR.
7853 { eval $1=; unset $1;}
7855 as_unset
=as_fn_unset
7856 # as_fn_append VAR VALUE
7857 # ----------------------
7858 # Append the text in VALUE to the end of the definition contained in VAR. Take
7859 # advantage of any shell optimizations that allow amortized linear growth over
7860 # repeated appends, instead of the typical quadratic growth present in naive
7862 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7863 eval 'as_fn_append ()
7874 # as_fn_arith ARG...
7875 # ------------------
7876 # Perform arithmetic evaluation on the ARGs, and store the result in the
7877 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7878 # must be portable across $(()) and expr.
7879 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7880 eval 'as_fn_arith ()
7887 as_val
=`expr "$@" || test $? -eq 1`
7892 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7893 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7899 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7900 as_basename
=basename
7905 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7911 as_me
=`$as_basename -- "$0" ||
7912 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7913 X"$0" : 'X\(//\)$' \| \
7914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7916 sed '/^.*\/\([^/][^/]*\)\/*$/{
7930 # Avoid depending upon Character Ranges.
7931 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7932 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7933 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7934 as_cr_digits
='0123456789'
7935 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7937 ECHO_C
= ECHO_N
= ECHO_T
=
7938 case `echo -n x` in #(((((
7940 case `echo 'xy\c'` in
7941 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7943 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7950 rm -f conf$$ conf$$.exe conf$$.
file
7951 if test -d conf$$.dir
; then
7952 rm -f conf$$.dir
/conf$$.
file
7955 mkdir conf$$.dir
2>/dev
/null
7957 if (echo >conf$$.
file) 2>/dev
/null
; then
7958 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7960 # ... but there are two gotchas:
7961 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7962 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7963 # In both cases, we have to default to `cp -p'.
7964 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
7966 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7974 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7975 rmdir conf$$.dir
2>/dev
/null
7980 # Create "$as_dir" as a directory, including parents if necessary.
7985 -*) as_dir
=.
/$as_dir;;
7987 test -d "$as_dir" || eval $as_mkdir_p || {
7991 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7992 *) as_qdir
=$as_dir;;
7994 as_dirs
="'$as_qdir' $as_dirs"
7995 as_dir
=`$as_dirname -- "$as_dir" ||
7996 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7997 X"$as_dir" : 'X\(//\)[^/]' \| \
7998 X"$as_dir" : 'X\(//\)$' \| \
7999 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8000 $as_echo X"$as_dir" |
8001 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8018 test -d "$as_dir" && break
8020 test -z "$as_dirs" || eval "mkdir $as_dirs"
8021 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
8025 if mkdir -p .
2>/dev
/null
; then
8026 as_mkdir_p
='mkdir -p "$as_dir"'
8028 test -d .
/-p && rmdir .
/-p
8032 if test -x / >/dev
/null
2>&1; then
8035 if ls -dL / >/dev
/null
2>&1; then
8042 if test -d "$1"; then
8048 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8049 ???[sx]*):;;*)false;;esac;fi
8053 as_executable_p
=$as_test_x
8055 # Sed expression to map a string onto a valid CPP name.
8056 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8058 # Sed expression to map a string onto a valid variable name.
8059 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8063 ## ----------------------------------- ##
8064 ## Main body of $CONFIG_STATUS script. ##
8065 ## ----------------------------------- ##
8067 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8069 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8070 # Save the log message, to keep $0 and so on meaningful, and to
8071 # report actual input values of CONFIG_FILES etc. instead of their
8072 # values after options handling.
8074 This file was extended by $as_me, which was
8075 generated by GNU Autoconf 2.68. Invocation command line was
8077 CONFIG_FILES = $CONFIG_FILES
8078 CONFIG_HEADERS = $CONFIG_HEADERS
8079 CONFIG_LINKS = $CONFIG_LINKS
8080 CONFIG_COMMANDS = $CONFIG_COMMANDS
8083 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8088 case $ac_config_files in *"
8089 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8094 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8095 # Files that config.status was made for.
8096 config_files="$ac_config_files"
8100 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8102 \`$as_me' instantiates files and other configuration actions
8103 from templates according to the current configuration. Unless the files
8104 and actions are specified as TAGs, all are instantiated by default.
8106 Usage: $0 [OPTION]... [TAG]...
8108 -h, --help print this help, then exit
8109 -V, --version print version number and configuration settings, then exit
8110 --config print configuration, then exit
8111 -q, --quiet, --silent
8112 do not print progress messages
8113 -d, --debug don't remove temporary files
8114 --recheck update $as_me by reconfiguring in the same conditions
8115 --file=FILE[:TEMPLATE]
8116 instantiate the configuration file FILE
8118 Configuration files:
8121 Report bugs to the package provider."
8124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8125 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8128 configured by $0, generated by GNU Autoconf 2.68,
8129 with options \\"\$ac_cs_config\\"
8131 Copyright (C) 2010 Free Software Foundation, Inc.
8132 This config.status script is free software; the Free Software Foundation
8133 gives unlimited permission to copy, distribute and modify it."
8138 test -n "\$AWK" || AWK=awk
8141 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8142 # The default lists apply if the user does not specify any file.
8148 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8149 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8153 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8165 # Handling of the options.
8166 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8168 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8169 $as_echo "$ac_cs_version"; exit ;;
8170 --config | --confi | --conf | --con | --co | --c )
8171 $as_echo "$ac_cs_config"; exit ;;
8172 --debug | --debu | --deb | --de | --d | -d )
8174 --file | --fil | --fi | --f )
8177 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8178 '') as_fn_error $?
"missing file argument" ;;
8180 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8181 ac_need_defaults
=false
;;
8182 --he | --h | --help | --hel | -h )
8183 $as_echo "$ac_cs_usage"; exit ;;
8184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8189 -*) as_fn_error $?
"unrecognized option: \`$1'
8190 Try \`$0 --help' for more information." ;;
8192 *) as_fn_append ac_config_targets
" $1"
8193 ac_need_defaults
=false
;;
8199 ac_configure_extra_args
=
8201 if $ac_cs_silent; then
8203 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8208 if \$ac_cs_recheck; then
8209 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8212 CONFIG_SHELL='$SHELL'
8218 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8223 ## Running $as_me. ##
8229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8232 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8234 # Handling of arguments.
8235 for ac_config_target
in $ac_config_targets
8237 case $ac_config_target in
8238 "icudefs.mk") CONFIG_FILES
="$CONFIG_FILES icudefs.mk" ;;
8239 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8240 "data/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES data/pkgdataMakefile" ;;
8241 "config/Makefile.inc") CONFIG_FILES
="$CONFIG_FILES config/Makefile.inc" ;;
8242 "config/icu.pc") CONFIG_FILES
="$CONFIG_FILES config/icu.pc" ;;
8243 "config/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES config/pkgdataMakefile" ;;
8244 "data/Makefile") CONFIG_FILES
="$CONFIG_FILES data/Makefile" ;;
8245 "stubdata/Makefile") CONFIG_FILES
="$CONFIG_FILES stubdata/Makefile" ;;
8246 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8247 "i18n/Makefile") CONFIG_FILES
="$CONFIG_FILES i18n/Makefile" ;;
8248 "layout/Makefile") CONFIG_FILES
="$CONFIG_FILES layout/Makefile" ;;
8249 "layoutex/Makefile") CONFIG_FILES
="$CONFIG_FILES layoutex/Makefile" ;;
8250 "io/Makefile") CONFIG_FILES
="$CONFIG_FILES io/Makefile" ;;
8251 "extra/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/Makefile" ;;
8252 "extra/uconv/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/uconv/Makefile" ;;
8253 "extra/uconv/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
8254 "extra/scrptrun/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/scrptrun/Makefile" ;;
8255 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
8256 "tools/ctestfw/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/ctestfw/Makefile" ;;
8257 "tools/toolutil/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/toolutil/Makefile" ;;
8258 "tools/makeconv/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/makeconv/Makefile" ;;
8259 "tools/genrb/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genrb/Makefile" ;;
8260 "tools/genccode/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genccode/Makefile" ;;
8261 "tools/gencmn/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencmn/Makefile" ;;
8262 "tools/gencnval/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencnval/Makefile" ;;
8263 "tools/genctd/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genctd/Makefile" ;;
8264 "tools/gentest/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gentest/Makefile" ;;
8265 "tools/gennorm2/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gennorm2/Makefile" ;;
8266 "tools/genbrk/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genbrk/Makefile" ;;
8267 "tools/gensprep/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gensprep/Makefile" ;;
8268 "tools/icuinfo/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icuinfo/Makefile" ;;
8269 "tools/icupkg/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icupkg/Makefile" ;;
8270 "tools/icuswap/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icuswap/Makefile" ;;
8271 "tools/pkgdata/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/pkgdata/Makefile" ;;
8272 "tools/tzcode/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/tzcode/Makefile" ;;
8273 "tools/gencfu/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencfu/Makefile" ;;
8274 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
8275 "test/compat/Makefile") CONFIG_FILES
="$CONFIG_FILES test/compat/Makefile" ;;
8276 "test/testdata/Makefile") CONFIG_FILES
="$CONFIG_FILES test/testdata/Makefile" ;;
8277 "test/testdata/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
8278 "test/hdrtst/Makefile") CONFIG_FILES
="$CONFIG_FILES test/hdrtst/Makefile" ;;
8279 "test/intltest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/intltest/Makefile" ;;
8280 "test/cintltst/Makefile") CONFIG_FILES
="$CONFIG_FILES test/cintltst/Makefile" ;;
8281 "test/iotest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/iotest/Makefile" ;;
8282 "test/letest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/letest/Makefile" ;;
8283 "test/perf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/Makefile" ;;
8284 "test/perf/collationperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
8285 "test/perf/dicttrieperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;;
8286 "test/perf/ubrkperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
8287 "test/perf/charperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/charperf/Makefile" ;;
8288 "test/perf/convperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/convperf/Makefile" ;;
8289 "test/perf/normperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/normperf/Makefile" ;;
8290 "test/perf/DateFmtPerf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;;
8291 "test/perf/howExpensiveIs/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;;
8292 "test/perf/strsrchperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
8293 "test/perf/unisetperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
8294 "test/perf/usetperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
8295 "test/perf/ustrperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
8296 "test/perf/utfperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
8297 "test/perf/utrie2perf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
8298 "samples/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/Makefile" ;;
8299 "samples/date/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/date/Makefile" ;;
8300 "samples/cal/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/cal/Makefile" ;;
8301 "samples/layout/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/layout/Makefile" ;;
8303 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8308 # If the user did not use the arguments to specify the items to instantiate,
8309 # then the envvar interface is used. Set only those that are not.
8310 # We use the long form for the default assignment because of an extremely
8311 # bizarre bug on SunOS 4.1.3.
8312 if $ac_need_defaults; then
8313 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8316 # Have a temporary directory for convenience. Make it in the build tree
8317 # simply because there is no reason against having it here, and in addition,
8318 # creating and moving files from /tmp can sometimes cause problems.
8319 # Hook for its removal unless debugging.
8320 # Note that there is a small window in which the directory will not be cleaned:
8321 # after its creation but before its name has been assigned to `$tmp'.
8325 trap 'exit_status=$?
8327 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8329 trap 'as_fn_exit 1' 1 2 13 15
8331 # Create a (secure) tmp directory for tmp files.
8334 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8338 tmp
=.
/conf$$
-$RANDOM
8339 (umask 077 && mkdir "$tmp")
8340 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8343 # Set up the scripts for CONFIG_FILES section.
8344 # No need to generate them if there are no CONFIG_FILES.
8345 # This happens for instance with `./config.status config.h'.
8346 if test -n "$CONFIG_FILES"; then
8349 ac_cr
=`echo X | tr X '\015'`
8350 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8351 # But we know of no other shell where ac_cr would be empty at this
8352 # point, so we can use a bashism as a fallback.
8353 if test "x$ac_cr" = x
; then
8354 eval ac_cr
=\$
\'\\r
\'
8356 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8357 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8363 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8368 echo "cat >conf$$subs.awk <<_ACEOF" &&
8369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8372 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8373 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8375 for ac_last_try in false false false false false :; do
8376 . ./conf$$subs.sh ||
8377 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8379 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8380 if test $ac_delim_n = $ac_delim_num; then
8382 elif $ac_last_try; then
8383 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8385 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8391 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8395 s/^/S["/; s
/!.
*/"]=/
8405 s/\(.\{148\}\)..*/\1/
8407 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8412 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8419 s/\(.\{148\}\)..*/\1/
8421 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8425 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8430 ' <conf$$subs.awk | sed '
8435 ' >>$CONFIG_STATUS || ac_write_fail=1
8436 rm -f conf$$subs.awk
8437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8439 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8440 for (key in S) S_is_set[key] = 1
8446 nfields = split(line, field, "@
")
8448 len = length(field[1])
8449 for (i = 2; i < nfields; i++) {
8451 keylen = length(key)
8452 if (S_is_set[key]) {
8454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8455 len += length(value) + length(field[++i])
8466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8467 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8468 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8471 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8472 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8475 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8476 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8477 # trailing colons and then remove the whole line if VPATH becomes empty
8478 # (actually we leave an empty line to preserve line numbers).
8479 if test "x
$srcdir" = x.; then
8480 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8499 fi # test -n "$CONFIG_FILES"
8502 eval set X " :F
$CONFIG_FILES "
8507 :[FHLC]) ac_mode=$ac_tag; continue;;
8509 case $ac_mode$ac_tag in
8511 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
8512 :[FH]-) ac_tag=-:-;;
8513 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8530 -) ac_f="$ac_tmp/stdin";;
8531 *) # Look for the file first in the build tree, then in the source tree
8532 # (if the path is not absolute). The absolute path cannot be DOS-style,
8533 # because $ac_f cannot contain `:'.
8537 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8539 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8541 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
8542 as_fn_append ac_file_inputs " '$ac_f'"
8545 # Let's still pretend it is `configure' which instantiates (i.e., don't
8546 # use $as_me), people would be surprised to read:
8547 # /* config.h. Generated by config.status. */
8548 configure_input='Generated from '`
8549 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8551 if test x"$ac_file" != x-; then
8552 configure_input="$ac_file.
$configure_input"
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
8554 $as_echo "$as_me: creating
$ac_file" >&6;}
8556 # Neutralize special characters interpreted by sed in replacement strings.
8557 case $configure_input in #(
8558 *\&* | *\|* | *\\* )
8559 ac_sed_conf_input=`$as_echo "$configure_input" |
8560 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8561 *) ac_sed_conf_input=$configure_input;;
8565 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
8566 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
8571 ac_dir=`$as_dirname -- "$ac_file" ||
8572 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8573 X"$ac_file" : 'X\(//\)[^/]' \| \
8574 X"$ac_file" : 'X\(//\)$' \| \
8575 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8576 $as_echo X"$ac_file" |
8577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8594 as_dir="$ac_dir"; as_fn_mkdir_p
8598 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8600 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8601 # A "..
" for each directory in $ac_dir_suffix.
8602 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8603 case $ac_top_builddir_sub in
8604 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8605 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8608 ac_abs_top_builddir=$ac_pwd
8609 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8610 # for backward compatibility:
8611 ac_top_builddir=$ac_top_build_prefix
8614 .) # We are building in place.
8616 ac_top_srcdir=$ac_top_builddir_sub
8617 ac_abs_top_srcdir=$ac_pwd ;;
8618 [\\/]* | ?:[\\/]* ) # Absolute name.
8619 ac_srcdir=$srcdir$ac_dir_suffix;
8620 ac_top_srcdir=$srcdir
8621 ac_abs_top_srcdir=$srcdir ;;
8623 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8624 ac_top_srcdir=$ac_top_build_prefix$srcdir
8625 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8627 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8637 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8638 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8643 # If the template does not know about datarootdir, expand it.
8644 # FIXME: This hack should be removed a few years after 2.60.
8645 ac_datarootdir_hack=; ac_datarootdir_seen=
8656 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
8657 *datarootdir*) ac_datarootdir_seen=yes;;
8658 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
8660 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
8662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8663 ac_datarootdir_hack='
8664 s&@datadir@&$datadir&g
8665 s&@docdir@&$docdir&g
8666 s&@infodir@&$infodir&g
8667 s&@localedir@&$localedir&g
8668 s&@mandir@&$mandir&g
8669 s&\\\${datarootdir}&$datarootdir&g' ;;
8673 # Neutralize VPATH when `$srcdir' = `.'.
8674 # Shell code in configure.ac might set extrasub.
8675 # FIXME: do we really want to maintain this feature?
8676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8677 ac_sed_extra="$ac_vpsub
8680 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
8682 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
8683 s
|@configure_input@
|$ac_sed_conf_input|;t t
8684 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8685 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8686 s
&@srcdir@
&$ac_srcdir&;t t
8687 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8688 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8689 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8690 s
&@builddir@
&$ac_builddir&;t t
8691 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8692 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8693 s
&@INSTALL@
&$ac_INSTALL&;t t
8694 $ac_datarootdir_hack
8696 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8697 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8699 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8700 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8701 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8702 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8704 which seems to be undefined. Please make sure it is defined" >&5
8705 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8706 which seems to be undefined. Please make sure it is defined" >&2;}
8708 rm -f "$ac_tmp/stdin"
8710 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8711 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8713 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8725 ac_clean_files=$ac_clean_files_save
8727 test $ac_write_fail = 0 ||
8728 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8731 # configure is writing to config.log, and then calls config.status.
8732 # config.status does its own redirection, appending to config.log.
8733 # Unfortunately, on DOS this fails, as config.log is still kept open
8734 # by configure, so config.status won't be able to
write to it
; its
8735 # output is simply discarded. So we exec the FD to /dev/null,
8736 # effectively closing config.log, so it can be properly (re)opened and
8737 # appended to by config.status. When coming back to configure, we
8738 # need to make the FD available again.
8739 if test "$no_create" != yes; then
8741 ac_config_status_args
=
8742 test "$silent" = yes &&
8743 ac_config_status_args
="$ac_config_status_args --quiet"
8745 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8747 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8748 # would make configure fail if this is the last instruction.
8749 $ac_cs_success || as_fn_exit
1
8751 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8753 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8758 echo "ICU for C/C++ $VERSION is ready to be built."
8759 echo "=== Important Notes: ==="
8761 if test $ICU_USE_THREADS = 0; then
8763 echo "** ICU was configured without mutex or thread support. Multithread-safe operation will not be tested. If this is unexpected, then run configure with --enable-threads=yes or check the messages above to see why thread support was not found." 1>&6
8767 echo "Data Packaging: $datapackaging"
8768 echo " This means: $datapackaging_msg"
8769 echo " To locate data: $datapackaging_howfound"
8771 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
8772 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
8774 echo "** WARNING: $U_MAKE may not be GNU make."
8775 echo "This may cause ICU to fail to build. Please make sure that GNU make"
8776 echo "is in your PATH so that the configure script can detect its location."
8778 if test "x$AR" = "xfalse"; then
8779 echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail."
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5
8783 $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; }
8784 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM
="$platform"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8786 $as_echo "ok" >&6; }
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5
8789 $as_echo "too old or test failed - try upgrading GNU Make" >&6; }
8792 if test -n "$UCONFIG_CPPFLAGS"; then
8793 HDRFILE
="uconfig.h.prepend"
8794 echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:"
8796 echo " ${UCONFIG_CPPFLAGS}"
8798 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.'
8799 echo "Creating the file ${HDRFILE}"
8801 echo '--------------- ' "${HDRFILE}"
8803 echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}"
8804 echo >> "${HDRFILE}"
8805 for flag
in ${UCONFIG_CPPFLAGS};
8807 echo " /* $flag */" >> "${HDRFILE}"
8810 \
echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}"
8811 \
echo >> "${HDRFILE}"
8814 \
echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}"
8815 \
echo >> "${HDRFILE}"
8818 \
echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}"
8819 \
echo >> "${HDRFILE}"
8824 \
echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
8825 echo >> "${HDRFILE}"
8826 echo '--------------- end ' "${HDRFILE}"
8829 $as_unset _CXX_CXXSUFFIX