2 # From configure.ac Revision: 48280 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
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 more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in
27 *posix*) set -o posix ;;
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
43 # The user is always right.
44 if test "${PATH_SEPARATOR+set}" != set; then
45 echo "#! /bin/sh" >conf$$.sh
46 echo "exit 0" >>conf$$.sh
48 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
56 # Support unset when possible.
57 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
65 # We need space, tab and new line, in precisely that order. Quoting is
66 # there to prevent editors from complaining about space-tab.
67 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
68 # splitting by setting IFS to empty value.)
73 # Find who we are. Look in the path if we contain no directory separator.
75 *[\\/]* ) as_myself=$0 ;;
76 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
80 test -z "$as_dir" && as_dir=.
81 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
87 # We did not find ourselves, most probably we were run as `sh COMMAND'
88 # in which case we are not to be found in the path.
89 if test "x$as_myself" = x; then
92 if test ! -f "$as_myself"; then
93 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
97 # Work around bugs in pre-3.0 UWIN ksh.
98 for as_var in ENV MAIL MAILPATH
99 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
107 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
108 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
111 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
112 eval $as_var=C; export $as_var
114 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118 # Required to use basename.
119 if expr a : '\(a\)' >/dev/null 2>&1 &&
120 test "X`expr 00001 : '.*\(...\)'`" = X001; then
126 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
133 # Name of the executable.
134 as_me=`$as_basename -- "$0" ||
135 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
136 X"$0" : 'X\(//\)$' \| \
137 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 sed '/^.*\/\([^/][^/]*\)\/*$/{
157 if test "x$CONFIG_SHELL" = x; then
158 if (eval ":") 2>/dev/null; then
164 if test $as_have_required = yes && (eval ":
174 as_func_ret_success () {
177 as_func_ret_failure () {
182 if as_func_success; then
186 echo as_func_success failed.
189 if as_func_failure; then
191 echo as_func_failure succeeded.
194 if as_func_ret_success; then
198 echo as_func_ret_success failed.
201 if as_func_ret_failure; then
203 echo as_func_ret_failure succeeded.
206 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
210 echo positional parameters were not saved.
213 test \$exitcode = 0) || { (exit 1); exit 1; }
218 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
219 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
220 ") 2> /dev/null; then
224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
225 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
228 test -z "$as_dir" && as_dir=.
231 for as_base in sh bash ksh sh5; do
232 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
239 for as_shell in $as_candidate_shells $SHELL; do
240 # Try only shells that exist, to save several forks.
241 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
242 { ("$as_shell") 2> /dev/null <<\_ASEOF
243 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
246 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
247 # is contrary to our usage. Disable this feature.
248 alias -g '${1+"$@"}'='"$@"'
251 case `(set -o) 2>/dev/null` in
252 *posix*) set -o posix ;;
261 CONFIG_SHELL=$as_shell
263 if { "$as_shell" 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
289 as_func_ret_success () {
292 as_func_ret_failure () {
297 if as_func_success; then
301 echo as_func_success failed.
304 if as_func_failure; then
306 echo as_func_failure succeeded.
309 if as_func_ret_success; then
313 echo as_func_ret_success failed.
316 if as_func_ret_failure; then
318 echo as_func_ret_failure succeeded.
321 if ( set x; as_func_ret_success y && test x = "$1" ); then
325 echo positional parameters were not saved.
328 test $exitcode = 0) || { (exit 1); exit 1; }
333 test "x$as_lineno_1" != "x$as_lineno_2" &&
334 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
345 if test "x$CONFIG_SHELL" != x; then
346 for as_var in BASH_ENV ENV
347 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
350 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
354 if test $as_have_required = no; then
355 echo This script requires a shell more modern than all the
356 echo shells that I found on your system. Please install a
357 echo modern shell, or manually run the script under such a
358 echo shell if you do have one.
359 { (exit 1); exit 1; }
369 (eval "as_func_return () {
378 as_func_ret_success () {
381 as_func_ret_failure () {
386 if as_func_success; then
390 echo as_func_success failed.
393 if as_func_failure; then
395 echo as_func_failure succeeded.
398 if as_func_ret_success; then
402 echo as_func_ret_success failed.
405 if as_func_ret_failure; then
407 echo as_func_ret_failure succeeded.
410 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
414 echo positional parameters were not saved.
417 test \$exitcode = 0") || {
418 echo No shell found that supports shell functions.
419 echo Please tell autoconf@gnu.org about your system,
420 echo including any error possibly output before this
428 test "x$as_lineno_1" != "x$as_lineno_2" &&
429 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
432 # uniformly replaced by the line number. The first 'sed' inserts a
433 # line-number line after each line using $LINENO; the second 'sed'
434 # does the real work. The second script uses 'N' to pair each
435 # line-number line with the line containing $LINENO, and appends
436 # trailing '-' during substitution so that $LINENO is not a special
438 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
439 # scripts with optimization help from Paolo Bonzini. Blame Lee
440 # E. McMahon (1931-1989) for sed's syntax. :-)
452 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
456 chmod +x "$as_me.lineno" ||
457 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
458 { (exit 1); exit 1; }; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
469 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
475 ECHO_C= ECHO_N= ECHO_T=
479 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
486 if expr a : '\(a\)' >/dev/null 2>&1 &&
487 test "X`expr 00001 : '.*\(...\)'`" = X001; then
493 rm -f conf$$ conf$$.exe conf$$.file
494 if test -d conf$$.dir; then
495 rm -f conf$$.dir/conf$$.file
501 if ln -s conf$$.file conf$$ 2>/dev/null; then
503 # ... but there are two gotchas:
504 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
505 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
506 # In both cases, we have to default to `cp -p'.
507 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 exec 7<&0 </dev/null 6>&1
558 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix=/usr/local
567 ac_config_libobj_dir=.
573 SHELL=${CONFIG_SHELL-/bin/sh}
575 # Identity of this package.
582 ac_unique_file="asterisk"
583 ac_unique_file="main/asterisk.c"
584 # Factoring default headers for most tests.
585 ac_includes_default="\
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
597 # ifdef HAVE_STDLIB_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
631 program_transform_name
863 ac_precious_vars='build_alias
878 # Initialize some variables set by options.
880 ac_init_version=false
881 # The variables have the same names as the options, with
882 # dashes changed to underlines.
890 program_transform_name=s,x,x,
898 # Installation directory options.
899 # These are left unexpanded so users can "make install exec_prefix=/foo"
900 # and all the variables that are supposed to be based on exec_prefix
901 # by default will actually change.
902 # Use braces instead of parens because sh, perl, etc. also accept them.
903 # (The list follows the same order as the GNU Coding Standards.)
904 bindir='${exec_prefix}/bin'
905 sbindir='${exec_prefix}/sbin'
906 libexecdir='${exec_prefix}/libexec'
907 datarootdir='${prefix}/share'
908 datadir='${datarootdir}'
909 sysconfdir='${prefix}/etc'
910 sharedstatedir='${prefix}/com'
911 localstatedir='${prefix}/var'
912 includedir='${prefix}/include'
913 oldincludedir='/usr/include'
914 docdir='${datarootdir}/doc/${PACKAGE}'
915 infodir='${datarootdir}/info'
920 libdir='${exec_prefix}/lib'
921 localedir='${datarootdir}/locale'
922 mandir='${datarootdir}/man'
928 # If the previous option needs an argument, assign it.
929 if test -n "$ac_prev"; then
930 eval $ac_prev=\$ac_option
936 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 # Accept the important Cygnus configure options, so we can diagnose typos.
942 case $ac_dashdash$ac_option in
946 -bindir | --bindir | --bindi | --bind | --bin | --bi)
948 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 -build | --build | --buil | --bui | --bu)
952 ac_prev=build_alias ;;
953 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
954 build_alias=$ac_optarg ;;
956 -cache-file | --cache-file | --cache-fil | --cache-fi \
957 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
958 ac_prev=cache_file ;;
959 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
960 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
961 cache_file=$ac_optarg ;;
964 cache_file=config.cache ;;
966 -datadir | --datadir | --datadi | --datad)
968 -datadir=* | --datadir=* | --datadi=* | --datad=*)
969 datadir=$ac_optarg ;;
971 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
972 | --dataroo | --dataro | --datar)
973 ac_prev=datarootdir ;;
974 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
975 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
976 datarootdir=$ac_optarg ;;
978 -disable-* | --disable-*)
979 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
980 # Reject names that are not valid shell variable names.
981 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
982 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
983 { (exit 1); exit 1; }; }
984 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
985 eval enable_$ac_feature=no ;;
987 -docdir | --docdir | --docdi | --doc | --do)
989 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
994 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997 -enable-* | --enable-*)
998 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
999 # Reject names that are not valid shell variable names.
1000 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1001 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1002 { (exit 1); exit 1; }; }
1003 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1004 eval enable_$ac_feature=\$ac_optarg ;;
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 htmldir=$ac_optarg ;;
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1049 -libdir | --libdir | --libdi | --libd)
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1140 -psdir | --psdir | --psdi | --psd | --ps)
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 sbindir=$ac_optarg ;;
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 sharedstatedir=$ac_optarg ;;
1166 -site | --site | --sit)
1168 -site=* | --site=* | --sit=*)
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1195 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1198 { echo "$as_me: error: invalid package name: $ac_package" >&2
1199 { (exit 1); exit 1; }; }
1200 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1201 eval with_$ac_package=\$ac_optarg ;;
1203 -without-* | --without-*)
1204 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1205 # Reject names that are not valid shell variable names.
1206 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1207 { echo "$as_me: error: invalid package name: $ac_package" >&2
1208 { (exit 1); exit 1; }; }
1209 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1210 eval with_$ac_package=no ;;
1213 # Obsolete; use --with-x.
1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1217 | --x-incl | --x-inc | --x-in | --x-i)
1218 ac_prev=x_includes ;;
1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1221 x_includes=$ac_optarg ;;
1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1225 ac_prev=x_libraries ;;
1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1228 x_libraries=$ac_optarg ;;
1230 -*) { echo "$as_me: error: unrecognized option: $ac_option
1231 Try \`$0 --help' for more information." >&2
1232 { (exit 1); exit 1; }; }
1236 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1240 { (exit 1); exit 1; }; }
1241 eval $ac_envvar=\$ac_optarg
1242 export $ac_envvar ;;
1245 # FIXME: should be removed in autoconf 3.0.
1246 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1248 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1249 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1255 if test -n "$ac_prev"; then
1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1257 { echo "$as_me: error: missing argument to $ac_option" >&2
1258 { (exit 1); exit 1; }; }
1261 # Be sure to have absolute directory names.
1262 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 datadir sysconfdir sharedstatedir localstatedir includedir \
1264 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1265 libdir localedir mandir
1267 eval ac_val=\$$ac_var
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1272 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1273 { (exit 1); exit 1; }; }
1276 # There might be people who depend on the old broken behavior: `$host'
1277 # used to hold the argument of --host etc.
1278 # FIXME: To remove some day.
1281 target=$target_alias
1283 # FIXME: To remove some day.
1284 if test "x$host_alias" != x; then
1285 if test "x$build_alias" = x; then
1286 cross_compiling=maybe
1287 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1288 If a cross compiler is detected then cross compile mode will be used." >&2
1289 elif test "x$build_alias" != "x$host_alias"; then
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297 test "$silent" = yes && exec 6>/dev/null
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 { echo "$as_me: error: Working directory cannot be determined" >&2
1304 { (exit 1); exit 1; }; }
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 { echo "$as_me: error: pwd does not report name of working directory" >&2
1307 { (exit 1); exit 1; }; }
1310 # Find the source files, if location was not specified.
1311 if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
1313 # Try the directory containing this script, then the parent directory.
1314 ac_confdir=`$as_dirname -- "$0" ||
1315 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$0" : 'X\(//\)[^/]' \| \
1317 X"$0" : 'X\(//\)$' \| \
1318 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1338 if test ! -r "$srcdir/$ac_unique_file"; then
1342 ac_srcdir_defaulted=no
1344 if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1346 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1347 { (exit 1); exit 1; }; }
1349 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1352 { (exit 1); exit 1; }; }
1354 # When building in place, set srcdir=.
1355 if test "$ac_abs_confdir" = "$ac_pwd"; then
1358 # Remove unnecessary trailing slashes from srcdir.
1359 # Double slashes in file names in object file debugging info
1360 # mess up M-x gdb in Emacs.
1362 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1364 for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 # Report the --help message.
1374 if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
1378 \`configure' configures this package to adapt to many kinds of systems.
1380 Usage: $0 [OPTION]... [VAR=VALUE]...
1382 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383 VAR=VALUE. See below for descriptions of some of the useful variables.
1385 Defaults for the options are specified in brackets.
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
1392 -q, --quiet, --silent do not print \`checking...' messages
1393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1398 Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
1400 [$ac_default_prefix]
1401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1404 By default, \`make install' will install all the files in
1405 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407 for instance \`--prefix=\$HOME'.
1409 For better control, use the options below.
1411 Fine tuning of the installation directories:
1412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
1436 --build=BUILD configure for building on BUILD [guessed]
1437 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1441 if test -n "$ac_init_help"; then
1446 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1447 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1448 --enable-dev-mode Turn on developer mode
1449 --disable-largefile omit support for large files
1452 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1453 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1454 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1455 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1456 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1457 --with-curl=PATH use cURL files in PATH
1458 --with-curses=PATH use curses files in PATH
1459 --with-gnutls=PATH use GNU TLS support (used for iksemel only) files in
1461 --with-gsm=PATH use GSM files in PATH , or 'internal'
1462 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1463 --with-imap=PATH use UW IMAP Toolkit files in PATH
1464 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1465 --with-kde=PATH use KDE files in PATH
1466 --with-misdn=PATH use mISDN User Library files in PATH
1467 --with-nbs=PATH use Network Broadcast Sound files in PATH
1468 --with-ncurses=PATH use ncurses files in PATH
1469 --with-netsnmp=PATH use Net-SNMP files in PATH
1470 --with-newt=PATH use newt files in PATH
1471 --with-odbc=PATH use unixODBC files in PATH
1472 --with-ogg=PATH use OGG files in PATH
1473 --with-osptk=PATH use OSP Toolkit files in PATH
1474 --with-oss=PATH use Open Sound System files in PATH
1475 --with-popt=PATH use popt files in PATH
1476 --with-postgres=PATH use PostgreSQL files in PATH
1477 --with-pri=PATH use ISDN PRI files in PATH
1478 --with-ss7=PATH use ISDN SS7 files in PATH
1479 --with-pwlib=PATH use PWlib files in PATH
1480 --with-h323=PATH use OpenH323 files in PATH
1481 --with-qt=PATH use Qt files in PATH
1482 --with-radius=PATH use Radius Client files in PATH
1483 --with-speex=PATH use Speex files in PATH
1484 --with-sqlite=PATH use SQLite files in PATH
1485 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1486 --with-ssl=PATH use OpenSSL files in PATH
1487 --with-tds=PATH use FreeTDS files in PATH
1488 --with-termcap=PATH use Termcap files in PATH
1489 --with-tinfo=PATH use Term Info files in PATH
1490 --with-tonezone=PATH use tonezone files in PATH
1491 --with-vorbis=PATH use Vorbis files in PATH
1492 --with-vpb=PATH use Voicetronix API files in PATH
1493 --with-z=PATH use zlib files in PATH
1494 --with-zaptel=PATH use Zaptel files in PATH
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1509 Use these variables to override the choices made by `configure' or to help
1510 it to find libraries and programs with nonstandard names/locations.
1516 if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519 test -d "$ac_dir" || continue
1523 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1526 # A ".." for each directory in $ac_dir_suffix.
1527 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1528 case $ac_top_builddir_sub in
1529 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1530 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 ac_abs_top_builddir=$ac_pwd
1534 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1535 # for backward compatibility:
1536 ac_top_builddir=$ac_top_build_prefix
1539 .) # We are building in place.
1541 ac_top_srcdir=$ac_top_builddir_sub
1542 ac_abs_top_srcdir=$ac_pwd ;;
1543 [\\/]* | ?:[\\/]* ) # Absolute name.
1544 ac_srcdir=$srcdir$ac_dir_suffix;
1545 ac_top_srcdir=$srcdir
1546 ac_abs_top_srcdir=$srcdir ;;
1548 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1549 ac_top_srcdir=$ac_top_build_prefix$srcdir
1550 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1552 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1554 cd "$ac_dir" || { ac_status=$?; continue; }
1555 # Check for guested configure.
1556 if test -f "$ac_srcdir/configure.gnu"; then
1558 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1559 elif test -f "$ac_srcdir/configure"; then
1561 $SHELL "$ac_srcdir/configure" --help=recursive
1563 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1565 cd "$ac_pwd" || { ac_status=$?; break; }
1569 test -n "$ac_init_help" && exit $ac_status
1570 if $ac_init_version; then
1573 generated by GNU Autoconf 2.61
1575 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1576 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1577 This configure script is free software; the Free Software Foundation
1578 gives unlimited permission to copy, distribute and modify it.
1584 cat >config.log <<_ACEOF
1585 This file contains any messages produced by compilers while
1586 running configure, to aid debugging if configure makes a mistake.
1588 It was created by $as_me, which was
1589 generated by GNU Autoconf 2.61. Invocation command line was
1601 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1602 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1603 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1604 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1605 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1607 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1608 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1610 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1611 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1612 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1613 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1614 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1615 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1616 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 test -z "$as_dir" && as_dir=.
1625 echo "PATH: $as_dir"
1641 # Keep a trace of the command line.
1642 # Strip out --no-create and --no-recursion so they do not pile up.
1643 # Strip out --silent because we don't want to record it for future runs.
1644 # Also quote any args containing shell meta-characters.
1645 # Make two passes to allow for proper duplicate-argument suppression.
1649 ac_must_keep_next=false
1655 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1657 | -silent | --silent | --silen | --sile | --sil)
1660 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1665 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1666 if test $ac_must_keep_next = true; then
1667 ac_must_keep_next=false # Got value, back to normal.
1670 *=* | --config-cache | -C | -disable-* | --disable-* \
1671 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1672 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1673 | -with-* | --with-* | -without-* | --without-* | --x)
1674 case "$ac_configure_args0 " in
1675 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678 -* ) ac_must_keep_next=true ;;
1681 ac_configure_args="$ac_configure_args '$ac_arg'"
1686 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1687 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1689 # When interrupted or exit'd, cleanup temporary files, and complete
1690 # config.log. We remove comments because anyway the quotes in there
1691 # would cause problems or look ugly.
1692 # WARNING: Use '\'' to represent an apostrophe within the trap.
1693 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1694 trap 'exit_status=$?
1695 # Save into config.log some information that might help in debugging.
1700 ## ---------------- ##
1701 ## Cache variables. ##
1702 ## ---------------- ##
1705 # The following way of writing the cache mishandles newlines in values,
1707 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1708 eval ac_val=\$$ac_var
1712 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1713 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716 _ | IFS | as_nl) ;; #(
1717 *) $as_unset $ac_var ;;
1722 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1723 *${as_nl}ac_space=\ *)
1725 "s/'\''/'\''\\\\'\'''\''/g;
1726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737 ## ----------------- ##
1738 ## Output variables. ##
1739 ## ----------------- ##
1742 for ac_var in $ac_subst_vars
1744 eval ac_val=\$$ac_var
1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 echo "$ac_var='\''$ac_val'\''"
1752 if test -n "$ac_subst_files"; then
1754 ## ------------------- ##
1755 ## File substitutions. ##
1756 ## ------------------- ##
1759 for ac_var in $ac_subst_files
1761 eval ac_val=\$$ac_var
1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 echo "$ac_var='\''$ac_val'\''"
1770 if test -s confdefs.h; then
1780 test "$ac_signal" != 0 &&
1781 echo "$as_me: caught signal $ac_signal"
1782 echo "$as_me: exit $exit_status"
1784 rm -f core *.core core.conftest.* &&
1785 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788 for ac_signal in 1 2 13 15; do
1789 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1793 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1794 rm -f -r conftest* confdefs.h
1796 # Predefined preprocessor variables.
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_NAME "$PACKAGE_NAME"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_STRING "$PACKAGE_STRING"
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1823 # Let the site file select an alternate cache file if it wants to.
1824 # Prefer explicitly selected file to automatically selected ones.
1825 if test -n "$CONFIG_SITE"; then
1826 set x "$CONFIG_SITE"
1827 elif test "x$prefix" != xNONE; then
1828 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830 set x "$ac_default_prefix/share/config.site" \
1831 "$ac_default_prefix/etc/config.site"
1836 if test -r "$ac_site_file"; then
1837 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1838 echo "$as_me: loading site script $ac_site_file" >&6;}
1839 sed 's/^/| /' "$ac_site_file" >&5
1844 if test -r "$cache_file"; then
1845 # Some versions of bash will fail to source /dev/null (special
1846 # files actually), so we avoid doing that.
1847 if test -f "$cache_file"; then
1848 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1849 echo "$as_me: loading cache $cache_file" >&6;}
1851 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1852 *) . "./$cache_file";;
1856 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1857 echo "$as_me: creating cache $cache_file" >&6;}
1861 ac_header_list="$ac_header_list sys/time.h"
1862 ac_header_list="$ac_header_list unistd.h"
1863 ac_func_list="$ac_func_list alarm"
1864 ac_header_list="$ac_header_list utime.h"
1865 # Check that the precious variables saved in the cache have kept the same
1867 ac_cache_corrupted=false
1868 for ac_var in $ac_precious_vars; do
1869 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1870 eval ac_new_set=\$ac_env_${ac_var}_set
1871 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1872 eval ac_new_val=\$ac_env_${ac_var}_value
1873 case $ac_old_set,$ac_new_set in
1875 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1877 ac_cache_corrupted=: ;;
1879 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1880 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1881 ac_cache_corrupted=: ;;
1884 if test "x$ac_old_val" != "x$ac_new_val"; then
1885 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1886 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1887 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1888 echo "$as_me: former value: $ac_old_val" >&2;}
1889 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1890 echo "$as_me: current value: $ac_new_val" >&2;}
1891 ac_cache_corrupted=:
1894 # Pass precious variables to config.status.
1895 if test "$ac_new_set" = set; then
1897 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1898 *) ac_arg=$ac_var=$ac_new_val ;;
1900 case " $ac_configure_args " in
1901 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1902 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1906 if $ac_cache_corrupted; then
1907 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1908 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1909 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1910 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1911 { (exit 1); exit 1; }; }
1931 ac_cpp='$CPP $CPPFLAGS'
1932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1938 # cross-compile macros
1940 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1941 if test -f "$ac_dir/install-sh"; then
1943 ac_install_sh="$ac_aux_dir/install-sh -c"
1945 elif test -f "$ac_dir/install.sh"; then
1947 ac_install_sh="$ac_aux_dir/install.sh -c"
1949 elif test -f "$ac_dir/shtool"; then
1951 ac_install_sh="$ac_aux_dir/shtool install -c"
1955 if test -z "$ac_aux_dir"; then
1956 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1957 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1958 { (exit 1); exit 1; }; }
1961 # These three variables are undocumented and unsupported,
1962 # and are intended to be withdrawn in a future Autoconf release.
1963 # They can cause serious problems if a builder's source tree is in a directory
1964 # whose full name contains unusual characters.
1965 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1966 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1967 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1970 # Make sure we can run config.sub.
1971 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1972 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1973 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1974 { (exit 1); exit 1; }; }
1976 { echo "$as_me:$LINENO: checking build system type" >&5
1977 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1978 if test "${ac_cv_build+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 ac_build_alias=$build_alias
1982 test "x$ac_build_alias" = x &&
1983 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1984 test "x$ac_build_alias" = x &&
1985 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1986 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1987 { (exit 1); exit 1; }; }
1988 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1989 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1990 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1991 { (exit 1); exit 1; }; }
1994 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1995 echo "${ECHO_T}$ac_cv_build" >&6; }
1996 case $ac_cv_build in
1998 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1999 echo "$as_me: error: invalid value of canonical build" >&2;}
2000 { (exit 1); exit 1; }; };;
2003 ac_save_IFS=$IFS; IFS='-'
2009 # Remember, the first character of IFS is used to create $*,
2010 # except with old shells:
2013 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2016 { echo "$as_me:$LINENO: checking host system type" >&5
2017 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2018 if test "${ac_cv_host+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test "x$host_alias" = x; then
2022 ac_cv_host=$ac_cv_build
2024 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2025 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2026 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2027 { (exit 1); exit 1; }; }
2031 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2032 echo "${ECHO_T}$ac_cv_host" >&6; }
2035 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2036 echo "$as_me: error: invalid value of canonical host" >&2;}
2037 { (exit 1); exit 1; }; };;
2040 ac_save_IFS=$IFS; IFS='-'
2046 # Remember, the first character of IFS is used to create $*,
2047 # except with old shells:
2050 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2054 # check existence of the package
2057 # specify output header file
2058 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2064 case "${host_os}" in
2066 ac_default_prefix=/usr/local
2067 CPPFLAGS=-I/usr/local/include
2068 LDFLAGS=-L/usr/local/lib
2071 ac_default_prefix=/usr
2072 if test ${sysconfdir} = '${prefix}/etc'; then
2075 if test ${mandir} = '${prefix}/man'; then
2076 mandir=/usr/share/man
2081 if test ${localstatedir} = '${prefix}/var'; then
2085 BUILD_PLATFORM=${build}
2086 BUILD_CPU=${build_cpu}
2087 BUILD_VENDOR=${build_vendor}
2088 BUILD_OS=${build_os}
2095 HOST_PLATFORM=${host}
2096 HOST_CPU=${host_cpu}
2097 HOST_VENDOR=${host_vendor}
2105 case "${host_os}" in
2126 if test -n "$ac_tool_prefix"; then
2127 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
2128 set dummy ${ac_tool_prefix}uname; ac_word=$2
2129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131 if test "${ac_cv_path_UNAME+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 UNAME=$ac_cv_path_UNAME
2158 if test -n "$UNAME"; then
2159 { echo "$as_me:$LINENO: result: $UNAME" >&5
2160 echo "${ECHO_T}$UNAME" >&6; }
2162 { echo "$as_me:$LINENO: result: no" >&5
2163 echo "${ECHO_T}no" >&6; }
2168 if test -z "$ac_cv_path_UNAME"; then
2170 # Extract the first word of "uname", so it can be a program name with args.
2171 set dummy uname; ac_word=$2
2172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2174 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 case $ac_pt_UNAME in
2179 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2189 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
2201 if test -n "$ac_pt_UNAME"; then
2202 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
2203 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
2205 { echo "$as_me:$LINENO: result: no" >&5
2206 echo "${ECHO_T}no" >&6; }
2209 if test "x$ac_pt_UNAME" = x; then
2212 case $cross_compiling:$ac_tool_warned in
2214 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2215 whose name does not start with the host triplet. If you think this
2216 configuration is useful to you, please write to autoconf@gnu.org." >&5
2217 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2218 whose name does not start with the host triplet. If you think this
2219 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2220 ac_tool_warned=yes ;;
2225 UNAME="$ac_cv_path_UNAME"
2228 if test ! x"${UNAME}" = xNo; then
2229 PBX_OSREV=$(${UNAME} -r)
2233 # This needs to be before any macros that use the C compiler
2235 cat >>confdefs.h <<\_ACEOF
2236 #define _GNU_SOURCE 1
2247 # cross-compile checks
2248 if test "${cross_compiling}" = "yes";
2250 if test -n "$ac_tool_prefix"; then
2251 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2252 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_prog_CC+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 if test -n "$CC"; then
2259 ac_cv_prog_CC="$CC" # Let the user override the test.
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 if test -n "$CC"; then
2280 { echo "$as_me:$LINENO: result: $CC" >&5
2281 echo "${ECHO_T}$CC" >&6; }
2283 { echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6; }
2289 if test -z "$ac_cv_prog_CC"; then
2291 # Extract the first word of "gcc", so it can be a program name with args.
2292 set dummy gcc; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test -n "$ac_ct_CC"; then
2299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_prog_ac_ct_CC="gcc"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2319 if test -n "$ac_ct_CC"; then
2320 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2321 echo "${ECHO_T}$ac_ct_CC" >&6; }
2323 { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2327 if test "x$ac_ct_CC" = x; then
2330 case $cross_compiling:$ac_tool_warned in
2332 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2333 whose name does not start with the host triplet. If you think this
2334 configuration is useful to you, please write to autoconf@gnu.org." >&5
2335 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2336 whose name does not start with the host triplet. If you think this
2337 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2338 ac_tool_warned=yes ;;
2346 if test -n "$ac_tool_prefix"; then
2347 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
2348 set dummy ${ac_tool_prefix}g++; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_CXX+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$CXX"; then
2355 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_CXX="${ac_tool_prefix}g++"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 if test -n "$CXX"; then
2376 { echo "$as_me:$LINENO: result: $CXX" >&5
2377 echo "${ECHO_T}$CXX" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2385 if test -z "$ac_cv_prog_CXX"; then
2387 # Extract the first word of "g++", so it can be a program name with args.
2388 set dummy g++; ac_word=$2
2389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2391 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2394 if test -n "$ac_ct_CXX"; then
2395 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2401 test -z "$as_dir" && as_dir=.
2402 for ac_exec_ext in '' $ac_executable_extensions; do
2403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2404 ac_cv_prog_ac_ct_CXX="g++"
2405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2415 if test -n "$ac_ct_CXX"; then
2416 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2417 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2419 { echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6; }
2423 if test "x$ac_ct_CXX" = x; then
2426 case $cross_compiling:$ac_tool_warned in
2428 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2429 whose name does not start with the host triplet. If you think this
2430 configuration is useful to you, please write to autoconf@gnu.org." >&5
2431 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2432 whose name does not start with the host triplet. If you think this
2433 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2434 ac_tool_warned=yes ;;
2439 CXX="$ac_cv_prog_CXX"
2442 if test -n "$ac_tool_prefix"; then
2443 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2444 set dummy ${ac_tool_prefix}ld; ac_word=$2
2445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2447 if test "${ac_cv_prog_LD+set}" = set; then
2448 echo $ECHO_N "(cached) $ECHO_C" >&6
2450 if test -n "$LD"; then
2451 ac_cv_prog_LD="$LD" # Let the user override the test.
2453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2460 ac_cv_prog_LD="${ac_tool_prefix}ld"
2461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 if test -n "$LD"; then
2472 { echo "$as_me:$LINENO: result: $LD" >&5
2473 echo "${ECHO_T}$LD" >&6; }
2475 { echo "$as_me:$LINENO: result: no" >&5
2476 echo "${ECHO_T}no" >&6; }
2481 if test -z "$ac_cv_prog_LD"; then
2483 # Extract the first word of "ld", so it can be a program name with args.
2484 set dummy ld; ac_word=$2
2485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2487 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2488 echo $ECHO_N "(cached) $ECHO_C" >&6
2490 if test -n "$ac_ct_LD"; then
2491 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2497 test -z "$as_dir" && as_dir=.
2498 for ac_exec_ext in '' $ac_executable_extensions; do
2499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2500 ac_cv_prog_ac_ct_LD="ld"
2501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2511 if test -n "$ac_ct_LD"; then
2512 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2513 echo "${ECHO_T}$ac_ct_LD" >&6; }
2515 { echo "$as_me:$LINENO: result: no" >&5
2516 echo "${ECHO_T}no" >&6; }
2519 if test "x$ac_ct_LD" = x; then
2522 case $cross_compiling:$ac_tool_warned in
2524 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2525 whose name does not start with the host triplet. If you think this
2526 configuration is useful to you, please write to autoconf@gnu.org." >&5
2527 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2528 whose name does not start with the host triplet. If you think this
2529 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2530 ac_tool_warned=yes ;;
2538 if test -n "$ac_tool_prefix"; then
2539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2540 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2543 if test "${ac_cv_prog_RANLIB+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 if test -n "$RANLIB"; then
2547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 test -z "$as_dir" && as_dir=.
2554 for ac_exec_ext in '' $ac_executable_extensions; do
2555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 RANLIB=$ac_cv_prog_RANLIB
2567 if test -n "$RANLIB"; then
2568 { echo "$as_me:$LINENO: result: $RANLIB" >&5
2569 echo "${ECHO_T}$RANLIB" >&6; }
2571 { echo "$as_me:$LINENO: result: no" >&5
2572 echo "${ECHO_T}no" >&6; }
2577 if test -z "$ac_cv_prog_RANLIB"; then
2578 ac_ct_RANLIB=$RANLIB
2579 # Extract the first word of "ranlib", so it can be a program name with args.
2580 set dummy ranlib; ac_word=$2
2581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2583 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2584 echo $ECHO_N "(cached) $ECHO_C" >&6
2586 if test -n "$ac_ct_RANLIB"; then
2587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593 test -z "$as_dir" && as_dir=.
2594 for ac_exec_ext in '' $ac_executable_extensions; do
2595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2596 ac_cv_prog_ac_ct_RANLIB="ranlib"
2597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2607 if test -n "$ac_ct_RANLIB"; then
2608 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2609 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
2611 { echo "$as_me:$LINENO: result: no" >&5
2612 echo "${ECHO_T}no" >&6; }
2615 if test "x$ac_ct_RANLIB" = x; then
2618 case $cross_compiling:$ac_tool_warned in
2620 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2621 whose name does not start with the host triplet. If you think this
2622 configuration is useful to you, please write to autoconf@gnu.org." >&5
2623 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2626 ac_tool_warned=yes ;;
2628 RANLIB=$ac_ct_RANLIB
2631 RANLIB="$ac_cv_prog_RANLIB"
2634 if test -n "$ac_tool_prefix"; then
2635 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
2636 set dummy ${ac_tool_prefix}ar; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_AR+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$AR"; then
2643 ac_cv_prog_AR="$AR" # Let the user override the test.
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir=.
2650 for ac_exec_ext in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_AR="${ac_tool_prefix}ar"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 if test -n "$AR"; then
2664 { echo "$as_me:$LINENO: result: $AR" >&5
2665 echo "${ECHO_T}$AR" >&6; }
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2673 if test -z "$ac_cv_prog_AR"; then
2675 # Extract the first word of "ar", so it can be a program name with args.
2676 set dummy ar; ac_word=$2
2677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2679 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 if test -n "$ac_ct_AR"; then
2683 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_ac_ct_AR="ar"
2693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2702 ac_ct_AR=$ac_cv_prog_ac_ct_AR
2703 if test -n "$ac_ct_AR"; then
2704 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
2705 echo "${ECHO_T}$ac_ct_AR" >&6; }
2707 { echo "$as_me:$LINENO: result: no" >&5
2708 echo "${ECHO_T}no" >&6; }
2711 if test "x$ac_ct_AR" = x; then
2714 case $cross_compiling:$ac_tool_warned in
2716 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2717 whose name does not start with the host triplet. If you think this
2718 configuration is useful to you, please write to autoconf@gnu.org." >&5
2719 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2720 whose name does not start with the host triplet. If you think this
2721 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2722 ac_tool_warned=yes ;;
2732 # Checks for programs.
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then
2744 echo $ECHO_N "(cached) $ECHO_C" >&6
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 if test -n "$CC"; then
2768 { echo "$as_me:$LINENO: result: $CC" >&5
2769 echo "${ECHO_T}$CC" >&6; }
2771 { echo "$as_me:$LINENO: result: no" >&5
2772 echo "${ECHO_T}no" >&6; }
2777 if test -z "$ac_cv_prog_CC"; then
2779 # Extract the first word of "gcc", so it can be a program name with args.
2780 set dummy gcc; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$ac_ct_CC"; then
2787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_ac_ct_CC="gcc"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2807 if test -n "$ac_ct_CC"; then
2808 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2809 echo "${ECHO_T}$ac_ct_CC" >&6; }
2811 { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2815 if test "x$ac_ct_CC" = x; then
2818 case $cross_compiling:$ac_tool_warned in
2820 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2821 whose name does not start with the host triplet. If you think this
2822 configuration is useful to you, please write to autoconf@gnu.org." >&5
2823 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2824 whose name does not start with the host triplet. If you think this
2825 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2826 ac_tool_warned=yes ;;
2834 if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2837 set dummy ${ac_tool_prefix}cc; ac_word=$2
2838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2840 if test "${ac_cv_prog_CC+set}" = set; then
2841 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 if test -n "$CC"; then
2844 ac_cv_prog_CC="$CC" # Let the user override the test.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853 ac_cv_prog_CC="${ac_tool_prefix}cc"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864 if test -n "$CC"; then
2865 { echo "$as_me:$LINENO: result: $CC" >&5
2866 echo "${ECHO_T}$CC" >&6; }
2868 { echo "$as_me:$LINENO: result: no" >&5
2869 echo "${ECHO_T}no" >&6; }
2875 if test -z "$CC"; then
2876 # Extract the first word of "cc", so it can be a program name with args.
2877 set dummy cc; ac_word=$2
2878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2880 if test "${ac_cv_prog_CC+set}" = set; then
2881 echo $ECHO_N "(cached) $ECHO_C" >&6
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2894 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2895 ac_prog_rejected=yes
2899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2906 if test $ac_prog_rejected = yes; then
2907 # We found a bogon in the path, so make sure we never use it.
2908 set dummy $ac_cv_prog_CC
2910 if test $# != 0; then
2911 # We chose a different compiler from the bogus one.
2912 # However, it has the same basename, so the bogon will be chosen
2913 # first if we set CC to just the basename; use the full file name.
2915 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2921 if test -n "$CC"; then
2922 { echo "$as_me:$LINENO: result: $CC" >&5
2923 echo "${ECHO_T}$CC" >&6; }
2925 { echo "$as_me:$LINENO: result: no" >&5
2926 echo "${ECHO_T}no" >&6; }
2931 if test -z "$CC"; then
2932 if test -n "$ac_tool_prefix"; then
2933 for ac_prog in cl.exe
2935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2936 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_CC+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2942 if test -n "$CC"; then
2943 ac_cv_prog_CC="$CC" # Let the user override the test.
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963 if test -n "$CC"; then
2964 { echo "$as_me:$LINENO: result: $CC" >&5
2965 echo "${ECHO_T}$CC" >&6; }
2967 { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2972 test -n "$CC" && break
2975 if test -z "$CC"; then
2977 for ac_prog in cl.exe
2979 # Extract the first word of "$ac_prog", so it can be a program name with args.
2980 set dummy $ac_prog; ac_word=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$ac_ct_CC"; then
2987 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir=.
2994 for ac_exec_ext in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_ac_ct_CC="$ac_prog"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3007 if test -n "$ac_ct_CC"; then
3008 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3009 echo "${ECHO_T}$ac_ct_CC" >&6; }
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3016 test -n "$ac_ct_CC" && break
3019 if test "x$ac_ct_CC" = x; then
3022 case $cross_compiling:$ac_tool_warned in
3024 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3025 whose name does not start with the host triplet. If you think this
3026 configuration is useful to you, please write to autoconf@gnu.org." >&5
3027 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3028 whose name does not start with the host triplet. If you think this
3029 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3030 ac_tool_warned=yes ;;
3039 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3040 See \`config.log' for more details." >&5
3041 echo "$as_me: error: no acceptable C compiler found in \$PATH
3042 See \`config.log' for more details." >&2;}
3043 { (exit 1); exit 1; }; }
3045 # Provide some information about the compiler.
3046 echo "$as_me:$LINENO: checking for C compiler version" >&5
3047 ac_compiler=`set X $ac_compile; echo $2`
3048 { (ac_try="$ac_compiler --version >&5"
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_compiler --version >&5") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }
3058 { (ac_try="$ac_compiler -v >&5"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compiler -v >&5") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }
3068 { (ac_try="$ac_compiler -V >&5"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compiler -V >&5") 2>&5
3076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077 (exit $ac_status); }
3079 cat >conftest.$ac_ext <<_ACEOF
3082 cat confdefs.h >>conftest.$ac_ext
3083 cat >>conftest.$ac_ext <<_ACEOF
3084 /* end confdefs.h. */
3094 ac_clean_files_save=$ac_clean_files
3095 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3096 # Try to create an executable without -o first, disregard a.out.
3097 # It will help us diagnose broken compilers, and finding out an intuition
3099 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3100 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3101 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3103 # List of possible output files, starting from the most likely.
3104 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3105 # only as a last resort. b.out is created by i960 compilers.
3106 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3108 # The IRIX 6 linker writes into existing files which may not be
3109 # executable, retaining their permissions. Remove them first so a
3110 # subsequent execution test works.
3112 for ac_file in $ac_files
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3121 if { (ac_try="$ac_link_default"
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_link_default") 2>&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; then
3131 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3132 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3133 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3134 # so that the user can short-circuit this test for compilers unknown to
3136 for ac_file in $ac_files ''
3138 test -f "$ac_file" || continue
3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3143 # We found the default executable, but exeext='' is most
3147 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3149 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3151 # We set ac_cv_exeext here because the later test for it is not
3152 # safe: cross compilers may not add the suffix if given an `-o'
3153 # argument, so we may need to know it at that point already.
3154 # Even if this section looks crufty: it has the advantage of
3161 test "$ac_cv_exeext" = no && ac_cv_exeext=
3167 { echo "$as_me:$LINENO: result: $ac_file" >&5
3168 echo "${ECHO_T}$ac_file" >&6; }
3169 if test -z "$ac_file"; then
3170 echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3173 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3174 See \`config.log' for more details." >&5
3175 echo "$as_me: error: C compiler cannot create executables
3176 See \`config.log' for more details." >&2;}
3177 { (exit 77); exit 77; }; }
3180 ac_exeext=$ac_cv_exeext
3182 # Check that the compiler produces executables we can run. If not, either
3183 # the compiler is broken, or we cross compile.
3184 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3185 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3186 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3187 # If not cross compiling, check that we can run a simple program.
3188 if test "$cross_compiling" != yes; then
3189 if { ac_try='./$ac_file'
3190 { (case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195 (eval "$ac_try") 2>&5
3197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198 (exit $ac_status); }; }; then
3201 if test "$cross_compiling" = maybe; then
3204 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3205 If you meant to cross compile, use \`--host'.
3206 See \`config.log' for more details." >&5
3207 echo "$as_me: error: cannot run C compiled programs.
3208 If you meant to cross compile, use \`--host'.
3209 See \`config.log' for more details." >&2;}
3210 { (exit 1); exit 1; }; }
3214 { echo "$as_me:$LINENO: result: yes" >&5
3215 echo "${ECHO_T}yes" >&6; }
3217 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3218 ac_clean_files=$ac_clean_files_save
3219 # Check that the compiler produces executables we can run. If not, either
3220 # the compiler is broken, or we cross compile.
3221 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3222 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3223 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3224 echo "${ECHO_T}$cross_compiling" >&6; }
3226 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3227 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3228 if { (ac_try="$ac_link"
3230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_link") 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }; then
3238 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3239 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3240 # work properly (i.e., refer to `conftest.exe'), while it won't with
3242 for ac_file in conftest.exe conftest conftest.*; do
3243 test -f "$ac_file" || continue
3245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3246 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3252 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3253 See \`config.log' for more details." >&5
3254 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3255 See \`config.log' for more details." >&2;}
3256 { (exit 1); exit 1; }; }
3259 rm -f conftest$ac_cv_exeext
3260 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3261 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3263 rm -f conftest.$ac_ext
3264 EXEEXT=$ac_cv_exeext
3266 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3267 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3268 if test "${ac_cv_objext+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3286 rm -f conftest.o conftest.obj
3287 if { (ac_try="$ac_compile"
3289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3290 *) ac_try_echo=$ac_try;;
3292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3293 (eval "$ac_compile") 2>&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); }; then
3297 for ac_file in conftest.o conftest.obj conftest.*; do
3298 test -f "$ac_file" || continue;
3300 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3301 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3306 echo "$as_me: failed program was:" >&5
3307 sed 's/^/| /' conftest.$ac_ext >&5
3309 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3310 See \`config.log' for more details." >&5
3311 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3312 See \`config.log' for more details." >&2;}
3313 { (exit 1); exit 1; }; }
3316 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3318 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3319 echo "${ECHO_T}$ac_cv_objext" >&6; }
3320 OBJEXT=$ac_cv_objext
3322 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3323 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3324 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 cat >conftest.$ac_ext <<_ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3345 rm -f conftest.$ac_objext
3346 if { (ac_try="$ac_compile"
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_compile") 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } && {
3359 test -z "$ac_c_werror_flag" ||
3360 test ! -s conftest.err
3361 } && test -s conftest.$ac_objext; then
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3374 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3375 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3376 GCC=`test $ac_compiler_gnu = yes && echo yes`
3377 ac_test_CFLAGS=${CFLAGS+set}
3378 ac_save_CFLAGS=$CFLAGS
3379 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3380 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_cc_g+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_save_c_werror_flag=$ac_c_werror_flag
3385 ac_c_werror_flag=yes
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3403 rm -f conftest.$ac_objext
3404 if { (ac_try="$ac_compile"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_compile") 2>conftest.er1
3412 grep -v '^ *+' conftest.er1 >conftest.err
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } && {
3417 test -z "$ac_c_werror_flag" ||
3418 test ! -s conftest.err
3419 } && test -s conftest.$ac_objext; then
3422 echo "$as_me: failed program was:" >&5
3423 sed 's/^/| /' conftest.$ac_ext >&5
3426 cat >conftest.$ac_ext <<_ACEOF
3429 cat confdefs.h >>conftest.$ac_ext
3430 cat >>conftest.$ac_ext <<_ACEOF
3431 /* end confdefs.h. */
3441 rm -f conftest.$ac_objext
3442 if { (ac_try="$ac_compile"
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_compile") 2>conftest.er1
3450 grep -v '^ *+' conftest.er1 >conftest.err
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } && {
3455 test -z "$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 } && test -s conftest.$ac_objext; then
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 ac_c_werror_flag=$ac_save_c_werror_flag
3465 cat >conftest.$ac_ext <<_ACEOF
3468 cat confdefs.h >>conftest.$ac_ext
3469 cat >>conftest.$ac_ext <<_ACEOF
3470 /* end confdefs.h. */
3480 rm -f conftest.$ac_objext
3481 if { (ac_try="$ac_compile"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3487 (eval "$ac_compile") 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } && {
3494 test -z "$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3496 } && test -s conftest.$ac_objext; then
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3512 ac_c_werror_flag=$ac_save_c_werror_flag
3514 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3515 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3516 if test "$ac_test_CFLAGS" = set; then
3517 CFLAGS=$ac_save_CFLAGS
3518 elif test $ac_cv_prog_cc_g = yes; then
3519 if test "$GCC" = yes; then
3525 if test "$GCC" = yes; then
3531 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3532 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3533 if test "${ac_cv_prog_cc_c89+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3536 ac_cv_prog_cc_c89=no
3538 cat >conftest.$ac_ext <<_ACEOF
3541 cat confdefs.h >>conftest.$ac_ext
3542 cat >>conftest.$ac_ext <<_ACEOF
3543 /* end confdefs.h. */
3546 #include <sys/types.h>
3547 #include <sys/stat.h>
3548 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3549 struct buf { int x; };
3550 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3551 static char *e (p, i)
3557 static char *f (char * (*g) (char **, int), char **p, ...)
3562 s = g (p, va_arg (v,int));
3567 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3568 function prototypes and stuff, but not '\xHH' hex character constants.
3569 These don't provoke an error unfortunately, instead are silently treated
3570 as 'x'. The following induces an error, until -std is added to get
3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3572 array size at least. It's necessary to write '\x00'==0 to get something
3573 that's true only with -std. */
3574 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3576 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3579 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3581 int test (int i, double x);
3582 struct s1 {int (*f) (int a);};
3583 struct s2 {int (*f) (double a);};
3584 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3590 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3595 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3598 CC="$ac_save_CC $ac_arg"
3599 rm -f conftest.$ac_objext
3600 if { (ac_try="$ac_compile"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_compile") 2>conftest.er1
3608 grep -v '^ *+' conftest.er1 >conftest.err
3610 cat conftest.err >&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } && {
3613 test -z "$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 } && test -s conftest.$ac_objext; then
3616 ac_cv_prog_cc_c89=$ac_arg
3618 echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3624 rm -f core conftest.err conftest.$ac_objext
3625 test "x$ac_cv_prog_cc_c89" != "xno" && break
3627 rm -f conftest.$ac_ext
3632 case "x$ac_cv_prog_cc_c89" in
3634 { echo "$as_me:$LINENO: result: none needed" >&5
3635 echo "${ECHO_T}none needed" >&6; } ;;
3637 { echo "$as_me:$LINENO: result: unsupported" >&5
3638 echo "${ECHO_T}unsupported" >&6; } ;;
3640 CC="$CC $ac_cv_prog_cc_c89"
3641 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3642 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3647 ac_cpp='$CPP $CPPFLAGS'
3648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3653 ac_cpp='$CXXCPP $CPPFLAGS'
3654 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3655 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3656 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3657 if test -z "$CXX"; then
3658 if test -n "$CCC"; then
3661 if test -n "$ac_tool_prefix"; then
3662 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3668 if test "${ac_cv_prog_CXX+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3671 if test -n "$CXX"; then
3672 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 if test -n "$CXX"; then
3693 { echo "$as_me:$LINENO: result: $CXX" >&5
3694 echo "${ECHO_T}$CXX" >&6; }
3696 { echo "$as_me:$LINENO: result: no" >&5
3697 echo "${ECHO_T}no" >&6; }
3701 test -n "$CXX" && break
3704 if test -z "$CXX"; then
3706 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3708 # Extract the first word of "$ac_prog", so it can be a program name with args.
3709 set dummy $ac_prog; ac_word=$2
3710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3712 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 if test -n "$ac_ct_CXX"; then
3716 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3725 ac_cv_prog_ac_ct_CXX="$ac_prog"
3726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3735 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3736 if test -n "$ac_ct_CXX"; then
3737 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3738 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3740 { echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6; }
3745 test -n "$ac_ct_CXX" && break
3748 if test "x$ac_ct_CXX" = x; then
3751 case $cross_compiling:$ac_tool_warned in
3753 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3754 whose name does not start with the host triplet. If you think this
3755 configuration is useful to you, please write to autoconf@gnu.org." >&5
3756 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3757 whose name does not start with the host triplet. If you think this
3758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3759 ac_tool_warned=yes ;;
3767 # Provide some information about the compiler.
3768 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3769 ac_compiler=`set X $ac_compile; echo $2`
3770 { (ac_try="$ac_compiler --version >&5"
3772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773 *) ac_try_echo=$ac_try;;
3775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3776 (eval "$ac_compiler --version >&5") 2>&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); }
3780 { (ac_try="$ac_compiler -v >&5"
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_compiler -v >&5") 2>&5
3788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3789 (exit $ac_status); }
3790 { (ac_try="$ac_compiler -V >&5"
3792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_compiler -V >&5") 2>&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }
3801 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3802 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3803 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 cat >conftest.$ac_ext <<_ACEOF
3809 cat confdefs.h >>conftest.$ac_ext
3810 cat >>conftest.$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3824 rm -f conftest.$ac_objext
3825 if { (ac_try="$ac_compile"
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3831 (eval "$ac_compile") 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } && {
3838 test -z "$ac_cxx_werror_flag" ||
3839 test ! -s conftest.err
3840 } && test -s conftest.$ac_objext; then
3843 echo "$as_me: failed program was:" >&5
3844 sed 's/^/| /' conftest.$ac_ext >&5
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3850 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3853 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3854 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3855 GXX=`test $ac_compiler_gnu = yes && echo yes`
3856 ac_test_CXXFLAGS=${CXXFLAGS+set}
3857 ac_save_CXXFLAGS=$CXXFLAGS
3858 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3859 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3860 if test "${ac_cv_prog_cxx_g+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3864 ac_cxx_werror_flag=yes
3867 cat >conftest.$ac_ext <<_ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h. */
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3889 (eval "$ac_compile") 2>conftest.er1
3891 grep -v '^ *+' conftest.er1 >conftest.err
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } && {
3896 test -z "$ac_cxx_werror_flag" ||
3897 test ! -s conftest.err
3898 } && test -s conftest.$ac_objext; then
3899 ac_cv_prog_cxx_g=yes
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3920 rm -f conftest.$ac_objext
3921 if { (ac_try="$ac_compile"
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_compile") 2>conftest.er1
3929 grep -v '^ *+' conftest.er1 >conftest.err
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } && {
3934 test -z "$ac_cxx_werror_flag" ||
3935 test ! -s conftest.err
3936 } && test -s conftest.$ac_objext; then
3939 echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3944 cat >conftest.$ac_ext <<_ACEOF
3947 cat confdefs.h >>conftest.$ac_ext
3948 cat >>conftest.$ac_ext <<_ACEOF
3949 /* end confdefs.h. */
3959 rm -f conftest.$ac_objext
3960 if { (ac_try="$ac_compile"
3962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3963 *) ac_try_echo=$ac_try;;
3965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3966 (eval "$ac_compile") 2>conftest.er1
3968 grep -v '^ *+' conftest.er1 >conftest.err
3970 cat conftest.err >&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); } && {
3973 test -z "$ac_cxx_werror_flag" ||
3974 test ! -s conftest.err
3975 } && test -s conftest.$ac_objext; then
3976 ac_cv_prog_cxx_g=yes
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3993 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3994 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3995 if test "$ac_test_CXXFLAGS" = set; then
3996 CXXFLAGS=$ac_save_CXXFLAGS
3997 elif test $ac_cv_prog_cxx_g = yes; then
3998 if test "$GXX" = yes; then
4004 if test "$GXX" = yes; then
4011 ac_cpp='$CPP $CPPFLAGS'
4012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017 ac_cpp='$CPP $CPPFLAGS'
4018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4021 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4022 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4023 # On Suns, sometimes $CPP names a directory.
4024 if test -n "$CPP" && test -d "$CPP"; then
4027 if test -z "$CPP"; then
4028 if test "${ac_cv_prog_CPP+set}" = set; then
4029 echo $ECHO_N "(cached) $ECHO_C" >&6
4031 # Double quotes because CPP needs to be expanded
4032 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4035 for ac_c_preproc_warn_flag in '' yes
4037 # Use a header file that comes with gcc, so configuring glibc
4038 # with a fresh cross-compiler works.
4039 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4040 # <limits.h> exists even on freestanding compilers.
4041 # On the NeXT, cc -E runs the code through the compiler's parser,
4042 # not just through cpp. "Syntax error" is here to catch this case.
4043 cat >conftest.$ac_ext <<_ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4050 # include <limits.h>
4052 # include <assert.h>
4056 if { (ac_try="$ac_cpp conftest.$ac_ext"
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4064 grep -v '^ *+' conftest.er1 >conftest.err
4066 cat conftest.err >&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } >/dev/null && {
4069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4070 test ! -s conftest.err
4074 echo "$as_me: failed program was:" >&5
4075 sed 's/^/| /' conftest.$ac_ext >&5
4077 # Broken: fails on valid input.
4081 rm -f conftest.err conftest.$ac_ext
4083 # OK, works on sane cases. Now check whether nonexistent headers
4084 # can be detected and how.
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 #include <ac_nonexistent.h>
4093 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.er1
4101 grep -v '^ *+' conftest.er1 >conftest.err
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } >/dev/null && {
4106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4109 # Broken: success on invalid input.
4112 echo "$as_me: failed program was:" >&5
4113 sed 's/^/| /' conftest.$ac_ext >&5
4115 # Passes both tests.
4120 rm -f conftest.err conftest.$ac_ext
4123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4124 rm -f conftest.err conftest.$ac_ext
4125 if $ac_preproc_ok; then
4137 { echo "$as_me:$LINENO: result: $CPP" >&5
4138 echo "${ECHO_T}$CPP" >&6; }
4140 for ac_c_preproc_warn_flag in '' yes
4142 # Use a header file that comes with gcc, so configuring glibc
4143 # with a fresh cross-compiler works.
4144 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4145 # <limits.h> exists even on freestanding compilers.
4146 # On the NeXT, cc -E runs the code through the compiler's parser,
4147 # not just through cpp. "Syntax error" is here to catch this case.
4148 cat >conftest.$ac_ext <<_ACEOF
4151 cat confdefs.h >>conftest.$ac_ext
4152 cat >>conftest.$ac_ext <<_ACEOF
4153 /* end confdefs.h. */
4155 # include <limits.h>
4157 # include <assert.h>
4161 if { (ac_try="$ac_cpp conftest.$ac_ext"
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); } >/dev/null && {
4174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 # Broken: fails on valid input.
4186 rm -f conftest.err conftest.$ac_ext
4188 # OK, works on sane cases. Now check whether nonexistent headers
4189 # can be detected and how.
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <ac_nonexistent.h>
4198 if { (ac_try="$ac_cpp conftest.$ac_ext"
4200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4201 *) ac_try_echo=$ac_try;;
4203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4206 grep -v '^ *+' conftest.er1 >conftest.err
4208 cat conftest.err >&5
4209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null && {
4211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4214 # Broken: success on invalid input.
4217 echo "$as_me: failed program was:" >&5
4218 sed 's/^/| /' conftest.$ac_ext >&5
4220 # Passes both tests.
4225 rm -f conftest.err conftest.$ac_ext
4228 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4229 rm -f conftest.err conftest.$ac_ext
4230 if $ac_preproc_ok; then
4233 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4234 See \`config.log' for more details." >&5
4235 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4236 See \`config.log' for more details." >&2;}
4237 { (exit 1); exit 1; }; }
4241 ac_cpp='$CPP $CPPFLAGS'
4242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4247 ac_cpp='$CXXCPP $CPPFLAGS'
4248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4251 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4252 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4253 if test -z "$CXXCPP"; then
4254 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4255 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 # Double quotes because CXXCPP needs to be expanded
4258 for CXXCPP in "$CXX -E" "/lib/cpp"
4261 for ac_cxx_preproc_warn_flag in '' yes
4263 # Use a header file that comes with gcc, so configuring glibc
4264 # with a fresh cross-compiler works.
4265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4266 # <limits.h> exists even on freestanding compilers.
4267 # On the NeXT, cc -E runs the code through the compiler's parser,
4268 # not just through cpp. "Syntax error" is here to catch this case.
4269 cat >conftest.$ac_ext <<_ACEOF
4272 cat confdefs.h >>conftest.$ac_ext
4273 cat >>conftest.$ac_ext <<_ACEOF
4274 /* end confdefs.h. */
4276 # include <limits.h>
4278 # include <assert.h>
4282 if { (ac_try="$ac_cpp conftest.$ac_ext"
4284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } >/dev/null && {
4295 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4296 test ! -s conftest.err
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 # Broken: fails on valid input.
4307 rm -f conftest.err conftest.$ac_ext
4309 # OK, works on sane cases. Now check whether nonexistent headers
4310 # can be detected and how.
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317 #include <ac_nonexistent.h>
4319 if { (ac_try="$ac_cpp conftest.$ac_ext"
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4327 grep -v '^ *+' conftest.er1 >conftest.err
4329 cat conftest.err >&5
4330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4331 (exit $ac_status); } >/dev/null && {
4332 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4333 test ! -s conftest.err
4335 # Broken: success on invalid input.
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4341 # Passes both tests.
4346 rm -f conftest.err conftest.$ac_ext
4349 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4350 rm -f conftest.err conftest.$ac_ext
4351 if $ac_preproc_ok; then
4356 ac_cv_prog_CXXCPP=$CXXCPP
4359 CXXCPP=$ac_cv_prog_CXXCPP
4361 ac_cv_prog_CXXCPP=$CXXCPP
4363 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4364 echo "${ECHO_T}$CXXCPP" >&6; }
4366 for ac_cxx_preproc_warn_flag in '' yes
4368 # Use a header file that comes with gcc, so configuring glibc
4369 # with a fresh cross-compiler works.
4370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4371 # <limits.h> exists even on freestanding compilers.
4372 # On the NeXT, cc -E runs the code through the compiler's parser,
4373 # not just through cpp. "Syntax error" is here to catch this case.
4374 cat >conftest.$ac_ext <<_ACEOF
4377 cat confdefs.h >>conftest.$ac_ext
4378 cat >>conftest.$ac_ext <<_ACEOF
4379 /* end confdefs.h. */
4381 # include <limits.h>
4383 # include <assert.h>
4387 if { (ac_try="$ac_cpp conftest.$ac_ext"
4389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4390 *) ac_try_echo=$ac_try;;
4392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } >/dev/null && {
4400 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4401 test ! -s conftest.err
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 # Broken: fails on valid input.
4412 rm -f conftest.err conftest.$ac_ext
4414 # OK, works on sane cases. Now check whether nonexistent headers
4415 # can be detected and how.
4416 cat >conftest.$ac_ext <<_ACEOF
4419 cat confdefs.h >>conftest.$ac_ext
4420 cat >>conftest.$ac_ext <<_ACEOF
4421 /* end confdefs.h. */
4422 #include <ac_nonexistent.h>
4424 if { (ac_try="$ac_cpp conftest.$ac_ext"
4426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4427 *) ac_try_echo=$ac_try;;
4429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4432 grep -v '^ *+' conftest.er1 >conftest.err
4434 cat conftest.err >&5
4435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4436 (exit $ac_status); } >/dev/null && {
4437 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4438 test ! -s conftest.err
4440 # Broken: success on invalid input.
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 # Passes both tests.
4451 rm -f conftest.err conftest.$ac_ext
4454 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4455 rm -f conftest.err conftest.$ac_ext
4456 if $ac_preproc_ok; then
4459 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4460 See \`config.log' for more details." >&5
4461 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4462 See \`config.log' for more details." >&2;}
4463 { (exit 1); exit 1; }; }
4467 ac_cpp='$CPP $CPPFLAGS'
4468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4472 # This macro is just copied into our local acinclude.m4 from libtool.m4 so that
4473 # the developers regenerating the configure script don't have to install libtool.
4474 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4475 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4476 if test "${ac_cv_path_SED+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4480 for ac_i in 1 2 3 4 5 6 7; do
4481 ac_script="$ac_script$as_nl$ac_script"
4483 echo "$ac_script" | sed 99q >conftest.sed
4484 $as_unset ac_script || ac_script=
4485 # Extract the first word of "sed gsed" to use in msg output
4486 if test -z "$SED"; then
4487 set dummy sed gsed; ac_prog_name=$2
4488 if test "${ac_cv_path_SED+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4491 ac_path_SED_found=false
4492 # Loop through the user's path and test for each of PROGNAME-LIST
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497 test -z "$as_dir" && as_dir=.
4498 for ac_prog in sed gsed; do
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4501 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4502 # Check for GNU ac_path_SED and select it if it is found.
4503 # Check for GNU $ac_path_SED
4504 case `"$ac_path_SED" --version 2>&1` in
4506 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4509 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4512 cat "conftest.in" "conftest.in" >"conftest.tmp"
4513 mv "conftest.tmp" "conftest.in"
4514 cp "conftest.in" "conftest.nl"
4515 echo '' >> "conftest.nl"
4516 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4518 ac_count=`expr $ac_count + 1`
4519 if test $ac_count -gt ${ac_path_SED_max-0}; then
4520 # Best one so far, save it but keep looking for a better one
4521 ac_cv_path_SED="$ac_path_SED"
4522 ac_path_SED_max=$ac_count
4524 # 10*(2^10) chars as input seems more than enough
4525 test $ac_count -gt 10 && break
4527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531 $ac_path_SED_found && break 3
4541 SED="$ac_cv_path_SED"
4542 if test -z "$SED"; then
4543 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4544 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4545 { (exit 1); exit 1; }; }
4553 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4554 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4555 SED="$ac_cv_path_SED"
4558 { echo "$as_me:$LINENO: checking for egrep" >&5
4559 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4560 if test "${ac_cv_prog_egrep+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4563 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4564 then ac_cv_prog_egrep='grep -E'
4565 else ac_cv_prog_egrep='egrep'
4568 { echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4569 echo "${ECHO_T}$ac_cv_prog_egrep" >&6; }
4570 EGREP=$ac_cv_prog_egrep
4574 # Check whether --with-gnu-ld was given.
4575 if test "${with_gnu_ld+set}" = set; then
4576 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4582 if test "$GCC" = yes; then
4583 # Check if gcc -print-prog-name=ld gives a path.
4584 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4585 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4588 # gcc leaves a trailing carriage return which upsets mingw
4589 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4591 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4594 # Accept absolute paths.
4596 re_direlt='/[^/][^/]*/\.\./'
4597 # Canonicalize the pathname of ld
4598 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4599 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4600 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4602 test -z "$LD" && LD="$ac_prog"
4605 # If it fails, then pretend we aren't using GCC.
4609 # If it is relative, then search for the first ld in PATH.
4613 elif test "$with_gnu_ld" = yes; then
4614 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4615 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4617 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4618 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4620 if test "${lt_cv_path_LD+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 if test -z "$LD"; then
4624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4625 for ac_dir in $PATH; do
4627 test -z "$ac_dir" && ac_dir=.
4628 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4629 lt_cv_path_LD="$ac_dir/$ac_prog"
4630 # Check to see if the program is GNU ld. I'd rather use --version,
4631 # but apparently some variants of GNU ld only accept -v.
4632 # Break only if it was the GNU/non-GNU ld that we prefer.
4633 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4634 *GNU* | *'with BFD'*)
4635 test "$with_gnu_ld" != no && break
4638 test "$with_gnu_ld" != yes && break
4645 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4650 if test -n "$LD"; then
4651 { echo "$as_me:$LINENO: result: $LD" >&5
4652 echo "${ECHO_T}$LD" >&6; }
4654 { echo "$as_me:$LINENO: result: no" >&5
4655 echo "${ECHO_T}no" >&6; }
4657 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4658 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4659 { (exit 1); exit 1; }; }
4660 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4661 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4662 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4663 echo $ECHO_N "(cached) $ECHO_C" >&6
4665 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4666 case `$LD -v 2>&1 </dev/null` in
4667 *GNU* | *'with BFD'*)
4668 lt_cv_prog_gnu_ld=yes
4671 lt_cv_prog_gnu_ld=no
4675 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4676 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4677 with_gnu_ld=$lt_cv_prog_gnu_ld
4680 for ac_prog in gawk mawk nawk awk
4682 # Extract the first word of "$ac_prog", so it can be a program name with args.
4683 set dummy $ac_prog; ac_word=$2
4684 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4685 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4686 if test "${ac_cv_prog_AWK+set}" = set; then
4687 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 if test -n "$AWK"; then
4690 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR