michael@0: #! /bin/sh michael@0: # Guess values for system-dependent variables and create Makefiles. michael@0: # Generated by GNU Autoconf 2.68. michael@0: # michael@0: # Copyright (c) 1999-2013, International Business Machines Corporation and others. All Rights Reserved. michael@0: # michael@0: # michael@0: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, michael@0: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software michael@0: # Foundation, Inc. michael@0: # michael@0: # michael@0: # This configure script is free software; the Free Software Foundation michael@0: # gives unlimited permission to copy, distribute and modify it. michael@0: ## -------------------- ## michael@0: ## M4sh Initialization. ## michael@0: ## -------------------- ## michael@0: michael@0: # Be more Bourne compatible michael@0: DUALCASE=1; export DUALCASE # for MKS sh michael@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : michael@0: emulate sh michael@0: NULLCMD=: michael@0: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which michael@0: # is contrary to our usage. Disable this feature. michael@0: alias -g '${1+"$@"}'='"$@"' michael@0: setopt NO_GLOB_SUBST michael@0: else michael@0: case `(set -o) 2>/dev/null` in #( michael@0: *posix*) : michael@0: set -o posix ;; #( michael@0: *) : michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: as_nl=' michael@0: ' michael@0: export as_nl michael@0: # Printing a long string crashes Solaris 7 /usr/bin/printf. michael@0: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: # Prefer a ksh shell builtin over an external printf program on Solaris, michael@0: # but without wasting forks for bash or zsh. michael@0: if test -z "$BASH_VERSION$ZSH_VERSION" \ michael@0: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='print -r --' michael@0: as_echo_n='print -rn --' michael@0: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='printf %s\n' michael@0: as_echo_n='printf %s' michael@0: else michael@0: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then michael@0: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' michael@0: as_echo_n='/usr/ucb/echo -n' michael@0: else michael@0: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' michael@0: as_echo_n_body='eval michael@0: arg=$1; michael@0: case $arg in #( michael@0: *"$as_nl"*) michael@0: expr "X$arg" : "X\\(.*\\)$as_nl"; michael@0: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; michael@0: esac; michael@0: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" michael@0: ' michael@0: export as_echo_n_body michael@0: as_echo_n='sh -c $as_echo_n_body as_echo' michael@0: fi michael@0: export as_echo_body michael@0: as_echo='sh -c $as_echo_body as_echo' michael@0: fi michael@0: michael@0: # The user is always right. michael@0: if test "${PATH_SEPARATOR+set}" != set; then michael@0: PATH_SEPARATOR=: michael@0: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { michael@0: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || michael@0: PATH_SEPARATOR=';' michael@0: } michael@0: fi michael@0: michael@0: michael@0: # IFS michael@0: # We need space, tab and new line, in precisely that order. Quoting is michael@0: # there to prevent editors from complaining about space-tab. michael@0: # (If _AS_PATH_WALK were called with IFS unset, it would disable word michael@0: # splitting by setting IFS to empty value.) michael@0: IFS=" "" $as_nl" michael@0: michael@0: # Find who we are. Look in the path if we contain no directory separator. michael@0: as_myself= michael@0: case $0 in #(( michael@0: *[\\/]* ) as_myself=$0 ;; michael@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: # We did not find ourselves, most probably we were run as `sh COMMAND' michael@0: # in which case we are not to be found in the path. michael@0: if test "x$as_myself" = x; then michael@0: as_myself=$0 michael@0: fi michael@0: if test ! -f "$as_myself"; then michael@0: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 michael@0: exit 1 michael@0: fi michael@0: michael@0: # Unset variables that we do not need and which cause bugs (e.g. in michael@0: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" michael@0: # suppresses any "Segmentation fault" message there. '((' could michael@0: # trigger a bug in pdksh 5.2.14. michael@0: for as_var in BASH_ENV ENV MAIL MAILPATH michael@0: do eval test x\${$as_var+set} = xset \ michael@0: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : michael@0: done michael@0: PS1='$ ' michael@0: PS2='> ' michael@0: PS4='+ ' michael@0: michael@0: # NLS nuisances. michael@0: LC_ALL=C michael@0: export LC_ALL michael@0: LANGUAGE=C michael@0: export LANGUAGE michael@0: michael@0: # CDPATH. michael@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH michael@0: michael@0: if test "x$CONFIG_SHELL" = x; then michael@0: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : michael@0: emulate sh michael@0: NULLCMD=: michael@0: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which michael@0: # is contrary to our usage. Disable this feature. michael@0: alias -g '\${1+\"\$@\"}'='\"\$@\"' michael@0: setopt NO_GLOB_SUBST michael@0: else michael@0: case \`(set -o) 2>/dev/null\` in #( michael@0: *posix*) : michael@0: set -o posix ;; #( michael@0: *) : michael@0: ;; michael@0: esac michael@0: fi michael@0: " michael@0: as_required="as_fn_return () { (exit \$1); } michael@0: as_fn_success () { as_fn_return 0; } michael@0: as_fn_failure () { as_fn_return 1; } michael@0: as_fn_ret_success () { return 0; } michael@0: as_fn_ret_failure () { return 1; } michael@0: michael@0: exitcode=0 michael@0: as_fn_success || { exitcode=1; echo as_fn_success failed.; } michael@0: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } michael@0: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } michael@0: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } michael@0: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : michael@0: michael@0: else michael@0: exitcode=1; echo positional parameters were not saved. michael@0: fi michael@0: test x\$exitcode = x0 || exit 1" michael@0: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO michael@0: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO michael@0: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && michael@0: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 michael@0: test \$(( 1 + 1 )) = 2 || exit 1" michael@0: if (eval "$as_required") 2>/dev/null; then : michael@0: as_have_required=yes michael@0: else michael@0: as_have_required=no michael@0: fi michael@0: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : michael@0: michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: as_found=false michael@0: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: as_found=: michael@0: case $as_dir in #( michael@0: /*) michael@0: for as_base in sh bash ksh sh5; do michael@0: # Try only shells that exist, to save several forks. michael@0: as_shell=$as_dir/$as_base michael@0: if { test -f "$as_shell" || test -f "$as_shell.exe"; } && michael@0: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : michael@0: CONFIG_SHELL=$as_shell as_have_required=yes michael@0: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : michael@0: break 2 michael@0: fi michael@0: fi michael@0: done;; michael@0: esac michael@0: as_found=false michael@0: done michael@0: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && michael@0: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : michael@0: CONFIG_SHELL=$SHELL as_have_required=yes michael@0: fi; } michael@0: IFS=$as_save_IFS michael@0: michael@0: michael@0: if test "x$CONFIG_SHELL" != x; then : michael@0: # We cannot yet assume a decent shell, so we have to provide a michael@0: # neutralization value for shells without unset; and this also michael@0: # works around shells that cannot unset nonexistent variables. michael@0: # Preserve -v and -x to the replacement shell. michael@0: BASH_ENV=/dev/null michael@0: ENV=/dev/null michael@0: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV michael@0: export CONFIG_SHELL michael@0: case $- in # (((( michael@0: *v*x* | *x*v* ) as_opts=-vx ;; michael@0: *v* ) as_opts=-v ;; michael@0: *x* ) as_opts=-x ;; michael@0: * ) as_opts= ;; michael@0: esac michael@0: exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} michael@0: fi michael@0: michael@0: if test x$as_have_required = xno; then : michael@0: $as_echo "$0: This script requires a shell more modern than all" michael@0: $as_echo "$0: the shells that I found on your system." michael@0: if test x${ZSH_VERSION+set} = xset ; then michael@0: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" michael@0: $as_echo "$0: be upgraded to zsh 4.3.4 or later." michael@0: else michael@0: $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, michael@0: $0: including any error possibly output before this michael@0: $0: message. Then install a modern shell, or manually run michael@0: $0: the script under such a shell if you do have one." michael@0: fi michael@0: exit 1 michael@0: fi michael@0: fi michael@0: fi michael@0: SHELL=${CONFIG_SHELL-/bin/sh} michael@0: export SHELL michael@0: # Unset more variables known to interfere with behavior of common tools. michael@0: CLICOLOR_FORCE= GREP_OPTIONS= michael@0: unset CLICOLOR_FORCE GREP_OPTIONS michael@0: michael@0: ## --------------------- ## michael@0: ## M4sh Shell Functions. ## michael@0: ## --------------------- ## michael@0: # as_fn_unset VAR michael@0: # --------------- michael@0: # Portably unset VAR. michael@0: as_fn_unset () michael@0: { michael@0: { eval $1=; unset $1;} michael@0: } michael@0: as_unset=as_fn_unset michael@0: michael@0: # as_fn_set_status STATUS michael@0: # ----------------------- michael@0: # Set $? to STATUS, without forking. michael@0: as_fn_set_status () michael@0: { michael@0: return $1 michael@0: } # as_fn_set_status michael@0: michael@0: # as_fn_exit STATUS michael@0: # ----------------- michael@0: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. michael@0: as_fn_exit () michael@0: { michael@0: set +e michael@0: as_fn_set_status $1 michael@0: exit $1 michael@0: } # as_fn_exit michael@0: michael@0: # as_fn_mkdir_p michael@0: # ------------- michael@0: # Create "$as_dir" as a directory, including parents if necessary. michael@0: as_fn_mkdir_p () michael@0: { michael@0: michael@0: case $as_dir in #( michael@0: -*) as_dir=./$as_dir;; michael@0: esac michael@0: test -d "$as_dir" || eval $as_mkdir_p || { michael@0: as_dirs= michael@0: while :; do michael@0: case $as_dir in #( michael@0: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( michael@0: *) as_qdir=$as_dir;; michael@0: esac michael@0: as_dirs="'$as_qdir' $as_dirs" michael@0: as_dir=`$as_dirname -- "$as_dir" || michael@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$as_dir" : 'X\(//\)[^/]' \| \ michael@0: X"$as_dir" : 'X\(//\)$' \| \ michael@0: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$as_dir" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: test -d "$as_dir" && break michael@0: done michael@0: test -z "$as_dirs" || eval "mkdir $as_dirs" michael@0: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" michael@0: michael@0: michael@0: } # as_fn_mkdir_p michael@0: # as_fn_append VAR VALUE michael@0: # ---------------------- michael@0: # Append the text in VALUE to the end of the definition contained in VAR. Take michael@0: # advantage of any shell optimizations that allow amortized linear growth over michael@0: # repeated appends, instead of the typical quadratic growth present in naive michael@0: # implementations. michael@0: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : michael@0: eval 'as_fn_append () michael@0: { michael@0: eval $1+=\$2 michael@0: }' michael@0: else michael@0: as_fn_append () michael@0: { michael@0: eval $1=\$$1\$2 michael@0: } michael@0: fi # as_fn_append michael@0: michael@0: # as_fn_arith ARG... michael@0: # ------------------ michael@0: # Perform arithmetic evaluation on the ARGs, and store the result in the michael@0: # global $as_val. Take advantage of shells that can avoid forks. The arguments michael@0: # must be portable across $(()) and expr. michael@0: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : michael@0: eval 'as_fn_arith () michael@0: { michael@0: as_val=$(( $* )) michael@0: }' michael@0: else michael@0: as_fn_arith () michael@0: { michael@0: as_val=`expr "$@" || test $? -eq 1` michael@0: } michael@0: fi # as_fn_arith michael@0: michael@0: michael@0: # as_fn_error STATUS ERROR [LINENO LOG_FD] michael@0: # ---------------------------------------- michael@0: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are michael@0: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the michael@0: # script with STATUS, using 1 if that was 0. michael@0: as_fn_error () michael@0: { michael@0: as_status=$1; test $as_status -eq 0 && as_status=1 michael@0: if test "$4"; then michael@0: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 michael@0: fi michael@0: $as_echo "$as_me: error: $2" >&2 michael@0: as_fn_exit $as_status michael@0: } # as_fn_error michael@0: michael@0: if expr a : '\(a\)' >/dev/null 2>&1 && michael@0: test "X`expr 00001 : '.*\(...\)'`" = X001; then michael@0: as_expr=expr michael@0: else michael@0: as_expr=false michael@0: fi michael@0: michael@0: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then michael@0: as_basename=basename michael@0: else michael@0: as_basename=false michael@0: fi michael@0: michael@0: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then michael@0: as_dirname=dirname michael@0: else michael@0: as_dirname=false michael@0: fi michael@0: michael@0: as_me=`$as_basename -- "$0" || michael@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ michael@0: X"$0" : 'X\(//\)$' \| \ michael@0: X"$0" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X/"$0" | michael@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: michael@0: # Avoid depending upon Character Ranges. michael@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' michael@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' michael@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS michael@0: as_cr_digits='0123456789' michael@0: as_cr_alnum=$as_cr_Letters$as_cr_digits michael@0: michael@0: michael@0: as_lineno_1=$LINENO as_lineno_1a=$LINENO michael@0: as_lineno_2=$LINENO as_lineno_2a=$LINENO michael@0: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && michael@0: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { michael@0: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) michael@0: sed -n ' michael@0: p michael@0: /[$]LINENO/= michael@0: ' <$as_myself | michael@0: sed ' michael@0: s/[$]LINENO.*/&-/ michael@0: t lineno michael@0: b michael@0: :lineno michael@0: N michael@0: :loop michael@0: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ michael@0: t loop michael@0: s/-\n.*// michael@0: ' >$as_me.lineno && michael@0: chmod +x "$as_me.lineno" || michael@0: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } michael@0: michael@0: # Don't try to exec as it changes $[0], causing all sort of problems michael@0: # (the dirname of $[0] is not the place where we might find the michael@0: # original and so on. Autoconf is especially sensitive to this). michael@0: . "./$as_me.lineno" michael@0: # Exit status is that of the last command. michael@0: exit michael@0: } michael@0: michael@0: ECHO_C= ECHO_N= ECHO_T= michael@0: case `echo -n x` in #((((( michael@0: -n*) michael@0: case `echo 'xy\c'` in michael@0: *c*) ECHO_T=' ';; # ECHO_T is single tab character. michael@0: xy) ECHO_C='\c';; michael@0: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null michael@0: ECHO_T=' ';; michael@0: esac;; michael@0: *) michael@0: ECHO_N='-n';; michael@0: esac michael@0: michael@0: rm -f conf$$ conf$$.exe conf$$.file michael@0: if test -d conf$$.dir; then michael@0: rm -f conf$$.dir/conf$$.file michael@0: else michael@0: rm -f conf$$.dir michael@0: mkdir conf$$.dir 2>/dev/null michael@0: fi michael@0: if (echo >conf$$.file) 2>/dev/null; then michael@0: if ln -s conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s='ln -s' michael@0: # ... but there are two gotchas: michael@0: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. michael@0: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. michael@0: # In both cases, we have to default to `cp -p'. michael@0: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || michael@0: as_ln_s='cp -p' michael@0: elif ln conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s=ln michael@0: else michael@0: as_ln_s='cp -p' michael@0: fi michael@0: else michael@0: as_ln_s='cp -p' michael@0: fi michael@0: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file michael@0: rmdir conf$$.dir 2>/dev/null michael@0: michael@0: if mkdir -p . 2>/dev/null; then michael@0: as_mkdir_p='mkdir -p "$as_dir"' michael@0: else michael@0: test -d ./-p && rmdir ./-p michael@0: as_mkdir_p=false michael@0: fi michael@0: michael@0: if test -x / >/dev/null 2>&1; then michael@0: as_test_x='test -x' michael@0: else michael@0: if ls -dL / >/dev/null 2>&1; then michael@0: as_ls_L_option=L michael@0: else michael@0: as_ls_L_option= michael@0: fi michael@0: as_test_x=' michael@0: eval sh -c '\'' michael@0: if test -d "$1"; then michael@0: test -d "$1/."; michael@0: else michael@0: case $1 in #( michael@0: -*)set "./$1";; michael@0: esac; michael@0: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( michael@0: ???[sx]*):;;*)false;;esac;fi michael@0: '\'' sh michael@0: ' michael@0: fi michael@0: as_executable_p=$as_test_x michael@0: michael@0: # Sed expression to map a string onto a valid CPP name. michael@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: # Sed expression to map a string onto a valid variable name. michael@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: michael@0: test -n "$DJDIR" || exec 7<&0 &1 michael@0: michael@0: # Name of the host. michael@0: # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, michael@0: # so uname gets run too. michael@0: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` michael@0: michael@0: # michael@0: # Initializations. michael@0: # michael@0: ac_default_prefix=/usr/local michael@0: ac_clean_files= michael@0: ac_config_libobj_dir=. michael@0: LIBOBJS= michael@0: cross_compiling=no michael@0: subdirs= michael@0: MFLAGS= michael@0: MAKEFLAGS= michael@0: michael@0: # Identity of this package. michael@0: PACKAGE_NAME= michael@0: PACKAGE_TARNAME= michael@0: PACKAGE_VERSION= michael@0: PACKAGE_STRING= michael@0: PACKAGE_BUGREPORT= michael@0: PACKAGE_URL= michael@0: michael@0: ac_unique_file="ICU" michael@0: ac_unique_file="common/unicode/utypes.h" michael@0: # Factoring default headers for most tests. michael@0: ac_includes_default="\ michael@0: #include michael@0: #ifdef HAVE_SYS_TYPES_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_SYS_STAT_H michael@0: # include michael@0: #endif michael@0: #ifdef STDC_HEADERS michael@0: # include michael@0: # include michael@0: #else michael@0: # ifdef HAVE_STDLIB_H michael@0: # include michael@0: # endif michael@0: #endif michael@0: #ifdef HAVE_STRING_H michael@0: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H michael@0: # include michael@0: # endif michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_STRINGS_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_INTTYPES_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_STDINT_H michael@0: # include michael@0: #endif michael@0: #ifdef HAVE_UNISTD_H michael@0: # include michael@0: #endif" michael@0: michael@0: ac_subst_vars='UCONFIG_CXXFLAGS michael@0: UCONFIG_CFLAGS michael@0: UCONFIG_CPPFLAGS michael@0: LTLIBOBJS michael@0: LIBOBJS michael@0: LIBCXXFLAGS michael@0: LIBCFLAGS michael@0: platform_make_fragment michael@0: platform_make_fragment_name michael@0: platform michael@0: ICUDATA_CHAR michael@0: SAMPLES_TRUE michael@0: TESTS_TRUE michael@0: ICULIBSUFFIXCNAME michael@0: U_HAVE_LIB_SUFFIX michael@0: ICULIBSUFFIX michael@0: DATA_PACKAGING_MODE michael@0: thepkgicudatadir michael@0: pkgicudatadir michael@0: TOOLS_TRUE michael@0: LAYOUT_TRUE michael@0: ICUIO_TRUE michael@0: EXTRAS_TRUE michael@0: U_HAVE_WCSCPY michael@0: U_HAVE_WCHAR_H michael@0: U_TIMEZONE michael@0: U_HAVE_TIMEZONE michael@0: U_TZNAME michael@0: U_HAVE_TZNAME michael@0: U_TZSET michael@0: U_HAVE_TZSET michael@0: U_HAVE_POPEN michael@0: U_HAVE_PLACEMENT_NEW michael@0: U_OVERRIDE_CXX_ALLOCATION michael@0: U_NL_LANGINFO_CODESET michael@0: U_HAVE_NL_LANGINFO_CODESET michael@0: U_IS_BIG_ENDIAN michael@0: U_HAVE_DIRENT_H michael@0: U_HAVE_INTTYPES_H michael@0: GENCCODE_ASSEMBLY michael@0: HAVE_MMAP michael@0: LIB_THREAD michael@0: U_HAVE_ATOMIC michael@0: U_HAVE_STD_STRING michael@0: ENABLE_RPATH michael@0: U_ENABLE_DYLOAD michael@0: U_ENABLE_TRACING michael@0: U_DISABLE_RENAMING michael@0: AR michael@0: RANLIB michael@0: U_DEFAULT_SHOW_DRAFT michael@0: UCLN_NO_AUTO_CLEANUP michael@0: ENABLE_STATIC michael@0: ENABLE_SHARED michael@0: LIB_M michael@0: COMPILE_LINK_ENVVAR michael@0: ARFLAGS michael@0: EGREP michael@0: GREP michael@0: DOXYGEN michael@0: cross_buildroot michael@0: U_MAKE michael@0: cross_compiling michael@0: INSTALL_DATA michael@0: INSTALL_SCRIPT michael@0: INSTALL_PROGRAM michael@0: CPP michael@0: ac_ct_CXX michael@0: CXXFLAGS michael@0: CXX michael@0: OBJEXT michael@0: EXEEXT michael@0: ac_ct_CC michael@0: LDFLAGS michael@0: CFLAGS michael@0: CC michael@0: ENABLE_RELEASE michael@0: ENABLE_DEBUG michael@0: CPPFLAGS michael@0: host_os michael@0: host_vendor michael@0: host_cpu michael@0: host michael@0: build_os michael@0: build_vendor michael@0: build_cpu michael@0: build michael@0: UNICODE_VERSION michael@0: LIB_VERSION_MAJOR michael@0: LIB_VERSION michael@0: VERSION michael@0: ICU_ECHO_T michael@0: ICU_ECHO_C michael@0: ICU_ECHO_N michael@0: PACKAGE michael@0: target_alias michael@0: host_alias michael@0: build_alias michael@0: LIBS michael@0: ECHO_T michael@0: ECHO_N michael@0: ECHO_C michael@0: DEFS michael@0: mandir michael@0: localedir michael@0: libdir michael@0: psdir michael@0: pdfdir michael@0: dvidir michael@0: htmldir michael@0: infodir michael@0: docdir michael@0: oldincludedir michael@0: includedir michael@0: localstatedir michael@0: sharedstatedir michael@0: sysconfdir michael@0: datadir michael@0: datarootdir michael@0: libexecdir michael@0: sbindir michael@0: bindir michael@0: program_transform_name michael@0: prefix michael@0: exec_prefix michael@0: PACKAGE_URL michael@0: PACKAGE_BUGREPORT michael@0: PACKAGE_STRING michael@0: PACKAGE_VERSION michael@0: PACKAGE_TARNAME michael@0: PACKAGE_NAME michael@0: PATH_SEPARATOR michael@0: SHELL' michael@0: ac_subst_files='' michael@0: ac_user_opts=' michael@0: enable_option_checking michael@0: enable_debug michael@0: enable_release michael@0: with_cross_build michael@0: enable_strict michael@0: enable_64bit_libs michael@0: with_library_bits michael@0: enable_shared michael@0: enable_static michael@0: enable_auto_cleanup michael@0: enable_draft michael@0: enable_renaming michael@0: enable_tracing michael@0: enable_dyload michael@0: enable_rpath michael@0: enable_weak_threads michael@0: enable_extras michael@0: enable_icuio michael@0: enable_layout michael@0: enable_tools michael@0: with_data_packaging michael@0: with_library_suffix michael@0: enable_tests michael@0: enable_samples michael@0: ' michael@0: ac_precious_vars='build_alias michael@0: host_alias michael@0: target_alias michael@0: CC michael@0: CFLAGS michael@0: LDFLAGS michael@0: LIBS michael@0: CPPFLAGS michael@0: CXX michael@0: CXXFLAGS michael@0: CCC michael@0: CPP' michael@0: michael@0: michael@0: # Initialize some variables set by options. michael@0: ac_init_help= michael@0: ac_init_version=false michael@0: ac_unrecognized_opts= michael@0: ac_unrecognized_sep= michael@0: # The variables have the same names as the options, with michael@0: # dashes changed to underlines. michael@0: cache_file=/dev/null michael@0: exec_prefix=NONE michael@0: no_create= michael@0: no_recursion= michael@0: prefix=NONE michael@0: program_prefix=NONE michael@0: program_suffix=NONE michael@0: program_transform_name=s,x,x, michael@0: silent= michael@0: site= michael@0: srcdir= michael@0: verbose= michael@0: x_includes=NONE michael@0: x_libraries=NONE michael@0: michael@0: # Installation directory options. michael@0: # These are left unexpanded so users can "make install exec_prefix=/foo" michael@0: # and all the variables that are supposed to be based on exec_prefix michael@0: # by default will actually change. michael@0: # Use braces instead of parens because sh, perl, etc. also accept them. michael@0: # (The list follows the same order as the GNU Coding Standards.) michael@0: bindir='${exec_prefix}/bin' michael@0: sbindir='${exec_prefix}/sbin' michael@0: libexecdir='${exec_prefix}/libexec' michael@0: datarootdir='${prefix}/share' michael@0: datadir='${datarootdir}' michael@0: sysconfdir='${prefix}/etc' michael@0: sharedstatedir='${prefix}/com' michael@0: localstatedir='${prefix}/var' michael@0: includedir='${prefix}/include' michael@0: oldincludedir='/usr/include' michael@0: docdir='${datarootdir}/doc/${PACKAGE}' michael@0: infodir='${datarootdir}/info' michael@0: htmldir='${docdir}' michael@0: dvidir='${docdir}' michael@0: pdfdir='${docdir}' michael@0: psdir='${docdir}' michael@0: libdir='${exec_prefix}/lib' michael@0: localedir='${datarootdir}/locale' michael@0: mandir='${datarootdir}/man' michael@0: michael@0: ac_prev= michael@0: ac_dashdash= michael@0: for ac_option michael@0: do michael@0: # If the previous option needs an argument, assign it. michael@0: if test -n "$ac_prev"; then michael@0: eval $ac_prev=\$ac_option michael@0: ac_prev= michael@0: continue michael@0: fi michael@0: michael@0: case $ac_option in michael@0: *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; michael@0: *=) ac_optarg= ;; michael@0: *) ac_optarg=yes ;; michael@0: esac michael@0: michael@0: # Accept the important Cygnus configure options, so we can diagnose typos. michael@0: michael@0: case $ac_dashdash$ac_option in michael@0: --) michael@0: ac_dashdash=yes ;; michael@0: michael@0: -bindir | --bindir | --bindi | --bind | --bin | --bi) michael@0: ac_prev=bindir ;; michael@0: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) michael@0: bindir=$ac_optarg ;; michael@0: michael@0: -build | --build | --buil | --bui | --bu) michael@0: ac_prev=build_alias ;; michael@0: -build=* | --build=* | --buil=* | --bui=* | --bu=*) michael@0: build_alias=$ac_optarg ;; michael@0: michael@0: -cache-file | --cache-file | --cache-fil | --cache-fi \ michael@0: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) michael@0: ac_prev=cache_file ;; michael@0: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ michael@0: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) michael@0: cache_file=$ac_optarg ;; michael@0: michael@0: --config-cache | -C) michael@0: cache_file=config.cache ;; michael@0: michael@0: -datadir | --datadir | --datadi | --datad) michael@0: ac_prev=datadir ;; michael@0: -datadir=* | --datadir=* | --datadi=* | --datad=*) michael@0: datadir=$ac_optarg ;; michael@0: michael@0: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ michael@0: | --dataroo | --dataro | --datar) michael@0: ac_prev=datarootdir ;; michael@0: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ michael@0: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) michael@0: datarootdir=$ac_optarg ;; michael@0: michael@0: -disable-* | --disable-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error $? "invalid feature name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "enable_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval enable_$ac_useropt=no ;; michael@0: michael@0: -docdir | --docdir | --docdi | --doc | --do) michael@0: ac_prev=docdir ;; michael@0: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) michael@0: docdir=$ac_optarg ;; michael@0: michael@0: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) michael@0: ac_prev=dvidir ;; michael@0: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) michael@0: dvidir=$ac_optarg ;; michael@0: michael@0: -enable-* | --enable-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error $? "invalid feature name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "enable_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval enable_$ac_useropt=\$ac_optarg ;; michael@0: michael@0: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ michael@0: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ michael@0: | --exec | --exe | --ex) michael@0: ac_prev=exec_prefix ;; michael@0: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ michael@0: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ michael@0: | --exec=* | --exe=* | --ex=*) michael@0: exec_prefix=$ac_optarg ;; michael@0: michael@0: -gas | --gas | --ga | --g) michael@0: # Obsolete; use --with-gas. michael@0: with_gas=yes ;; michael@0: michael@0: -help | --help | --hel | --he | -h) michael@0: ac_init_help=long ;; michael@0: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) michael@0: ac_init_help=recursive ;; michael@0: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) michael@0: ac_init_help=short ;; michael@0: michael@0: -host | --host | --hos | --ho) michael@0: ac_prev=host_alias ;; michael@0: -host=* | --host=* | --hos=* | --ho=*) michael@0: host_alias=$ac_optarg ;; michael@0: michael@0: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) michael@0: ac_prev=htmldir ;; michael@0: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ michael@0: | --ht=*) michael@0: htmldir=$ac_optarg ;; michael@0: michael@0: -includedir | --includedir | --includedi | --included | --include \ michael@0: | --includ | --inclu | --incl | --inc) michael@0: ac_prev=includedir ;; michael@0: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ michael@0: | --includ=* | --inclu=* | --incl=* | --inc=*) michael@0: includedir=$ac_optarg ;; michael@0: michael@0: -infodir | --infodir | --infodi | --infod | --info | --inf) michael@0: ac_prev=infodir ;; michael@0: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) michael@0: infodir=$ac_optarg ;; michael@0: michael@0: -libdir | --libdir | --libdi | --libd) michael@0: ac_prev=libdir ;; michael@0: -libdir=* | --libdir=* | --libdi=* | --libd=*) michael@0: libdir=$ac_optarg ;; michael@0: michael@0: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ michael@0: | --libexe | --libex | --libe) michael@0: ac_prev=libexecdir ;; michael@0: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ michael@0: | --libexe=* | --libex=* | --libe=*) michael@0: libexecdir=$ac_optarg ;; michael@0: michael@0: -localedir | --localedir | --localedi | --localed | --locale) michael@0: ac_prev=localedir ;; michael@0: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) michael@0: localedir=$ac_optarg ;; michael@0: michael@0: -localstatedir | --localstatedir | --localstatedi | --localstated \ michael@0: | --localstate | --localstat | --localsta | --localst | --locals) michael@0: ac_prev=localstatedir ;; michael@0: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ michael@0: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) michael@0: localstatedir=$ac_optarg ;; michael@0: michael@0: -mandir | --mandir | --mandi | --mand | --man | --ma | --m) michael@0: ac_prev=mandir ;; michael@0: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) michael@0: mandir=$ac_optarg ;; michael@0: michael@0: -nfp | --nfp | --nf) michael@0: # Obsolete; use --without-fp. michael@0: with_fp=no ;; michael@0: michael@0: -no-create | --no-create | --no-creat | --no-crea | --no-cre \ michael@0: | --no-cr | --no-c | -n) michael@0: no_create=yes ;; michael@0: michael@0: -no-recursion | --no-recursion | --no-recursio | --no-recursi \ michael@0: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) michael@0: no_recursion=yes ;; michael@0: michael@0: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ michael@0: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ michael@0: | --oldin | --oldi | --old | --ol | --o) michael@0: ac_prev=oldincludedir ;; michael@0: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ michael@0: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ michael@0: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) michael@0: oldincludedir=$ac_optarg ;; michael@0: michael@0: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) michael@0: ac_prev=prefix ;; michael@0: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) michael@0: prefix=$ac_optarg ;; michael@0: michael@0: -program-prefix | --program-prefix | --program-prefi | --program-pref \ michael@0: | --program-pre | --program-pr | --program-p) michael@0: ac_prev=program_prefix ;; michael@0: -program-prefix=* | --program-prefix=* | --program-prefi=* \ michael@0: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) michael@0: program_prefix=$ac_optarg ;; michael@0: michael@0: -program-suffix | --program-suffix | --program-suffi | --program-suff \ michael@0: | --program-suf | --program-su | --program-s) michael@0: ac_prev=program_suffix ;; michael@0: -program-suffix=* | --program-suffix=* | --program-suffi=* \ michael@0: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) michael@0: program_suffix=$ac_optarg ;; michael@0: michael@0: -program-transform-name | --program-transform-name \ michael@0: | --program-transform-nam | --program-transform-na \ michael@0: | --program-transform-n | --program-transform- \ michael@0: | --program-transform | --program-transfor \ michael@0: | --program-transfo | --program-transf \ michael@0: | --program-trans | --program-tran \ michael@0: | --progr-tra | --program-tr | --program-t) michael@0: ac_prev=program_transform_name ;; michael@0: -program-transform-name=* | --program-transform-name=* \ michael@0: | --program-transform-nam=* | --program-transform-na=* \ michael@0: | --program-transform-n=* | --program-transform-=* \ michael@0: | --program-transform=* | --program-transfor=* \ michael@0: | --program-transfo=* | --program-transf=* \ michael@0: | --program-trans=* | --program-tran=* \ michael@0: | --progr-tra=* | --program-tr=* | --program-t=*) michael@0: program_transform_name=$ac_optarg ;; michael@0: michael@0: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) michael@0: ac_prev=pdfdir ;; michael@0: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) michael@0: pdfdir=$ac_optarg ;; michael@0: michael@0: -psdir | --psdir | --psdi | --psd | --ps) michael@0: ac_prev=psdir ;; michael@0: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) michael@0: psdir=$ac_optarg ;; michael@0: michael@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ michael@0: | -silent | --silent | --silen | --sile | --sil) michael@0: silent=yes ;; michael@0: michael@0: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) michael@0: ac_prev=sbindir ;; michael@0: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ michael@0: | --sbi=* | --sb=*) michael@0: sbindir=$ac_optarg ;; michael@0: michael@0: -sharedstatedir | --sharedstatedir | --sharedstatedi \ michael@0: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ michael@0: | --sharedst | --shareds | --shared | --share | --shar \ michael@0: | --sha | --sh) michael@0: ac_prev=sharedstatedir ;; michael@0: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ michael@0: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ michael@0: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ michael@0: | --sha=* | --sh=*) michael@0: sharedstatedir=$ac_optarg ;; michael@0: michael@0: -site | --site | --sit) michael@0: ac_prev=site ;; michael@0: -site=* | --site=* | --sit=*) michael@0: site=$ac_optarg ;; michael@0: michael@0: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) michael@0: ac_prev=srcdir ;; michael@0: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) michael@0: srcdir=$ac_optarg ;; michael@0: michael@0: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ michael@0: | --syscon | --sysco | --sysc | --sys | --sy) michael@0: ac_prev=sysconfdir ;; michael@0: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ michael@0: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) michael@0: sysconfdir=$ac_optarg ;; michael@0: michael@0: -target | --target | --targe | --targ | --tar | --ta | --t) michael@0: ac_prev=target_alias ;; michael@0: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) michael@0: target_alias=$ac_optarg ;; michael@0: michael@0: -v | -verbose | --verbose | --verbos | --verbo | --verb) michael@0: verbose=yes ;; michael@0: michael@0: -version | --version | --versio | --versi | --vers | -V) michael@0: ac_init_version=: ;; michael@0: michael@0: -with-* | --with-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error $? "invalid package name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "with_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval with_$ac_useropt=\$ac_optarg ;; michael@0: michael@0: -without-* | --without-*) michael@0: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` michael@0: # Reject names that are not valid shell variable names. michael@0: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && michael@0: as_fn_error $? "invalid package name: $ac_useropt" michael@0: ac_useropt_orig=$ac_useropt michael@0: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` michael@0: case $ac_user_opts in michael@0: *" michael@0: "with_$ac_useropt" michael@0: "*) ;; michael@0: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" michael@0: ac_unrecognized_sep=', ';; michael@0: esac michael@0: eval with_$ac_useropt=no ;; michael@0: michael@0: --x) michael@0: # Obsolete; use --with-x. michael@0: with_x=yes ;; michael@0: michael@0: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ michael@0: | --x-incl | --x-inc | --x-in | --x-i) michael@0: ac_prev=x_includes ;; michael@0: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ michael@0: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) michael@0: x_includes=$ac_optarg ;; michael@0: michael@0: -x-libraries | --x-libraries | --x-librarie | --x-librari \ michael@0: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) michael@0: ac_prev=x_libraries ;; michael@0: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ michael@0: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) michael@0: x_libraries=$ac_optarg ;; michael@0: michael@0: -*) as_fn_error $? "unrecognized option: \`$ac_option' michael@0: Try \`$0 --help' for more information" michael@0: ;; michael@0: michael@0: *=*) michael@0: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` michael@0: # Reject names that are not valid shell variable names. michael@0: case $ac_envvar in #( michael@0: '' | [0-9]* | *[!_$as_cr_alnum]* ) michael@0: as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; michael@0: esac michael@0: eval $ac_envvar=\$ac_optarg michael@0: export $ac_envvar ;; michael@0: michael@0: *) michael@0: # FIXME: should be removed in autoconf 3.0. michael@0: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 michael@0: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && michael@0: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 michael@0: : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" michael@0: ;; michael@0: michael@0: esac michael@0: done michael@0: michael@0: if test -n "$ac_prev"; then michael@0: ac_option=--`echo $ac_prev | sed 's/_/-/g'` michael@0: as_fn_error $? "missing argument to $ac_option" michael@0: fi michael@0: michael@0: if test -n "$ac_unrecognized_opts"; then michael@0: case $enable_option_checking in michael@0: no) ;; michael@0: fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; michael@0: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; michael@0: esac michael@0: fi michael@0: michael@0: # Check all directory arguments for consistency. michael@0: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ michael@0: datadir sysconfdir sharedstatedir localstatedir includedir \ michael@0: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ michael@0: libdir localedir mandir michael@0: do michael@0: eval ac_val=\$$ac_var michael@0: # Remove trailing slashes. michael@0: case $ac_val in michael@0: */ ) michael@0: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` michael@0: eval $ac_var=\$ac_val;; michael@0: esac michael@0: # Be sure to have absolute directory names. michael@0: case $ac_val in michael@0: [\\/$]* | ?:[\\/]* ) continue;; michael@0: NONE | '' ) case $ac_var in *prefix ) continue;; esac;; michael@0: esac michael@0: as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" michael@0: done michael@0: michael@0: # There might be people who depend on the old broken behavior: `$host' michael@0: # used to hold the argument of --host etc. michael@0: # FIXME: To remove some day. michael@0: build=$build_alias michael@0: host=$host_alias michael@0: target=$target_alias michael@0: michael@0: # FIXME: To remove some day. michael@0: if test "x$host_alias" != x; then michael@0: if test "x$build_alias" = x; then michael@0: cross_compiling=maybe michael@0: $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. michael@0: If a cross compiler is detected then cross compile mode will be used" >&2 michael@0: elif test "x$build_alias" != "x$host_alias"; then michael@0: cross_compiling=yes michael@0: fi michael@0: fi michael@0: michael@0: ac_tool_prefix= michael@0: test -n "$host_alias" && ac_tool_prefix=$host_alias- michael@0: michael@0: test "$silent" = yes && exec 6>/dev/null michael@0: michael@0: michael@0: ac_pwd=`pwd` && test -n "$ac_pwd" && michael@0: ac_ls_di=`ls -di .` && michael@0: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || michael@0: as_fn_error $? "working directory cannot be determined" michael@0: test "X$ac_ls_di" = "X$ac_pwd_ls_di" || michael@0: as_fn_error $? "pwd does not report name of working directory" michael@0: michael@0: michael@0: # Find the source files, if location was not specified. michael@0: if test -z "$srcdir"; then michael@0: ac_srcdir_defaulted=yes michael@0: # Try the directory containing this script, then the parent directory. michael@0: ac_confdir=`$as_dirname -- "$as_myself" || michael@0: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$as_myself" : 'X\(//\)[^/]' \| \ michael@0: X"$as_myself" : 'X\(//\)$' \| \ michael@0: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$as_myself" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: srcdir=$ac_confdir michael@0: if test ! -r "$srcdir/$ac_unique_file"; then michael@0: srcdir=.. michael@0: fi michael@0: else michael@0: ac_srcdir_defaulted=no michael@0: fi michael@0: if test ! -r "$srcdir/$ac_unique_file"; then michael@0: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." michael@0: as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" michael@0: fi michael@0: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" michael@0: ac_abs_confdir=`( michael@0: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" michael@0: pwd)` michael@0: # When building in place, set srcdir=. michael@0: if test "$ac_abs_confdir" = "$ac_pwd"; then michael@0: srcdir=. michael@0: fi michael@0: # Remove unnecessary trailing slashes from srcdir. michael@0: # Double slashes in file names in object file debugging info michael@0: # mess up M-x gdb in Emacs. michael@0: case $srcdir in michael@0: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; michael@0: esac michael@0: for ac_var in $ac_precious_vars; do michael@0: eval ac_env_${ac_var}_set=\${${ac_var}+set} michael@0: eval ac_env_${ac_var}_value=\$${ac_var} michael@0: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} michael@0: eval ac_cv_env_${ac_var}_value=\$${ac_var} michael@0: done michael@0: michael@0: # michael@0: # Report the --help message. michael@0: # michael@0: if test "$ac_init_help" = "long"; then michael@0: # Omit some internal or obsolete options to make the list less imposing. michael@0: # This message is too long to be a string in the A/UX 3.1 sh. michael@0: cat <<_ACEOF michael@0: \`configure' configures this package to adapt to many kinds of systems. michael@0: michael@0: Usage: $0 [OPTION]... [VAR=VALUE]... michael@0: michael@0: To assign environment variables (e.g., CC, CFLAGS...), specify them as michael@0: VAR=VALUE. See below for descriptions of some of the useful variables. michael@0: michael@0: Defaults for the options are specified in brackets. michael@0: michael@0: Configuration: michael@0: -h, --help display this help and exit michael@0: --help=short display options specific to this package michael@0: --help=recursive display the short help of all the included packages michael@0: -V, --version display version information and exit michael@0: -q, --quiet, --silent do not print \`checking ...' messages michael@0: --cache-file=FILE cache test results in FILE [disabled] michael@0: -C, --config-cache alias for \`--cache-file=config.cache' michael@0: -n, --no-create do not create output files michael@0: --srcdir=DIR find the sources in DIR [configure dir or \`..'] michael@0: michael@0: Installation directories: michael@0: --prefix=PREFIX install architecture-independent files in PREFIX michael@0: [$ac_default_prefix] michael@0: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX michael@0: [PREFIX] michael@0: michael@0: By default, \`make install' will install all the files in michael@0: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify michael@0: an installation prefix other than \`$ac_default_prefix' using \`--prefix', michael@0: for instance \`--prefix=\$HOME'. michael@0: michael@0: For better control, use the options below. michael@0: michael@0: Fine tuning of the installation directories: michael@0: --bindir=DIR user executables [EPREFIX/bin] michael@0: --sbindir=DIR system admin executables [EPREFIX/sbin] michael@0: --libexecdir=DIR program executables [EPREFIX/libexec] michael@0: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] michael@0: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] michael@0: --localstatedir=DIR modifiable single-machine data [PREFIX/var] michael@0: --libdir=DIR object code libraries [EPREFIX/lib] michael@0: --includedir=DIR C header files [PREFIX/include] michael@0: --oldincludedir=DIR C header files for non-gcc [/usr/include] michael@0: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] michael@0: --datadir=DIR read-only architecture-independent data [DATAROOTDIR] michael@0: --infodir=DIR info documentation [DATAROOTDIR/info] michael@0: --localedir=DIR locale-dependent data [DATAROOTDIR/locale] michael@0: --mandir=DIR man documentation [DATAROOTDIR/man] michael@0: --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] michael@0: --htmldir=DIR html documentation [DOCDIR] michael@0: --dvidir=DIR dvi documentation [DOCDIR] michael@0: --pdfdir=DIR pdf documentation [DOCDIR] michael@0: --psdir=DIR ps documentation [DOCDIR] michael@0: _ACEOF michael@0: michael@0: cat <<\_ACEOF michael@0: michael@0: System types: michael@0: --build=BUILD configure for building on BUILD [guessed] michael@0: --host=HOST cross-compile to build programs to run on HOST [BUILD] michael@0: _ACEOF michael@0: fi michael@0: michael@0: if test -n "$ac_init_help"; then michael@0: michael@0: cat <<\_ACEOF michael@0: michael@0: Optional Features: michael@0: --disable-option-checking ignore unrecognized --enable/--with options michael@0: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) michael@0: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] michael@0: --enable-debug build debug libraries and enable the U_DEBUG define default=no michael@0: --enable-release build release libraries default=yes michael@0: --enable-strict compile with strict compiler options default=yes michael@0: --enable-64bit-libs (deprecated, use --with-library-bits) build 64-bit libraries default= platform default michael@0: --enable-shared build shared libraries default=yes michael@0: --enable-static build static libraries default=no michael@0: --enable-auto-cleanup enable auto cleanup of libraries default=no michael@0: --enable-draft enable draft APIs (and internal APIs) default=yes michael@0: --enable-renaming add a version suffix to symbols default=yes michael@0: --enable-tracing enable function and data tracing default=no michael@0: --disable-dyload disable dynamic loading default=no michael@0: --enable-rpath use rpath when linking default is only if necessary michael@0: --enable-weak-threads weakly reference the threading library default=no michael@0: --enable-extras build ICU extras default=yes michael@0: --enable-icuio build ICU's icuio library default=yes michael@0: --enable-layout build ICU's layout library default=yes michael@0: --enable-tools build ICU's tools default=yes michael@0: --enable-tests build ICU tests default=yes michael@0: --enable-samples build ICU samples default=yes michael@0: michael@0: Additionally, the variable FORCE_LIBS may be set before calling configure. michael@0: If set, it will REPLACE any automatic list of libraries. michael@0: michael@0: Optional Packages: michael@0: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] michael@0: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) michael@0: --with-cross-build=dir specify an absolute path to the build directory of an ICU built for the current platform default=no cross dir michael@0: --with-library-bits=bits specify how many bits to use for the library (32, 64, 64else32, nochange) default=nochange michael@0: --with-data-packaging=type specify how to package ICU data (files, archive, library, static, auto) default=auto michael@0: --with-library-suffix=suffix tag a suffix to the library names default= michael@0: michael@0: Some influential environment variables: michael@0: CC C compiler command michael@0: CFLAGS C compiler flags michael@0: LDFLAGS linker flags, e.g. -L if you have libraries in a michael@0: nonstandard directory michael@0: LIBS libraries to pass to the linker, e.g. -l michael@0: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if michael@0: you have headers in a nonstandard directory michael@0: CXX C++ compiler command michael@0: CXXFLAGS C++ compiler flags michael@0: CPP C preprocessor michael@0: michael@0: Use these variables to override the choices made by `configure' or to help michael@0: it to find libraries and programs with nonstandard names/locations. michael@0: michael@0: Report bugs to the package provider. michael@0: _ACEOF michael@0: ac_status=$? michael@0: fi michael@0: michael@0: if test "$ac_init_help" = "recursive"; then michael@0: # If there are subdirs, report their specific --help. michael@0: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue michael@0: test -d "$ac_dir" || michael@0: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || michael@0: continue michael@0: ac_builddir=. michael@0: michael@0: case "$ac_dir" in michael@0: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) michael@0: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` michael@0: # A ".." for each directory in $ac_dir_suffix. michael@0: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` michael@0: case $ac_top_builddir_sub in michael@0: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; michael@0: esac ;; michael@0: esac michael@0: ac_abs_top_builddir=$ac_pwd michael@0: ac_abs_builddir=$ac_pwd$ac_dir_suffix michael@0: # for backward compatibility: michael@0: ac_top_builddir=$ac_top_build_prefix michael@0: michael@0: case $srcdir in michael@0: .) # We are building in place. michael@0: ac_srcdir=. michael@0: ac_top_srcdir=$ac_top_builddir_sub michael@0: ac_abs_top_srcdir=$ac_pwd ;; michael@0: [\\/]* | ?:[\\/]* ) # Absolute name. michael@0: ac_srcdir=$srcdir$ac_dir_suffix; michael@0: ac_top_srcdir=$srcdir michael@0: ac_abs_top_srcdir=$srcdir ;; michael@0: *) # Relative name. michael@0: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix michael@0: ac_top_srcdir=$ac_top_build_prefix$srcdir michael@0: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; michael@0: esac michael@0: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix michael@0: michael@0: cd "$ac_dir" || { ac_status=$?; continue; } michael@0: # Check for guested configure. michael@0: if test -f "$ac_srcdir/configure.gnu"; then michael@0: echo && michael@0: $SHELL "$ac_srcdir/configure.gnu" --help=recursive michael@0: elif test -f "$ac_srcdir/configure"; then michael@0: echo && michael@0: $SHELL "$ac_srcdir/configure" --help=recursive michael@0: else michael@0: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 michael@0: fi || ac_status=$? michael@0: cd "$ac_pwd" || { ac_status=$?; break; } michael@0: done michael@0: fi michael@0: michael@0: test -n "$ac_init_help" && exit $ac_status michael@0: if $ac_init_version; then michael@0: cat <<\_ACEOF michael@0: configure michael@0: generated by GNU Autoconf 2.68 michael@0: michael@0: Copyright (C) 2010 Free Software Foundation, Inc. michael@0: This configure script is free software; the Free Software Foundation michael@0: gives unlimited permission to copy, distribute and modify it. michael@0: michael@0: Copyright (c) 1999-2013, International Business Machines Corporation and others. All Rights Reserved. michael@0: _ACEOF michael@0: exit michael@0: fi michael@0: michael@0: ## ------------------------ ## michael@0: ## Autoconf initialization. ## michael@0: ## ------------------------ ## michael@0: michael@0: # ac_fn_c_try_compile LINENO michael@0: # -------------------------- michael@0: # Try to compile conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_c_try_compile () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext michael@0: if { { ac_try="$ac_compile" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compile") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_c_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest.$ac_objext; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_compile michael@0: michael@0: # ac_fn_cxx_try_compile LINENO michael@0: # ---------------------------- michael@0: # Try to compile conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_cxx_try_compile () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext michael@0: if { { ac_try="$ac_compile" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compile") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_cxx_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest.$ac_objext; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_cxx_try_compile michael@0: michael@0: # ac_fn_c_try_cpp LINENO michael@0: # ---------------------- michael@0: # Try to preprocess conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_c_try_cpp () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if { { ac_try="$ac_cpp conftest.$ac_ext" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } > conftest.i && { michael@0: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || michael@0: test ! -s conftest.err michael@0: }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_cpp michael@0: michael@0: # ac_fn_cxx_try_link LINENO michael@0: # ------------------------- michael@0: # Try to link conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_cxx_try_link () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext conftest$ac_exeext michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_cxx_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest$ac_exeext && { michael@0: test "$cross_compiling" = yes || michael@0: $as_test_x conftest$ac_exeext michael@0: }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information michael@0: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would michael@0: # interfere with the next link command; also delete a directory that is michael@0: # left behind by Apple's compiler. We do this before executing the actions. michael@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_cxx_try_link michael@0: michael@0: # ac_fn_c_try_run LINENO michael@0: # ---------------------- michael@0: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes michael@0: # that executables *can* be run. michael@0: ac_fn_c_try_run () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' michael@0: { { case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_try") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: program exited with status $ac_status" >&5 michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=$ac_status michael@0: fi michael@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_run michael@0: michael@0: # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES michael@0: # -------------------------------------------- michael@0: # Tries to find the compile-time value of EXPR in a program that includes michael@0: # INCLUDES, setting VAR accordingly. Returns whether the value could be michael@0: # computed michael@0: ac_fn_c_compute_int () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if test "$cross_compiling" = yes; then michael@0: # Depending upon the size, compute the lo and hi bounds. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: static int test_array [1 - 2 * !(($2) >= 0)]; michael@0: test_array [0] = 0 michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_lo=0 ac_mid=0 michael@0: while :; do michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: static int test_array [1 - 2 * !(($2) <= $ac_mid)]; michael@0: test_array [0] = 0 michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_hi=$ac_mid; break michael@0: else michael@0: as_fn_arith $ac_mid + 1 && ac_lo=$as_val michael@0: if test $ac_lo -le $ac_mid; then michael@0: ac_lo= ac_hi= michael@0: break michael@0: fi michael@0: as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: done michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: static int test_array [1 - 2 * !(($2) < 0)]; michael@0: test_array [0] = 0 michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_hi=-1 ac_mid=-1 michael@0: while :; do michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: static int test_array [1 - 2 * !(($2) >= $ac_mid)]; michael@0: test_array [0] = 0 michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_lo=$ac_mid; break michael@0: else michael@0: as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val michael@0: if test $ac_mid -le $ac_hi; then michael@0: ac_lo= ac_hi= michael@0: break michael@0: fi michael@0: as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: done michael@0: else michael@0: ac_lo= ac_hi= michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: # Binary search between lo and hi bounds. michael@0: while test "x$ac_lo" != "x$ac_hi"; do michael@0: as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: static int test_array [1 - 2 * !(($2) <= $ac_mid)]; michael@0: test_array [0] = 0 michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_hi=$ac_mid michael@0: else michael@0: as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: done michael@0: case $ac_lo in #(( michael@0: ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; michael@0: '') ac_retval=1 ;; michael@0: esac michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: static long int longval () { return $2; } michael@0: static unsigned long int ulongval () { return $2; } michael@0: #include michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: michael@0: FILE *f = fopen ("conftest.val", "w"); michael@0: if (! f) michael@0: return 1; michael@0: if (($2) < 0) michael@0: { michael@0: long int i = longval (); michael@0: if (i != ($2)) michael@0: return 1; michael@0: fprintf (f, "%ld", i); michael@0: } michael@0: else michael@0: { michael@0: unsigned long int i = ulongval (); michael@0: if (i != ($2)) michael@0: return 1; michael@0: fprintf (f, "%lu", i); michael@0: } michael@0: /* Do not output a trailing newline, as this causes \r\n confusion michael@0: on some platforms. */ michael@0: return ferror (f) || fclose (f) != 0; michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_run "$LINENO"; then : michael@0: echo >>conftest.val; read $3 &5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if eval \${$3+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: #include <$2> michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: eval "$3=yes" michael@0: else michael@0: eval "$3=no" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: michael@0: } # ac_fn_c_check_header_compile michael@0: michael@0: # ac_fn_c_try_link LINENO michael@0: # ----------------------- michael@0: # Try to link conftest.$ac_ext, and return whether this succeeded. michael@0: ac_fn_c_try_link () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: rm -f conftest.$ac_objext conftest$ac_exeext michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: grep -v '^ *+' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: mv -f conftest.er1 conftest.err michael@0: fi michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } && { michael@0: test -z "$ac_c_werror_flag" || michael@0: test ! -s conftest.err michael@0: } && test -s conftest$ac_exeext && { michael@0: test "$cross_compiling" = yes || michael@0: $as_test_x conftest$ac_exeext michael@0: }; then : michael@0: ac_retval=0 michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: ac_retval=1 michael@0: fi michael@0: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information michael@0: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would michael@0: # interfere with the next link command; also delete a directory that is michael@0: # left behind by Apple's compiler. We do this before executing the actions. michael@0: rm -rf conftest.dSYM conftest_ipa8_conftest.oo michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: as_fn_set_status $ac_retval michael@0: michael@0: } # ac_fn_c_try_link michael@0: michael@0: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES michael@0: # ------------------------------------------------------- michael@0: # Tests whether HEADER exists, giving a warning if it cannot be compiled using michael@0: # the include files in INCLUDES and setting the cache variable VAR michael@0: # accordingly. michael@0: ac_fn_c_check_header_mongrel () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: if eval \${$3+:} false; then : michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if eval \${$3+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: else michael@0: # Is the header compilable? michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 michael@0: $as_echo_n "checking $2 usability... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: #include <$2> michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_header_compiler=yes michael@0: else michael@0: ac_header_compiler=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 michael@0: $as_echo "$ac_header_compiler" >&6; } michael@0: michael@0: # Is the header present? michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 michael@0: $as_echo_n "checking $2 presence... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include <$2> michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: ac_header_preproc=yes michael@0: else michael@0: ac_header_preproc=no michael@0: fi michael@0: rm -f conftest.err conftest.i conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 michael@0: $as_echo "$ac_header_preproc" >&6; } michael@0: michael@0: # So? What about this header? michael@0: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( michael@0: yes:no: ) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 michael@0: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 michael@0: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} michael@0: ;; michael@0: no:yes:* ) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 michael@0: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 michael@0: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 michael@0: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 michael@0: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 michael@0: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} michael@0: ;; michael@0: esac michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if eval \${$3+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: eval "$3=\$ac_header_compiler" michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: fi michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: michael@0: } # ac_fn_c_check_header_mongrel michael@0: michael@0: # ac_fn_c_check_func LINENO FUNC VAR michael@0: # ---------------------------------- michael@0: # Tests whether FUNC exists, setting the cache variable VAR accordingly michael@0: ac_fn_c_check_func () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if eval \${$3+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: /* Define $2 to an innocuous variant, in case declares $2. michael@0: For example, HP-UX 11i declares gettimeofday. */ michael@0: #define $2 innocuous_$2 michael@0: michael@0: /* System header to define __stub macros and hopefully few prototypes, michael@0: which can conflict with char $2 (); below. michael@0: Prefer to if __STDC__ is defined, since michael@0: exists even on freestanding compilers. */ michael@0: michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: michael@0: #undef $2 michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char $2 (); michael@0: /* The GNU C library defines this for functions which it implements michael@0: to always fail with ENOSYS. Some functions are actually named michael@0: something starting with __ and the normal name is an alias. */ michael@0: #if defined __stub_$2 || defined __stub___$2 michael@0: choke me michael@0: #endif michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return $2 (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: eval "$3=yes" michael@0: else michael@0: eval "$3=no" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: michael@0: } # ac_fn_c_check_func michael@0: michael@0: # ac_fn_c_check_type LINENO TYPE VAR INCLUDES michael@0: # ------------------------------------------- michael@0: # Tests whether TYPE exists after having included INCLUDES, setting cache michael@0: # variable VAR accordingly. michael@0: ac_fn_c_check_type () michael@0: { michael@0: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 michael@0: $as_echo_n "checking for $2... " >&6; } michael@0: if eval \${$3+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: eval "$3=no" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: if (sizeof ($2)) michael@0: return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $4 michael@0: int michael@0: main () michael@0: { michael@0: if (sizeof (($2))) michael@0: return 0; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: eval "$3=yes" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: eval ac_res=\$$3 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 michael@0: $as_echo "$ac_res" >&6; } michael@0: eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno michael@0: michael@0: } # ac_fn_c_check_type michael@0: cat >config.log <<_ACEOF michael@0: This file contains any messages produced by compilers while michael@0: running configure, to aid debugging if configure makes a mistake. michael@0: michael@0: It was created by $as_me, which was michael@0: generated by GNU Autoconf 2.68. Invocation command line was michael@0: michael@0: $ $0 $@ michael@0: michael@0: _ACEOF michael@0: exec 5>>config.log michael@0: { michael@0: cat <<_ASUNAME michael@0: ## --------- ## michael@0: ## Platform. ## michael@0: ## --------- ## michael@0: michael@0: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` michael@0: uname -m = `(uname -m) 2>/dev/null || echo unknown` michael@0: uname -r = `(uname -r) 2>/dev/null || echo unknown` michael@0: uname -s = `(uname -s) 2>/dev/null || echo unknown` michael@0: uname -v = `(uname -v) 2>/dev/null || echo unknown` michael@0: michael@0: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` michael@0: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` michael@0: michael@0: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` michael@0: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` michael@0: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` michael@0: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` michael@0: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` michael@0: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` michael@0: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` michael@0: michael@0: _ASUNAME michael@0: michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: $as_echo "PATH: $as_dir" michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: } >&5 michael@0: michael@0: cat >&5 <<_ACEOF michael@0: michael@0: michael@0: ## ----------- ## michael@0: ## Core tests. ## michael@0: ## ----------- ## michael@0: michael@0: _ACEOF michael@0: michael@0: michael@0: # Keep a trace of the command line. michael@0: # Strip out --no-create and --no-recursion so they do not pile up. michael@0: # Strip out --silent because we don't want to record it for future runs. michael@0: # Also quote any args containing shell meta-characters. michael@0: # Make two passes to allow for proper duplicate-argument suppression. michael@0: ac_configure_args= michael@0: ac_configure_args0= michael@0: ac_configure_args1= michael@0: ac_must_keep_next=false michael@0: for ac_pass in 1 2 michael@0: do michael@0: for ac_arg michael@0: do michael@0: case $ac_arg in michael@0: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; michael@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ michael@0: | -silent | --silent | --silen | --sile | --sil) michael@0: continue ;; michael@0: *\'*) michael@0: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; michael@0: esac michael@0: case $ac_pass in michael@0: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; michael@0: 2) michael@0: as_fn_append ac_configure_args1 " '$ac_arg'" michael@0: if test $ac_must_keep_next = true; then michael@0: ac_must_keep_next=false # Got value, back to normal. michael@0: else michael@0: case $ac_arg in michael@0: *=* | --config-cache | -C | -disable-* | --disable-* \ michael@0: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ michael@0: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ michael@0: | -with-* | --with-* | -without-* | --without-* | --x) michael@0: case "$ac_configure_args0 " in michael@0: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; michael@0: esac michael@0: ;; michael@0: -* ) ac_must_keep_next=true ;; michael@0: esac michael@0: fi michael@0: as_fn_append ac_configure_args " '$ac_arg'" michael@0: ;; michael@0: esac michael@0: done michael@0: done michael@0: { ac_configure_args0=; unset ac_configure_args0;} michael@0: { ac_configure_args1=; unset ac_configure_args1;} michael@0: michael@0: # When interrupted or exit'd, cleanup temporary files, and complete michael@0: # config.log. We remove comments because anyway the quotes in there michael@0: # would cause problems or look ugly. michael@0: # WARNING: Use '\'' to represent an apostrophe within the trap. michael@0: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. michael@0: trap 'exit_status=$? michael@0: # Save into config.log some information that might help in debugging. michael@0: { michael@0: echo michael@0: michael@0: $as_echo "## ---------------- ## michael@0: ## Cache variables. ## michael@0: ## ---------------- ##" michael@0: echo michael@0: # The following way of writing the cache mishandles newlines in values, michael@0: ( michael@0: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in #( michael@0: *${as_nl}*) michael@0: case $ac_var in #( michael@0: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 michael@0: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; michael@0: esac michael@0: case $ac_var in #( michael@0: _ | IFS | as_nl) ;; #( michael@0: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( michael@0: *) { eval $ac_var=; unset $ac_var;} ;; michael@0: esac ;; michael@0: esac michael@0: done michael@0: (set) 2>&1 | michael@0: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( michael@0: *${as_nl}ac_space=\ *) michael@0: sed -n \ michael@0: "s/'\''/'\''\\\\'\'''\''/g; michael@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" michael@0: ;; #( michael@0: *) michael@0: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" michael@0: ;; michael@0: esac | michael@0: sort michael@0: ) michael@0: echo michael@0: michael@0: $as_echo "## ----------------- ## michael@0: ## Output variables. ## michael@0: ## ----------------- ##" michael@0: echo michael@0: for ac_var in $ac_subst_vars michael@0: do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in michael@0: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; michael@0: esac michael@0: $as_echo "$ac_var='\''$ac_val'\''" michael@0: done | sort michael@0: echo michael@0: michael@0: if test -n "$ac_subst_files"; then michael@0: $as_echo "## ------------------- ## michael@0: ## File substitutions. ## michael@0: ## ------------------- ##" michael@0: echo michael@0: for ac_var in $ac_subst_files michael@0: do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in michael@0: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; michael@0: esac michael@0: $as_echo "$ac_var='\''$ac_val'\''" michael@0: done | sort michael@0: echo michael@0: fi michael@0: michael@0: if test -s confdefs.h; then michael@0: $as_echo "## ----------- ## michael@0: ## confdefs.h. ## michael@0: ## ----------- ##" michael@0: echo michael@0: cat confdefs.h michael@0: echo michael@0: fi michael@0: test "$ac_signal" != 0 && michael@0: $as_echo "$as_me: caught signal $ac_signal" michael@0: $as_echo "$as_me: exit $exit_status" michael@0: } >&5 michael@0: rm -f core *.core core.conftest.* && michael@0: rm -f -r conftest* confdefs* conf$$* $ac_clean_files && michael@0: exit $exit_status michael@0: ' 0 michael@0: for ac_signal in 1 2 13 15; do michael@0: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal michael@0: done michael@0: ac_signal=0 michael@0: michael@0: # confdefs.h avoids OS command line length limits that DEFS can exceed. michael@0: rm -f -r conftest* confdefs.h michael@0: michael@0: $as_echo "/* confdefs.h */" > confdefs.h michael@0: michael@0: # Predefined preprocessor variables. michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_NAME "$PACKAGE_NAME" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_TARNAME "$PACKAGE_TARNAME" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_VERSION "$PACKAGE_VERSION" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_STRING "$PACKAGE_STRING" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" michael@0: _ACEOF michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define PACKAGE_URL "$PACKAGE_URL" michael@0: _ACEOF michael@0: michael@0: michael@0: # Let the site file select an alternate cache file if it wants to. michael@0: # Prefer an explicitly selected file to automatically selected ones. michael@0: ac_site_file1=NONE michael@0: ac_site_file2=NONE michael@0: if test -n "$CONFIG_SITE"; then michael@0: # We do not want a PATH search for config.site. michael@0: case $CONFIG_SITE in #(( michael@0: -*) ac_site_file1=./$CONFIG_SITE;; michael@0: */*) ac_site_file1=$CONFIG_SITE;; michael@0: *) ac_site_file1=./$CONFIG_SITE;; michael@0: esac michael@0: elif test "x$prefix" != xNONE; then michael@0: ac_site_file1=$prefix/share/config.site michael@0: ac_site_file2=$prefix/etc/config.site michael@0: else michael@0: ac_site_file1=$ac_default_prefix/share/config.site michael@0: ac_site_file2=$ac_default_prefix/etc/config.site michael@0: fi michael@0: for ac_site_file in "$ac_site_file1" "$ac_site_file2" michael@0: do michael@0: test "x$ac_site_file" = xNONE && continue michael@0: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 michael@0: $as_echo "$as_me: loading site script $ac_site_file" >&6;} michael@0: sed 's/^/| /' "$ac_site_file" >&5 michael@0: . "$ac_site_file" \ michael@0: || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "failed to load site script $ac_site_file michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: fi michael@0: done michael@0: michael@0: if test -r "$cache_file"; then michael@0: # Some versions of bash will fail to source /dev/null (special files michael@0: # actually), so we avoid doing that. DJGPP emulates it as a regular file. michael@0: if test /dev/null != "$cache_file" && test -f "$cache_file"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 michael@0: $as_echo "$as_me: loading cache $cache_file" >&6;} michael@0: case $cache_file in michael@0: [\\/]* | ?:[\\/]* ) . "$cache_file";; michael@0: *) . "./$cache_file";; michael@0: esac michael@0: fi michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 michael@0: $as_echo "$as_me: creating cache $cache_file" >&6;} michael@0: >$cache_file michael@0: fi michael@0: michael@0: # Check that the precious variables saved in the cache have kept the same michael@0: # value. michael@0: ac_cache_corrupted=false michael@0: for ac_var in $ac_precious_vars; do michael@0: eval ac_old_set=\$ac_cv_env_${ac_var}_set michael@0: eval ac_new_set=\$ac_env_${ac_var}_set michael@0: eval ac_old_val=\$ac_cv_env_${ac_var}_value michael@0: eval ac_new_val=\$ac_env_${ac_var}_value michael@0: case $ac_old_set,$ac_new_set in michael@0: set,) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 michael@0: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} michael@0: ac_cache_corrupted=: ;; michael@0: ,set) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 michael@0: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} michael@0: ac_cache_corrupted=: ;; michael@0: ,);; michael@0: *) michael@0: if test "x$ac_old_val" != "x$ac_new_val"; then michael@0: # differences in whitespace do not lead to failure. michael@0: ac_old_val_w=`echo x $ac_old_val` michael@0: ac_new_val_w=`echo x $ac_new_val` michael@0: if test "$ac_old_val_w" != "$ac_new_val_w"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 michael@0: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} michael@0: ac_cache_corrupted=: michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 michael@0: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} michael@0: eval $ac_var=\$ac_old_val michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 michael@0: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 michael@0: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} michael@0: fi;; michael@0: esac michael@0: # Pass precious variables to config.status. michael@0: if test "$ac_new_set" = set; then michael@0: case $ac_new_val in michael@0: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; michael@0: *) ac_arg=$ac_var=$ac_new_val ;; michael@0: esac michael@0: case " $ac_configure_args " in michael@0: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. michael@0: *) as_fn_append ac_configure_args " '$ac_arg'" ;; michael@0: esac michael@0: fi michael@0: done michael@0: if $ac_cache_corrupted; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 michael@0: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} michael@0: as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 michael@0: fi michael@0: ## -------------------- ## michael@0: ## Main body of script. ## michael@0: ## -------------------- ## michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: michael@0: michael@0: #TODO: IcuBug:8502 michael@0: #AC_INIT([ICU], michael@0: # m4_esyscmd_s([sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "./common/unicode/uvernum.h]"), michael@0: # [http://icu-project.org/bugs], michael@0: # [International Components for Unicode], michael@0: # [http://icu-project.org]) michael@0: michael@0: michael@0: michael@0: PACKAGE="icu" michael@0: michael@0: michael@0: # Use custom echo test for newline option michael@0: # Current autoconf (2.65) gives incorrect echo newline option michael@0: # for icu-config michael@0: # This may be removed later - mow (June 17, 2010) michael@0: ICU_ECHO_C= ICU_ECHO_N= ICU_ECHO_T= michael@0: case `/bin/sh -c "echo -n x"` in michael@0: -n*) michael@0: case `/bin/sh -c "echo 'x\c'"` in michael@0: *c*) ICU_ECHO_T=' ';; # ECHO_T is single tab character. michael@0: *) ICU_ECHO_C='\c';; michael@0: esac;; michael@0: *) michael@0: ICU_ECHO_N='-n';; michael@0: esac michael@0: michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICU version numbers" >&5 michael@0: $as_echo_n "checking for ICU version numbers... " >&6; } michael@0: michael@0: # Get the ICU version from uversion.h or other headers michael@0: geticuversion() { michael@0: sed -n 's/^[ ]*#[ ]*define[ ]*U_ICU_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" michael@0: } michael@0: getuversion() { michael@0: sed -n 's/^[ ]*#[ ]*define[ ]*U_UNICODE_VERSION[ ]*"\([^"]*\)".*/\1/p' "$@" michael@0: } michael@0: VERSION=`geticuversion $srcdir/common/unicode/uvernum.h` michael@0: if test x"$VERSION" = x; then michael@0: as_fn_error $? "Cannot determine ICU version number from uvernum.h header file" "$LINENO" 5 michael@0: fi michael@0: michael@0: #TODO: IcuBug:8502 michael@0: #if test "$VERSION" != "$PACKAGE_VERSION"; then michael@0: # AC_MSG_ERROR([configure was generated for $PACKAGE_VERSION but uvernum.h has $VERSION - please rerun autoconf]) michael@0: #fi michael@0: michael@0: UNICODE_VERSION=`getuversion $srcdir/common/unicode/uchar.h` michael@0: if test x"$UNICODE_VERSION" = x; then michael@0: as_fn_error $? "Cannot determine Unicode version number from uchar.h header file" "$LINENO" 5 michael@0: fi michael@0: # Compute a reasonable library version from the release version. This is michael@0: # very bad, but that's wanted... We want to make sure that the LIB_VERSION michael@0: # has at least a dot in it, so we'll add a .0 if needed. michael@0: #[LIB_VERSION=`echo $VERSION | sed -e 's/\.//' -e 's/^\([^.]*\)$/\1.0/'`] michael@0: LIB_VERSION=$VERSION michael@0: LIB_VERSION_MAJOR=`echo $LIB_VERSION | sed 's/\..*//'` michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&5 michael@0: $as_echo "release $VERSION, library $LIB_VERSION, unicode version $UNICODE_VERSION" >&6; } michael@0: michael@0: michael@0: michael@0: # Determine the host system michael@0: ac_aux_dir= michael@0: for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do michael@0: if test -f "$ac_dir/install-sh"; then michael@0: ac_aux_dir=$ac_dir michael@0: ac_install_sh="$ac_aux_dir/install-sh -c" michael@0: break michael@0: elif test -f "$ac_dir/install.sh"; then michael@0: ac_aux_dir=$ac_dir michael@0: ac_install_sh="$ac_aux_dir/install.sh -c" michael@0: break michael@0: elif test -f "$ac_dir/shtool"; then michael@0: ac_aux_dir=$ac_dir michael@0: ac_install_sh="$ac_aux_dir/shtool install -c" michael@0: break michael@0: fi michael@0: done michael@0: if test -z "$ac_aux_dir"; then michael@0: as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 michael@0: fi michael@0: michael@0: # These three variables are undocumented and unsupported, michael@0: # and are intended to be withdrawn in a future Autoconf release. michael@0: # They can cause serious problems if a builder's source tree is in a directory michael@0: # whose full name contains unusual characters. michael@0: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. michael@0: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. michael@0: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. michael@0: michael@0: michael@0: # Make sure we can run config.sub. michael@0: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || michael@0: as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 michael@0: $as_echo_n "checking build system type... " >&6; } michael@0: if ${ac_cv_build+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_build_alias=$build_alias michael@0: test "x$ac_build_alias" = x && michael@0: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` michael@0: test "x$ac_build_alias" = x && michael@0: as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 michael@0: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || michael@0: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 michael@0: $as_echo "$ac_cv_build" >&6; } michael@0: case $ac_cv_build in michael@0: *-*-*) ;; michael@0: *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; michael@0: esac michael@0: build=$ac_cv_build michael@0: ac_save_IFS=$IFS; IFS='-' michael@0: set x $ac_cv_build michael@0: shift michael@0: build_cpu=$1 michael@0: build_vendor=$2 michael@0: shift; shift michael@0: # Remember, the first character of IFS is used to create $*, michael@0: # except with old shells: michael@0: build_os=$* michael@0: IFS=$ac_save_IFS michael@0: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 michael@0: $as_echo_n "checking host system type... " >&6; } michael@0: if ${ac_cv_host+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test "x$host_alias" = x; then michael@0: ac_cv_host=$ac_cv_build michael@0: else michael@0: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || michael@0: as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 michael@0: $as_echo "$ac_cv_host" >&6; } michael@0: case $ac_cv_host in michael@0: *-*-*) ;; michael@0: *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; michael@0: esac michael@0: host=$ac_cv_host michael@0: ac_save_IFS=$IFS; IFS='-' michael@0: set x $ac_cv_host michael@0: shift michael@0: host_cpu=$1 michael@0: host_vendor=$2 michael@0: shift; shift michael@0: # Remember, the first character of IFS is used to create $*, michael@0: # except with old shells: michael@0: host_os=$* michael@0: IFS=$ac_save_IFS michael@0: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # This variable is needed on z/OS because the C++ compiler only recognizes .C michael@0: _CXX_CXXSUFFIX=cpp michael@0: export _CXX_CXXSUFFIX michael@0: michael@0: # Accumulate #defines michael@0: michael@0: # CONFIG_CPPFLAGS: These are defines that are set for ICU Build time only. michael@0: # They are only needed for building ICU itself. Example: platform stuff michael@0: CONFIG_CPPFLAGS="" michael@0: # UCONFIG_CPPFLAGS: These are defines which are set for ICU build time, michael@0: # and also a notice is output that they need to be set michael@0: # for end-users of ICU also. uconfig.h.prepend is generated michael@0: # with, for example, "#define U_DISABLE_RENAMING 1" michael@0: # Example: ICU configuration stuff michael@0: UCONFIG_CPPFLAGS="" michael@0: # UCONFIG_CFLAGS: contains a copy of anything that needs to be set by end users michael@0: # such as -std michael@0: UCONFIG_CFLAGS="" michael@0: michael@0: # Check whether to build debug libraries michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build debug libraries" >&5 michael@0: $as_echo_n "checking whether to build debug libraries... " >&6; } michael@0: enabled=no michael@0: ENABLE_DEBUG=0 michael@0: # Check whether --enable-debug was given. michael@0: if test "${enable_debug+set}" = set; then : michael@0: enableval=$enable_debug; case "${enableval}" in michael@0: yes|"") enabled=yes; ENABLE_DEBUG=1; CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEBUG=1" ;; michael@0: *) ;; michael@0: esac michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 michael@0: $as_echo "$enabled" >&6; } michael@0: michael@0: michael@0: # Check whether to build release libraries michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build release libraries" >&5 michael@0: $as_echo_n "checking whether to build release libraries... " >&6; } michael@0: enabled=yes michael@0: ENABLE_RELEASE=1 michael@0: # Check whether --enable-release was given. michael@0: if test "${enable_release+set}" = set; then : michael@0: enableval=$enable_release; case "${enableval}" in michael@0: no) enabled=no; ENABLE_RELEASE=0 ;; michael@0: *) ;; michael@0: esac michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 michael@0: $as_echo "$enabled" >&6; } michael@0: michael@0: michael@0: # Don't use the default C/CXXFLags michael@0: : ${CFLAGS=""} michael@0: : ${CXXFLAGS=""} michael@0: michael@0: # Checks for compilers michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: if test -n "$ac_tool_prefix"; then michael@0: for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc michael@0: do michael@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CC"; then michael@0: ac_cv_prog_CC="$CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_CC="$ac_tool_prefix$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CC=$ac_cv_prog_CC michael@0: if test -n "$CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 michael@0: $as_echo "$CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CC" && break michael@0: done michael@0: fi michael@0: if test -z "$CC"; then michael@0: ac_ct_CC=$CC michael@0: for ac_prog in clang gcc cc c99 c89 xlc_r xlc cl.exe icc michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_ac_ct_CC+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_CC"; then michael@0: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_CC="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_CC=$ac_cv_prog_ac_ct_CC michael@0: if test -n "$ac_ct_CC"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 michael@0: $as_echo "$ac_ct_CC" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$ac_ct_CC" && break michael@0: done michael@0: michael@0: if test "x$ac_ct_CC" = x; then michael@0: CC="" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: CC=$ac_ct_CC michael@0: fi michael@0: fi michael@0: michael@0: michael@0: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "no acceptable C compiler found in \$PATH michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: michael@0: # Provide some information about the compiler. michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 michael@0: set X $ac_compile michael@0: ac_compiler=$2 michael@0: for ac_option in --version -v -V -qversion; do michael@0: { { ac_try="$ac_compiler $ac_option >&5" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compiler $ac_option >&5") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: sed '10a\ michael@0: ... rest of stderr output deleted ... michael@0: 10q' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: fi michael@0: rm -f conftest.er1 conftest.err michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: done michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: ac_clean_files_save=$ac_clean_files michael@0: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" michael@0: # Try to create an executable without -o first, disregard a.out. michael@0: # It will help us diagnose broken compilers, and finding out an intuition michael@0: # of exeext. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 michael@0: $as_echo_n "checking whether the C compiler works... " >&6; } michael@0: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` michael@0: michael@0: # The possible output files: michael@0: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" michael@0: michael@0: ac_rmfiles= michael@0: for ac_file in $ac_files michael@0: do michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; michael@0: * ) ac_rmfiles="$ac_rmfiles $ac_file";; michael@0: esac michael@0: done michael@0: rm -f $ac_rmfiles michael@0: michael@0: if { { ac_try="$ac_link_default" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link_default") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then : michael@0: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. michael@0: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' michael@0: # in a Makefile. We should not override ac_cv_exeext if it was cached, michael@0: # so that the user can short-circuit this test for compilers unknown to michael@0: # Autoconf. michael@0: for ac_file in $ac_files '' michael@0: do michael@0: test -f "$ac_file" || continue michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) michael@0: ;; michael@0: [ab].out ) michael@0: # We found the default executable, but exeext='' is most michael@0: # certainly right. michael@0: break;; michael@0: *.* ) michael@0: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; michael@0: then :; else michael@0: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` michael@0: fi michael@0: # We set ac_cv_exeext here because the later test for it is not michael@0: # safe: cross compilers may not add the suffix if given an `-o' michael@0: # argument, so we may need to know it at that point already. michael@0: # Even if this section looks crufty: it has the advantage of michael@0: # actually working. michael@0: break;; michael@0: * ) michael@0: break;; michael@0: esac michael@0: done michael@0: test "$ac_cv_exeext" = no && ac_cv_exeext= michael@0: michael@0: else michael@0: ac_file='' michael@0: fi michael@0: if test -z "$ac_file"; then : michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error 77 "C compiler cannot create executables michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 michael@0: $as_echo "yes" >&6; } michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 michael@0: $as_echo_n "checking for C compiler default output file name... " >&6; } michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 michael@0: $as_echo "$ac_file" >&6; } michael@0: ac_exeext=$ac_cv_exeext michael@0: michael@0: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out michael@0: ac_clean_files=$ac_clean_files_save michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 michael@0: $as_echo_n "checking for suffix of executables... " >&6; } michael@0: if { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then : michael@0: # If both `conftest.exe' and `conftest' are `present' (well, observable) michael@0: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will michael@0: # work properly (i.e., refer to `conftest.exe'), while it won't with michael@0: # `rm'. michael@0: for ac_file in conftest.exe conftest conftest.*; do michael@0: test -f "$ac_file" || continue michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; michael@0: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` michael@0: break;; michael@0: * ) break;; michael@0: esac michael@0: done michael@0: else michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "cannot compute suffix of executables: cannot compile and link michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: fi michael@0: rm -f conftest conftest$ac_cv_exeext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 michael@0: $as_echo "$ac_cv_exeext" >&6; } michael@0: michael@0: rm -f conftest.$ac_ext michael@0: EXEEXT=$ac_cv_exeext michael@0: ac_exeext=$EXEEXT michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: FILE *f = fopen ("conftest.out", "w"); michael@0: return ferror (f) || fclose (f) != 0; michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: ac_clean_files="$ac_clean_files conftest.out" michael@0: # Check that the compiler produces executables we can run. If not, either michael@0: # the compiler is broken, or we cross compile. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 michael@0: $as_echo_n "checking whether we are cross compiling... " >&6; } michael@0: if test "$cross_compiling" != yes; then michael@0: { { ac_try="$ac_link" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_link") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: if { ac_try='./conftest$ac_cv_exeext' michael@0: { { case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_try") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; }; then michael@0: cross_compiling=no michael@0: else michael@0: if test "$cross_compiling" = maybe; then michael@0: cross_compiling=yes michael@0: else michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "cannot run C compiled programs. michael@0: If you meant to cross compile, use \`--host'. michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: fi michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 michael@0: $as_echo "$cross_compiling" >&6; } michael@0: michael@0: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out michael@0: ac_clean_files=$ac_clean_files_save michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 michael@0: $as_echo_n "checking for suffix of object files... " >&6; } michael@0: if ${ac_cv_objext+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: rm -f conftest.o conftest.obj michael@0: if { { ac_try="$ac_compile" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compile") 2>&5 michael@0: ac_status=$? michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; }; then : michael@0: for ac_file in conftest.o conftest.obj conftest.*; do michael@0: test -f "$ac_file" || continue; michael@0: case $ac_file in michael@0: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; michael@0: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` michael@0: break;; michael@0: esac michael@0: done michael@0: else michael@0: $as_echo "$as_me: failed program was:" >&5 michael@0: sed 's/^/| /' conftest.$ac_ext >&5 michael@0: michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "cannot compute suffix of object files: cannot compile michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: fi michael@0: rm -f conftest.$ac_cv_objext conftest.$ac_ext michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 michael@0: $as_echo "$ac_cv_objext" >&6; } michael@0: OBJEXT=$ac_cv_objext michael@0: ac_objext=$OBJEXT michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 michael@0: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } michael@0: if ${ac_cv_c_compiler_gnu+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #ifndef __GNUC__ michael@0: choke me michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_compiler_gnu=yes michael@0: else michael@0: ac_compiler_gnu=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cv_c_compiler_gnu=$ac_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 michael@0: $as_echo "$ac_cv_c_compiler_gnu" >&6; } michael@0: if test $ac_compiler_gnu = yes; then michael@0: GCC=yes michael@0: else michael@0: GCC= michael@0: fi michael@0: ac_test_CFLAGS=${CFLAGS+set} michael@0: ac_save_CFLAGS=$CFLAGS michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 michael@0: $as_echo_n "checking whether $CC accepts -g... " >&6; } michael@0: if ${ac_cv_prog_cc_g+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_save_c_werror_flag=$ac_c_werror_flag michael@0: ac_c_werror_flag=yes michael@0: ac_cv_prog_cc_g=no michael@0: CFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cc_g=yes michael@0: else michael@0: CFLAGS="" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: ac_c_werror_flag=$ac_save_c_werror_flag michael@0: CFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cc_g=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_c_werror_flag=$ac_save_c_werror_flag michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 michael@0: $as_echo "$ac_cv_prog_cc_g" >&6; } michael@0: if test "$ac_test_CFLAGS" = set; then michael@0: CFLAGS=$ac_save_CFLAGS michael@0: elif test $ac_cv_prog_cc_g = yes; then michael@0: if test "$GCC" = yes; then michael@0: CFLAGS="-g -O2" michael@0: else michael@0: CFLAGS="-g" michael@0: fi michael@0: else michael@0: if test "$GCC" = yes; then michael@0: CFLAGS="-O2" michael@0: else michael@0: CFLAGS= michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 michael@0: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } michael@0: if ${ac_cv_prog_cc_c89+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_cv_prog_cc_c89=no michael@0: ac_save_CC=$CC michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ michael@0: struct buf { int x; }; michael@0: FILE * (*rcsopen) (struct buf *, struct stat *, int); michael@0: static char *e (p, i) michael@0: char **p; michael@0: int i; michael@0: { michael@0: return p[i]; michael@0: } michael@0: static char *f (char * (*g) (char **, int), char **p, ...) michael@0: { michael@0: char *s; michael@0: va_list v; michael@0: va_start (v,p); michael@0: s = g (p, va_arg (v,int)); michael@0: va_end (v); michael@0: return s; michael@0: } michael@0: michael@0: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has michael@0: function prototypes and stuff, but not '\xHH' hex character constants. michael@0: These don't provoke an error unfortunately, instead are silently treated michael@0: as 'x'. The following induces an error, until -std is added to get michael@0: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an michael@0: array size at least. It's necessary to write '\x00'==0 to get something michael@0: that's true only with -std. */ michael@0: int osf4_cc_array ['\x00' == 0 ? 1 : -1]; michael@0: michael@0: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters michael@0: inside strings and character constants. */ michael@0: #define FOO(x) 'x' michael@0: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; michael@0: michael@0: int test (int i, double x); michael@0: struct s1 {int (*f) (int a);}; michael@0: struct s2 {int (*f) (double a);}; michael@0: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); michael@0: int argc; michael@0: char **argv; michael@0: int michael@0: main () michael@0: { michael@0: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ michael@0: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" michael@0: do michael@0: CC="$ac_save_CC $ac_arg" michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cc_c89=$ac_arg michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext michael@0: test "x$ac_cv_prog_cc_c89" != "xno" && break michael@0: done michael@0: rm -f conftest.$ac_ext michael@0: CC=$ac_save_CC michael@0: michael@0: fi michael@0: # AC_CACHE_VAL michael@0: case "x$ac_cv_prog_cc_c89" in michael@0: x) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 michael@0: $as_echo "none needed" >&6; } ;; michael@0: xno) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 michael@0: $as_echo "unsupported" >&6; } ;; michael@0: *) michael@0: CC="$CC $ac_cv_prog_cc_c89" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 michael@0: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; michael@0: esac michael@0: if test "x$ac_cv_prog_cc_c89" != xno; then : michael@0: michael@0: fi michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: # Make sure that we try clang++ first, which provides C++11 support. michael@0: # The g++ compiler is less likely to support C++11. michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: if test -z "$CXX"; then michael@0: if test -n "$CCC"; then michael@0: CXX=$CCC michael@0: else michael@0: if test -n "$ac_tool_prefix"; then michael@0: for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC michael@0: do michael@0: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_tool_prefix$ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_CXX+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$CXX"; then michael@0: ac_cv_prog_CXX="$CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: CXX=$ac_cv_prog_CXX michael@0: if test -n "$CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 michael@0: $as_echo "$CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$CXX" && break michael@0: done michael@0: fi michael@0: if test -z "$CXX"; then michael@0: ac_ct_CXX=$CXX michael@0: for ac_prog in clang++ g++ c++ gpp xlC_r xlC aCC CC cxx cc++ cl.exe icc FCC KCC RCC michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_ac_ct_CXX+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_CXX"; then michael@0: ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_CXX="$ac_prog" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_CXX=$ac_cv_prog_ac_ct_CXX michael@0: if test -n "$ac_ct_CXX"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 michael@0: $as_echo "$ac_ct_CXX" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$ac_ct_CXX" && break michael@0: done michael@0: michael@0: if test "x$ac_ct_CXX" = x; then michael@0: CXX="g++" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: CXX=$ac_ct_CXX michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: # Provide some information about the compiler. michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 michael@0: set X $ac_compile michael@0: ac_compiler=$2 michael@0: for ac_option in --version -v -V -qversion; do michael@0: { { ac_try="$ac_compiler $ac_option >&5" michael@0: case "(($ac_try" in michael@0: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; michael@0: *) ac_try_echo=$ac_try;; michael@0: esac michael@0: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" michael@0: $as_echo "$ac_try_echo"; } >&5 michael@0: (eval "$ac_compiler $ac_option >&5") 2>conftest.err michael@0: ac_status=$? michael@0: if test -s conftest.err; then michael@0: sed '10a\ michael@0: ... rest of stderr output deleted ... michael@0: 10q' conftest.err >conftest.er1 michael@0: cat conftest.er1 >&5 michael@0: fi michael@0: rm -f conftest.er1 conftest.err michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 michael@0: test $ac_status = 0; } michael@0: done michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 michael@0: $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } michael@0: if ${ac_cv_cxx_compiler_gnu+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #ifndef __GNUC__ michael@0: choke me michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_compiler_gnu=yes michael@0: else michael@0: ac_compiler_gnu=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cv_cxx_compiler_gnu=$ac_compiler_gnu michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 michael@0: $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } michael@0: if test $ac_compiler_gnu = yes; then michael@0: GXX=yes michael@0: else michael@0: GXX= michael@0: fi michael@0: ac_test_CXXFLAGS=${CXXFLAGS+set} michael@0: ac_save_CXXFLAGS=$CXXFLAGS michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 michael@0: $as_echo_n "checking whether $CXX accepts -g... " >&6; } michael@0: if ${ac_cv_prog_cxx_g+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_save_cxx_werror_flag=$ac_cxx_werror_flag michael@0: ac_cxx_werror_flag=yes michael@0: ac_cv_prog_cxx_g=no michael@0: CXXFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cxx_g=yes michael@0: else michael@0: CXXFLAGS="" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: michael@0: else michael@0: ac_cxx_werror_flag=$ac_save_cxx_werror_flag michael@0: CXXFLAGS="-g" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_prog_cxx_g=yes michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_cxx_werror_flag=$ac_save_cxx_werror_flag michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 michael@0: $as_echo "$ac_cv_prog_cxx_g" >&6; } michael@0: if test "$ac_test_CXXFLAGS" = set; then michael@0: CXXFLAGS=$ac_save_CXXFLAGS michael@0: elif test $ac_cv_prog_cxx_g = yes; then michael@0: if test "$GXX" = yes; then michael@0: CXXFLAGS="-g -O2" michael@0: else michael@0: CXXFLAGS="-g" michael@0: fi michael@0: else michael@0: if test "$GXX" = yes; then michael@0: CXXFLAGS="-O2" michael@0: else michael@0: CXXFLAGS= michael@0: fi michael@0: fi michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: michael@0: # Ensure that if CXXFLAGS/CFLAGS were not set when calling configure, set it correctly based on (enable/disable) debug or release option michael@0: # The release mode use is the default one for autoconf michael@0: if test "$GCC" = yes; then michael@0: if test "$CFLAGS" = ""; then michael@0: if test "$ENABLE_DEBUG" = 1; then michael@0: CFLAGS=-g michael@0: fi michael@0: if test "$ENABLE_RELEASE" = 1; then michael@0: CFLAGS="$CFLAGS -O2" michael@0: fi michael@0: fi michael@0: if test "$CXXFLAGS" = ""; then michael@0: if test "$ENABLE_DEBUG" = 1; then michael@0: CXXFLAGS=-g michael@0: fi michael@0: if test "$ENABLE_RELEASE" = 1; then michael@0: CXXFLAGS="$CXXFLAGS -O2" michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 michael@0: $as_echo_n "checking how to run the C preprocessor... " >&6; } michael@0: # On Suns, sometimes $CPP names a directory. michael@0: if test -n "$CPP" && test -d "$CPP"; then michael@0: CPP= michael@0: fi michael@0: if test -z "$CPP"; then michael@0: if ${ac_cv_prog_CPP+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: # Double quotes because CPP needs to be expanded michael@0: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" michael@0: do michael@0: ac_preproc_ok=false michael@0: for ac_c_preproc_warn_flag in '' yes michael@0: do michael@0: # Use a header file that comes with gcc, so configuring glibc michael@0: # with a fresh cross-compiler works. michael@0: # Prefer to if __STDC__ is defined, since michael@0: # exists even on freestanding compilers. michael@0: # On the NeXT, cc -E runs the code through the compiler's parser, michael@0: # not just through cpp. "Syntax error" is here to catch this case. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: Syntax error michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: michael@0: else michael@0: # Broken: fails on valid input. michael@0: continue michael@0: fi michael@0: rm -f conftest.err conftest.i conftest.$ac_ext michael@0: michael@0: # OK, works on sane cases. Now check whether nonexistent headers michael@0: # can be detected and how. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: # Broken: success on invalid input. michael@0: continue michael@0: else michael@0: # Passes both tests. michael@0: ac_preproc_ok=: michael@0: break michael@0: fi michael@0: rm -f conftest.err conftest.i conftest.$ac_ext michael@0: michael@0: done michael@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. michael@0: rm -f conftest.i conftest.err conftest.$ac_ext michael@0: if $ac_preproc_ok; then : michael@0: break michael@0: fi michael@0: michael@0: done michael@0: ac_cv_prog_CPP=$CPP michael@0: michael@0: fi michael@0: CPP=$ac_cv_prog_CPP michael@0: else michael@0: ac_cv_prog_CPP=$CPP michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 michael@0: $as_echo "$CPP" >&6; } michael@0: ac_preproc_ok=false michael@0: for ac_c_preproc_warn_flag in '' yes michael@0: do michael@0: # Use a header file that comes with gcc, so configuring glibc michael@0: # with a fresh cross-compiler works. michael@0: # Prefer to if __STDC__ is defined, since michael@0: # exists even on freestanding compilers. michael@0: # On the NeXT, cc -E runs the code through the compiler's parser, michael@0: # not just through cpp. "Syntax error" is here to catch this case. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifdef __STDC__ michael@0: # include michael@0: #else michael@0: # include michael@0: #endif michael@0: Syntax error michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: michael@0: else michael@0: # Broken: fails on valid input. michael@0: continue michael@0: fi michael@0: rm -f conftest.err conftest.i conftest.$ac_ext michael@0: michael@0: # OK, works on sane cases. Now check whether nonexistent headers michael@0: # can be detected and how. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: _ACEOF michael@0: if ac_fn_c_try_cpp "$LINENO"; then : michael@0: # Broken: success on invalid input. michael@0: continue michael@0: else michael@0: # Passes both tests. michael@0: ac_preproc_ok=: michael@0: break michael@0: fi michael@0: rm -f conftest.err conftest.i conftest.$ac_ext michael@0: michael@0: done michael@0: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. michael@0: rm -f conftest.i conftest.err conftest.$ac_ext michael@0: if $ac_preproc_ok; then : michael@0: michael@0: else michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error $? "C preprocessor \"$CPP\" fails sanity check michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: fi michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: michael@0: # Find a good install program. We prefer a C program (faster), michael@0: # so one script is as good as another. But avoid the broken or michael@0: # incompatible versions: michael@0: # SysV /etc/install, /usr/sbin/install michael@0: # SunOS /usr/etc/install michael@0: # IRIX /sbin/install michael@0: # AIX /bin/install michael@0: # AmigaOS /C/install, which installs bootblocks on floppy discs michael@0: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag michael@0: # AFS /usr/afsws/bin/install, which mishandles nonexistent args michael@0: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" michael@0: # OS/2's system install, which has a completely different semantic michael@0: # ./install, which can be erroneously created by make from ./install.sh. michael@0: # Reject install programs that cannot install multiple files. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 michael@0: $as_echo_n "checking for a BSD-compatible install... " >&6; } michael@0: if test -z "$INSTALL"; then michael@0: if ${ac_cv_path_install+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: # Account for people who put trailing slashes in PATH elements. michael@0: case $as_dir/ in #(( michael@0: ./ | .// | /[cC]/* | \ michael@0: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ michael@0: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ michael@0: /usr/ucb/* ) ;; michael@0: *) michael@0: # OSF1 and SCO ODT 3.0 have their own names for install. michael@0: # Don't use installbsd from OSF since it installs stuff as root michael@0: # by default. michael@0: for ac_prog in ginstall scoinst install; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then michael@0: if test $ac_prog = install && michael@0: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then michael@0: # AIX install. It has an incompatible calling convention. michael@0: : michael@0: elif test $ac_prog = install && michael@0: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then michael@0: # program-specific install script used by HP pwplus--don't use. michael@0: : michael@0: else michael@0: rm -rf conftest.one conftest.two conftest.dir michael@0: echo one > conftest.one michael@0: echo two > conftest.two michael@0: mkdir conftest.dir michael@0: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && michael@0: test -s conftest.one && test -s conftest.two && michael@0: test -s conftest.dir/conftest.one && michael@0: test -s conftest.dir/conftest.two michael@0: then michael@0: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" michael@0: break 3 michael@0: fi michael@0: fi michael@0: fi michael@0: done michael@0: done michael@0: ;; michael@0: esac michael@0: michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: rm -rf conftest.one conftest.two conftest.dir michael@0: michael@0: fi michael@0: if test "${ac_cv_path_install+set}" = set; then michael@0: INSTALL=$ac_cv_path_install michael@0: else michael@0: # As a last resort, use the slow shell script. Don't cache a michael@0: # value for INSTALL within a source directory, because that will michael@0: # break other packages using the cache if that directory is michael@0: # removed, or if the value is a relative name. michael@0: INSTALL=$ac_install_sh michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 michael@0: $as_echo "$INSTALL" >&6; } michael@0: michael@0: # Use test -z because SunOS4 sh mishandles braces in ${var-val}. michael@0: # It thinks the first close brace ends the variable substitution. michael@0: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' michael@0: michael@0: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' michael@0: michael@0: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' michael@0: michael@0: michael@0: michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: michael@0: # make sure install is relative to srcdir - if a script michael@0: if test "$srcdir" = "."; then michael@0: # If srcdir isn't just ., then (srcdir) is already prepended. michael@0: if test "${ac_install_sh}" = "${INSTALL}"; then michael@0: INSTALL="\\\$(top_srcdir)/${ac_install_sh}" michael@0: fi michael@0: fi michael@0: michael@0: #AC_CHECK_PROG(AUTOCONF, autoconf, autoconf, true) michael@0: #AC_CHECK_PROG(STRIP, strip, strip, true) michael@0: michael@0: # Check for the platform make michael@0: for ac_prog in gmake gnumake michael@0: do michael@0: # Extract the first word of "$ac_prog", so it can be a program name with args. michael@0: set dummy $ac_prog; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_path_U_MAKE+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $U_MAKE in michael@0: [\\/]* | ?:[\\/]*) michael@0: ac_cv_path_U_MAKE="$U_MAKE" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_path_U_MAKE="$as_dir/$ac_word$ac_exec_ext" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: fi michael@0: U_MAKE=$ac_cv_path_U_MAKE michael@0: if test -n "$U_MAKE"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $U_MAKE" >&5 michael@0: $as_echo "$U_MAKE" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: test -n "$U_MAKE" && break michael@0: done michael@0: test -n "$U_MAKE" || U_MAKE="make" michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: # Check whether --with-cross-build was given. michael@0: if test "${with_cross_build+set}" = set; then : michael@0: withval=$with_cross_build; cross_buildroot="${withval}" michael@0: else michael@0: cross_buildroot="" michael@0: fi michael@0: michael@0: michael@0: if test "X$cross_buildroot" = "X"; then michael@0: if test "$cross_compiling" = "yes"; then michael@0: 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 michael@0: fi michael@0: else michael@0: if test -f "${cross_buildroot}/config/icucross.mk"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using cross buildroot: $cross_buildroot" >&5 michael@0: $as_echo "Using cross buildroot: $cross_buildroot" >&6; } michael@0: else michael@0: if test -d "${cross_buildroot}"; then michael@0: as_fn_error $? "${cross_buildroot}/config/icucross.mk not found. Please build ICU in ${cross_buildroot} first." "$LINENO" 5 michael@0: else michael@0: as_fn_error $? "No such directory ${cross_buildroot} supplied as the argument to --with-cross-build. Use an absolute path." "$LINENO" 5 michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check for doxygen to generate documentation michael@0: # Extract the first word of "doxygen", so it can be a program name with args. michael@0: set dummy doxygen; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_path_DOXYGEN+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: case $DOXYGEN in michael@0: [\\/]* | ?:[\\/]*) michael@0: ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path. michael@0: ;; michael@0: *) michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: as_dummy="$PATH:/usr/local/bin:/usr/bin" michael@0: for as_dir in $as_dummy michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: fi michael@0: DOXYGEN=$ac_cv_path_DOXYGEN michael@0: if test -n "$DOXYGEN"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5 michael@0: $as_echo "$DOXYGEN" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check that the linker is usable michael@0: michael@0: case "${host}" in michael@0: *-*-cygwin*|*-*-mingw*) michael@0: if test "$GCC" != yes && test -n "`link --version 2>&1 | grep 'GNU coreutils'`"; then michael@0: as_fn_error $? "link.exe is not a valid linker. Your PATH is incorrect. michael@0: Please follow the directions in ICU's readme." "$LINENO" 5 michael@0: fi;; michael@0: *);; michael@0: esac michael@0: michael@0: # Determine the executable suffix michael@0: # We don't use AC_EXEEXT because some compilers output separate debugging michael@0: # files, which confuses the AC_EXEEXT macro. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for executable suffix" >&5 michael@0: $as_echo_n "checking checking for executable suffix... " >&6; } michael@0: case "${host}" in michael@0: *-*-cygwin*|*-*-mingw*) EXEEXT=.exe ;; michael@0: *) EXEEXT="" ;; michael@0: esac michael@0: ac_exeext=$EXEEXT michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 michael@0: $as_echo "$EXEEXT" >&6; } michael@0: michael@0: michael@0: # Determine how strict we want to be when compiling michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strict compiling is on" >&5 michael@0: $as_echo_n "checking whether strict compiling is on... " >&6; } michael@0: # Check whether --enable-strict was given. michael@0: if test "${enable_strict+set}" = set; then : michael@0: enableval=$enable_strict; michael@0: if test "$enableval" = no michael@0: then michael@0: ac_use_strict_options=no michael@0: else michael@0: ac_use_strict_options=yes michael@0: fi michael@0: michael@0: else michael@0: ac_use_strict_options=yes michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_use_strict_options" >&5 michael@0: $as_echo "$ac_use_strict_options" >&6; } michael@0: michael@0: if test "$ac_use_strict_options" = yes michael@0: then michael@0: if test "$GCC" = yes michael@0: then michael@0: case "${host}" in michael@0: *-*-solaris*) michael@0: # Don't use -std=c99 option on Solaris/GCC michael@0: ;; michael@0: *) michael@0: # Do not use -ansi. It limits us to C90, and it breaks some platforms. michael@0: # We use -std=c99 to disable the gnu99 defaults and its associated warnings michael@0: CFLAGS="$CFLAGS -std=c99" michael@0: ;; michael@0: esac michael@0: michael@0: CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" michael@0: else michael@0: case "${host}" in michael@0: *-*-cygwin) michael@0: if test "`$CC /help 2>&1 | head -c9`" = "Microsoft" michael@0: then michael@0: CFLAGS="$CFLAGS /W4" michael@0: fi ;; michael@0: *-*-mingw32|*-*-mingw64) michael@0: CFLAGS="$CFLAGS -W4" ;; michael@0: esac michael@0: fi michael@0: if test "$GXX" = yes michael@0: then michael@0: CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" michael@0: else michael@0: case "${host}" in michael@0: *-*-cygwin) michael@0: if test "`$CXX /help 2>&1 | head -c9`" = "Microsoft" michael@0: then michael@0: CXXFLAGS="$CXXFLAGS /W4" michael@0: fi ;; michael@0: *-*-mingw32|*-*-mingw64) michael@0: CFLAGS="$CFLAGS -W4" ;; michael@0: esac michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check if we can build and use 64-bit libraries michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 michael@0: $as_echo_n "checking for grep that handles long lines and -e... " >&6; } michael@0: if ${ac_cv_path_GREP+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -z "$GREP"; then michael@0: ac_path_GREP_found=false michael@0: # Loop through the user's path and test for each of PROGNAME-LIST michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_prog in grep ggrep; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" michael@0: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue michael@0: # Check for GNU ac_path_GREP and select it if it is found. michael@0: # Check for GNU $ac_path_GREP michael@0: case `"$ac_path_GREP" --version 2>&1` in michael@0: *GNU*) michael@0: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; michael@0: *) michael@0: ac_count=0 michael@0: $as_echo_n 0123456789 >"conftest.in" michael@0: while : michael@0: do michael@0: cat "conftest.in" "conftest.in" >"conftest.tmp" michael@0: mv "conftest.tmp" "conftest.in" michael@0: cp "conftest.in" "conftest.nl" michael@0: $as_echo 'GREP' >> "conftest.nl" michael@0: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break michael@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break michael@0: as_fn_arith $ac_count + 1 && ac_count=$as_val michael@0: if test $ac_count -gt ${ac_path_GREP_max-0}; then michael@0: # Best one so far, save it but keep looking for a better one michael@0: ac_cv_path_GREP="$ac_path_GREP" michael@0: ac_path_GREP_max=$ac_count michael@0: fi michael@0: # 10*(2^10) chars as input seems more than enough michael@0: test $ac_count -gt 10 && break michael@0: done michael@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; michael@0: esac michael@0: michael@0: $ac_path_GREP_found && break 3 michael@0: done michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: if test -z "$ac_cv_path_GREP"; then michael@0: as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 michael@0: fi michael@0: else michael@0: ac_cv_path_GREP=$GREP michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 michael@0: $as_echo "$ac_cv_path_GREP" >&6; } michael@0: GREP="$ac_cv_path_GREP" michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 michael@0: $as_echo_n "checking for egrep... " >&6; } michael@0: if ${ac_cv_path_EGREP+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 michael@0: then ac_cv_path_EGREP="$GREP -E" michael@0: else michael@0: if test -z "$EGREP"; then michael@0: ac_path_EGREP_found=false michael@0: # Loop through the user's path and test for each of PROGNAME-LIST michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_prog in egrep; do michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" michael@0: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue michael@0: # Check for GNU ac_path_EGREP and select it if it is found. michael@0: # Check for GNU $ac_path_EGREP michael@0: case `"$ac_path_EGREP" --version 2>&1` in michael@0: *GNU*) michael@0: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; michael@0: *) michael@0: ac_count=0 michael@0: $as_echo_n 0123456789 >"conftest.in" michael@0: while : michael@0: do michael@0: cat "conftest.in" "conftest.in" >"conftest.tmp" michael@0: mv "conftest.tmp" "conftest.in" michael@0: cp "conftest.in" "conftest.nl" michael@0: $as_echo 'EGREP' >> "conftest.nl" michael@0: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break michael@0: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break michael@0: as_fn_arith $ac_count + 1 && ac_count=$as_val michael@0: if test $ac_count -gt ${ac_path_EGREP_max-0}; then michael@0: # Best one so far, save it but keep looking for a better one michael@0: ac_cv_path_EGREP="$ac_path_EGREP" michael@0: ac_path_EGREP_max=$ac_count michael@0: fi michael@0: # 10*(2^10) chars as input seems more than enough michael@0: test $ac_count -gt 10 && break michael@0: done michael@0: rm -f conftest.in conftest.tmp conftest.nl conftest.out;; michael@0: esac michael@0: michael@0: $ac_path_EGREP_found && break 3 michael@0: done michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: if test -z "$ac_cv_path_EGREP"; then michael@0: as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 michael@0: fi michael@0: else michael@0: ac_cv_path_EGREP=$EGREP michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 michael@0: $as_echo "$ac_cv_path_EGREP" >&6; } michael@0: EGREP="$ac_cv_path_EGREP" michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 michael@0: $as_echo_n "checking for ANSI C header files... " >&6; } michael@0: if ${ac_cv_header_stdc+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_header_stdc=yes michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # SunOS 4.x string.h does not declare mem*, contrary to ANSI. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: michael@0: _ACEOF michael@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | michael@0: $EGREP "memchr" >/dev/null 2>&1; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: michael@0: _ACEOF michael@0: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | michael@0: $EGREP "free" >/dev/null 2>&1; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f conftest* michael@0: michael@0: fi michael@0: michael@0: if test $ac_cv_header_stdc = yes; then michael@0: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. michael@0: if test "$cross_compiling" = yes; then : michael@0: : michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #if ((' ' & 0x0FF) == 0x020) michael@0: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') michael@0: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) michael@0: #else michael@0: # define ISLOWER(c) \ michael@0: (('a' <= (c) && (c) <= 'i') \ michael@0: || ('j' <= (c) && (c) <= 'r') \ michael@0: || ('s' <= (c) && (c) <= 'z')) michael@0: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) michael@0: #endif michael@0: michael@0: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) michael@0: int michael@0: main () michael@0: { michael@0: int i; michael@0: for (i = 0; i < 256; i++) michael@0: if (XOR (islower (i), ISLOWER (i)) michael@0: || toupper (i) != TOUPPER (i)) michael@0: return 2; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_run "$LINENO"; then : michael@0: michael@0: else michael@0: ac_cv_header_stdc=no michael@0: fi michael@0: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ michael@0: conftest.$ac_objext conftest.beam conftest.$ac_ext michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 michael@0: $as_echo "$ac_cv_header_stdc" >&6; } michael@0: if test $ac_cv_header_stdc = yes; then michael@0: michael@0: $as_echo "#define STDC_HEADERS 1" >>confdefs.h michael@0: michael@0: fi michael@0: michael@0: # On IRIX 5.3, sys/types and inttypes.h are conflicting. michael@0: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ michael@0: inttypes.h stdint.h unistd.h michael@0: do : michael@0: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` michael@0: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default michael@0: " michael@0: if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: michael@0: michael@0: BITS_REQ=nochange michael@0: ENABLE_64BIT_LIBS=unknown michael@0: ## revisit this for cross-compile. michael@0: michael@0: # Check whether --enable-64bit-libs was given. michael@0: if test "${enable_64bit_libs+set}" = set; then : michael@0: enableval=$enable_64bit_libs; echo "note, use --with-library-bits instead of --*-64bit-libs" michael@0: case "${enableval}" in michael@0: no|false|32) with_library_bits=32; ;; michael@0: yes|true|64) with_library_bits=64else32 ;; michael@0: nochange) with_library_bits=nochange; ;; michael@0: *) as_fn_error $? "bad value ${enableval} for '--*-64bit-libs'" "$LINENO" 5 ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: # Check whether --with-library-bits was given. michael@0: if test "${with_library_bits+set}" = set; then : michael@0: withval=$with_library_bits; case "${withval}" in michael@0: ""|nochange) BITS_REQ=$withval ;; michael@0: 32|64|64else32) BITS_REQ=$withval ;; michael@0: *) as_fn_error $? "bad value ${withval} for --with-library-bits" "$LINENO" 5 ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: # don't use these for cross compiling michael@0: if test "$cross_compiling" = "yes" -a "${BITS_REQ}" != "nochange"; then michael@0: 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 michael@0: fi michael@0: # The cast to long int works around a bug in the HP C Compiler michael@0: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects michael@0: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. michael@0: # This bug is HP SR number 8606223364. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 michael@0: $as_echo_n "checking size of void *... " >&6; } michael@0: if ${ac_cv_sizeof_void_p+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : michael@0: michael@0: else michael@0: if test "$ac_cv_type_void_p" = yes; then michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error 77 "cannot compute sizeof (void *) michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: else michael@0: ac_cv_sizeof_void_p=0 michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 michael@0: $as_echo "$ac_cv_sizeof_void_p" >&6; } michael@0: michael@0: michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define SIZEOF_VOID_P $ac_cv_sizeof_void_p michael@0: _ACEOF michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64 bit binaries are built by default" >&5 michael@0: $as_echo_n "checking whether runnable 64 bit binaries are built by default... " >&6; } michael@0: case $ac_cv_sizeof_void_p in michael@0: 8) DEFAULT_64BIT=yes ;; michael@0: 4) DEFAULT_64BIT=no ;; michael@0: *) DEFAULT_64BIT=unknown michael@0: esac michael@0: BITS_GOT=unknown michael@0: michael@0: # 'OK' here means, we can exit any further checking, everything's copa michael@0: BITS_OK=yes michael@0: michael@0: # do we need to check for buildable/runnable 32 or 64 bit? michael@0: BITS_CHECK_32=no michael@0: BITS_CHECK_64=no michael@0: michael@0: # later, can we run the 32/64 bit binaries so made? michael@0: BITS_RUN_32=no michael@0: BITS_RUN_64=no michael@0: michael@0: if test "$DEFAULT_64BIT" = "yes"; then michael@0: # we get 64 bits by default. michael@0: BITS_GOT=64 michael@0: case "$BITS_REQ" in michael@0: 32) michael@0: # need to look for 32 bit support. michael@0: BITS_CHECK_32=yes michael@0: # not copa. michael@0: BITS_OK=no;; michael@0: # everyone else is happy. michael@0: nochange) ;; michael@0: *) ;; michael@0: esac michael@0: elif test "$DEFAULT_64BIT" = "no"; then michael@0: # not 64 bit by default. michael@0: BITS_GOT=32 michael@0: case "$BITS_REQ" in michael@0: 64|64else32) michael@0: BITS_CHECK_64=yes michael@0: #BITS_CHECK_32=yes michael@0: BITS_OK=no;; michael@0: nochange) ;; michael@0: *) ;; michael@0: esac michael@0: elif test "$DEFAULT_64BIT" = "unknown"; then michael@0: # cross compiling. michael@0: BITS_GOT=unknown michael@0: case "$BITS_REQ" in michael@0: 64|64else32) BITS_OK=no michael@0: BITS_CHECK_32=yes michael@0: BITS_CHECK_64=yes ;; michael@0: 32) BITS_OK=no;; michael@0: nochange) ;; michael@0: *) ;; michael@0: esac michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_64BIT" >&5 michael@0: $as_echo "$DEFAULT_64BIT" >&6; }; michael@0: michael@0: if test "$BITS_OK" != "yes"; then michael@0: # not copa. back these up. michael@0: CFLAGS_OLD="${CFLAGS}" michael@0: CXXFLAGS_OLD="${CXXFLAGS}" michael@0: LDFLAGS_OLD="${LDFLAGS}" michael@0: ARFLAGS_OLD="${ARFLAGS}" michael@0: michael@0: CFLAGS_32="${CFLAGS}" michael@0: CXXFLAGS_32="${CXXFLAGS}" michael@0: LDFLAGS_32="${LDFLAGS}" michael@0: ARFLAGS_32="${ARFLAGS}" michael@0: michael@0: CFLAGS_64="${CFLAGS}" michael@0: CXXFLAGS_64="${CXXFLAGS}" michael@0: LDFLAGS_64="${LDFLAGS}" michael@0: ARFLAGS_64="${ARFLAGS}" michael@0: michael@0: CAN_BUILD_64=unknown michael@0: CAN_BUILD_32=unknown michael@0: # These results can't be cached because is sets compiler flags. michael@0: if test "$BITS_CHECK_64" = "yes"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 64-bit executables" >&5 michael@0: $as_echo_n "checking how to build 64-bit executables... " >&6; } michael@0: CAN_BUILD_64=no michael@0: #### michael@0: # Find out if we think we can *build* for 64 bit. Doesn't check whether we can run it. michael@0: # Note, we don't have to actually check if the options work- we'll try them before using them. michael@0: # So, only try actually testing the options, if you are trying to decide between multiple options. michael@0: # On exit from the following clauses: michael@0: # if CAN_BUILD_64=yes: michael@0: # *FLAGS are assumed to contain the right settings for 64bit michael@0: # else if CAN_BUILD_64=no: (default) michael@0: # *FLAGS are assumed to be trashed, and will be reset from *FLAGS_OLD michael@0: michael@0: if test "$GCC" = yes; then michael@0: CFLAGS="${CFLAGS} -m64" michael@0: CXXFLAGS="${CXXFLAGS} -m64" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main(void) {return (sizeof(void*)*8==64)?0:1;} michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: CAN_BUILD_64=yes michael@0: else michael@0: CAN_BUILD_64=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: else michael@0: case "${host}" in michael@0: sparc*-*-solaris*) michael@0: # 1. try -m64 michael@0: CFLAGS="${CFLAGS} -m64" michael@0: CXXFLAGS="${CXXFLAGS} -m64" michael@0: if test "$cross_compiling" = yes; then : michael@0: CAN_BUILD_64=unknown michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main(void) {return (sizeof(void*)*8==64)?0:1;} michael@0: _ACEOF michael@0: if ac_fn_c_try_run "$LINENO"; then : michael@0: CAN_BUILD_64=yes michael@0: else michael@0: CAN_BUILD_64=no michael@0: fi michael@0: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ michael@0: conftest.$ac_objext conftest.beam conftest.$ac_ext michael@0: fi michael@0: michael@0: if test "$CAN_BUILD_64" != yes; then michael@0: # Nope. back out changes. michael@0: CFLAGS="${CFLAGS_OLD}" michael@0: CXXFLAGS="${CFLAGS_OLD}" michael@0: # 2. try xarch=v9 [deprecated] michael@0: ## TODO: cross compile: the following won't work. michael@0: SPARCV9=`isainfo -n 2>&1 | grep sparcv9` michael@0: SOL64=`$CXX -xarch=v9 2>&1 && $CC -xarch=v9 2>&1 | grep -v usage:` michael@0: # "Warning: -xarch=v9 is deprecated, use -m64 to create 64-bit programs" michael@0: if test -z "$SOL64" && test -n "$SPARCV9"; then michael@0: CFLAGS="${CFLAGS} -xtarget=ultra -xarch=v9" michael@0: CXXFLAGS="${CXXFLAGS} -xtarget=ultra -xarch=v9" michael@0: LDFLAGS="${LDFLAGS} -xtarget=ultra -xarch=v9" michael@0: CAN_BUILD_64=yes michael@0: fi michael@0: fi michael@0: ;; michael@0: i386-*-solaris*) michael@0: # 1. try -m64 michael@0: CFLAGS="${CFLAGS} -m64" michael@0: CXXFLAGS="${CXXFLAGS} -m64" michael@0: if test "$cross_compiling" = yes; then : michael@0: CAN_BUILD_64=unknown michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main(void) {return (sizeof(void*)*8==64)?0:1;} michael@0: _ACEOF michael@0: if ac_fn_c_try_run "$LINENO"; then : michael@0: CAN_BUILD_64=yes michael@0: else michael@0: CAN_BUILD_64=no michael@0: fi michael@0: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ michael@0: conftest.$ac_objext conftest.beam conftest.$ac_ext michael@0: fi michael@0: michael@0: if test "$CAN_BUILD_64" != yes; then michael@0: # Nope. back out changes. michael@0: CFLAGS="${CFLAGS_OLD}" michael@0: CXXFLAGS="${CXXFLAGS_OLD}" michael@0: # 2. try the older compiler option michael@0: ## TODO: cross compile problem michael@0: AMD64=`isainfo -n 2>&1 | grep amd64` michael@0: SOL64=`$CXX -xtarget=generic64 2>&1 && $CC -xtarget=generic64 2>&1 | grep -v usage:` michael@0: if test -z "$SOL64" && test -n "$AMD64"; then michael@0: CFLAGS="${CFLAGS} -xtarget=generic64" michael@0: CXXFLAGS="${CXXFLAGS} -xtarget=generic64" michael@0: CAN_BUILD_64=yes michael@0: fi michael@0: fi michael@0: ;; michael@0: ia64-*-linux*) michael@0: # check for ecc/ecpc compiler support michael@0: ## TODO: cross compiler problem michael@0: if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Intel`"; then michael@0: if test -n "`$CXX --help 2>&1 && $CC --help 2>&1 | grep -v Itanium`"; then michael@0: CAN_BUILD_64=yes michael@0: fi michael@0: fi michael@0: ;; michael@0: *-*-cygwin) michael@0: # vcvarsamd64.bat should have been used to enable 64-bit builds. michael@0: # We only do this check to display the correct answer. michael@0: ## TODO: cross compiler problem michael@0: if test -n "`$CXX -help 2>&1 | grep 'for x64'`"; then michael@0: CAN_BUILD_64=yes michael@0: fi michael@0: ;; michael@0: *-*-aix*|powerpc64-*-linux*) michael@0: CFLAGS="${CFLAGS} -q64" michael@0: CXXFLAGS="${CXXFLAGS} -q64" michael@0: LDFLAGS="${LDFLAGS} -q64" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main(void) {return (sizeof(void*)*8==64)?0:1;} michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: CAN_BUILD_64=yes michael@0: else michael@0: CAN_BUILD_64=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: if test "$CAN_BUILD_64" = yes; then michael@0: # worked- set other options. michael@0: case "${host}" in michael@0: *-*-aix*) michael@0: # tell AIX what executable mode to use. michael@0: ARFLAGS="${ARFLAGS} -X64" michael@0: esac michael@0: fi michael@0: ;; michael@0: *-*-hpux*) michael@0: # First we try the newer +DD64, if that doesn't work, michael@0: # try other options. michael@0: michael@0: CFLAGS="${CFLAGS} +DD64" michael@0: CXXFLAGS="${CXXFLAGS} +DD64" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main(void) {return (sizeof(void*)*8==64)?0:1;} michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: CAN_BUILD_64=yes michael@0: else michael@0: CAN_BUILD_64=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: if test "$CAN_BUILD_64" != yes; then michael@0: # reset michael@0: CFLAGS="${CFLAGS_OLD}" michael@0: CXXFLAGS="${CXXFLAGS_OLD}" michael@0: # append michael@0: CFLAGS="${CFLAGS} +DA2.0W" michael@0: CXXFLAGS="${CXXFLAGS} +DA2.0W" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main(void) {return (sizeof(void*)*8==64)?0:1;} michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: CAN_BUILD_64=yes michael@0: else michael@0: CAN_BUILD_64=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: ;; michael@0: *-*ibm-openedition*|*-*-os390*) michael@0: CFLAGS="${CFLAGS} -Wc,lp64" michael@0: CXXFLAGS="${CXXFLAGS} -Wc,lp64" michael@0: LDFLAGS="${LDFLAGS} -Wl,lp64" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main(void) {return (sizeof(void*)*8==64)?0:1;} michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: CAN_BUILD_64=yes michael@0: else michael@0: CAN_BUILD_64=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ;; michael@0: *) michael@0: # unknown platform. michael@0: ;; michael@0: esac michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_64" >&5 michael@0: $as_echo "$CAN_BUILD_64" >&6; } michael@0: if test "$CAN_BUILD_64" = yes; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 64-bit binaries are being built " >&5 michael@0: $as_echo_n "checking whether runnable 64-bit binaries are being built ... " >&6; } michael@0: if test "$cross_compiling" = yes; then : michael@0: BITS_RUN_64=unknown michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main(void) {return (sizeof(void*)*8==64)?0:1;} michael@0: _ACEOF michael@0: if ac_fn_c_try_run "$LINENO"; then : michael@0: BITS_RUN_64=yes michael@0: else michael@0: BITS_RUN_64=no michael@0: fi michael@0: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ michael@0: conftest.$ac_objext conftest.beam conftest.$ac_ext michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_64" >&5 michael@0: $as_echo "$BITS_RUN_64" >&6; }; michael@0: michael@0: CFLAGS_64="${CFLAGS}" michael@0: CXXFLAGS_64="${CXXFLAGS}" michael@0: LDFLAGS_64="${LDFLAGS}" michael@0: ARFLAGS_64="${ARFLAGS}" michael@0: fi michael@0: # put it back. michael@0: CFLAGS="${CFLAGS_OLD}" michael@0: CXXFLAGS="${CXXFLAGS_OLD}" michael@0: LDFLAGS="${LDFLAGS_OLD}" michael@0: ARFLAGS="${ARFLAGS_OLD}" michael@0: fi michael@0: if test "$BITS_CHECK_32" = "yes"; then michael@0: # see comment under 'if BITS_CHECK_64', above. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to build 32-bit executables" >&5 michael@0: $as_echo_n "checking how to build 32-bit executables... " >&6; } michael@0: if test "$GCC" = yes; then michael@0: CFLAGS="${CFLAGS} -m32" michael@0: CXXFLAGS="${CXXFLAGS} -m32" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main(void) {return (sizeof(void*)*8==32)?0:1;} michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: CAN_BUILD_32=yes michael@0: else michael@0: CAN_BUILD_32=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAN_BUILD_32" >&5 michael@0: $as_echo "$CAN_BUILD_32" >&6; } michael@0: if test "$CAN_BUILD_32" = yes; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether runnable 32-bit binaries are being built " >&5 michael@0: $as_echo_n "checking whether runnable 32-bit binaries are being built ... " >&6; } michael@0: if test "$cross_compiling" = yes; then : michael@0: BITS_RUN_32=unknown michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: int main(void) {return (sizeof(void*)*8==32)?0:1;} michael@0: _ACEOF michael@0: if ac_fn_c_try_run "$LINENO"; then : michael@0: BITS_RUN_32=yes michael@0: else michael@0: BITS_RUN_32=no michael@0: fi michael@0: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ michael@0: conftest.$ac_objext conftest.beam conftest.$ac_ext michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BITS_RUN_32" >&5 michael@0: $as_echo "$BITS_RUN_32" >&6; }; michael@0: CFLAGS_32="${CFLAGS}" michael@0: CXXFLAGS_32="${CXXFLAGS}" michael@0: LDFLAGS_32="${LDFLAGS}" michael@0: ARFLAGS_32="${ARFLAGS}" michael@0: fi michael@0: # put it back. michael@0: CFLAGS="${CFLAGS_OLD}" michael@0: CXXFLAGS="${CXXFLAGS_OLD}" michael@0: LDFLAGS="${LDFLAGS_OLD}" michael@0: ARFLAGS="${ARFLAGS_OLD}" michael@0: fi michael@0: michael@0: ## michael@0: # OK. Now, we've tested for 32 and 64 bitness. Let's see what we'll do. michael@0: # michael@0: michael@0: # First, implement 64else32 michael@0: if test "$BITS_REQ" = "64else32"; then michael@0: if test "$BITS_RUN_64" = "yes"; then michael@0: BITS_REQ=64 michael@0: else michael@0: # no changes. michael@0: BITS_OK=yes michael@0: fi michael@0: fi michael@0: michael@0: # implement. michael@0: if test "$BITS_REQ" = "32" -a "$BITS_RUN_32" = "yes"; then michael@0: CFLAGS="${CFLAGS_32}" michael@0: CXXFLAGS="${CXXFLAGS_32}" michael@0: LDFLAGS="${LDFLAGS_32}" michael@0: ARFLAGS="${ARFLAGS_32}" michael@0: BITS_OK=yes michael@0: elif test "$BITS_REQ" = "64" -a "$BITS_RUN_64" = "yes"; then michael@0: CFLAGS="${CFLAGS_64}" michael@0: CXXFLAGS="${CXXFLAGS_64}" michael@0: LDFLAGS="${LDFLAGS_64}" michael@0: ARFLAGS="${ARFLAGS_64}" michael@0: BITS_OK=yes michael@0: elif test "$BITS_OK" != "yes"; then michael@0: 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 michael@0: fi michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: # Determine the Makefile fragment michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Makefile fragment to use for ${host}" >&5 michael@0: $as_echo_n "checking which Makefile fragment to use for ${host}... " >&6; } michael@0: if ${icu_cv_host_frag+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: michael@0: case "${host}" in michael@0: *-*-solaris*) michael@0: if test "$GCC" = yes; then michael@0: icu_cv_host_frag=mh-solaris-gcc michael@0: else michael@0: icu_cv_host_frag=mh-solaris michael@0: fi ;; michael@0: alpha*-*-linux-gnu) michael@0: if test "$GCC" = yes; then michael@0: icu_cv_host_frag=mh-alpha-linux-gcc michael@0: else michael@0: icu_cv_host_frag=mh-alpha-linux-cc michael@0: fi ;; michael@0: powerpc*-*-linux*) michael@0: if test "$GCC" = yes; then michael@0: icu_cv_host_frag=mh-linux michael@0: else michael@0: icu_cv_host_frag=mh-linux-va michael@0: fi ;; michael@0: *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) icu_cv_host_frag=mh-linux ;; michael@0: *-*-cygwin|*-*-mingw32|*-*-mingw64) michael@0: if test "$GCC" = yes; then michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: #ifndef __MINGW32__ michael@0: #error This is not MinGW michael@0: #endif michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: #ifndef __MINGW64__ michael@0: #error This is not MinGW64 michael@0: #endif michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: icu_cv_host_frag=mh-mingw64 michael@0: else michael@0: icu_cv_host_frag=mh-mingw michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: else michael@0: icu_cv_host_frag=mh-cygwin michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: else michael@0: case "${host}" in michael@0: *-*-cygwin) icu_cv_host_frag=mh-cygwin-msvc ;; michael@0: *-*-mingw32|*-*-mingw64) icu_cv_host_frag=mh-msys-msvc ;; michael@0: esac michael@0: fi ;; michael@0: *-*-*bsd*|*-*-dragonfly*) icu_cv_host_frag=mh-bsd-gcc ;; michael@0: *-*-aix*) michael@0: if test "$GCC" = yes; then michael@0: icu_cv_host_frag=mh-aix-gcc michael@0: else michael@0: icu_cv_host_frag=mh-aix-va michael@0: fi ;; michael@0: *-*-hpux*) michael@0: if test "$GCC" = yes; then michael@0: icu_cv_host_frag=mh-hpux-gcc michael@0: else michael@0: case "$CXX" in michael@0: *aCC) icu_cv_host_frag=mh-hpux-acc ;; michael@0: esac michael@0: fi ;; michael@0: *-*ibm-openedition*|*-*-os390*) icu_cv_host_frag=mh-os390 ;; michael@0: *-*-os400*) icu_cv_host_frag=mh-os400 ;; michael@0: *-apple-rhapsody*) icu_cv_host_frag=mh-darwin ;; michael@0: *-apple-darwin*) icu_cv_host_frag=mh-darwin ;; michael@0: *-*-beos) icu_cv_host_frag=mh-beos ;; michael@0: *-*-haiku) icu_cv_host_frag=mh-haiku ;; michael@0: *-*-irix*) icu_cv_host_frag=mh-irix ;; michael@0: *-dec-osf*) icu_cv_host_frag=mh-alpha-osf ;; michael@0: *-*-nto*) icu_cv_host_frag=mh-qnx ;; michael@0: *-ncr-*) icu_cv_host_frag=mh-mpras ;; michael@0: *) icu_cv_host_frag=mh-unknown ;; michael@0: esac michael@0: michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icu_cv_host_frag" >&5 michael@0: $as_echo "$icu_cv_host_frag" >&6; } michael@0: michael@0: michael@0: # Checks for libraries and other host specific stuff michael@0: # On HP/UX, don't link to -lm from a shared lib because it isn't michael@0: # PIC (at least on 10.2) michael@0: case "${host}" in michael@0: *-*-hpux*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 michael@0: $as_echo_n "checking for floor in -lm... " >&6; } michael@0: if ${ac_cv_lib_m_floor+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-lm $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char floor (); michael@0: int michael@0: main () michael@0: { michael@0: return floor (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_m_floor=yes michael@0: else michael@0: ac_cv_lib_m_floor=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 michael@0: $as_echo "$ac_cv_lib_m_floor" >&6; } michael@0: if test "x$ac_cv_lib_m_floor" = xyes; then : michael@0: LIB_M="-lm" michael@0: fi michael@0: ;; michael@0: michael@0: *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5 michael@0: $as_echo_n "checking for floor in -lm... " >&6; } michael@0: if ${ac_cv_lib_m_floor+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-lm $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char floor (); michael@0: int michael@0: main () michael@0: { michael@0: return floor (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_m_floor=yes michael@0: else michael@0: ac_cv_lib_m_floor=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5 michael@0: $as_echo "$ac_cv_lib_m_floor" >&6; } michael@0: if test "x$ac_cv_lib_m_floor" = xyes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_LIBM 1 michael@0: _ACEOF michael@0: michael@0: LIBS="-lm $LIBS" michael@0: michael@0: fi michael@0: michael@0: LIB_M="" ;; michael@0: esac michael@0: michael@0: michael@0: # Check whether to build shared libraries michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 michael@0: $as_echo_n "checking whether to build shared libraries... " >&6; } michael@0: enabled=no michael@0: # Check whether --enable-shared was given. michael@0: if test "${enable_shared+set}" = set; then : michael@0: enableval=$enable_shared; case "${enableval}" in michael@0: yes|"") enabled=yes; ENABLE_SHARED=YES ;; michael@0: no);; michael@0: *) ;; michael@0: esac michael@0: else michael@0: enabled=yes; ENABLE_SHARED=YES michael@0: michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 michael@0: $as_echo "$enabled" >&6; } michael@0: michael@0: michael@0: # Check whether to build static libraries michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 michael@0: $as_echo_n "checking whether to build static libraries... " >&6; } michael@0: enabled=no michael@0: # Check whether --enable-static was given. michael@0: if test "${enable_static+set}" = set; then : michael@0: enableval=$enable_static; case "${enableval}" in michael@0: yes|"") enabled=yes; ENABLE_STATIC=YES ;; michael@0: no) ;; michael@0: *) ;; michael@0: esac michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 michael@0: $as_echo "$enabled" >&6; } michael@0: michael@0: michael@0: # When building release static library, there might be some optimization flags we can use michael@0: if test "$ENABLE_STATIC" = "YES"; then michael@0: if test "$ENABLE_SHARED" != "YES"; then michael@0: if test "$ENABLE_RELEASE" = 1; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use static library optimization option" >&5 michael@0: $as_echo_n "checking whether we can use static library optimization option... " >&6; } michael@0: CHECK_STATIC_OPT_FLAG=no michael@0: michael@0: OLD_CPPFLAGS="${CPPFLAGS}" michael@0: OLD_LDFLAGS="${LDFLAGS}" michael@0: michael@0: case "${host}" in michael@0: *-linux*|i*86-*-*bsd*|i*86-pc-gnu) michael@0: if test "$GCC" = yes; then michael@0: CPPFLAGS="${CPPFLAGS} -ffunction-sections -fdata-sections" michael@0: LDFLAGS="${LDFLAGS} -Wl,--gc-sections" michael@0: fi michael@0: ;; michael@0: *) michael@0: ;; michael@0: esac michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: CHECK_STATIC_OPT_FLAG=yes michael@0: else michael@0: CHECK_STATIC_OPT_FLAG=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_STATIC_OPT_FLAG" >&5 michael@0: $as_echo "$CHECK_STATIC_OPT_FLAG" >&6; } michael@0: if test "$CHECK_STATIC_OPT_FLAG" = no; then michael@0: CPPFLAGS="${OLD_CPPFLAGS}" michael@0: LDFLAGS="${OLD_LDFLAGS}" michael@0: fi michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: michael@0: # Check whether to enable auto cleanup of libraries michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable auto cleanup of libraries" >&5 michael@0: $as_echo_n "checking whether to enable auto cleanup of libraries... " >&6; } michael@0: enabled=no michael@0: UCLN_NO_AUTO_CLEANUP=1 michael@0: # Check whether --enable-auto-cleanup was given. michael@0: if test "${enable_auto_cleanup+set}" = set; then : michael@0: enableval=$enable_auto_cleanup; case "${enableval}" in michael@0: yes) enabled=yes; michael@0: CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DUCLN_NO_AUTO_CLEANUP=0"; michael@0: UCLN_NO_AUTO_CLEANUP=0 michael@0: ;; michael@0: *) ;; michael@0: esac michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 michael@0: $as_echo "$enabled" >&6; } michael@0: michael@0: michael@0: # MSVC floating-point option michael@0: MSVC_RELEASE_FLAG="" michael@0: if test $enabled = yes michael@0: then michael@0: if test $icu_cv_host_frag = mh-cygwin-msvc -o $icu_cv_host_frag = mh-msys-msvc michael@0: then michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: #if defined _MSC_VER && _MSC_VER >= 1400 michael@0: #else michael@0: Microsoft Visual C++ < 2005 michael@0: #endif michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: MSVC_RELEASE_FLAG="/fp:precise" michael@0: else michael@0: MSVC_RELEASE_FLAG="/Op" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: michael@0: CFLAGS="${CFLAGS} ${MSVC_RELEASE_FLAG}" michael@0: CXXFLAGS="${CXXFLAGS} ${MSVC_RELEASE_FLAG}" michael@0: fi michael@0: fi michael@0: michael@0: # Check whether to enabled draft APIs michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable draft APIs" >&5 michael@0: $as_echo_n "checking whether to enable draft APIs... " >&6; } michael@0: enabled=yes michael@0: U_DEFAULT_SHOW_DRAFT=1 michael@0: # Check whether --enable-draft was given. michael@0: if test "${enable_draft+set}" = set; then : michael@0: enableval=$enable_draft; case "${enableval}" in michael@0: no) enabled=no; U_DEFAULT_SHOW_DRAFT=0; michael@0: CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_DEFAULT_SHOW_DRAFT=0" michael@0: ;; michael@0: *) ;; michael@0: esac michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 michael@0: $as_echo "$enabled" >&6; } michael@0: # Make sure that we can use draft API in ICU. michael@0: if test "$U_DEFAULT_SHOW_DRAFT" = 0; then michael@0: CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_SHOW_DRAFT_API" michael@0: fi michael@0: michael@0: michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}ranlib; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_RANLIB+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$RANLIB"; then michael@0: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: RANLIB=$ac_cv_prog_RANLIB michael@0: if test -n "$RANLIB"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 michael@0: $as_echo "$RANLIB" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_RANLIB"; then michael@0: ac_ct_RANLIB=$RANLIB michael@0: # Extract the first word of "ranlib", so it can be a program name with args. michael@0: set dummy ranlib; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_RANLIB"; then michael@0: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_RANLIB="ranlib" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB michael@0: if test -n "$ac_ct_RANLIB"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 michael@0: $as_echo "$ac_ct_RANLIB" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_RANLIB" = x; then michael@0: RANLIB=":" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: RANLIB=$ac_ct_RANLIB michael@0: fi michael@0: else michael@0: RANLIB="$ac_cv_prog_RANLIB" michael@0: fi michael@0: michael@0: michael@0: # look for 'ar' the proper way michael@0: if test -n "$ac_tool_prefix"; then michael@0: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. michael@0: set dummy ${ac_tool_prefix}ar; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_AR+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$AR"; then michael@0: ac_cv_prog_AR="$AR" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_AR="${ac_tool_prefix}ar" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: AR=$ac_cv_prog_AR michael@0: if test -n "$AR"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 michael@0: $as_echo "$AR" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: michael@0: fi michael@0: if test -z "$ac_cv_prog_AR"; then michael@0: ac_ct_AR=$AR michael@0: # Extract the first word of "ar", so it can be a program name with args. michael@0: set dummy ar; ac_word=$2 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 michael@0: $as_echo_n "checking for $ac_word... " >&6; } michael@0: if ${ac_cv_prog_ac_ct_AR+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if test -n "$ac_ct_AR"; then michael@0: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. michael@0: else michael@0: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: for ac_exec_ext in '' $ac_executable_extensions; do michael@0: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then michael@0: ac_cv_prog_ac_ct_AR="ar" michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 michael@0: break 2 michael@0: fi michael@0: done michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: fi michael@0: fi michael@0: ac_ct_AR=$ac_cv_prog_ac_ct_AR michael@0: if test -n "$ac_ct_AR"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 michael@0: $as_echo "$ac_ct_AR" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: fi michael@0: michael@0: if test "x$ac_ct_AR" = x; then michael@0: AR="false" michael@0: else michael@0: case $cross_compiling:$ac_tool_warned in michael@0: yes:) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 michael@0: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} michael@0: ac_tool_warned=yes ;; michael@0: esac michael@0: AR=$ac_ct_AR michael@0: fi michael@0: else michael@0: AR="$ac_cv_prog_AR" michael@0: fi michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable renaming of symbols" >&5 michael@0: $as_echo_n "checking whether to enable renaming of symbols... " >&6; } michael@0: enabled=yes michael@0: U_DISABLE_RENAMING=0 michael@0: # Check whether --enable-renaming was given. michael@0: if test "${enable_renaming+set}" = set; then : michael@0: enableval=$enable_renaming; case "${enableval}" in michael@0: yes|"") enabled=yes ;; michael@0: no) enabled=no; U_DISABLE_RENAMING=1; michael@0: UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_DISABLE_RENAMING=1" michael@0: ;; michael@0: *) ;; michael@0: esac michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 michael@0: $as_echo "$enabled" >&6; } michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable function and data tracing" >&5 michael@0: $as_echo_n "checking whether to enable function and data tracing... " >&6; } michael@0: enabled=no michael@0: U_ENABLE_TRACING=0 michael@0: # Check whether --enable-tracing was given. michael@0: if test "${enable_tracing+set}" = set; then : michael@0: enableval=$enable_tracing; case "${enableval}" in michael@0: yes|"") enabled=yes; michael@0: CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_TRACING=1"; michael@0: U_ENABLE_TRACING=1 ;; michael@0: no) enabled=no; U_ENABLE_TRACING=0 ;; michael@0: *) ;; michael@0: esac michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enabled" >&5 michael@0: $as_echo "$enabled" >&6; } michael@0: michael@0: michael@0: # check if elf.h is present. michael@0: for ac_header in elf.h michael@0: do : michael@0: ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_elf_h" = xyes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_ELF_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: if test "x$ac_cv_header_elf_h" = "xyes"; then michael@0: CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_HAVE_ELF_H=1"; michael@0: fi michael@0: michael@0: U_ENABLE_DYLOAD=1 michael@0: enable=yes michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dynamic loading of plugins" >&5 michael@0: $as_echo_n "checking whether to enable dynamic loading of plugins... " >&6; } michael@0: # Check whether --enable-dyload was given. michael@0: if test "${enable_dyload+set}" = set; then : michael@0: enableval=$enable_dyload; case "${enableval}" in michael@0: yes|"") michael@0: U_ENABLE_DYLOAD=1 michael@0: enable=yes michael@0: ;; michael@0: no) michael@0: U_ENABLE_DYLOAD=0; michael@0: enable=no; michael@0: CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DU_ENABLE_DYLOAD=0"; michael@0: ;; michael@0: *) ;; michael@0: esac michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable" >&5 michael@0: $as_echo "$enable" >&6; } michael@0: michael@0: michael@0: if test "$enable" = "yes"; then michael@0: for ac_header in dlfcn.h michael@0: do : michael@0: ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_dlfcn_h" = xyes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_DLFCN_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: #AC_MSG_RESULT($enabled) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5 michael@0: $as_echo_n "checking for library containing dlopen... " >&6; } michael@0: if ${ac_cv_search_dlopen+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_func_search_save_LIBS=$LIBS michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char dlopen (); michael@0: int michael@0: main () michael@0: { michael@0: return dlopen (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: for ac_lib in '' dl; do michael@0: if test -z "$ac_lib"; then michael@0: ac_res="none required" michael@0: else michael@0: ac_res=-l$ac_lib michael@0: LIBS="-l$ac_lib $ac_func_search_save_LIBS" michael@0: fi michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_search_dlopen=$ac_res michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext michael@0: if ${ac_cv_search_dlopen+:} false; then : michael@0: break michael@0: fi michael@0: done michael@0: if ${ac_cv_search_dlopen+:} false; then : michael@0: michael@0: else michael@0: ac_cv_search_dlopen=no michael@0: fi michael@0: rm conftest.$ac_ext michael@0: LIBS=$ac_func_search_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5 michael@0: $as_echo "$ac_cv_search_dlopen" >&6; } michael@0: ac_res=$ac_cv_search_dlopen michael@0: if test "$ac_res" != no; then : michael@0: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" michael@0: michael@0: fi michael@0: michael@0: for ac_func in dlopen michael@0: do : michael@0: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" michael@0: if test "x$ac_cv_func_dlopen" = xyes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_DLOPEN 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: done michael@0: michael@0: michael@0: if test "x$ac_cv_func_dlopen" != xyes; then michael@0: CONFIG_CPPFLAGS="$CONFIG_CPPFLAGS -DHAVE_DLOPEN=0" michael@0: fi michael@0: fi michael@0: michael@0: # Check for miscellanous functions. michael@0: # So, use for putil / tools only. michael@0: # Note that this will generate HAVE_GETTIMEOFDAY, not U_HAVE_GETTIMEOFDAY michael@0: for ac_func in gettimeofday michael@0: do : michael@0: ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" michael@0: if test "x$ac_cv_func_gettimeofday" = xyes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_GETTIMEOFDAY 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: done michael@0: michael@0: michael@0: michael@0: # Check whether to use the evil rpath or not michael@0: # Check whether --enable-rpath was given. michael@0: if test "${enable_rpath+set}" = set; then : michael@0: enableval=$enable_rpath; case "${enableval}" in michael@0: yes|"") ENABLE_RPATH=YES ;; michael@0: no) ;; michael@0: *) ;; michael@0: esac michael@0: else michael@0: ENABLE_RPATH=NO michael@0: michael@0: fi michael@0: michael@0: michael@0: michael@0: michael@0: michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++ compiler" >&5 michael@0: $as_echo_n "checking if we have a C++ compiler... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: cxx_okay=yes michael@0: else michael@0: cxx_okay=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: if test $cxx_okay = yes michael@0: then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: Good" >&5 michael@0: $as_echo "Good" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 michael@0: $as_echo "no" >&6; } michael@0: as_fn_error $? "C++ compiler $CXX does not work or no compiler found" "$LINENO" 5 michael@0: fi michael@0: michael@0: if [ "$GXX" = yes ]; then michael@0: # if CXXFLAGS does not have a "-std=" setting, set it now to -std=c++0x, michael@0: # and check that the compiler still works. michael@0: if ! echo "$CXXFLAGS" | grep '\-std=' >/dev/null 2>&1; then michael@0: OLD_CXXFLAGS="${CXXFLAGS}" michael@0: CXXFLAGS="$CXXFLAGS --std=c++0x" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we have a C++11 compiler" >&5 michael@0: $as_echo_n "checking if we have a C++11 compiler... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: cxx11_okay=yes michael@0: else michael@0: cxx11_okay=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cxx11_okay" >&5 michael@0: $as_echo "$cxx11_okay" >&6; } michael@0: if [ $cxx11_okay = yes ]; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: Adding CXXFLAGS option --std=c++0x" >&5 michael@0: $as_echo "$as_me: Adding CXXFLAGS option --std=c++0x" >&6;} michael@0: UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} --std=c++0x" michael@0: else michael@0: CXXFLAGS="$OLD_CXXFLAGS" michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include works" >&5 michael@0: $as_echo_n "checking if #include works... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_header_stdstring=yes michael@0: else michael@0: ac_cv_header_stdstring=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdstring" >&5 michael@0: $as_echo "$ac_cv_header_stdstring" >&6; } michael@0: if test $ac_cv_header_stdstring = yes michael@0: then michael@0: U_HAVE_STD_STRING=1 michael@0: else michael@0: U_HAVE_STD_STRING=0 michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_STD_STRING=0" michael@0: fi michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if #include works" >&5 michael@0: $as_echo_n "checking if #include works... " >&6; } michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: ac_cv_header_atomic=yes michael@0: else michael@0: ac_cv_header_atomic=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_atomic" >&5 michael@0: $as_echo "$ac_cv_header_atomic" >&6; } michael@0: if test $ac_cv_header_atomic = yes michael@0: then michael@0: U_HAVE_ATOMIC=1 michael@0: else michael@0: U_HAVE_ATOMIC=0 michael@0: fi michael@0: # Make this available via CPPFLAGS michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_ATOMIC=${U_HAVE_ATOMIC}" michael@0: michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: michael@0: # Always build ICU with multi-threading support. michael@0: threads=true michael@0: ICU_USE_THREADS=1 michael@0: OLD_LIBS=${LIBS} michael@0: michael@0: if test $threads = true; then michael@0: # For Compaq Tru64 (OSF1), we must look for pthread_attr_init michael@0: # and must do this before seaching for pthread_mutex_destroy, or michael@0: # we will pick up libpthreads.so not libpthread.so michael@0: # If this fails, then we must test for HPUX specials, before michael@0: # moving on to a more generic test michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_attr_init in -lpthread" >&5 michael@0: $as_echo_n "checking for pthread_attr_init in -lpthread... " >&6; } michael@0: if ${ac_cv_lib_pthread_pthread_attr_init+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-lpthread $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char pthread_attr_init (); michael@0: int michael@0: main () michael@0: { michael@0: return pthread_attr_init (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_pthread_pthread_attr_init=yes michael@0: else michael@0: ac_cv_lib_pthread_pthread_attr_init=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_attr_init" >&5 michael@0: $as_echo "$ac_cv_lib_pthread_pthread_attr_init" >&6; } michael@0: if test "x$ac_cv_lib_pthread_pthread_attr_init" = xyes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_LIBPTHREAD 1 michael@0: _ACEOF michael@0: michael@0: LIBS="-lpthread $LIBS" michael@0: michael@0: fi michael@0: michael@0: if test $ac_cv_lib_pthread_pthread_attr_init = yes; then michael@0: ICU_USE_THREADS=1 michael@0: else michael@0: # Locate the right library for POSIX threads. We look for the michael@0: # symbols in the libraries first, because on Solaris libc provides michael@0: # pthread_create but libpthread has the real code :( michael@0: # AIX uses libpthreads instead of libpthread, and HP/UX uses libpthread michael@0: # FreeBSD users may need libpthread if they do not have libc_r. michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_destroy" >&5 michael@0: $as_echo_n "checking for library containing pthread_mutex_destroy... " >&6; } michael@0: if ${ac_cv_search_pthread_mutex_destroy+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_func_search_save_LIBS="$LIBS" michael@0: ac_cv_search_pthread_mutex_destroy="no" michael@0: for i in pthread pthreads c_r ; do michael@0: LIBS="-l$i $ac_func_search_save_LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char pthread_mutex_destroy (); michael@0: int michael@0: main () michael@0: { michael@0: return pthread_mutex_destroy (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_search_pthread_mutex_destroy="-l$i" michael@0: break michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: done michael@0: if test "$ac_cv_search_pthread_mutex_destroy" = "no"; then michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char pthread_mutex_destroy (); michael@0: int michael@0: main () michael@0: { michael@0: return pthread_mutex_destroy (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_search_pthread_mutex_destroy="none required" michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: LIBS="$ac_func_search_save_LIBS" michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_destroy" >&5 michael@0: $as_echo "$ac_cv_search_pthread_mutex_destroy" >&6; } michael@0: if test "$ac_cv_search_pthread_mutex_destroy" != "no"; then michael@0: test "$ac_cv_search_pthread_mutex_destroy" = "none required" || LIBS="$ac_cv_search_pthread_mutex_destroy $LIBS" michael@0: michael@0: else : michael@0: michael@0: fi michael@0: michael@0: if test "$ac_cv_search_pthread_mutex_destroy" != no; then michael@0: ICU_USE_THREADS=1 michael@0: else michael@0: # For HP 11 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 michael@0: $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } michael@0: if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_check_lib_save_LIBS=$LIBS michael@0: LIBS="-lpthread $LIBS" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char pthread_mutex_init (); michael@0: int michael@0: main () michael@0: { michael@0: return pthread_mutex_init (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_lib_pthread_pthread_mutex_init=yes michael@0: else michael@0: ac_cv_lib_pthread_pthread_mutex_init=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: LIBS=$ac_check_lib_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 michael@0: $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } michael@0: if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_LIBPTHREAD 1 michael@0: _ACEOF michael@0: michael@0: LIBS="-lpthread $LIBS" michael@0: michael@0: fi michael@0: michael@0: if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then michael@0: ICU_USE_THREADS=1 michael@0: fi michael@0: fi michael@0: michael@0: ac_fn_c_check_func "$LINENO" "pthread_mutex_lock" "ac_cv_func_pthread_mutex_lock" michael@0: if test "x$ac_cv_func_pthread_mutex_lock" = xyes; then : michael@0: michael@0: fi michael@0: michael@0: michael@0: if test $ac_cv_func_pthread_mutex_lock = yes; then michael@0: ICU_USE_THREADS=1 michael@0: fi michael@0: fi michael@0: # Check to see if we are using CygWin with MSVC michael@0: case "${host}" in michael@0: *-pc-cygwin*|*-pc-mingw*) michael@0: # For gcc, the thread options are set by mh-mingw/mh-cygwin michael@0: # For msvc, the thread options are set by runConfigureICU michael@0: ICU_USE_THREADS=1 michael@0: ;; michael@0: *-*-hpux*) michael@0: # Add -mt because it does several nice things on newer compilers. michael@0: case "${icu_cv_host_frag}" in michael@0: mh-hpux-acc) michael@0: OLD_CXXFLAGS="${CXXFLAGS}" michael@0: CXXFLAGS="${CXXFLAGS} -mt" michael@0: if test x"`${CXX} ${CXXFLAGS} 2>&1`" != x""; then michael@0: CXXFLAGS="${OLD_CXXFLAGS}" michael@0: else michael@0: UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -mt" michael@0: fi michael@0: ;; michael@0: esac michael@0: ;; michael@0: *-*-solaris*) michael@0: case "${icu_cv_host_frag}" in michael@0: mh-solaris) michael@0: LIBS="${LIBS} -mt" michael@0: ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: # Check whether --enable-weak-threads was given. michael@0: if test "${enable_weak_threads+set}" = set; then : michael@0: enableval=$enable_weak_threads; case "${enableval}" in michael@0: yes) michael@0: LIB_THREAD="${LIBS%${OLD_LIBS}}" michael@0: LIBS=${OLD_LIBS} michael@0: ;; michael@0: no) ;; michael@0: *) as_fn_error $? "bad value ${enableval} for --enable-weak-threads" "$LINENO" 5 ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check for mmap() michael@0: michael@0: # The AC_FUNC_MMAP macro doesn't work properly. It seems to be too specific. michael@0: # Do this check instead. michael@0: HAVE_MMAP=0 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap" >&5 michael@0: $as_echo_n "checking for mmap... " >&6; } michael@0: if ${ac_cv_func_mmap_ok+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: #include michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: mmap((void *)0, 0, PROT_READ, 0, 0, 0); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_func_mmap_ok=yes michael@0: else michael@0: ac_cv_func_mmap_ok=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_ok" >&5 michael@0: $as_echo "$ac_cv_func_mmap_ok" >&6; } michael@0: if test $ac_cv_func_mmap_ok = yes michael@0: then michael@0: HAVE_MMAP=1 michael@0: else michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_MMAP=0" michael@0: fi michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genccode assembly" >&5 michael@0: $as_echo_n "checking for genccode assembly... " >&6; } michael@0: michael@0: # Check to see if genccode can generate simple assembly. michael@0: GENCCODE_ASSEMBLY= michael@0: case "${host}" in michael@0: *-linux*|*-kfreebsd*-gnu*|i*86-*-*bsd*|i*86-pc-gnu) michael@0: if test "$GCC" = yes; then michael@0: # We're using gcc, and the simple -a gcc command line works for genccode michael@0: GENCCODE_ASSEMBLY="-a gcc" michael@0: fi ;; michael@0: i*86-*-solaris*) michael@0: if test "$GCC" = yes; then michael@0: # When using gcc, look if we're also using GNU as. michael@0: # When using GNU as, the simple -a gcc command line works for genccode. michael@0: asv=`"${CC}" -print-prog-name=as 2>/dev/null` michael@0: asv=`"${asv}" --version 2>/dev/null` michael@0: case "X${asv}" in michael@0: X*GNU*) GENCCODE_ASSEMBLY="-a gcc" ;; michael@0: X*) GENCCODE_ASSEMBLY="-a sun-x86" ;; michael@0: esac michael@0: unset asv michael@0: else michael@0: GENCCODE_ASSEMBLY="-a sun-x86" michael@0: fi ;; michael@0: sparc-*-solaris*) michael@0: GENCCODE_ASSEMBLY="-a sun" michael@0: ;; michael@0: ia64-*-hpux*) michael@0: GENCCODE_ASSEMBLY="-a aCC-ia64" michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENCCODE_ASSEMBLY" >&5 michael@0: $as_echo "$GENCCODE_ASSEMBLY" >&6; } michael@0: michael@0: # Checks for header files michael@0: for ac_header in inttypes.h michael@0: do : michael@0: ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_inttypes_h" = xyes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_INTTYPES_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: if test $ac_cv_header_inttypes_h = no; then michael@0: U_HAVE_INTTYPES_H=0 michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0" michael@0: else michael@0: U_HAVE_INTTYPES_H=1 michael@0: fi michael@0: if test "$CC" = ccc; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"C compiler set to CCC ${CC}\" " >&5 michael@0: $as_echo "\"C compiler set to CCC ${CC}\" " >&6; } michael@0: case "${host}" in michael@0: alpha*-*-*) U_HAVE_INTTYPES_H=0; michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INTTYPES_H=0" michael@0: esac michael@0: fi michael@0: michael@0: michael@0: michael@0: for ac_header in dirent.h michael@0: do : michael@0: ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_dirent_h" = xyes; then : michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define HAVE_DIRENT_H 1 michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: done michael@0: michael@0: if test $ac_cv_header_dirent_h = no; then michael@0: U_HAVE_DIRENT_H=0 michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_DIRENT_H=0" michael@0: else michael@0: U_HAVE_DIRENT_H=1 michael@0: fi michael@0: michael@0: michael@0: michael@0: # Check for endianness michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 michael@0: $as_echo_n "checking whether byte ordering is bigendian... " >&6; } michael@0: if ${ac_cv_c_bigendian+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_cv_c_bigendian=unknown michael@0: # See if we're dealing with a universal compiler. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifndef __APPLE_CC__ michael@0: not a universal capable compiler michael@0: #endif michael@0: typedef int dummy; michael@0: michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: michael@0: # Check for potential -arch flags. It is not universal unless michael@0: # there are at least two -arch flags with different values. michael@0: ac_arch= michael@0: ac_prev= michael@0: for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do michael@0: if test -n "$ac_prev"; then michael@0: case $ac_word in michael@0: i?86 | x86_64 | ppc | ppc64) michael@0: if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then michael@0: ac_arch=$ac_word michael@0: else michael@0: ac_cv_c_bigendian=universal michael@0: break michael@0: fi michael@0: ;; michael@0: esac michael@0: ac_prev= michael@0: elif test "x$ac_word" = "x-arch"; then michael@0: ac_prev=arch michael@0: fi michael@0: done michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: if test $ac_cv_c_bigendian = unknown; then michael@0: # See if sys/param.h defines the BYTE_ORDER macro. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ michael@0: && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ michael@0: && LITTLE_ENDIAN) michael@0: bogus endian macros michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: # It does; now see whether it defined to BIG_ENDIAN or not. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #if BYTE_ORDER != BIG_ENDIAN michael@0: not big endian michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_c_bigendian=yes michael@0: else michael@0: ac_cv_c_bigendian=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: if test $ac_cv_c_bigendian = unknown; then michael@0: # See if defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) michael@0: bogus endian macros michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: # It does; now see whether it defined to _BIG_ENDIAN or not. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: michael@0: int michael@0: main () michael@0: { michael@0: #ifndef _BIG_ENDIAN michael@0: not big endian michael@0: #endif michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: ac_cv_c_bigendian=yes michael@0: else michael@0: ac_cv_c_bigendian=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: fi michael@0: if test $ac_cv_c_bigendian = unknown; then michael@0: # Compile a test program. michael@0: if test "$cross_compiling" = yes; then : michael@0: # Try to guess by grepping values from an object file. michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: short int ascii_mm[] = michael@0: { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; michael@0: short int ascii_ii[] = michael@0: { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; michael@0: int use_ascii (int i) { michael@0: return ascii_mm[i] + ascii_ii[i]; michael@0: } michael@0: short int ebcdic_ii[] = michael@0: { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; michael@0: short int ebcdic_mm[] = michael@0: { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; michael@0: int use_ebcdic (int i) { michael@0: return ebcdic_mm[i] + ebcdic_ii[i]; michael@0: } michael@0: extern int foo; michael@0: michael@0: int michael@0: main () michael@0: { michael@0: return use_ascii (foo) == use_ebcdic (foo); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then michael@0: ac_cv_c_bigendian=yes michael@0: fi michael@0: if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then michael@0: if test "$ac_cv_c_bigendian" = unknown; then michael@0: ac_cv_c_bigendian=no michael@0: else michael@0: # finding both strings is unlikely to happen, but who knows? michael@0: ac_cv_c_bigendian=unknown michael@0: fi michael@0: fi michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: $ac_includes_default michael@0: int michael@0: main () michael@0: { michael@0: michael@0: /* Are we little or big endian? From Harbison&Steele. */ michael@0: union michael@0: { michael@0: long int l; michael@0: char c[sizeof (long int)]; michael@0: } u; michael@0: u.l = 1; michael@0: return u.c[sizeof (long int) - 1] == 1; michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_run "$LINENO"; then : michael@0: ac_cv_c_bigendian=no michael@0: else michael@0: ac_cv_c_bigendian=yes michael@0: fi michael@0: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ michael@0: conftest.$ac_objext conftest.beam conftest.$ac_ext michael@0: fi michael@0: michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 michael@0: $as_echo "$ac_cv_c_bigendian" >&6; } michael@0: case $ac_cv_c_bigendian in #( michael@0: yes) michael@0: $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h michael@0: ;; #( michael@0: no) michael@0: ;; #( michael@0: universal) michael@0: michael@0: $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h michael@0: michael@0: ;; #( michael@0: *) michael@0: as_fn_error $? "unknown endianness michael@0: presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; michael@0: esac michael@0: michael@0: if test $ac_cv_c_bigendian = no; then michael@0: U_IS_BIG_ENDIAN=0 michael@0: U_ENDIAN_CHAR="l" michael@0: else michael@0: U_IS_BIG_ENDIAN=1 michael@0: U_ENDIAN_CHAR="b" michael@0: fi michael@0: michael@0: michael@0: # Do various POSIX related checks michael@0: U_HAVE_NL_LANGINFO_CODESET=0 michael@0: U_NL_LANGINFO_CODESET=-1 michael@0: ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" michael@0: if test "x$ac_cv_func_nl_langinfo" = xyes; then : michael@0: U_HAVE_NL_LANGINFO=1 michael@0: else michael@0: U_HAVE_NL_LANGINFO=0 michael@0: fi michael@0: michael@0: if test $U_HAVE_NL_LANGINFO -eq 1; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo's argument to obtain the codeset" >&5 michael@0: $as_echo_n "checking for nl_langinfo's argument to obtain the codeset... " >&6; } michael@0: if ${ac_cv_nl_langinfo_codeset+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_cv_nl_langinfo_codeset="unknown" michael@0: for a in CODESET _NL_CTYPE_CODESET_NAME; do michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: nl_langinfo($a); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_nl_langinfo_codeset="$a"; break michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: done michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_nl_langinfo_codeset" >&5 michael@0: $as_echo "$ac_cv_nl_langinfo_codeset" >&6; } michael@0: if test x$ac_cv_nl_langinfo_codeset != xunknown michael@0: then michael@0: U_HAVE_NL_LANGINFO_CODESET=1 michael@0: U_NL_LANGINFO_CODESET=$ac_cv_nl_langinfo_codeset michael@0: if test "x${ac_cv_nl_langinfo_codeset}" != "xCODESET" michael@0: then michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DNL_LANGINFO_CODESET=${ac_cv_nl_langinfo_codeset}" michael@0: fi michael@0: else michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_NL_LANGINFO_CODESET=0" michael@0: fi michael@0: fi michael@0: michael@0: michael@0: michael@0: # Namespace support checks michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for namespace support" >&5 michael@0: $as_echo_n "checking for namespace support... " >&6; } michael@0: if ${ac_cv_namespace_ok+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: namespace x_version {void f(){}} michael@0: namespace x = x_version; michael@0: using namespace x_version; michael@0: michael@0: int michael@0: main () michael@0: { michael@0: f(); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: ac_cv_namespace_ok=yes michael@0: else michael@0: ac_cv_namespace_ok=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_namespace_ok" >&5 michael@0: $as_echo "$ac_cv_namespace_ok" >&6; } michael@0: if test $ac_cv_namespace_ok = no michael@0: then michael@0: as_fn_error $? "Namespace support is required to build ICU." "$LINENO" 5 michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for properly overriding new and delete" >&5 michael@0: $as_echo_n "checking for properly overriding new and delete... " >&6; } michael@0: U_OVERRIDE_CXX_ALLOCATION=0 michael@0: U_HAVE_PLACEMENT_NEW=0 michael@0: if ${ac_cv_override_cxx_allocation_ok+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: class UMemory { michael@0: public: michael@0: void *operator new(size_t size) {return malloc(size);} michael@0: void *operator new[](size_t size) {return malloc(size);} michael@0: void operator delete(void *p) {free(p);} michael@0: void operator delete[](void *p) {free(p);} michael@0: }; michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: ac_cv_override_cxx_allocation_ok=yes michael@0: else michael@0: ac_cv_override_cxx_allocation_ok=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_cxx_allocation_ok" >&5 michael@0: $as_echo "$ac_cv_override_cxx_allocation_ok" >&6; } michael@0: if test $ac_cv_override_cxx_allocation_ok = yes michael@0: then michael@0: U_OVERRIDE_CXX_ALLOCATION=1 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for placement new and delete" >&5 michael@0: $as_echo_n "checking for placement new and delete... " >&6; } michael@0: if ${ac_cv_override_placement_new_ok+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: class UMemory { michael@0: public: michael@0: void *operator new(size_t size) {return malloc(size);} michael@0: void *operator new[](size_t size) {return malloc(size);} michael@0: void operator delete(void *p) {free(p);} michael@0: void operator delete[](void *p) {free(p);} michael@0: void * operator new(size_t, void *ptr) { return ptr; } michael@0: void operator delete(void *, void *) {} michael@0: }; michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_link "$LINENO"; then : michael@0: ac_cv_override_placement_new_ok=yes michael@0: else michael@0: ac_cv_override_placement_new_ok=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_override_placement_new_ok" >&5 michael@0: $as_echo "$ac_cv_override_placement_new_ok" >&6; } michael@0: if test $ac_cv_override_placement_new_ok = yes michael@0: then michael@0: U_HAVE_PLACEMENT_NEW=1 michael@0: else michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_PLACEMENT_NEW=0" michael@0: fi michael@0: else michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_OVERRIDE_CXX_ALLOCATION=0" michael@0: fi michael@0: michael@0: michael@0: michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: ac_fn_c_check_func "$LINENO" "popen" "ac_cv_func_popen" michael@0: if test "x$ac_cv_func_popen" = xyes; then : michael@0: michael@0: fi michael@0: michael@0: if test x$ac_cv_func_popen = xyes michael@0: then michael@0: U_HAVE_POPEN=1 michael@0: else michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_POPEN=0" michael@0: U_HAVE_POPEN=0 michael@0: fi michael@0: michael@0: michael@0: ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" michael@0: if test "x$ac_cv_func_tzset" = xyes; then : michael@0: michael@0: fi michael@0: michael@0: U_HAVE_TZSET=0 michael@0: if test x$ac_cv_func_tzset = xyes michael@0: then michael@0: U_TZSET=tzset michael@0: U_HAVE_TZSET=1 michael@0: else michael@0: ac_fn_c_check_func "$LINENO" "_tzset" "ac_cv_func__tzset" michael@0: if test "x$ac_cv_func__tzset" = xyes; then : michael@0: michael@0: fi michael@0: michael@0: if test x$ac_cv_func__tzset = xyes michael@0: then michael@0: U_TZSET=_tzset michael@0: U_HAVE_TZSET=1 michael@0: else michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZSET=0" michael@0: fi michael@0: fi michael@0: michael@0: michael@0: michael@0: U_HAVE_TZNAME=0 michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 michael@0: $as_echo_n "checking for tzname... " >&6; } michael@0: if ${ac_cv_var_tzname+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifndef __USE_POSIX michael@0: #define __USE_POSIX michael@0: #endif michael@0: #include michael@0: #include michael@0: #ifndef tzname /* For SGI. */ michael@0: extern char *tzname[]; /* RS6000 and others reject char **tzname. */ michael@0: #endif michael@0: int michael@0: main () michael@0: { michael@0: atoi(*tzname); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_var_tzname=yes michael@0: else michael@0: ac_cv_var_tzname=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 michael@0: $as_echo "$ac_cv_var_tzname" >&6; } michael@0: if test $ac_cv_var_tzname = yes; then michael@0: U_TZNAME=tzname michael@0: U_HAVE_TZNAME=1 michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _tzname" >&5 michael@0: $as_echo_n "checking for _tzname... " >&6; } michael@0: if ${ac_cv_var__tzname+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: #include michael@0: extern char *_tzname[]; michael@0: int michael@0: main () michael@0: { michael@0: atoi(*_tzname); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_var__tzname=yes michael@0: else michael@0: ac_cv_var__tzname=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__tzname" >&5 michael@0: $as_echo "$ac_cv_var__tzname" >&6; } michael@0: if test $ac_cv_var__tzname = yes; then michael@0: U_TZNAME=_tzname michael@0: U_HAVE_TZNAME=1 michael@0: else michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TZNAME=0" michael@0: fi michael@0: fi michael@0: michael@0: michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone" >&5 michael@0: $as_echo_n "checking for timezone... " >&6; } michael@0: if ${ac_cv_var_timezone+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #ifndef __USE_POSIX michael@0: #define __USE_POSIX michael@0: #endif michael@0: #ifndef __USE_XOPEN michael@0: #define __USE_XOPEN michael@0: #endif michael@0: #include michael@0: michael@0: int michael@0: main () michael@0: { michael@0: timezone = 1; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_var_timezone=yes michael@0: else michael@0: ac_cv_var_timezone=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_timezone" >&5 michael@0: $as_echo "$ac_cv_var_timezone" >&6; } michael@0: U_HAVE_TIMEZONE=0 michael@0: if test $ac_cv_var_timezone = yes; then michael@0: U_TIMEZONE=timezone michael@0: U_HAVE_TIMEZONE=1 michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __timezone" >&5 michael@0: $as_echo_n "checking for __timezone... " >&6; } michael@0: if ${ac_cv_var___timezone+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: __timezone = 1; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_var___timezone=yes michael@0: else michael@0: ac_cv_var___timezone=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var___timezone" >&5 michael@0: $as_echo "$ac_cv_var___timezone" >&6; } michael@0: if test $ac_cv_var___timezone = yes; then michael@0: U_TIMEZONE=__timezone michael@0: U_HAVE_TIMEZONE=1 michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _timezone" >&5 michael@0: $as_echo_n "checking for _timezone... " >&6; } michael@0: if ${ac_cv_var__timezone+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: #include michael@0: int michael@0: main () michael@0: { michael@0: _timezone = 1; michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_var__timezone=yes michael@0: else michael@0: ac_cv_var__timezone=no michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext conftest.$ac_ext michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var__timezone" >&5 michael@0: $as_echo "$ac_cv_var__timezone" >&6; } michael@0: if test $ac_cv_var__timezone = yes; then michael@0: U_TIMEZONE=_timezone michael@0: U_HAVE_TIMEZONE=1 michael@0: else michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_TIMEZONE=0" michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: michael@0: michael@0: # Checks for typedefs michael@0: ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default" michael@0: if test "x$ac_cv_type_int8_t" = xyes; then : michael@0: michael@0: else michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define int8_t signed char michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default" michael@0: if test "x$ac_cv_type_uint8_t" = xyes; then : michael@0: michael@0: else michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define uint8_t unsigned char michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default" michael@0: if test "x$ac_cv_type_int16_t" = xyes; then : michael@0: michael@0: else michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define int16_t signed short michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default" michael@0: if test "x$ac_cv_type_uint16_t" = xyes; then : michael@0: michael@0: else michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define uint16_t unsigned short michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" michael@0: if test "x$ac_cv_type_int32_t" = xyes; then : michael@0: michael@0: else michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define int32_t signed long michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" michael@0: if test "x$ac_cv_type_uint32_t" = xyes; then : michael@0: michael@0: else michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define uint32_t unsigned long michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" michael@0: if test "x$ac_cv_type_int64_t" = xyes; then : michael@0: michael@0: else michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define int64_t signed long long michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" michael@0: if test "x$ac_cv_type_uint64_t" = xyes; then : michael@0: michael@0: else michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define uint64_t unsigned long long michael@0: _ACEOF michael@0: michael@0: fi michael@0: michael@0: michael@0: if test $ac_cv_type_int8_t = no; then michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT8_T=0" michael@0: fi michael@0: michael@0: if test $ac_cv_type_uint8_t = no; then michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT8_T=0" michael@0: fi michael@0: michael@0: if test $ac_cv_type_int16_t = no; then michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT16_T=0" michael@0: fi michael@0: michael@0: if test $ac_cv_type_uint16_t = no; then michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT16_T=0" michael@0: fi michael@0: michael@0: if test $ac_cv_type_int32_t = no; then michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT32_T=0" michael@0: fi michael@0: michael@0: if test $ac_cv_type_uint32_t = no; then michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT32_T=0" michael@0: fi michael@0: michael@0: if test $ac_cv_type_int64_t = no; then michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_INT64_T=0" michael@0: fi michael@0: michael@0: if test $ac_cv_type_uint64_t = no; then michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_UINT64_T=0" michael@0: fi michael@0: michael@0: # Do various wchar_t related checks michael@0: ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" michael@0: if test "x$ac_cv_header_wchar_h" = xyes; then : michael@0: michael@0: fi michael@0: michael@0: michael@0: if test "$ac_cv_header_wchar_h" = no michael@0: then michael@0: U_HAVE_WCHAR_H=0 michael@0: U_HAVE_WCSCPY=0 michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCHAR_H=0 -DU_HAVE_WCSCPY=0" michael@0: else michael@0: michael@0: $as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h michael@0: michael@0: U_HAVE_WCHAR_H=1 michael@0: # Some broken systems have wchar.h but not some of its functions... michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing wcscpy" >&5 michael@0: $as_echo_n "checking for library containing wcscpy... " >&6; } michael@0: if ${ac_cv_search_wcscpy+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: ac_func_search_save_LIBS=$LIBS michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: /* Override any GCC internal prototype to avoid an error. michael@0: Use char because int might match the return type of a GCC michael@0: builtin and then its argument prototype would still apply. */ michael@0: #ifdef __cplusplus michael@0: extern "C" michael@0: #endif michael@0: char wcscpy (); michael@0: int michael@0: main () michael@0: { michael@0: return wcscpy (); michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: for ac_lib in '' wcs w; do michael@0: if test -z "$ac_lib"; then michael@0: ac_res="none required" michael@0: else michael@0: ac_res=-l$ac_lib michael@0: LIBS="-l$ac_lib $ac_func_search_save_LIBS" michael@0: fi michael@0: if ac_fn_c_try_link "$LINENO"; then : michael@0: ac_cv_search_wcscpy=$ac_res michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext \ michael@0: conftest$ac_exeext michael@0: if ${ac_cv_search_wcscpy+:} false; then : michael@0: break michael@0: fi michael@0: done michael@0: if ${ac_cv_search_wcscpy+:} false; then : michael@0: michael@0: else michael@0: ac_cv_search_wcscpy=no michael@0: fi michael@0: rm conftest.$ac_ext michael@0: LIBS=$ac_func_search_save_LIBS michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_wcscpy" >&5 michael@0: $as_echo "$ac_cv_search_wcscpy" >&6; } michael@0: ac_res=$ac_cv_search_wcscpy michael@0: if test "$ac_res" != no; then : michael@0: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" michael@0: michael@0: fi michael@0: michael@0: if test "$ac_cv_search_wcscpy" != no; then michael@0: U_HAVE_WCSCPY=1 michael@0: else michael@0: U_HAVE_WCSCPY=0 michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_HAVE_WCSCPY=0" michael@0: fi michael@0: fi michael@0: michael@0: michael@0: michael@0: # The cast to long int works around a bug in the HP C Compiler michael@0: # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects michael@0: # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. michael@0: # This bug is HP SR number 8606223364. michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 michael@0: $as_echo_n "checking size of wchar_t... " >&6; } michael@0: if ${ac_cv_sizeof_wchar_t+:} false; then : michael@0: $as_echo_n "(cached) " >&6 michael@0: else michael@0: if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" " michael@0: #if STDC_HEADERS michael@0: #include michael@0: #endif michael@0: #include michael@0: #if HAVE_WCHAR_H michael@0: #include michael@0: #include michael@0: #endif michael@0: "; then : michael@0: michael@0: else michael@0: if test "$ac_cv_type_wchar_t" = yes; then michael@0: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 michael@0: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} michael@0: as_fn_error 77 "cannot compute sizeof (wchar_t) michael@0: See \`config.log' for more details" "$LINENO" 5; } michael@0: else michael@0: ac_cv_sizeof_wchar_t=0 michael@0: fi michael@0: fi michael@0: michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 michael@0: $as_echo "$ac_cv_sizeof_wchar_t" >&6; } michael@0: michael@0: michael@0: michael@0: cat >>confdefs.h <<_ACEOF michael@0: #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t michael@0: _ACEOF michael@0: michael@0: michael@0: U_SIZEOF_WCHAR_T=$ac_cv_sizeof_wchar_t michael@0: # We do this check to verify that everything is okay. michael@0: if test $U_SIZEOF_WCHAR_T = 0; then michael@0: if test $U_HAVE_WCHAR_H=1; then michael@0: as_fn_error $? "There is wchar.h but the size of wchar_t is 0" "$LINENO" 5 michael@0: fi michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UTF-16 string literal support" >&5 michael@0: $as_echo_n "checking for UTF-16 string literal support... " >&6; } michael@0: U_CHECK_UTF16_STRING=1 michael@0: CHECK_UTF16_STRING_RESULT="unknown" michael@0: michael@0: case "${host}" in michael@0: *-*-aix*|powerpc64-*-linux*) michael@0: if test "$GCC" = no; then michael@0: OLD_CFLAGS="${CFLAGS}" michael@0: OLD_CXXFLAGS="${CXXFLAGS}" michael@0: CFLAGS="${CFLAGS} -qutf" michael@0: CXXFLAGS="${CXXFLAGS} -qutf" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: const unsigned short hello[] = u"hello"; michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: U_CHECK_UTF16_STRING=1 michael@0: else michael@0: U_CHECK_UTF16_STRING=0 michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: if test "$U_CHECK_UTF16_STRING" = 0; then michael@0: CFLAGS="${OLD_CFLAGS}" michael@0: CXXFLAGS="${OLD_CXXFLAGS}" michael@0: else michael@0: UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -qutf" michael@0: CHECK_UTF16_STRING_RESULT="-qutf" michael@0: fi michael@0: fi michael@0: ;; michael@0: *-*-solaris*) michael@0: if test "$GCC" = no; then michael@0: OLD_CFLAGS="${CFLAGS}" michael@0: OLD_CXXFLAGS="${CXXFLAGS}" michael@0: CFLAGS="${CFLAGS} -xustr=ascii_utf16_ushort" michael@0: CXXFLAGS="${CXXFLAGS} -xustr=ascii_utf16_ushort" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: const unsigned short hello[] = U"hello"; michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: U_CHECK_UTF16_STRING=1 michael@0: else michael@0: U_CHECK_UTF16_STRING=0 michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: if test "$U_CHECK_UTF16_STRING" = 0; then michael@0: CFLAGS="${OLD_CFLAGS}" michael@0: CXXFLAGS="${OLD_CXXFLAGS}" michael@0: else michael@0: CHECK_UTF16_STRING_RESULT="-xustr=ascii_utf16_ushort" michael@0: UCONFIG_CXXFLAGS="${UCONFIG_CXXFLAGS} -xustr=ascii_utf16_ushort" michael@0: UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -xustr=ascii_utf16_ushort" michael@0: # Since we can't detect the availability of this UTF-16 syntax at compile time, michael@0: # we depend on configure telling us that we can use it. michael@0: # Since we can't ensure ICU users use -xustr=ascii_utf16_ushort, michael@0: # we only use this macro within ICU. michael@0: # If an ICU user uses icu-config, this feature will be enabled. michael@0: CONFIG_CPPFLAGS="${CONFIG_CPPFLAGS} -DU_CHECK_UTF16_STRING=1" michael@0: U_CHECK_UTF16_STRING=0 michael@0: fi michael@0: fi michael@0: ;; michael@0: *-*-hpux*) michael@0: if test "$GCC" = no; then michael@0: # The option will be detected at compile time without additional compiler options. michael@0: CHECK_UTF16_STRING_RESULT="available" michael@0: fi michael@0: ;; michael@0: *-*-cygwin) michael@0: # wchar_t can be used michael@0: CHECK_UTF16_STRING_RESULT="available" michael@0: ;; michael@0: *) michael@0: ;; michael@0: esac michael@0: michael@0: # GCC >= 4.4 supports UTF16 string literals. The CFLAGS and CXXFLAGS may change in the future. michael@0: if test "$CHECK_UTF16_STRING_RESULT" = "unknown"; then michael@0: if test "$GCC" = yes; then michael@0: OLD_CFLAGS="${CFLAGS}" michael@0: CFLAGS="${CFLAGS} -std=gnu99" michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: static const char16_t test[] = u"This is a UTF16 literal string."; michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_c_try_compile "$LINENO"; then : michael@0: CC_UTF16_STRING=1 michael@0: else michael@0: CC_UTF16_STRING=0 michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: if test "$CC_UTF16_STRING" = 1; then michael@0: UCONFIG_CFLAGS="${UCONFIG_CFLAGS} -std=gnu99" michael@0: CHECK_UTF16_STRING_RESULT="C only"; michael@0: else michael@0: CFLAGS="${OLD_CFLAGS}" michael@0: fi michael@0: fi michael@0: if test "$GXX" = yes; then michael@0: # -Wno-return-type-c-linkage is desired so that stable ICU API is not warned about. michael@0: ac_ext=cpp michael@0: ac_cpp='$CXXCPP $CPPFLAGS' michael@0: ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_cxx_compiler_gnu michael@0: michael@0: cat confdefs.h - <<_ACEOF >conftest.$ac_ext michael@0: /* end confdefs.h. */ michael@0: michael@0: static const char16_t test[] = u"This is a UTF16 literal string."; michael@0: michael@0: int michael@0: main () michael@0: { michael@0: michael@0: ; michael@0: return 0; michael@0: } michael@0: _ACEOF michael@0: if ac_fn_cxx_try_compile "$LINENO"; then : michael@0: CXX_UTF16_STRING=1 michael@0: else michael@0: CXX_UTF16_STRING=0 michael@0: fi michael@0: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext michael@0: ac_ext=c michael@0: ac_cpp='$CPP $CPPFLAGS' michael@0: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' michael@0: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' michael@0: ac_compiler_gnu=$ac_cv_c_compiler_gnu michael@0: michael@0: if test "$CXX_UTF16_STRING" = 1; then michael@0: if test "$CC_UTF16_STRING" = 1; then michael@0: CHECK_UTF16_STRING_RESULT="available"; michael@0: else michael@0: CHECK_UTF16_STRING_RESULT="C++ only"; michael@0: fi michael@0: fi michael@0: fi michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5 michael@0: $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; } michael@0: michael@0: # Enable/disable extras michael@0: # Check whether --enable-extras was given. michael@0: if test "${enable_extras+set}" = set; then : michael@0: enableval=$enable_extras; case "${enableval}" in michael@0: yes) extras=true ;; michael@0: no) extras=false ;; michael@0: *) as_fn_error $? "bad value ${enableval} for --enable-extras" "$LINENO" 5 ;; michael@0: esac michael@0: else michael@0: extras=true michael@0: fi michael@0: michael@0: michael@0: if test "$extras" = true; then michael@0: EXTRAS_TRUE= michael@0: else michael@0: EXTRAS_TRUE='#' michael@0: fi michael@0: # Check whether --enable-icuio was given. michael@0: if test "${enable_icuio+set}" = set; then : michael@0: enableval=$enable_icuio; case "${enableval}" in michael@0: yes) icuio=true ;; michael@0: no) icuio=false ;; michael@0: *) as_fn_error $? "bad value ${enableval} for --enable-icuio" "$LINENO" 5 ;; michael@0: esac michael@0: else michael@0: icuio=true michael@0: fi michael@0: michael@0: michael@0: if test "$icuio" = true; then michael@0: ICUIO_TRUE= michael@0: else michael@0: ICUIO_TRUE='#' michael@0: fi michael@0: michael@0: # Enable/disable layout michael@0: # Check whether --enable-layout was given. michael@0: if test "${enable_layout+set}" = set; then : michael@0: enableval=$enable_layout; case "${enableval}" in michael@0: yes) layout=true ;; michael@0: no) layout=false ;; michael@0: *) as_fn_error $? "bad value ${enableval} for --enable-layout" "$LINENO" 5 ;; michael@0: esac michael@0: else michael@0: layout=true michael@0: fi michael@0: michael@0: michael@0: if test "$layout" = true; then michael@0: LAYOUT_TRUE= michael@0: else michael@0: LAYOUT_TRUE='#' michael@0: fi michael@0: michael@0: # Enable/disable tools michael@0: # Check whether --enable-tools was given. michael@0: if test "${enable_tools+set}" = set; then : michael@0: enableval=$enable_tools; case "${enableval}" in michael@0: yes) tools=true ;; michael@0: no) tools=false ;; michael@0: *) as_fn_error $? "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;; michael@0: esac michael@0: else michael@0: tools=true michael@0: fi michael@0: michael@0: michael@0: if test "$tools" = true; then michael@0: TOOLS_TRUE= michael@0: else michael@0: TOOLS_TRUE='#' michael@0: fi michael@0: michael@0: michael@0: # Check whether --with-data-packaging was given. michael@0: if test "${with_data_packaging+set}" = set; then : michael@0: withval=$with_data_packaging; case "${withval}" in michael@0: files|archive|library) datapackaging=$withval ;; michael@0: auto) datapackaging=$withval ;; michael@0: common) datapackaging=archive ;; michael@0: dll) datapackaging=library ;; michael@0: static) datapackaging=static ;; michael@0: *) as_fn_error $? "bad value ${withval} for --with-data-packaging" "$LINENO" 5 ;; michael@0: esac michael@0: else michael@0: datapackaging= michael@0: fi michael@0: michael@0: michael@0: # Note: 'thesysconfdir' is an evaluated version, for Man pages, so also for thedatadir, thelibdir, etc.. michael@0: # thesysconfdir=`eval echo $sysconfdir` michael@0: thedatadir=`eval echo $datadir` michael@0: # 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}. michael@0: pkgicudatadir=$datadir michael@0: thepkgicudatadir=$thedatadir michael@0: michael@0: michael@0: michael@0: michael@0: if test x"$datapackaging" = x -o x"$datapackaging" = xauto; then michael@0: # default to library michael@0: datapackaging=library michael@0: if test "$ENABLE_STATIC" = "YES"; then michael@0: if test "$ENABLE_SHARED" != "YES"; then michael@0: datapackaging=static michael@0: fi michael@0: fi michael@0: fi michael@0: michael@0: datapackaging_dir=`eval echo $thedatadir`"/icu/${VERSION}" michael@0: michael@0: datapackaging_msg="(No explaination for mode $datapackaging.)" michael@0: michael@0: 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." michael@0: 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." michael@0: datapackaging_howfound="(unknown)" michael@0: michael@0: case "$datapackaging" in michael@0: files) michael@0: DATA_PACKAGING_MODE=files michael@0: datapackaging_msg="ICU data will be stored in individual files." michael@0: datapackaging_howfound="$datapackaging_msg_path" michael@0: ;; michael@0: archive) michael@0: DATA_PACKAGING_MODE=common michael@0: datapackaging_msg="ICU data will be stored in a single .dat file." michael@0: datapackaging_howfound="$datapackaging_msg_path" michael@0: ;; michael@0: library) michael@0: DATA_PACKAGING_MODE=dll michael@0: datapackaging_msg="ICU data will be linked with ICU." michael@0: if test "$ENABLE_STATIC" = "YES"; then michael@0: datapackaging_msg="$datapackaging_msg A static data library will be built. " michael@0: fi michael@0: if test "$ENABLE_SHARED" = "YES"; then michael@0: datapackaging_msg="$datapackaging_msg A shared data library will be built. " michael@0: fi michael@0: datapackaging_howfound="$datapackaging_msg_set" michael@0: ;; michael@0: static) michael@0: DATA_PACKAGING_MODE=static michael@0: datapackaging_msg="ICU data will be stored in a static library." michael@0: datapackaging_howfound="$datapackaging_msg_set" michael@0: ;; michael@0: esac michael@0: michael@0: michael@0: # Sets a library suffix michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a library suffix to use" >&5 michael@0: $as_echo_n "checking for a library suffix to use... " >&6; } michael@0: michael@0: # Check whether --with-library-suffix was given. michael@0: if test "${with_library_suffix+set}" = set; then : michael@0: withval=$with_library_suffix; ICULIBSUFFIX="${withval}" michael@0: else michael@0: ICULIBSUFFIX= michael@0: fi michael@0: michael@0: msg=$ICULIBSUFFIX michael@0: if test "$msg" = ""; then michael@0: msg=none michael@0: fi michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $msg" >&5 michael@0: $as_echo "$msg" >&6; } michael@0: michael@0: if test "$ICULIBSUFFIX" != "" michael@0: then michael@0: U_HAVE_LIB_SUFFIX=1 michael@0: ICULIBSUFFIXCNAME=`echo _$ICULIBSUFFIX | sed 's/^A-Za-z0-9_/_/g'` michael@0: UCONFIG_CPPFLAGS="${UCONFIG_CPPFLAGS} -DU_HAVE_LIB_SUFFIX=1 -DU_LIB_SUFFIX_C_NAME=${ICULIBSUFFIXCNAME} " michael@0: else michael@0: U_HAVE_LIB_SUFFIX=0 michael@0: fi michael@0: michael@0: michael@0: michael@0: # Enable/disable tests michael@0: # Check whether --enable-tests was given. michael@0: if test "${enable_tests+set}" = set; then : michael@0: enableval=$enable_tests; case "${enableval}" in michael@0: yes) tests=true ;; michael@0: no) tests=false ;; michael@0: *) as_fn_error $? "bad value ${enableval} for --enable-tests" "$LINENO" 5 ;; michael@0: esac michael@0: else michael@0: tests=true michael@0: fi michael@0: michael@0: michael@0: if test "$tests" = true; then michael@0: TESTS_TRUE= michael@0: else michael@0: TESTS_TRUE='#' michael@0: fi michael@0: michael@0: # Enable/disable samples michael@0: # Check whether --enable-samples was given. michael@0: if test "${enable_samples+set}" = set; then : michael@0: enableval=$enable_samples; case "${enableval}" in michael@0: yes) samples=true ;; michael@0: no) samples=false ;; michael@0: *) as_fn_error $? "bad value ${enableval} for --enable-samples" "$LINENO" 5 ;; michael@0: esac michael@0: else michael@0: samples=true michael@0: fi michael@0: michael@0: michael@0: if test "$samples" = true; then michael@0: SAMPLES_TRUE= michael@0: else michael@0: SAMPLES_TRUE='#' michael@0: fi michael@0: michael@0: ICUDATA_CHAR=$U_ENDIAN_CHAR michael@0: michael@0: # Platform-specific Makefile setup michael@0: # set ICUDATA_CHAR to 'e' for any EBCDIC (which should be big endian) platform. michael@0: case "${host}" in michael@0: *-*-solaris*) platform=U_SOLARIS ;; michael@0: *-*-linux*|*-*-gnu|*-*-k*bsd*-gnu|*-*-kopensolaris*-gnu) platform=U_LINUX ;; michael@0: *-*-*bsd*|*-*-dragonfly*) platform=U_BSD ;; michael@0: *-*-aix*) platform=U_AIX ;; michael@0: *-*-hpux*) platform=U_HPUX ;; michael@0: *-apple-darwin*|*-apple-rhapsody*) platform=U_DARWIN ;; michael@0: *-*-cygwin*) platform=U_CYGWIN ;; michael@0: *-*-mingw*) platform=U_MINGW ;; michael@0: *-*ibm-openedition*|*-*-os390*) platform=OS390 michael@0: if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then michael@0: ICUDATA_CHAR="e" michael@0: fi ;; michael@0: *-*-os400*) platform=OS400 michael@0: if test "${ICU_ENABLE_ASCII_STRINGS}" != "1"; then michael@0: ICUDATA_CHAR="e" michael@0: fi ;; michael@0: *-*-nto*) platform=U_QNX ;; michael@0: *-dec-osf*) platform=U_OSF ;; michael@0: *-*-beos) platform=U_BEOS ;; michael@0: *-*-irix*) platform=U_IRIX ;; michael@0: *-ncr-*) platform=U_MPRAS ;; michael@0: *) platform=U_UNKNOWN_PLATFORM ;; michael@0: esac michael@0: michael@0: michael@0: platform_make_fragment_name="$icu_cv_host_frag" michael@0: platform_make_fragment='$(top_srcdir)/config/'"$platform_make_fragment_name" michael@0: michael@0: michael@0: michael@0: if test "${FORCE_LIBS}" != ""; then michael@0: echo " *** Overriding automatically chosen LIBS=$LIBS, using instead FORCE_LIBS=${FORCE_LIBS}" 1>&6 michael@0: LIBS=${FORCE_LIBS} michael@0: fi michael@0: michael@0: # Now that we're done using CPPFLAGS etc. for tests, we can change it michael@0: # for build. michael@0: michael@0: if test "${CC}" == "clang"; then michael@0: CLANGCFLAGS="-Qunused-arguments -Wno-parentheses-equality" michael@0: else michael@0: CLANGCFLAGS="" michael@0: fi michael@0: michael@0: if test "${CXX}" == "clang++"; then michael@0: CLANGCXXFLAGS="-Qunused-arguments -Wno-parentheses-equality" michael@0: else michael@0: CLANGCXXFLAGS="" michael@0: fi michael@0: michael@0: CPPFLAGS="$CPPFLAGS \$(THREADSCPPFLAGS)" michael@0: CFLAGS="$CFLAGS \$(THREADSCFLAGS) $CLANGCFLAGS" michael@0: CXXFLAGS="$CXXFLAGS \$(THREADSCXXFLAGS) $CLANGCXXFLAGS" michael@0: michael@0: michael@0: michael@0: michael@0: # append all config cppflags michael@0: CPPFLAGS="$CPPFLAGS $CONFIG_CPPFLAGS $UCONFIG_CPPFLAGS" michael@0: michael@0: echo "CPPFLAGS=$CPPFLAGS" michael@0: echo "CFLAGS=$CFLAGS" michael@0: echo "CXXFLAGS=$CXXFLAGS" michael@0: michael@0: michael@0: # output the Makefiles michael@0: 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" michael@0: michael@0: cat >confcache <<\_ACEOF michael@0: # This file is a shell script that caches the results of configure michael@0: # tests run on this system so they can be shared between configure michael@0: # scripts and configure runs, see configure's option --config-cache. michael@0: # It is not useful on other systems. If it contains results you don't michael@0: # want to keep, you may remove or edit it. michael@0: # michael@0: # config.status only pays attention to the cache file if you give it michael@0: # the --recheck option to rerun configure. michael@0: # michael@0: # `ac_cv_env_foo' variables (set or unset) will be overridden when michael@0: # loading this file, other *unset* `ac_cv_foo' will be assigned the michael@0: # following values. michael@0: michael@0: _ACEOF michael@0: michael@0: # The following way of writing the cache mishandles newlines in values, michael@0: # but we know of no workaround that is simple, portable, and efficient. michael@0: # So, we kill variables containing newlines. michael@0: # Ultrix sh set writes to stderr and can't be redirected directly, michael@0: # and sets the high bit in the cache file unless we assign to the vars. michael@0: ( michael@0: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do michael@0: eval ac_val=\$$ac_var michael@0: case $ac_val in #( michael@0: *${as_nl}*) michael@0: case $ac_var in #( michael@0: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 michael@0: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; michael@0: esac michael@0: case $ac_var in #( michael@0: _ | IFS | as_nl) ;; #( michael@0: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( michael@0: *) { eval $ac_var=; unset $ac_var;} ;; michael@0: esac ;; michael@0: esac michael@0: done michael@0: michael@0: (set) 2>&1 | michael@0: case $as_nl`(ac_space=' '; set) 2>&1` in #( michael@0: *${as_nl}ac_space=\ *) michael@0: # `set' does not quote correctly, so add quotes: double-quote michael@0: # substitution turns \\\\ into \\, and sed turns \\ into \. michael@0: sed -n \ michael@0: "s/'/'\\\\''/g; michael@0: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" michael@0: ;; #( michael@0: *) michael@0: # `set' quotes correctly as required by POSIX, so do not add quotes. michael@0: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" michael@0: ;; michael@0: esac | michael@0: sort michael@0: ) | michael@0: sed ' michael@0: /^ac_cv_env_/b end michael@0: t clear michael@0: :clear michael@0: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ michael@0: t end michael@0: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ michael@0: :end' >>confcache michael@0: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else michael@0: if test -w "$cache_file"; then michael@0: if test "x$cache_file" != "x/dev/null"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 michael@0: $as_echo "$as_me: updating cache $cache_file" >&6;} michael@0: if test ! -f "$cache_file" || test -h "$cache_file"; then michael@0: cat confcache >"$cache_file" michael@0: else michael@0: case $cache_file in #( michael@0: */* | ?:*) michael@0: mv -f confcache "$cache_file"$$ && michael@0: mv -f "$cache_file"$$ "$cache_file" ;; #( michael@0: *) michael@0: mv -f confcache "$cache_file" ;; michael@0: esac michael@0: fi michael@0: fi michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 michael@0: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} michael@0: fi michael@0: fi michael@0: rm -f confcache michael@0: michael@0: test "x$prefix" = xNONE && prefix=$ac_default_prefix michael@0: # Let make expand exec_prefix. michael@0: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' michael@0: michael@0: # Transform confdefs.h into DEFS. michael@0: # Protect against shell expansion while executing Makefile rules. michael@0: # Protect against Makefile macro expansion. michael@0: # michael@0: # If the first sed substitution is executed (which looks for macros that michael@0: # take arguments), then branch to the quote section. Otherwise, michael@0: # look for a macro that doesn't take arguments. michael@0: ac_script=' michael@0: :mline michael@0: /\\$/{ michael@0: N michael@0: s,\\\n,, michael@0: b mline michael@0: } michael@0: t clear michael@0: :clear michael@0: s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g michael@0: t quote michael@0: s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g michael@0: t quote michael@0: b any michael@0: :quote michael@0: s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g michael@0: s/\[/\\&/g michael@0: s/\]/\\&/g michael@0: s/\$/$$/g michael@0: H michael@0: :any michael@0: ${ michael@0: g michael@0: s/^\n// michael@0: s/\n/ /g michael@0: p michael@0: } michael@0: ' michael@0: DEFS=`sed -n "$ac_script" confdefs.h` michael@0: michael@0: michael@0: ac_libobjs= michael@0: ac_ltlibobjs= michael@0: U= michael@0: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue michael@0: # 1. Remove the extension, and $U if already installed. michael@0: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' michael@0: ac_i=`$as_echo "$ac_i" | sed "$ac_script"` michael@0: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR michael@0: # will be set to the directory where LIBOBJS objects are built. michael@0: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" michael@0: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' michael@0: done michael@0: LIBOBJS=$ac_libobjs michael@0: michael@0: LTLIBOBJS=$ac_ltlibobjs michael@0: michael@0: michael@0: michael@0: michael@0: : "${CONFIG_STATUS=./config.status}" michael@0: ac_write_fail=0 michael@0: ac_clean_files_save=$ac_clean_files michael@0: ac_clean_files="$ac_clean_files $CONFIG_STATUS" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 michael@0: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} michael@0: as_write_fail=0 michael@0: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 michael@0: #! $SHELL michael@0: # Generated by $as_me. michael@0: # Run this file to recreate the current configuration. michael@0: # Compiler output produced by configure, useful for debugging michael@0: # configure, is in config.log if it exists. michael@0: michael@0: debug=false michael@0: ac_cs_recheck=false michael@0: ac_cs_silent=false michael@0: michael@0: SHELL=\${CONFIG_SHELL-$SHELL} michael@0: export SHELL michael@0: _ASEOF michael@0: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 michael@0: ## -------------------- ## michael@0: ## M4sh Initialization. ## michael@0: ## -------------------- ## michael@0: michael@0: # Be more Bourne compatible michael@0: DUALCASE=1; export DUALCASE # for MKS sh michael@0: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : michael@0: emulate sh michael@0: NULLCMD=: michael@0: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which michael@0: # is contrary to our usage. Disable this feature. michael@0: alias -g '${1+"$@"}'='"$@"' michael@0: setopt NO_GLOB_SUBST michael@0: else michael@0: case `(set -o) 2>/dev/null` in #( michael@0: *posix*) : michael@0: set -o posix ;; #( michael@0: *) : michael@0: ;; michael@0: esac michael@0: fi michael@0: michael@0: michael@0: as_nl=' michael@0: ' michael@0: export as_nl michael@0: # Printing a long string crashes Solaris 7 /usr/bin/printf. michael@0: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo michael@0: # Prefer a ksh shell builtin over an external printf program on Solaris, michael@0: # but without wasting forks for bash or zsh. michael@0: if test -z "$BASH_VERSION$ZSH_VERSION" \ michael@0: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='print -r --' michael@0: as_echo_n='print -rn --' michael@0: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then michael@0: as_echo='printf %s\n' michael@0: as_echo_n='printf %s' michael@0: else michael@0: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then michael@0: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' michael@0: as_echo_n='/usr/ucb/echo -n' michael@0: else michael@0: as_echo_body='eval expr "X$1" : "X\\(.*\\)"' michael@0: as_echo_n_body='eval michael@0: arg=$1; michael@0: case $arg in #( michael@0: *"$as_nl"*) michael@0: expr "X$arg" : "X\\(.*\\)$as_nl"; michael@0: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; michael@0: esac; michael@0: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" michael@0: ' michael@0: export as_echo_n_body michael@0: as_echo_n='sh -c $as_echo_n_body as_echo' michael@0: fi michael@0: export as_echo_body michael@0: as_echo='sh -c $as_echo_body as_echo' michael@0: fi michael@0: michael@0: # The user is always right. michael@0: if test "${PATH_SEPARATOR+set}" != set; then michael@0: PATH_SEPARATOR=: michael@0: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { michael@0: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || michael@0: PATH_SEPARATOR=';' michael@0: } michael@0: fi michael@0: michael@0: michael@0: # IFS michael@0: # We need space, tab and new line, in precisely that order. Quoting is michael@0: # there to prevent editors from complaining about space-tab. michael@0: # (If _AS_PATH_WALK were called with IFS unset, it would disable word michael@0: # splitting by setting IFS to empty value.) michael@0: IFS=" "" $as_nl" michael@0: michael@0: # Find who we are. Look in the path if we contain no directory separator. michael@0: as_myself= michael@0: case $0 in #(( michael@0: *[\\/]* ) as_myself=$0 ;; michael@0: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR michael@0: for as_dir in $PATH michael@0: do michael@0: IFS=$as_save_IFS michael@0: test -z "$as_dir" && as_dir=. michael@0: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break michael@0: done michael@0: IFS=$as_save_IFS michael@0: michael@0: ;; michael@0: esac michael@0: # We did not find ourselves, most probably we were run as `sh COMMAND' michael@0: # in which case we are not to be found in the path. michael@0: if test "x$as_myself" = x; then michael@0: as_myself=$0 michael@0: fi michael@0: if test ! -f "$as_myself"; then michael@0: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 michael@0: exit 1 michael@0: fi michael@0: michael@0: # Unset variables that we do not need and which cause bugs (e.g. in michael@0: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" michael@0: # suppresses any "Segmentation fault" message there. '((' could michael@0: # trigger a bug in pdksh 5.2.14. michael@0: for as_var in BASH_ENV ENV MAIL MAILPATH michael@0: do eval test x\${$as_var+set} = xset \ michael@0: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : michael@0: done michael@0: PS1='$ ' michael@0: PS2='> ' michael@0: PS4='+ ' michael@0: michael@0: # NLS nuisances. michael@0: LC_ALL=C michael@0: export LC_ALL michael@0: LANGUAGE=C michael@0: export LANGUAGE michael@0: michael@0: # CDPATH. michael@0: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH michael@0: michael@0: michael@0: # as_fn_error STATUS ERROR [LINENO LOG_FD] michael@0: # ---------------------------------------- michael@0: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are michael@0: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the michael@0: # script with STATUS, using 1 if that was 0. michael@0: as_fn_error () michael@0: { michael@0: as_status=$1; test $as_status -eq 0 && as_status=1 michael@0: if test "$4"; then michael@0: as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack michael@0: $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 michael@0: fi michael@0: $as_echo "$as_me: error: $2" >&2 michael@0: as_fn_exit $as_status michael@0: } # as_fn_error michael@0: michael@0: michael@0: # as_fn_set_status STATUS michael@0: # ----------------------- michael@0: # Set $? to STATUS, without forking. michael@0: as_fn_set_status () michael@0: { michael@0: return $1 michael@0: } # as_fn_set_status michael@0: michael@0: # as_fn_exit STATUS michael@0: # ----------------- michael@0: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. michael@0: as_fn_exit () michael@0: { michael@0: set +e michael@0: as_fn_set_status $1 michael@0: exit $1 michael@0: } # as_fn_exit michael@0: michael@0: # as_fn_unset VAR michael@0: # --------------- michael@0: # Portably unset VAR. michael@0: as_fn_unset () michael@0: { michael@0: { eval $1=; unset $1;} michael@0: } michael@0: as_unset=as_fn_unset michael@0: # as_fn_append VAR VALUE michael@0: # ---------------------- michael@0: # Append the text in VALUE to the end of the definition contained in VAR. Take michael@0: # advantage of any shell optimizations that allow amortized linear growth over michael@0: # repeated appends, instead of the typical quadratic growth present in naive michael@0: # implementations. michael@0: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : michael@0: eval 'as_fn_append () michael@0: { michael@0: eval $1+=\$2 michael@0: }' michael@0: else michael@0: as_fn_append () michael@0: { michael@0: eval $1=\$$1\$2 michael@0: } michael@0: fi # as_fn_append michael@0: michael@0: # as_fn_arith ARG... michael@0: # ------------------ michael@0: # Perform arithmetic evaluation on the ARGs, and store the result in the michael@0: # global $as_val. Take advantage of shells that can avoid forks. The arguments michael@0: # must be portable across $(()) and expr. michael@0: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : michael@0: eval 'as_fn_arith () michael@0: { michael@0: as_val=$(( $* )) michael@0: }' michael@0: else michael@0: as_fn_arith () michael@0: { michael@0: as_val=`expr "$@" || test $? -eq 1` michael@0: } michael@0: fi # as_fn_arith michael@0: michael@0: michael@0: if expr a : '\(a\)' >/dev/null 2>&1 && michael@0: test "X`expr 00001 : '.*\(...\)'`" = X001; then michael@0: as_expr=expr michael@0: else michael@0: as_expr=false michael@0: fi michael@0: michael@0: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then michael@0: as_basename=basename michael@0: else michael@0: as_basename=false michael@0: fi michael@0: michael@0: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then michael@0: as_dirname=dirname michael@0: else michael@0: as_dirname=false michael@0: fi michael@0: michael@0: as_me=`$as_basename -- "$0" || michael@0: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ michael@0: X"$0" : 'X\(//\)$' \| \ michael@0: X"$0" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X/"$0" | michael@0: sed '/^.*\/\([^/][^/]*\)\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\/\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: michael@0: # Avoid depending upon Character Ranges. michael@0: as_cr_letters='abcdefghijklmnopqrstuvwxyz' michael@0: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' michael@0: as_cr_Letters=$as_cr_letters$as_cr_LETTERS michael@0: as_cr_digits='0123456789' michael@0: as_cr_alnum=$as_cr_Letters$as_cr_digits michael@0: michael@0: ECHO_C= ECHO_N= ECHO_T= michael@0: case `echo -n x` in #((((( michael@0: -n*) michael@0: case `echo 'xy\c'` in michael@0: *c*) ECHO_T=' ';; # ECHO_T is single tab character. michael@0: xy) ECHO_C='\c';; michael@0: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null michael@0: ECHO_T=' ';; michael@0: esac;; michael@0: *) michael@0: ECHO_N='-n';; michael@0: esac michael@0: michael@0: rm -f conf$$ conf$$.exe conf$$.file michael@0: if test -d conf$$.dir; then michael@0: rm -f conf$$.dir/conf$$.file michael@0: else michael@0: rm -f conf$$.dir michael@0: mkdir conf$$.dir 2>/dev/null michael@0: fi michael@0: if (echo >conf$$.file) 2>/dev/null; then michael@0: if ln -s conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s='ln -s' michael@0: # ... but there are two gotchas: michael@0: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. michael@0: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. michael@0: # In both cases, we have to default to `cp -p'. michael@0: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || michael@0: as_ln_s='cp -p' michael@0: elif ln conf$$.file conf$$ 2>/dev/null; then michael@0: as_ln_s=ln michael@0: else michael@0: as_ln_s='cp -p' michael@0: fi michael@0: else michael@0: as_ln_s='cp -p' michael@0: fi michael@0: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file michael@0: rmdir conf$$.dir 2>/dev/null michael@0: michael@0: michael@0: # as_fn_mkdir_p michael@0: # ------------- michael@0: # Create "$as_dir" as a directory, including parents if necessary. michael@0: as_fn_mkdir_p () michael@0: { michael@0: michael@0: case $as_dir in #( michael@0: -*) as_dir=./$as_dir;; michael@0: esac michael@0: test -d "$as_dir" || eval $as_mkdir_p || { michael@0: as_dirs= michael@0: while :; do michael@0: case $as_dir in #( michael@0: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( michael@0: *) as_qdir=$as_dir;; michael@0: esac michael@0: as_dirs="'$as_qdir' $as_dirs" michael@0: as_dir=`$as_dirname -- "$as_dir" || michael@0: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$as_dir" : 'X\(//\)[^/]' \| \ michael@0: X"$as_dir" : 'X\(//\)$' \| \ michael@0: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$as_dir" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: test -d "$as_dir" && break michael@0: done michael@0: test -z "$as_dirs" || eval "mkdir $as_dirs" michael@0: } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" michael@0: michael@0: michael@0: } # as_fn_mkdir_p michael@0: if mkdir -p . 2>/dev/null; then michael@0: as_mkdir_p='mkdir -p "$as_dir"' michael@0: else michael@0: test -d ./-p && rmdir ./-p michael@0: as_mkdir_p=false michael@0: fi michael@0: michael@0: if test -x / >/dev/null 2>&1; then michael@0: as_test_x='test -x' michael@0: else michael@0: if ls -dL / >/dev/null 2>&1; then michael@0: as_ls_L_option=L michael@0: else michael@0: as_ls_L_option= michael@0: fi michael@0: as_test_x=' michael@0: eval sh -c '\'' michael@0: if test -d "$1"; then michael@0: test -d "$1/."; michael@0: else michael@0: case $1 in #( michael@0: -*)set "./$1";; michael@0: esac; michael@0: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( michael@0: ???[sx]*):;;*)false;;esac;fi michael@0: '\'' sh michael@0: ' michael@0: fi michael@0: as_executable_p=$as_test_x michael@0: michael@0: # Sed expression to map a string onto a valid CPP name. michael@0: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: # Sed expression to map a string onto a valid variable name. michael@0: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" michael@0: michael@0: michael@0: exec 6>&1 michael@0: ## ----------------------------------- ## michael@0: ## Main body of $CONFIG_STATUS script. ## michael@0: ## ----------------------------------- ## michael@0: _ASEOF michael@0: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: # Save the log message, to keep $0 and so on meaningful, and to michael@0: # report actual input values of CONFIG_FILES etc. instead of their michael@0: # values after options handling. michael@0: ac_log=" michael@0: This file was extended by $as_me, which was michael@0: generated by GNU Autoconf 2.68. Invocation command line was michael@0: michael@0: CONFIG_FILES = $CONFIG_FILES michael@0: CONFIG_HEADERS = $CONFIG_HEADERS michael@0: CONFIG_LINKS = $CONFIG_LINKS michael@0: CONFIG_COMMANDS = $CONFIG_COMMANDS michael@0: $ $0 $@ michael@0: michael@0: on `(hostname || uname -n) 2>/dev/null | sed 1q` michael@0: " michael@0: michael@0: _ACEOF michael@0: michael@0: case $ac_config_files in *" michael@0: "*) set x $ac_config_files; shift; ac_config_files=$*;; michael@0: esac michael@0: michael@0: michael@0: michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: # Files that config.status was made for. michael@0: config_files="$ac_config_files" michael@0: michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: ac_cs_usage="\ michael@0: \`$as_me' instantiates files and other configuration actions michael@0: from templates according to the current configuration. Unless the files michael@0: and actions are specified as TAGs, all are instantiated by default. michael@0: michael@0: Usage: $0 [OPTION]... [TAG]... michael@0: michael@0: -h, --help print this help, then exit michael@0: -V, --version print version number and configuration settings, then exit michael@0: --config print configuration, then exit michael@0: -q, --quiet, --silent michael@0: do not print progress messages michael@0: -d, --debug don't remove temporary files michael@0: --recheck update $as_me by reconfiguring in the same conditions michael@0: --file=FILE[:TEMPLATE] michael@0: instantiate the configuration file FILE michael@0: michael@0: Configuration files: michael@0: $config_files michael@0: michael@0: Report bugs to the package provider." michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" michael@0: ac_cs_version="\\ michael@0: config.status michael@0: configured by $0, generated by GNU Autoconf 2.68, michael@0: with options \\"\$ac_cs_config\\" michael@0: michael@0: Copyright (C) 2010 Free Software Foundation, Inc. michael@0: This config.status script is free software; the Free Software Foundation michael@0: gives unlimited permission to copy, distribute and modify it." michael@0: michael@0: ac_pwd='$ac_pwd' michael@0: srcdir='$srcdir' michael@0: INSTALL='$INSTALL' michael@0: test -n "\$AWK" || AWK=awk michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: # The default lists apply if the user does not specify any file. michael@0: ac_need_defaults=: michael@0: while test $# != 0 michael@0: do michael@0: case $1 in michael@0: --*=?*) michael@0: ac_option=`expr "X$1" : 'X\([^=]*\)='` michael@0: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` michael@0: ac_shift=: michael@0: ;; michael@0: --*=) michael@0: ac_option=`expr "X$1" : 'X\([^=]*\)='` michael@0: ac_optarg= michael@0: ac_shift=: michael@0: ;; michael@0: *) michael@0: ac_option=$1 michael@0: ac_optarg=$2 michael@0: ac_shift=shift michael@0: ;; michael@0: esac michael@0: michael@0: case $ac_option in michael@0: # Handling of the options. michael@0: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) michael@0: ac_cs_recheck=: ;; michael@0: --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) michael@0: $as_echo "$ac_cs_version"; exit ;; michael@0: --config | --confi | --conf | --con | --co | --c ) michael@0: $as_echo "$ac_cs_config"; exit ;; michael@0: --debug | --debu | --deb | --de | --d | -d ) michael@0: debug=: ;; michael@0: --file | --fil | --fi | --f ) michael@0: $ac_shift michael@0: case $ac_optarg in michael@0: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; michael@0: '') as_fn_error $? "missing file argument" ;; michael@0: esac michael@0: as_fn_append CONFIG_FILES " '$ac_optarg'" michael@0: ac_need_defaults=false;; michael@0: --he | --h | --help | --hel | -h ) michael@0: $as_echo "$ac_cs_usage"; exit ;; michael@0: -q | -quiet | --quiet | --quie | --qui | --qu | --q \ michael@0: | -silent | --silent | --silen | --sile | --sil | --si | --s) michael@0: ac_cs_silent=: ;; michael@0: michael@0: # This is an error. michael@0: -*) as_fn_error $? "unrecognized option: \`$1' michael@0: Try \`$0 --help' for more information." ;; michael@0: michael@0: *) as_fn_append ac_config_targets " $1" michael@0: ac_need_defaults=false ;; michael@0: michael@0: esac michael@0: shift michael@0: done michael@0: michael@0: ac_configure_extra_args= michael@0: michael@0: if $ac_cs_silent; then michael@0: exec 6>/dev/null michael@0: ac_configure_extra_args="$ac_configure_extra_args --silent" michael@0: fi michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: if \$ac_cs_recheck; then michael@0: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion michael@0: shift michael@0: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 michael@0: CONFIG_SHELL='$SHELL' michael@0: export CONFIG_SHELL michael@0: exec "\$@" michael@0: fi michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: exec 5>>config.log michael@0: { michael@0: echo michael@0: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX michael@0: ## Running $as_me. ## michael@0: _ASBOX michael@0: $as_echo "$ac_log" michael@0: } >&5 michael@0: michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: michael@0: # Handling of arguments. michael@0: for ac_config_target in $ac_config_targets michael@0: do michael@0: case $ac_config_target in michael@0: "icudefs.mk") CONFIG_FILES="$CONFIG_FILES icudefs.mk" ;; michael@0: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; michael@0: "data/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES data/pkgdataMakefile" ;; michael@0: "config/Makefile.inc") CONFIG_FILES="$CONFIG_FILES config/Makefile.inc" ;; michael@0: "config/icu.pc") CONFIG_FILES="$CONFIG_FILES config/icu.pc" ;; michael@0: "config/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES config/pkgdataMakefile" ;; michael@0: "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;; michael@0: "stubdata/Makefile") CONFIG_FILES="$CONFIG_FILES stubdata/Makefile" ;; michael@0: "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;; michael@0: "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;; michael@0: "layout/Makefile") CONFIG_FILES="$CONFIG_FILES layout/Makefile" ;; michael@0: "layoutex/Makefile") CONFIG_FILES="$CONFIG_FILES layoutex/Makefile" ;; michael@0: "io/Makefile") CONFIG_FILES="$CONFIG_FILES io/Makefile" ;; michael@0: "extra/Makefile") CONFIG_FILES="$CONFIG_FILES extra/Makefile" ;; michael@0: "extra/uconv/Makefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/Makefile" ;; michael@0: "extra/uconv/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES extra/uconv/pkgdataMakefile" ;; michael@0: "extra/scrptrun/Makefile") CONFIG_FILES="$CONFIG_FILES extra/scrptrun/Makefile" ;; michael@0: "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; michael@0: "tools/ctestfw/Makefile") CONFIG_FILES="$CONFIG_FILES tools/ctestfw/Makefile" ;; michael@0: "tools/toolutil/Makefile") CONFIG_FILES="$CONFIG_FILES tools/toolutil/Makefile" ;; michael@0: "tools/makeconv/Makefile") CONFIG_FILES="$CONFIG_FILES tools/makeconv/Makefile" ;; michael@0: "tools/genrb/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genrb/Makefile" ;; michael@0: "tools/genccode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genccode/Makefile" ;; michael@0: "tools/gencmn/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencmn/Makefile" ;; michael@0: "tools/gencnval/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencnval/Makefile" ;; michael@0: "tools/gendict/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gendict/Makefile" ;; michael@0: "tools/gentest/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gentest/Makefile" ;; michael@0: "tools/gennorm2/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gennorm2/Makefile" ;; michael@0: "tools/genbrk/Makefile") CONFIG_FILES="$CONFIG_FILES tools/genbrk/Makefile" ;; michael@0: "tools/gensprep/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gensprep/Makefile" ;; michael@0: "tools/icuinfo/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuinfo/Makefile" ;; michael@0: "tools/icupkg/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icupkg/Makefile" ;; michael@0: "tools/icuswap/Makefile") CONFIG_FILES="$CONFIG_FILES tools/icuswap/Makefile" ;; michael@0: "tools/pkgdata/Makefile") CONFIG_FILES="$CONFIG_FILES tools/pkgdata/Makefile" ;; michael@0: "tools/tzcode/Makefile") CONFIG_FILES="$CONFIG_FILES tools/tzcode/Makefile" ;; michael@0: "tools/gencfu/Makefile") CONFIG_FILES="$CONFIG_FILES tools/gencfu/Makefile" ;; michael@0: "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; michael@0: "test/compat/Makefile") CONFIG_FILES="$CONFIG_FILES test/compat/Makefile" ;; michael@0: "test/testdata/Makefile") CONFIG_FILES="$CONFIG_FILES test/testdata/Makefile" ;; michael@0: "test/testdata/pkgdataMakefile") CONFIG_FILES="$CONFIG_FILES test/testdata/pkgdataMakefile" ;; michael@0: "test/hdrtst/Makefile") CONFIG_FILES="$CONFIG_FILES test/hdrtst/Makefile" ;; michael@0: "test/intltest/Makefile") CONFIG_FILES="$CONFIG_FILES test/intltest/Makefile" ;; michael@0: "test/cintltst/Makefile") CONFIG_FILES="$CONFIG_FILES test/cintltst/Makefile" ;; michael@0: "test/iotest/Makefile") CONFIG_FILES="$CONFIG_FILES test/iotest/Makefile" ;; michael@0: "test/letest/Makefile") CONFIG_FILES="$CONFIG_FILES test/letest/Makefile" ;; michael@0: "test/perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/Makefile" ;; michael@0: "test/perf/collationperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collationperf/Makefile" ;; michael@0: "test/perf/collperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/collperf/Makefile" ;; michael@0: "test/perf/dicttrieperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/dicttrieperf/Makefile" ;; michael@0: "test/perf/ubrkperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ubrkperf/Makefile" ;; michael@0: "test/perf/charperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/charperf/Makefile" ;; michael@0: "test/perf/convperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/convperf/Makefile" ;; michael@0: "test/perf/normperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/normperf/Makefile" ;; michael@0: "test/perf/DateFmtPerf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/DateFmtPerf/Makefile" ;; michael@0: "test/perf/howExpensiveIs/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/howExpensiveIs/Makefile" ;; michael@0: "test/perf/strsrchperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/strsrchperf/Makefile" ;; michael@0: "test/perf/unisetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/unisetperf/Makefile" ;; michael@0: "test/perf/usetperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/usetperf/Makefile" ;; michael@0: "test/perf/ustrperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/ustrperf/Makefile" ;; michael@0: "test/perf/utfperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utfperf/Makefile" ;; michael@0: "test/perf/utrie2perf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/utrie2perf/Makefile" ;; michael@0: "test/perf/leperf/Makefile") CONFIG_FILES="$CONFIG_FILES test/perf/leperf/Makefile" ;; michael@0: "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;; michael@0: "samples/date/Makefile") CONFIG_FILES="$CONFIG_FILES samples/date/Makefile" ;; michael@0: "samples/cal/Makefile") CONFIG_FILES="$CONFIG_FILES samples/cal/Makefile" ;; michael@0: "samples/layout/Makefile") CONFIG_FILES="$CONFIG_FILES samples/layout/Makefile" ;; michael@0: michael@0: *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; michael@0: esac michael@0: done michael@0: michael@0: michael@0: # If the user did not use the arguments to specify the items to instantiate, michael@0: # then the envvar interface is used. Set only those that are not. michael@0: # We use the long form for the default assignment because of an extremely michael@0: # bizarre bug on SunOS 4.1.3. michael@0: if $ac_need_defaults; then michael@0: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files michael@0: fi michael@0: michael@0: # Have a temporary directory for convenience. Make it in the build tree michael@0: # simply because there is no reason against having it here, and in addition, michael@0: # creating and moving files from /tmp can sometimes cause problems. michael@0: # Hook for its removal unless debugging. michael@0: # Note that there is a small window in which the directory will not be cleaned: michael@0: # after its creation but before its name has been assigned to `$tmp'. michael@0: $debug || michael@0: { michael@0: tmp= ac_tmp= michael@0: trap 'exit_status=$? michael@0: : "${ac_tmp:=$tmp}" michael@0: { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status michael@0: ' 0 michael@0: trap 'as_fn_exit 1' 1 2 13 15 michael@0: } michael@0: # Create a (secure) tmp directory for tmp files. michael@0: michael@0: { michael@0: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && michael@0: test -d "$tmp" michael@0: } || michael@0: { michael@0: tmp=./conf$$-$RANDOM michael@0: (umask 077 && mkdir "$tmp") michael@0: } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 michael@0: ac_tmp=$tmp michael@0: michael@0: # Set up the scripts for CONFIG_FILES section. michael@0: # No need to generate them if there are no CONFIG_FILES. michael@0: # This happens for instance with `./config.status config.h'. michael@0: if test -n "$CONFIG_FILES"; then michael@0: michael@0: michael@0: ac_cr=`echo X | tr X '\015'` michael@0: # On cygwin, bash can eat \r inside `` if the user requested igncr. michael@0: # But we know of no other shell where ac_cr would be empty at this michael@0: # point, so we can use a bashism as a fallback. michael@0: if test "x$ac_cr" = x; then michael@0: eval ac_cr=\$\'\\r\' michael@0: fi michael@0: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` michael@0: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then michael@0: ac_cs_awk_cr='\\r' michael@0: else michael@0: ac_cs_awk_cr=$ac_cr michael@0: fi michael@0: michael@0: echo 'BEGIN {' >"$ac_tmp/subs1.awk" && michael@0: _ACEOF michael@0: michael@0: michael@0: { michael@0: echo "cat >conf$$subs.awk <<_ACEOF" && michael@0: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && michael@0: echo "_ACEOF" michael@0: } >conf$$subs.sh || michael@0: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 michael@0: ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` michael@0: ac_delim='%!_!# ' michael@0: for ac_last_try in false false false false false :; do michael@0: . ./conf$$subs.sh || michael@0: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 michael@0: michael@0: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` michael@0: if test $ac_delim_n = $ac_delim_num; then michael@0: break michael@0: elif $ac_last_try; then michael@0: as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 michael@0: else michael@0: ac_delim="$ac_delim!$ac_delim _$ac_delim!! " michael@0: fi michael@0: done michael@0: rm -f conf$$subs.sh michael@0: michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && michael@0: _ACEOF michael@0: sed -n ' michael@0: h michael@0: s/^/S["/; s/!.*/"]=/ michael@0: p michael@0: g michael@0: s/^[^!]*!// michael@0: :repl michael@0: t repl michael@0: s/'"$ac_delim"'$// michael@0: t delim michael@0: :nl michael@0: h michael@0: s/\(.\{148\}\)..*/\1/ michael@0: t more1 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ michael@0: p michael@0: n michael@0: b repl michael@0: :more1 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ michael@0: p michael@0: g michael@0: s/.\{148\}// michael@0: t nl michael@0: :delim michael@0: h michael@0: s/\(.\{148\}\)..*/\1/ michael@0: t more2 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/"/ michael@0: p michael@0: b michael@0: :more2 michael@0: s/["\\]/\\&/g; s/^/"/; s/$/"\\/ michael@0: p michael@0: g michael@0: s/.\{148\}// michael@0: t delim michael@0: ' >$CONFIG_STATUS || ac_write_fail=1 michael@0: rm -f conf$$subs.awk michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: _ACAWK michael@0: cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && michael@0: for (key in S) S_is_set[key] = 1 michael@0: FS = "" michael@0: michael@0: } michael@0: { michael@0: line = $ 0 michael@0: nfields = split(line, field, "@") michael@0: substed = 0 michael@0: len = length(field[1]) michael@0: for (i = 2; i < nfields; i++) { michael@0: key = field[i] michael@0: keylen = length(key) michael@0: if (S_is_set[key]) { michael@0: value = S[key] michael@0: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) michael@0: len += length(value) + length(field[++i]) michael@0: substed = 1 michael@0: } else michael@0: len += 1 + keylen michael@0: } michael@0: michael@0: print line michael@0: } michael@0: michael@0: _ACAWK michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then michael@0: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" michael@0: else michael@0: cat michael@0: fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ michael@0: || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 michael@0: _ACEOF michael@0: michael@0: # VPATH may cause trouble with some makes, so we remove sole $(srcdir), michael@0: # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and michael@0: # trailing colons and then remove the whole line if VPATH becomes empty michael@0: # (actually we leave an empty line to preserve line numbers). michael@0: if test "x$srcdir" = x.; then michael@0: ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ michael@0: h michael@0: s/// michael@0: s/^/:/ michael@0: s/[ ]*$/:/ michael@0: s/:\$(srcdir):/:/g michael@0: s/:\${srcdir}:/:/g michael@0: s/:@srcdir@:/:/g michael@0: s/^:*// michael@0: s/:*$// michael@0: x michael@0: s/\(=[ ]*\).*/\1/ michael@0: G michael@0: s/\n// michael@0: s/^[^=]*=[ ]*$// michael@0: }' michael@0: fi michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: fi # test -n "$CONFIG_FILES" michael@0: michael@0: michael@0: eval set X " :F $CONFIG_FILES " michael@0: shift michael@0: for ac_tag michael@0: do michael@0: case $ac_tag in michael@0: :[FHLC]) ac_mode=$ac_tag; continue;; michael@0: esac michael@0: case $ac_mode$ac_tag in michael@0: :[FHL]*:*);; michael@0: :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; michael@0: :[FH]-) ac_tag=-:-;; michael@0: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; michael@0: esac michael@0: ac_save_IFS=$IFS michael@0: IFS=: michael@0: set x $ac_tag michael@0: IFS=$ac_save_IFS michael@0: shift michael@0: ac_file=$1 michael@0: shift michael@0: michael@0: case $ac_mode in michael@0: :L) ac_source=$1;; michael@0: :[FH]) michael@0: ac_file_inputs= michael@0: for ac_f michael@0: do michael@0: case $ac_f in michael@0: -) ac_f="$ac_tmp/stdin";; michael@0: *) # Look for the file first in the build tree, then in the source tree michael@0: # (if the path is not absolute). The absolute path cannot be DOS-style, michael@0: # because $ac_f cannot contain `:'. michael@0: test -f "$ac_f" || michael@0: case $ac_f in michael@0: [\\/$]*) false;; michael@0: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; michael@0: esac || michael@0: as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; michael@0: esac michael@0: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac michael@0: as_fn_append ac_file_inputs " '$ac_f'" michael@0: done michael@0: michael@0: # Let's still pretend it is `configure' which instantiates (i.e., don't michael@0: # use $as_me), people would be surprised to read: michael@0: # /* config.h. Generated by config.status. */ michael@0: configure_input='Generated from '` michael@0: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' michael@0: `' by configure.' michael@0: if test x"$ac_file" != x-; then michael@0: configure_input="$ac_file. $configure_input" michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 michael@0: $as_echo "$as_me: creating $ac_file" >&6;} michael@0: fi michael@0: # Neutralize special characters interpreted by sed in replacement strings. michael@0: case $configure_input in #( michael@0: *\&* | *\|* | *\\* ) michael@0: ac_sed_conf_input=`$as_echo "$configure_input" | michael@0: sed 's/[\\\\&|]/\\\\&/g'`;; #( michael@0: *) ac_sed_conf_input=$configure_input;; michael@0: esac michael@0: michael@0: case $ac_tag in michael@0: *:-:* | *:-) cat >"$ac_tmp/stdin" \ michael@0: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; michael@0: esac michael@0: ;; michael@0: esac michael@0: michael@0: ac_dir=`$as_dirname -- "$ac_file" || michael@0: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ michael@0: X"$ac_file" : 'X\(//\)[^/]' \| \ michael@0: X"$ac_file" : 'X\(//\)$' \| \ michael@0: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || michael@0: $as_echo X"$ac_file" | michael@0: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)[^/].*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\/\)$/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: /^X\(\/\).*/{ michael@0: s//\1/ michael@0: q michael@0: } michael@0: s/.*/./; q'` michael@0: as_dir="$ac_dir"; as_fn_mkdir_p michael@0: ac_builddir=. michael@0: michael@0: case "$ac_dir" in michael@0: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) michael@0: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` michael@0: # A ".." for each directory in $ac_dir_suffix. michael@0: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` michael@0: case $ac_top_builddir_sub in michael@0: "") ac_top_builddir_sub=. ac_top_build_prefix= ;; michael@0: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; michael@0: esac ;; michael@0: esac michael@0: ac_abs_top_builddir=$ac_pwd michael@0: ac_abs_builddir=$ac_pwd$ac_dir_suffix michael@0: # for backward compatibility: michael@0: ac_top_builddir=$ac_top_build_prefix michael@0: michael@0: case $srcdir in michael@0: .) # We are building in place. michael@0: ac_srcdir=. michael@0: ac_top_srcdir=$ac_top_builddir_sub michael@0: ac_abs_top_srcdir=$ac_pwd ;; michael@0: [\\/]* | ?:[\\/]* ) # Absolute name. michael@0: ac_srcdir=$srcdir$ac_dir_suffix; michael@0: ac_top_srcdir=$srcdir michael@0: ac_abs_top_srcdir=$srcdir ;; michael@0: *) # Relative name. michael@0: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix michael@0: ac_top_srcdir=$ac_top_build_prefix$srcdir michael@0: ac_abs_top_srcdir=$ac_pwd/$srcdir ;; michael@0: esac michael@0: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix michael@0: michael@0: michael@0: case $ac_mode in michael@0: :F) michael@0: # michael@0: # CONFIG_FILE michael@0: # michael@0: michael@0: case $INSTALL in michael@0: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; michael@0: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; michael@0: esac michael@0: _ACEOF michael@0: michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: # If the template does not know about datarootdir, expand it. michael@0: # FIXME: This hack should be removed a few years after 2.60. michael@0: ac_datarootdir_hack=; ac_datarootdir_seen= michael@0: ac_sed_dataroot=' michael@0: /datarootdir/ { michael@0: p michael@0: q michael@0: } michael@0: /@datadir@/p michael@0: /@docdir@/p michael@0: /@infodir@/p michael@0: /@localedir@/p michael@0: /@mandir@/p' michael@0: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in michael@0: *datarootdir*) ac_datarootdir_seen=yes;; michael@0: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 michael@0: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: ac_datarootdir_hack=' michael@0: s&@datadir@&$datadir&g michael@0: s&@docdir@&$docdir&g michael@0: s&@infodir@&$infodir&g michael@0: s&@localedir@&$localedir&g michael@0: s&@mandir@&$mandir&g michael@0: s&\\\${datarootdir}&$datarootdir&g' ;; michael@0: esac michael@0: _ACEOF michael@0: michael@0: # Neutralize VPATH when `$srcdir' = `.'. michael@0: # Shell code in configure.ac might set extrasub. michael@0: # FIXME: do we really want to maintain this feature? michael@0: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 michael@0: ac_sed_extra="$ac_vpsub michael@0: $extrasub michael@0: _ACEOF michael@0: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 michael@0: :t michael@0: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b michael@0: s|@configure_input@|$ac_sed_conf_input|;t t michael@0: s&@top_builddir@&$ac_top_builddir_sub&;t t michael@0: s&@top_build_prefix@&$ac_top_build_prefix&;t t michael@0: s&@srcdir@&$ac_srcdir&;t t michael@0: s&@abs_srcdir@&$ac_abs_srcdir&;t t michael@0: s&@top_srcdir@&$ac_top_srcdir&;t t michael@0: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t michael@0: s&@builddir@&$ac_builddir&;t t michael@0: s&@abs_builddir@&$ac_abs_builddir&;t t michael@0: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t michael@0: s&@INSTALL@&$ac_INSTALL&;t t michael@0: $ac_datarootdir_hack michael@0: " michael@0: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ michael@0: >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 michael@0: michael@0: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && michael@0: { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && michael@0: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ michael@0: "$ac_tmp/out"`; test -z "$ac_out"; } && michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' michael@0: which seems to be undefined. Please make sure it is defined" >&5 michael@0: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' michael@0: which seems to be undefined. Please make sure it is defined" >&2;} michael@0: michael@0: rm -f "$ac_tmp/stdin" michael@0: case $ac_file in michael@0: -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; michael@0: *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; michael@0: esac \ michael@0: || as_fn_error $? "could not create $ac_file" "$LINENO" 5 michael@0: ;; michael@0: michael@0: michael@0: michael@0: esac michael@0: michael@0: done # for ac_tag michael@0: michael@0: michael@0: as_fn_exit 0 michael@0: _ACEOF michael@0: ac_clean_files=$ac_clean_files_save michael@0: michael@0: test $ac_write_fail = 0 || michael@0: as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 michael@0: michael@0: michael@0: # configure is writing to config.log, and then calls config.status. michael@0: # config.status does its own redirection, appending to config.log. michael@0: # Unfortunately, on DOS this fails, as config.log is still kept open michael@0: # by configure, so config.status won't be able to write to it; its michael@0: # output is simply discarded. So we exec the FD to /dev/null, michael@0: # effectively closing config.log, so it can be properly (re)opened and michael@0: # appended to by config.status. When coming back to configure, we michael@0: # need to make the FD available again. michael@0: if test "$no_create" != yes; then michael@0: ac_cs_success=: michael@0: ac_config_status_args= michael@0: test "$silent" = yes && michael@0: ac_config_status_args="$ac_config_status_args --quiet" michael@0: exec 5>/dev/null michael@0: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false michael@0: exec 5>>config.log michael@0: # Use ||, not &&, to avoid exiting from the if with $? = 1, which michael@0: # would make configure fail if this is the last instruction. michael@0: $ac_cs_success || as_fn_exit 1 michael@0: fi michael@0: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 michael@0: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} michael@0: fi michael@0: michael@0: michael@0: echo michael@0: echo "ICU for C/C++ $VERSION is ready to be built." michael@0: echo "=== Important Notes: ===" michael@0: michael@0: echo "Data Packaging: $datapackaging" michael@0: echo " This means: $datapackaging_msg" michael@0: echo " To locate data: $datapackaging_howfound" michael@0: michael@0: if test -n "`$U_MAKE -v 2>&1 | grep '^GNU Make'`"; then michael@0: echo "Building ICU: Use a GNU make such as $U_MAKE to build ICU." michael@0: else michael@0: echo "** WARNING: $U_MAKE may not be GNU make." michael@0: echo "This may cause ICU to fail to build. Please make sure that GNU make" michael@0: echo "is in your PATH so that the configure script can detect its location." michael@0: fi michael@0: if test "x$AR" = "xfalse"; then michael@0: echo "*** WARNING: Archiver ar not found. Set AR= or fix PATH. Some builds (such as static) may fail." michael@0: fi michael@0: michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the version of \"$U_MAKE\"" >&5 michael@0: $as_echo_n "checking the version of \"$U_MAKE\"... " >&6; } michael@0: if "$U_MAKE" -f "$srcdir/config/gmakever.mk" PLATFORM="$platform"; then michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 michael@0: $as_echo "ok" >&6; } michael@0: else michael@0: { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old or test failed - try upgrading GNU Make" >&5 michael@0: $as_echo "too old or test failed - try upgrading GNU Make" >&6; } michael@0: fi michael@0: michael@0: michael@0: if test -n "$UCONFIG_CPPFLAGS"; then michael@0: HDRFILE="uconfig.h.prepend" michael@0: echo "*** WARNING: You must set the following flags before code compiled against this ICU will function properly:" michael@0: echo michael@0: echo " ${UCONFIG_CPPFLAGS}" michael@0: echo michael@0: 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.' michael@0: echo "Creating the file ${HDRFILE}" michael@0: echo michael@0: echo '--------------- ' "${HDRFILE}" michael@0: echo > "${HDRFILE}" michael@0: echo '/* ICU customizations: put these lines at the top of uconfig.h */' >> "${HDRFILE}" michael@0: echo >> "${HDRFILE}" michael@0: for flag in ${UCONFIG_CPPFLAGS}; michael@0: do michael@0: echo " /* $flag */" >> "${HDRFILE}" michael@0: case "${flag}" in michael@0: -D*=*) michael@0: \echo "${flag}" | sed -n 's%-D\([^=]*\)=%#define \1 %p' >> "${HDRFILE}" michael@0: \echo >> "${HDRFILE}" michael@0: ;; michael@0: -D*) michael@0: \echo "${flag}" | sed -n 's%-D\([^=]*\)%#define \1 %p' >> "${HDRFILE}" michael@0: \echo >> "${HDRFILE}" michael@0: ;; michael@0: *) michael@0: \echo "/* Not sure how to handle this argument: ${flag} */" >> "${HDRFILE}" michael@0: \echo >> "${HDRFILE}" michael@0: ;; michael@0: esac michael@0: done michael@0: cat "${HDRFILE}" michael@0: \echo "/* End of ${HDRFILE} ------------ */" >> "${HDRFILE}" michael@0: echo >> "${HDRFILE}" michael@0: echo '--------------- end ' "${HDRFILE}" michael@0: fi michael@0: michael@0: michael@0: if test -n "$UCONFIG_CFLAGS"; then michael@0: echo "C apps may want to build with CFLAGS = ${UCONFIG_CFLAGS}" michael@0: fi michael@0: michael@0: if test -n "$UCONFIG_CXXFLAGS"; then michael@0: echo "C++ apps may want to build with CXXFLAGS = ${UCONFIG_CXXFLAGS}" michael@0: fi michael@0: michael@0: if test "$tools" = false; michael@0: then michael@0: echo "## Note: you have disabled ICU's tools. This ICU cannot build its own data or tests." michael@0: echo "## Expect build failures in the 'data', 'test', and other directories." michael@0: fi michael@0: michael@0: $as_unset _CXX_CXXSUFFIX