2 # From configure.ac Revision: 43427 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.60a.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
12 ## --------------------- ##
13 ## M4sh Initialization. ##
14 ## --------------------- ##
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
27 BIN_SH=xpg4; export BIN_SH # for Tru64
28 DUALCASE=1; export DUALCASE # for MKS sh
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
69 # Find who we are. Look in the path if we contain no directory separator.
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
160 if test $as_have_required = yes && (eval ":
170 as_func_ret_success () {
173 as_func_ret_failure () {
178 if as_func_success; then
182 echo as_func_success failed.
185 if as_func_failure; then
187 echo as_func_failure succeeded.
190 if as_func_ret_success; then
194 echo as_func_ret_success failed.
197 if as_func_ret_failure; then
199 echo as_func_ret_failure succeeded.
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
206 echo positional parameters were not saved.
209 test \$exitcode = 0) || { (exit 1); exit 1; }
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 # Be Bourne compatible
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
250 BIN_SH=xpg4; export BIN_SH # for Tru64
251 DUALCASE=1; export DUALCASE # for MKS sh
256 CONFIG_SHELL=$as_shell
258 if { "$as_shell" 2> /dev/null <<\_ASEOF
259 # Be Bourne compatible
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
268 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
270 BIN_SH=xpg4; export BIN_SH # for Tru64
271 DUALCASE=1; export DUALCASE # for MKS sh
283 as_func_ret_success () {
286 as_func_ret_failure () {
291 if as_func_success; then
295 echo as_func_success failed.
298 if as_func_failure; then
300 echo as_func_failure succeeded.
303 if as_func_ret_success; then
307 echo as_func_ret_success failed.
310 if as_func_ret_failure; then
312 echo as_func_ret_failure succeeded.
315 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 echo positional parameters were not saved.
322 test $exitcode = 0) || { (exit 1); exit 1; }
327 test "x$as_lineno_1" != "x$as_lineno_2" &&
328 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
339 if test "x$CONFIG_SHELL" != x; then
340 for as_var in BASH_ENV ENV
341 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 if test $as_have_required = no; then
349 echo This script requires a shell more modern than all the
350 echo shells that I found on your system. Please install a
351 echo modern shell, or manually run the script under such a
352 echo shell if you do have one.
353 { (exit 1); exit 1; }
363 (eval "as_func_return () {
372 as_func_ret_success () {
375 as_func_ret_failure () {
380 if as_func_success; then
384 echo as_func_success failed.
387 if as_func_failure; then
389 echo as_func_failure succeeded.
392 if as_func_ret_success; then
396 echo as_func_ret_success failed.
399 if as_func_ret_failure; then
401 echo as_func_ret_failure succeeded.
404 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 echo positional parameters were not saved.
411 test \$exitcode = 0") || {
412 echo No shell found that supports shell functions.
413 echo Please tell autoconf@gnu.org about your system,
414 echo including any error possibly output before this
422 test "x$as_lineno_1" != "x$as_lineno_2" &&
423 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
425 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
426 # uniformly replaced by the line number. The first 'sed' inserts a
427 # line-number line after each line using $LINENO; the second 'sed'
428 # does the real work. The second script uses 'N' to pair each
429 # line-number line with the line containing $LINENO, and appends
430 # trailing '-' during substitution so that $LINENO is not a special
432 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
433 # scripts with optimization help from Paolo Bonzini. Blame Lee
434 # E. McMahon (1931-1989) for sed's syntax. :-)
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 chmod +x "$as_me.lineno" ||
451 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
452 { (exit 1); exit 1; }; }
454 # Don't try to exec as it changes $[0], causing all sort of problems
455 # (the dirname of $[0] is not the place where we might find the
456 # original and so on. Autoconf is especially sensitive to this).
458 # Exit status is that of the last command.
463 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
469 ECHO_C= ECHO_N= ECHO_T=
473 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
480 if expr a : '\(a\)' >/dev/null 2>&1 &&
481 test "X`expr 00001 : '.*\(...\)'`" = X001; then
487 rm -f conf$$ conf$$.exe conf$$.file
488 if test -d conf$$.dir; then
489 rm -f conf$$.dir/conf$$.file
495 if ln -s conf$$.file conf$$ 2>/dev/null; then
497 # ... but there are two gotchas:
498 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
499 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
500 # In both cases, we have to default to `cp -p'.
501 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
503 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
514 test -d ./-p && rmdir ./-p
518 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
519 # systems may use methods other than mode bits to determine executability.
520 cat >conf$$.file <<_ASEOF
525 if test -x conf$$.file >/dev/null 2>&1; then
526 as_executable_p="test -x"
532 # Sed expression to map a string onto a valid CPP name.
533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535 # Sed expression to map a string onto a valid variable name.
536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 exec 7<&0 </dev/null 6>&1
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
550 ac_default_prefix=/usr/local
552 ac_config_libobj_dir=.
558 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Identity of this package.
567 ac_unique_file="asterisk"
568 ac_unique_file="main/asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
582 # ifdef HAVE_STDLIB_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
614 program_transform_name
840 ac_precious_vars='build_alias
854 # Initialize some variables set by options.
856 ac_init_version=false
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
866 program_transform_name=s,x,x,
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE}'
891 infodir='${datarootdir}/info'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
912 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
916 # Accept the important Cygnus configure options, so we can diagnose typos.
918 case $ac_dashdash$ac_option in
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
940 cache_file=config.cache ;;
942 -datadir | --datadir | --datadi | --datad)
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
954 -disable-* | --disable-*)
955 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
958 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959 { (exit 1); exit 1; }; }
960 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
961 eval enable_$ac_feature=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
973 -enable-* | --enable-*)
974 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
977 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
978 { (exit 1); exit 1; }; }
979 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
980 eval enable_$ac_feature=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
995 -help | --help | --hel | --he | -h)
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1144 -site=* | --site=* | --sit=*)
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1171 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1174 { echo "$as_me: error: invalid package name: $ac_package" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_package=`echo $ac_package| sed 's/-/_/g'`
1177 eval with_$ac_package=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid package name: $ac_package" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_package=`echo $ac_package | sed 's/-/_/g'`
1186 eval with_$ac_package=no ;;
1189 # Obsolete; use --with-x.
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1206 -*) { echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208 { (exit 1); exit 1; }; }
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216 { (exit 1); exit 1; }; }
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 { echo "$as_me: error: missing argument to $ac_option" >&2
1234 { (exit 1); exit 1; }; }
1237 # Be sure to have absolute directory names.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1243 eval ac_val=\$$ac_var
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1248 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1249 { (exit 1); exit 1; }; }
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 { echo "$as_me: error: Working directory cannot be determined" >&2
1280 { (exit 1); exit 1; }; }
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 { echo "$as_me: error: pwd does not report name of working directory" >&2
1283 { (exit 1); exit 1; }; }
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$0" ||
1291 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$0" : 'X\(//\)[^/]' \| \
1293 X"$0" : 'X\(//\)$' \| \
1294 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1323 { (exit 1); exit 1; }; }
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1327 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1328 { (exit 1); exit 1; }; }
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1354 \`configure' configures this package to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1417 if test -n "$ac_init_help"; then
1422 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1423 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1424 --enable-dev-mode Turn on developer mode
1425 --disable-largefile omit support for large files
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1431 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1432 --with-curses=PATH use curses files in PATH
1433 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1435 --with-gsm=PATH use GSM files in PATH , or 'internal'
1436 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1437 --with-imap=PATH use UW IMAP Toolkit files in PATH
1438 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1439 --with-kde=PATH use KDE files in PATH
1440 --with-misdn=PATH use mISDN User Library files in PATH
1441 --with-nbs=PATH use Network Broadcast Sound files in PATH
1442 --with-ncurses=PATH use ncurses files in PATH
1443 --with-netsnmp=PATH use Net-SNMP files in PATH
1444 --with-newt=PATH use newt files in PATH
1445 --with-odbc=PATH use unixODBC files in PATH
1446 --with-ogg=PATH use OGG files in PATH
1447 --with-osptk=PATH use OSP Toolkit files in PATH
1448 --with-oss=PATH use Open Sound System files in PATH
1449 --with-popt=PATH use popt files in PATH
1450 --with-postgres=PATH use PostgreSQL files in PATH
1451 --with-pri=PATH use ISDN PRI files in PATH
1452 --with-ss7=PATH use ISDN SS7 files in PATH
1453 --with-pwlib=PATH use PWlib files in PATH
1454 --with-h323=PATH use OpenH323 files in PATH
1455 --with-qt=PATH use Qt files in PATH
1456 --with-radius=PATH use Radius Client files in PATH
1457 --with-speex=PATH use Speex files in PATH
1458 --with-sqlite=PATH use SQLite files in PATH
1459 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1460 --with-ssl=PATH use OpenSSL files in PATH
1461 --with-tds=PATH use FreeTDS files in PATH
1462 --with-termcap=PATH use Termcap files in PATH
1463 --with-tinfo=PATH use Term Info files in PATH
1464 --with-tonezone=PATH use tonezone files in PATH
1465 --with-vorbis=PATH use Vorbis files in PATH
1466 --with-vpb=PATH use Voicetronix API files in PATH
1467 --with-z=PATH use zlib files in PATH
1468 --with-zaptel=PATH use Zaptel files in PATH
1470 Some influential environment variables:
1471 CC C compiler command
1472 CFLAGS C compiler flags
1473 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474 nonstandard directory <lib dir>
1475 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1476 you have headers in a nonstandard directory <include dir>
1477 CXX C++ compiler command
1478 CXXFLAGS C++ compiler flags
1480 CXXCPP C++ preprocessor
1482 Use these variables to override the choices made by `configure' or to help
1483 it to find libraries and programs with nonstandard names/locations.
1489 if test "$ac_init_help" = "recursive"; then
1490 # If there are subdirs, report their specific --help.
1491 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1492 test -d "$ac_dir" || continue
1496 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1499 # A ".." for each directory in $ac_dir_suffix.
1500 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1501 case $ac_top_builddir_sub in
1502 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1503 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1506 ac_abs_top_builddir=$ac_pwd
1507 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1508 # for backward compatibility:
1509 ac_top_builddir=$ac_top_build_prefix
1512 .) # We are building in place.
1514 ac_top_srcdir=$ac_top_builddir_sub
1515 ac_abs_top_srcdir=$ac_pwd ;;
1516 [\\/]* | ?:[\\/]* ) # Absolute name.
1517 ac_srcdir=$srcdir$ac_dir_suffix;
1518 ac_top_srcdir=$srcdir
1519 ac_abs_top_srcdir=$srcdir ;;
1521 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1522 ac_top_srcdir=$ac_top_build_prefix$srcdir
1523 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1525 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1527 cd "$ac_dir" || { ac_status=$?; continue; }
1528 # Check for guested configure.
1529 if test -f "$ac_srcdir/configure.gnu"; then
1531 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1532 elif test -f "$ac_srcdir/configure"; then
1534 $SHELL "$ac_srcdir/configure" --help=recursive
1536 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1538 cd "$ac_pwd" || { ac_status=$?; break; }
1542 test -n "$ac_init_help" && exit $ac_status
1543 if $ac_init_version; then
1546 generated by GNU Autoconf 2.60a
1548 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1549 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1550 This configure script is free software; the Free Software Foundation
1551 gives unlimited permission to copy, distribute and modify it.
1557 cat >config.log <<_ACEOF
1558 This file contains any messages produced by compilers while
1559 running configure, to aid debugging if configure makes a mistake.
1561 It was created by $as_me, which was
1562 generated by GNU Autoconf 2.60a. Invocation command line was
1574 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1575 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1576 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1577 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1578 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1580 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1581 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1583 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1584 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1585 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1586 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1587 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1588 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1589 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1597 test -z "$as_dir" && as_dir=.
1598 echo "PATH: $as_dir"
1614 # Keep a trace of the command line.
1615 # Strip out --no-create and --no-recursion so they do not pile up.
1616 # Strip out --silent because we don't want to record it for future runs.
1617 # Also quote any args containing shell meta-characters.
1618 # Make two passes to allow for proper duplicate-argument suppression.
1622 ac_must_keep_next=false
1628 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1629 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1630 | -silent | --silent | --silen | --sile | --sil)
1633 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1636 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1638 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1639 if test $ac_must_keep_next = true; then
1640 ac_must_keep_next=false # Got value, back to normal.
1643 *=* | --config-cache | -C | -disable-* | --disable-* \
1644 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1645 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1646 | -with-* | --with-* | -without-* | --without-* | --x)
1647 case "$ac_configure_args0 " in
1648 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1651 -* ) ac_must_keep_next=true ;;
1654 ac_configure_args="$ac_configure_args '$ac_arg'"
1659 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1660 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1662 # When interrupted or exit'd, cleanup temporary files, and complete
1663 # config.log. We remove comments because anyway the quotes in there
1664 # would cause problems or look ugly.
1665 # WARNING: Use '\'' to represent an apostrophe within the trap.
1666 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1667 trap 'exit_status=$?
1668 # Save into config.log some information that might help in debugging.
1673 ## ---------------- ##
1674 ## Cache variables. ##
1675 ## ---------------- ##
1678 # The following way of writing the cache mishandles newlines in values,
1680 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1681 eval ac_val=\$$ac_var
1685 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1686 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1689 _ | IFS | as_nl) ;; #(
1690 *) $as_unset $ac_var ;;
1695 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1696 *${as_nl}ac_space=\ *)
1698 "s/'\''/'\''\\\\'\'''\''/g;
1699 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1702 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1710 ## ----------------- ##
1711 ## Output variables. ##
1712 ## ----------------- ##
1715 for ac_var in $ac_subst_vars
1717 eval ac_val=\$$ac_var
1719 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1721 echo "$ac_var='\''$ac_val'\''"
1725 if test -n "$ac_subst_files"; then
1727 ## ------------------- ##
1728 ## File substitutions. ##
1729 ## ------------------- ##
1732 for ac_var in $ac_subst_files
1734 eval ac_val=\$$ac_var
1736 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1738 echo "$ac_var='\''$ac_val'\''"
1743 if test -s confdefs.h; then
1753 test "$ac_signal" != 0 &&
1754 echo "$as_me: caught signal $ac_signal"
1755 echo "$as_me: exit $exit_status"
1757 rm -f core *.core core.conftest.* &&
1758 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1761 for ac_signal in 1 2 13 15; do
1762 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1766 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1767 rm -f -r conftest* confdefs.h
1769 # Predefined preprocessor variables.
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_NAME "$PACKAGE_NAME"
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_STRING "$PACKAGE_STRING"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1796 # Let the site file select an alternate cache file if it wants to.
1797 # Prefer explicitly selected file to automatically selected ones.
1798 if test -n "$CONFIG_SITE"; then
1799 set x "$CONFIG_SITE"
1800 elif test "x$prefix" != xNONE; then
1801 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1803 set x "$ac_default_prefix/share/config.site" \
1804 "$ac_default_prefix/etc/config.site"
1809 if test -r "$ac_site_file"; then
1810 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1811 echo "$as_me: loading site script $ac_site_file" >&6;}
1812 sed 's/^/| /' "$ac_site_file" >&5
1817 if test -r "$cache_file"; then
1818 # Some versions of bash will fail to source /dev/null (special
1819 # files actually), so we avoid doing that.
1820 if test -f "$cache_file"; then
1821 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1822 echo "$as_me: loading cache $cache_file" >&6;}
1824 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1825 *) . "./$cache_file";;
1829 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1830 echo "$as_me: creating cache $cache_file" >&6;}
1834 # Check that the precious variables saved in the cache have kept the same
1836 ac_cache_corrupted=false
1837 for ac_var in $ac_precious_vars; do
1838 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1839 eval ac_new_set=\$ac_env_${ac_var}_set
1840 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1841 eval ac_new_val=\$ac_env_${ac_var}_value
1842 case $ac_old_set,$ac_new_set in
1844 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1845 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1846 ac_cache_corrupted=: ;;
1848 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1849 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1850 ac_cache_corrupted=: ;;
1853 if test "x$ac_old_val" != "x$ac_new_val"; then
1854 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1855 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1856 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1857 echo "$as_me: former value: $ac_old_val" >&2;}
1858 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1859 echo "$as_me: current value: $ac_new_val" >&2;}
1860 ac_cache_corrupted=:
1863 # Pass precious variables to config.status.
1864 if test "$ac_new_set" = set; then
1866 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1867 *) ac_arg=$ac_var=$ac_new_val ;;
1869 case " $ac_configure_args " in
1870 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1871 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1875 if $ac_cache_corrupted; then
1876 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1877 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1878 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1879 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1880 { (exit 1); exit 1; }; }
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907 # cross-compile macros
1909 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1910 if test -f "$ac_dir/install-sh"; then
1912 ac_install_sh="$ac_aux_dir/install-sh -c"
1914 elif test -f "$ac_dir/install.sh"; then
1916 ac_install_sh="$ac_aux_dir/install.sh -c"
1918 elif test -f "$ac_dir/shtool"; then
1920 ac_install_sh="$ac_aux_dir/shtool install -c"
1924 if test -z "$ac_aux_dir"; then
1925 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1926 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1927 { (exit 1); exit 1; }; }
1930 # These three variables are undocumented and unsupported,
1931 # and are intended to be withdrawn in a future Autoconf release.
1932 # They can cause serious problems if a builder's source tree is in a directory
1933 # whose full name contains unusual characters.
1934 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1935 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1936 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1939 # Make sure we can run config.sub.
1940 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1941 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1942 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1943 { (exit 1); exit 1; }; }
1945 { echo "$as_me:$LINENO: checking build system type" >&5
1946 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1947 if test "${ac_cv_build+set}" = set; then
1948 echo $ECHO_N "(cached) $ECHO_C" >&6
1950 ac_build_alias=$build_alias
1951 test "x$ac_build_alias" = x &&
1952 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1953 test "x$ac_build_alias" = x &&
1954 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1955 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1956 { (exit 1); exit 1; }; }
1957 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1958 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1959 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1960 { (exit 1); exit 1; }; }
1963 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1964 echo "${ECHO_T}$ac_cv_build" >&6; }
1965 case $ac_cv_build in
1967 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1968 echo "$as_me: error: invalid value of canonical build" >&2;}
1969 { (exit 1); exit 1; }; };;
1972 ac_save_IFS=$IFS; IFS='-'
1978 # Remember, the first character of IFS is used to create $*,
1979 # except with old shells:
1982 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1985 { echo "$as_me:$LINENO: checking host system type" >&5
1986 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1987 if test "${ac_cv_host+set}" = set; then
1988 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 if test "x$host_alias" = x; then
1991 ac_cv_host=$ac_cv_build
1993 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1994 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1995 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1996 { (exit 1); exit 1; }; }
2000 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2001 echo "${ECHO_T}$ac_cv_host" >&6; }
2004 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2005 echo "$as_me: error: invalid value of canonical host" >&2;}
2006 { (exit 1); exit 1; }; };;
2009 ac_save_IFS=$IFS; IFS='-'
2015 # Remember, the first character of IFS is used to create $*,
2016 # except with old shells:
2019 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2023 # check existence of the package
2026 # specify output header file
2027 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2033 case "${host_os}" in
2035 ac_default_prefix=/usr/local
2038 ac_default_prefix=/usr
2039 if test ${sysconfdir} = '${prefix}/etc'; then
2042 if test ${mandir} = '${prefix}/man'; then
2043 mandir=/usr/share/man
2048 if test ${localstatedir} = '${prefix}/var'; then
2052 BUILD_PLATFORM=${build}
2053 BUILD_CPU=${build_cpu}
2054 BUILD_VENDOR=${build_vendor}
2055 BUILD_OS=${build_os}
2062 HOST_PLATFORM=${host}
2063 HOST_CPU=${host_cpu}
2064 HOST_VENDOR=${host_vendor}
2072 case "${host_os}" in
2093 if test -n "$ac_tool_prefix"; then
2094 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2095 set dummy ${ac_tool_prefix}uname; ac_word=$2
2096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2098 if test "${ac_cv_path_UNAME+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2113 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2124 UNAME=$ac_cv_path_UNAME
2125 if test -n "$UNAME"; then
2126 { echo "$as_me:$LINENO: result: $UNAME" >&5
2127 echo "${ECHO_T}$UNAME" >&6; }
2129 { echo "$as_me:$LINENO: result: no" >&5
2130 echo "${ECHO_T}no" >&6; }
2135 if test -z "$ac_cv_path_UNAME"; then
2137 # Extract the first word of "uname", so it can be a program name with args.
2138 set dummy uname; ac_word=$2
2139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2141 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2142 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 case $ac_pt_UNAME in
2146 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2156 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2168 if test -n "$ac_pt_UNAME"; then
2169 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2170 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2172 { echo "$as_me:$LINENO: result: no" >&5
2173 echo "${ECHO_T}no" >&6; }
2176 if test "x$ac_pt_UNAME" = x; then
2179 case $cross_compiling:$ac_tool_warned in
2181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2182 whose name does not start with the host triplet. If you think this
2183 configuration is useful to you, please write to autoconf@gnu.org." >&5
2184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2185 whose name does not start with the host triplet. If you think this
2186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2187 ac_tool_warned=yes ;;
2192 UNAME="$ac_cv_path_UNAME"
2195 if test ! x"${UNAME}" = xNo; then
2196 PBX_OSREV=$(${UNAME} -r)
2200 # This needs to be before any macros that use the C compiler
2202 cat >>confdefs.h <<\_ACEOF
2203 #define _GNU_SOURCE 1
2214 # cross-compile checks
2215 if test "${cross_compiling}" = "yes";
2217 if test -n "$ac_tool_prefix"; then
2218 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2219 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2222 if test "${ac_cv_prog_CC+set}" = set; then
2223 echo $ECHO_N "(cached) $ECHO_C" >&6
2225 if test -n "$CC"; then
2226 ac_cv_prog_CC="$CC" # Let the user override the test.
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2235 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2246 if test -n "$CC"; then
2247 { echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6; }
2250 { echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6; }
2256 if test -z "$ac_cv_prog_CC"; then
2258 # Extract the first word of "gcc", so it can be a program name with args.
2259 set dummy gcc; ac_word=$2
2260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2265 if test -n "$ac_ct_CC"; then
2266 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 test -z "$as_dir" && as_dir=.
2273 for ac_exec_ext in '' $ac_executable_extensions; do
2274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2275 ac_cv_prog_ac_ct_CC="gcc"
2276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2286 if test -n "$ac_ct_CC"; then
2287 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2288 echo "${ECHO_T}$ac_ct_CC" >&6; }
2290 { echo "$as_me:$LINENO: result: no" >&5
2291 echo "${ECHO_T}no" >&6; }
2294 if test "x$ac_ct_CC" = x; then
2297 case $cross_compiling:$ac_tool_warned in
2299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2300 whose name does not start with the host triplet. If you think this
2301 configuration is useful to you, please write to autoconf@gnu.org." >&5
2302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303 whose name does not start with the host triplet. If you think this
2304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2305 ac_tool_warned=yes ;;
2313 if test -n "$ac_tool_prefix"; then
2314 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2315 set dummy ${ac_tool_prefix}g++; ac_word=$2
2316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2318 if test "${ac_cv_prog_CXX+set}" = set; then
2319 echo $ECHO_N "(cached) $ECHO_C" >&6
2321 if test -n "$CXX"; then
2322 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2328 test -z "$as_dir" && as_dir=.
2329 for ac_exec_ext in '' $ac_executable_extensions; do
2330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2331 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2342 if test -n "$CXX"; then
2343 { echo "$as_me:$LINENO: result: $CXX" >&5
2344 echo "${ECHO_T}$CXX" >&6; }
2346 { echo "$as_me:$LINENO: result: no" >&5
2347 echo "${ECHO_T}no" >&6; }
2352 if test -z "$ac_cv_prog_CXX"; then
2354 # Extract the first word of "g++", so it can be a program name with args.
2355 set dummy g++; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 if test -n "$ac_ct_CXX"; then
2362 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_ac_ct_CXX="g++"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2382 if test -n "$ac_ct_CXX"; then
2383 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2384 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2390 if test "x$ac_ct_CXX" = x; then
2393 case $cross_compiling:$ac_tool_warned in
2395 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet. If you think this
2397 configuration is useful to you, please write to autoconf@gnu.org." >&5
2398 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2401 ac_tool_warned=yes ;;
2406 CXX="$ac_cv_prog_CXX"
2409 if test -n "$ac_tool_prefix"; then
2410 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2411 set dummy ${ac_tool_prefix}ld; ac_word=$2
2412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2414 if test "${ac_cv_prog_LD+set}" = set; then
2415 echo $ECHO_N "(cached) $ECHO_C" >&6
2417 if test -n "$LD"; then
2418 ac_cv_prog_LD="$LD" # Let the user override the test.
2420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2424 test -z "$as_dir" && as_dir=.
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2427 ac_cv_prog_LD="${ac_tool_prefix}ld"
2428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438 if test -n "$LD"; then
2439 { echo "$as_me:$LINENO: result: $LD" >&5
2440 echo "${ECHO_T}$LD" >&6; }
2442 { echo "$as_me:$LINENO: result: no" >&5
2443 echo "${ECHO_T}no" >&6; }
2448 if test -z "$ac_cv_prog_LD"; then
2450 # Extract the first word of "ld", so it can be a program name with args.
2451 set dummy ld; ac_word=$2
2452 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2453 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2454 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2455 echo $ECHO_N "(cached) $ECHO_C" >&6
2457 if test -n "$ac_ct_LD"; then
2458 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2464 test -z "$as_dir" && as_dir=.
2465 for ac_exec_ext in '' $ac_executable_extensions; do
2466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2467 ac_cv_prog_ac_ct_LD="ld"
2468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2478 if test -n "$ac_ct_LD"; then
2479 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2480 echo "${ECHO_T}$ac_ct_LD" >&6; }
2482 { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2486 if test "x$ac_ct_LD" = x; then
2489 case $cross_compiling:$ac_tool_warned in
2491 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2492 whose name does not start with the host triplet. If you think this
2493 configuration is useful to you, please write to autoconf@gnu.org." >&5
2494 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2495 whose name does not start with the host triplet. If you think this
2496 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2497 ac_tool_warned=yes ;;
2505 if test -n "$ac_tool_prefix"; then
2506 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2507 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_RANLIB+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 if test -n "$RANLIB"; then
2514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 RANLIB=$ac_cv_prog_RANLIB
2534 if test -n "$RANLIB"; then
2535 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2536 echo "${ECHO_T}$RANLIB" >&6; }
2538 { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2544 if test -z "$ac_cv_prog_RANLIB"; then
2545 ac_ct_RANLIB=$RANLIB
2546 # Extract the first word of "ranlib", so it can be a program name with args.
2547 set dummy ranlib; ac_word=$2
2548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2550 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2551 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 if test -n "$ac_ct_RANLIB"; then
2554 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 ac_cv_prog_ac_ct_RANLIB="ranlib"
2564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2573 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2574 if test -n "$ac_ct_RANLIB"; then
2575 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2576 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2578 { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2582 if test "x$ac_ct_RANLIB" = x; then
2585 case $cross_compiling:$ac_tool_warned in
2587 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2588 whose name does not start with the host triplet. If you think this
2589 configuration is useful to you, please write to autoconf@gnu.org." >&5
2590 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2591 whose name does not start with the host triplet. If you think this
2592 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2593 ac_tool_warned=yes ;;
2595 RANLIB=$ac_ct_RANLIB
2598 RANLIB="$ac_cv_prog_RANLIB"
2601 if test -n "$ac_tool_prefix"; then
2602 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2603 set dummy ${ac_tool_prefix}ar; ac_word=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_AR+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if test -n "$AR"; then
2610 ac_cv_prog_AR="$AR" # Let the user override the test.
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_AR="${ac_tool_prefix}ar"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2630 if test -n "$AR"; then
2631 { echo "$as_me:$LINENO: result: $AR" >&5
2632 echo "${ECHO_T}$AR" >&6; }
2634 { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2640 if test -z "$ac_cv_prog_AR"; then
2642 # Extract the first word of "ar", so it can be a program name with args.
2643 set dummy ar; ac_word=$2
2644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2646 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2647 echo $ECHO_N "(cached) $ECHO_C" >&6
2649 if test -n "$ac_ct_AR"; then
2650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2656 test -z "$as_dir" && as_dir=.
2657 for ac_exec_ext in '' $ac_executable_extensions; do
2658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2659 ac_cv_prog_ac_ct_AR="ar"
2660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2669 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2670 if test -n "$ac_ct_AR"; then
2671 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2672 echo "${ECHO_T}$ac_ct_AR" >&6; }
2674 { echo "$as_me:$LINENO: result: no" >&5
2675 echo "${ECHO_T}no" >&6; }
2678 if test "x$ac_ct_AR" = x; then
2681 case $cross_compiling:$ac_tool_warned in
2683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet. If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&5
2686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2687 whose name does not start with the host triplet. If you think this
2688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2689 ac_tool_warned=yes ;;
2699 # Checks for programs.
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2705 if test -n "$ac_tool_prefix"; then
2706 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2707 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2710 if test "${ac_cv_prog_CC+set}" = set; then
2711 echo $ECHO_N "(cached) $ECHO_C" >&6
2713 if test -n "$CC"; then
2714 ac_cv_prog_CC="$CC" # Let the user override the test.
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 if test -n "$CC"; then
2735 { echo "$as_me:$LINENO: result: $CC" >&5
2736 echo "${ECHO_T}$CC" >&6; }
2738 { echo "$as_me:$LINENO: result: no" >&5
2739 echo "${ECHO_T}no" >&6; }
2744 if test -z "$ac_cv_prog_CC"; then
2746 # Extract the first word of "gcc", so it can be a program name with args.
2747 set dummy gcc; ac_word=$2
2748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2750 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2751 echo $ECHO_N "(cached) $ECHO_C" >&6
2753 if test -n "$ac_ct_CC"; then
2754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 test -z "$as_dir" && as_dir=.
2761 for ac_exec_ext in '' $ac_executable_extensions; do
2762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2763 ac_cv_prog_ac_ct_CC="gcc"
2764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2774 if test -n "$ac_ct_CC"; then
2775 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2776 echo "${ECHO_T}$ac_ct_CC" >&6; }
2778 { echo "$as_me:$LINENO: result: no" >&5
2779 echo "${ECHO_T}no" >&6; }
2782 if test "x$ac_ct_CC" = x; then
2785 case $cross_compiling:$ac_tool_warned in
2787 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2788 whose name does not start with the host triplet. If you think this
2789 configuration is useful to you, please write to autoconf@gnu.org." >&5
2790 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2793 ac_tool_warned=yes ;;
2801 if test -z "$CC"; then
2802 if test -n "$ac_tool_prefix"; then
2803 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2804 set dummy ${ac_tool_prefix}cc; ac_word=$2
2805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2807 if test "${ac_cv_prog_CC+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 ac_cv_prog_CC="${ac_tool_prefix}cc"
2821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 if test -n "$CC"; then
2832 { echo "$as_me:$LINENO: result: $CC" >&5
2833 echo "${ECHO_T}$CC" >&6; }
2835 { echo "$as_me:$LINENO: result: no" >&5
2836 echo "${ECHO_T}no" >&6; }
2842 if test -z "$CC"; then
2843 # Extract the first word of "cc", so it can be a program name with args.
2844 set dummy cc; ac_word=$2
2845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_CC+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 if test -n "$CC"; then
2851 ac_cv_prog_CC="$CC" # Let the user override the test.
2854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 test -z "$as_dir" && as_dir=.
2859 for ac_exec_ext in '' $ac_executable_extensions; do
2860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2861 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2862 ac_prog_rejected=yes
2866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2873 if test $ac_prog_rejected = yes; then
2874 # We found a bogon in the path, so make sure we never use it.
2875 set dummy $ac_cv_prog_CC
2877 if test $# != 0; then
2878 # We chose a different compiler from the bogus one.
2879 # However, it has the same basename, so the bogon will be chosen
2880 # first if we set CC to just the basename; use the full file name.
2882 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2888 if test -n "$CC"; then
2889 { echo "$as_me:$LINENO: result: $CC" >&5
2890 echo "${ECHO_T}$CC" >&6; }
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2898 if test -z "$CC"; then
2899 if test -n "$ac_tool_prefix"; then
2900 for ac_prog in cl.exe
2902 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2903 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2906 if test "${ac_cv_prog_CC+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 test -z "$as_dir" && as_dir=.
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2919 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 if test -n "$CC"; then
2931 { echo "$as_me:$LINENO: result: $CC" >&5
2932 echo "${ECHO_T}$CC" >&6; }
2934 { echo "$as_me:$LINENO: result: no" >&5
2935 echo "${ECHO_T}no" >&6; }
2939 test -n "$CC" && break
2942 if test -z "$CC"; then
2944 for ac_prog in cl.exe
2946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2947 set dummy $ac_prog; ac_word=$2
2948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2950 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2951 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 if test -n "$ac_ct_CC"; then
2954 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 test -z "$as_dir" && as_dir=.
2961 for ac_exec_ext in '' $ac_executable_extensions; do
2962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2963 ac_cv_prog_ac_ct_CC="$ac_prog"
2964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2973 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2974 if test -n "$ac_ct_CC"; then
2975 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2976 echo "${ECHO_T}$ac_ct_CC" >&6; }
2978 { echo "$as_me:$LINENO: result: no" >&5
2979 echo "${ECHO_T}no" >&6; }
2983 test -n "$ac_ct_CC" && break
2986 if test "x$ac_ct_CC" = x; then
2989 case $cross_compiling:$ac_tool_warned in
2991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2992 whose name does not start with the host triplet. If you think this
2993 configuration is useful to you, please write to autoconf@gnu.org." >&5
2994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2995 whose name does not start with the host triplet. If you think this
2996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2997 ac_tool_warned=yes ;;
3006 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3007 See \`config.log' for more details." >&5
3008 echo "$as_me: error: no acceptable C compiler found in \$PATH
3009 See \`config.log' for more details." >&2;}
3010 { (exit 1); exit 1; }; }
3012 # Provide some information about the compiler.
3013 echo "$as_me:$LINENO: checking for C compiler version" >&5
3014 ac_compiler=`set X $ac_compile; echo $2`
3015 { (ac_try="$ac_compiler --version >&5"
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3021 (eval "$ac_compiler --version >&5") 2>&5
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); }
3025 { (ac_try="$ac_compiler -v >&5"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_compiler -v >&5") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }
3035 { (ac_try="$ac_compiler -V >&5"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compiler -V >&5") 2>&5
3043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); }
3046 cat >conftest.$ac_ext <<_ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3061 ac_clean_files_save=$ac_clean_files
3062 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3063 # Try to create an executable without -o first, disregard a.out.
3064 # It will help us diagnose broken compilers, and finding out an intuition
3066 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3067 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3068 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3070 # List of possible output files, starting from the most likely.
3071 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3072 # only as a last resort. b.out is created by i960 compilers.
3073 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3075 # The IRIX 6 linker writes into existing files which may not be
3076 # executable, retaining their permissions. Remove them first so a
3077 # subsequent execution test works.
3079 for ac_file in $ac_files
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3083 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3088 if { (ac_try="$ac_link_default"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3094 (eval "$ac_link_default") 2>&5
3096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3097 (exit $ac_status); }; then
3098 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3099 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3100 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3101 # so that the user can short-circuit this test for compilers unknown to
3103 for ac_file in $ac_files ''
3105 test -f "$ac_file" || continue
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3110 # We found the default executable, but exeext='' is most
3114 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3116 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3118 # We set ac_cv_exeext here because the later test for it is not
3119 # safe: cross compilers may not add the suffix if given an `-o'
3120 # argument, so we may need to know it at that point already.
3121 # Even if this section looks crufty: it has the advantage of
3128 test "$ac_cv_exeext" = no && ac_cv_exeext=
3134 { echo "$as_me:$LINENO: result: $ac_file" >&5
3135 echo "${ECHO_T}$ac_file" >&6; }
3136 if test -z "$ac_file"; then
3137 echo "$as_me: failed program was:" >&5
3138 sed 's/^/| /' conftest.$ac_ext >&5
3140 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3141 See \`config.log' for more details." >&5
3142 echo "$as_me: error: C compiler cannot create executables
3143 See \`config.log' for more details." >&2;}
3144 { (exit 77); exit 77; }; }
3147 ac_exeext=$ac_cv_exeext
3149 # Check that the compiler produces executables we can run. If not, either
3150 # the compiler is broken, or we cross compile.
3151 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3152 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3153 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3154 # If not cross compiling, check that we can run a simple program.
3155 if test "$cross_compiling" != yes; then
3156 if { ac_try='./$ac_file'
3157 { (case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_try") 2>&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3168 if test "$cross_compiling" = maybe; then
3171 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3172 If you meant to cross compile, use \`--host'.
3173 See \`config.log' for more details." >&5
3174 echo "$as_me: error: cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details." >&2;}
3177 { (exit 1); exit 1; }; }
3181 { echo "$as_me:$LINENO: result: yes" >&5
3182 echo "${ECHO_T}yes" >&6; }
3184 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3185 ac_clean_files=$ac_clean_files_save
3186 # Check that the compiler produces executables we can run. If not, either
3187 # the compiler is broken, or we cross compile.
3188 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3189 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3190 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3191 echo "${ECHO_T}$cross_compiling" >&6; }
3193 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3194 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3195 if { (ac_try="$ac_link"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_link") 2>&5
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }; then
3205 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3206 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3207 # work properly (i.e., refer to `conftest.exe'), while it won't with
3209 for ac_file in conftest.exe conftest conftest.*; do
3210 test -f "$ac_file" || continue
3212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3213 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3219 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3226 rm -f conftest$ac_cv_exeext
3227 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3228 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3230 rm -f conftest.$ac_ext
3231 EXEEXT=$ac_cv_exeext
3233 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3234 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3235 if test "${ac_cv_objext+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3253 rm -f conftest.o conftest.obj
3254 if { (ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_compile") 2>&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); }; then
3264 for ac_file in conftest.o conftest.obj conftest.*; do
3265 test -f "$ac_file" || continue;
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3268 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3273 echo "$as_me: failed program was:" >&5
3274 sed 's/^/| /' conftest.$ac_ext >&5
3276 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3277 See \`config.log' for more details." >&5
3278 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3279 See \`config.log' for more details." >&2;}
3280 { (exit 1); exit 1; }; }
3283 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3285 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3286 echo "${ECHO_T}$ac_cv_objext" >&6; }
3287 OBJEXT=$ac_cv_objext
3289 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3290 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3291 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3292 echo $ECHO_N "(cached) $ECHO_C" >&6
3294 cat >conftest.$ac_ext <<_ACEOF
3297 cat confdefs.h >>conftest.$ac_ext
3298 cat >>conftest.$ac_ext <<_ACEOF
3299 /* end confdefs.h. */
3312 rm -f conftest.$ac_objext
3313 if { (ac_try="$ac_compile"
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3319 (eval "$ac_compile") 2>conftest.er1
3321 grep -v '^ *+' conftest.er1 >conftest.err
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3327 { (case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3332 (eval "$ac_try") 2>&5
3334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3335 (exit $ac_status); }; } &&
3336 { ac_try='test -s conftest.$ac_objext'
3337 { (case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3342 (eval "$ac_try") 2>&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); }; }; then
3348 echo "$as_me: failed program was:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3358 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3359 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3360 GCC=`test $ac_compiler_gnu = yes && echo yes`
3361 ac_test_CFLAGS=${CFLAGS+set}
3362 ac_save_CFLAGS=$CFLAGS
3363 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3364 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3365 if test "${ac_cv_prog_cc_g+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 ac_save_c_werror_flag=$ac_c_werror_flag
3369 ac_c_werror_flag=yes
3372 cat >conftest.$ac_ext <<_ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3387 rm -f conftest.$ac_objext
3388 if { (ac_try="$ac_compile"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compile") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } &&
3401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3402 { (case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407 (eval "$ac_try") 2>&5
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; } &&
3411 { ac_try='test -s conftest.$ac_objext'
3412 { (case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3417 (eval "$ac_try") 2>&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); }; }; then
3423 echo "$as_me: failed program was:" >&5
3424 sed 's/^/| /' conftest.$ac_ext >&5
3427 cat >conftest.$ac_ext <<_ACEOF
3430 cat confdefs.h >>conftest.$ac_ext
3431 cat >>conftest.$ac_ext <<_ACEOF
3432 /* end confdefs.h. */
3442 rm -f conftest.$ac_objext
3443 if { (ac_try="$ac_compile"
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_compile") 2>conftest.er1
3451 grep -v '^ *+' conftest.er1 >conftest.err
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } &&
3456 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3457 { (case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_try") 2>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; } &&
3466 { ac_try='test -s conftest.$ac_objext'
3467 { (case "(($ac_try" in
3468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3469 *) ac_try_echo=$ac_try;;
3471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3472 (eval "$ac_try") 2>&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }; }; then
3478 echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 ac_c_werror_flag=$ac_save_c_werror_flag
3483 cat >conftest.$ac_ext <<_ACEOF
3486 cat confdefs.h >>conftest.$ac_ext
3487 cat >>conftest.$ac_ext <<_ACEOF
3488 /* end confdefs.h. */
3498 rm -f conftest.$ac_objext
3499 if { (ac_try="$ac_compile"
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3505 (eval "$ac_compile") 2>conftest.er1
3507 grep -v '^ *+' conftest.er1 >conftest.err
3509 cat conftest.err >&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); } &&
3512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3513 { (case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_try") 2>&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest.$ac_objext'
3523 { (case "(($ac_try" in
3524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_try") 2>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }; }; then
3534 echo "$as_me: failed program was:" >&5
3535 sed 's/^/| /' conftest.$ac_ext >&5
3540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_c_werror_flag=$ac_save_c_werror_flag
3549 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3550 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3551 if test "$ac_test_CFLAGS" = set; then
3552 CFLAGS=$ac_save_CFLAGS
3553 elif test $ac_cv_prog_cc_g = yes; then
3554 if test "$GCC" = yes; then
3560 if test "$GCC" = yes; then
3566 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3567 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3568 if test "${ac_cv_prog_cc_c89+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 ac_cv_prog_cc_c89=no
3573 cat >conftest.$ac_ext <<_ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h. */
3581 #include <sys/types.h>
3582 #include <sys/stat.h>
3583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3584 struct buf { int x; };
3585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3586 static char *e (p, i)
3592 static char *f (char * (*g) (char **, int), char **p, ...)
3597 s = g (p, va_arg (v,int));
3602 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3603 function prototypes and stuff, but not '\xHH' hex character constants.
3604 These don't provoke an error unfortunately, instead are silently treated
3605 as 'x'. The following induces an error, until -std is added to get
3606 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3607 array size at least. It's necessary to write '\x00'==0 to get something
3608 that's true only with -std. */
3609 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3611 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3612 inside strings and character constants. */
3614 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3616 int test (int i, double x);
3617 struct s1 {int (*f) (int a);};
3618 struct s2 {int (*f) (double a);};
3619 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3625 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3630 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3631 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3633 CC="$ac_save_CC $ac_arg"
3634 rm -f conftest.$ac_objext
3635 if { (ac_try="$ac_compile"
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_compile") 2>conftest.er1
3643 grep -v '^ *+' conftest.er1 >conftest.err
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } &&
3648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3649 { (case "(($ac_try" in
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_try") 2>&5
3656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3657 (exit $ac_status); }; } &&
3658 { ac_try='test -s conftest.$ac_objext'
3659 { (case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3664 (eval "$ac_try") 2>&5
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); }; }; then
3668 ac_cv_prog_cc_c89=$ac_arg
3670 echo "$as_me: failed program was:" >&5
3671 sed 's/^/| /' conftest.$ac_ext >&5
3676 rm -f core conftest.err conftest.$ac_objext
3677 test "x$ac_cv_prog_cc_c89" != "xno" && break
3679 rm -f conftest.$ac_ext
3684 case "x$ac_cv_prog_cc_c89" in
3686 { echo "$as_me:$LINENO: result: none needed" >&5
3687 echo "${ECHO_T}none needed" >&6; } ;;
3689 { echo "$as_me:$LINENO: result: unsupported" >&5
3690 echo "${ECHO_T}unsupported" >&6; } ;;
3692 CC="$CC $ac_cv_prog_cc_c89"
3693 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3694 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3699 ac_cpp='$CPP $CPPFLAGS'
3700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 ac_cpp='$CXXCPP $CPPFLAGS'
3706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3709 if test -z "$CXX"; then
3710 if test -n "$CCC"; then
3713 if test -n "$ac_tool_prefix"; then
3714 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3720 if test "${ac_cv_prog_CXX+set}" = set; then
3721 echo $ECHO_N "(cached) $ECHO_C" >&6
3723 if test -n "$CXX"; then
3724 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 test -z "$as_dir" && as_dir=.
3731 for ac_exec_ext in '' $ac_executable_extensions; do
3732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3733 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3744 if test -n "$CXX"; then
3745 { echo "$as_me:$LINENO: result: $CXX" >&5
3746 echo "${ECHO_T}$CXX" >&6; }
3748 { echo "$as_me:$LINENO: result: no" >&5
3749 echo "${ECHO_T}no" >&6; }
3753 test -n "$CXX" && break
3756 if test -z "$CXX"; then
3758 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3760 # Extract the first word of "$ac_prog", so it can be a program name with args.
3761 set dummy $ac_prog; ac_word=$2
3762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3764 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3765 echo $ECHO_N "(cached) $ECHO_C" >&6
3767 if test -n "$ac_ct_CXX"; then
3768 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
3776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3777 ac_cv_prog_ac_ct_CXX="$ac_prog"
3778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3788 if test -n "$ac_ct_CXX"; then
3789 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3790 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3792 { echo "$as_me:$LINENO: result: no" >&5
3793 echo "${ECHO_T}no" >&6; }
3797 test -n "$ac_ct_CXX" && break
3800 if test "x$ac_ct_CXX" = x; then
3803 case $cross_compiling:$ac_tool_warned in
3805 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3806 whose name does not start with the host triplet. If you think this
3807 configuration is useful to you, please write to autoconf@gnu.org." >&5
3808 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3809 whose name does not start with the host triplet. If you think this
3810 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3811 ac_tool_warned=yes ;;
3819 # Provide some information about the compiler.
3820 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3821 ac_compiler=`set X $ac_compile; echo $2`
3822 { (ac_try="$ac_compiler --version >&5"
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_compiler --version >&5") 2>&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }
3832 { (ac_try="$ac_compiler -v >&5"
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compiler -v >&5") 2>&5
3840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841 (exit $ac_status); }
3842 { (ac_try="$ac_compiler -V >&5"
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_compiler -V >&5") 2>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }
3853 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3854 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3855 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3876 rm -f conftest.$ac_objext
3877 if { (ac_try="$ac_compile"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3922 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3923 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3924 GXX=`test $ac_compiler_gnu = yes && echo yes`
3925 ac_test_CXXFLAGS=${CXXFLAGS+set}
3926 ac_save_CXXFLAGS=$CXXFLAGS
3927 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3928 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3929 if test "${ac_cv_prog_cxx_g+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3933 ac_cxx_werror_flag=yes
3936 cat >conftest.$ac_ext <<_ACEOF
3939 cat confdefs.h >>conftest.$ac_ext
3940 cat >>conftest.$ac_ext <<_ACEOF
3941 /* end confdefs.h. */
3951 rm -f conftest.$ac_objext
3952 if { (ac_try="$ac_compile"
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_compile") 2>conftest.er1
3960 grep -v '^ *+' conftest.er1 >conftest.err
3962 cat conftest.err >&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } &&
3965 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3966 { (case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; } &&
3975 { ac_try='test -s conftest.$ac_objext'
3976 { (case "(($ac_try" in
3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3978 *) ac_try_echo=$ac_try;;
3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3981 (eval "$ac_try") 2>&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); }; }; then
3985 ac_cv_prog_cxx_g=yes
3987 echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5
3991 cat >conftest.$ac_ext <<_ACEOF
3994 cat confdefs.h >>conftest.$ac_ext
3995 cat >>conftest.$ac_ext <<_ACEOF
3996 /* end confdefs.h. */
4006 rm -f conftest.$ac_objext
4007 if { (ac_try="$ac_compile"
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_compile") 2>conftest.er1
4015 grep -v '^ *+' conftest.er1 >conftest.err
4017 cat conftest.err >&5
4018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4019 (exit $ac_status); } &&
4020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4021 { (case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4026 (eval "$ac_try") 2>&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }; } &&
4030 { ac_try='test -s conftest.$ac_objext'
4031 { (case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_try") 2>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; }; then
4042 echo "$as_me: failed program was:" >&5
4043 sed 's/^/| /' conftest.$ac_ext >&5
4045 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4047 cat >conftest.$ac_ext <<_ACEOF
4050 cat confdefs.h >>conftest.$ac_ext
4051 cat >>conftest.$ac_ext <<_ACEOF
4052 /* end confdefs.h. */
4062 rm -f conftest.$ac_objext
4063 if { (ac_try="$ac_compile"
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_compile") 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075 (exit $ac_status); } &&
4076 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4077 { (case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_try") 2>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }; } &&
4086 { ac_try='test -s conftest.$ac_objext'
4087 { (case "(($ac_try" in
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; }; then
4096 ac_cv_prog_cxx_g=yes
4098 echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4113 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4114 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4115 if test "$ac_test_CXXFLAGS" = set; then
4116 CXXFLAGS=$ac_save_CXXFLAGS
4117 elif test $ac_cv_prog_cxx_g = yes; then
4118 if test "$GXX" = yes; then
4124 if test "$GXX" = yes; then
4131 ac_cpp='$CPP $CPPFLAGS'
4132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137 ac_cpp='$CPP $CPPFLAGS'
4138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4141 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4142 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4143 # On Suns, sometimes $CPP names a directory.
4144 if test -n "$CPP" && test -d "$CPP"; then
4147 if test -z "$CPP"; then
4148 if test "${ac_cv_prog_CPP+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 # Double quotes because CPP needs to be expanded
4152 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4155 for ac_c_preproc_warn_flag in '' yes
4157 # Use a header file that comes with gcc, so configuring glibc
4158 # with a fresh cross-compiler works.
4159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4160 # <limits.h> exists even on freestanding compilers.
4161 # On the NeXT, cc -E runs the code through the compiler's parser,
4162 # not just through cpp. "Syntax error" is here to catch this case.
4163 cat >conftest.$ac_ext <<_ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4170 # include <limits.h>
4172 # include <assert.h>
4176 if { (ac_try="$ac_cpp conftest.$ac_ext"
4178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4184 grep -v '^ *+' conftest.er1 >conftest.err
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } >/dev/null; then
4189 if test -s conftest.err; then
4190 ac_cpp_err=$ac_c_preproc_warn_flag
4191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4198 if test -z "$ac_cpp_err"; then
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 # Broken: fails on valid input.
4208 rm -f conftest.err conftest.$ac_ext
4210 # OK, works on sane cases. Now check whether nonexistent headers
4211 # can be detected and how.
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4218 #include <ac_nonexistent.h>
4220 if { (ac_try="$ac_cpp conftest.$ac_ext"
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } >/dev/null; then
4233 if test -s conftest.err; then
4234 ac_cpp_err=$ac_c_preproc_warn_flag
4235 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4242 if test -z "$ac_cpp_err"; then
4243 # Broken: success on invalid input.
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4249 # Passes both tests.
4254 rm -f conftest.err conftest.$ac_ext
4257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4258 rm -f conftest.err conftest.$ac_ext
4259 if $ac_preproc_ok; then
4271 { echo "$as_me:$LINENO: result: $CPP" >&5
4272 echo "${ECHO_T}$CPP" >&6; }
4274 for ac_c_preproc_warn_flag in '' yes
4276 # Use a header file that comes with gcc, so configuring glibc
4277 # with a fresh cross-compiler works.
4278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4279 # <limits.h> exists even on freestanding compilers.
4280 # On the NeXT, cc -E runs the code through the compiler's parser,
4281 # not just through cpp. "Syntax error" is here to catch this case.
4282 cat >conftest.$ac_ext <<_ACEOF
4285 cat confdefs.h >>conftest.$ac_ext
4286 cat >>conftest.$ac_ext <<_ACEOF
4287 /* end confdefs.h. */
4289 # include <limits.h>
4291 # include <assert.h>
4295 if { (ac_try="$ac_cpp conftest.$ac_ext"
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4303 grep -v '^ *+' conftest.er1 >conftest.err
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev/null; then
4308 if test -s conftest.err; then
4309 ac_cpp_err=$ac_c_preproc_warn_flag
4310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4317 if test -z "$ac_cpp_err"; then
4320 echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4323 # Broken: fails on valid input.
4327 rm -f conftest.err conftest.$ac_ext
4329 # OK, works on sane cases. Now check whether nonexistent headers
4330 # can be detected and how.
4331 cat >conftest.$ac_ext <<_ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 #include <ac_nonexistent.h>
4339 if { (ac_try="$ac_cpp conftest.$ac_ext"
4341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4342 *) ac_try_echo=$ac_try;;
4344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4347 grep -v '^ *+' conftest.er1 >conftest.err
4349 cat conftest.err >&5
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); } >/dev/null; then
4352 if test -s conftest.err; then
4353 ac_cpp_err=$ac_c_preproc_warn_flag
4354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4361 if test -z "$ac_cpp_err"; then
4362 # Broken: success on invalid input.
4365 echo "$as_me: failed program was:" >&5
4366 sed 's/^/| /' conftest.$ac_ext >&5
4368 # Passes both tests.
4373 rm -f conftest.err conftest.$ac_ext
4376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4377 rm -f conftest.err conftest.$ac_ext
4378 if $ac_preproc_ok; then
4381 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4382 See \`config.log' for more details." >&5
4383 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4384 See \`config.log' for more details." >&2;}
4385 { (exit 1); exit 1; }; }
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 ac_cpp='$CXXCPP $CPPFLAGS'
4396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4399 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4400 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4401 if test -z "$CXXCPP"; then
4402 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 # Double quotes because CXXCPP needs to be expanded
4406 for CXXCPP in "$CXX -E" "/lib/cpp"
4409 for ac_cxx_preproc_warn_flag in '' yes
4411 # Use a header file that comes with gcc, so configuring glibc
4412 # with a fresh cross-compiler works.
4413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414 # <limits.h> exists even on freestanding compilers.
4415 # On the NeXT, cc -E runs the code through the compiler's parser,
4416 # not just through cpp. "Syntax error" is here to catch this case.
4417 cat >conftest.$ac_ext <<_ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h. */
4424 # include <limits.h>
4426 # include <assert.h>
4430 if { (ac_try="$ac_cpp conftest.$ac_ext"
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4438 grep -v '^ *+' conftest.er1 >conftest.err
4440 cat conftest.err >&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } >/dev/null; then
4443 if test -s conftest.err; then
4444 ac_cpp_err=$ac_cxx_preproc_warn_flag
4445 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4452 if test -z "$ac_cpp_err"; then
4455 echo "$as_me: failed program was:" >&5
4456 sed 's/^/| /' conftest.$ac_ext >&5
4458 # Broken: fails on valid input.
4462 rm -f conftest.err conftest.$ac_ext
4464 # OK, works on sane cases. Now check whether nonexistent headers
4465 # can be detected and how.
4466 cat >conftest.$ac_ext <<_ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4472 #include <ac_nonexistent.h>
4474 if { (ac_try="$ac_cpp conftest.$ac_ext"
4476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477 *) ac_try_echo=$ac_try;;
4479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4482 grep -v '^ *+' conftest.er1 >conftest.err
4484 cat conftest.err >&5
4485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4486 (exit $ac_status); } >/dev/null; then
4487 if test -s conftest.err; then
4488 ac_cpp_err=$ac_cxx_preproc_warn_flag
4489 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4496 if test -z "$ac_cpp_err"; then
4497 # Broken: success on invalid input.
4500 echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.$ac_ext >&5
4503 # Passes both tests.
4508 rm -f conftest.err conftest.$ac_ext
4511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4512 rm -f conftest.err conftest.$ac_ext
4513 if $ac_preproc_ok; then
4518 ac_cv_prog_CXXCPP=$CXXCPP
4521 CXXCPP=$ac_cv_prog_CXXCPP
4523 ac_cv_prog_CXXCPP=$CXXCPP
4525 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4526 echo "${ECHO_T}$CXXCPP" >&6; }
4528 for ac_cxx_preproc_warn_flag in '' yes
4530 # Use a header file that comes with gcc, so configuring glibc
4531 # with a fresh cross-compiler works.
4532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4533 # <limits.h> exists even on freestanding compilers.
4534 # On the NeXT, cc -E runs the code through the compiler's parser,
4535 # not just through cpp. "Syntax error" is here to catch this case.
4536 cat >conftest.$ac_ext <<_ACEOF
4539 cat confdefs.h >>conftest.$ac_ext
4540 cat >>conftest.$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4543 # include <limits.h>
4545 # include <assert.h>
4549 if { (ac_try="$ac_cpp conftest.$ac_ext"
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4557 grep -v '^ *+' conftest.er1 >conftest.err
4559 cat conftest.err >&5
4560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561 (exit $ac_status); } >/dev/null; then
4562 if test -s conftest.err; then
4563 ac_cpp_err=$ac_cxx_preproc_warn_flag
4564 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4571 if test -z "$ac_cpp_err"; then
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4577 # Broken: fails on valid input.
4581 rm -f conftest.err conftest.$ac_ext
4583 # OK, works on sane cases. Now check whether nonexistent headers
4584 # can be detected and how.
4585 cat >conftest.$ac_ext <<_ACEOF
4588 cat confdefs.h >>conftest.$ac_ext
4589 cat >>conftest.$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4591 #include <ac_nonexistent.h>
4593 if { (ac_try="$ac_cpp conftest.$ac_ext"
4595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4596 *) ac_try_echo=$ac_try;;
4598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4601 grep -v '^ *+' conftest.er1 >conftest.err
4603 cat conftest.err >&5
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); } >/dev/null; then
4606 if test -s conftest.err; then
4607 ac_cpp_err=$ac_cxx_preproc_warn_flag
4608 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4615 if test -z "$ac_cpp_err"; then
4616 # Broken: success on invalid input.
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4622 # Passes both tests.
4627 rm -f conftest.err conftest.$ac_ext
4630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4631 rm -f conftest.err conftest.$ac_ext
4632 if $ac_preproc_ok; then
4635 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4636 See \`config.log' for more details." >&5
4637 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4638 See \`config.log' for more details." >&2;}
4639 { (exit 1); exit 1; }; }
4643 ac_cpp='$CPP $CPPFLAGS'
4644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4648 for ac_prog in gawk mawk nawk awk
4650 # Extract the first word of "$ac_prog", so it can be a program name with args.
4651 set dummy $ac_prog; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_AWK+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 if test -n "$AWK"; then
4658 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_AWK="$ac_prog"
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 if test -n "$AWK"; then
4679 { echo "$as_me:$LINENO: result: $AWK" >&5
4680 echo "${ECHO_T}$AWK" >&6; }
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4687 test -n "$AWK" && break
4690 # Find a good install program. We prefer a C program (faster),
4691 # so one script is as good as another. But avoid the broken or
4692 # incompatible versions:
4693 # SysV /etc/install, /usr/sbin/install
4694 # SunOS /usr/etc/install
4695 # IRIX /sbin/install
4697 # AmigaOS /C/install, which installs bootblocks on floppy discs
4698 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4699 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4700 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4701 # OS/2's system install, which has a completely different semantic
4702 # ./install, which can be erroneously created by make from ./install.sh.
4703 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4704 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }