2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
5 # Copyright (c) 1999-2013, 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
='UCONFIG_CXXFLAGS
612 platform_make_fragment
613 platform_make_fragment_name
638 U_OVERRIDE_CXX_ALLOCATION
639 U_NL_LANGINFO_CODESET
640 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-weak-threads weakly reference the threading library default
=no
1403 --enable-extras build ICU extras default
=yes
1404 --enable-icuio build ICU
's icuio library default=yes
1405 --enable-layout build ICU's layout library default
=yes
1406 --enable-tools build ICU
's tools 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-2013, 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
2709 # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only.
2710 # They are only needed for building ICU itself. Example: platform stuff
2712 # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time,
2713 # and also a notice is output that they need to be set
2714 # for end-users of ICU also. uconfig.h.prepend is generated
2715 # with, for example, "#define U_DISABLE_RENAMING 1"
2716 # Example: ICU configuration stuff
2718 # UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users
2722 # Check whether to build debug libraries
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5
2724 $as_echo_n "checking whether to build debug libraries... " >&6; }
2727 # Check whether --enable-debug was given.
2728 if test "${enable_debug+set}" = set; then :
2729 enableval=$enable_debug; case "${enableval}" in
2730 yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;;
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2736 $as_echo "$enabled" >&6; }
2739 # Check whether to build release libraries
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5
2741 $as_echo_n "checking whether to build release libraries... " >&6; }
2744 # Check whether --enable-release was given.
2745 if test "${enable_release+set}" = set; then :
2746 enableval=$enable_release; case "${enableval}" in
2747 no) enabled=no; ENABLE_RELEASE=0 ;;
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
2753 $as_echo "$enabled" >&6; }
2756 # Don't use the default C/CXXFLags
2760 # Checks for compilers
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 if test -n "$ac_tool_prefix"; then
2767 for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2806 test -n "$CC" && break
2809 if test -z "$CC"; then
2811 for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_ac_ct_CC="$ac_prog"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2850 test -n "$ac_ct_CC" && break
2853 if test "x$ac_ct_CC" = x; then
2856 case $cross_compiling:$ac_tool_warned in
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2867 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2870 See \
`config.log' for more details" "$LINENO" 5; }
2872 # Provide some information about the compiler.
2873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2876 for ac_option in --version -v -V -qversion; do
2877 { { ac_try="$ac_compiler $ac_option >&5"
2879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2880 *) ac_try_echo
=$ac_try;;
2882 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883 $as_echo "$ac_try_echo"; } >&5
2884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2886 if test -s conftest.err
; then
2888 ... rest of stderr output deleted ...
2889 10q' conftest.err
>conftest.er1
2890 cat conftest.er1
>&5
2892 rm -f conftest.er1 conftest.err
2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }
2897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h. */
2908 ac_clean_files_save
=$ac_clean_files
2909 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2910 # Try to create an executable without -o first, disregard a.out.
2911 # It will help us diagnose broken compilers, and finding out an intuition
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2914 $as_echo_n "checking whether the C compiler works... " >&6; }
2915 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2917 # The possible output files:
2918 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2921 for ac_file
in $ac_files
2924 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2925 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2930 if { { ac_try
="$ac_link_default"
2932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936 $as_echo "$ac_try_echo"; } >&5
2937 (eval "$ac_link_default") 2>&5
2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }; then :
2941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2942 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2944 # so that the user can short-circuit this test for compilers unknown to
2946 for ac_file in $ac_files ''
2948 test -f "$ac_file" || continue
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2953 # We found the default executable, but exeext='' is most
2957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2961 # We set ac_cv_exeext here because the later test for it is not
2962 # safe: cross compilers may not add the suffix if given an `-o'
2963 # argument, so we may need to know it at that point already.
2964 # Even if this section looks crufty: it has the advantage of
2971 test "$ac_cv_exeext" = no && ac_cv_exeext=
2976 if test -z "$ac_file"; then :
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 $as_echo "$as_me: failed program was:" >&5
2980 sed 's
/^
/|
/' conftest.$ac_ext >&5
2982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2984 as_fn_error 77 "C compiler cannot create executables
2985 See \`config.log
' for more details" "$LINENO" 5; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988 $as_echo "yes" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2991 $as_echo_n "checking for C compiler default output file name... " >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2993 $as_echo "$ac_file" >&6; }
2994 ac_exeext=$ac_cv_exeext
2996 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2997 ac_clean_files=$ac_clean_files_save
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2999 $as_echo_n "checking for suffix of executables... " >&6; }
3000 if { { ac_try="$ac_link"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link") 2>&5
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3012 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3013 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3015 for ac_file
in conftest.exe conftest conftest.
*; do
3016 test -f "$ac_file" ||
continue
3018 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3019 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details" "$LINENO" 5; }
3030 rm -f conftest conftest
$ac_cv_exeext
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3032 $as_echo "$ac_cv_exeext" >&6; }
3034 rm -f conftest.
$ac_ext
3035 EXEEXT
=$ac_cv_exeext
3037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3043 FILE *f = fopen ("conftest.out", "w");
3044 return ferror (f) || fclose (f) != 0;
3050 ac_clean_files
="$ac_clean_files conftest.out"
3051 # Check that the compiler produces executables we can run. If not, either
3052 # the compiler is broken, or we cross compile.
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3054 $as_echo_n "checking whether we are cross compiling... " >&6; }
3055 if test "$cross_compiling" != yes; then
3056 { { ac_try
="$ac_link"
3058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_link") 2>&5
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }
3067 if { ac_try='./conftest$ac_cv_exeext'
3068 { { case "(($ac_try" in
3069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3070 *) ac_try_echo
=$ac_try;;
3072 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_try") 2>&5
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }; }; then
3080 if test "$cross_compiling" = maybe
; then
3083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error $?
"cannot run C compiled programs.
3086 If you meant to cross compile, use \`--host'.
3087 See \`config.log' for more details" "$LINENO" 5; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3092 $as_echo "$cross_compiling" >&6; }
3094 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3095 ac_clean_files
=$ac_clean_files_save
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3097 $as_echo_n "checking for suffix of object files... " >&6; }
3098 if ${ac_cv_objext+:} false
; then :
3099 $as_echo_n "(cached) " >&6
3101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3112 rm -f conftest.o conftest.obj
3113 if { { ac_try
="$ac_compile"
3115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_compile") 2>&5
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
3124 for ac_file in conftest.o conftest.obj conftest.*; do
3125 test -f "$ac_file" || continue;
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133 $as_echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3139 See \
`config.log' for more details" "$LINENO" 5; }
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3144 $as_echo "$ac_cv_objext" >&6; }
3145 OBJEXT=$ac_cv_objext
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3149 if ${ac_cv_c_compiler_gnu+:} false; then :
3150 $as_echo_n "(cached) " >&6
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3166 if ac_fn_c_try_compile "$LINENO"; then :
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3176 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3177 if test $ac_compiler_gnu = yes; then
3182 ac_test_CFLAGS=${CFLAGS+set}
3183 ac_save_CFLAGS=$CFLAGS
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3185 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3186 if ${ac_cv_prog_cc_g+:} false; then :
3187 $as_echo_n "(cached) " >&6
3189 ac_save_c_werror_flag=$ac_c_werror_flag
3190 ac_c_werror_flag=yes
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3204 if ac_fn_c_try_compile "$LINENO"; then :
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3219 if ac_fn_c_try_compile "$LINENO"; then :
3222 ac_c_werror_flag=$ac_save_c_werror_flag
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3235 if ac_fn_c_try_compile "$LINENO"; then :
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3246 $as_echo "$ac_cv_prog_cc_g" >&6; }
3247 if test "$ac_test_CFLAGS" = set; then
3248 CFLAGS=$ac_save_CFLAGS
3249 elif test $ac_cv_prog_cc_g = yes; then
3250 if test "$GCC" = yes; then
3256 if test "$GCC" = yes; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3264 if ${ac_cv_prog_cc_c89+:} false; then :
3265 $as_echo_n "(cached) " >&6
3267 ac_cv_prog_cc_c89=no
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3273 #include <sys/types.h>
3274 #include <sys/stat.h>
3275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3276 struct buf { int x; };
3277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278 static char *e (p, i)
3284 static char *f (char * (*g) (char **, int), char **p, ...)
3289 s = g (p, va_arg (v,int));
3294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3295 function prototypes and stuff, but not '\xHH' hex character constants.
3296 These don't provoke an error unfortunately, instead are silently treated
3297 as 'x'. The following induces an error, until -std is added to get
3298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3299 array size at least. It's necessary to write '\x00'==0 to get something
3300 that's true only with -std. */
3301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3304 inside strings and character constants. */
3306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308 int test (int i, double x);
3309 struct s1 {int (*f) (int a);};
3310 struct s2 {int (*f) (double a);};
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325 CC="$ac_save_CC $ac_arg"
3326 if ac_fn_c_try_compile "$LINENO"; then :
3327 ac_cv_prog_cc_c89=$ac_arg
3329 rm -f core conftest.err conftest.$ac_objext
3330 test "x$ac_cv_prog_cc_c89" != "xno" && break
3332 rm -f conftest.$ac_ext
3337 case "x$ac_cv_prog_cc_c89" in
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3340 $as_echo "none needed" >&6; } ;;
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3343 $as_echo "unsupported" >&6; } ;;
3345 CC="$CC $ac_cv_prog_cc_c89"
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3349 if test "x$ac_cv_prog_cc_c89" != xno; then :
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359 # Make sure that we try clang++ first, which provides C++11 support.
3360 # The g++ compiler is less likely to support C++11.
3362 ac_cpp='$CXXCPP $CPPFLAGS'
3363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3366 if test -z "$CXX"; then
3367 if test -n "$CCC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3376 $as_echo_n "checking for $ac_word... " >&6; }
3377 if ${ac_cv_prog_CXX+:} false; then :
3378 $as_echo_n "(cached) " >&6
3380 if test -n "$CXX"; then
3381 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3401 if test -n "$CXX"; then
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3403 $as_echo "$CXX" >&6; }
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3406 $as_echo "no" >&6; }
3410 test -n "$CXX" && break
3413 if test -z "$CXX"; then
3415 for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3422 $as_echo_n "(cached) " >&6
3424 if test -n "$ac_ct_CXX"; then
3425 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434 ac_cv_prog_ac_ct_CXX="$ac_prog"
3435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3445 if test -n "$ac_ct_CXX"; then
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3447 $as_echo "$ac_ct_CXX" >&6; }
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3454 test -n "$ac_ct_CXX" && break
3457 if test "x$ac_ct_CXX" = x; then
3460 case $cross_compiling:$ac_tool_warned in
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3464 ac_tool_warned=yes ;;
3472 # Provide some information about the compiler.
3473 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3476 for ac_option in --version -v -V -qversion; do
3477 { { ac_try="$ac_compiler $ac_option >&5"
3479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3480 *) ac_try_echo
=$ac_try;;
3482 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3486 if test -s conftest.err
; then
3488 ... rest of stderr output deleted ...
3489 10q' conftest.err
>conftest.er1
3490 cat conftest.er1
>&5
3492 rm -f conftest.er1 conftest.err
3493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3494 test $ac_status = 0; }
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3498 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3499 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
3500 $as_echo_n "(cached) " >&6
3502 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3516 if ac_fn_cxx_try_compile
"$LINENO"; then :
3521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3522 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3526 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3527 if test $ac_compiler_gnu = yes; then
3532 ac_test_CXXFLAGS
=${CXXFLAGS+set}
3533 ac_save_CXXFLAGS
=$CXXFLAGS
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3535 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3536 if ${ac_cv_prog_cxx_g+:} false
; then :
3537 $as_echo_n "(cached) " >&6
3539 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
3540 ac_cxx_werror_flag
=yes
3543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3554 if ac_fn_cxx_try_compile
"$LINENO"; then :
3555 ac_cv_prog_cxx_g
=yes
3558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3569 if ac_fn_cxx_try_compile
"$LINENO"; then :
3572 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3574 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3575 /* end confdefs.h. */
3585 if ac_fn_cxx_try_compile
"$LINENO"; then :
3586 ac_cv_prog_cxx_g
=yes
3588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3592 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
3593 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3596 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3597 if test "$ac_test_CXXFLAGS" = set; then
3598 CXXFLAGS
=$ac_save_CXXFLAGS
3599 elif test $ac_cv_prog_cxx_g = yes; then
3600 if test "$GXX" = yes; then
3606 if test "$GXX" = yes; then
3613 ac_cpp
='$CPP $CPPFLAGS'
3614 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3615 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3616 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3619 # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option
3620 # The release mode use is the default one for autoconf
3621 if test "$GCC" = yes; then
3622 if test "$CFLAGS" = ""; then
3623 if test "$ENABLE_DEBUG" = 1; then
3626 if test "$ENABLE_RELEASE" = 1; then
3627 CFLAGS
="$CFLAGS -O2"
3630 if test "$CXXFLAGS" = ""; then
3631 if test "$ENABLE_DEBUG" = 1; then
3634 if test "$ENABLE_RELEASE" = 1; then
3635 CXXFLAGS
="$CXXFLAGS -O2"
3641 ac_cpp
='$CPP $CPPFLAGS'
3642 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3643 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3644 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3646 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3647 # On Suns, sometimes $CPP names a directory.
3648 if test -n "$CPP" && test -d "$CPP"; then
3651 if test -z "$CPP"; then
3652 if ${ac_cv_prog_CPP+:} false
; then :
3653 $as_echo_n "(cached) " >&6
3655 # Double quotes because CPP needs to be expanded
3656 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3659 for ac_c_preproc_warn_flag
in '' yes
3661 # Use a header file that comes with gcc, so configuring glibc
3662 # with a fresh cross-compiler works.
3663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3664 # <limits.h> exists even on freestanding compilers.
3665 # On the NeXT, cc -E runs the code through the compiler's parser,
3666 # not just through cpp. "Syntax error" is here to catch this case.
3667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3668 /* end confdefs.h. */
3670 # include <limits.h>
3672 # include <assert.h>
3676 if ac_fn_c_try_cpp
"$LINENO"; then :
3679 # Broken: fails on valid input.
3682 rm -f conftest.err conftest.i conftest.
$ac_ext
3684 # OK, works on sane cases. Now check whether nonexistent headers
3685 # can be detected and how.
3686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3688 #include <ac_nonexistent.h>
3690 if ac_fn_c_try_cpp
"$LINENO"; then :
3691 # Broken: success on invalid input.
3694 # Passes both tests.
3698 rm -f conftest.err conftest.i conftest.
$ac_ext
3701 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3702 rm -f conftest.i conftest.err conftest.
$ac_ext
3703 if $ac_preproc_ok; then :
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3716 $as_echo "$CPP" >&6; }
3718 for ac_c_preproc_warn_flag
in '' yes
3720 # Use a header file that comes with gcc, so configuring glibc
3721 # with a fresh cross-compiler works.
3722 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3723 # <limits.h> exists even on freestanding compilers.
3724 # On the NeXT, cc -E runs the code through the compiler's parser,
3725 # not just through cpp. "Syntax error" is here to catch this case.
3726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3729 # include <limits.h>
3731 # include <assert.h>
3735 if ac_fn_c_try_cpp
"$LINENO"; then :
3738 # Broken: fails on valid input.
3741 rm -f conftest.err conftest.i conftest.
$ac_ext
3743 # OK, works on sane cases. Now check whether nonexistent headers
3744 # can be detected and how.
3745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3746 /* end confdefs.h. */
3747 #include <ac_nonexistent.h>
3749 if ac_fn_c_try_cpp
"$LINENO"; then :
3750 # Broken: success on invalid input.
3753 # Passes both tests.
3757 rm -f conftest.err conftest.i conftest.
$ac_ext
3760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3761 rm -f conftest.i conftest.err conftest.
$ac_ext
3762 if $ac_preproc_ok; then :
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3768 See \`config.log' for more details" "$LINENO" 5; }
3772 ac_cpp
='$CPP $CPPFLAGS'
3773 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3778 # Find a good install program. We prefer a C program (faster),
3779 # so one script is as good as another. But avoid the broken or
3780 # incompatible versions:
3781 # SysV /etc/install, /usr/sbin/install
3782 # SunOS /usr/etc/install
3783 # IRIX /sbin/install
3785 # AmigaOS /C/install, which installs bootblocks on floppy discs
3786 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3787 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3788 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3789 # OS/2's system install, which has a completely different semantic
3790 # ./install, which can be erroneously created by make from ./install.sh.
3791 # Reject install programs that cannot install multiple files.
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3793 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3794 if test -z "$INSTALL"; then
3795 if ${ac_cv_path_install+:} false
; then :
3796 $as_echo_n "(cached) " >&6
3798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3802 test -z "$as_dir" && as_dir
=.
3803 # Account for people who put trailing slashes in PATH elements.
3804 case $as_dir/ in #((
3805 .
/ | .
// |
/[cC
]/* | \
3806 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3807 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
3810 # OSF1 and SCO ODT 3.0 have their own names for install.
3811 # Don't use installbsd from OSF since it installs stuff as root
3813 for ac_prog
in ginstall scoinst
install; do
3814 for ac_exec_ext
in '' $ac_executable_extensions; do
3815 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3816 if test $ac_prog = install &&
3817 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3818 # AIX install. It has an incompatible calling convention.
3820 elif test $ac_prog = install &&
3821 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3822 # program-specific install script used by HP pwplus--don't use.
3825 rm -rf conftest.one conftest.two conftest.dir
3826 echo one
> conftest.one
3827 echo two
> conftest.two
3829 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3830 test -s conftest.one
&& test -s conftest.two
&&
3831 test -s conftest.dir
/conftest.one
&&
3832 test -s conftest.dir
/conftest.two
3834 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3847 rm -rf conftest.one conftest.two conftest.dir
3850 if test "${ac_cv_path_install+set}" = set; then
3851 INSTALL
=$ac_cv_path_install
3853 # As a last resort, use the slow shell script. Don't cache a
3854 # value for INSTALL within a source directory, because that will
3855 # break other packages using the cache if that directory is
3856 # removed, or if the value is a relative name.
3857 INSTALL
=$ac_install_sh
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3861 $as_echo "$INSTALL" >&6; }
3863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3864 # It thinks the first close brace ends the variable substitution.
3865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3869 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3875 ac_cpp
='$CXXCPP $CPPFLAGS'
3876 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3877 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3878 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3881 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3892 if ac_fn_cxx_try_link
"$LINENO"; then :
3895 rm -f core conftest.err conftest.
$ac_objext \
3896 conftest
$ac_exeext conftest.
$ac_ext
3898 ac_cpp
='$CPP $CPPFLAGS'
3899 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3904 # make sure install is relative to srcdir - if a script
3905 if test "$srcdir" = "."; then
3906 # If srcdir isn't just ., then (srcdir) is already prepended.
3907 if test "${ac_install_sh}" = "${INSTALL}"; then
3908 INSTALL
="\\\$(top_srcdir)/${ac_install_sh}"
3912 #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true)
3913 #AC_CHECK_PROG(STRIP, strip, strip, true)
3915 # Check for the platform make
3916 for ac_prog
in gmake gnumake
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy
$ac_prog; ac_word
=$2
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if ${ac_cv_path_U_MAKE+:} false
; then :
3923 $as_echo_n "(cached) " >&6
3927 ac_cv_path_U_MAKE
="$U_MAKE" # Let the user override the test with a path.
3930 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir
=.
3935 for ac_exec_ext
in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_path_U_MAKE
="$as_dir/$ac_word$ac_exec_ext"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 U_MAKE
=$ac_cv_path_U_MAKE
3949 if test -n "$U_MAKE"; then
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5
3951 $as_echo "$U_MAKE" >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 $as_echo "no" >&6; }
3958 test -n "$U_MAKE" && break
3960 test -n "$U_MAKE" || U_MAKE
="make"
3966 # Check whether --with-cross-build was given.
3967 if test "${with_cross_build+set}" = set; then :
3968 withval
=$with_cross_build; cross_buildroot
="${withval}"
3974 if test "X$cross_buildroot" = "X"; then
3975 if test "$cross_compiling" = "yes"; then
3976 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
3979 if test -f "${cross_buildroot}/config/icucross.mk"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5
3981 $as_echo "Using cross buildroot: $cross_buildroot" >&6; }
3983 if test -d "${cross_buildroot}"; then
3984 as_fn_error $?
"${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5
3986 as_fn_error $?
"No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5
3992 # Check for doxygen to generate documentation
3993 # Extract the first word of "doxygen", so it can be a program name with args.
3994 set dummy doxygen
; ac_word
=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_path_DOXYGEN+:} false
; then :
3998 $as_echo_n "(cached) " >&6
4002 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
4005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4006 as_dummy
="$PATH:/usr/local/bin:/usr/bin"
4007 for as_dir
in $as_dummy
4010 test -z "$as_dir" && as_dir
=.
4011 for ac_exec_ext
in '' $ac_executable_extensions; do
4012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4013 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 DOXYGEN
=$ac_cv_path_DOXYGEN
4025 if test -n "$DOXYGEN"; then
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
4027 $as_echo "$DOXYGEN" >&6; }
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4030 $as_echo "no" >&6; }
4035 # Check that the linker is usable
4038 *-*-cygwin*|
*-*-mingw*)
4039 if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then
4040 as_fn_error $?
"link.exe is not a valid linker. Your PATH is incorrect.
4041 Please follow the directions in ICU's readme." "$LINENO" 5
4046 # Determine the executable suffix
4047 # We don't use AC_EXEEXT because some compilers output separate debugging
4048 # files, which confuses the AC_EXEEXT macro.
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5
4050 $as_echo_n "checking checking for executable suffix... " >&6; }
4052 *-*-cygwin*|
*-*-mingw*) EXEEXT
=.exe
;;
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
4057 $as_echo "$EXEEXT" >&6; }
4060 # Determine how strict we want to be when compiling
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5
4063 $as_echo_n "checking whether strict compiling is on... " >&6; }
4064 # Check whether --enable-strict was given.
4065 if test "${enable_strict+set}" = set; then :
4066 enableval
=$enable_strict;
4067 if test "$enableval" = no
4069 ac_use_strict_options
=no
4071 ac_use_strict_options
=yes
4075 ac_use_strict_options
=yes
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5
4079 $as_echo "$ac_use_strict_options" >&6; }
4081 if test "$ac_use_strict_options" = yes
4083 if test "$GCC" = yes
4087 # Don't use -std=c99 option on Solaris/GCC
4090 # Do not use -ansi. It limits us to C90, and it breaks some platforms.
4091 # We use -std=c99 to disable the gnu99 defaults and its associated warnings
4092 CFLAGS
="$CFLAGS -std=c99"
4096 CFLAGS
="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings"
4098 # Suppress clang C warnings:
4099 CFLAGS
="$CFLAGS -Wno-sign-compare -Wno-unused"
4103 if test "`$CC /help 2>&1 | head -c9`" = "Microsoft"
4105 CFLAGS
="$CFLAGS /W4"
4107 *-*-mingw32|
*-*-mingw64)
4108 CFLAGS
="$CFLAGS -W4" ;;
4111 if test "$GXX" = yes
4113 CXXFLAGS
="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long"
4115 # Suppress clang C++ warnings:
4116 CXXFLAGS
="$CXXFLAGS -Wno-unused -Wno-unused-parameter"
4120 if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft"
4122 CXXFLAGS
="$CXXFLAGS /W4"
4124 *-*-mingw32|
*-*-mingw64)
4125 CFLAGS
="$CFLAGS -W4" ;;
4131 # Check if we can build and use 64-bit libraries
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4135 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4136 if ${ac_cv_path_GREP+:} false
; then :
4137 $as_echo_n "(cached) " >&6
4139 if test -z "$GREP"; then
4140 ac_path_GREP_found
=false
4141 # Loop through the user's path and test for each of PROGNAME-LIST
4142 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4143 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4146 test -z "$as_dir" && as_dir
=.
4147 for ac_prog
in grep ggrep
; do
4148 for ac_exec_ext
in '' $ac_executable_extensions; do
4149 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4150 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4151 # Check for GNU ac_path_GREP and select it if it is found.
4152 # Check for GNU $ac_path_GREP
4153 case `"$ac_path_GREP" --version 2>&1` in
4155 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4158 $as_echo_n 0123456789 >"conftest.in"
4161 cat "conftest.in" "conftest.in" >"conftest.tmp"
4162 mv "conftest.tmp" "conftest.in"
4163 cp "conftest.in" "conftest.nl"
4164 $as_echo 'GREP' >> "conftest.nl"
4165 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4166 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4167 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4168 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4169 # Best one so far, save it but keep looking for a better one
4170 ac_cv_path_GREP
="$ac_path_GREP"
4171 ac_path_GREP_max
=$ac_count
4173 # 10*(2^10) chars as input seems more than enough
4174 test $ac_count -gt 10 && break
4176 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4179 $ac_path_GREP_found && break 3
4184 if test -z "$ac_cv_path_GREP"; then
4185 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4188 ac_cv_path_GREP
=$GREP
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4193 $as_echo "$ac_cv_path_GREP" >&6; }
4194 GREP
="$ac_cv_path_GREP"
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4198 $as_echo_n "checking for egrep... " >&6; }
4199 if ${ac_cv_path_EGREP+:} false
; then :
4200 $as_echo_n "(cached) " >&6
4202 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4203 then ac_cv_path_EGREP
="$GREP -E"
4205 if test -z "$EGREP"; then
4206 ac_path_EGREP_found
=false
4207 # Loop through the user's path and test for each of PROGNAME-LIST
4208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4209 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4212 test -z "$as_dir" && as_dir
=.
4213 for ac_prog
in egrep; do
4214 for ac_exec_ext
in '' $ac_executable_extensions; do
4215 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4216 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4217 # Check for GNU ac_path_EGREP and select it if it is found.
4218 # Check for GNU $ac_path_EGREP
4219 case `"$ac_path_EGREP" --version 2>&1` in
4221 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4224 $as_echo_n 0123456789 >"conftest.in"
4227 cat "conftest.in" "conftest.in" >"conftest.tmp"
4228 mv "conftest.tmp" "conftest.in"
4229 cp "conftest.in" "conftest.nl"
4230 $as_echo 'EGREP' >> "conftest.nl"
4231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4232 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4233 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4235 # Best one so far, save it but keep looking for a better one
4236 ac_cv_path_EGREP
="$ac_path_EGREP"
4237 ac_path_EGREP_max
=$ac_count
4239 # 10*(2^10) chars as input seems more than enough
4240 test $ac_count -gt 10 && break
4242 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4245 $ac_path_EGREP_found && break 3
4250 if test -z "$ac_cv_path_EGREP"; then
4251 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4254 ac_cv_path_EGREP
=$EGREP
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4260 $as_echo "$ac_cv_path_EGREP" >&6; }
4261 EGREP
="$ac_cv_path_EGREP"
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4265 $as_echo_n "checking for ANSI C header files... " >&6; }
4266 if ${ac_cv_header_stdc+:} false
; then :
4267 $as_echo_n "(cached) " >&6
4269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4284 if ac_fn_c_try_compile
"$LINENO"; then :
4285 ac_cv_header_stdc
=yes
4287 ac_cv_header_stdc
=no
4289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4291 if test $ac_cv_header_stdc = yes; then
4292 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4293 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4299 $EGREP "memchr" >/dev
/null
2>&1; then :
4302 ac_cv_header_stdc
=no
4308 if test $ac_cv_header_stdc = yes; then
4309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4310 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4316 $EGREP "free" >/dev
/null
2>&1; then :
4319 ac_cv_header_stdc
=no
4325 if test $ac_cv_header_stdc = yes; then
4326 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4327 if test "$cross_compiling" = yes; then :
4330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4334 #if ((' ' & 0x0FF) == 0x020)
4335 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4336 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4338 # define ISLOWER(c) \
4339 (('a' <= (c) && (c) <= 'i') \
4340 || ('j' <= (c) && (c) <= 'r') \
4341 || ('s' <= (c) && (c) <= 'z'))
4342 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4345 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4350 for (i = 0; i < 256; i++)
4351 if (XOR (islower (i), ISLOWER (i))
4352 || toupper (i) != TOUPPER (i))
4357 if ac_fn_c_try_run
"$LINENO"; then :
4360 ac_cv_header_stdc
=no
4362 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4363 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4369 $as_echo "$ac_cv_header_stdc" >&6; }
4370 if test $ac_cv_header_stdc = yes; then
4372 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4376 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4377 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4378 inttypes.h stdint.h unistd.h
4380 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4381 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4383 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4384 cat >>confdefs.h
<<_ACEOF
4385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4395 ENABLE_64BIT_LIBS
=unknown
4396 ## revisit this for cross-compile.
4398 # Check whether --enable-64bit-libs was given.
4399 if test "${enable_64bit_libs+set}" = set; then :
4400 enableval
=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs"
4401 case "${enableval}" in
4402 no|false|
32) with_library_bits
=32; ;;
4403 yes|true|
64) with_library_bits
=64else32
;;
4404 nochange
) with_library_bits
=nochange
; ;;
4405 *) as_fn_error $?
"bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;;
4412 # Check whether --with-library-bits was given.
4413 if test "${with_library_bits+set}" = set; then :
4414 withval
=$with_library_bits; case "${withval}" in
4415 ""|nochange
) BITS_REQ
=$withval ;;
4416 32|
64|
64else32
) BITS_REQ
=$withval ;;
4417 *) as_fn_error $?
"bad value ${withval} for --with-library-bits" "$LINENO" 5 ;;
4422 # don't use these for cross compiling
4423 if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then
4424 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
4426 # The cast to long int works around a bug in the HP C Compiler
4427 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4428 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4429 # This bug is HP SR number 8606223364.
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
4431 $as_echo_n "checking size of void *... " >&6; }
4432 if ${ac_cv_sizeof_void_p+:} false
; then :
4433 $as_echo_n "(cached) " >&6
4435 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
4438 if test "$ac_cv_type_void_p" = yes; then
4439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4441 as_fn_error
77 "cannot compute sizeof (void *)
4442 See \`config.log' for more details" "$LINENO" 5; }
4444 ac_cv_sizeof_void_p
=0
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
4450 $as_echo "$ac_cv_sizeof_void_p" >&6; }
4454 cat >>confdefs.h
<<_ACEOF
4455 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5
4460 $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; }
4461 case $ac_cv_sizeof_void_p in
4462 8) DEFAULT_64BIT
=yes ;;
4463 4) DEFAULT_64BIT
=no
;;
4464 *) DEFAULT_64BIT
=unknown
4468 # 'OK' here means, we can exit any further checking, everything's copa
4471 # do we need to check for buildable/runnable 32 or 64 bit?
4475 # later, can we run the 32/64 bit binaries so made?
4479 if test "$DEFAULT_64BIT" = "yes"; then
4480 # we get 64 bits by default.
4484 # need to look for 32 bit support.
4488 # everyone else is happy.
4492 elif test "$DEFAULT_64BIT" = "no"; then
4493 # not 64 bit by default.
4503 elif test "$DEFAULT_64BIT" = "unknown"; then
4507 64|
64else32
) BITS_OK
=no
4509 BITS_CHECK_64
=yes ;;
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5
4517 $as_echo "$DEFAULT_64BIT" >&6; };
4519 if test "$BITS_OK" != "yes"; then
4520 # not copa. back these up.
4521 CFLAGS_OLD
="${CFLAGS}"
4522 CXXFLAGS_OLD
="${CXXFLAGS}"
4523 LDFLAGS_OLD
="${LDFLAGS}"
4524 ARFLAGS_OLD
="${ARFLAGS}"
4526 CFLAGS_32
="${CFLAGS}"
4527 CXXFLAGS_32
="${CXXFLAGS}"
4528 LDFLAGS_32
="${LDFLAGS}"
4529 ARFLAGS_32
="${ARFLAGS}"
4531 CFLAGS_64
="${CFLAGS}"
4532 CXXFLAGS_64
="${CXXFLAGS}"
4533 LDFLAGS_64
="${LDFLAGS}"
4534 ARFLAGS_64
="${ARFLAGS}"
4536 CAN_BUILD_64
=unknown
4537 CAN_BUILD_32
=unknown
4538 # These results can't be cached because is sets compiler flags.
4539 if test "$BITS_CHECK_64" = "yes"; then
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5
4541 $as_echo_n "checking how to build 64-bit executables... " >&6; }
4544 # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it.
4545 # Note, we don't have to actually check if the options work- we'll try them before using them.
4546 # So, only try actually testing the options, if you are trying to decide between multiple options.
4547 # On exit from the following clauses:
4548 # if CAN_BUILD_64=yes:
4549 # *FLAGS are assumed to contain the right settings for 64bit
4550 # else if CAN_BUILD_64=no: (default)
4551 # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD
4553 if test "$GCC" = yes; then
4554 CFLAGS
="${CFLAGS} -m64"
4555 CXXFLAGS
="${CXXFLAGS} -m64"
4556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4560 if ac_fn_c_try_compile
"$LINENO"; then :
4565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4570 CFLAGS
="${CFLAGS} -m64"
4571 CXXFLAGS
="${CXXFLAGS} -m64"
4572 if test "$cross_compiling" = yes; then :
4573 CAN_BUILD_64
=unknown
4575 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h. */
4577 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4579 if ac_fn_c_try_run
"$LINENO"; then :
4584 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4585 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4588 if test "$CAN_BUILD_64" != yes; then
4589 # Nope. back out changes.
4590 CFLAGS
="${CFLAGS_OLD}"
4591 CXXFLAGS
="${CFLAGS_OLD}"
4592 # 2. try xarch=v9 [deprecated]
4593 ## TODO: cross compile: the following won't work.
4594 SPARCV9
=`isainfo -n 2>&1 | grep sparcv9`
4595 SOL64
=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:`
4596 # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs"
4597 if test -z "$SOL64" && test -n "$SPARCV9"; then
4598 CFLAGS
="${CFLAGS} -xtarget=ultra -xarch=v9"
4599 CXXFLAGS
="${CXXFLAGS} -xtarget=ultra -xarch=v9"
4600 LDFLAGS
="${LDFLAGS} -xtarget=ultra -xarch=v9"
4607 CFLAGS
="${CFLAGS} -m64"
4608 CXXFLAGS
="${CXXFLAGS} -m64"
4609 if test "$cross_compiling" = yes; then :
4610 CAN_BUILD_64
=unknown
4612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4616 if ac_fn_c_try_run
"$LINENO"; then :
4621 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4622 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4625 if test "$CAN_BUILD_64" != yes; then
4626 # Nope. back out changes.
4627 CFLAGS
="${CFLAGS_OLD}"
4628 CXXFLAGS
="${CXXFLAGS_OLD}"
4629 # 2. try the older compiler option
4630 ## TODO: cross compile problem
4631 AMD64
=`isainfo -n 2>&1 | grep amd64`
4632 SOL64
=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:`
4633 if test -z "$SOL64" && test -n "$AMD64"; then
4634 CFLAGS
="${CFLAGS} -xtarget=generic64"
4635 CXXFLAGS
="${CXXFLAGS} -xtarget=generic64"
4641 # check for ecc/ecpc compiler support
4642 ## TODO: cross compiler problem
4643 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then
4644 if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then
4650 # vcvarsamd64.bat should have been used to enable 64-bit builds.
4651 # We only do this check to display the correct answer.
4652 ## TODO: cross compiler problem
4653 if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then
4657 *-*-aix*|powerpc64-
*-linux*)
4658 CFLAGS
="${CFLAGS} -q64"
4659 CXXFLAGS
="${CXXFLAGS} -q64"
4660 LDFLAGS
="${LDFLAGS} -q64"
4661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4662 /* end confdefs.h. */
4663 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4665 if ac_fn_c_try_compile
"$LINENO"; then :
4670 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4671 if test "$CAN_BUILD_64" = yes; then
4672 # worked- set other options.
4675 # tell AIX what executable mode to use.
4676 ARFLAGS
="${ARFLAGS} -X64"
4681 # First we try the newer +DD64, if that doesn't work,
4682 # try other options.
4684 CFLAGS
="${CFLAGS} +DD64"
4685 CXXFLAGS
="${CXXFLAGS} +DD64"
4686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4687 /* end confdefs.h. */
4688 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4690 if ac_fn_c_try_compile
"$LINENO"; then :
4695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4696 if test "$CAN_BUILD_64" != yes; then
4698 CFLAGS
="${CFLAGS_OLD}"
4699 CXXFLAGS
="${CXXFLAGS_OLD}"
4701 CFLAGS
="${CFLAGS} +DA2.0W"
4702 CXXFLAGS
="${CXXFLAGS} +DA2.0W"
4703 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4704 /* end confdefs.h. */
4705 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4707 if ac_fn_c_try_compile
"$LINENO"; then :
4712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4715 *-*ibm-openedition
*|
*-*-os390*)
4716 CFLAGS
="${CFLAGS} -Wc,lp64"
4717 CXXFLAGS
="${CXXFLAGS} -Wc,lp64"
4718 LDFLAGS
="${LDFLAGS} -Wl,lp64"
4719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4720 /* end confdefs.h. */
4721 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4723 if ac_fn_c_try_compile
"$LINENO"; then :
4728 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5
4736 $as_echo "$CAN_BUILD_64" >&6; }
4737 if test "$CAN_BUILD_64" = yes; then
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5
4739 $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; }
4740 if test "$cross_compiling" = yes; then :
4743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 int main(void) {return (sizeof(void*)*8==64)?0:1;}
4747 if ac_fn_c_try_run
"$LINENO"; then :
4752 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4753 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5
4757 $as_echo "$BITS_RUN_64" >&6; };
4759 CFLAGS_64
="${CFLAGS}"
4760 CXXFLAGS_64
="${CXXFLAGS}"
4761 LDFLAGS_64
="${LDFLAGS}"
4762 ARFLAGS_64
="${ARFLAGS}"
4765 CFLAGS
="${CFLAGS_OLD}"
4766 CXXFLAGS
="${CXXFLAGS_OLD}"
4767 LDFLAGS
="${LDFLAGS_OLD}"
4768 ARFLAGS
="${ARFLAGS_OLD}"
4770 if test "$BITS_CHECK_32" = "yes"; then
4771 # see comment under 'if BITS_CHECK_64', above.
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5
4773 $as_echo_n "checking how to build 32-bit executables... " >&6; }
4774 if test "$GCC" = yes; then
4775 CFLAGS
="${CFLAGS} -m32"
4776 CXXFLAGS
="${CXXFLAGS} -m32"
4777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4779 int main(void) {return (sizeof(void*)*8==32)?0:1;}
4781 if ac_fn_c_try_compile
"$LINENO"; then :
4786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5
4789 $as_echo "$CAN_BUILD_32" >&6; }
4790 if test "$CAN_BUILD_32" = yes; then
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5
4792 $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; }
4793 if test "$cross_compiling" = yes; then :
4796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 int main(void) {return (sizeof(void*)*8==32)?0:1;}
4800 if ac_fn_c_try_run
"$LINENO"; then :
4805 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4806 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5
4810 $as_echo "$BITS_RUN_32" >&6; };
4811 CFLAGS_32
="${CFLAGS}"
4812 CXXFLAGS_32
="${CXXFLAGS}"
4813 LDFLAGS_32
="${LDFLAGS}"
4814 ARFLAGS_32
="${ARFLAGS}"
4817 CFLAGS
="${CFLAGS_OLD}"
4818 CXXFLAGS
="${CXXFLAGS_OLD}"
4819 LDFLAGS
="${LDFLAGS_OLD}"
4820 ARFLAGS
="${ARFLAGS_OLD}"
4824 # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do.
4827 # First, implement 64else32
4828 if test "$BITS_REQ" = "64else32"; then
4829 if test "$BITS_RUN_64" = "yes"; then
4838 if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then
4839 CFLAGS
="${CFLAGS_32}"
4840 CXXFLAGS
="${CXXFLAGS_32}"
4841 LDFLAGS
="${LDFLAGS_32}"
4842 ARFLAGS
="${ARFLAGS_32}"
4844 elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then
4845 CFLAGS
="${CFLAGS_64}"
4846 CXXFLAGS
="${CXXFLAGS_64}"
4847 LDFLAGS
="${LDFLAGS_64}"
4848 ARFLAGS
="${ARFLAGS_64}"
4850 elif test "$BITS_OK" != "yes"; then
4851 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
4858 # Determine the Makefile fragment
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5
4861 $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; }
4862 if ${icu_cv_host_frag+:} false
; then :
4863 $as_echo_n "(cached) " >&6
4868 if test "$GCC" = yes; then
4869 icu_cv_host_frag
=mh-solaris-gcc
4871 icu_cv_host_frag
=mh-solaris
4874 if test "$GCC" = yes; then
4875 icu_cv_host_frag
=mh-alpha-linux-gcc
4877 icu_cv_host_frag
=mh-alpha-linux-cc
4880 if test "$GCC" = yes; then
4881 icu_cv_host_frag
=mh-linux
4883 icu_cv_host_frag
=mh-linux-va
4885 *-*-linux*|
*-*-gnu|
*-*-k*bsd
*-gnu|
*-*-kopensolaris*-gnu) icu_cv_host_frag
=mh-linux
;;
4886 *-*-cygwin|
*-*-mingw32|
*-*-mingw64)
4887 if test "$GCC" = yes; then
4888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4889 /* end confdefs.h. */
4892 #error This is not MinGW
4902 if ac_fn_c_try_compile
"$LINENO"; then :
4903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4907 #error This is not MinGW64
4917 if ac_fn_c_try_compile
"$LINENO"; then :
4918 icu_cv_host_frag
=mh-mingw64
4920 icu_cv_host_frag
=mh-mingw
4922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4924 icu_cv_host_frag
=mh-cygwin
4926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4929 *-*-cygwin) icu_cv_host_frag
=mh-cygwin-msvc
;;
4930 *-*-mingw32|
*-*-mingw64) icu_cv_host_frag
=mh-msys-msvc
;;
4933 *-*-*bsd
*|
*-*-dragonfly*) icu_cv_host_frag
=mh-bsd-gcc
;;
4935 if test "$GCC" = yes; then
4936 icu_cv_host_frag
=mh-aix-gcc
4938 icu_cv_host_frag
=mh-aix-va
4941 if test "$GCC" = yes; then
4942 icu_cv_host_frag
=mh-hpux-gcc
4945 *aCC
) icu_cv_host_frag
=mh-hpux-acc
;;
4948 *-*ibm-openedition
*|
*-*-os390*) icu_cv_host_frag
=mh-os390
;;
4949 *-*-os400*) icu_cv_host_frag
=mh-os400
;;
4950 *-apple-rhapsody*) icu_cv_host_frag
=mh-darwin
;;
4951 *-apple-darwin*) icu_cv_host_frag
=mh-darwin
;;
4952 *-*-beos) icu_cv_host_frag
=mh-beos
;;
4953 *-*-haiku) icu_cv_host_frag
=mh-haiku
;;
4954 *-*-irix*) icu_cv_host_frag
=mh-irix
;;
4955 *-dec-osf*) icu_cv_host_frag
=mh-alpha-osf
;;
4956 *-*-nto*) icu_cv_host_frag
=mh-qnx
;;
4957 *-ncr-*) icu_cv_host_frag
=mh-mpras
;;
4958 *) icu_cv_host_frag
=mh-unknown
;;
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5
4964 $as_echo "$icu_cv_host_frag" >&6; }
4967 # Checks for libraries and other host specific stuff
4968 # On HP/UX, don't link to -lm from a shared lib because it isn't
4969 # PIC (at least on 10.2)
4971 *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
4972 $as_echo_n "checking for floor in -lm... " >&6; }
4973 if ${ac_cv_lib_m_floor+:} false
; then :
4974 $as_echo_n "(cached) " >&6
4976 ac_check_lib_save_LIBS
=$LIBS
4978 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4981 /* Override any GCC internal prototype to avoid an error.
4982 Use char because int might match the return type of a GCC
4983 builtin and then its argument prototype would still apply. */
4996 if ac_fn_c_try_link
"$LINENO"; then :
4997 ac_cv_lib_m_floor
=yes
4999 ac_cv_lib_m_floor
=no
5001 rm -f core conftest.err conftest.
$ac_objext \
5002 conftest
$ac_exeext conftest.
$ac_ext
5003 LIBS
=$ac_check_lib_save_LIBS
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5006 $as_echo "$ac_cv_lib_m_floor" >&6; }
5007 if test "x$ac_cv_lib_m_floor" = xyes
; then :
5012 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
5013 $as_echo_n "checking for floor in -lm... " >&6; }
5014 if ${ac_cv_lib_m_floor+:} false
; then :
5015 $as_echo_n "(cached) " >&6
5017 ac_check_lib_save_LIBS
=$LIBS
5019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5020 /* end confdefs.h. */
5022 /* Override any GCC internal prototype to avoid an error.
5023 Use char because int might match the return type of a GCC
5024 builtin and then its argument prototype would still apply. */
5037 if ac_fn_c_try_link
"$LINENO"; then :
5038 ac_cv_lib_m_floor
=yes
5040 ac_cv_lib_m_floor
=no
5042 rm -f core conftest.err conftest.
$ac_objext \
5043 conftest
$ac_exeext conftest.
$ac_ext
5044 LIBS
=$ac_check_lib_save_LIBS
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
5047 $as_echo "$ac_cv_lib_m_floor" >&6; }
5048 if test "x$ac_cv_lib_m_floor" = xyes
; then :
5049 cat >>confdefs.h
<<_ACEOF
5061 # Check whether to build shared libraries
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
5063 $as_echo_n "checking whether to build shared libraries... " >&6; }
5065 # Check whether --enable-shared was given.
5066 if test "${enable_shared+set}" = set; then :
5067 enableval
=$enable_shared; case "${enableval}" in
5068 yes|
"") enabled
=yes; ENABLE_SHARED
=YES
;;
5073 enabled
=yes; ENABLE_SHARED
=YES
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5078 $as_echo "$enabled" >&6; }
5081 # Check whether to build static libraries
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
5083 $as_echo_n "checking whether to build static libraries... " >&6; }
5085 # Check whether --enable-static was given.
5086 if test "${enable_static+set}" = set; then :
5087 enableval
=$enable_static; case "${enableval}" in
5088 yes|
"") enabled
=yes; ENABLE_STATIC
=YES
;;
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5095 $as_echo "$enabled" >&6; }
5098 # When building release static library, there might be some optimization flags we can use
5099 if test "$ENABLE_STATIC" = "YES"; then
5100 if test "$ENABLE_SHARED" != "YES"; then
5101 if test "$ENABLE_RELEASE" = 1; then
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5
5103 $as_echo_n "checking whether we can use static library optimization option... " >&6; }
5104 CHECK_STATIC_OPT_FLAG
=no
5106 OLD_CPPFLAGS
="${CPPFLAGS}"
5107 OLD_LDFLAGS
="${LDFLAGS}"
5110 *-linux*|i
*86-*-*bsd
*|i
*86-pc-gnu)
5111 if test "$GCC" = yes; then
5112 CPPFLAGS
="${CPPFLAGS} -ffunction-sections -fdata-sections"
5113 LDFLAGS
="${LDFLAGS} -Wl,--gc-sections"
5120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5121 /* end confdefs.h. */
5131 if ac_fn_c_try_link
"$LINENO"; then :
5132 CHECK_STATIC_OPT_FLAG
=yes
5134 CHECK_STATIC_OPT_FLAG
=no
5136 rm -f core conftest.err conftest.
$ac_objext \
5137 conftest
$ac_exeext conftest.
$ac_ext
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5
5139 $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; }
5140 if test "$CHECK_STATIC_OPT_FLAG" = no
; then
5141 CPPFLAGS
="${OLD_CPPFLAGS}"
5142 LDFLAGS
="${OLD_LDFLAGS}"
5149 # Check whether to enable auto cleanup of libraries
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5
5151 $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; }
5153 UCLN_NO_AUTO_CLEANUP
=1
5154 # Check whether --enable-auto-cleanup was given.
5155 if test "${enable_auto_cleanup+set}" = set; then :
5156 enableval
=$enable_auto_cleanup; case "${enableval}" in
5158 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0";
5159 UCLN_NO_AUTO_CLEANUP
=0
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5166 $as_echo "$enabled" >&6; }
5169 # MSVC floating-point option
5170 MSVC_RELEASE_FLAG
=""
5171 if test $enabled = yes
5173 if test $icu_cv_host_frag = mh-cygwin-msvc
-o $icu_cv_host_frag = mh-msys-msvc
5175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5178 #if defined _MSC_VER && _MSC_VER >= 1400
5180 Microsoft Visual C++ < 2005
5191 if ac_fn_c_try_compile
"$LINENO"; then :
5192 MSVC_RELEASE_FLAG
="/fp:precise"
5194 MSVC_RELEASE_FLAG
="/Op"
5196 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5198 CFLAGS
="${CFLAGS} ${MSVC_RELEASE_FLAG}"
5199 CXXFLAGS
="${CXXFLAGS} ${MSVC_RELEASE_FLAG}"
5203 # Check whether to enabled draft APIs
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5
5205 $as_echo_n "checking whether to enable draft APIs... " >&6; }
5207 U_DEFAULT_SHOW_DRAFT
=1
5208 # Check whether --enable-draft was given.
5209 if test "${enable_draft+set}" = set; then :
5210 enableval
=$enable_draft; case "${enableval}" in
5211 no
) enabled
=no
; U_DEFAULT_SHOW_DRAFT
=0;
5212 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0"
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5219 $as_echo "$enabled" >&6; }
5220 # Make sure that we can use draft API in ICU.
5221 if test "$U_DEFAULT_SHOW_DRAFT" = 0; then
5222 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API"
5226 if test -n "$ac_tool_prefix"; then
5227 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5228 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5230 $as_echo_n "checking for $ac_word... " >&6; }
5231 if ${ac_cv_prog_RANLIB+:} false
; then :
5232 $as_echo_n "(cached) " >&6
5234 if test -n "$RANLIB"; then
5235 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5241 test -z "$as_dir" && as_dir
=.
5242 for ac_exec_ext
in '' $ac_executable_extensions; do
5243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5244 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 RANLIB
=$ac_cv_prog_RANLIB
5255 if test -n "$RANLIB"; then
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5257 $as_echo "$RANLIB" >&6; }
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5260 $as_echo "no" >&6; }
5265 if test -z "$ac_cv_prog_RANLIB"; then
5266 ac_ct_RANLIB
=$RANLIB
5267 # Extract the first word of "ranlib", so it can be a program name with args.
5268 set dummy ranlib
; ac_word
=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
5272 $as_echo_n "(cached) " >&6
5274 if test -n "$ac_ct_RANLIB"; then
5275 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5281 test -z "$as_dir" && as_dir
=.
5282 for ac_exec_ext
in '' $ac_executable_extensions; do
5283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5284 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5295 if test -n "$ac_ct_RANLIB"; then
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5297 $as_echo "$ac_ct_RANLIB" >&6; }
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5300 $as_echo "no" >&6; }
5303 if test "x$ac_ct_RANLIB" = x
; then
5306 case $cross_compiling:$ac_tool_warned in
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5310 ac_tool_warned
=yes ;;
5312 RANLIB
=$ac_ct_RANLIB
5315 RANLIB
="$ac_cv_prog_RANLIB"
5319 # look for 'ar' the proper way
5320 if test -n "$ac_tool_prefix"; then
5321 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5322 set dummy
${ac_tool_prefix}ar; ac_word
=$2
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5324 $as_echo_n "checking for $ac_word... " >&6; }
5325 if ${ac_cv_prog_AR+:} false
; then :
5326 $as_echo_n "(cached) " >&6
5328 if test -n "$AR"; then
5329 ac_cv_prog_AR
="$AR" # Let the user override the test.
5331 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir
=.
5336 for ac_exec_ext
in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_prog_AR
="${ac_tool_prefix}ar"
5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5349 if test -n "$AR"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5351 $as_echo "$AR" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5359 if test -z "$ac_cv_prog_AR"; then
5361 # Extract the first word of "ar", so it can be a program name with args.
5362 set dummy
ar; ac_word
=$2
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5364 $as_echo_n "checking for $ac_word... " >&6; }
5365 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
5366 $as_echo_n "(cached) " >&6
5368 if test -n "$ac_ct_AR"; then
5369 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
5371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5375 test -z "$as_dir" && as_dir
=.
5376 for ac_exec_ext
in '' $ac_executable_extensions; do
5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5378 ac_cv_prog_ac_ct_AR
="ar"
5379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
5389 if test -n "$ac_ct_AR"; then
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5391 $as_echo "$ac_ct_AR" >&6; }
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5397 if test "x$ac_ct_AR" = x
; then
5400 case $cross_compiling:$ac_tool_warned in
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5404 ac_tool_warned
=yes ;;
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5
5414 $as_echo_n "checking whether to enable renaming of symbols... " >&6; }
5416 U_DISABLE_RENAMING
=0
5417 # Check whether --enable-renaming was given.
5418 if test "${enable_renaming+set}" = set; then :
5419 enableval
=$enable_renaming; case "${enableval}" in
5420 yes|
"") enabled
=yes ;;
5421 no
) enabled
=no
; U_DISABLE_RENAMING
=1;
5422 UCONFIG_CPPFLAGS
="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1"
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5429 $as_echo "$enabled" >&6; }
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5
5433 $as_echo_n "checking whether to enable function and data tracing... " >&6; }
5436 # Check whether --enable-tracing was given.
5437 if test "${enable_tracing+set}" = set; then :
5438 enableval
=$enable_tracing; case "${enableval}" in
5439 yes|
"") enabled
=yes;
5440 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1";
5441 U_ENABLE_TRACING
=1 ;;
5442 no
) enabled
=no
; U_ENABLE_TRACING
=0 ;;
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5
5448 $as_echo "$enabled" >&6; }
5451 # check if elf.h is present.
5452 for ac_header
in elf.h
5454 ac_fn_c_check_header_mongrel
"$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
5455 if test "x$ac_cv_header_elf_h" = xyes
; then :
5456 cat >>confdefs.h
<<_ACEOF
5457 #define HAVE_ELF_H 1
5464 if test "x$ac_cv_header_elf_h" = "xyes"; then
5465 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1";
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5
5471 $as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; }
5472 # Check whether --enable-dyload was given.
5473 if test "${enable_dyload+set}" = set; then :
5474 enableval
=$enable_dyload; case "${enableval}" in
5482 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0";
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5
5489 $as_echo "$enable" >&6; }
5492 if test "$enable" = "yes"; then
5493 for ac_header
in dlfcn.h
5495 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5496 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
5497 cat >>confdefs.h
<<_ACEOF
5498 #define HAVE_DLFCN_H 1
5505 #AC_MSG_RESULT($enabled)
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
5507 $as_echo_n "checking for library containing dlopen... " >&6; }
5508 if ${ac_cv_search_dlopen+:} false
; then :
5509 $as_echo_n "(cached) " >&6
5511 ac_func_search_save_LIBS
=$LIBS
5512 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5513 /* end confdefs.h. */
5515 /* Override any GCC internal prototype to avoid an error.
5516 Use char because int might match the return type of a GCC
5517 builtin and then its argument prototype would still apply. */
5530 for ac_lib
in '' dl
; do
5531 if test -z "$ac_lib"; then
5532 ac_res
="none required"
5535 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
5537 if ac_fn_c_try_link
"$LINENO"; then :
5538 ac_cv_search_dlopen
=$ac_res
5540 rm -f core conftest.err conftest.
$ac_objext \
5542 if ${ac_cv_search_dlopen+:} false
; then :
5546 if ${ac_cv_search_dlopen+:} false
; then :
5549 ac_cv_search_dlopen
=no
5552 LIBS
=$ac_func_search_save_LIBS
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
5555 $as_echo "$ac_cv_search_dlopen" >&6; }
5556 ac_res
=$ac_cv_search_dlopen
5557 if test "$ac_res" != no
; then :
5558 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
5562 for ac_func
in dlopen
5564 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
5565 if test "x$ac_cv_func_dlopen" = xyes
; then :
5566 cat >>confdefs.h
<<_ACEOF
5567 #define HAVE_DLOPEN 1
5574 if test "x$ac_cv_func_dlopen" != xyes
; then
5575 CONFIG_CPPFLAGS
="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0"
5579 # Check for miscellanous functions.
5580 # So, use for putil / tools only.
5581 # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY
5582 for ac_func
in gettimeofday
5584 ac_fn_c_check_func
"$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
5585 if test "x$ac_cv_func_gettimeofday" = xyes
; then :
5586 cat >>confdefs.h
<<_ACEOF
5587 #define HAVE_GETTIMEOFDAY 1
5595 # Check whether to use the evil rpath or not
5596 # Check whether --enable-rpath was given.
5597 if test "${enable_rpath+set}" = set; then :
5598 enableval
=$enable_rpath; case "${enableval}" in
5599 yes|
"") ENABLE_RPATH
=YES
;;
5613 ac_cpp
='$CXXCPP $CPPFLAGS'
5614 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5
5619 $as_echo_n "checking if we have a C++ compiler... " >&6; }
5620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5621 /* end confdefs.h. */
5631 if ac_fn_cxx_try_compile
"$LINENO"; then :
5636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5637 if test $cxx_okay = yes
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5
5640 $as_echo "Good" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5644 as_fn_error $?
"C++ compiler $CXX does not work or no compiler found" "$LINENO" 5
5647 if [ "$GXX" = yes ]; then
5648 # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++0x,
5649 # and check that the compiler still works.
5650 if ! echo "$CXXFLAGS" |
grep '\-std=' >/dev
/null
2>&1; then
5651 OLD_CXXFLAGS
="${CXXFLAGS}"
5652 CXXFLAGS
="$CXXFLAGS --std=c++0x"
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++11 compiler" >&5
5654 $as_echo_n "checking if we have a C++11 compiler... " >&6; }
5655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5656 /* end confdefs.h. */
5666 if ac_fn_cxx_try_compile
"$LINENO"; then :
5671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx11_okay" >&5
5673 $as_echo "$cxx11_okay" >&6; }
5674 if [ $cxx11_okay = yes ]; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option --std=c++0x" >&5
5676 $as_echo "$as_me: Adding CXXFLAGS option --std=c++0x" >&6;}
5677 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} --std=c++0x"
5679 CXXFLAGS
="$OLD_CXXFLAGS"
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <string> works" >&5
5685 $as_echo_n "checking if #include <string> works... " >&6; }
5686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5697 if ac_fn_cxx_try_compile
"$LINENO"; then :
5698 ac_cv_header_stdstring
=yes
5700 ac_cv_header_stdstring
=no
5702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5
5704 $as_echo "$ac_cv_header_stdstring" >&6; }
5705 if test $ac_cv_header_stdstring = yes
5710 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0"
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include <atomic> works" >&5
5716 $as_echo_n "checking if #include <atomic> works... " >&6; }
5717 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5728 if ac_fn_cxx_try_compile
"$LINENO"; then :
5729 ac_cv_header_atomic
=yes
5731 ac_cv_header_atomic
=no
5733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_atomic" >&5
5735 $as_echo "$ac_cv_header_atomic" >&6; }
5736 if test $ac_cv_header_atomic = yes
5742 # Make this available via CPPFLAGS
5743 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}"
5747 ac_cpp
='$CPP $CPPFLAGS'
5748 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5749 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5750 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5753 # Always build ICU with multi-threading support.
5758 if test $threads = true
; then
5759 # For Compaq Tru64 (OSF1), we must look for pthread_attr_init
5760 # and must do this before seaching for pthread_mutex_destroy, or
5761 # we will pick up libpthreads.so not libpthread.so
5762 # If this fails, then we must test for HPUX specials, before
5763 # moving on to a more generic test
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5
5766 $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; }
5767 if ${ac_cv_lib_pthread_pthread_attr_init+:} false
; then :
5768 $as_echo_n "(cached) " >&6
5770 ac_check_lib_save_LIBS
=$LIBS
5771 LIBS
="-lpthread $LIBS"
5772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5773 /* end confdefs.h. */
5775 /* Override any GCC internal prototype to avoid an error.
5776 Use char because int might match the return type of a GCC
5777 builtin and then its argument prototype would still apply. */
5781 char pthread_attr_init ();
5785 return pthread_attr_init ();
5790 if ac_fn_c_try_link
"$LINENO"; then :
5791 ac_cv_lib_pthread_pthread_attr_init
=yes
5793 ac_cv_lib_pthread_pthread_attr_init
=no
5795 rm -f core conftest.err conftest.
$ac_objext \
5796 conftest
$ac_exeext conftest.
$ac_ext
5797 LIBS
=$ac_check_lib_save_LIBS
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
5800 $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; }
5801 if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes
; then :
5802 cat >>confdefs.h
<<_ACEOF
5803 #define HAVE_LIBPTHREAD 1
5806 LIBS
="-lpthread $LIBS"
5810 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
5813 # Locate the right library for POSIX threads. We look for the
5814 # symbols in the libraries first, because on Solaris libc provides
5815 # pthread_create but libpthread has the real code :(
5816 # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread
5817 # FreeBSD users may need libpthread if they do not have libc_r.
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5
5821 $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; }
5822 if ${ac_cv_search_pthread_mutex_destroy+:} false
; then :
5823 $as_echo_n "(cached) " >&6
5825 ac_func_search_save_LIBS
="$LIBS"
5826 ac_cv_search_pthread_mutex_destroy
="no"
5827 for i
in pthread pthreads c_r
; do
5828 LIBS
="-l$i $ac_func_search_save_LIBS"
5829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5832 /* Override any GCC internal prototype to avoid an error.
5833 Use char because int might match the return type of a GCC
5834 builtin and then its argument prototype would still apply. */
5838 char pthread_mutex_destroy ();
5842 return pthread_mutex_destroy ();
5847 if ac_fn_c_try_link
"$LINENO"; then :
5848 ac_cv_search_pthread_mutex_destroy
="-l$i"
5851 rm -f core conftest.err conftest.
$ac_objext \
5852 conftest
$ac_exeext conftest.
$ac_ext
5854 if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then
5855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5858 /* Override any GCC internal prototype to avoid an error.
5859 Use char because int might match the return type of a GCC
5860 builtin and then its argument prototype would still apply. */
5864 char pthread_mutex_destroy ();
5868 return pthread_mutex_destroy ();
5873 if ac_fn_c_try_link
"$LINENO"; then :
5874 ac_cv_search_pthread_mutex_destroy
="none required"
5876 rm -f core conftest.err conftest.
$ac_objext \
5877 conftest
$ac_exeext conftest.
$ac_ext
5879 LIBS
="$ac_func_search_save_LIBS"
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5
5882 $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; }
5883 if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then
5884 test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS
="$ac_cv_search_pthread_mutex_destroy $LIBS"
5890 if test "$ac_cv_search_pthread_mutex_destroy" != no
; then
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
5895 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
5896 if ${ac_cv_lib_pthread_pthread_mutex_init+:} false
; then :
5897 $as_echo_n "(cached) " >&6
5899 ac_check_lib_save_LIBS
=$LIBS
5900 LIBS
="-lpthread $LIBS"
5901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5904 /* Override any GCC internal prototype to avoid an error.
5905 Use char because int might match the return type of a GCC
5906 builtin and then its argument prototype would still apply. */
5910 char pthread_mutex_init ();
5914 return pthread_mutex_init ();
5919 if ac_fn_c_try_link
"$LINENO"; then :
5920 ac_cv_lib_pthread_pthread_mutex_init
=yes
5922 ac_cv_lib_pthread_pthread_mutex_init
=no
5924 rm -f core conftest.err conftest.
$ac_objext \
5925 conftest
$ac_exeext conftest.
$ac_ext
5926 LIBS
=$ac_check_lib_save_LIBS
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
5929 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
5930 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes
; then :
5931 cat >>confdefs.h
<<_ACEOF
5932 #define HAVE_LIBPTHREAD 1
5935 LIBS
="-lpthread $LIBS"
5939 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
5944 ac_fn_c_check_func
"$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock"
5945 if test "x$ac_cv_func_pthread_mutex_lock" = xyes
; then :
5950 if test $ac_cv_func_pthread_mutex_lock = yes; then
5954 # Check to see if we are using CygWin with MSVC
5956 *-pc-cygwin*|
*-pc-mingw*)
5957 # For gcc, the thread options are set by mh-mingw/mh-cygwin
5958 # For msvc, the thread options are set by runConfigureICU
5962 # Add -mt because it does several nice things on newer compilers.
5963 case "${icu_cv_host_frag}" in
5965 OLD_CXXFLAGS
="${CXXFLAGS}"
5966 CXXFLAGS
="${CXXFLAGS} -mt"
5967 if test x
"`${CXX} ${CXXFLAGS} 2>&1`" != x
""; then
5968 CXXFLAGS
="${OLD_CXXFLAGS}"
5970 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} -mt"
5976 case "${icu_cv_host_frag}" in
5985 # Check whether --enable-weak-threads was given.
5986 if test "${enable_weak_threads+set}" = set; then :
5987 enableval
=$enable_weak_threads; case "${enableval}" in
5989 LIB_THREAD
="${LIBS%${OLD_LIBS}}"
5993 *) as_fn_error $?
"bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;;
6001 # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific.
6002 # Do this check instead.
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5
6005 $as_echo_n "checking for mmap... " >&6; }
6006 if ${ac_cv_func_mmap_ok+:} false
; then :
6007 $as_echo_n "(cached) " >&6
6009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6010 /* end confdefs.h. */
6012 #include <sys/mman.h>
6013 #include <sys/stat.h>
6018 mmap((void *)0, 0, PROT_READ, 0, 0, 0);
6023 if ac_fn_c_try_link
"$LINENO"; then :
6024 ac_cv_func_mmap_ok
=yes
6026 ac_cv_func_mmap_ok
=no
6028 rm -f core conftest.err conftest.
$ac_objext \
6029 conftest
$ac_exeext conftest.
$ac_ext
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5
6033 $as_echo "$ac_cv_func_mmap_ok" >&6; }
6034 if test $ac_cv_func_mmap_ok = yes
6038 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0"
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5
6043 $as_echo_n "checking for genccode assembly... " >&6; }
6045 # Check to see if genccode can generate simple assembly.
6048 *-linux*|
*-kfreebsd*-gnu*|i
*86-*-*bsd
*|i
*86-pc-gnu)
6049 if test "$GCC" = yes; then
6050 # We're using gcc, and the simple -a gcc command line works for genccode
6051 GENCCODE_ASSEMBLY
="-a gcc"
6054 if test "$GCC" = yes; then
6055 # When using gcc, look if we're also using GNU as.
6056 # When using GNU as, the simple -a gcc command line works for genccode.
6057 asv
=`"${CC}" -print-prog-name=as 2>/dev/null`
6058 asv
=`"${asv}" --version 2>/dev/null`
6060 X
*GNU
*) GENCCODE_ASSEMBLY
="-a gcc" ;;
6061 X
*) GENCCODE_ASSEMBLY
="-a sun-x86" ;;
6065 GENCCODE_ASSEMBLY
="-a sun-x86"
6068 GENCCODE_ASSEMBLY
="-a sun"
6071 GENCCODE_ASSEMBLY
="-a aCC-ia64"
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5
6077 $as_echo "$GENCCODE_ASSEMBLY" >&6; }
6079 # Checks for header files
6080 for ac_header
in inttypes.h
6082 ac_fn_c_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
6083 if test "x$ac_cv_header_inttypes_h" = xyes
; then :
6084 cat >>confdefs.h
<<_ACEOF
6085 #define HAVE_INTTYPES_H 1
6092 if test $ac_cv_header_inttypes_h = no
; then
6094 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6098 if test "$CC" = ccc
; then
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5
6100 $as_echo "\"C compiler set to CCC ${CC}\" " >&6; }
6102 alpha
*-*-*) U_HAVE_INTTYPES_H
=0;
6103 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0"
6109 for ac_header
in dirent.h
6111 ac_fn_c_check_header_mongrel
"$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
6112 if test "x$ac_cv_header_dirent_h" = xyes
; then :
6113 cat >>confdefs.h
<<_ACEOF
6114 #define HAVE_DIRENT_H 1
6121 if test $ac_cv_header_dirent_h = no
; then
6123 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0"
6130 # Check for endianness
6131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
6132 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
6133 if ${ac_cv_c_bigendian+:} false
; then :
6134 $as_echo_n "(cached) " >&6
6136 ac_cv_c_bigendian
=unknown
6137 # See if we're dealing with a universal compiler.
6138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6139 /* end confdefs.h. */
6140 #ifndef __APPLE_CC__
6141 not a universal capable compiler
6146 if ac_fn_c_try_compile
"$LINENO"; then :
6148 # Check for potential -arch flags. It is not universal unless
6149 # there are at least two -arch flags with different values.
6152 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
6153 if test -n "$ac_prev"; then
6155 i?
86 | x86_64 | ppc | ppc64
)
6156 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
6159 ac_cv_c_bigendian
=universal
6165 elif test "x$ac_word" = "x-arch"; then
6170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6171 if test $ac_cv_c_bigendian = unknown
; then
6172 # See if sys/param.h defines the BYTE_ORDER macro.
6173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6174 /* end confdefs.h. */
6175 #include <sys/types.h>
6176 #include <sys/param.h>
6181 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
6182 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
6191 if ac_fn_c_try_compile
"$LINENO"; then :
6192 # It does; now see whether it defined to BIG_ENDIAN or not.
6193 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6194 /* end confdefs.h. */
6195 #include <sys/types.h>
6196 #include <sys/param.h>
6201 #if BYTE_ORDER != BIG_ENDIAN
6209 if ac_fn_c_try_compile
"$LINENO"; then :
6210 ac_cv_c_bigendian
=yes
6212 ac_cv_c_bigendian
=no
6214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6218 if test $ac_cv_c_bigendian = unknown
; then
6219 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
6220 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6227 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
6235 if ac_fn_c_try_compile
"$LINENO"; then :
6236 # It does; now see whether it defined to _BIG_ENDIAN or not.
6237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6238 /* end confdefs.h. */
6252 if ac_fn_c_try_compile
"$LINENO"; then :
6253 ac_cv_c_bigendian
=yes
6255 ac_cv_c_bigendian
=no
6257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6259 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6261 if test $ac_cv_c_bigendian = unknown
; then
6262 # Compile a test program.
6263 if test "$cross_compiling" = yes; then :
6264 # Try to guess by grepping values from an object file.
6265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6266 /* end confdefs.h. */
6267 short int ascii_mm[] =
6268 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
6269 short int ascii_ii[] =
6270 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
6271 int use_ascii (int i) {
6272 return ascii_mm[i] + ascii_ii[i];
6274 short int ebcdic_ii[] =
6275 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
6276 short int ebcdic_mm[] =
6277 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
6278 int use_ebcdic (int i) {
6279 return ebcdic_mm[i] + ebcdic_ii[i];
6286 return use_ascii (foo) == use_ebcdic (foo);
6291 if ac_fn_c_try_compile
"$LINENO"; then :
6292 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
6293 ac_cv_c_bigendian
=yes
6295 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
6296 if test "$ac_cv_c_bigendian" = unknown
; then
6297 ac_cv_c_bigendian
=no
6299 # finding both strings is unlikely to happen, but who knows?
6300 ac_cv_c_bigendian
=unknown
6304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6307 /* end confdefs.h. */
6308 $ac_includes_default
6313 /* Are we little or big endian? From Harbison&Steele. */
6317 char c[sizeof (long int)];
6320 return u.c[sizeof (long int) - 1] == 1;
6326 if ac_fn_c_try_run
"$LINENO"; then :
6327 ac_cv_c_bigendian
=no
6329 ac_cv_c_bigendian
=yes
6331 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
6332 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
6338 $as_echo "$ac_cv_c_bigendian" >&6; }
6339 case $ac_cv_c_bigendian in #(
6341 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
6347 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6351 as_fn_error $?
"unknown endianness
6352 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6355 if test $ac_cv_c_bigendian = no
; then
6364 # Do various POSIX related checks
6365 U_HAVE_NL_LANGINFO_CODESET
=0
6366 U_NL_LANGINFO_CODESET
=-1
6367 ac_fn_c_check_func
"$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
6368 if test "x$ac_cv_func_nl_langinfo" = xyes
; then :
6369 U_HAVE_NL_LANGINFO
=1
6371 U_HAVE_NL_LANGINFO
=0
6374 if test $U_HAVE_NL_LANGINFO -eq 1; then
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5
6376 $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; }
6377 if ${ac_cv_nl_langinfo_codeset+:} false
; then :
6378 $as_echo_n "(cached) " >&6
6380 ac_cv_nl_langinfo_codeset
="unknown"
6381 for a
in CODESET _NL_CTYPE_CODESET_NAME
; do
6382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6384 #include <langinfo.h>
6393 if ac_fn_c_try_link
"$LINENO"; then :
6394 ac_cv_nl_langinfo_codeset
="$a"; break
6396 rm -f core conftest.err conftest.
$ac_objext \
6397 conftest
$ac_exeext conftest.
$ac_ext
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5
6401 $as_echo "$ac_cv_nl_langinfo_codeset" >&6; }
6402 if test x
$ac_cv_nl_langinfo_codeset != xunknown
6404 U_HAVE_NL_LANGINFO_CODESET
=1
6405 U_NL_LANGINFO_CODESET
=$ac_cv_nl_langinfo_codeset
6406 if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET"
6408 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}"
6411 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0"
6417 # Namespace support checks
6419 ac_cpp
='$CXXCPP $CPPFLAGS'
6420 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5
6425 $as_echo_n "checking for namespace support... " >&6; }
6426 if ${ac_cv_namespace_ok+:} false
; then :
6427 $as_echo_n "(cached) " >&6
6429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6430 /* end confdefs.h. */
6431 namespace x_version {void f(){}}
6432 namespace x = x_version;
6433 using namespace x_version;
6443 if ac_fn_cxx_try_link
"$LINENO"; then :
6444 ac_cv_namespace_ok
=yes
6446 ac_cv_namespace_ok
=no
6448 rm -f core conftest.err conftest.
$ac_objext \
6449 conftest
$ac_exeext conftest.
$ac_ext
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5
6453 $as_echo "$ac_cv_namespace_ok" >&6; }
6454 if test $ac_cv_namespace_ok = no
6456 as_fn_error $?
"Namespace support is required to build ICU." "$LINENO" 5
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5
6460 $as_echo_n "checking for properly overriding new and delete... " >&6; }
6461 U_OVERRIDE_CXX_ALLOCATION
=0
6462 U_HAVE_PLACEMENT_NEW
=0
6463 if ${ac_cv_override_cxx_allocation_ok+:} false
; then :
6464 $as_echo_n "(cached) " >&6
6466 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6467 /* end confdefs.h. */
6471 void *operator new(size_t size) {return malloc(size);}
6472 void *operator new[](size_t size) {return malloc(size);}
6473 void operator delete(void *p) {free(p);}
6474 void operator delete[](void *p) {free(p);}
6485 if ac_fn_cxx_try_link
"$LINENO"; then :
6486 ac_cv_override_cxx_allocation_ok
=yes
6488 ac_cv_override_cxx_allocation_ok
=no
6490 rm -f core conftest.err conftest.
$ac_objext \
6491 conftest
$ac_exeext conftest.
$ac_ext
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5
6495 $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; }
6496 if test $ac_cv_override_cxx_allocation_ok = yes
6498 U_OVERRIDE_CXX_ALLOCATION
=1
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5
6500 $as_echo_n "checking for placement new and delete... " >&6; }
6501 if ${ac_cv_override_placement_new_ok+:} false
; then :
6502 $as_echo_n "(cached) " >&6
6504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6509 void *operator new(size_t size) {return malloc(size);}
6510 void *operator new[](size_t size) {return malloc(size);}
6511 void operator delete(void *p) {free(p);}
6512 void operator delete[](void *p) {free(p);}
6513 void * operator new(size_t, void *ptr) { return ptr; }
6514 void operator delete(void *, void *) {}
6525 if ac_fn_cxx_try_link
"$LINENO"; then :
6526 ac_cv_override_placement_new_ok
=yes
6528 ac_cv_override_placement_new_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_override_placement_new_ok" >&5
6535 $as_echo "$ac_cv_override_placement_new_ok" >&6; }
6536 if test $ac_cv_override_placement_new_ok = yes
6538 U_HAVE_PLACEMENT_NEW
=1
6540 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0"
6543 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0"
6549 ac_cpp
='$CPP $CPPFLAGS'
6550 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6551 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6552 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6554 ac_fn_c_check_func
"$LINENO" "popen" "ac_cv_func_popen"
6555 if test "x$ac_cv_func_popen" = xyes
; then :
6559 if test x
$ac_cv_func_popen = xyes
6563 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0"
6568 ac_fn_c_check_func
"$LINENO" "tzset" "ac_cv_func_tzset"
6569 if test "x$ac_cv_func_tzset" = xyes
; then :
6574 if test x
$ac_cv_func_tzset = xyes
6579 ac_fn_c_check_func
"$LINENO" "_tzset" "ac_cv_func__tzset"
6580 if test "x$ac_cv_func__tzset" = xyes
; then :
6584 if test x
$ac_cv_func__tzset = xyes
6589 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0"
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6597 $as_echo_n "checking for tzname... " >&6; }
6598 if ${ac_cv_var_tzname+:} false
; then :
6599 $as_echo_n "(cached) " >&6
6601 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6602 /* end confdefs.h. */
6608 #ifndef tzname /* For SGI. */
6609 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
6619 if ac_fn_c_try_link
"$LINENO"; then :
6620 ac_cv_var_tzname
=yes
6624 rm -f core conftest.err conftest.
$ac_objext \
6625 conftest
$ac_exeext conftest.
$ac_ext
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6628 $as_echo "$ac_cv_var_tzname" >&6; }
6629 if test $ac_cv_var_tzname = yes; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5
6634 $as_echo_n "checking for _tzname... " >&6; }
6635 if ${ac_cv_var__tzname+:} false
; then :
6636 $as_echo_n "(cached) " >&6
6638 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6639 /* end confdefs.h. */
6642 extern char *_tzname[];
6651 if ac_fn_c_try_link
"$LINENO"; then :
6652 ac_cv_var__tzname
=yes
6654 ac_cv_var__tzname
=no
6656 rm -f core conftest.err conftest.
$ac_objext \
6657 conftest
$ac_exeext conftest.
$ac_ext
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5
6660 $as_echo "$ac_cv_var__tzname" >&6; }
6661 if test $ac_cv_var__tzname = yes; then
6665 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0"
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5
6672 $as_echo_n "checking for timezone... " >&6; }
6673 if ${ac_cv_var_timezone+:} false
; then :
6674 $as_echo_n "(cached) " >&6
6676 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6694 if ac_fn_c_try_link
"$LINENO"; then :
6695 ac_cv_var_timezone
=yes
6697 ac_cv_var_timezone
=no
6699 rm -f core conftest.err conftest.
$ac_objext \
6700 conftest
$ac_exeext conftest.
$ac_ext
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5
6703 $as_echo "$ac_cv_var_timezone" >&6; }
6705 if test $ac_cv_var_timezone = yes; then
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5
6710 $as_echo_n "checking for __timezone... " >&6; }
6711 if ${ac_cv_var___timezone+:} false
; then :
6712 $as_echo_n "(cached) " >&6
6714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6715 /* end confdefs.h. */
6725 if ac_fn_c_try_link
"$LINENO"; then :
6726 ac_cv_var___timezone
=yes
6728 ac_cv_var___timezone
=no
6730 rm -f core conftest.err conftest.
$ac_objext \
6731 conftest
$ac_exeext conftest.
$ac_ext
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5
6734 $as_echo "$ac_cv_var___timezone" >&6; }
6735 if test $ac_cv_var___timezone = yes; then
6736 U_TIMEZONE
=__timezone
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5
6740 $as_echo_n "checking for _timezone... " >&6; }
6741 if ${ac_cv_var__timezone+:} false
; then :
6742 $as_echo_n "(cached) " >&6
6744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6745 /* end confdefs.h. */
6755 if ac_fn_c_try_link
"$LINENO"; then :
6756 ac_cv_var__timezone
=yes
6758 ac_cv_var__timezone
=no
6760 rm -f core conftest.err conftest.
$ac_objext \
6761 conftest
$ac_exeext conftest.
$ac_ext
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5
6764 $as_echo "$ac_cv_var__timezone" >&6; }
6765 if test $ac_cv_var__timezone = yes; then
6766 U_TIMEZONE
=_timezone
6769 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0"
6776 # Checks for typedefs
6777 ac_fn_c_check_type
"$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
6778 if test "x$ac_cv_type_int8_t" = xyes
; then :
6782 cat >>confdefs.h
<<_ACEOF
6783 #define int8_t signed char
6788 ac_fn_c_check_type
"$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
6789 if test "x$ac_cv_type_uint8_t" = xyes
; then :
6793 cat >>confdefs.h
<<_ACEOF
6794 #define uint8_t unsigned char
6799 ac_fn_c_check_type
"$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
6800 if test "x$ac_cv_type_int16_t" = xyes
; then :
6804 cat >>confdefs.h
<<_ACEOF
6805 #define int16_t signed short
6810 ac_fn_c_check_type
"$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
6811 if test "x$ac_cv_type_uint16_t" = xyes
; then :
6815 cat >>confdefs.h
<<_ACEOF
6816 #define uint16_t unsigned short
6821 ac_fn_c_check_type
"$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
6822 if test "x$ac_cv_type_int32_t" = xyes
; then :
6826 cat >>confdefs.h
<<_ACEOF
6827 #define int32_t signed long
6832 ac_fn_c_check_type
"$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
6833 if test "x$ac_cv_type_uint32_t" = xyes
; then :
6837 cat >>confdefs.h
<<_ACEOF
6838 #define uint32_t unsigned long
6843 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
6844 if test "x$ac_cv_type_int64_t" = xyes
; then :
6848 cat >>confdefs.h
<<_ACEOF
6849 #define int64_t signed long long
6854 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
6855 if test "x$ac_cv_type_uint64_t" = xyes
; then :
6859 cat >>confdefs.h
<<_ACEOF
6860 #define uint64_t unsigned long long
6866 if test $ac_cv_type_int8_t = no
; then
6867 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0"
6870 if test $ac_cv_type_uint8_t = no
; then
6871 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0"
6874 if test $ac_cv_type_int16_t = no
; then
6875 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0"
6878 if test $ac_cv_type_uint16_t = no
; then
6879 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0"
6882 if test $ac_cv_type_int32_t = no
; then
6883 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0"
6886 if test $ac_cv_type_uint32_t = no
; then
6887 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0"
6890 if test $ac_cv_type_int64_t = no
; then
6891 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0"
6894 if test $ac_cv_type_uint64_t = no
; then
6895 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0"
6898 # Do various wchar_t related checks
6899 ac_fn_c_check_header_mongrel
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
6900 if test "x$ac_cv_header_wchar_h" = xyes
; then :
6905 if test "$ac_cv_header_wchar_h" = no
6909 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0"
6912 $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h
6915 # Some broken systems have wchar.h but not some of its functions...
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5
6917 $as_echo_n "checking for library containing wcscpy... " >&6; }
6918 if ${ac_cv_search_wcscpy+:} false
; then :
6919 $as_echo_n "(cached) " >&6
6921 ac_func_search_save_LIBS
=$LIBS
6922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6925 /* Override any GCC internal prototype to avoid an error.
6926 Use char because int might match the return type of a GCC
6927 builtin and then its argument prototype would still apply. */
6940 for ac_lib
in '' wcs w
; do
6941 if test -z "$ac_lib"; then
6942 ac_res
="none required"
6945 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
6947 if ac_fn_c_try_link
"$LINENO"; then :
6948 ac_cv_search_wcscpy
=$ac_res
6950 rm -f core conftest.err conftest.
$ac_objext \
6952 if ${ac_cv_search_wcscpy+:} false
; then :
6956 if ${ac_cv_search_wcscpy+:} false
; then :
6959 ac_cv_search_wcscpy
=no
6962 LIBS
=$ac_func_search_save_LIBS
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5
6965 $as_echo "$ac_cv_search_wcscpy" >&6; }
6966 ac_res
=$ac_cv_search_wcscpy
6967 if test "$ac_res" != no
; then :
6968 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
6972 if test "$ac_cv_search_wcscpy" != no
; then
6976 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0"
6982 # The cast to long int works around a bug in the HP C Compiler
6983 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6984 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6985 # This bug is HP SR number 8606223364.
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
6987 $as_echo_n "checking size of wchar_t... " >&6; }
6988 if ${ac_cv_sizeof_wchar_t+:} false
; then :
6989 $as_echo_n "(cached) " >&6
6991 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "
7003 if test "$ac_cv_type_wchar_t" = yes; then
7004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7006 as_fn_error
77 "cannot compute sizeof (wchar_t)
7007 See \`config.log' for more details" "$LINENO" 5; }
7009 ac_cv_sizeof_wchar_t
=0
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
7015 $as_echo "$ac_cv_sizeof_wchar_t" >&6; }
7019 cat >>confdefs.h
<<_ACEOF
7020 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
7024 U_SIZEOF_WCHAR_T
=$ac_cv_sizeof_wchar_t
7025 # We do this check to verify that everything is okay.
7026 if test $U_SIZEOF_WCHAR_T = 0; then
7027 if test $U_HAVE_WCHAR_H=1; then
7028 as_fn_error $?
"There is wchar.h but the size of wchar_t is 0" "$LINENO" 5
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5
7033 $as_echo_n "checking for UTF-16 string literal support... " >&6; }
7034 U_CHECK_UTF16_STRING
=1
7035 CHECK_UTF16_STRING_RESULT
="unknown"
7038 *-*-aix*|powerpc64-
*-linux*)
7039 if test "$GCC" = no
; then
7040 OLD_CFLAGS
="${CFLAGS}"
7041 OLD_CXXFLAGS
="${CXXFLAGS}"
7042 CFLAGS
="${CFLAGS} -qutf"
7043 CXXFLAGS
="${CXXFLAGS} -qutf"
7044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7046 const unsigned short hello[] = u"hello";
7055 if ac_fn_c_try_compile
"$LINENO"; then :
7056 U_CHECK_UTF16_STRING
=1
7058 U_CHECK_UTF16_STRING
=0
7060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7061 if test "$U_CHECK_UTF16_STRING" = 0; then
7062 CFLAGS
="${OLD_CFLAGS}"
7063 CXXFLAGS
="${OLD_CXXFLAGS}"
7065 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} -qutf"
7066 CHECK_UTF16_STRING_RESULT
="-qutf"
7071 if test "$GCC" = no
; then
7072 OLD_CFLAGS
="${CFLAGS}"
7073 OLD_CXXFLAGS
="${CXXFLAGS}"
7074 CFLAGS
="${CFLAGS} -xustr=ascii_utf16_ushort"
7075 CXXFLAGS
="${CXXFLAGS} -xustr=ascii_utf16_ushort"
7076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7077 /* end confdefs.h. */
7078 const unsigned short hello[] = U"hello";
7087 if ac_fn_c_try_compile
"$LINENO"; then :
7088 U_CHECK_UTF16_STRING
=1
7090 U_CHECK_UTF16_STRING
=0
7092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7093 if test "$U_CHECK_UTF16_STRING" = 0; then
7094 CFLAGS
="${OLD_CFLAGS}"
7095 CXXFLAGS
="${OLD_CXXFLAGS}"
7097 CHECK_UTF16_STRING_RESULT
="-xustr=ascii_utf16_ushort"
7098 UCONFIG_CXXFLAGS
="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort"
7099 UCONFIG_CFLAGS
="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort"
7100 # Since we can't detect the availability of this UTF-16 syntax at compile time,
7101 # we depend on configure telling us that we can use it.
7102 # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort,
7103 # we only use this macro within ICU.
7104 # If an ICU user uses icu-config, this feature will be enabled.
7105 CONFIG_CPPFLAGS
="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1"
7106 U_CHECK_UTF16_STRING
=0
7111 if test "$GCC" = no
; then
7112 # The option will be detected at compile time without additional compiler options.
7113 CHECK_UTF16_STRING_RESULT
="available"
7117 # wchar_t can be used
7118 CHECK_UTF16_STRING_RESULT
="available"
7124 # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future.
7125 if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then
7126 if test "$GCC" = yes; then
7127 OLD_CFLAGS
="${CFLAGS}"
7128 CFLAGS
="${CFLAGS} -std=gnu99"
7129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7132 static const char16_t test[] = u"This is a UTF16 literal string.";
7142 if ac_fn_c_try_compile
"$LINENO"; then :
7147 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7148 if test "$CC_UTF16_STRING" = 1; then
7149 UCONFIG_CFLAGS
="${UCONFIG_CFLAGS} -std=gnu99"
7150 CHECK_UTF16_STRING_RESULT
="C only";
7152 CFLAGS
="${OLD_CFLAGS}"
7155 if test "$GXX" = yes; then
7156 # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about.
7158 ac_cpp
='$CXXCPP $CPPFLAGS'
7159 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7160 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7161 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7164 /* end confdefs.h. */
7166 static const char16_t test[] = u"This is a UTF16 literal string.";
7176 if ac_fn_cxx_try_compile
"$LINENO"; then :
7181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7183 ac_cpp
='$CPP $CPPFLAGS'
7184 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7185 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7186 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7188 if test "$CXX_UTF16_STRING" = 1; then
7189 if test "$CC_UTF16_STRING" = 1; then
7190 CHECK_UTF16_STRING_RESULT
="available";
7192 CHECK_UTF16_STRING_RESULT
="C++ only";
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5
7198 $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; }
7200 # Enable/disable extras
7201 # Check whether --enable-extras was given.
7202 if test "${enable_extras+set}" = set; then :
7203 enableval
=$enable_extras; case "${enableval}" in
7206 *) as_fn_error $?
"bad value ${enableval} for --enable-extras" "$LINENO" 5 ;;
7213 if test "$extras" = true
; then
7218 # Check whether --enable-icuio was given.
7219 if test "${enable_icuio+set}" = set; then :
7220 enableval
=$enable_icuio; case "${enableval}" in
7223 *) as_fn_error $?
"bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;;
7230 if test "$icuio" = true
; then
7236 # Enable/disable layout
7237 # Check whether --enable-layout was given.
7238 if test "${enable_layout+set}" = set; then :
7239 enableval
=$enable_layout; case "${enableval}" in
7242 *) as_fn_error $?
"bad value ${enableval} for --enable-layout" "$LINENO" 5 ;;
7249 if test "$layout" = true
; then
7255 # Enable/disable tools
7256 # Check whether --enable-tools was given.
7257 if test "${enable_tools+set}" = set; then :
7258 enableval
=$enable_tools; case "${enableval}" in
7261 *) as_fn_error $?
"bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
7268 if test "$tools" = true
; then
7275 # Check whether --with-data-packaging was given.
7276 if test "${with_data_packaging+set}" = set; then :
7277 withval
=$with_data_packaging; case "${withval}" in
7278 files|archive|library
) datapackaging
=$withval ;;
7279 auto
) datapackaging
=$withval ;;
7280 common
) datapackaging
=archive
;;
7281 dll
) datapackaging
=library
;;
7282 static
) datapackaging
=static
;;
7283 *) as_fn_error $?
"bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;;
7290 # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc..
7291 # thesysconfdir=`eval echo $sysconfdir`
7292 thedatadir
=`eval echo $datadir`
7293 # 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}.
7294 pkgicudatadir
=$datadir
7295 thepkgicudatadir
=$thedatadir
7300 if test x
"$datapackaging" = x
-o x
"$datapackaging" = xauto
; then
7301 # default to library
7302 datapackaging
=library
7303 if test "$ENABLE_STATIC" = "YES"; then
7304 if test "$ENABLE_SHARED" != "YES"; then
7305 datapackaging
=static
7310 datapackaging_dir
=`eval echo $thedatadir`"/icu/${VERSION}"
7312 datapackaging_msg
="(No explaination for mode $datapackaging.)"
7314 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."
7315 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."
7316 datapackaging_howfound
="(unknown)"
7318 case "$datapackaging" in
7320 DATA_PACKAGING_MODE
=files
7321 datapackaging_msg
="ICU data will be stored in individual files."
7322 datapackaging_howfound
="$datapackaging_msg_path"
7325 DATA_PACKAGING_MODE
=common
7326 datapackaging_msg
="ICU data will be stored in a single .dat file."
7327 datapackaging_howfound
="$datapackaging_msg_path"
7330 DATA_PACKAGING_MODE
=dll
7331 datapackaging_msg
="ICU data will be linked with ICU."
7332 if test "$ENABLE_STATIC" = "YES"; then
7333 datapackaging_msg
="$datapackaging_msg A static data library will be built. "
7335 if test "$ENABLE_SHARED" = "YES"; then
7336 datapackaging_msg
="$datapackaging_msg A shared data library will be built. "
7338 datapackaging_howfound
="$datapackaging_msg_set"
7341 DATA_PACKAGING_MODE
=static
7342 datapackaging_msg
="ICU data will be stored in a static library."
7343 datapackaging_howfound
="$datapackaging_msg_set"
7348 # Sets a library suffix
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5
7350 $as_echo_n "checking for a library suffix to use... " >&6; }
7352 # Check whether --with-library-suffix was given.
7353 if test "${with_library_suffix+set}" = set; then :
7354 withval
=$with_library_suffix; ICULIBSUFFIX
="${withval}"
7360 if test "$msg" = ""; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5
7364 $as_echo "$msg" >&6; }
7366 if test "$ICULIBSUFFIX" != ""
7369 ICULIBSUFFIXCNAME
=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'`
7370 UCONFIG_CPPFLAGS
="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} "
7377 # Enable/disable tests
7378 # Check whether --enable-tests was given.
7379 if test "${enable_tests+set}" = set; then :
7380 enableval
=$enable_tests; case "${enableval}" in
7383 *) as_fn_error $?
"bad value ${enableval} for --enable-tests" "$LINENO" 5 ;;
7390 if test "$tests" = true
; then
7396 # Enable/disable samples
7397 # Check whether --enable-samples was given.
7398 if test "${enable_samples+set}" = set; then :
7399 enableval
=$enable_samples; case "${enableval}" in
7400 yes) samples
=true
;;
7401 no
) samples
=false
;;
7402 *) as_fn_error $?
"bad value ${enableval} for --enable-samples" "$LINENO" 5 ;;
7409 if test "$samples" = true
; then
7415 ICUDATA_CHAR
=$U_ENDIAN_CHAR
7417 # Platform-specific Makefile setup
7418 # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform.
7420 *-*-solaris*) platform
=U_SOLARIS
;;
7421 *-*-linux*|
*-*-gnu|
*-*-k*bsd
*-gnu|
*-*-kopensolaris*-gnu) platform
=U_LINUX
;;
7422 *-*-*bsd
*|
*-*-dragonfly*) platform
=U_BSD
;;
7423 *-*-aix*) platform
=U_AIX
;;
7424 *-*-hpux*) platform
=U_HPUX
;;
7425 *-apple-darwin*|
*-apple-rhapsody*) platform
=U_DARWIN
;;
7426 *-*-cygwin*) platform
=U_CYGWIN
;;
7427 *-*-mingw*) platform
=U_MINGW
;;
7428 *-*ibm-openedition
*|
*-*-os390*) platform
=OS390
7429 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7432 *-*-os400*) platform
=OS400
7433 if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then
7436 *-*-nto*) platform
=U_QNX
;;
7437 *-dec-osf*) platform
=U_OSF
;;
7438 *-*-beos) platform
=U_BEOS
;;
7439 *-*-irix*) platform
=U_IRIX
;;
7440 *-ncr-*) platform
=U_MPRAS
;;
7441 *) platform
=U_UNKNOWN_PLATFORM
;;
7445 platform_make_fragment_name
="$icu_cv_host_frag"
7446 platform_make_fragment
='$(top_srcdir)/config/'"$platform_make_fragment_name"
7450 if test "${FORCE_LIBS}" != ""; then
7451 echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6
7455 # Now that we're done using CPPFLAGS etc. for tests, we can change it
7458 if test "${CC}" == "clang"; then
7459 CLANGCFLAGS
="-Qunused-arguments -Wno-parentheses-equality"
7464 if test "${CXX}" == "clang++"; then
7465 CLANGCXXFLAGS
="-Qunused-arguments -Wno-parentheses-equality"
7470 CPPFLAGS
="$CPPFLAGS \$(THREADSCPPFLAGS)"
7471 CFLAGS
="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS"
7472 CXXFLAGS
="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS"
7477 # append all config cppflags
7478 CPPFLAGS
="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS"
7480 echo "CPPFLAGS=$CPPFLAGS"
7481 echo "CFLAGS=$CFLAGS"
7482 echo "CXXFLAGS=$CXXFLAGS"
7485 # output the Makefiles
7486 ac_config_files
="$ac_config_files icudefs.mk Makefile data/pkgdataMakefile config/Makefile.inc config/icu.pc config/pkgdataMakefile data/Makefile stubdata/Makefile common/Makefile i18n/Makefile layout/Makefile layoutex/Makefile io/Makefile extra/Makefile extra/uconv/Makefile extra/uconv/pkgdataMakefile extra/scrptrun/Makefile tools/Makefile tools/ctestfw/Makefile tools/toolutil/Makefile tools/makeconv/Makefile tools/genrb/Makefile tools/genccode/Makefile tools/gencmn/Makefile tools/gencnval/Makefile tools/gendict/Makefile tools/gentest/Makefile tools/gennorm2/Makefile tools/genbrk/Makefile tools/gensprep/Makefile tools/icuinfo/Makefile tools/icupkg/Makefile tools/icuswap/Makefile tools/pkgdata/Makefile tools/tzcode/Makefile tools/gencfu/Makefile test/Makefile test/compat/Makefile test/testdata/Makefile test/testdata/pkgdataMakefile test/hdrtst/Makefile test/intltest/Makefile test/cintltst/Makefile test/iotest/Makefile test/letest/Makefile test/perf/Makefile test/perf/collationperf/Makefile test/perf/collperf/Makefile test/perf/dicttrieperf/Makefile test/perf/ubrkperf/Makefile test/perf/charperf/Makefile test/perf/convperf/Makefile test/perf/normperf/Makefile test/perf/DateFmtPerf/Makefile test/perf/howExpensiveIs/Makefile test/perf/strsrchperf/Makefile test/perf/unisetperf/Makefile test/perf/usetperf/Makefile test/perf/ustrperf/Makefile test/perf/utfperf/Makefile test/perf/utrie2perf/Makefile test/perf/leperf/Makefile samples/Makefile samples/date/Makefile samples/cal/Makefile samples/layout/Makefile"
7488 cat >confcache
<<\_ACEOF
7489 # This file is a shell script that caches the results of configure
7490 # tests run on this system so they can be shared between configure
7491 # scripts and configure runs, see configure's option --config-cache.
7492 # It is not useful on other systems. If it contains results you don't
7493 # want to keep, you may remove or edit it.
7495 # config.status only pays attention to the cache file if you give it
7496 # the --recheck option to rerun configure.
7498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7504 # The following way of writing the cache mishandles newlines in values,
7505 # but we know of no workaround that is simple, portable, and efficient.
7506 # So, we kill variables containing newlines.
7507 # Ultrix sh set writes to stderr and can't be redirected directly,
7508 # and sets the high bit in the cache file unless we assign to the vars.
7510 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7511 eval ac_val
=\$
$ac_var
7515 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7519 _ | IFS | as_nl
) ;; #(
7520 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
7521 *) { eval $ac_var=; unset $ac_var;} ;;
7527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7528 *${as_nl}ac_space
=\
*)
7529 # `set' does not quote correctly, so add quotes: double-quote
7530 # substitution turns \\\\ into \\, and sed turns \\ into \.
7533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7536 # `set' quotes correctly as required by POSIX, so do not add quotes.
7537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7550 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
7551 if test -w "$cache_file"; then
7552 if test "x$cache_file" != "x/dev/null"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7554 $as_echo "$as_me: updating cache $cache_file" >&6;}
7555 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
7556 cat confcache
>"$cache_file"
7558 case $cache_file in #(
7560 mv -f confcache
"$cache_file"$$
&&
7561 mv -f "$cache_file"$$
"$cache_file" ;; #(
7563 mv -f confcache
"$cache_file" ;;
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7569 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7574 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
7575 # Let make expand exec_prefix.
7576 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
7578 # Transform confdefs.h into DEFS.
7579 # Protect against shell expansion while executing Makefile rules.
7580 # Protect against Makefile macro expansion.
7582 # If the first sed substitution is executed (which looks for macros that
7583 # take arguments), then branch to the quote section. Otherwise,
7584 # look for a macro that doesn't take arguments.
7594 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7596 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7600 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7613 DEFS
=`sed -n "$ac_script" confdefs.h`
7619 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
7620 # 1. Remove the extension, and $U if already installed.
7621 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
7622 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
7623 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7624 # will be set to the directory where LIBOBJS objects are built.
7625 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7626 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
7630 LTLIBOBJS
=$ac_ltlibobjs
7635 : "${CONFIG_STATUS=./config.status}"
7637 ac_clean_files_save
=$ac_clean_files
7638 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7640 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7642 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7644 # Generated by $as_me.
7645 # Run this file to recreate the current configuration.
7646 # Compiler output produced by configure, useful for debugging
7647 # configure, is in config.log if it exists.
7653 SHELL=\${CONFIG_SHELL-$SHELL}
7656 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
7657 ## -------------------- ##
7658 ## M4sh Initialization. ##
7659 ## -------------------- ##
7661 # Be more Bourne compatible
7662 DUALCASE
=1; export DUALCASE
# for MKS sh
7663 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
7666 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7667 # is contrary to our usage. Disable this feature.
7668 alias -g '${1+"$@"}'='"$@"'
7669 setopt NO_GLOB_SUBST
7671 case `(set -o) 2>/dev/null` in #(
7683 # Printing a long string crashes Solaris 7 /usr/bin/printf.
7684 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7685 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7686 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7687 # Prefer a ksh shell builtin over an external printf program on Solaris,
7688 # but without wasting forks for bash or zsh.
7689 if test -z "$BASH_VERSION$ZSH_VERSION" \
7690 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7691 as_echo='print
-r --'
7692 as_echo_n='print
-rn --'
7693 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7694 as_echo='printf %s
\n'
7695 as_echo_n='printf %s
'
7697 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7698 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
7699 as_echo_n='/usr
/ucb
/echo -n'
7701 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7702 as_echo_n_body='eval
7706 expr "X$arg" : "X\\(.*\\)$as_nl";
7707 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7709 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
7711 export as_echo_n_body
7712 as_echo_n='sh
-c $as_echo_n_body as_echo
'
7715 as_echo='sh
-c $as_echo_body as_echo
'
7718 # The user is always right.
7719 if test "${PATH_SEPARATOR+set}" != set; then
7721 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7722 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7729 # We need space, tab and new line, in precisely that order. Quoting is
7730 # there to prevent editors from complaining about space-tab.
7731 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7732 # splitting by setting IFS to empty value.)
7735 # Find who we are. Look in the path if we contain no directory separator.
7738 *[\\/]* ) as_myself=$0 ;;
7739 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 test -z "$as_dir" && as_dir=.
7744 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7750 # We did not find ourselves, most probably we were run as `sh COMMAND'
7751 # in which case we are not to be found in the path.
7752 if test "x$as_myself" = x
; then
7755 if test ! -f "$as_myself"; then
7756 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7760 # Unset variables that we do not need and which cause bugs (e.g. in
7761 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7762 # suppresses any "Segmentation fault" message there. '((' could
7763 # trigger a bug in pdksh 5.2.14.
7764 for as_var
in BASH_ENV ENV MAIL MAILPATH
7765 do eval test x\
${$as_var+set} = xset \
7766 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
7779 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
7782 # as_fn_error STATUS ERROR [LINENO LOG_FD]
7783 # ----------------------------------------
7784 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7785 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7786 # script with STATUS, using 1 if that was 0.
7789 as_status
=$1; test $as_status -eq 0 && as_status
=1
7791 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
7792 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7794 $as_echo "$as_me: error: $2" >&2
7795 as_fn_exit
$as_status
7799 # as_fn_set_status STATUS
7800 # -----------------------
7801 # Set $? to STATUS, without forking.
7805 } # as_fn_set_status
7809 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7819 # Portably unset VAR.
7822 { eval $1=; unset $1;}
7824 as_unset
=as_fn_unset
7825 # as_fn_append VAR VALUE
7826 # ----------------------
7827 # Append the text in VALUE to the end of the definition contained in VAR. Take
7828 # advantage of any shell optimizations that allow amortized linear growth over
7829 # repeated appends, instead of the typical quadratic growth present in naive
7831 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
7832 eval 'as_fn_append ()
7843 # as_fn_arith ARG...
7844 # ------------------
7845 # Perform arithmetic evaluation on the ARGs, and store the result in the
7846 # global $as_val. Take advantage of shells that can avoid forks. The arguments
7847 # must be portable across $(()) and expr.
7848 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
7849 eval 'as_fn_arith ()
7856 as_val
=`expr "$@" || test $? -eq 1`
7861 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
7862 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
7868 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7869 as_basename
=basename
7874 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
7880 as_me
=`$as_basename -- "$0" ||
7881 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7882 X"$0" : 'X\(//\)$' \| \
7883 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7885 sed '/^.*\/\([^/][^/]*\)\/*$/{
7899 # Avoid depending upon Character Ranges.
7900 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
7901 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7902 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
7903 as_cr_digits
='0123456789'
7904 as_cr_alnum
=$as_cr_Letters$as_cr_digits
7906 ECHO_C
= ECHO_N
= ECHO_T
=
7907 case `echo -n x` in #(((((
7909 case `echo 'xy\c'` in
7910 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
7912 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
7919 rm -f conf$$ conf$$.exe conf$$.
file
7920 if test -d conf$$.dir
; then
7921 rm -f conf$$.dir
/conf$$.
file
7924 mkdir conf$$.dir
2>/dev
/null
7926 if (echo >conf$$.
file) 2>/dev
/null
; then
7927 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
7929 # ... but there are two gotchas:
7930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7932 # In both cases, we have to default to `cp -p'.
7933 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
7935 elif ln conf$$.
file conf$$
2>/dev
/null
; then
7943 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
7944 rmdir conf$$.dir
2>/dev
/null
7949 # Create "$as_dir" as a directory, including parents if necessary.
7954 -*) as_dir
=.
/$as_dir;;
7956 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
7960 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7961 *) as_qdir
=$as_dir;;
7963 as_dirs
="'$as_qdir' $as_dirs"
7964 as_dir
=`$as_dirname -- "$as_dir" ||
7965 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7966 X"$as_dir" : 'X\(//\)[^/]' \| \
7967 X"$as_dir" : 'X\(//\)$' \| \
7968 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7969 $as_echo X"$as_dir" |
7970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7987 test -d "$as_dir" && break
7989 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
7990 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
7994 if mkdir
-p .
2>/dev
/null
; then
7995 as_mkdir_p
='mkdir -p "$as_dir"'
7997 test -d .
/-p && rmdir .
/-p
8001 if test -x / >/dev
/null
2>&1; then
8004 if ls -dL / >/dev
/null
2>&1; then
8011 if test -d "$1"; then
8017 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8018 ???[sx]*):;;*)false;;esac;fi
8022 as_executable_p
=$as_test_x
8024 # Sed expression to map a string onto a valid CPP name.
8025 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8027 # Sed expression to map a string onto a valid variable name.
8028 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8032 ## ----------------------------------- ##
8033 ## Main body of $CONFIG_STATUS script. ##
8034 ## ----------------------------------- ##
8036 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
8038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8039 # Save the log message, to keep $0 and so on meaningful, and to
8040 # report actual input values of CONFIG_FILES etc. instead of their
8041 # values after options handling.
8043 This file was extended by $as_me, which was
8044 generated by GNU Autoconf 2.68. Invocation command line was
8046 CONFIG_FILES = $CONFIG_FILES
8047 CONFIG_HEADERS = $CONFIG_HEADERS
8048 CONFIG_LINKS = $CONFIG_LINKS
8049 CONFIG_COMMANDS = $CONFIG_COMMANDS
8052 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8057 case $ac_config_files in *"
8058 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
8063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8064 # Files that config.status was made for.
8065 config_files="$ac_config_files"
8069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8071 \`$as_me' instantiates files and other configuration actions
8072 from templates according to the current configuration. Unless the files
8073 and actions are specified as TAGs, all are instantiated by default.
8075 Usage: $0 [OPTION]... [TAG]...
8077 -h, --help print this help, then exit
8078 -V, --version print version number and configuration settings, then exit
8079 --config print configuration, then exit
8080 -q, --quiet, --silent
8081 do not print progress messages
8082 -d, --debug don't remove temporary files
8083 --recheck update $as_me by reconfiguring in the same conditions
8084 --file=FILE[:TEMPLATE]
8085 instantiate the configuration file FILE
8087 Configuration files:
8090 Report bugs to the package provider."
8093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8094 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8097 configured by $0, generated by GNU Autoconf 2.68,
8098 with options \\"\$ac_cs_config\\"
8100 Copyright (C) 2010 Free Software Foundation, Inc.
8101 This config.status script is free software; the Free Software Foundation
8102 gives unlimited permission to copy, distribute and modify it."
8107 test -n "\$AWK" || AWK=awk
8110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8111 # The default lists apply if the user does not specify any file.
8117 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8118 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
8122 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
8134 # Handling of the options.
8135 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
8137 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
8138 $as_echo "$ac_cs_version"; exit ;;
8139 --config |
--confi |
--conf |
--con |
--co |
--c )
8140 $as_echo "$ac_cs_config"; exit ;;
8141 --debug |
--debu |
--deb |
--de |
--d |
-d )
8143 --file |
--fil |
--fi |
--f )
8146 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8147 '') as_fn_error $?
"missing file argument" ;;
8149 as_fn_append CONFIG_FILES
" '$ac_optarg'"
8150 ac_need_defaults
=false
;;
8151 --he |
--h |
--help |
--hel |
-h )
8152 $as_echo "$ac_cs_usage"; exit ;;
8153 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
8154 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
8158 -*) as_fn_error $?
"unrecognized option: \`$1'
8159 Try \`$0 --help' for more information." ;;
8161 *) as_fn_append ac_config_targets
" $1"
8162 ac_need_defaults
=false
;;
8168 ac_configure_extra_args
=
8170 if $ac_cs_silent; then
8172 ac_configure_extra_args
="$ac_configure_extra_args --silent"
8176 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8177 if \$ac_cs_recheck; then
8178 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8180 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8181 CONFIG_SHELL='$SHELL'
8187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8191 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8192 ## Running $as_me. ##
8198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8203 # Handling of arguments.
8204 for ac_config_target
in $ac_config_targets
8206 case $ac_config_target in
8207 "icudefs.mk") CONFIG_FILES
="$CONFIG_FILES icudefs.mk" ;;
8208 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
8209 "data/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES data/pkgdataMakefile" ;;
8210 "config/Makefile.inc") CONFIG_FILES
="$CONFIG_FILES config/Makefile.inc" ;;
8211 "config/icu.pc") CONFIG_FILES
="$CONFIG_FILES config/icu.pc" ;;
8212 "config/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES config/pkgdataMakefile" ;;
8213 "data/Makefile") CONFIG_FILES
="$CONFIG_FILES data/Makefile" ;;
8214 "stubdata/Makefile") CONFIG_FILES
="$CONFIG_FILES stubdata/Makefile" ;;
8215 "common/Makefile") CONFIG_FILES
="$CONFIG_FILES common/Makefile" ;;
8216 "i18n/Makefile") CONFIG_FILES
="$CONFIG_FILES i18n/Makefile" ;;
8217 "layout/Makefile") CONFIG_FILES
="$CONFIG_FILES layout/Makefile" ;;
8218 "layoutex/Makefile") CONFIG_FILES
="$CONFIG_FILES layoutex/Makefile" ;;
8219 "io/Makefile") CONFIG_FILES
="$CONFIG_FILES io/Makefile" ;;
8220 "extra/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/Makefile" ;;
8221 "extra/uconv/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/uconv/Makefile" ;;
8222 "extra/uconv/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;;
8223 "extra/scrptrun/Makefile") CONFIG_FILES
="$CONFIG_FILES extra/scrptrun/Makefile" ;;
8224 "tools/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/Makefile" ;;
8225 "tools/ctestfw/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/ctestfw/Makefile" ;;
8226 "tools/toolutil/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/toolutil/Makefile" ;;
8227 "tools/makeconv/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/makeconv/Makefile" ;;
8228 "tools/genrb/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genrb/Makefile" ;;
8229 "tools/genccode/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genccode/Makefile" ;;
8230 "tools/gencmn/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencmn/Makefile" ;;
8231 "tools/gencnval/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencnval/Makefile" ;;
8232 "tools/gendict/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gendict/Makefile" ;;
8233 "tools/gentest/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gentest/Makefile" ;;
8234 "tools/gennorm2/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gennorm2/Makefile" ;;
8235 "tools/genbrk/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/genbrk/Makefile" ;;
8236 "tools/gensprep/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gensprep/Makefile" ;;
8237 "tools/icuinfo/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icuinfo/Makefile" ;;
8238 "tools/icupkg/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icupkg/Makefile" ;;
8239 "tools/icuswap/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/icuswap/Makefile" ;;
8240 "tools/pkgdata/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/pkgdata/Makefile" ;;
8241 "tools/tzcode/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/tzcode/Makefile" ;;
8242 "tools/gencfu/Makefile") CONFIG_FILES
="$CONFIG_FILES tools/gencfu/Makefile" ;;
8243 "test/Makefile") CONFIG_FILES
="$CONFIG_FILES test/Makefile" ;;
8244 "test/compat/Makefile") CONFIG_FILES
="$CONFIG_FILES test/compat/Makefile" ;;
8245 "test/testdata/Makefile") CONFIG_FILES
="$CONFIG_FILES test/testdata/Makefile" ;;
8246 "test/testdata/pkgdataMakefile") CONFIG_FILES
="$CONFIG_FILES test/testdata/pkgdataMakefile" ;;
8247 "test/hdrtst/Makefile") CONFIG_FILES
="$CONFIG_FILES test/hdrtst/Makefile" ;;
8248 "test/intltest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/intltest/Makefile" ;;
8249 "test/cintltst/Makefile") CONFIG_FILES
="$CONFIG_FILES test/cintltst/Makefile" ;;
8250 "test/iotest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/iotest/Makefile" ;;
8251 "test/letest/Makefile") CONFIG_FILES
="$CONFIG_FILES test/letest/Makefile" ;;
8252 "test/perf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/Makefile" ;;
8253 "test/perf/collationperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collationperf/Makefile" ;;
8254 "test/perf/collperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/collperf/Makefile" ;;
8255 "test/perf/dicttrieperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;;
8256 "test/perf/ubrkperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;;
8257 "test/perf/charperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/charperf/Makefile" ;;
8258 "test/perf/convperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/convperf/Makefile" ;;
8259 "test/perf/normperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/normperf/Makefile" ;;
8260 "test/perf/DateFmtPerf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;;
8261 "test/perf/howExpensiveIs/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;;
8262 "test/perf/strsrchperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;;
8263 "test/perf/unisetperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/unisetperf/Makefile" ;;
8264 "test/perf/usetperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/usetperf/Makefile" ;;
8265 "test/perf/ustrperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/ustrperf/Makefile" ;;
8266 "test/perf/utfperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/utfperf/Makefile" ;;
8267 "test/perf/utrie2perf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;;
8268 "test/perf/leperf/Makefile") CONFIG_FILES
="$CONFIG_FILES test/perf/leperf/Makefile" ;;
8269 "samples/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/Makefile" ;;
8270 "samples/date/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/date/Makefile" ;;
8271 "samples/cal/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/cal/Makefile" ;;
8272 "samples/layout/Makefile") CONFIG_FILES
="$CONFIG_FILES samples/layout/Makefile" ;;
8274 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8279 # If the user did not use the arguments to specify the items to instantiate,
8280 # then the envvar interface is used. Set only those that are not.
8281 # We use the long form for the default assignment because of an extremely
8282 # bizarre bug on SunOS 4.1.3.
8283 if $ac_need_defaults; then
8284 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
8287 # Have a temporary directory for convenience. Make it in the build tree
8288 # simply because there is no reason against having it here, and in addition,
8289 # creating and moving files from /tmp can sometimes cause problems.
8290 # Hook for its removal unless debugging.
8291 # Note that there is a small window in which the directory will not be cleaned:
8292 # after its creation but before its name has been assigned to `$tmp'.
8296 trap 'exit_status=$?
8298 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8300 trap 'as_fn_exit 1' 1 2 13 15
8302 # Create a (secure) tmp directory for tmp files.
8305 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8309 tmp
=.
/conf$$
-$RANDOM
8310 (umask 077 && mkdir
"$tmp")
8311 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
8314 # Set up the scripts for CONFIG_FILES section.
8315 # No need to generate them if there are no CONFIG_FILES.
8316 # This happens for instance with `./config.status config.h'.
8317 if test -n "$CONFIG_FILES"; then
8320 ac_cr
=`echo X | tr X '\015'`
8321 # On cygwin, bash can eat \r inside `` if the user requested igncr.
8322 # But we know of no other shell where ac_cr would be empty at this
8323 # point, so we can use a bashism as a fallback.
8324 if test "x$ac_cr" = x
; then
8325 eval ac_cr
=\$
\'\\r
\'
8327 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8328 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8334 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8339 echo "cat >conf$$subs.awk <<_ACEOF" &&
8340 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8343 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8344 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8346 for ac_last_try in false false false false false :; do
8347 . ./conf$$subs.sh ||
8348 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8350 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
8351 if test $ac_delim_n = $ac_delim_num; then
8353 elif $ac_last_try; then
8354 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
8356 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
8361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8362 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
8366 s/^/S["/; s
/!.
*/"]=/
8376 s/\(.\{148\}\)..*/\1/
8378 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
8383 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8390 s/\(.\{148\}\)..*/\1/
8392 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
8396 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
8401 ' <conf$$subs.awk | sed '
8406 ' >>$CONFIG_STATUS || ac_write_fail=1
8407 rm -f conf$$subs.awk
8408 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8410 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
8411 for (key in S) S_is_set[key] = 1
8417 nfields = split(line, field, "@
")
8419 len = length(field[1])
8420 for (i = 2; i < nfields; i++) {
8422 keylen = length(key)
8423 if (S_is_set[key]) {
8425 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8426 len += length(value) + length(field[++i])
8437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8438 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8439 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
8442 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
8443 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
8446 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8447 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
8448 # trailing colons and then remove the whole line if VPATH becomes empty
8449 # (actually we leave an empty line to preserve line numbers).
8450 if test "x
$srcdir" = x.; then
8451 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8470 fi # test -n "$CONFIG_FILES"
8473 eval set X " :F
$CONFIG_FILES "
8478 :[FHLC]) ac_mode=$ac_tag; continue;;
8480 case $ac_mode$ac_tag in
8482 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
8483 :[FH]-) ac_tag=-:-;;
8484 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8501 -) ac_f="$ac_tmp/stdin";;
8502 *) # Look for the file first in the build tree, then in the source tree
8503 # (if the path is not absolute). The absolute path cannot be DOS-style,
8504 # because $ac_f cannot contain `:'.
8508 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8510 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8512 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
8513 as_fn_append ac_file_inputs " '$ac_f'"
8516 # Let's still pretend it is `configure' which instantiates (i.e., don't
8517 # use $as_me), people would be surprised to read:
8518 # /* config.h. Generated by config.status. */
8519 configure_input='Generated from '`
8520 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8522 if test x"$ac_file" != x-; then
8523 configure_input="$ac_file.
$configure_input"
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
8525 $as_echo "$as_me: creating
$ac_file" >&6;}
8527 # Neutralize special characters interpreted by sed in replacement strings.
8528 case $configure_input in #(
8529 *\&* | *\|* | *\\* )
8530 ac_sed_conf_input=`$as_echo "$configure_input" |
8531 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8532 *) ac_sed_conf_input=$configure_input;;
8536 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
8537 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
8542 ac_dir=`$as_dirname -- "$ac_file" ||
8543 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8544 X"$ac_file" : 'X\(//\)[^/]' \| \
8545 X"$ac_file" : 'X\(//\)$' \| \
8546 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8547 $as_echo X"$ac_file" |
8548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8565 as_dir="$ac_dir"; as_fn_mkdir_p
8569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8572 # A "..
" for each directory in $ac_dir_suffix.
8573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8574 case $ac_top_builddir_sub in
8575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8579 ac_abs_top_builddir=$ac_pwd
8580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8581 # for backward compatibility:
8582 ac_top_builddir=$ac_top_build_prefix
8585 .) # We are building in place.
8587 ac_top_srcdir=$ac_top_builddir_sub
8588 ac_abs_top_srcdir=$ac_pwd ;;
8589 [\\/]* | ?:[\\/]* ) # Absolute name.
8590 ac_srcdir=$srcdir$ac_dir_suffix;
8591 ac_top_srcdir=$srcdir
8592 ac_abs_top_srcdir=$srcdir ;;
8594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8595 ac_top_srcdir=$ac_top_build_prefix$srcdir
8596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8608 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8609 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8614 # If the template does not know about datarootdir, expand it.
8615 # FIXME: This hack should be removed a few years after 2.60.
8616 ac_datarootdir_hack=; ac_datarootdir_seen=
8627 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
8628 *datarootdir*) ac_datarootdir_seen=yes;;
8629 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
8631 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
8633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8634 ac_datarootdir_hack='
8635 s&@datadir@&$datadir&g
8636 s&@docdir@&$docdir&g
8637 s&@infodir@&$infodir&g
8638 s&@localedir@&$localedir&g
8639 s&@mandir@&$mandir&g
8640 s&\\\${datarootdir}&$datarootdir&g' ;;
8644 # Neutralize VPATH when `$srcdir' = `.'.
8645 # Shell code in configure.ac might set extrasub.
8646 # FIXME: do we really want to maintain this feature?
8647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8648 ac_sed_extra="$ac_vpsub
8651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
8653 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
8654 s|@configure_input@|
$ac_sed_conf_input|
;t t
8655 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
8656 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
8657 s
&@srcdir@
&$ac_srcdir&;t t
8658 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
8659 s
&@top_srcdir@
&$ac_top_srcdir&;t t
8660 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
8661 s
&@builddir@
&$ac_builddir&;t t
8662 s
&@abs_builddir@
&$ac_abs_builddir&;t t
8663 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
8664 s
&@INSTALL@
&$ac_INSTALL&;t t
8665 $ac_datarootdir_hack
8667 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
8668 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
8670 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8671 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
8672 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8673 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
8675 which seems to be undefined. Please make sure it is defined" >&5
8676 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
8677 which seems to be undefined. Please make sure it is defined" >&2;}
8679 rm -f "$ac_tmp/stdin"
8681 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8682 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8684 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8696 ac_clean_files=$ac_clean_files_save
8698 test $ac_write_fail = 0 ||
8699 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8702 # configure is writing to config.log, and then calls config.status.
8703 # config.status does its own redirection, appending to config.log.
8704 # Unfortunately, on DOS this fails, as config.log is still kept open
8705 # by configure, so config.status won't be able to
write to it
; its
8706 # output is simply discarded. So we exec the FD to /dev/null,
8707 # effectively closing config.log, so it can be properly (re)opened and
8708 # appended to by config.status. When coming back to configure, we
8709 # need to make the FD available again.
8710 if test "$no_create" != yes; then
8712 ac_config_status_args
=
8713 test "$silent" = yes &&
8714 ac_config_status_args
="$ac_config_status_args --quiet"
8716 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
8718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8719 # would make configure fail if this is the last instruction.
8720 $ac_cs_success || as_fn_exit
1
8722 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8724 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8729 echo "ICU for C/C++ $VERSION is ready to be built."
8730 echo "=== Important Notes: ==="
8732 echo "Data Packaging: $datapackaging"
8733 echo " This means: $datapackaging_msg"
8734 echo " To locate data: $datapackaging_howfound"
8736 if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then
8737 echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU."
8739 echo "** WARNING: $U_MAKE may not be GNU make."
8740 echo "This may cause ICU to fail to build. Please make sure that GNU make"
8741 echo "is in your PATH so that the configure script can detect its location."
8743 if test "x$AR" = "xfalse"; then
8744 echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail."
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5
8748 $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; }
8749 if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM
="$platform"; then
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8751 $as_echo "ok" >&6; }
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5
8754 $as_echo "too old or test failed - try upgrading GNU Make" >&6; }
8758 if test -n "$UCONFIG_CPPFLAGS"; then
8759 HDRFILE
="uconfig.h.prepend"
8760 echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:"
8762 echo " ${UCONFIG_CPPFLAGS}"
8764 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.'
8765 echo "Creating the file ${HDRFILE}"
8767 echo '--------------- ' "${HDRFILE}"
8769 echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}"
8770 echo >> "${HDRFILE}"
8771 for flag
in ${UCONFIG_CPPFLAGS};
8773 echo " /* $flag */" >> "${HDRFILE}"
8776 \
echo "${flag}" |
sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}"
8777 \
echo >> "${HDRFILE}"
8780 \
echo "${flag}" |
sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}"
8781 \
echo >> "${HDRFILE}"
8784 \
echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}"
8785 \
echo >> "${HDRFILE}"
8790 \
echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}"
8791 echo >> "${HDRFILE}"
8792 echo '--------------- end ' "${HDRFILE}"
8796 if test -n "$UCONFIG_CFLAGS"; then
8797 echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}"
8800 if test -n "$UCONFIG_CXXFLAGS"; then
8801 echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}"
8804 if test "$tools" = false
;
8806 echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests."
8807 echo "## Expect build failures in the 'data', 'test', and other directories."
8810 $as_unset _CXX_CXXSUFFIX