2 # From configure.ac Revision: 35439 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59e.
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 which exist, to save several forks.
237 if test -f "$as_shell" &&
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="asterisk.c"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
800 ac_precious_vars='build_alias
814 # Initialize some variables set by options.
816 ac_init_version=false
817 # The variables have the same names as the options, with
818 # dashes changed to underlines.
826 program_transform_name=s,x,x,
834 # Installation directory options.
835 # These are left unexpanded so users can "make install exec_prefix=/foo"
836 # and all the variables that are supposed to be based on exec_prefix
837 # by default will actually change.
838 # Use braces instead of parens because sh, perl, etc. also accept them.
839 # (The list follows the same order as the GNU Coding Standards.)
840 bindir='${exec_prefix}/bin'
841 sbindir='${exec_prefix}/sbin'
842 libexecdir='${exec_prefix}/libexec'
843 datarootdir='${prefix}/share'
844 datadir='${datarootdir}'
845 sysconfdir='${prefix}/etc'
846 sharedstatedir='${prefix}/com'
847 localstatedir='${prefix}/var'
848 includedir='${prefix}/include'
849 oldincludedir='/usr/include'
850 docdir='${datarootdir}/doc/${PACKAGE}'
851 infodir='${datarootdir}/info'
856 libdir='${exec_prefix}/lib'
857 localedir='${datarootdir}/locale'
858 mandir='${datarootdir}/man'
864 # If the previous option needs an argument, assign it.
865 if test -n "$ac_prev"; then
866 eval $ac_prev=\$ac_option
872 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
876 # Accept the important Cygnus configure options, so we can diagnose typos.
878 case $ac_dashdash$ac_option in
882 -bindir | --bindir | --bindi | --bind | --bin | --bi)
884 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
887 -build | --build | --buil | --bui | --bu)
888 ac_prev=build_alias ;;
889 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
890 build_alias=$ac_optarg ;;
892 -cache-file | --cache-file | --cache-fil | --cache-fi \
893 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
894 ac_prev=cache_file ;;
895 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
896 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
897 cache_file=$ac_optarg ;;
900 cache_file=config.cache ;;
902 -datadir | --datadir | --datadi | --datad)
904 -datadir=* | --datadir=* | --datadi=* | --datad=*)
905 datadir=$ac_optarg ;;
907 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
908 | --dataroo | --dataro | --datar)
909 ac_prev=datarootdir ;;
910 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
911 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
912 datarootdir=$ac_optarg ;;
914 -disable-* | --disable-*)
915 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
918 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
919 { (exit 1); exit 1; }; }
920 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
921 eval enable_$ac_feature=no ;;
923 -docdir | --docdir | --docdi | --doc | --do)
925 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
928 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
933 -enable-* | --enable-*)
934 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938 { (exit 1); exit 1; }; }
939 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
940 eval enable_$ac_feature=\$ac_optarg ;;
942 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
943 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
944 | --exec | --exe | --ex)
945 ac_prev=exec_prefix ;;
946 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
947 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
948 | --exec=* | --exe=* | --ex=*)
949 exec_prefix=$ac_optarg ;;
951 -gas | --gas | --ga | --g)
952 # Obsolete; use --with-gas.
955 -help | --help | --hel | --he | -h)
957 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
958 ac_init_help=recursive ;;
959 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
960 ac_init_help=short ;;
962 -host | --host | --hos | --ho)
963 ac_prev=host_alias ;;
964 -host=* | --host=* | --hos=* | --ho=*)
965 host_alias=$ac_optarg ;;
967 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
969 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
971 htmldir=$ac_optarg ;;
973 -includedir | --includedir | --includedi | --included | --include \
974 | --includ | --inclu | --incl | --inc)
975 ac_prev=includedir ;;
976 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
977 | --includ=* | --inclu=* | --incl=* | --inc=*)
978 includedir=$ac_optarg ;;
980 -infodir | --infodir | --infodi | --infod | --info | --inf)
982 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
983 infodir=$ac_optarg ;;
985 -libdir | --libdir | --libdi | --libd)
987 -libdir=* | --libdir=* | --libdi=* | --libd=*)
990 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
991 | --libexe | --libex | --libe)
992 ac_prev=libexecdir ;;
993 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
994 | --libexe=* | --libex=* | --libe=*)
995 libexecdir=$ac_optarg ;;
997 -localedir | --localedir | --localedi | --localed | --locale)
999 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1000 localedir=$ac_optarg ;;
1002 -localstatedir | --localstatedir | --localstatedi | --localstated \
1003 | --localstate | --localstat | --localsta | --localst | --locals)
1004 ac_prev=localstatedir ;;
1005 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1006 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1007 localstatedir=$ac_optarg ;;
1009 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1011 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1012 mandir=$ac_optarg ;;
1014 -nfp | --nfp | --nf)
1015 # Obsolete; use --without-fp.
1018 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1019 | --no-cr | --no-c | -n)
1022 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1023 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1026 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1027 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1028 | --oldin | --oldi | --old | --ol | --o)
1029 ac_prev=oldincludedir ;;
1030 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1031 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1032 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1033 oldincludedir=$ac_optarg ;;
1035 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1037 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1038 prefix=$ac_optarg ;;
1040 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1041 | --program-pre | --program-pr | --program-p)
1042 ac_prev=program_prefix ;;
1043 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1044 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1045 program_prefix=$ac_optarg ;;
1047 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1048 | --program-suf | --program-su | --program-s)
1049 ac_prev=program_suffix ;;
1050 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1051 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1052 program_suffix=$ac_optarg ;;
1054 -program-transform-name | --program-transform-name \
1055 | --program-transform-nam | --program-transform-na \
1056 | --program-transform-n | --program-transform- \
1057 | --program-transform | --program-transfor \
1058 | --program-transfo | --program-transf \
1059 | --program-trans | --program-tran \
1060 | --progr-tra | --program-tr | --program-t)
1061 ac_prev=program_transform_name ;;
1062 -program-transform-name=* | --program-transform-name=* \
1063 | --program-transform-nam=* | --program-transform-na=* \
1064 | --program-transform-n=* | --program-transform-=* \
1065 | --program-transform=* | --program-transfor=* \
1066 | --program-transfo=* | --program-transf=* \
1067 | --program-trans=* | --program-tran=* \
1068 | --progr-tra=* | --program-tr=* | --program-t=*)
1069 program_transform_name=$ac_optarg ;;
1071 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1073 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1074 pdfdir=$ac_optarg ;;
1076 -psdir | --psdir | --psdi | --psd | --ps)
1078 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1082 | -silent | --silent | --silen | --sile | --sil)
1085 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1087 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1089 sbindir=$ac_optarg ;;
1091 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1092 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1093 | --sharedst | --shareds | --shared | --share | --shar \
1095 ac_prev=sharedstatedir ;;
1096 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1097 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1098 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1100 sharedstatedir=$ac_optarg ;;
1102 -site | --site | --sit)
1104 -site=* | --site=* | --sit=*)
1107 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1109 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1110 srcdir=$ac_optarg ;;
1112 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1113 | --syscon | --sysco | --sysc | --sys | --sy)
1114 ac_prev=sysconfdir ;;
1115 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1116 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1117 sysconfdir=$ac_optarg ;;
1119 -target | --target | --targe | --targ | --tar | --ta | --t)
1120 ac_prev=target_alias ;;
1121 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1122 target_alias=$ac_optarg ;;
1124 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1127 -version | --version | --versio | --versi | --vers | -V)
1128 ac_init_version=: ;;
1131 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1132 # Reject names that are not valid shell variable names.
1133 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1134 { echo "$as_me: error: invalid package name: $ac_package" >&2
1135 { (exit 1); exit 1; }; }
1136 ac_package=`echo $ac_package| sed 's/-/_/g'`
1137 eval with_$ac_package=\$ac_optarg ;;
1139 -without-* | --without-*)
1140 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package | sed 's/-/_/g'`
1146 eval with_$ac_package=no ;;
1149 # Obsolete; use --with-x.
1152 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1153 | --x-incl | --x-inc | --x-in | --x-i)
1154 ac_prev=x_includes ;;
1155 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1156 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1157 x_includes=$ac_optarg ;;
1159 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1160 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1161 ac_prev=x_libraries ;;
1162 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1163 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1164 x_libraries=$ac_optarg ;;
1166 -*) { echo "$as_me: error: unrecognized option: $ac_option
1167 Try \`$0 --help' for more information." >&2
1168 { (exit 1); exit 1; }; }
1172 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1175 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1176 { (exit 1); exit 1; }; }
1177 eval $ac_envvar=\$ac_optarg
1178 export $ac_envvar ;;
1181 # FIXME: should be removed in autoconf 3.0.
1182 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1183 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1184 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1185 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1191 if test -n "$ac_prev"; then
1192 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1193 { echo "$as_me: error: missing argument to $ac_option" >&2
1194 { (exit 1); exit 1; }; }
1197 # Be sure to have absolute directory names.
1198 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1199 datadir sysconfdir sharedstatedir localstatedir includedir \
1200 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1201 libdir localedir mandir
1203 eval ac_val=\$$ac_var
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1209 { (exit 1); exit 1; }; }
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1217 target=$target_alias
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224 If a cross compiler is detected then cross compile mode will be used." >&2
1225 elif test "x$build_alias" != "x$host_alias"; then
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233 test "$silent" = yes && exec 6>/dev/null
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 { echo "$as_me: error: Working directory cannot be determined" >&2
1240 { (exit 1); exit 1; }; }
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 { echo "$as_me: error: pwd does not report name of working directory" >&2
1243 { (exit 1); exit 1; }; }
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$0" ||
1251 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$0" : 'X\(//\)[^/]' \| \
1253 X"$0" : 'X\(//\)$' \| \
1254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1283 { (exit 1); exit 1; }; }
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1288 { (exit 1); exit 1; }; }
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 for ac_var in $ac_precious_vars; do
1301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_env_${ac_var}_value=\$${ac_var}
1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 # Report the --help message.
1310 if test "$ac_init_help" = "long"; then
1311 # Omit some internal or obsolete options to make the list less imposing.
1312 # This message is too long to be a string in the A/UX 3.1 sh.
1314 \`configure' configures this package to adapt to many kinds of systems.
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE. See below for descriptions of some of the useful variables.
1321 Defaults for the options are specified in brackets.
1324 -h, --help display this help and exit
1325 --help=short display options specific to this package
1326 --help=recursive display the short help of all the included packages
1327 -V, --version display version information and exit
1328 -q, --quiet, --silent do not print \`checking...' messages
1329 --cache-file=FILE cache test results in FILE [disabled]
1330 -C, --config-cache alias for \`--cache-file=config.cache'
1331 -n, --no-create do not create output files
1332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334 Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
1336 [$ac_default_prefix]
1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1345 For better control, use the options below.
1347 Fine tuning of the installation directories:
1348 --bindir=DIR user executables [EPREFIX/bin]
1349 --sbindir=DIR system admin executables [EPREFIX/sbin]
1350 --libexecdir=DIR program executables [EPREFIX/libexec]
1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1372 --build=BUILD configure for building on BUILD [guessed]
1373 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1374 --target=TARGET configure for building compilers for TARGET [HOST]
1378 if test -n "$ac_init_help"; then
1383 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1384 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1385 --enable-dev-mode Turn on developer mode
1386 --disable-largefile omit support for large files
1389 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1390 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1391 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1392 --with-curses=PATH use curses files in PATH
1393 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1394 --with-nbs=PATH use Network Broadcast Sound files in PATH
1395 --with-ncurses=PATH use ncurses files in PATH
1396 --with-newt=PATH use newt files in PATH
1397 --with-odbc=PATH use unixODBC files in PATH
1398 --with-ogg=PATH use OGG files in PATH
1399 --with-osptk=PATH use OSP Toolkit files in PATH
1400 --with-popt=PATH use popt files in PATH
1401 --with-pri=PATH use ISDN PRI files in PATH
1402 --with-radiusclient-ng=PATH
1403 use Radius Client files in PATH
1404 --with-speex=PATH use Speex files in PATH
1405 --with-sqlite=PATH use SQLite files in PATH
1406 --with-ssl=PATH use OpenSSL files in PATH
1407 --with-tds=PATH use FreeTDS files in PATH
1408 --with-termcap=PATH use Termcap files in PATH
1409 --with-tinfo=PATH use Term Info files in PATH
1410 --with-vorbis=PATH use Vorbis files in PATH
1411 --with-z=PATH use zlib files in PATH
1412 --with-ossaudio=PATH use Open Sound System files in PATH
1413 --with-tonezone=PATH use Zaptel files in PATH
1414 --with-gsm=PATH use libgsm files in PATH, or 'internal'
1415 --with-pq=PATH use PostgreSQL files in PATH
1416 --with-vpb=PATH use vpb files in PATH
1417 --with-qt=PATH use Qt files in PATH
1418 --with-kde=PATH use KDE files in PATH
1419 --with-pwlib=PATH use PWLib files in PATH
1421 Some influential environment variables:
1422 CC C compiler command
1423 CFLAGS C compiler flags
1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1425 nonstandard directory <lib dir>
1426 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1427 you have headers in a nonstandard directory <include dir>
1428 CXX C++ compiler command
1429 CXXFLAGS C++ compiler flags
1431 CXXCPP C++ preprocessor
1433 Use these variables to override the choices made by `configure' or to help
1434 it to find libraries and programs with nonstandard names/locations.
1440 if test "$ac_init_help" = "recursive"; then
1441 # If there are subdirs, report their specific --help.
1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443 test -d "$ac_dir" || continue
1447 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1450 # A ".." for each directory in $ac_dir_suffix.
1451 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457 ac_abs_top_builddir=$ac_pwd
1458 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459 # for backward compatibility:
1460 ac_top_builddir=$ac_top_build_prefix
1463 .) # We are building in place.
1465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
1468 ac_srcdir=$srcdir$ac_dir_suffix;
1469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1485 $SHELL "$ac_srcdir/configure" --help=recursive
1487 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489 cd "$ac_pwd" || { ac_status=$?; break; }
1493 test -n "$ac_init_help" && exit $ac_status
1494 if $ac_init_version; then
1497 generated by GNU Autoconf 2.59e
1499 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1500 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1501 This configure script is free software; the Free Software Foundation
1502 gives unlimited permission to copy, distribute and modify it.
1508 cat >config.log <<_ACEOF
1509 This file contains any messages produced by compilers while
1510 running configure, to aid debugging if configure makes a mistake.
1512 It was created by $as_me, which was
1513 generated by GNU Autoconf 2.59e. Invocation command line was
1525 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1526 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1527 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1528 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1529 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1531 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1532 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1534 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1535 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1536 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1537 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1538 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1539 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1540 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1548 test -z "$as_dir" && as_dir=.
1549 echo "PATH: $as_dir"
1565 # Keep a trace of the command line.
1566 # Strip out --no-create and --no-recursion so they do not pile up.
1567 # Strip out --silent because we don't want to record it for future runs.
1568 # Also quote any args containing shell meta-characters.
1569 # Make two passes to allow for proper duplicate-argument suppression.
1573 ac_must_keep_next=false
1579 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1580 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1581 | -silent | --silent | --silen | --sile | --sil)
1584 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1587 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1589 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1590 if test $ac_must_keep_next = true; then
1591 ac_must_keep_next=false # Got value, back to normal.
1594 *=* | --config-cache | -C | -disable-* | --disable-* \
1595 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1596 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1597 | -with-* | --with-* | -without-* | --without-* | --x)
1598 case "$ac_configure_args0 " in
1599 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1602 -* ) ac_must_keep_next=true ;;
1605 ac_configure_args="$ac_configure_args '$ac_arg'"
1610 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1611 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1613 # When interrupted or exit'd, cleanup temporary files, and complete
1614 # config.log. We remove comments because anyway the quotes in there
1615 # would cause problems or look ugly.
1616 # WARNING: Use '\'' to represent an apostrophe within the trap.
1617 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1618 trap 'exit_status=$?
1619 # Save into config.log some information that might help in debugging.
1624 ## ---------------- ##
1625 ## Cache variables. ##
1626 ## ---------------- ##
1629 # The following way of writing the cache mishandles newlines in values,
1631 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1632 eval ac_val=\$$ac_var
1636 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1637 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1640 _ | IFS | as_nl) ;; #(
1641 *) $as_unset $ac_var ;;
1646 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1647 *${as_nl}ac_space=\ *)
1649 "s/'\''/'\''\\\\'\'''\''/g;
1650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1653 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1661 ## ----------------- ##
1662 ## Output variables. ##
1663 ## ----------------- ##
1666 for ac_var in $ac_subst_vars
1668 eval ac_val=\$$ac_var
1670 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1672 echo "$ac_var='\''$ac_val'\''"
1676 if test -n "$ac_subst_files"; then
1678 ## ------------------- ##
1679 ## File substitutions. ##
1680 ## ------------------- ##
1683 for ac_var in $ac_subst_files
1685 eval ac_val=\$$ac_var
1687 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 echo "$ac_var='\''$ac_val'\''"
1694 if test -s confdefs.h; then
1704 test "$ac_signal" != 0 &&
1705 echo "$as_me: caught signal $ac_signal"
1706 echo "$as_me: exit $exit_status"
1708 rm -f core *.core core.conftest.* &&
1709 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1712 for ac_signal in 1 2 13 15; do
1713 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1717 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1718 rm -f -r conftest* confdefs.h
1720 # Predefined preprocessor variables.
1722 cat >>confdefs.h <<_ACEOF
1723 #define PACKAGE_NAME "$PACKAGE_NAME"
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_STRING "$PACKAGE_STRING"
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1747 # Let the site file select an alternate cache file if it wants to.
1748 # Prefer explicitly selected file to automatically selected ones.
1749 if test -n "$CONFIG_SITE"; then
1750 set x "$CONFIG_SITE"
1751 elif test "x$prefix" != xNONE; then
1752 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1754 set x "$ac_default_prefix/share/config.site" \
1755 "$ac_default_prefix/etc/config.site"
1760 if test -r "$ac_site_file"; then
1761 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1762 echo "$as_me: loading site script $ac_site_file" >&6;}
1763 sed 's/^/| /' "$ac_site_file" >&5
1768 if test -r "$cache_file"; then
1769 # Some versions of bash will fail to source /dev/null (special
1770 # files actually), so we avoid doing that.
1771 if test -f "$cache_file"; then
1772 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1773 echo "$as_me: loading cache $cache_file" >&6;}
1775 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1776 *) . "./$cache_file";;
1780 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1781 echo "$as_me: creating cache $cache_file" >&6;}
1785 # Check that the precious variables saved in the cache have kept the same
1787 ac_cache_corrupted=false
1788 for ac_var in $ac_precious_vars; do
1789 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1790 eval ac_new_set=\$ac_env_${ac_var}_set
1791 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1792 eval ac_new_val=\$ac_env_${ac_var}_value
1793 case $ac_old_set,$ac_new_set in
1795 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1796 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1797 ac_cache_corrupted=: ;;
1799 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1800 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1801 ac_cache_corrupted=: ;;
1804 if test "x$ac_old_val" != "x$ac_new_val"; then
1805 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1806 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1807 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1808 echo "$as_me: former value: $ac_old_val" >&2;}
1809 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1810 echo "$as_me: current value: $ac_new_val" >&2;}
1811 ac_cache_corrupted=:
1814 # Pass precious variables to config.status.
1815 if test "$ac_new_set" = set; then
1817 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1818 *) ac_arg=$ac_var=$ac_new_val ;;
1820 case " $ac_configure_args " in
1821 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1822 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1826 if $ac_cache_corrupted; then
1827 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1828 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1829 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1830 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1831 { (exit 1); exit 1; }; }
1851 ac_cpp='$CPP $CPPFLAGS'
1852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1858 # cross-compile macros
1860 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1861 if test -f "$ac_dir/install-sh"; then
1863 ac_install_sh="$ac_aux_dir/install-sh -c"
1865 elif test -f "$ac_dir/install.sh"; then
1867 ac_install_sh="$ac_aux_dir/install.sh -c"
1869 elif test -f "$ac_dir/shtool"; then
1871 ac_install_sh="$ac_aux_dir/shtool install -c"
1875 if test -z "$ac_aux_dir"; then
1876 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1877 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1878 { (exit 1); exit 1; }; }
1881 # These three variables are undocumented and unsupported,
1882 # and are intended to be withdrawn in a future Autoconf release.
1883 # They can cause serious problems if a builder's source tree is in a directory
1884 # whose full name contains unusual characters.
1885 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1886 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1887 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1890 # Make sure we can run config.sub.
1891 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1892 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1893 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1894 { (exit 1); exit 1; }; }
1896 { echo "$as_me:$LINENO: checking build system type" >&5
1897 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1898 if test "${ac_cv_build+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 ac_build_alias=$build_alias
1902 test "x$ac_build_alias" = x &&
1903 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1904 test "x$ac_build_alias" = x &&
1905 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1906 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1907 { (exit 1); exit 1; }; }
1908 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1909 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1910 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1911 { (exit 1); exit 1; }; }
1914 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1915 echo "${ECHO_T}$ac_cv_build" >&6; }
1916 case $ac_cv_build in
1918 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1919 echo "$as_me: error: invalid value of canonical build" >&2;}
1920 { (exit 1); exit 1; }; };;
1923 ac_save_IFS=$IFS; IFS='-'
1929 # Remember, the first character of IFS is used to create $*,
1930 # except with old shells:
1933 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1936 { echo "$as_me:$LINENO: checking host system type" >&5
1937 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1938 if test "${ac_cv_host+set}" = set; then
1939 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 if test "x$host_alias" = x; then
1942 ac_cv_host=$ac_cv_build
1944 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1945 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1946 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1947 { (exit 1); exit 1; }; }
1951 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1952 echo "${ECHO_T}$ac_cv_host" >&6; }
1955 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1956 echo "$as_me: error: invalid value of canonical host" >&2;}
1957 { (exit 1); exit 1; }; };;
1960 ac_save_IFS=$IFS; IFS='-'
1966 # Remember, the first character of IFS is used to create $*,
1967 # except with old shells:
1970 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1973 { echo "$as_me:$LINENO: checking target system type" >&5
1974 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1975 if test "${ac_cv_target+set}" = set; then
1976 echo $ECHO_N "(cached) $ECHO_C" >&6
1978 if test "x$target_alias" = x; then
1979 ac_cv_target=$ac_cv_host
1981 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1982 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1983 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1984 { (exit 1); exit 1; }; }
1988 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1989 echo "${ECHO_T}$ac_cv_target" >&6; }
1990 case $ac_cv_target in
1992 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1993 echo "$as_me: error: invalid value of canonical target" >&2;}
1994 { (exit 1); exit 1; }; };;
1996 target=$ac_cv_target
1997 ac_save_IFS=$IFS; IFS='-'
2003 # Remember, the first character of IFS is used to create $*,
2004 # except with old shells:
2007 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2010 # The aliases save the names the user supplied, while $host etc.
2011 # will get canonicalized.
2012 test -n "$target_alias" &&
2013 test "$program_prefix$program_suffix$program_transform_name" = \
2015 program_prefix=${target_alias}-
2017 # check existence of the package
2020 # specify output header file
2021 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2029 ac_default_prefix=/usr/local
2032 ac_default_prefix=/usr
2033 if test ${sysconfdir} = '${prefix}/etc'; then
2036 if test ${mandir} = '${prefix}/man'; then
2037 mandir=/usr/share/man
2042 if test ${localstatedir} = '${prefix}/var'; then
2048 cat >>confdefs.h <<_ACEOF
2049 #define PBX_PLATFORM "${host}"
2053 cat >>confdefs.h <<_ACEOF
2054 #define PBX_CPU "${host_cpu}"
2058 cat >>confdefs.h <<_ACEOF
2059 #define PBX_VENDOR "${host_vendor}"
2063 cat >>confdefs.h <<_ACEOF
2064 #define PBX_OS "${host_os}"
2068 # export some useful defines
2069 PBX_PLATFORM=${host}
2071 PBX_VENDOR=${host_vendor}
2079 if test -n "$ac_tool_prefix"; then
2080 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2081 set dummy ${ac_tool_prefix}uname; ac_word=$2
2082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2084 if test "${ac_cv_path_UNAME+set}" = set; then
2085 echo $ECHO_N "(cached) $ECHO_C" >&6
2089 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2099 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 UNAME=$ac_cv_path_UNAME
2111 if test -n "$UNAME"; then
2112 { echo "$as_me:$LINENO: result: $UNAME" >&5
2113 echo "${ECHO_T}$UNAME" >&6; }
2115 { echo "$as_me:$LINENO: result: no" >&5
2116 echo "${ECHO_T}no" >&6; }
2121 if test -z "$ac_cv_path_UNAME"; then
2123 # Extract the first word of "uname", so it can be a program name with args.
2124 set dummy uname; ac_word=$2
2125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2127 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 case $ac_pt_UNAME in
2132 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 test -z "$as_dir" && as_dir=.
2140 for ac_exec_ext in '' $ac_executable_extensions; do
2141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2142 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2154 if test -n "$ac_pt_UNAME"; then
2155 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2156 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2158 { echo "$as_me:$LINENO: result: no" >&5
2159 echo "${ECHO_T}no" >&6; }
2162 if test "x$ac_pt_UNAME" = x; then
2165 case $cross_compiling:$ac_tool_warned in
2167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2168 whose name does not start with the host triplet. If you think this
2169 configuration is useful to you, please write to autoconf@gnu.org." >&5
2170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2171 whose name does not start with the host triplet. If you think this
2172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2173 ac_tool_warned=yes ;;
2178 UNAME="$ac_cv_path_UNAME"
2181 if test ! x"${UNAME}" = xNo; then
2182 PBX_OSREV=$(${UNAME} -r)
2188 cygwin*|mingw*|windows*|winnt)
2190 cat >>confdefs.h <<\_ACEOF
2195 # this is ugly - KPF
2201 cat >>confdefs.h <<\_ACEOF
2209 cat >>confdefs.h <<\_ACEOF
2217 cat >>confdefs.h <<\_ACEOF
2221 PBX_OSTYPE="FreeBSD"
2222 # XXX temporary hack to let FreeBSD use the default paths
2223 # for local stuff. We need a better solution.
2224 if test x"${CPPFLAGS}" = x; then
2225 CPPFLAGS="-I /usr/local/include"
2227 if test x"${LDFLAGS}" = x; then
2228 LDFLAGS="-L /usr/local/lib"
2233 cat >>confdefs.h <<\_ACEOF
2237 PBX_OSTYPE="OpenBSD"
2241 cat >>confdefs.h <<\_ACEOF
2249 cat >>confdefs.h <<\_ACEOF
2257 cat >>confdefs.h <<\_ACEOF
2266 # This needs to be before any macros that use the C compiler
2268 cat >>confdefs.h <<\_ACEOF
2269 #define _GNU_SOURCE 1
2280 # cross-compile checks
2281 if test x"${build}" != x"${host}";
2283 if test -n "$ac_tool_prefix"; then
2284 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2285 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2288 if test "${ac_cv_prog_CC+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 if test -n "$CC"; then
2292 ac_cv_prog_CC="$CC" # Let the user override the test.
2294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 test -z "$as_dir" && as_dir=.
2299 for ac_exec_ext in '' $ac_executable_extensions; do
2300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2301 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312 if test -n "$CC"; then
2313 { echo "$as_me:$LINENO: result: $CC" >&5
2314 echo "${ECHO_T}$CC" >&6; }
2316 { echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6; }
2322 if test -z "$ac_cv_prog_CC"; then
2324 # Extract the first word of "gcc", so it can be a program name with args.
2325 set dummy gcc; ac_word=$2
2326 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2328 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 if test -n "$ac_ct_CC"; then
2332 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 test -z "$as_dir" && as_dir=.
2339 for ac_exec_ext in '' $ac_executable_extensions; do
2340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2341 ac_cv_prog_ac_ct_CC="gcc"
2342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2352 if test -n "$ac_ct_CC"; then
2353 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2354 echo "${ECHO_T}$ac_ct_CC" >&6; }
2356 { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2360 if test "x$ac_ct_CC" = x; then
2363 case $cross_compiling:$ac_tool_warned in
2365 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2366 whose name does not start with the host triplet. If you think this
2367 configuration is useful to you, please write to autoconf@gnu.org." >&5
2368 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2369 whose name does not start with the host triplet. If you think this
2370 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2371 ac_tool_warned=yes ;;
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2381 set dummy ${ac_tool_prefix}g++; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_CXX+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test -n "$CXX"; then
2388 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 if test -n "$CXX"; then
2409 { echo "$as_me:$LINENO: result: $CXX" >&5
2410 echo "${ECHO_T}$CXX" >&6; }
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2418 if test -z "$ac_cv_prog_CXX"; then
2420 # Extract the first word of "g++", so it can be a program name with args.
2421 set dummy g++; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 if test -n "$ac_ct_CXX"; then
2428 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_ac_ct_CXX="g++"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2448 if test -n "$ac_ct_CXX"; then
2449 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2450 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2456 if test "x$ac_ct_CXX" = x; then
2459 case $cross_compiling:$ac_tool_warned in
2461 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2462 whose name does not start with the host triplet. If you think this
2463 configuration is useful to you, please write to autoconf@gnu.org." >&5
2464 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465 whose name does not start with the host triplet. If you think this
2466 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2467 ac_tool_warned=yes ;;
2472 CXX="$ac_cv_prog_CXX"
2475 if test -n "$ac_tool_prefix"; then
2476 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2477 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_RANLIB+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$RANLIB"; then
2484 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir=.
2491 for ac_exec_ext in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 RANLIB=$ac_cv_prog_RANLIB
2504 if test -n "$RANLIB"; then
2505 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2506 echo "${ECHO_T}$RANLIB" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2514 if test -z "$ac_cv_prog_RANLIB"; then
2515 ac_ct_RANLIB=$RANLIB
2516 # Extract the first word of "ranlib", so it can be a program name with args.
2517 set dummy ranlib; ac_word=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$ac_ct_RANLIB"; then
2524 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir=.
2531 for ac_exec_ext in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_ac_ct_RANLIB="ranlib"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2544 if test -n "$ac_ct_RANLIB"; then
2545 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2546 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2552 if test "x$ac_ct_RANLIB" = x; then
2555 case $cross_compiling:$ac_tool_warned in
2557 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2558 whose name does not start with the host triplet. If you think this
2559 configuration is useful to you, please write to autoconf@gnu.org." >&5
2560 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2561 whose name does not start with the host triplet. If you think this
2562 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2563 ac_tool_warned=yes ;;
2565 RANLIB=$ac_ct_RANLIB
2568 RANLIB="$ac_cv_prog_RANLIB"
2571 if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2573 set dummy ${ac_tool_prefix}ar; ac_word=$2
2574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2576 if test "${ac_cv_prog_AR+set}" = set; then
2577 echo $ECHO_N "(cached) $ECHO_C" >&6
2579 if test -n "$AR"; then
2580 ac_cv_prog_AR="$AR" # Let the user override the test.
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2589 ac_cv_prog_AR="${ac_tool_prefix}ar"
2590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2600 if test -n "$AR"; then
2601 { echo "$as_me:$LINENO: result: $AR" >&5
2602 echo "${ECHO_T}$AR" >&6; }
2604 { echo "$as_me:$LINENO: result: no" >&5
2605 echo "${ECHO_T}no" >&6; }
2610 if test -z "$ac_cv_prog_AR"; then
2612 # Extract the first word of "ar", so it can be a program name with args.
2613 set dummy ar; ac_word=$2
2614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2616 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2619 if test -n "$ac_ct_AR"; then
2620 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2629 ac_cv_prog_ac_ct_AR="ar"
2630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2639 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2640 if test -n "$ac_ct_AR"; then
2641 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2642 echo "${ECHO_T}$ac_ct_AR" >&6; }
2644 { echo "$as_me:$LINENO: result: no" >&5
2645 echo "${ECHO_T}no" >&6; }
2648 if test "x$ac_ct_AR" = x; then
2651 case $cross_compiling:$ac_tool_warned in
2653 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2654 whose name does not start with the host triplet. If you think this
2655 configuration is useful to you, please write to autoconf@gnu.org." >&5
2656 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2657 whose name does not start with the host triplet. If you think this
2658 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2659 ac_tool_warned=yes ;;
2668 if test x"${PBX_OSTYPE}" = xWin32;
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2672 set dummy ${ac_tool_prefix}nm; ac_word=$2
2673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2675 if test "${ac_cv_prog_NM+set}" = set; then
2676 echo $ECHO_N "(cached) $ECHO_C" >&6
2678 if test -n "$NM"; then
2679 ac_cv_prog_NM="$NM" # Let the user override the test.
2681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2688 ac_cv_prog_NM="${ac_tool_prefix}nm"
2689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 if test -n "$NM"; then
2700 { echo "$as_me:$LINENO: result: $NM" >&5
2701 echo "${ECHO_T}$NM" >&6; }
2703 { echo "$as_me:$LINENO: result: no" >&5
2704 echo "${ECHO_T}no" >&6; }
2709 if test -z "$ac_cv_prog_NM"; then
2711 # Extract the first word of "nm", so it can be a program name with args.
2712 set dummy nm; ac_word=$2
2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 if test -n "$ac_ct_NM"; then
2719 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_ac_ct_NM="nm"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2739 if test -n "$ac_ct_NM"; then
2740 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2741 echo "${ECHO_T}$ac_ct_NM" >&6; }
2743 { echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6; }
2747 if test "x$ac_ct_NM" = x; then
2750 case $cross_compiling:$ac_tool_warned in
2752 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2753 whose name does not start with the host triplet. If you think this
2754 configuration is useful to you, please write to autoconf@gnu.org." >&5
2755 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2756 whose name does not start with the host triplet. If you think this
2757 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2758 ac_tool_warned=yes ;;
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}windres; ac_word=$2
2769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_WINDRES+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$WINDRES"; then
2775 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794 WINDRES=$ac_cv_prog_WINDRES
2795 if test -n "$WINDRES"; then
2796 { echo "$as_me:$LINENO: result: $WINDRES" >&5
2797 echo "${ECHO_T}$WINDRES" >&6; }
2799 { echo "$as_me:$LINENO: result: no" >&5
2800 echo "${ECHO_T}no" >&6; }
2805 if test -z "$ac_cv_prog_WINDRES"; then
2806 ac_ct_WINDRES=$WINDRES
2807 # Extract the first word of "windres", so it can be a program name with args.
2808 set dummy windres; ac_word=$2
2809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2811 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 if test -n "$ac_ct_WINDRES"; then
2815 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_ac_ct_WINDRES="windres"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2835 if test -n "$ac_ct_WINDRES"; then
2836 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2837 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
2839 { echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6; }
2843 if test "x$ac_ct_WINDRES" = x; then
2846 case $cross_compiling:$ac_tool_warned in
2848 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2849 whose name does not start with the host triplet. If you think this
2850 configuration is useful to you, please write to autoconf@gnu.org." >&5
2851 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2852 whose name does not start with the host triplet. If you think this
2853 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2854 ac_tool_warned=yes ;;
2856 WINDRES=$ac_ct_WINDRES
2859 WINDRES="$ac_cv_prog_WINDRES"
2862 if test -n "$ac_tool_prefix"; then
2863 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
2864 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
2865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2867 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
2868 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 if test -n "$DLLWRAP"; then
2871 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 test -z "$as_dir" && as_dir=.
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2880 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
2881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 DLLWRAP=$ac_cv_prog_DLLWRAP
2891 if test -n "$DLLWRAP"; then
2892 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
2893 echo "${ECHO_T}$DLLWRAP" >&6; }
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2901 if test -z "$ac_cv_prog_DLLWRAP"; then
2902 ac_ct_DLLWRAP=$DLLWRAP
2903 # Extract the first word of "dllwrap", so it can be a program name with args.
2904 set dummy dllwrap; ac_word=$2
2905 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2907 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
2908 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 if test -n "$ac_ct_DLLWRAP"; then
2911 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
2921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
2931 if test -n "$ac_ct_DLLWRAP"; then
2932 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
2933 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
2935 { echo "$as_me:$LINENO: result: no" >&5
2936 echo "${ECHO_T}no" >&6; }
2939 if test "x$ac_ct_DLLWRAP" = x; then
2942 case $cross_compiling:$ac_tool_warned in
2944 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2945 whose name does not start with the host triplet. If you think this
2946 configuration is useful to you, please write to autoconf@gnu.org." >&5
2947 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2948 whose name does not start with the host triplet. If you think this
2949 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2950 ac_tool_warned=yes ;;
2952 DLLWRAP=$ac_ct_DLLWRAP
2955 DLLWRAP="$ac_cv_prog_DLLWRAP"
2962 # Checks for programs.
2964 ac_cpp='$CPP $CPPFLAGS'
2965 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2966 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2967 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2968 if test -n "$ac_tool_prefix"; then
2969 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2970 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2973 if test "${ac_cv_prog_CC+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2997 if test -n "$CC"; then
2998 { echo "$as_me:$LINENO: result: $CC" >&5
2999 echo "${ECHO_T}$CC" >&6; }
3001 { echo "$as_me:$LINENO: result: no" >&5
3002 echo "${ECHO_T}no" >&6; }
3007 if test -z "$ac_cv_prog_CC"; then
3009 # Extract the first word of "gcc", so it can be a program name with args.
3010 set dummy gcc; ac_word=$2
3011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3013 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 ac_cv_prog_ac_ct_CC="gcc"
3027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3036 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037 if test -n "$ac_ct_CC"; then
3038 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3039 echo "${ECHO_T}$ac_ct_CC" >&6; }
3041 { echo "$as_me:$LINENO: result: no" >&5
3042 echo "${ECHO_T}no" >&6; }
3045 if test "x$ac_ct_CC" = x; then
3048 case $cross_compiling:$ac_tool_warned in
3050 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3051 whose name does not start with the host triplet. If you think this
3052 configuration is useful to you, please write to autoconf@gnu.org." >&5
3053 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3054 whose name does not start with the host triplet. If you think this
3055 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3056 ac_tool_warned=yes ;;
3064 if test -z "$CC"; then
3065 if test -n "$ac_tool_prefix"; then
3066 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3067 set dummy ${ac_tool_prefix}cc; ac_word=$2
3068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3070 if test "${ac_cv_prog_CC+set}" = set; then
3071 echo $ECHO_N "(cached) $ECHO_C" >&6
3073 if test -n "$CC"; then
3074 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_CC="${ac_tool_prefix}cc"
3084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 if test -n "$CC"; then
3095 { echo "$as_me:$LINENO: result: $CC" >&5
3096 echo "${ECHO_T}$CC" >&6; }
3098 { echo "$as_me:$LINENO: result: no" >&5
3099 echo "${ECHO_T}no" >&6; }
3105 if test -z "$CC"; then
3106 # Extract the first word of "cc", so it can be a program name with args.
3107 set dummy cc; ac_word=$2
3108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3110 if test "${ac_cv_prog_CC+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3113 if test -n "$CC"; then
3114 ac_cv_prog_CC="$CC" # Let the user override the test.
3117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 test -z "$as_dir" && as_dir=.
3122 for ac_exec_ext in '' $ac_executable_extensions; do
3123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3125 ac_prog_rejected=yes
3129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3136 if test $ac_prog_rejected = yes; then
3137 # We found a bogon in the path, so make sure we never use it.
3138 set dummy $ac_cv_prog_CC
3140 if test $# != 0; then
3141 # We chose a different compiler from the bogus one.
3142 # However, it has the same basename, so the bogon will be chosen
3143 # first if we set CC to just the basename; use the full file name.
3145 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3151 if test -n "$CC"; then
3152 { echo "$as_me:$LINENO: result: $CC" >&5
3153 echo "${ECHO_T}$CC" >&6; }
3155 { echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6; }
3161 if test -z "$CC"; then
3162 if test -n "$ac_tool_prefix"; then
3163 for ac_prog in cl.exe
3165 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3166 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3169 if test "${ac_cv_prog_CC+set}" = set; then
3170 echo $ECHO_N "(cached) $ECHO_C" >&6
3172 if test -n "$CC"; then
3173 ac_cv_prog_CC="$CC" # Let the user override the test.
3175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 test -z "$as_dir" && as_dir=.
3180 for ac_exec_ext in '' $ac_executable_extensions; do
3181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3182 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3193 if test -n "$CC"; then
3194 { echo "$as_me:$LINENO: result: $CC" >&5
3195 echo "${ECHO_T}$CC" >&6; }
3197 { echo "$as_me:$LINENO: result: no" >&5
3198 echo "${ECHO_T}no" >&6; }
3202 test -n "$CC" && break
3205 if test -z "$CC"; then
3207 for ac_prog in cl.exe
3209 # Extract the first word of "$ac_prog", so it can be a program name with args.
3210 set dummy $ac_prog; ac_word=$2
3211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3213 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 if test -n "$ac_ct_CC"; then
3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3226 ac_cv_prog_ac_ct_CC="$ac_prog"
3227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3237 if test -n "$ac_ct_CC"; then
3238 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3239 echo "${ECHO_T}$ac_ct_CC" >&6; }
3241 { echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6; }
3246 test -n "$ac_ct_CC" && break
3249 if test "x$ac_ct_CC" = x; then
3252 case $cross_compiling:$ac_tool_warned in
3254 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3255 whose name does not start with the host triplet. If you think this
3256 configuration is useful to you, please write to autoconf@gnu.org." >&5
3257 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3258 whose name does not start with the host triplet. If you think this
3259 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3260 ac_tool_warned=yes ;;
3269 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3270 See \`config.log' for more details." >&5
3271 echo "$as_me: error: no acceptable C compiler found in \$PATH
3272 See \`config.log' for more details." >&2;}
3273 { (exit 1); exit 1; }; }
3275 # Provide some information about the compiler.
3276 echo "$as_me:$LINENO: checking for C compiler version" >&5
3277 ac_compiler=`set X $ac_compile; echo $2`
3278 { (ac_try="$ac_compiler --version >&5"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3284 (eval "$ac_compiler --version >&5") 2>&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); }
3288 { (ac_try="$ac_compiler -v >&5"
3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291 *) ac_try_echo=$ac_try;;
3293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3294 (eval "$ac_compiler -v >&5") 2>&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); }
3298 { (ac_try="$ac_compiler -V >&5"
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3304 (eval "$ac_compiler -V >&5") 2>&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3324 ac_clean_files_save=$ac_clean_files
3325 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3326 # Try to create an executable without -o first, disregard a.out.
3327 # It will help us diagnose broken compilers, and finding out an intuition
3329 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3330 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3331 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3333 # List of possible output files, starting from the most likely.
3334 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3335 # only as a last resort. b.out is created by i960 compilers.
3336 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3338 # The IRIX 6 linker writes into existing files which may not be
3339 # executable, retaining their permissions. Remove them first so a
3340 # subsequent execution test works.
3342 for ac_file in $ac_files
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3346 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3351 if { (ac_try="$ac_link_default"
3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3354 *) ac_try_echo=$ac_try;;
3356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3357 (eval "$ac_link_default") 2>&5
3359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3360 (exit $ac_status); }; then
3361 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3362 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3363 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3364 # so that the user can short-circuit this test for compilers unknown to
3366 for ac_file in $ac_files
3368 test -f "$ac_file" || continue
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3373 # We found the default executable, but exeext='' is most
3377 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3379 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3381 # We set ac_cv_exeext here because the later test for it is not
3382 # safe: cross compilers may not add the suffix if given an `-o'
3383 # argument, so we may need to know it at that point already.
3384 # Even if this section looks crufty: it has the advantage of
3391 test "$ac_cv_exeext" = no && ac_cv_exeext=
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3398 See \`config.log' for more details." >&5
3399 echo "$as_me: error: C compiler cannot create executables
3400 See \`config.log' for more details." >&2;}
3401 { (exit 77); exit 77; }; }
3404 ac_exeext=$ac_cv_exeext
3405 { echo "$as_me:$LINENO: result: $ac_file" >&5
3406 echo "${ECHO_T}$ac_file" >&6; }
3408 # Check that the compiler produces executables we can run. If not, either
3409 # the compiler is broken, or we cross compile.
3410 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3411 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3412 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3413 # If not cross compiling, check that we can run a simple program.
3414 if test "$cross_compiling" != yes; then
3415 if { ac_try='./$ac_file'
3416 { (case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_try") 2>&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); }; }; then
3427 if test "$cross_compiling" = maybe; then
3430 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3431 If you meant to cross compile, use \`--host'.
3432 See \`config.log' for more details." >&5
3433 echo "$as_me: error: cannot run C compiled programs.
3434 If you meant to cross compile, use \`--host'.
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3440 { echo "$as_me:$LINENO: result: yes" >&5
3441 echo "${ECHO_T}yes" >&6; }
3443 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3444 ac_clean_files=$ac_clean_files_save
3445 # Check that the compiler produces executables we can run. If not, either
3446 # the compiler is broken, or we cross compile.
3447 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3448 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3449 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3450 echo "${ECHO_T}$cross_compiling" >&6; }
3452 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3453 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3454 if { (ac_try="$ac_link"
3456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3457 *) ac_try_echo=$ac_try;;
3459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3460 (eval "$ac_link") 2>&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); }; then
3464 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3465 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3466 # work properly (i.e., refer to `conftest.exe'), while it won't with
3468 for ac_file in conftest.exe conftest conftest.*; do
3469 test -f "$ac_file" || continue
3471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3472 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3479 See \`config.log' for more details." >&5
3480 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3481 See \`config.log' for more details." >&2;}
3482 { (exit 1); exit 1; }; }
3485 rm -f conftest$ac_cv_exeext
3486 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3487 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3489 rm -f conftest.$ac_ext
3490 EXEEXT=$ac_cv_exeext
3492 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3493 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3494 if test "${ac_cv_objext+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3497 cat >conftest.$ac_ext <<_ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3512 rm -f conftest.o conftest.obj
3513 if { (ac_try="$ac_compile"
3515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516 *) ac_try_echo=$ac_try;;
3518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3519 (eval "$ac_compile") 2>&5
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; then
3523 for ac_file in conftest.o conftest.obj conftest.*; do
3524 test -f "$ac_file" || continue;
3526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3527 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3532 echo "$as_me: failed program was:" >&5
3533 sed 's/^/| /' conftest.$ac_ext >&5
3535 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3536 See \`config.log' for more details." >&5
3537 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3538 See \`config.log' for more details." >&2;}
3539 { (exit 1); exit 1; }; }
3542 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3544 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3545 echo "${ECHO_T}$ac_cv_objext" >&6; }
3546 OBJEXT=$ac_cv_objext
3548 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3549 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3550 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compile") 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3586 { (case "(($ac_try" in
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_try") 2>&5
3593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3594 (exit $ac_status); }; } &&
3595 { ac_try='test -s conftest.$ac_objext'
3596 { (case "(($ac_try" in
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_try") 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; }; then
3607 echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3613 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3614 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3617 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3618 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3619 GCC=`test $ac_compiler_gnu = yes && echo yes`
3620 ac_test_CFLAGS=${CFLAGS+set}
3621 ac_save_CFLAGS=$CFLAGS
3622 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3623 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3624 if test "${ac_cv_prog_cc_g+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_save_c_werror_flag=$ac_c_werror_flag
3628 ac_c_werror_flag=yes
3631 cat >conftest.$ac_ext <<_ACEOF
3634 cat confdefs.h >>conftest.$ac_ext
3635 cat >>conftest.$ac_ext <<_ACEOF
3636 /* end confdefs.h. */
3646 rm -f conftest.$ac_objext
3647 if { (ac_try="$ac_compile"
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_compile") 2>conftest.er1
3655 grep -v '^ *+' conftest.er1 >conftest.err
3657 cat conftest.err >&5
3658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659 (exit $ac_status); } &&
3660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3661 { (case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_try") 2>&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); }; } &&
3670 { ac_try='test -s conftest.$ac_objext'
3671 { (case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3676 (eval "$ac_try") 2>&5
3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679 (exit $ac_status); }; }; then
3682 echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3701 rm -f conftest.$ac_objext
3702 if { (ac_try="$ac_compile"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_compile") 2>conftest.er1
3710 grep -v '^ *+' conftest.er1 >conftest.err
3712 cat conftest.err >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); } &&
3715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3716 { (case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;;
3720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3721 (eval "$ac_try") 2>&5
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724 (exit $ac_status); }; } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_try") 2>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; }; then
3737 echo "$as_me: failed program was:" >&5
3738 sed 's/^/| /' conftest.$ac_ext >&5
3740 ac_c_werror_flag=$ac_save_c_werror_flag
3742 cat >conftest.$ac_ext <<_ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h. */
3757 rm -f conftest.$ac_objext
3758 if { (ac_try="$ac_compile"
3760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761 *) ac_try_echo=$ac_try;;
3763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3764 (eval "$ac_compile") 2>conftest.er1
3766 grep -v '^ *+' conftest.er1 >conftest.err
3768 cat conftest.err >&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } &&
3771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3772 { (case "(($ac_try" in
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_try") 2>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; } &&
3781 { ac_try='test -s conftest.$ac_objext'
3782 { (case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_try") 2>&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; }; then
3793 echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag
3808 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3809 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then
3819 if test "$GCC" = yes; then
3825 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3826 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3827 if test "${ac_cv_prog_cc_c89+set}" = set; then
3828 echo $ECHO_N "(cached) $ECHO_C" >&6
3830 ac_cv_prog_cc_c89=no
3832 cat >conftest.$ac_ext <<_ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3840 #include <sys/types.h>
3841 #include <sys/stat.h>
3842 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3843 struct buf { int x; };
3844 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3845 static char *e (p, i)
3851 static char *f (char * (*g) (char **, int), char **p, ...)
3856 s = g (p, va_arg (v,int));
3861 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3862 function prototypes and stuff, but not '\xHH' hex character constants.
3863 These don't provoke an error unfortunately, instead are silently treated
3864 as 'x'. The following induces an error, until -std is added to get
3865 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3866 array size at least. It's necessary to write '\x00'==0 to get something
3867 that's true only with -std. */
3868 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3870 int test (int i, double x);
3871 struct s1 {int (*f) (int a);};
3872 struct s2 {int (*f) (double a);};
3873 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3879 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3884 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3885 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3887 CC="$ac_save_CC $ac_arg"
3888 rm -f conftest.$ac_objext
3889 if { (ac_try="$ac_compile"
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_compile") 2>conftest.er1
3897 grep -v '^ *+' conftest.er1 >conftest.err
3899 cat conftest.err >&5
3900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } &&
3902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3903 { (case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3908 (eval "$ac_try") 2>&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; } &&
3912 { ac_try='test -s conftest.$ac_objext'
3913 { (case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918 (eval "$ac_try") 2>&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 ac_cv_prog_cc_c89=$ac_arg
3924 echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3930 rm -f conftest.err conftest.$ac_objext
3931 test "x$ac_cv_prog_cc_c89" != "xno" && break
3933 rm -f conftest.$ac_ext
3938 case "x$ac_cv_prog_cc_c89" in
3940 { echo "$as_me:$LINENO: result: none needed" >&5
3941 echo "${ECHO_T}none needed" >&6; } ;;
3943 { echo "$as_me:$LINENO: result: unsupported" >&5
3944 echo "${ECHO_T}unsupported" >&6; } ;;
3946 CC="$CC $ac_cv_prog_cc_c89"
3947 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3948 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959 ac_cpp='$CXXCPP $CPPFLAGS'
3960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3963 if test -z "$CXX"; then
3964 if test -n "$CCC"; then
3967 if test -n "$ac_tool_prefix"; then
3968 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3974 if test "${ac_cv_prog_CXX+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 if test -n "$CXX"; then
3978 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984 test -z "$as_dir" && as_dir=.
3985 for ac_exec_ext in '' $ac_executable_extensions; do
3986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3987 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 if test -n "$CXX"; then
3999 { echo "$as_me:$LINENO: result: $CXX" >&5
4000 echo "${ECHO_T}$CXX" >&6; }
4002 { echo "$as_me:$LINENO: result: no" >&5
4003 echo "${ECHO_T}no" >&6; }
4007 test -n "$CXX" && break
4010 if test -z "$CXX"; then
4012 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4014 # Extract the first word of "$ac_prog", so it can be a program name with args.
4015 set dummy $ac_prog; ac_word=$2
4016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4018 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 if test -n "$ac_ct_CXX"; then
4022 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028 test -z "$as_dir" && as_dir=.
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4031 ac_cv_prog_ac_ct_CXX="$ac_prog"
4032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4041 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4042 if test -n "$ac_ct_CXX"; then
4043 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4044 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4046 { echo "$as_me:$LINENO: result: no" >&5
4047 echo "${ECHO_T}no" >&6; }
4051 test -n "$ac_ct_CXX" && break
4054 if test "x$ac_ct_CXX" = x; then
4057 case $cross_compiling:$ac_tool_warned in
4059 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4060 whose name does not start with the host triplet. If you think this
4061 configuration is useful to you, please write to autoconf@gnu.org." >&5
4062 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4063 whose name does not start with the host triplet. If you think this
4064 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4065 ac_tool_warned=yes ;;
4073 # Provide some information about the compiler.
4074 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4075 ac_compiler=`set X $ac_compile; echo $2`
4076 { (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); }
4086 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }
4096 { (ac_try="$ac_compiler -V >&5"
4098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4099 *) ac_try_echo=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_compiler -V >&5") 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }
4107 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4108 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4109 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4112 cat >conftest.$ac_ext <<_ACEOF
4115 cat confdefs.h >>conftest.$ac_ext
4116 cat >>conftest.$ac_ext <<_ACEOF
4117 /* end confdefs.h. */
4130 rm -f conftest.$ac_objext
4131 if { (ac_try="$ac_compile"
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_compile") 2>conftest.er1
4139 grep -v '^ *+' conftest.er1 >conftest.err
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); } &&
4144 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4145 { (case "(($ac_try" in
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_try") 2>&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); }; } &&
4154 { ac_try='test -s conftest.$ac_objext'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; }; then
4166 echo "$as_me: failed program was:" >&5
4167 sed 's/^/| /' conftest.$ac_ext >&5
4172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4173 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4176 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4177 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4178 GXX=`test $ac_compiler_gnu = yes && echo yes`
4179 ac_test_CXXFLAGS=${CXXFLAGS+set}
4180 ac_save_CXXFLAGS=$CXXFLAGS
4181 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4182 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4183 if test "${ac_cv_prog_cxx_g+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4186 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4187 ac_cxx_werror_flag=yes
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4205 rm -f conftest.$ac_objext
4206 if { (ac_try="$ac_compile"
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_compile") 2>conftest.er1
4214 grep -v '^ *+' conftest.er1 >conftest.err
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } &&
4219 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4220 { (case "(($ac_try" in
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_try") 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; } &&
4229 { ac_try='test -s conftest.$ac_objext'
4230 { (case "(($ac_try" in
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_try") 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; }; then
4239 ac_cv_prog_cxx_g=yes
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4260 rm -f conftest.$ac_objext
4261 if { (ac_try="$ac_compile"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_compile") 2>conftest.er1
4269 grep -v '^ *+' conftest.er1 >conftest.err
4271 cat conftest.err >&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); } &&
4274 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4275 { (case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_try") 2>&5
4282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4283 (exit $ac_status); }; } &&
4284 { ac_try='test -s conftest.$ac_objext'
4285 { (case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4290 (eval "$ac_try") 2>&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4299 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4301 cat >conftest.$ac_ext <<_ACEOF
4304 cat confdefs.h >>conftest.$ac_ext
4305 cat >>conftest.$ac_ext <<_ACEOF
4306 /* end confdefs.h. */
4316 rm -f conftest.$ac_objext
4317 if { (ac_try="$ac_compile"
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_compile") 2>conftest.er1
4325 grep -v '^ *+' conftest.er1 >conftest.err
4327 cat conftest.err >&5
4328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4329 (exit $ac_status); } &&
4330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4331 { (case "(($ac_try" in
4332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4333 *) ac_try_echo=$ac_try;;
4335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4336 (eval "$ac_try") 2>&5
4338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339 (exit $ac_status); }; } &&
4340 { ac_try='test -s conftest.$ac_objext'
4341 { (case "(($ac_try" in
4342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343 *) ac_try_echo=$ac_try;;
4345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4346 (eval "$ac_try") 2>&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); }; }; then
4350 ac_cv_prog_cxx_g=yes
4352 echo "$as_me: failed program was:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4364 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4367 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4368 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4369 if test "$ac_test_CXXFLAGS" = set; then
4370 CXXFLAGS=$ac_save_CXXFLAGS
4371 elif test $ac_cv_prog_cxx_g = yes; then
4372 if test "$GXX" = yes; then
4378 if test "$GXX" = yes; then
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4397 # On Suns, sometimes $CPP names a directory.
4398 if test -n "$CPP" && test -d "$CPP"; then
4401 if test -z "$CPP"; then
4402 if test "${ac_cv_prog_CPP+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 # Double quotes because CPP needs to be expanded
4406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4409 for ac_c_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_c_preproc_warn_flag
4445 ac_cpp_err=$ac_cpp_err$ac_c_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_c_preproc_warn_flag
4489 ac_cpp_err=$ac_cpp_err$ac_c_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
4525 { echo "$as_me:$LINENO: result: $CPP" >&5
4526 echo "${ECHO_T}$CPP" >&6; }
4528 for ac_c_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_c_preproc_warn_flag
4564 ac_cpp_err=$ac_cpp_err$ac_c_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_c_preproc_warn_flag
4608 ac_cpp_err=$ac_cpp_err$ac_c_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 \"$CPP\" fails sanity check
4636 See \`config.log' for more details." >&5
4637 echo "$as_me: error: C preprocessor \"$CPP\" 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
4649 ac_cpp='$CXXCPP $CPPFLAGS'
4650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4653 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4654 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4655 if test -z "$CXXCPP"; then
4656 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 # Double quotes because CXXCPP needs to be expanded
4660 for CXXCPP in "$CXX -E" "/lib/cpp"
4663 for ac_cxx_preproc_warn_flag in '' yes
4665 # Use a header file that comes with gcc, so configuring glibc
4666 # with a fresh cross-compiler works.
4667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668 # <limits.h> exists even on freestanding compilers.
4669 # On the NeXT, cc -E runs the code through the compiler's parser,
4670 # not just through cpp. "Syntax error" is here to catch this case.
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4678 # include <limits.h>
4680 # include <assert.h>
4684 if { (ac_try="$ac_cpp conftest.$ac_ext"
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4692 grep -v '^ *+' conftest.er1 >conftest.err
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } >/dev/null; then
4697 if test -s conftest.err; then
4698 ac_cpp_err=$ac_cxx_preproc_warn_flag
4699 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag