2 # From configure.ac Revision: 32846 .
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
797 ac_precious_vars='build_alias
811 # Initialize some variables set by options.
813 ac_init_version=false
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
823 program_transform_name=s,x,x,
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE}'
848 infodir='${datarootdir}/info'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
869 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
873 # Accept the important Cygnus configure options, so we can diagnose typos.
875 case $ac_dashdash$ac_option in
879 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
884 -build | --build | --buil | --bui | --bu)
885 ac_prev=build_alias ;;
886 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887 build_alias=$ac_optarg ;;
889 -cache-file | --cache-file | --cache-fil | --cache-fi \
890 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891 ac_prev=cache_file ;;
892 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894 cache_file=$ac_optarg ;;
897 cache_file=config.cache ;;
899 -datadir | --datadir | --datadi | --datad)
901 -datadir=* | --datadir=* | --datadi=* | --datad=*)
902 datadir=$ac_optarg ;;
904 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905 | --dataroo | --dataro | --datar)
906 ac_prev=datarootdir ;;
907 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909 datarootdir=$ac_optarg ;;
911 -disable-* | --disable-*)
912 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
915 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
916 { (exit 1); exit 1; }; }
917 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
918 eval enable_$ac_feature=no ;;
920 -docdir | --docdir | --docdi | --doc | --do)
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 -enable-* | --enable-*)
931 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
934 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
935 { (exit 1); exit 1; }; }
936 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
937 eval enable_$ac_feature=\$ac_optarg ;;
939 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
940 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
941 | --exec | --exe | --ex)
942 ac_prev=exec_prefix ;;
943 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
944 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
945 | --exec=* | --exe=* | --ex=*)
946 exec_prefix=$ac_optarg ;;
948 -gas | --gas | --ga | --g)
949 # Obsolete; use --with-gas.
952 -help | --help | --hel | --he | -h)
954 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
955 ac_init_help=recursive ;;
956 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
957 ac_init_help=short ;;
959 -host | --host | --hos | --ho)
960 ac_prev=host_alias ;;
961 -host=* | --host=* | --hos=* | --ho=*)
962 host_alias=$ac_optarg ;;
964 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
966 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
968 htmldir=$ac_optarg ;;
970 -includedir | --includedir | --includedi | --included | --include \
971 | --includ | --inclu | --incl | --inc)
972 ac_prev=includedir ;;
973 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
974 | --includ=* | --inclu=* | --incl=* | --inc=*)
975 includedir=$ac_optarg ;;
977 -infodir | --infodir | --infodi | --infod | --info | --inf)
979 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
980 infodir=$ac_optarg ;;
982 -libdir | --libdir | --libdi | --libd)
984 -libdir=* | --libdir=* | --libdi=* | --libd=*)
987 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
988 | --libexe | --libex | --libe)
989 ac_prev=libexecdir ;;
990 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
991 | --libexe=* | --libex=* | --libe=*)
992 libexecdir=$ac_optarg ;;
994 -localedir | --localedir | --localedi | --localed | --locale)
996 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
997 localedir=$ac_optarg ;;
999 -localstatedir | --localstatedir | --localstatedi | --localstated \
1000 | --localstate | --localstat | --localsta | --localst | --locals)
1001 ac_prev=localstatedir ;;
1002 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1003 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1004 localstatedir=$ac_optarg ;;
1006 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1008 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1009 mandir=$ac_optarg ;;
1011 -nfp | --nfp | --nf)
1012 # Obsolete; use --without-fp.
1015 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1016 | --no-cr | --no-c | -n)
1019 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1020 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1023 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1024 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1025 | --oldin | --oldi | --old | --ol | --o)
1026 ac_prev=oldincludedir ;;
1027 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1028 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1029 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1030 oldincludedir=$ac_optarg ;;
1032 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1034 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1035 prefix=$ac_optarg ;;
1037 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1038 | --program-pre | --program-pr | --program-p)
1039 ac_prev=program_prefix ;;
1040 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1041 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1042 program_prefix=$ac_optarg ;;
1044 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1045 | --program-suf | --program-su | --program-s)
1046 ac_prev=program_suffix ;;
1047 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1048 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1049 program_suffix=$ac_optarg ;;
1051 -program-transform-name | --program-transform-name \
1052 | --program-transform-nam | --program-transform-na \
1053 | --program-transform-n | --program-transform- \
1054 | --program-transform | --program-transfor \
1055 | --program-transfo | --program-transf \
1056 | --program-trans | --program-tran \
1057 | --progr-tra | --program-tr | --program-t)
1058 ac_prev=program_transform_name ;;
1059 -program-transform-name=* | --program-transform-name=* \
1060 | --program-transform-nam=* | --program-transform-na=* \
1061 | --program-transform-n=* | --program-transform-=* \
1062 | --program-transform=* | --program-transfor=* \
1063 | --program-transfo=* | --program-transf=* \
1064 | --program-trans=* | --program-tran=* \
1065 | --progr-tra=* | --program-tr=* | --program-t=*)
1066 program_transform_name=$ac_optarg ;;
1068 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1070 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1071 pdfdir=$ac_optarg ;;
1073 -psdir | --psdir | --psdi | --psd | --ps)
1075 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1078 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1079 | -silent | --silent | --silen | --sile | --sil)
1082 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1084 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1086 sbindir=$ac_optarg ;;
1088 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1089 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1090 | --sharedst | --shareds | --shared | --share | --shar \
1092 ac_prev=sharedstatedir ;;
1093 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1094 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1095 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1097 sharedstatedir=$ac_optarg ;;
1099 -site | --site | --sit)
1101 -site=* | --site=* | --sit=*)
1104 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1106 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1107 srcdir=$ac_optarg ;;
1109 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1110 | --syscon | --sysco | --sysc | --sys | --sy)
1111 ac_prev=sysconfdir ;;
1112 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1113 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1114 sysconfdir=$ac_optarg ;;
1116 -target | --target | --targe | --targ | --tar | --ta | --t)
1117 ac_prev=target_alias ;;
1118 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1119 target_alias=$ac_optarg ;;
1121 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1124 -version | --version | --versio | --versi | --vers | -V)
1125 ac_init_version=: ;;
1128 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1131 { echo "$as_me: error: invalid package name: $ac_package" >&2
1132 { (exit 1); exit 1; }; }
1133 ac_package=`echo $ac_package| sed 's/-/_/g'`
1134 eval with_$ac_package=\$ac_optarg ;;
1136 -without-* | --without-*)
1137 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1140 { echo "$as_me: error: invalid package name: $ac_package" >&2
1141 { (exit 1); exit 1; }; }
1142 ac_package=`echo $ac_package | sed 's/-/_/g'`
1143 eval with_$ac_package=no ;;
1146 # Obsolete; use --with-x.
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1163 -*) { echo "$as_me: error: unrecognized option: $ac_option
1164 Try \`$0 --help' for more information." >&2
1165 { (exit 1); exit 1; }; }
1169 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1170 # Reject names that are not valid shell variable names.
1171 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1172 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1173 { (exit 1); exit 1; }; }
1174 eval $ac_envvar=\$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1188 if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190 { echo "$as_me: error: missing argument to $ac_option" >&2
1191 { (exit 1); exit 1; }; }
1194 # Be sure to have absolute directory names.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val=\$$ac_var
1202 [\\/$]* | ?:[\\/]* ) continue;;
1203 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1205 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1206 { (exit 1); exit 1; }; }
1209 # There might be people who depend on the old broken behavior: `$host'
1210 # used to hold the argument of --host etc.
1211 # FIXME: To remove some day.
1214 target=$target_alias
1216 # FIXME: To remove some day.
1217 if test "x$host_alias" != x; then
1218 if test "x$build_alias" = x; then
1219 cross_compiling=maybe
1220 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1221 If a cross compiler is detected then cross compile mode will be used." >&2
1222 elif test "x$build_alias" != "x$host_alias"; then
1228 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1230 test "$silent" = yes && exec 6>/dev/null
1233 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1234 ac_ls_di=`ls -di .` &&
1235 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1236 { echo "$as_me: error: Working directory cannot be determined" >&2
1237 { (exit 1); exit 1; }; }
1238 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1239 { echo "$as_me: error: pwd does not report name of working directory" >&2
1240 { (exit 1); exit 1; }; }
1243 # Find the source files, if location was not specified.
1244 if test -z "$srcdir"; then
1245 ac_srcdir_defaulted=yes
1246 # Try the directory containing this script, then the parent directory.
1247 ac_confdir=`$as_dirname -- "$0" ||
1248 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1249 X"$0" : 'X\(//\)[^/]' \| \
1250 X"$0" : 'X\(//\)$' \| \
1251 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1271 if test ! -r "$srcdir/$ac_unique_file"; then
1275 ac_srcdir_defaulted=no
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1278 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1279 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1280 { (exit 1); exit 1; }; }
1282 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1285 { (exit 1); exit 1; }; }
1287 # When building in place, set srcdir=.
1288 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291 # Remove unnecessary trailing slashes from srcdir.
1292 # Double slashes in file names in object file debugging info
1293 # mess up M-x gdb in Emacs.
1295 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1297 for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 # Report the --help message.
1307 if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1311 \`configure' configures this package to adapt to many kinds of systems.
1313 Usage: $0 [OPTION]... [VAR=VALUE]...
1315 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316 VAR=VALUE. See below for descriptions of some of the useful variables.
1318 Defaults for the options are specified in brackets.
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1331 Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1337 By default, \`make install' will install all the files in
1338 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340 for instance \`--prefix=\$HOME'.
1342 For better control, use the options below.
1344 Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1369 --build=BUILD configure for building on BUILD [guessed]
1370 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1371 --target=TARGET configure for building compilers for TARGET [HOST]
1375 if test -n "$ac_init_help"; then
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --enable-dev-mode Turn on developer mode
1383 --disable-largefile omit support for large files
1386 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1387 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1388 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1389 --with-curses=PATH use curses files in PATH
1390 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1391 --with-nbs=PATH use Network Broadcast Sound files in PATH
1392 --with-ncurses=PATH use ncurses files in PATH
1393 --with-newt=PATH use newt files in PATH
1394 --with-odbc=PATH use unixODBC files in PATH
1395 --with-ogg=PATH use OGG files in PATH
1396 --with-osptk=PATH use OSP Toolkit files in PATH
1397 --with-popt=PATH use popt files in PATH
1398 --with-pri=PATH use ISDN PRI files in PATH
1399 --with-radiusclient-ng=PATH
1400 use Radius Client files in PATH
1401 --with-speex=PATH use Speex files in PATH
1402 --with-sqlite=PATH use SQLite files in PATH
1403 --with-ssl=PATH use OpenSSL files in PATH
1404 --with-tds=PATH use FreeTDS files in PATH
1405 --with-termcap=PATH use Termcap files in PATH
1406 --with-tinfo=PATH use Term Info files in PATH
1407 --with-vorbis=PATH use Vorbis files in PATH
1408 --with-z=PATH use zlib files in PATH
1409 --with-ossaudio=PATH use Open Sound System files in PATH
1410 --with-tonezone=PATH use Zaptel files in PATH
1411 --with-gsm=PATH use libgsm files in PATH, or 'internal'
1412 --with-pq=PATH use PostgreSQL files in PATH
1413 --with-vpb=PATH use vpb files in PATH
1414 --with-qt=PATH use Qt files in PATH
1415 --with-kde=PATH use KDE files in PATH
1416 --with-pwlib=PATH use PWLib files in PATH
1418 Some influential environment variables:
1419 CC C compiler command
1420 CFLAGS C compiler flags
1421 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422 nonstandard directory <lib dir>
1423 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1424 you have headers in a nonstandard directory <include dir>
1425 CXX C++ compiler command
1426 CXXFLAGS C++ compiler flags
1428 CXXCPP C++ preprocessor
1430 Use these variables to override the choices made by `configure' or to help
1431 it to find libraries and programs with nonstandard names/locations.
1437 if test "$ac_init_help" = "recursive"; then
1438 # If there are subdirs, report their specific --help.
1439 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1440 test -d "$ac_dir" || continue
1444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1447 # A ".." for each directory in $ac_dir_suffix.
1448 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1449 case $ac_top_builddir_sub in
1450 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454 ac_abs_top_builddir=$ac_pwd
1455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456 # for backward compatibility:
1457 ac_top_builddir=$ac_top_build_prefix
1460 .) # We are building in place.
1462 ac_top_srcdir=$ac_top_builddir_sub
1463 ac_abs_top_srcdir=$ac_pwd ;;
1464 [\\/]* | ?:[\\/]* ) # Absolute name.
1465 ac_srcdir=$srcdir$ac_dir_suffix;
1466 ac_top_srcdir=$srcdir
1467 ac_abs_top_srcdir=$srcdir ;;
1469 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470 ac_top_srcdir=$ac_top_build_prefix$srcdir
1471 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475 cd "$ac_dir" || { ac_status=$?; continue; }
1476 # Check for guested configure.
1477 if test -f "$ac_srcdir/configure.gnu"; then
1479 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480 elif test -f "$ac_srcdir/configure"; then
1482 $SHELL "$ac_srcdir/configure" --help=recursive
1484 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486 cd "$ac_pwd" || { ac_status=$?; break; }
1490 test -n "$ac_init_help" && exit $ac_status
1491 if $ac_init_version; then
1494 generated by GNU Autoconf 2.59e
1496 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1497 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1505 cat >config.log <<_ACEOF
1506 This file contains any messages produced by compilers while
1507 running configure, to aid debugging if configure makes a mistake.
1509 It was created by $as_me, which was
1510 generated by GNU Autoconf 2.59e. Invocation command line was
1522 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1523 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1524 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1525 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1526 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1528 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1529 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1531 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1532 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1533 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1534 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1535 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1536 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1537 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1545 test -z "$as_dir" && as_dir=.
1546 echo "PATH: $as_dir"
1562 # Keep a trace of the command line.
1563 # Strip out --no-create and --no-recursion so they do not pile up.
1564 # Strip out --silent because we don't want to record it for future runs.
1565 # Also quote any args containing shell meta-characters.
1566 # Make two passes to allow for proper duplicate-argument suppression.
1570 ac_must_keep_next=false
1576 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1577 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1578 | -silent | --silent | --silen | --sile | --sil)
1581 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1584 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1586 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1587 if test $ac_must_keep_next = true; then
1588 ac_must_keep_next=false # Got value, back to normal.
1591 *=* | --config-cache | -C | -disable-* | --disable-* \
1592 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1593 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1594 | -with-* | --with-* | -without-* | --without-* | --x)
1595 case "$ac_configure_args0 " in
1596 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1599 -* ) ac_must_keep_next=true ;;
1602 ac_configure_args="$ac_configure_args '$ac_arg'"
1607 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1608 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1610 # When interrupted or exit'd, cleanup temporary files, and complete
1611 # config.log. We remove comments because anyway the quotes in there
1612 # would cause problems or look ugly.
1613 # WARNING: Use '\'' to represent an apostrophe within the trap.
1614 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1615 trap 'exit_status=$?
1616 # Save into config.log some information that might help in debugging.
1621 ## ---------------- ##
1622 ## Cache variables. ##
1623 ## ---------------- ##
1626 # The following way of writing the cache mishandles newlines in values,
1628 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1629 eval ac_val=\$$ac_var
1633 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1634 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1637 _ | IFS | as_nl) ;; #(
1638 *) $as_unset $ac_var ;;
1643 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1644 *${as_nl}ac_space=\ *)
1646 "s/'\''/'\''\\\\'\'''\''/g;
1647 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1658 ## ----------------- ##
1659 ## Output variables. ##
1660 ## ----------------- ##
1663 for ac_var in $ac_subst_vars
1665 eval ac_val=\$$ac_var
1667 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669 echo "$ac_var='\''$ac_val'\''"
1673 if test -n "$ac_subst_files"; then
1675 ## ------------------- ##
1676 ## File substitutions. ##
1677 ## ------------------- ##
1680 for ac_var in $ac_subst_files
1682 eval ac_val=\$$ac_var
1684 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1686 echo "$ac_var='\''$ac_val'\''"
1691 if test -s confdefs.h; then
1701 test "$ac_signal" != 0 &&
1702 echo "$as_me: caught signal $ac_signal"
1703 echo "$as_me: exit $exit_status"
1705 rm -f core *.core core.conftest.* &&
1706 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1709 for ac_signal in 1 2 13 15; do
1710 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1714 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1715 rm -f -r conftest* confdefs.h
1717 # Predefined preprocessor variables.
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_NAME "$PACKAGE_NAME"
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1729 cat >>confdefs.h <<_ACEOF
1730 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1734 cat >>confdefs.h <<_ACEOF
1735 #define PACKAGE_STRING "$PACKAGE_STRING"
1739 cat >>confdefs.h <<_ACEOF
1740 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1744 # Let the site file select an alternate cache file if it wants to.
1745 # Prefer explicitly selected file to automatically selected ones.
1746 if test -n "$CONFIG_SITE"; then
1747 set x "$CONFIG_SITE"
1748 elif test "x$prefix" != xNONE; then
1749 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1751 set x "$ac_default_prefix/share/config.site" \
1752 "$ac_default_prefix/etc/config.site"
1757 if test -r "$ac_site_file"; then
1758 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1759 echo "$as_me: loading site script $ac_site_file" >&6;}
1760 sed 's/^/| /' "$ac_site_file" >&5
1765 if test -r "$cache_file"; then
1766 # Some versions of bash will fail to source /dev/null (special
1767 # files actually), so we avoid doing that.
1768 if test -f "$cache_file"; then
1769 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1770 echo "$as_me: loading cache $cache_file" >&6;}
1772 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1773 *) . "./$cache_file";;
1777 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1778 echo "$as_me: creating cache $cache_file" >&6;}
1782 # Check that the precious variables saved in the cache have kept the same
1784 ac_cache_corrupted=false
1785 for ac_var in $ac_precious_vars; do
1786 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1787 eval ac_new_set=\$ac_env_${ac_var}_set
1788 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1789 eval ac_new_val=\$ac_env_${ac_var}_value
1790 case $ac_old_set,$ac_new_set in
1792 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1793 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1794 ac_cache_corrupted=: ;;
1796 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1797 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1798 ac_cache_corrupted=: ;;
1801 if test "x$ac_old_val" != "x$ac_new_val"; then
1802 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1803 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1804 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1805 echo "$as_me: former value: $ac_old_val" >&2;}
1806 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1807 echo "$as_me: current value: $ac_new_val" >&2;}
1808 ac_cache_corrupted=:
1811 # Pass precious variables to config.status.
1812 if test "$ac_new_set" = set; then
1814 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1815 *) ac_arg=$ac_var=$ac_new_val ;;
1817 case " $ac_configure_args " in
1818 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1819 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1823 if $ac_cache_corrupted; then
1824 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1825 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1826 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1827 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1828 { (exit 1); exit 1; }; }
1848 ac_cpp='$CPP $CPPFLAGS'
1849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855 # cross-compile macros
1857 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1858 if test -f "$ac_dir/install-sh"; then
1860 ac_install_sh="$ac_aux_dir/install-sh -c"
1862 elif test -f "$ac_dir/install.sh"; then
1864 ac_install_sh="$ac_aux_dir/install.sh -c"
1866 elif test -f "$ac_dir/shtool"; then
1868 ac_install_sh="$ac_aux_dir/shtool install -c"
1872 if test -z "$ac_aux_dir"; then
1873 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1874 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1875 { (exit 1); exit 1; }; }
1878 # These three variables are undocumented and unsupported,
1879 # and are intended to be withdrawn in a future Autoconf release.
1880 # They can cause serious problems if a builder's source tree is in a directory
1881 # whose full name contains unusual characters.
1882 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1883 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1884 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1887 # Make sure we can run config.sub.
1888 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1889 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1890 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1891 { (exit 1); exit 1; }; }
1893 { echo "$as_me:$LINENO: checking build system type" >&5
1894 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1895 if test "${ac_cv_build+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 ac_build_alias=$build_alias
1899 test "x$ac_build_alias" = x &&
1900 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1901 test "x$ac_build_alias" = x &&
1902 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1903 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1904 { (exit 1); exit 1; }; }
1905 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1906 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1907 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1908 { (exit 1); exit 1; }; }
1911 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1912 echo "${ECHO_T}$ac_cv_build" >&6; }
1913 case $ac_cv_build in
1915 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1916 echo "$as_me: error: invalid value of canonical build" >&2;}
1917 { (exit 1); exit 1; }; };;
1920 ac_save_IFS=$IFS; IFS='-'
1926 # Remember, the first character of IFS is used to create $*,
1927 # except with old shells:
1930 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1933 { echo "$as_me:$LINENO: checking host system type" >&5
1934 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1935 if test "${ac_cv_host+set}" = set; then
1936 echo $ECHO_N "(cached) $ECHO_C" >&6
1938 if test "x$host_alias" = x; then
1939 ac_cv_host=$ac_cv_build
1941 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1948 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1949 echo "${ECHO_T}$ac_cv_host" >&6; }
1952 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1953 echo "$as_me: error: invalid value of canonical host" >&2;}
1954 { (exit 1); exit 1; }; };;
1957 ac_save_IFS=$IFS; IFS='-'
1963 # Remember, the first character of IFS is used to create $*,
1964 # except with old shells:
1967 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1970 { echo "$as_me:$LINENO: checking target system type" >&5
1971 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
1972 if test "${ac_cv_target+set}" = set; then
1973 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 if test "x$target_alias" = x; then
1976 ac_cv_target=$ac_cv_host
1978 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
1979 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
1980 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
1981 { (exit 1); exit 1; }; }
1985 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1986 echo "${ECHO_T}$ac_cv_target" >&6; }
1987 case $ac_cv_target in
1989 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
1990 echo "$as_me: error: invalid value of canonical target" >&2;}
1991 { (exit 1); exit 1; }; };;
1993 target=$ac_cv_target
1994 ac_save_IFS=$IFS; IFS='-'
2000 # Remember, the first character of IFS is used to create $*,
2001 # except with old shells:
2004 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2007 # The aliases save the names the user supplied, while $host etc.
2008 # will get canonicalized.
2009 test -n "$target_alias" &&
2010 test "$program_prefix$program_suffix$program_transform_name" = \
2012 program_prefix=${target_alias}-
2014 # check existence of the package
2017 # specify output header file
2018 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2026 ac_default_prefix=/usr/local
2029 ac_default_prefix=/usr
2030 if test ${sysconfdir} = '${prefix}/etc'; then
2033 if test ${mandir} = '${prefix}/man'; then
2034 mandir=/usr/share/man
2039 if test ${localstatedir} = '${prefix}/var'; then
2045 cat >>confdefs.h <<_ACEOF
2046 #define PBX_PLATFORM "${host}"
2050 cat >>confdefs.h <<_ACEOF
2051 #define PBX_CPU "${host_cpu}"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PBX_VENDOR "${host_vendor}"
2060 cat >>confdefs.h <<_ACEOF
2061 #define PBX_OS "${host_os}"
2065 # export some useful defines
2066 PBX_PLATFORM=${host}
2068 PBX_VENDOR=${host_vendor}
2076 if test -n "$ac_tool_prefix"; then
2077 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2078 set dummy ${ac_tool_prefix}uname; ac_word=$2
2079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2081 if test "${ac_cv_path_UNAME+set}" = set; then
2082 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 test -z "$as_dir" && as_dir=.
2094 for ac_exec_ext in '' $ac_executable_extensions; do
2095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2096 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2107 UNAME=$ac_cv_path_UNAME
2108 if test -n "$UNAME"; then
2109 { echo "$as_me:$LINENO: result: $UNAME" >&5
2110 echo "${ECHO_T}$UNAME" >&6; }
2112 { echo "$as_me:$LINENO: result: no" >&5
2113 echo "${ECHO_T}no" >&6; }
2118 if test -z "$ac_cv_path_UNAME"; then
2120 # Extract the first word of "uname", so it can be a program name with args.
2121 set dummy uname; ac_word=$2
2122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2124 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 case $ac_pt_UNAME in
2129 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 for ac_exec_ext in '' $ac_executable_extensions; do
2138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2139 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2150 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2151 if test -n "$ac_pt_UNAME"; then
2152 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2153 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2155 { echo "$as_me:$LINENO: result: no" >&5
2156 echo "${ECHO_T}no" >&6; }
2159 if test "x$ac_pt_UNAME" = x; then
2162 case $cross_compiling:$ac_tool_warned in
2164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2165 whose name does not start with the host triplet. If you think this
2166 configuration is useful to you, please write to autoconf@gnu.org." >&5
2167 echo "$as_me: 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." >&2;}
2170 ac_tool_warned=yes ;;
2175 UNAME="$ac_cv_path_UNAME"
2178 if test ! x"${UNAME}" = xNo; then
2179 PBX_OSREV=$(${UNAME} -r)
2185 cygwin*|mingw*|windows*|winnt)
2187 cat >>confdefs.h <<\_ACEOF
2192 # this is ugly - KPF
2198 cat >>confdefs.h <<\_ACEOF
2206 cat >>confdefs.h <<\_ACEOF
2214 cat >>confdefs.h <<\_ACEOF
2218 PBX_OSTYPE="FreeBSD"
2219 # XXX temporary hack to let FreeBSD use the default paths
2220 # for local stuff. We need a better solution.
2221 if test x"${CPPFLAGS}" = x; then
2222 CPPFLAGS="-I /usr/local/include"
2224 if test x"${LDFLAGS}" = x; then
2225 LDFLAGS="-L /usr/local/lib"
2230 cat >>confdefs.h <<\_ACEOF
2234 PBX_OSTYPE="OpenBSD"
2238 cat >>confdefs.h <<\_ACEOF
2246 cat >>confdefs.h <<\_ACEOF
2254 cat >>confdefs.h <<\_ACEOF
2263 # This needs to be before any macros that use the C compiler
2265 cat >>confdefs.h <<\_ACEOF
2266 #define _GNU_SOURCE 1
2277 # cross-compile checks
2278 if test x"${build}" != x"${host}";
2280 if test -n "$ac_tool_prefix"; then
2281 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2282 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285 if test "${ac_cv_prog_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 if test -n "$CC"; then
2289 ac_cv_prog_CC="$CC" # Let the user override the test.
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 if test -n "$CC"; then
2310 { echo "$as_me:$LINENO: result: $CC" >&5
2311 echo "${ECHO_T}$CC" >&6; }
2313 { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2319 if test -z "$ac_cv_prog_CC"; then
2321 # Extract the first word of "gcc", so it can be a program name with args.
2322 set dummy gcc; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$ac_ct_CC"; then
2329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_ac_ct_CC="gcc"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2348 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2349 if test -n "$ac_ct_CC"; then
2350 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2351 echo "${ECHO_T}$ac_ct_CC" >&6; }
2353 { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2357 if test "x$ac_ct_CC" = x; then
2360 case $cross_compiling:$ac_tool_warned in
2362 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2363 whose name does not start with the host triplet. If you think this
2364 configuration is useful to you, please write to autoconf@gnu.org." >&5
2365 echo "$as_me: 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." >&2;}
2368 ac_tool_warned=yes ;;
2376 if test -n "$ac_tool_prefix"; then
2377 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2378 set dummy ${ac_tool_prefix}g++; ac_word=$2
2379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2381 if test "${ac_cv_prog_CXX+set}" = set; then
2382 echo $ECHO_N "(cached) $ECHO_C" >&6
2384 if test -n "$CXX"; then
2385 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 for ac_exec_ext in '' $ac_executable_extensions; do
2393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2394 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2405 if test -n "$CXX"; then
2406 { echo "$as_me:$LINENO: result: $CXX" >&5
2407 echo "${ECHO_T}$CXX" >&6; }
2409 { echo "$as_me:$LINENO: result: no" >&5
2410 echo "${ECHO_T}no" >&6; }
2415 if test -z "$ac_cv_prog_CXX"; then
2417 # Extract the first word of "g++", so it can be a program name with args.
2418 set dummy g++; ac_word=$2
2419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2421 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2422 echo $ECHO_N "(cached) $ECHO_C" >&6
2424 if test -n "$ac_ct_CXX"; then
2425 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 test -z "$as_dir" && as_dir=.
2432 for ac_exec_ext in '' $ac_executable_extensions; do
2433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2434 ac_cv_prog_ac_ct_CXX="g++"
2435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2444 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2445 if test -n "$ac_ct_CXX"; then
2446 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2447 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2449 { echo "$as_me:$LINENO: result: no" >&5
2450 echo "${ECHO_T}no" >&6; }
2453 if test "x$ac_ct_CXX" = x; then
2456 case $cross_compiling:$ac_tool_warned in
2458 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2459 whose name does not start with the host triplet. If you think this
2460 configuration is useful to you, please write to autoconf@gnu.org." >&5
2461 echo "$as_me: 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." >&2;}
2464 ac_tool_warned=yes ;;
2469 CXX="$ac_cv_prog_CXX"
2472 if test -n "$ac_tool_prefix"; then
2473 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2474 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2475 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477 if test "${ac_cv_prog_RANLIB+set}" = set; then
2478 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 if test -n "$RANLIB"; then
2481 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 test -z "$as_dir" && as_dir=.
2488 for ac_exec_ext in '' $ac_executable_extensions; do
2489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2490 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500 RANLIB=$ac_cv_prog_RANLIB
2501 if test -n "$RANLIB"; then
2502 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2503 echo "${ECHO_T}$RANLIB" >&6; }
2505 { echo "$as_me:$LINENO: result: no" >&5
2506 echo "${ECHO_T}no" >&6; }
2511 if test -z "$ac_cv_prog_RANLIB"; then
2512 ac_ct_RANLIB=$RANLIB
2513 # Extract the first word of "ranlib", so it can be a program name with args.
2514 set dummy ranlib; ac_word=$2
2515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2517 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2520 if test -n "$ac_ct_RANLIB"; then
2521 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2530 ac_cv_prog_ac_ct_RANLIB="ranlib"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2541 if test -n "$ac_ct_RANLIB"; then
2542 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2543 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2545 { echo "$as_me:$LINENO: result: no" >&5
2546 echo "${ECHO_T}no" >&6; }
2549 if test "x$ac_ct_RANLIB" = x; then
2552 case $cross_compiling:$ac_tool_warned in
2554 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2555 whose name does not start with the host triplet. If you think this
2556 configuration is useful to you, please write to autoconf@gnu.org." >&5
2557 echo "$as_me: 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." >&2;}
2560 ac_tool_warned=yes ;;
2562 RANLIB=$ac_ct_RANLIB
2565 RANLIB="$ac_cv_prog_RANLIB"
2568 if test -n "$ac_tool_prefix"; then
2569 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2570 set dummy ${ac_tool_prefix}ar; ac_word=$2
2571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2573 if test "${ac_cv_prog_AR+set}" = set; then
2574 echo $ECHO_N "(cached) $ECHO_C" >&6
2576 if test -n "$AR"; then
2577 ac_cv_prog_AR="$AR" # Let the user override the test.
2579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 test -z "$as_dir" && as_dir=.
2584 for ac_exec_ext in '' $ac_executable_extensions; do
2585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2586 ac_cv_prog_AR="${ac_tool_prefix}ar"
2587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 if test -n "$AR"; then
2598 { echo "$as_me:$LINENO: result: $AR" >&5
2599 echo "${ECHO_T}$AR" >&6; }
2601 { echo "$as_me:$LINENO: result: no" >&5
2602 echo "${ECHO_T}no" >&6; }
2607 if test -z "$ac_cv_prog_AR"; then
2609 # Extract the first word of "ar", so it can be a program name with args.
2610 set dummy ar; ac_word=$2
2611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2614 echo $ECHO_N "(cached) $ECHO_C" >&6
2616 if test -n "$ac_ct_AR"; then
2617 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2626 ac_cv_prog_ac_ct_AR="ar"
2627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2637 if test -n "$ac_ct_AR"; then
2638 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2639 echo "${ECHO_T}$ac_ct_AR" >&6; }
2641 { echo "$as_me:$LINENO: result: no" >&5
2642 echo "${ECHO_T}no" >&6; }
2645 if test "x$ac_ct_AR" = x; then
2648 case $cross_compiling:$ac_tool_warned in
2650 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2651 whose name does not start with the host triplet. If you think this
2652 configuration is useful to you, please write to autoconf@gnu.org." >&5
2653 echo "$as_me: 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." >&2;}
2656 ac_tool_warned=yes ;;
2665 if test x"${PBX_OSTYPE}" = xWin32;
2667 if test -n "$ac_tool_prefix"; then
2668 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
2669 set dummy ${ac_tool_prefix}nm; ac_word=$2
2670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2672 if test "${ac_cv_prog_NM+set}" = set; then
2673 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 if test -n "$NM"; then
2676 ac_cv_prog_NM="$NM" # Let the user override the test.
2678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir=.
2683 for ac_exec_ext in '' $ac_executable_extensions; do
2684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2685 ac_cv_prog_NM="${ac_tool_prefix}nm"
2686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 if test -n "$NM"; then
2697 { echo "$as_me:$LINENO: result: $NM" >&5
2698 echo "${ECHO_T}$NM" >&6; }
2700 { echo "$as_me:$LINENO: result: no" >&5
2701 echo "${ECHO_T}no" >&6; }
2706 if test -z "$ac_cv_prog_NM"; then
2708 # Extract the first word of "nm", so it can be a program name with args.
2709 set dummy nm; ac_word=$2
2710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2712 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
2713 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 if test -n "$ac_ct_NM"; then
2716 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
2718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722 test -z "$as_dir" && as_dir=.
2723 for ac_exec_ext in '' $ac_executable_extensions; do
2724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2725 ac_cv_prog_ac_ct_NM="nm"
2726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 ac_ct_NM=$ac_cv_prog_ac_ct_NM
2736 if test -n "$ac_ct_NM"; then
2737 { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
2738 echo "${ECHO_T}$ac_ct_NM" >&6; }
2740 { echo "$as_me:$LINENO: result: no" >&5
2741 echo "${ECHO_T}no" >&6; }
2744 if test "x$ac_ct_NM" = x; then
2747 case $cross_compiling:$ac_tool_warned in
2749 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2750 whose name does not start with the host triplet. If you think this
2751 configuration is useful to you, please write to autoconf@gnu.org." >&5
2752 echo "$as_me: 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." >&2;}
2755 ac_tool_warned=yes ;;
2763 if test -n "$ac_tool_prefix"; then
2764 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
2765 set dummy ${ac_tool_prefix}windres; ac_word=$2
2766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2768 if test "${ac_cv_prog_WINDRES+set}" = set; then
2769 echo $ECHO_N "(cached) $ECHO_C" >&6
2771 if test -n "$WINDRES"; then
2772 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
2782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 WINDRES=$ac_cv_prog_WINDRES
2792 if test -n "$WINDRES"; then
2793 { echo "$as_me:$LINENO: result: $WINDRES" >&5
2794 echo "${ECHO_T}$WINDRES" >&6; }
2796 { echo "$as_me:$LINENO: result: no" >&5
2797 echo "${ECHO_T}no" >&6; }
2802 if test -z "$ac_cv_prog_WINDRES"; then
2803 ac_ct_WINDRES=$WINDRES
2804 # Extract the first word of "windres", so it can be a program name with args.
2805 set dummy windres; ac_word=$2
2806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 if test -n "$ac_ct_WINDRES"; then
2812 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 ac_cv_prog_ac_ct_WINDRES="windres"
2822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
2832 if test -n "$ac_ct_WINDRES"; then
2833 { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
2834 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
2836 { echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6; }
2840 if test "x$ac_ct_WINDRES" = x; then
2843 case $cross_compiling:$ac_tool_warned in
2845 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2846 whose name does not start with the host triplet. If you think this
2847 configuration is useful to you, please write to autoconf@gnu.org." >&5
2848 echo "$as_me: 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." >&2;}
2851 ac_tool_warned=yes ;;
2853 WINDRES=$ac_ct_WINDRES
2856 WINDRES="$ac_cv_prog_WINDRES"
2859 if test -n "$ac_tool_prefix"; then
2860 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
2861 set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_DLLWRAP+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$DLLWRAP"; then
2868 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
2870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2874 test -z "$as_dir" && as_dir=.
2875 for ac_exec_ext in '' $ac_executable_extensions; do
2876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2877 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
2878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2887 DLLWRAP=$ac_cv_prog_DLLWRAP
2888 if test -n "$DLLWRAP"; then
2889 { echo "$as_me:$LINENO: result: $DLLWRAP" >&5
2890 echo "${ECHO_T}$DLLWRAP" >&6; }
2892 { echo "$as_me:$LINENO: result: no" >&5
2893 echo "${ECHO_T}no" >&6; }
2898 if test -z "$ac_cv_prog_DLLWRAP"; then
2899 ac_ct_DLLWRAP=$DLLWRAP
2900 # Extract the first word of "dllwrap", so it can be a program name with args.
2901 set dummy dllwrap; ac_word=$2
2902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2904 if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 if test -n "$ac_ct_DLLWRAP"; then
2908 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
2910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir=.
2915 for ac_exec_ext in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
2928 if test -n "$ac_ct_DLLWRAP"; then
2929 { echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
2930 echo "${ECHO_T}$ac_ct_DLLWRAP" >&6; }
2932 { echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6; }
2936 if test "x$ac_ct_DLLWRAP" = x; then
2939 case $cross_compiling:$ac_tool_warned in
2941 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2942 whose name does not start with the host triplet. If you think this
2943 configuration is useful to you, please write to autoconf@gnu.org." >&5
2944 echo "$as_me: 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." >&2;}
2947 ac_tool_warned=yes ;;
2949 DLLWRAP=$ac_ct_DLLWRAP
2952 DLLWRAP="$ac_cv_prog_DLLWRAP"
2959 # Checks for programs.
2961 ac_cpp='$CPP $CPPFLAGS'
2962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2965 if test -n "$ac_tool_prefix"; then
2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2970 if test "${ac_cv_prog_CC+set}" = set; then
2971 echo $ECHO_N "(cached) $ECHO_C" >&6
2973 if test -n "$CC"; then
2974 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994 if test -n "$CC"; then
2995 { echo "$as_me:$LINENO: result: $CC" >&5
2996 echo "${ECHO_T}$CC" >&6; }
2998 { echo "$as_me:$LINENO: result: no" >&5
2999 echo "${ECHO_T}no" >&6; }
3004 if test -z "$ac_cv_prog_CC"; then
3006 # Extract the first word of "gcc", so it can be a program name with args.
3007 set dummy gcc; ac_word=$2
3008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3011 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 if test -n "$ac_ct_CC"; then
3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 test -z "$as_dir" && as_dir=.
3021 for ac_exec_ext in '' $ac_executable_extensions; do
3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3023 ac_cv_prog_ac_ct_CC="gcc"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3034 if test -n "$ac_ct_CC"; then
3035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3036 echo "${ECHO_T}$ac_ct_CC" >&6; }
3038 { echo "$as_me:$LINENO: result: no" >&5
3039 echo "${ECHO_T}no" >&6; }
3042 if test "x$ac_ct_CC" = x; then
3045 case $cross_compiling:$ac_tool_warned in
3047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3048 whose name does not start with the host triplet. If you think this
3049 configuration is useful to you, please write to autoconf@gnu.org." >&5
3050 echo "$as_me: 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." >&2;}
3053 ac_tool_warned=yes ;;
3061 if test -z "$CC"; then
3062 if test -n "$ac_tool_prefix"; then
3063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3064 set dummy ${ac_tool_prefix}cc; ac_word=$2
3065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3067 if test "${ac_cv_prog_CC+set}" = set; then
3068 echo $ECHO_N "(cached) $ECHO_C" >&6
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 test -z "$as_dir" && as_dir=.
3078 for ac_exec_ext in '' $ac_executable_extensions; do
3079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3080 ac_cv_prog_CC="${ac_tool_prefix}cc"
3081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 if test -n "$CC"; then
3092 { echo "$as_me:$LINENO: result: $CC" >&5
3093 echo "${ECHO_T}$CC" >&6; }
3095 { echo "$as_me:$LINENO: result: no" >&5
3096 echo "${ECHO_T}no" >&6; }
3102 if test -z "$CC"; then
3103 # Extract the first word of "cc", so it can be a program name with args.
3104 set dummy cc; ac_word=$2
3105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3107 if test "${ac_cv_prog_CC+set}" = set; then
3108 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3122 ac_prog_rejected=yes
3126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 if test $ac_prog_rejected = yes; then
3134 # We found a bogon in the path, so make sure we never use it.
3135 set dummy $ac_cv_prog_CC
3137 if test $# != 0; then
3138 # We chose a different compiler from the bogus one.
3139 # However, it has the same basename, so the bogon will be chosen
3140 # first if we set CC to just the basename; use the full file name.
3142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3148 if test -n "$CC"; then
3149 { echo "$as_me:$LINENO: result: $CC" >&5
3150 echo "${ECHO_T}$CC" >&6; }
3152 { echo "$as_me:$LINENO: result: no" >&5
3153 echo "${ECHO_T}no" >&6; }
3158 if test -z "$CC"; then
3159 if test -n "$ac_tool_prefix"; then
3160 for ac_prog in cl.exe
3162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3166 if test "${ac_cv_prog_CC+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3169 if test -n "$CC"; then
3170 ac_cv_prog_CC="$CC" # Let the user override the test.
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 if test -n "$CC"; then
3191 { echo "$as_me:$LINENO: result: $CC" >&5
3192 echo "${ECHO_T}$CC" >&6; }
3194 { echo "$as_me:$LINENO: result: no" >&5
3195 echo "${ECHO_T}no" >&6; }
3199 test -n "$CC" && break
3202 if test -z "$CC"; then
3204 for ac_prog in cl.exe
3206 # Extract the first word of "$ac_prog", so it can be a program name with args.
3207 set dummy $ac_prog; ac_word=$2
3208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3211 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 if test -n "$ac_ct_CC"; then
3214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3223 ac_cv_prog_ac_ct_CC="$ac_prog"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3234 if test -n "$ac_ct_CC"; then
3235 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3236 echo "${ECHO_T}$ac_ct_CC" >&6; }
3238 { echo "$as_me:$LINENO: result: no" >&5
3239 echo "${ECHO_T}no" >&6; }
3243 test -n "$ac_ct_CC" && break
3246 if test "x$ac_ct_CC" = x; then
3249 case $cross_compiling:$ac_tool_warned in
3251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3252 whose name does not start with the host triplet. If you think this
3253 configuration is useful to you, please write to autoconf@gnu.org." >&5
3254 echo "$as_me: 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." >&2;}
3257 ac_tool_warned=yes ;;
3266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3267 See \`config.log' for more details." >&5
3268 echo "$as_me: error: no acceptable C compiler found in \$PATH
3269 See \`config.log' for more details." >&2;}
3270 { (exit 1); exit 1; }; }
3272 # Provide some information about the compiler.
3273 echo "$as_me:$LINENO: checking for C compiler version" >&5
3274 ac_compiler=`set X $ac_compile; echo $2`
3275 { (ac_try="$ac_compiler --version >&5"
3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278 *) ac_try_echo=$ac_try;;
3280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3281 (eval "$ac_compiler --version >&5") 2>&5
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }
3285 { (ac_try="$ac_compiler -v >&5"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_compiler -v >&5") 2>&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }
3295 { (ac_try="$ac_compiler -V >&5"
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compiler -V >&5") 2>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }
3306 cat >conftest.$ac_ext <<_ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3321 ac_clean_files_save=$ac_clean_files
3322 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3323 # Try to create an executable without -o first, disregard a.out.
3324 # It will help us diagnose broken compilers, and finding out an intuition
3326 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3327 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3328 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3330 # List of possible output files, starting from the most likely.
3331 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3332 # only as a last resort. b.out is created by i960 compilers.
3333 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3335 # The IRIX 6 linker writes into existing files which may not be
3336 # executable, retaining their permissions. Remove them first so a
3337 # subsequent execution test works.
3339 for ac_file in $ac_files
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3343 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3348 if { (ac_try="$ac_link_default"
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3354 (eval "$ac_link_default") 2>&5
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }; then
3358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3361 # so that the user can short-circuit this test for compilers unknown to
3363 for ac_file in $ac_files
3365 test -f "$ac_file" || continue
3367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3370 # We found the default executable, but exeext='' is most
3374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 # We set ac_cv_exeext here because the later test for it is not
3379 # safe: cross compilers may not add the suffix if given an `-o'
3380 # argument, so we may need to know it at that point already.
3381 # Even if this section looks crufty: it has the advantage of
3388 test "$ac_cv_exeext" = no && ac_cv_exeext=
3391 echo "$as_me: failed program was:" >&5
3392 sed 's/^/| /' conftest.$ac_ext >&5
3394 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3395 See \`config.log' for more details." >&5
3396 echo "$as_me: error: C compiler cannot create executables
3397 See \`config.log' for more details." >&2;}
3398 { (exit 77); exit 77; }; }
3401 ac_exeext=$ac_cv_exeext
3402 { echo "$as_me:$LINENO: result: $ac_file" >&5
3403 echo "${ECHO_T}$ac_file" >&6; }
3405 # Check that the compiler produces executables we can run. If not, either
3406 # the compiler is broken, or we cross compile.
3407 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3408 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3409 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3410 # If not cross compiling, check that we can run a simple program.
3411 if test "$cross_compiling" != yes; then
3412 if { ac_try='./$ac_file'
3413 { (case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_try") 2>&5
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; }; then
3424 if test "$cross_compiling" = maybe; then
3427 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3428 If you meant to cross compile, use \`--host'.
3429 See \`config.log' for more details." >&5
3430 echo "$as_me: error: cannot run C compiled programs.
3431 If you meant to cross compile, use \`--host'.
3432 See \`config.log' for more details." >&2;}
3433 { (exit 1); exit 1; }; }
3437 { echo "$as_me:$LINENO: result: yes" >&5
3438 echo "${ECHO_T}yes" >&6; }
3440 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3441 ac_clean_files=$ac_clean_files_save
3442 # Check that the compiler produces executables we can run. If not, either
3443 # the compiler is broken, or we cross compile.
3444 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3445 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3446 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3447 echo "${ECHO_T}$cross_compiling" >&6; }
3449 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3450 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3451 if { (ac_try="$ac_link"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_link") 2>&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); }; then
3461 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3462 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3463 # work properly (i.e., refer to `conftest.exe'), while it won't with
3465 for ac_file in conftest.exe conftest conftest.*; do
3466 test -f "$ac_file" || continue
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3469 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3475 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3476 See \`config.log' for more details." >&5
3477 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3478 See \`config.log' for more details." >&2;}
3479 { (exit 1); exit 1; }; }
3482 rm -f conftest$ac_cv_exeext
3483 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3484 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3486 rm -f conftest.$ac_ext
3487 EXEEXT=$ac_cv_exeext
3489 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3490 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3491 if test "${ac_cv_objext+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 cat >conftest.$ac_ext <<_ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3509 rm -f conftest.o conftest.obj
3510 if { (ac_try="$ac_compile"
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3516 (eval "$ac_compile") 2>&5
3518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); }; then
3520 for ac_file in conftest.o conftest.obj conftest.*; do
3521 test -f "$ac_file" || continue;
3523 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3524 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3529 echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3532 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3533 See \`config.log' for more details." >&5
3534 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3535 See \`config.log' for more details." >&2;}
3536 { (exit 1); exit 1; }; }
3539 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3541 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3542 echo "${ECHO_T}$ac_cv_objext" >&6; }
3543 OBJEXT=$ac_cv_objext
3545 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3546 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3547 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 cat >conftest.$ac_ext <<_ACEOF
3553 cat confdefs.h >>conftest.$ac_ext
3554 cat >>conftest.$ac_ext <<_ACEOF
3555 /* end confdefs.h. */
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3577 grep -v '^ *+' conftest.er1 >conftest.err
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } &&
3582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3583 { (case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_try") 2>&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; } &&
3592 { ac_try='test -s conftest.$ac_objext'
3593 { (case "(($ac_try" in
3594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_try") 2>&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }; }; then
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3611 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3614 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3615 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3616 GCC=`test $ac_compiler_gnu = yes && echo yes`
3617 ac_test_CFLAGS=${CFLAGS+set}
3618 ac_save_CFLAGS=$CFLAGS
3619 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3620 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3621 if test "${ac_cv_prog_cc_g+set}" = set; then
3622 echo $ECHO_N "(cached) $ECHO_C" >&6
3624 ac_save_c_werror_flag=$ac_c_werror_flag
3625 ac_c_werror_flag=yes
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3643 rm -f conftest.$ac_objext
3644 if { (ac_try="$ac_compile"
3646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3647 *) ac_try_echo=$ac_try;;
3649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3650 (eval "$ac_compile") 2>conftest.er1
3652 grep -v '^ *+' conftest.er1 >conftest.err
3654 cat conftest.err >&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } &&
3657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3658 { (case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_try") 2>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; } &&
3667 { ac_try='test -s conftest.$ac_objext'
3668 { (case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_try") 2>&5
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; }; then
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3683 cat >conftest.$ac_ext <<_ACEOF
3686 cat confdefs.h >>conftest.$ac_ext
3687 cat >>conftest.$ac_ext <<_ACEOF
3688 /* end confdefs.h. */
3698 rm -f conftest.$ac_objext
3699 if { (ac_try="$ac_compile"
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3705 (eval "$ac_compile") 2>conftest.er1
3707 grep -v '^ *+' conftest.er1 >conftest.err
3709 cat conftest.err >&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); } &&
3712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3713 { (case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3718 (eval "$ac_try") 2>&5
3720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); }; } &&
3722 { ac_try='test -s conftest.$ac_objext'
3723 { (case "(($ac_try" in
3724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725 *) ac_try_echo=$ac_try;;
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_try") 2>&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); }; }; then
3734 echo "$as_me: failed program was:" >&5
3735 sed 's/^/| /' conftest.$ac_ext >&5
3737 ac_c_werror_flag=$ac_save_c_werror_flag
3739 cat >conftest.$ac_ext <<_ACEOF
3742 cat confdefs.h >>conftest.$ac_ext
3743 cat >>conftest.$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3754 rm -f conftest.$ac_objext
3755 if { (ac_try="$ac_compile"
3757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_compile") 2>conftest.er1
3763 grep -v '^ *+' conftest.er1 >conftest.err
3765 cat conftest.err >&5
3766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3769 { (case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774 (eval "$ac_try") 2>&5
3776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3777 (exit $ac_status); }; } &&
3778 { ac_try='test -s conftest.$ac_objext'
3779 { (case "(($ac_try" in
3780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3781 *) ac_try_echo=$ac_try;;
3783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3784 (eval "$ac_try") 2>&5
3786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); }; }; then
3790 echo "$as_me: failed program was:" >&5
3791 sed 's/^/| /' conftest.$ac_ext >&5
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3799 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3803 ac_c_werror_flag=$ac_save_c_werror_flag
3805 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3806 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3807 if test "$ac_test_CFLAGS" = set; then
3808 CFLAGS=$ac_save_CFLAGS
3809 elif test $ac_cv_prog_cc_g = yes; then
3810 if test "$GCC" = yes; then
3816 if test "$GCC" = yes; then
3822 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3823 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3824 if test "${ac_cv_prog_cc_c89+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 ac_cv_prog_cc_c89=no
3829 cat >conftest.$ac_ext <<_ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3837 #include <sys/types.h>
3838 #include <sys/stat.h>
3839 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3840 struct buf { int x; };
3841 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3842 static char *e (p, i)
3848 static char *f (char * (*g) (char **, int), char **p, ...)
3853 s = g (p, va_arg (v,int));
3858 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3859 function prototypes and stuff, but not '\xHH' hex character constants.
3860 These don't provoke an error unfortunately, instead are silently treated
3861 as 'x'. The following induces an error, until -std is added to get
3862 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3863 array size at least. It's necessary to write '\x00'==0 to get something
3864 that's true only with -std. */
3865 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3867 int test (int i, double x);
3868 struct s1 {int (*f) (int a);};
3869 struct s2 {int (*f) (double a);};
3870 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3876 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3881 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3882 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3884 CC="$ac_save_CC $ac_arg"
3885 rm -f conftest.$ac_objext
3886 if { (ac_try="$ac_compile"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_compile") 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); } &&
3899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3900 { (case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_try") 2>&5
3907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908 (exit $ac_status); }; } &&
3909 { ac_try='test -s conftest.$ac_objext'
3910 { (case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_try") 2>&5
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_prog_cc_c89=$ac_arg
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3927 rm -f conftest.err conftest.$ac_objext
3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
3930 rm -f conftest.$ac_ext
3935 case "x$ac_cv_prog_cc_c89" in
3937 { echo "$as_me:$LINENO: result: none needed" >&5
3938 echo "${ECHO_T}none needed" >&6; } ;;
3940 { echo "$as_me:$LINENO: result: unsupported" >&5
3941 echo "${ECHO_T}unsupported" >&6; } ;;
3943 CC="$CC $ac_cv_prog_cc_c89"
3944 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3945 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3950 ac_cpp='$CPP $CPPFLAGS'
3951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956 ac_cpp='$CXXCPP $CPPFLAGS'
3957 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3960 if test -z "$CXX"; then
3961 if test -n "$CCC"; then
3964 if test -n "$ac_tool_prefix"; then
3965 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_CXX+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 if test -n "$CXX"; then
3975 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3984 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 if test -n "$CXX"; then
3996 { echo "$as_me:$LINENO: result: $CXX" >&5
3997 echo "${ECHO_T}$CXX" >&6; }
3999 { echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6; }
4004 test -n "$CXX" && break
4007 if test -z "$CXX"; then
4009 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4011 # Extract the first word of "$ac_prog", so it can be a program name with args.
4012 set dummy $ac_prog; ac_word=$2
4013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4015 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 if test -n "$ac_ct_CXX"; then
4019 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4028 ac_cv_prog_ac_ct_CXX="$ac_prog"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4039 if test -n "$ac_ct_CXX"; then
4040 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4041 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4043 { echo "$as_me:$LINENO: result: no" >&5
4044 echo "${ECHO_T}no" >&6; }
4048 test -n "$ac_ct_CXX" && break
4051 if test "x$ac_ct_CXX" = x; then
4054 case $cross_compiling:$ac_tool_warned in
4056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4057 whose name does not start with the host triplet. If you think this
4058 configuration is useful to you, please write to autoconf@gnu.org." >&5
4059 echo "$as_me: 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." >&2;}
4062 ac_tool_warned=yes ;;
4070 # Provide some information about the compiler.
4071 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4072 ac_compiler=`set X $ac_compile; echo $2`
4073 { (ac_try="$ac_compiler --version >&5"
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4076 *) ac_try_echo=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compiler --version >&5") 2>&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }
4083 { (ac_try="$ac_compiler -v >&5"
4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4086 *) ac_try_echo=$ac_try;;
4088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4089 (eval "$ac_compiler -v >&5") 2>&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); }
4093 { (ac_try="$ac_compiler -V >&5"
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_compiler -V >&5") 2>&5
4101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); }
4104 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4105 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4106 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4107 echo $ECHO_N "(cached) $ECHO_C" >&6
4109 cat >conftest.$ac_ext <<_ACEOF
4112 cat confdefs.h >>conftest.$ac_ext
4113 cat >>conftest.$ac_ext <<_ACEOF
4114 /* end confdefs.h. */
4127 rm -f conftest.$ac_objext
4128 if { (ac_try="$ac_compile"
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_compile") 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4142 { (case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_try") 2>&5
4149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4150 (exit $ac_status); }; } &&
4151 { ac_try='test -s conftest.$ac_objext'
4152 { (case "(($ac_try" in
4153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4154 *) ac_try_echo=$ac_try;;
4156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4157 (eval "$ac_try") 2>&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4170 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4173 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4174 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4175 GXX=`test $ac_compiler_gnu = yes && echo yes`
4176 ac_test_CXXFLAGS=${CXXFLAGS+set}
4177 ac_save_CXXFLAGS=$CXXFLAGS
4178 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4179 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4180 if test "${ac_cv_prog_cxx_g+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4184 ac_cxx_werror_flag=yes
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4217 { (case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_try") 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 ac_cv_prog_cxx_g=yes
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4242 cat >conftest.$ac_ext <<_ACEOF
4245 cat confdefs.h >>conftest.$ac_ext
4246 cat >>conftest.$ac_ext <<_ACEOF
4247 /* end confdefs.h. */
4257 rm -f conftest.$ac_objext
4258 if { (ac_try="$ac_compile"
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_compile") 2>conftest.er1
4266 grep -v '^ *+' conftest.er1 >conftest.err
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } &&
4271 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4272 { (case "(($ac_try" in
4273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4274 *) ac_try_echo=$ac_try;;
4276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4277 (eval "$ac_try") 2>&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); }; } &&
4281 { ac_try='test -s conftest.$ac_objext'
4282 { (case "(($ac_try" in
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_try") 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4296 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4298 cat >conftest.$ac_ext <<_ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4313 rm -f conftest.$ac_objext
4314 if { (ac_try="$ac_compile"
4316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4317 *) ac_try_echo=$ac_try;;
4319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4320 (eval "$ac_compile") 2>conftest.er1
4322 grep -v '^ *+' conftest.er1 >conftest.err
4324 cat conftest.err >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } &&
4327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4328 { (case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333 (eval "$ac_try") 2>&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try='test -s conftest.$ac_objext'
4338 { (case "(($ac_try" in
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_try") 2>&5
4345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346 (exit $ac_status); }; }; then
4347 ac_cv_prog_cxx_g=yes
4349 echo "$as_me: failed program was:" >&5
4350 sed 's/^/| /' conftest.$ac_ext >&5
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4361 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4364 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4365 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4366 if test "$ac_test_CXXFLAGS" = set; then
4367 CXXFLAGS=$ac_save_CXXFLAGS
4368 elif test $ac_cv_prog_cxx_g = yes; then
4369 if test "$GXX" = yes; then
4375 if test "$GXX" = yes; then
4382 ac_cpp='$CPP $CPPFLAGS'
4383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4388 ac_cpp='$CPP $CPPFLAGS'
4389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4394 # On Suns, sometimes $CPP names a directory.
4395 if test -n "$CPP" && test -d "$CPP"; then
4398 if test -z "$CPP"; then
4399 if test "${ac_cv_prog_CPP+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 # Double quotes because CPP needs to be expanded
4403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4406 for ac_c_preproc_warn_flag in '' yes
4408 # Use a header file that comes with gcc, so configuring glibc
4409 # with a fresh cross-compiler works.
4410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4411 # <limits.h> exists even on freestanding compilers.
4412 # On the NeXT, cc -E runs the code through the compiler's parser,
4413 # not just through cpp. "Syntax error" is here to catch this case.
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4421 # include <limits.h>
4423 # include <assert.h>
4427 if { (ac_try="$ac_cpp conftest.$ac_ext"
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4435 grep -v '^ *+' conftest.er1 >conftest.err
4437 cat conftest.err >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); } >/dev/null; then
4440 if test -s conftest.err; then
4441 ac_cpp_err=$ac_c_preproc_warn_flag
4442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4449 if test -z "$ac_cpp_err"; then
4452 echo "$as_me: failed program was:" >&5
4453 sed 's/^/| /' conftest.$ac_ext >&5
4455 # Broken: fails on valid input.
4459 rm -f conftest.err conftest.$ac_ext
4461 # OK, works on sane cases. Now check whether nonexistent headers
4462 # can be detected and how.
4463 cat >conftest.$ac_ext <<_ACEOF
4466 cat confdefs.h >>conftest.$ac_ext
4467 cat >>conftest.$ac_ext <<_ACEOF
4468 /* end confdefs.h. */
4469 #include <ac_nonexistent.h>
4471 if { (ac_try="$ac_cpp conftest.$ac_ext"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } >/dev/null; then
4484 if test -s conftest.err; then
4485 ac_cpp_err=$ac_c_preproc_warn_flag
4486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4493 if test -z "$ac_cpp_err"; then
4494 # Broken: success on invalid input.
4497 echo "$as_me: failed program was:" >&5
4498 sed 's/^/| /' conftest.$ac_ext >&5
4500 # Passes both tests.
4505 rm -f conftest.err conftest.$ac_ext
4508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4509 rm -f conftest.err conftest.$ac_ext
4510 if $ac_preproc_ok; then
4522 { echo "$as_me:$LINENO: result: $CPP" >&5
4523 echo "${ECHO_T}$CPP" >&6; }
4525 for ac_c_preproc_warn_flag in '' yes
4527 # Use a header file that comes with gcc, so configuring glibc
4528 # with a fresh cross-compiler works.
4529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4530 # <limits.h> exists even on freestanding compilers.
4531 # On the NeXT, cc -E runs the code through the compiler's parser,
4532 # not just through cpp. "Syntax error" is here to catch this case.
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4540 # include <limits.h>
4542 # include <assert.h>
4546 if { (ac_try="$ac_cpp conftest.$ac_ext"
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4554 grep -v '^ *+' conftest.er1 >conftest.err
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } >/dev/null; then
4559 if test -s conftest.err; then
4560 ac_cpp_err=$ac_c_preproc_warn_flag
4561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4568 if test -z "$ac_cpp_err"; then
4571 echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 # Broken: fails on valid input.
4578 rm -f conftest.err conftest.$ac_ext
4580 # OK, works on sane cases. Now check whether nonexistent headers
4581 # can be detected and how.
4582 cat >conftest.$ac_ext <<_ACEOF
4585 cat confdefs.h >>conftest.$ac_ext
4586 cat >>conftest.$ac_ext <<_ACEOF
4587 /* end confdefs.h. */
4588 #include <ac_nonexistent.h>
4590 if { (ac_try="$ac_cpp conftest.$ac_ext"
4592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4598 grep -v '^ *+' conftest.er1 >conftest.err
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } >/dev/null; then
4603 if test -s conftest.err; then
4604 ac_cpp_err=$ac_c_preproc_warn_flag
4605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4612 if test -z "$ac_cpp_err"; then
4613 # Broken: success on invalid input.
4616 echo "$as_me: failed program was:" >&5
4617 sed 's/^/| /' conftest.$ac_ext >&5
4619 # Passes both tests.
4624 rm -f conftest.err conftest.$ac_ext
4627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4628 rm -f conftest.err conftest.$ac_ext
4629 if $ac_preproc_ok; then
4632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4633 See \`config.log' for more details." >&5
4634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4635 See \`config.log' for more details." >&2;}
4636 { (exit 1); exit 1; }; }
4640 ac_cpp='$CPP $CPPFLAGS'
4641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 ac_cpp='$CXXCPP $CPPFLAGS'
4647 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4650 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4651 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4652 if test -z "$CXXCPP"; then
4653 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 # Double quotes because CXXCPP needs to be expanded
4657 for CXXCPP in "$CXX -E" "/lib/cpp"
4660 for ac_cxx_preproc_warn_flag in '' yes
4662 # Use a header file that comes with gcc, so configuring glibc
4663 # with a fresh cross-compiler works.
4664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 # <limits.h> exists even on freestanding compilers.
4666 # On the NeXT, cc -E runs the code through the compiler's parser,
4667 # not just through cpp. "Syntax error" is here to catch this case.
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4675 # include <limits.h>
4677 # include <assert.h>
4681 if { (ac_try="$ac_cpp conftest.$ac_ext"
4683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684 *) ac_try_echo=$ac_try;;
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4689 grep -v '^ *+' conftest.er1 >conftest.err
4691 cat conftest.err >&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } >/dev/null; then
4694 if test -s conftest.err; then
4695 ac_cpp_err=$ac_cxx_preproc_warn_flag
4696 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag