2 # From configure.ac Revision: 182847 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk 1.6.
6 # Report bugs to <www.asterisk.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
14 ## --------------------- ##
15 ## M4sh Initialization. ##
16 ## --------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
28 case `(set -o) 2>/dev/null` in
29 *posix*) set -o posix ;;
38 # Avoid depending upon Character Ranges.
39 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
40 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42 as_cr_digits='0123456789'
43 as_cr_alnum=$as_cr_Letters$as_cr_digits
45 # The user is always right.
46 if test "${PATH_SEPARATOR+set}" != set; then
47 echo "#! /bin/sh" >conf$$.sh
48 echo "exit 0" >>conf$$.sh
50 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
58 # Support unset when possible.
59 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
67 # We need space, tab and new line, in precisely that order. Quoting is
68 # there to prevent editors from complaining about space-tab.
69 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
70 # splitting by setting IFS to empty value.)
75 # Find who we are. Look in the path if we contain no directory separator.
77 *[\\/]* ) as_myself=$0 ;;
78 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
82 test -z "$as_dir" && as_dir=.
83 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
89 # We did not find ourselves, most probably we were run as `sh COMMAND'
90 # in which case we are not to be found in the path.
91 if test "x$as_myself" = x; then
94 if test ! -f "$as_myself"; then
95 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
99 # Work around bugs in pre-3.0 UWIN ksh.
100 for as_var in ENV MAIL MAILPATH
101 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
109 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
110 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
113 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
114 eval $as_var=C; export $as_var
116 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
120 # Required to use basename.
121 if expr a : '\(a\)' >/dev/null 2>&1 &&
122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
135 # Name of the executable.
136 as_me=`$as_basename -- "$0" ||
137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
138 X"$0" : 'X\(//\)$' \| \
139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
141 sed '/^.*\/\([^/][^/]*\)\/*$/{
159 if test "x$CONFIG_SHELL" = x; then
160 if (eval ":") 2>/dev/null; then
166 if test $as_have_required = yes && (eval ":
176 as_func_ret_success () {
179 as_func_ret_failure () {
184 if as_func_success; then
188 echo as_func_success failed.
191 if as_func_failure; then
193 echo as_func_failure succeeded.
196 if as_func_ret_success; then
200 echo as_func_ret_success failed.
203 if as_func_ret_failure; then
205 echo as_func_ret_failure succeeded.
208 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
212 echo positional parameters were not saved.
215 test \$exitcode = 0) || { (exit 1); exit 1; }
220 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
221 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
222 ") 2> /dev/null; then
226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
227 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
230 test -z "$as_dir" && as_dir=.
233 for as_base in sh bash ksh sh5; do
234 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
241 for as_shell in $as_candidate_shells $SHELL; do
242 # Try only shells that exist, to save several forks.
243 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
244 { ("$as_shell") 2> /dev/null <<\_ASEOF
245 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
248 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
249 # is contrary to our usage. Disable this feature.
250 alias -g '${1+"$@"}'='"$@"'
253 case `(set -o) 2>/dev/null` in
254 *posix*) set -o posix ;;
263 CONFIG_SHELL=$as_shell
265 if { "$as_shell" 2> /dev/null <<\_ASEOF
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
269 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
274 case `(set -o) 2>/dev/null` in
275 *posix*) set -o posix ;;
291 as_func_ret_success () {
294 as_func_ret_failure () {
299 if as_func_success; then
303 echo as_func_success failed.
306 if as_func_failure; then
308 echo as_func_failure succeeded.
311 if as_func_ret_success; then
315 echo as_func_ret_success failed.
318 if as_func_ret_failure; then
320 echo as_func_ret_failure succeeded.
323 if ( set x; as_func_ret_success y && test x = "$1" ); then
327 echo positional parameters were not saved.
330 test $exitcode = 0) || { (exit 1); exit 1; }
335 test "x$as_lineno_1" != "x$as_lineno_2" &&
336 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
347 if test "x$CONFIG_SHELL" != x; then
348 for as_var in BASH_ENV ENV
349 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
352 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
356 if test $as_have_required = no; then
357 echo This script requires a shell more modern than all the
358 echo shells that I found on your system. Please install a
359 echo modern shell, or manually run the script under such a
360 echo shell if you do have one.
361 { (exit 1); exit 1; }
371 (eval "as_func_return () {
380 as_func_ret_success () {
383 as_func_ret_failure () {
388 if as_func_success; then
392 echo as_func_success failed.
395 if as_func_failure; then
397 echo as_func_failure succeeded.
400 if as_func_ret_success; then
404 echo as_func_ret_success failed.
407 if as_func_ret_failure; then
409 echo as_func_ret_failure succeeded.
412 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
416 echo positional parameters were not saved.
419 test \$exitcode = 0") || {
420 echo No shell found that supports shell functions.
421 echo Please tell autoconf@gnu.org about your system,
422 echo including any error possibly output before this
430 test "x$as_lineno_1" != "x$as_lineno_2" &&
431 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
433 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
434 # uniformly replaced by the line number. The first 'sed' inserts a
435 # line-number line after each line using $LINENO; the second 'sed'
436 # does the real work. The second script uses 'N' to pair each
437 # line-number line with the line containing $LINENO, and appends
438 # trailing '-' during substitution so that $LINENO is not a special
440 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
441 # scripts with optimization help from Paolo Bonzini. Blame Lee
442 # E. McMahon (1931-1989) for sed's syntax. :-)
454 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 chmod +x "$as_me.lineno" ||
459 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
460 { (exit 1); exit 1; }; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
466 # Exit status is that of the last command.
471 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
477 ECHO_C= ECHO_N= ECHO_T=
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
488 if expr a : '\(a\)' >/dev/null 2>&1 &&
489 test "X`expr 00001 : '.*\(...\)'`" = X001; then
495 rm -f conf$$ conf$$.exe conf$$.file
496 if test -d conf$$.dir; then
497 rm -f conf$$.dir/conf$$.file
503 if ln -s conf$$.file conf$$ 2>/dev/null; then
505 # ... but there are two gotchas:
506 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
507 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
508 # In both cases, we have to default to `cp -p'.
509 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
511 elif ln conf$$.file conf$$ 2>/dev/null; then
516 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
517 rmdir conf$$.dir 2>/dev/null
519 if mkdir -p . 2>/dev/null; then
522 test -d ./-p && rmdir ./-p
526 if test -x / >/dev/null 2>&1; then
529 if ls -dL / >/dev/null 2>&1; then
536 if test -d "$1"; then
542 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
543 ???[sx]*):;;*)false;;esac;fi
547 as_executable_p=$as_test_x
549 # Sed expression to map a string onto a valid CPP name.
550 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552 # Sed expression to map a string onto a valid variable name.
553 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 exec 7<&0 </dev/null 6>&1
560 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
561 # so uname gets run too.
562 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567 ac_default_prefix=/usr/local
569 ac_config_libobj_dir=.
575 SHELL=${CONFIG_SHELL-/bin/sh}
577 # Identity of this package.
578 PACKAGE_NAME='asterisk'
579 PACKAGE_TARNAME='asterisk'
580 PACKAGE_VERSION='1.6'
581 PACKAGE_STRING='asterisk 1.6'
582 PACKAGE_BUGREPORT='www.asterisk.org'
584 ac_unique_file="main/asterisk.c"
585 # Factoring default headers for most tests.
586 ac_includes_default="\
588 #ifdef HAVE_SYS_TYPES_H
589 # include <sys/types.h>
591 #ifdef HAVE_SYS_STAT_H
592 # include <sys/stat.h>
598 # ifdef HAVE_STDLIB_H
603 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608 #ifdef HAVE_STRINGS_H
609 # include <strings.h>
611 #ifdef HAVE_INTTYPES_H
612 # include <inttypes.h>
631 program_transform_name
915 SPEEX_PREPROCESS_INCLUDE
987 PBX_PTHREAD_RWLOCK_INITIALIZER
988 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
991 AST_DECLARATION_AFTER_STATEMENT
993 AST_NO_STRICT_OVERFLOW
1025 GENERIC_ODBC_INCLUDE
1029 ac_precious_vars='build_alias
1044 # Initialize some variables set by options.
1046 ac_init_version=false
1047 # The variables have the same names as the options, with
1048 # dashes changed to underlines.
1049 cache_file=/dev/null
1056 program_transform_name=s,x,x,
1064 # Installation directory options.
1065 # These are left unexpanded so users can "make install exec_prefix=/foo"
1066 # and all the variables that are supposed to be based on exec_prefix
1067 # by default will actually change.
1068 # Use braces instead of parens because sh, perl, etc. also accept them.
1069 # (The list follows the same order as the GNU Coding Standards.)
1070 bindir='${exec_prefix}/bin'
1071 sbindir='${exec_prefix}/sbin'
1072 libexecdir='${exec_prefix}/libexec'
1073 datarootdir='${prefix}/share'
1074 datadir='${datarootdir}'
1075 sysconfdir='${prefix}/etc'
1076 sharedstatedir='${prefix}/com'
1077 localstatedir='${prefix}/var'
1078 includedir='${prefix}/include'
1079 oldincludedir='/usr/include'
1080 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1081 infodir='${datarootdir}/info'
1086 libdir='${exec_prefix}/lib'
1087 localedir='${datarootdir}/locale'
1088 mandir='${datarootdir}/man'
1094 # If the previous option needs an argument, assign it.
1095 if test -n "$ac_prev"; then
1096 eval $ac_prev=\$ac_option
1102 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1106 # Accept the important Cygnus configure options, so we can diagnose typos.
1108 case $ac_dashdash$ac_option in
1112 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1114 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1115 bindir=$ac_optarg ;;
1117 -build | --build | --buil | --bui | --bu)
1118 ac_prev=build_alias ;;
1119 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1120 build_alias=$ac_optarg ;;
1122 -cache-file | --cache-file | --cache-fil | --cache-fi \
1123 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1124 ac_prev=cache_file ;;
1125 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1126 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1127 cache_file=$ac_optarg ;;
1129 --config-cache | -C)
1130 cache_file=config.cache ;;
1132 -datadir | --datadir | --datadi | --datad)
1134 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1135 datadir=$ac_optarg ;;
1137 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1138 | --dataroo | --dataro | --datar)
1139 ac_prev=datarootdir ;;
1140 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1141 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1142 datarootdir=$ac_optarg ;;
1144 -disable-* | --disable-*)
1145 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1151 eval enable_$ac_feature=no ;;
1153 -docdir | --docdir | --docdi | --doc | --do)
1155 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1156 docdir=$ac_optarg ;;
1158 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1160 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1161 dvidir=$ac_optarg ;;
1163 -enable-* | --enable-*)
1164 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1168 { (exit 1); exit 1; }; }
1169 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1170 eval enable_$ac_feature=\$ac_optarg ;;
1172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1174 | --exec | --exe | --ex)
1175 ac_prev=exec_prefix ;;
1176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1178 | --exec=* | --exe=* | --ex=*)
1179 exec_prefix=$ac_optarg ;;
1181 -gas | --gas | --ga | --g)
1182 # Obsolete; use --with-gas.
1185 -help | --help | --hel | --he | -h)
1186 ac_init_help=long ;;
1187 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1188 ac_init_help=recursive ;;
1189 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1190 ac_init_help=short ;;
1192 -host | --host | --hos | --ho)
1193 ac_prev=host_alias ;;
1194 -host=* | --host=* | --hos=* | --ho=*)
1195 host_alias=$ac_optarg ;;
1197 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1199 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1201 htmldir=$ac_optarg ;;
1203 -includedir | --includedir | --includedi | --included | --include \
1204 | --includ | --inclu | --incl | --inc)
1205 ac_prev=includedir ;;
1206 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1207 | --includ=* | --inclu=* | --incl=* | --inc=*)
1208 includedir=$ac_optarg ;;
1210 -infodir | --infodir | --infodi | --infod | --info | --inf)
1212 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1213 infodir=$ac_optarg ;;
1215 -libdir | --libdir | --libdi | --libd)
1217 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1218 libdir=$ac_optarg ;;
1220 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1221 | --libexe | --libex | --libe)
1222 ac_prev=libexecdir ;;
1223 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1224 | --libexe=* | --libex=* | --libe=*)
1225 libexecdir=$ac_optarg ;;
1227 -localedir | --localedir | --localedi | --localed | --locale)
1228 ac_prev=localedir ;;
1229 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1230 localedir=$ac_optarg ;;
1232 -localstatedir | --localstatedir | --localstatedi | --localstated \
1233 | --localstate | --localstat | --localsta | --localst | --locals)
1234 ac_prev=localstatedir ;;
1235 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1236 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1237 localstatedir=$ac_optarg ;;
1239 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1241 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1242 mandir=$ac_optarg ;;
1244 -nfp | --nfp | --nf)
1245 # Obsolete; use --without-fp.
1248 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1249 | --no-cr | --no-c | -n)
1252 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1253 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1256 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1257 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1258 | --oldin | --oldi | --old | --ol | --o)
1259 ac_prev=oldincludedir ;;
1260 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1261 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1262 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1263 oldincludedir=$ac_optarg ;;
1265 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1267 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1268 prefix=$ac_optarg ;;
1270 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1271 | --program-pre | --program-pr | --program-p)
1272 ac_prev=program_prefix ;;
1273 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1274 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1275 program_prefix=$ac_optarg ;;
1277 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1278 | --program-suf | --program-su | --program-s)
1279 ac_prev=program_suffix ;;
1280 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1281 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1282 program_suffix=$ac_optarg ;;
1284 -program-transform-name | --program-transform-name \
1285 | --program-transform-nam | --program-transform-na \
1286 | --program-transform-n | --program-transform- \
1287 | --program-transform | --program-transfor \
1288 | --program-transfo | --program-transf \
1289 | --program-trans | --program-tran \
1290 | --progr-tra | --program-tr | --program-t)
1291 ac_prev=program_transform_name ;;
1292 -program-transform-name=* | --program-transform-name=* \
1293 | --program-transform-nam=* | --program-transform-na=* \
1294 | --program-transform-n=* | --program-transform-=* \
1295 | --program-transform=* | --program-transfor=* \
1296 | --program-transfo=* | --program-transf=* \
1297 | --program-trans=* | --program-tran=* \
1298 | --progr-tra=* | --program-tr=* | --program-t=*)
1299 program_transform_name=$ac_optarg ;;
1301 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1303 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1304 pdfdir=$ac_optarg ;;
1306 -psdir | --psdir | --psdi | --psd | --ps)
1308 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1312 | -silent | --silent | --silen | --sile | --sil)
1315 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1317 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1319 sbindir=$ac_optarg ;;
1321 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1322 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1323 | --sharedst | --shareds | --shared | --share | --shar \
1325 ac_prev=sharedstatedir ;;
1326 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1327 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1328 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1330 sharedstatedir=$ac_optarg ;;
1332 -site | --site | --sit)
1334 -site=* | --site=* | --sit=*)
1337 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1339 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1340 srcdir=$ac_optarg ;;
1342 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1343 | --syscon | --sysco | --sysc | --sys | --sy)
1344 ac_prev=sysconfdir ;;
1345 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1346 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1347 sysconfdir=$ac_optarg ;;
1349 -target | --target | --targe | --targ | --tar | --ta | --t)
1350 ac_prev=target_alias ;;
1351 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1352 target_alias=$ac_optarg ;;
1354 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1357 -version | --version | --versio | --versi | --vers | -V)
1358 ac_init_version=: ;;
1361 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1364 { echo "$as_me: error: invalid package name: $ac_package" >&2
1365 { (exit 1); exit 1; }; }
1366 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1367 eval with_$ac_package=\$ac_optarg ;;
1369 -without-* | --without-*)
1370 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1371 # Reject names that are not valid shell variable names.
1372 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373 { echo "$as_me: error: invalid package name: $ac_package" >&2
1374 { (exit 1); exit 1; }; }
1375 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1376 eval with_$ac_package=no ;;
1379 # Obsolete; use --with-x.
1382 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1383 | --x-incl | --x-inc | --x-in | --x-i)
1384 ac_prev=x_includes ;;
1385 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1386 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1387 x_includes=$ac_optarg ;;
1389 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1390 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1391 ac_prev=x_libraries ;;
1392 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1393 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1394 x_libraries=$ac_optarg ;;
1396 -*) { echo "$as_me: error: unrecognized option: $ac_option
1397 Try \`$0 --help' for more information." >&2
1398 { (exit 1); exit 1; }; }
1402 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1403 # Reject names that are not valid shell variable names.
1404 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1405 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1406 { (exit 1); exit 1; }; }
1407 eval $ac_envvar=\$ac_optarg
1408 export $ac_envvar ;;
1411 # FIXME: should be removed in autoconf 3.0.
1412 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1413 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1414 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1415 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1421 if test -n "$ac_prev"; then
1422 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1423 { echo "$as_me: error: missing argument to $ac_option" >&2
1424 { (exit 1); exit 1; }; }
1427 # Be sure to have absolute directory names.
1428 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1429 datadir sysconfdir sharedstatedir localstatedir includedir \
1430 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1431 libdir localedir mandir
1433 eval ac_val=\$$ac_var
1435 [\\/$]* | ?:[\\/]* ) continue;;
1436 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1438 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1439 { (exit 1); exit 1; }; }
1442 # There might be people who depend on the old broken behavior: `$host'
1443 # used to hold the argument of --host etc.
1444 # FIXME: To remove some day.
1447 target=$target_alias
1449 # FIXME: To remove some day.
1450 if test "x$host_alias" != x; then
1451 if test "x$build_alias" = x; then
1452 cross_compiling=maybe
1453 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1454 If a cross compiler is detected then cross compile mode will be used." >&2
1455 elif test "x$build_alias" != "x$host_alias"; then
1461 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463 test "$silent" = yes && exec 6>/dev/null
1466 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1467 ac_ls_di=`ls -di .` &&
1468 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1469 { echo "$as_me: error: Working directory cannot be determined" >&2
1470 { (exit 1); exit 1; }; }
1471 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472 { echo "$as_me: error: pwd does not report name of working directory" >&2
1473 { (exit 1); exit 1; }; }
1476 # Find the source files, if location was not specified.
1477 if test -z "$srcdir"; then
1478 ac_srcdir_defaulted=yes
1479 # Try the directory containing this script, then the parent directory.
1480 ac_confdir=`$as_dirname -- "$0" ||
1481 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1482 X"$0" : 'X\(//\)[^/]' \| \
1483 X"$0" : 'X\(//\)$' \| \
1484 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504 if test ! -r "$srcdir/$ac_unique_file"; then
1508 ac_srcdir_defaulted=no
1510 if test ! -r "$srcdir/$ac_unique_file"; then
1511 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1512 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1513 { (exit 1); exit 1; }; }
1515 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1518 { (exit 1); exit 1; }; }
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1528 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1530 for ac_var in $ac_precious_vars; do
1531 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_env_${ac_var}_value=\$${ac_var}
1533 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1534 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1538 # Report the --help message.
1540 if test "$ac_init_help" = "long"; then
1541 # Omit some internal or obsolete options to make the list less imposing.
1542 # This message is too long to be a string in the A/UX 3.1 sh.
1544 \`configure' configures asterisk 1.6 to adapt to many kinds of systems.
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE. See below for descriptions of some of the useful variables.
1551 Defaults for the options are specified in brackets.
1554 -h, --help display this help and exit
1555 --help=short display options specific to this package
1556 --help=recursive display the short help of all the included packages
1557 -V, --version display version information and exit
1558 -q, --quiet, --silent do not print \`checking...' messages
1559 --cache-file=FILE cache test results in FILE [disabled]
1560 -C, --config-cache alias for \`--cache-file=config.cache'
1561 -n, --no-create do not create output files
1562 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1564 Installation directories:
1565 --prefix=PREFIX install architecture-independent files in PREFIX
1566 [$ac_default_prefix]
1567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1575 For better control, use the options below.
1577 Fine tuning of the installation directories:
1578 --bindir=DIR user executables [EPREFIX/bin]
1579 --sbindir=DIR system admin executables [EPREFIX/sbin]
1580 --libexecdir=DIR program executables [EPREFIX/libexec]
1581 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1582 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1583 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1584 --libdir=DIR object code libraries [EPREFIX/lib]
1585 --includedir=DIR C header files [PREFIX/include]
1586 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1587 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1588 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1589 --infodir=DIR info documentation [DATAROOTDIR/info]
1590 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1591 --mandir=DIR man documentation [DATAROOTDIR/man]
1592 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1593 --htmldir=DIR html documentation [DOCDIR]
1594 --dvidir=DIR dvi documentation [DOCDIR]
1595 --pdfdir=DIR pdf documentation [DOCDIR]
1596 --psdir=DIR ps documentation [DOCDIR]
1602 --build=BUILD configure for building on BUILD [guessed]
1603 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1607 if test -n "$ac_init_help"; then
1608 case $ac_init_help in
1609 short | recursive ) echo "Configuration of asterisk 1.6:";;
1614 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1615 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1616 --enable-dev-mode Turn on developer mode
1617 --disable-largefile omit support for large files
1618 --enable-internal-poll Use Asterisk's poll implementation
1619 --disable-xmldoc Explicity disable XML documentation
1622 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1623 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1624 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1625 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1626 --with-execinfo=PATH use Stack Backtrace support files in PATH
1627 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1628 --with-curl=PATH use cURL files in PATH
1629 --with-curses=PATH use curses files in PATH
1630 --with-crypto=PATH use OpenSSL Cryptography support files in PATH
1631 --with-dahdi=PATH use DAHDI files in PATH
1632 --with-avcodec=PATH use Ffmpeg and avcodec library files in PATH
1633 --with-gsm=PATH use External GSM library files in PATH, use
1634 'internal' GSM otherwise
1635 --with-gtk=PATH use gtk libraries files in PATH
1636 --with-gtk2=PATH use gtk2 libraries files in PATH
1637 --with-gmime=PATH use GMime library files in PATH
1638 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1639 --with-iconv=PATH use Iconv Library files in PATH
1640 --with-iksemel=PATH use Iksemel Jabber Library files in PATH
1641 --with-imap=PATH use UW IMAP Toolkit files in PATH
1642 --with-inotify=PATH use inotify support files in PATH
1643 --with-iodbc=PATH use iODBC files in PATH
1644 --with-isdnnet=PATH use ISDN4Linux Library files in PATH
1645 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1646 --with-ldap=PATH use OpenLDAP files in PATH
1647 --with-libxml2=PATH use LibXML2 files in PATH
1648 --with-ltdl=PATH use libtool files in PATH
1649 --with-lua=PATH use Lua files in PATH
1650 --with-misdn=PATH use mISDN User Library files in PATH
1651 --with-nbs=PATH use Network Broadcast Sound files in PATH
1652 --with-ncurses=PATH use ncurses files in PATH
1653 --with-netsnmp=PATH use Net-SNMP files in PATH
1654 --with-newt=PATH use newt files in PATH
1655 --with-ogg=PATH use OGG files in PATH
1656 --with-osptk=PATH use OSP Toolkit files in PATH
1657 --with-oss=PATH use Open Sound System files in PATH
1658 --with-postgres=PATH use PostgreSQL files in PATH
1659 --with-popt=PATH use popt files in PATH
1660 --with-portaudio=PATH use PortAudio files in PATH
1661 --with-pri=PATH use ISDN PRI files in PATH
1662 --with-resample=PATH use LIBRESAMPLE files in PATH
1663 --with-spandsp=PATH use SPANDSP files in PATH
1664 --with-ss7=PATH use ISDN SS7 files in PATH
1665 --with-openr2=PATH use MFR2 files in PATH
1666 --with-pwlib=PATH use PWlib files in PATH
1667 --with-h323=PATH use OpenH323 files in PATH
1668 --with-radius=PATH use Radius Client files in PATH
1669 --with-sdl=PATH use Sdl files in PATH
1670 --with-SDL_image=PATH use Sdl Image library files in PATH
1671 --with-openais=PATH use OpenAIS files in PATH
1672 --with-speex=PATH use Speex files in PATH
1673 --with-speex=PATH use Speex preprocess routines files in PATH
1674 --with-speexdsp=PATH use Speexdsp files in PATH
1675 --with-sqlite=PATH use SQLite files in PATH
1676 --with-sqlite3=PATH use SQLite files in PATH
1677 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1678 --with-ssl=PATH use OpenSSL Secure Sockets Layer support files in
1680 --with-tds=PATH use FreeTDS files in PATH
1681 --with-termcap=PATH use Termcap files in PATH
1682 --with-tinfo=PATH use Term Info files in PATH
1683 --with-tonezone=PATH use tonezone files in PATH
1684 --with-unixodbc=PATH use unixODBC files in PATH
1685 --with-usb=PATH use usb files in PATH
1686 --with-vorbis=PATH use Vorbis files in PATH
1687 --with-vpb=PATH use Voicetronix API files in PATH
1688 --with-x11=PATH use X11 support files in PATH
1689 --with-z=PATH use zlib files in PATH
1690 --with-timerfd=PATH use timerfd files in PATH
1692 Some influential environment variables:
1693 CC C compiler command
1694 CFLAGS C compiler flags
1695 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1696 nonstandard directory <lib dir>
1697 LIBS libraries to pass to the linker, e.g. -l<library>
1698 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1699 you have headers in a nonstandard directory <include dir>
1701 CXX C++ compiler command
1702 CXXFLAGS C++ compiler flags
1703 CXXCPP C++ preprocessor
1705 Use these variables to override the choices made by `configure' or to help
1706 it to find libraries and programs with nonstandard names/locations.
1708 Report bugs to <www.asterisk.org>.
1713 if test "$ac_init_help" = "recursive"; then
1714 # If there are subdirs, report their specific --help.
1715 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1716 test -d "$ac_dir" || continue
1720 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1723 # A ".." for each directory in $ac_dir_suffix.
1724 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1725 case $ac_top_builddir_sub in
1726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1730 ac_abs_top_builddir=$ac_pwd
1731 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1732 # for backward compatibility:
1733 ac_top_builddir=$ac_top_build_prefix
1736 .) # We are building in place.
1738 ac_top_srcdir=$ac_top_builddir_sub
1739 ac_abs_top_srcdir=$ac_pwd ;;
1740 [\\/]* | ?:[\\/]* ) # Absolute name.
1741 ac_srcdir=$srcdir$ac_dir_suffix;
1742 ac_top_srcdir=$srcdir
1743 ac_abs_top_srcdir=$srcdir ;;
1745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1746 ac_top_srcdir=$ac_top_build_prefix$srcdir
1747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1749 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751 cd "$ac_dir" || { ac_status=$?; continue; }
1752 # Check for guested configure.
1753 if test -f "$ac_srcdir/configure.gnu"; then
1755 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1756 elif test -f "$ac_srcdir/configure"; then
1758 $SHELL "$ac_srcdir/configure" --help=recursive
1760 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1762 cd "$ac_pwd" || { ac_status=$?; break; }
1766 test -n "$ac_init_help" && exit $ac_status
1767 if $ac_init_version; then
1769 asterisk configure 1.6
1770 generated by GNU Autoconf 2.61
1772 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1773 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1774 This configure script is free software; the Free Software Foundation
1775 gives unlimited permission to copy, distribute and modify it.
1781 cat >config.log <<_ACEOF
1782 This file contains any messages produced by compilers while
1783 running configure, to aid debugging if configure makes a mistake.
1785 It was created by asterisk $as_me 1.6, which was
1786 generated by GNU Autoconf 2.61. Invocation command line was
1798 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1799 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1800 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1801 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1802 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1804 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1805 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1807 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1808 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1809 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1810 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1811 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1812 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1813 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1821 test -z "$as_dir" && as_dir=.
1822 echo "PATH: $as_dir"
1838 # Keep a trace of the command line.
1839 # Strip out --no-create and --no-recursion so they do not pile up.
1840 # Strip out --silent because we don't want to record it for future runs.
1841 # Also quote any args containing shell meta-characters.
1842 # Make two passes to allow for proper duplicate-argument suppression.
1846 ac_must_keep_next=false
1852 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1853 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1854 | -silent | --silent | --silen | --sile | --sil)
1857 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1860 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1862 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1863 if test $ac_must_keep_next = true; then
1864 ac_must_keep_next=false # Got value, back to normal.
1867 *=* | --config-cache | -C | -disable-* | --disable-* \
1868 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1869 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1870 | -with-* | --with-* | -without-* | --without-* | --x)
1871 case "$ac_configure_args0 " in
1872 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1875 -* ) ac_must_keep_next=true ;;
1878 ac_configure_args="$ac_configure_args '$ac_arg'"
1883 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1884 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1886 # When interrupted or exit'd, cleanup temporary files, and complete
1887 # config.log. We remove comments because anyway the quotes in there
1888 # would cause problems or look ugly.
1889 # WARNING: Use '\'' to represent an apostrophe within the trap.
1890 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1891 trap 'exit_status=$?
1892 # Save into config.log some information that might help in debugging.
1897 ## ---------------- ##
1898 ## Cache variables. ##
1899 ## ---------------- ##
1902 # The following way of writing the cache mishandles newlines in values,
1904 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1905 eval ac_val=\$$ac_var
1909 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1910 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1913 _ | IFS | as_nl) ;; #(
1914 *) $as_unset $ac_var ;;
1919 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1920 *${as_nl}ac_space=\ *)
1922 "s/'\''/'\''\\\\'\'''\''/g;
1923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1926 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1934 ## ----------------- ##
1935 ## Output variables. ##
1936 ## ----------------- ##
1939 for ac_var in $ac_subst_vars
1941 eval ac_val=\$$ac_var
1943 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1945 echo "$ac_var='\''$ac_val'\''"
1949 if test -n "$ac_subst_files"; then
1951 ## ------------------- ##
1952 ## File substitutions. ##
1953 ## ------------------- ##
1956 for ac_var in $ac_subst_files
1958 eval ac_val=\$$ac_var
1960 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 echo "$ac_var='\''$ac_val'\''"
1967 if test -s confdefs.h; then
1977 test "$ac_signal" != 0 &&
1978 echo "$as_me: caught signal $ac_signal"
1979 echo "$as_me: exit $exit_status"
1981 rm -f core *.core core.conftest.* &&
1982 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1985 for ac_signal in 1 2 13 15; do
1986 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1990 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1991 rm -f -r conftest* confdefs.h
1993 # Predefined preprocessor variables.
1995 cat >>confdefs.h <<_ACEOF
1996 #define PACKAGE_NAME "$PACKAGE_NAME"
2000 cat >>confdefs.h <<_ACEOF
2001 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2005 cat >>confdefs.h <<_ACEOF
2006 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2010 cat >>confdefs.h <<_ACEOF
2011 #define PACKAGE_STRING "$PACKAGE_STRING"
2015 cat >>confdefs.h <<_ACEOF
2016 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2020 # Let the site file select an alternate cache file if it wants to.
2021 # Prefer explicitly selected file to automatically selected ones.
2022 if test -n "$CONFIG_SITE"; then
2023 set x "$CONFIG_SITE"
2024 elif test "x$prefix" != xNONE; then
2025 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2027 set x "$ac_default_prefix/share/config.site" \
2028 "$ac_default_prefix/etc/config.site"
2033 if test -r "$ac_site_file"; then
2034 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2035 echo "$as_me: loading site script $ac_site_file" >&6;}
2036 sed 's/^/| /' "$ac_site_file" >&5
2041 if test -r "$cache_file"; then
2042 # Some versions of bash will fail to source /dev/null (special
2043 # files actually), so we avoid doing that.
2044 if test -f "$cache_file"; then
2045 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2046 echo "$as_me: loading cache $cache_file" >&6;}
2048 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2049 *) . "./$cache_file";;
2053 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2054 echo "$as_me: creating cache $cache_file" >&6;}
2058 ac_header_list="$ac_header_list utime.h"
2059 # Check that the precious variables saved in the cache have kept the same
2061 ac_cache_corrupted=false
2062 for ac_var in $ac_precious_vars; do
2063 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2064 eval ac_new_set=\$ac_env_${ac_var}_set
2065 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2066 eval ac_new_val=\$ac_env_${ac_var}_value
2067 case $ac_old_set,$ac_new_set in
2069 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2070 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2071 ac_cache_corrupted=: ;;
2073 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2074 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2075 ac_cache_corrupted=: ;;
2078 if test "x$ac_old_val" != "x$ac_new_val"; then
2079 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2080 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2081 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2082 echo "$as_me: former value: $ac_old_val" >&2;}
2083 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2084 echo "$as_me: current value: $ac_new_val" >&2;}
2085 ac_cache_corrupted=:
2088 # Pass precious variables to config.status.
2089 if test "$ac_new_set" = set; then
2091 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2092 *) ac_arg=$ac_var=$ac_new_val ;;
2094 case " $ac_configure_args " in
2095 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2096 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2100 if $ac_cache_corrupted; then
2101 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2102 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2103 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2104 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2105 { (exit 1); exit 1; }; }
2133 ac_cpp='$CPP $CPPFLAGS'
2134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2140 # cross-compile macros
2142 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2143 if test -f "$ac_dir/install-sh"; then
2145 ac_install_sh="$ac_aux_dir/install-sh -c"
2147 elif test -f "$ac_dir/install.sh"; then
2149 ac_install_sh="$ac_aux_dir/install.sh -c"
2151 elif test -f "$ac_dir/shtool"; then
2153 ac_install_sh="$ac_aux_dir/shtool install -c"
2157 if test -z "$ac_aux_dir"; then
2158 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2159 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2160 { (exit 1); exit 1; }; }
2163 # These three variables are undocumented and unsupported,
2164 # and are intended to be withdrawn in a future Autoconf release.
2165 # They can cause serious problems if a builder's source tree is in a directory
2166 # whose full name contains unusual characters.
2167 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2168 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2169 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2172 # Make sure we can run config.sub.
2173 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2174 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2175 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2176 { (exit 1); exit 1; }; }
2178 { echo "$as_me:$LINENO: checking build system type" >&5
2179 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2180 if test "${ac_cv_build+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2183 ac_build_alias=$build_alias
2184 test "x$ac_build_alias" = x &&
2185 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2186 test "x$ac_build_alias" = x &&
2187 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2188 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2189 { (exit 1); exit 1; }; }
2190 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2191 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2192 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2193 { (exit 1); exit 1; }; }
2196 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2197 echo "${ECHO_T}$ac_cv_build" >&6; }
2198 case $ac_cv_build in
2200 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2201 echo "$as_me: error: invalid value of canonical build" >&2;}
2202 { (exit 1); exit 1; }; };;
2205 ac_save_IFS=$IFS; IFS='-'
2211 # Remember, the first character of IFS is used to create $*,
2212 # except with old shells:
2215 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2218 { echo "$as_me:$LINENO: checking host system type" >&5
2219 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2220 if test "${ac_cv_host+set}" = set; then
2221 echo $ECHO_N "(cached) $ECHO_C" >&6
2223 if test "x$host_alias" = x; then
2224 ac_cv_host=$ac_cv_build
2226 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2227 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2228 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2229 { (exit 1); exit 1; }; }
2233 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2234 echo "${ECHO_T}$ac_cv_host" >&6; }
2237 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2238 echo "$as_me: error: invalid value of canonical host" >&2;}
2239 { (exit 1); exit 1; }; };;
2242 ac_save_IFS=$IFS; IFS='-'
2248 # Remember, the first character of IFS is used to create $*,
2249 # except with old shells:
2252 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2256 # check existence of the package
2259 # specify output header file
2260 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2267 cat >>confdefs.h <<\_ACEOF
2268 #define _GNU_SOURCE 1
2273 ac_cpp='$CPP $CPPFLAGS'
2274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306 if test -n "$CC"; then
2307 { echo "$as_me:$LINENO: result: $CC" >&5
2308 echo "${ECHO_T}$CC" >&6; }
2310 { echo "$as_me:$LINENO: result: no" >&5
2311 echo "${ECHO_T}no" >&6; }
2316 if test -z "$ac_cv_prog_CC"; then
2318 # Extract the first word of "gcc", so it can be a program name with args.
2319 set dummy gcc; ac_word=$2
2320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2322 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 if test -n "$ac_ct_CC"; then
2326 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 test -z "$as_dir" && as_dir=.
2333 for ac_exec_ext in '' $ac_executable_extensions; do
2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2335 ac_cv_prog_ac_ct_CC="gcc"
2336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2345 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2346 if test -n "$ac_ct_CC"; then
2347 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2348 echo "${ECHO_T}$ac_ct_CC" >&6; }
2350 { echo "$as_me:$LINENO: result: no" >&5
2351 echo "${ECHO_T}no" >&6; }
2354 if test "x$ac_ct_CC" = x; then
2357 case $cross_compiling:$ac_tool_warned in
2359 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2360 whose name does not start with the host triplet. If you think this
2361 configuration is useful to you, please write to autoconf@gnu.org." >&5
2362 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2363 whose name does not start with the host triplet. If you think this
2364 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2365 ac_tool_warned=yes ;;
2373 if test -z "$CC"; then
2374 if test -n "$ac_tool_prefix"; then
2375 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2376 set dummy ${ac_tool_prefix}cc; ac_word=$2
2377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2379 if test "${ac_cv_prog_CC+set}" = set; then
2380 echo $ECHO_N "(cached) $ECHO_C" >&6
2382 if test -n "$CC"; then
2383 ac_cv_prog_CC="$CC" # Let the user override the test.
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2392 ac_cv_prog_CC="${ac_tool_prefix}cc"
2393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 if test -n "$CC"; then
2404 { echo "$as_me:$LINENO: result: $CC" >&5
2405 echo "${ECHO_T}$CC" >&6; }
2407 { echo "$as_me:$LINENO: result: no" >&5
2408 echo "${ECHO_T}no" >&6; }
2414 if test -z "$CC"; then
2415 # Extract the first word of "cc", so it can be a program name with args.
2416 set dummy cc; ac_word=$2
2417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 test -z "$as_dir" && as_dir=.
2431 for ac_exec_ext in '' $ac_executable_extensions; do
2432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2434 ac_prog_rejected=yes
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2445 if test $ac_prog_rejected = yes; then
2446 # We found a bogon in the path, so make sure we never use it.
2447 set dummy $ac_cv_prog_CC
2449 if test $# != 0; then
2450 # We chose a different compiler from the bogus one.
2451 # However, it has the same basename, so the bogon will be chosen
2452 # first if we set CC to just the basename; use the full file name.
2454 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2460 if test -n "$CC"; then
2461 { echo "$as_me:$LINENO: result: $CC" >&5
2462 echo "${ECHO_T}$CC" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2470 if test -z "$CC"; then
2471 if test -n "$ac_tool_prefix"; then
2472 for ac_prog in cl.exe
2474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2475 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2478 if test "${ac_cv_prog_CC+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2481 if test -n "$CC"; then
2482 ac_cv_prog_CC="$CC" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2502 if test -n "$CC"; then
2503 { echo "$as_me:$LINENO: result: $CC" >&5
2504 echo "${ECHO_T}$CC" >&6; }
2506 { echo "$as_me:$LINENO: result: no" >&5
2507 echo "${ECHO_T}no" >&6; }
2511 test -n "$CC" && break
2514 if test -z "$CC"; then
2516 for ac_prog in cl.exe
2518 # Extract the first word of "$ac_prog", so it can be a program name with args.
2519 set dummy $ac_prog; ac_word=$2
2520 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2523 echo $ECHO_N "(cached) $ECHO_C" >&6
2525 if test -n "$ac_ct_CC"; then
2526 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 ac_cv_prog_ac_ct_CC="$ac_prog"
2536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2546 if test -n "$ac_ct_CC"; then
2547 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2548 echo "${ECHO_T}$ac_ct_CC" >&6; }
2550 { echo "$as_me:$LINENO: result: no" >&5
2551 echo "${ECHO_T}no" >&6; }
2555 test -n "$ac_ct_CC" && break
2558 if test "x$ac_ct_CC" = x; then
2561 case $cross_compiling:$ac_tool_warned in
2563 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2564 whose name does not start with the host triplet. If you think this
2565 configuration is useful to you, please write to autoconf@gnu.org." >&5
2566 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2567 whose name does not start with the host triplet. If you think this
2568 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2569 ac_tool_warned=yes ;;
2578 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2579 See \`config.log' for more details." >&5
2580 echo "$as_me: error: no acceptable C compiler found in \$PATH
2581 See \`config.log' for more details." >&2;}
2582 { (exit 1); exit 1; }; }
2584 # Provide some information about the compiler.
2585 echo "$as_me:$LINENO: checking for C compiler version" >&5
2586 ac_compiler=`set X $ac_compile; echo $2`
2587 { (ac_try="$ac_compiler --version >&5"
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_compiler --version >&5") 2>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }
2597 { (ac_try="$ac_compiler -v >&5"
2599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600 *) ac_try_echo=$ac_try;;
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603 (eval "$ac_compiler -v >&5") 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }
2607 { (ac_try="$ac_compiler -V >&5"
2609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2610 *) ac_try_echo=$ac_try;;
2612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2613 (eval "$ac_compiler -V >&5") 2>&5
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2633 ac_clean_files_save=$ac_clean_files
2634 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2635 # Try to create an executable without -o first, disregard a.out.
2636 # It will help us diagnose broken compilers, and finding out an intuition
2638 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2639 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2640 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2642 # List of possible output files, starting from the most likely.
2643 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2644 # only as a last resort. b.out is created by i960 compilers.
2645 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2647 # The IRIX 6 linker writes into existing files which may not be
2648 # executable, retaining their permissions. Remove them first so a
2649 # subsequent execution test works.
2651 for ac_file in $ac_files
2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2655 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2660 if { (ac_try="$ac_link_default"
2662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2663 *) ac_try_echo=$ac_try;;
2665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2666 (eval "$ac_link_default") 2>&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; then
2670 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2671 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2672 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2673 # so that the user can short-circuit this test for compilers unknown to
2675 for ac_file in $ac_files ''
2677 test -f "$ac_file" || continue
2679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2682 # We found the default executable, but exeext='' is most
2686 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2688 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2690 # We set ac_cv_exeext here because the later test for it is not
2691 # safe: cross compilers may not add the suffix if given an `-o'
2692 # argument, so we may need to know it at that point already.
2693 # Even if this section looks crufty: it has the advantage of
2700 test "$ac_cv_exeext" = no && ac_cv_exeext=
2706 { echo "$as_me:$LINENO: result: $ac_file" >&5
2707 echo "${ECHO_T}$ac_file" >&6; }
2708 if test -z "$ac_file"; then
2709 echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2712 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2713 See \`config.log' for more details." >&5
2714 echo "$as_me: error: C compiler cannot create executables
2715 See \`config.log' for more details." >&2;}
2716 { (exit 77); exit 77; }; }
2719 ac_exeext=$ac_cv_exeext
2721 # Check that the compiler produces executables we can run. If not, either
2722 # the compiler is broken, or we cross compile.
2723 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2724 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2725 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2726 # If not cross compiling, check that we can run a simple program.
2727 if test "$cross_compiling" != yes; then
2728 if { ac_try='./$ac_file'
2729 { (case "(($ac_try" in
2730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2731 *) ac_try_echo=$ac_try;;
2733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2734 (eval "$ac_try") 2>&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2740 if test "$cross_compiling" = maybe; then
2743 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2744 If you meant to cross compile, use \`--host'.
2745 See \`config.log' for more details." >&5
2746 echo "$as_me: error: cannot run C compiled programs.
2747 If you meant to cross compile, use \`--host'.
2748 See \`config.log' for more details." >&2;}
2749 { (exit 1); exit 1; }; }
2753 { echo "$as_me:$LINENO: result: yes" >&5
2754 echo "${ECHO_T}yes" >&6; }
2756 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2757 ac_clean_files=$ac_clean_files_save
2758 # Check that the compiler produces executables we can run. If not, either
2759 # the compiler is broken, or we cross compile.
2760 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2761 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2762 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2763 echo "${ECHO_T}$cross_compiling" >&6; }
2765 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2766 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2767 if { (ac_try="$ac_link"
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_link") 2>&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; then
2777 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2778 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2779 # work properly (i.e., refer to `conftest.exe'), while it won't with
2781 for ac_file in conftest.exe conftest conftest.*; do
2782 test -f "$ac_file" || continue
2784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2785 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2791 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2792 See \`config.log' for more details." >&5
2793 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2794 See \`config.log' for more details." >&2;}
2795 { (exit 1); exit 1; }; }
2798 rm -f conftest$ac_cv_exeext
2799 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2800 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2802 rm -f conftest.$ac_ext
2803 EXEEXT=$ac_cv_exeext
2805 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2806 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2807 if test "${ac_cv_objext+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2810 cat >conftest.$ac_ext <<_ACEOF
2813 cat confdefs.h >>conftest.$ac_ext
2814 cat >>conftest.$ac_ext <<_ACEOF
2815 /* end confdefs.h. */
2825 rm -f conftest.o conftest.obj
2826 if { (ac_try="$ac_compile"
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_compile") 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; then
2836 for ac_file in conftest.o conftest.obj conftest.*; do
2837 test -f "$ac_file" || continue;
2839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2840 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2848 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2849 See \`config.log' for more details." >&5
2850 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2851 See \`config.log' for more details." >&2;}
2852 { (exit 1); exit 1; }; }
2855 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2857 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2858 echo "${ECHO_T}$ac_cv_objext" >&6; }
2859 OBJEXT=$ac_cv_objext
2861 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2862 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2863 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2866 cat >conftest.$ac_ext <<_ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2884 rm -f conftest.$ac_objext
2885 if { (ac_try="$ac_compile"
2887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2888 *) ac_try_echo=$ac_try;;
2890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2891 (eval "$ac_compile") 2>conftest.er1
2893 grep -v '^ *+' conftest.er1 >conftest.err
2895 cat conftest.err >&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); } && {
2898 test -z "$ac_c_werror_flag" ||
2899 test ! -s conftest.err
2900 } && test -s conftest.$ac_objext; then
2903 echo "$as_me: failed program was:" >&5
2904 sed 's/^/| /' conftest.$ac_ext >&5
2909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2910 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2913 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2914 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2915 GCC=`test $ac_compiler_gnu = yes && echo yes`
2916 ac_test_CFLAGS=${CFLAGS+set}
2917 ac_save_CFLAGS=$CFLAGS
2918 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2919 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2920 if test "${ac_cv_prog_cc_g+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 ac_save_c_werror_flag=$ac_c_werror_flag
2924 ac_c_werror_flag=yes
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } && {
2956 test -z "$ac_c_werror_flag" ||
2957 test ! -s conftest.err
2958 } && test -s conftest.$ac_objext; then
2961 echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2965 cat >conftest.$ac_ext <<_ACEOF
2968 cat confdefs.h >>conftest.$ac_ext
2969 cat >>conftest.$ac_ext <<_ACEOF
2970 /* end confdefs.h. */
2980 rm -f conftest.$ac_objext
2981 if { (ac_try="$ac_compile"
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_compile") 2>conftest.er1
2989 grep -v '^ *+' conftest.er1 >conftest.err
2991 cat conftest.err >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); } && {
2994 test -z "$ac_c_werror_flag" ||
2995 test ! -s conftest.err
2996 } && test -s conftest.$ac_objext; then
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 ac_c_werror_flag=$ac_save_c_werror_flag
3004 cat >conftest.$ac_ext <<_ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3019 rm -f conftest.$ac_objext
3020 if { (ac_try="$ac_compile"
3022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compile") 2>conftest.er1
3028 grep -v '^ *+' conftest.er1 >conftest.err
3030 cat conftest.err >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); } && {
3033 test -z "$ac_c_werror_flag" ||
3034 test ! -s conftest.err
3035 } && test -s conftest.$ac_objext; then
3038 echo "$as_me: failed program was:" >&5
3039 sed 's/^/| /' conftest.$ac_ext >&5
3044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3051 ac_c_werror_flag=$ac_save_c_werror_flag
3053 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3054 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3055 if test "$ac_test_CFLAGS" = set; then
3056 CFLAGS=$ac_save_CFLAGS
3057 elif test $ac_cv_prog_cc_g = yes; then
3058 if test "$GCC" = yes; then
3064 if test "$GCC" = yes; then
3070 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3071 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3072 if test "${ac_cv_prog_cc_c89+set}" = set; then
3073 echo $ECHO_N "(cached) $ECHO_C" >&6
3075 ac_cv_prog_cc_c89=no
3077 cat >conftest.$ac_ext <<_ACEOF
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3085 #include <sys/types.h>
3086 #include <sys/stat.h>
3087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3088 struct buf { int x; };
3089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3090 static char *e (p, i)
3096 static char *f (char * (*g) (char **, int), char **p, ...)
3101 s = g (p, va_arg (v,int));
3106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3107 function prototypes and stuff, but not '\xHH' hex character constants.
3108 These don't provoke an error unfortunately, instead are silently treated
3109 as 'x'. The following induces an error, until -std is added to get
3110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3111 array size at least. It's necessary to write '\x00'==0 to get something
3112 that's true only with -std. */
3113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3116 inside strings and character constants. */
3118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3120 int test (int i, double x);
3121 struct s1 {int (*f) (int a);};
3122 struct s2 {int (*f) (double a);};
3123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3137 CC="$ac_save_CC $ac_arg"
3138 rm -f conftest.$ac_objext
3139 if { (ac_try="$ac_compile"
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_compile") 2>conftest.er1
3147 grep -v '^ *+' conftest.er1 >conftest.err
3149 cat conftest.err >&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); } && {
3152 test -z "$ac_c_werror_flag" ||
3153 test ! -s conftest.err
3154 } && test -s conftest.$ac_objext; then
3155 ac_cv_prog_cc_c89=$ac_arg
3157 echo "$as_me: failed program was:" >&5
3158 sed 's/^/| /' conftest.$ac_ext >&5
3163 rm -f core conftest.err conftest.$ac_objext
3164 test "x$ac_cv_prog_cc_c89" != "xno" && break
3166 rm -f conftest.$ac_ext
3171 case "x$ac_cv_prog_cc_c89" in
3173 { echo "$as_me:$LINENO: result: none needed" >&5
3174 echo "${ECHO_T}none needed" >&6; } ;;
3176 { echo "$as_me:$LINENO: result: unsupported" >&5
3177 echo "${ECHO_T}unsupported" >&6; } ;;
3179 CC="$CC $ac_cv_prog_cc_c89"
3180 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3181 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3186 ac_cpp='$CPP $CPPFLAGS'
3187 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3188 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3189 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3198 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3199 # On Suns, sometimes $CPP names a directory.
3200 if test -n "$CPP" && test -d "$CPP"; then
3203 if test -z "$CPP"; then
3204 if test "${ac_cv_prog_CPP+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3207 # Double quotes because CPP needs to be expanded
3208 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3211 for ac_c_preproc_warn_flag in '' yes
3213 # Use a header file that comes with gcc, so configuring glibc
3214 # with a fresh cross-compiler works.
3215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3216 # <limits.h> exists even on freestanding compilers.
3217 # On the NeXT, cc -E runs the code through the compiler's parser,
3218 # not just through cpp. "Syntax error" is here to catch this case.
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3226 # include <limits.h>
3228 # include <assert.h>
3232 if { (ac_try="$ac_cpp conftest.$ac_ext"
3234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3235 *) ac_try_echo=$ac_try;;
3237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3240 grep -v '^ *+' conftest.er1 >conftest.err
3242 cat conftest.err >&5
3243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3244 (exit $ac_status); } >/dev/null && {
3245 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3246 test ! -s conftest.err
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3253 # Broken: fails on valid input.
3257 rm -f conftest.err conftest.$ac_ext
3259 # OK, works on sane cases. Now check whether nonexistent headers
3260 # can be detected and how.
3261 cat >conftest.$ac_ext <<_ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <ac_nonexistent.h>
3269 if { (ac_try="$ac_cpp conftest.$ac_ext"
3271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3272 *) ac_try_echo=$ac_try;;
3274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3277 grep -v '^ *+' conftest.er1 >conftest.err
3279 cat conftest.err >&5
3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3281 (exit $ac_status); } >/dev/null && {
3282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3283 test ! -s conftest.err
3285 # Broken: success on invalid input.
3288 echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3291 # Passes both tests.
3296 rm -f conftest.err conftest.$ac_ext
3299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3300 rm -f conftest.err conftest.$ac_ext
3301 if $ac_preproc_ok; then
3313 { echo "$as_me:$LINENO: result: $CPP" >&5
3314 echo "${ECHO_T}$CPP" >&6; }
3316 for ac_c_preproc_warn_flag in '' yes
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.$ac_ext <<_ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3331 # include <limits.h>
3333 # include <assert.h>
3337 if { (ac_try="$ac_cpp conftest.$ac_ext"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3345 grep -v '^ *+' conftest.er1 >conftest.err
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } >/dev/null && {
3350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3351 test ! -s conftest.err
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 # Broken: fails on valid input.
3362 rm -f conftest.err conftest.$ac_ext
3364 # OK, works on sane cases. Now check whether nonexistent headers
3365 # can be detected and how.
3366 cat >conftest.$ac_ext <<_ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #include <ac_nonexistent.h>
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null && {
3387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3390 # Broken: success on invalid input.
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 # Passes both tests.
3401 rm -f conftest.err conftest.$ac_ext
3404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3405 rm -f conftest.err conftest.$ac_ext
3406 if $ac_preproc_ok; then
3409 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3410 See \`config.log' for more details." >&5
3411 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3412 See \`config.log' for more details." >&2;}
3413 { (exit 1); exit 1; }; }
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3424 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3425 if test "${ac_cv_path_GREP+set}" = set; then
3426 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 # Extract the first word of "grep ggrep" to use in msg output
3429 if test -z "$GREP"; then
3430 set dummy grep ggrep; ac_prog_name=$2
3431 if test "${ac_cv_path_GREP+set}" = set; then
3432 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 ac_path_GREP_found=false
3435 # Loop through the user's path and test for each of PROGNAME-LIST
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3440 test -z "$as_dir" && as_dir=.
3441 for ac_prog in grep ggrep; do
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3444 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3445 # Check for GNU ac_path_GREP and select it if it is found.
3446 # Check for GNU $ac_path_GREP
3447 case `"$ac_path_GREP" --version 2>&1` in
3449 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3452 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3455 cat "conftest.in" "conftest.in" >"conftest.tmp"
3456 mv "conftest.tmp" "conftest.in"
3457 cp "conftest.in" "conftest.nl"
3458 echo 'GREP' >> "conftest.nl"
3459 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3461 ac_count=`expr $ac_count + 1`
3462 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3463 # Best one so far, save it but keep looking for a better one
3464 ac_cv_path_GREP="$ac_path_GREP"
3465 ac_path_GREP_max=$ac_count
3467 # 10*(2^10) chars as input seems more than enough
3468 test $ac_count -gt 10 && break
3470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3474 $ac_path_GREP_found && break 3
3484 GREP="$ac_cv_path_GREP"
3485 if test -z "$GREP"; then
3486 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3487 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3488 { (exit 1); exit 1; }; }
3492 ac_cv_path_GREP=$GREP
3497 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3498 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3499 GREP="$ac_cv_path_GREP"
3502 { echo "$as_me:$LINENO: checking for egrep" >&5
3503 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3504 if test "${ac_cv_path_EGREP+set}" = set; then
3505 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3508 then ac_cv_path_EGREP="$GREP -E"
3510 # Extract the first word of "egrep" to use in msg output
3511 if test -z "$EGREP"; then
3512 set dummy egrep; ac_prog_name=$2
3513 if test "${ac_cv_path_EGREP+set}" = set; then
3514 echo $ECHO_N "(cached) $ECHO_C" >&6
3516 ac_path_EGREP_found=false
3517 # Loop through the user's path and test for each of PROGNAME-LIST
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3522 test -z "$as_dir" && as_dir=.
3523 for ac_prog in egrep; do
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3526 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3527 # Check for GNU ac_path_EGREP and select it if it is found.
3528 # Check for GNU $ac_path_EGREP
3529 case `"$ac_path_EGREP" --version 2>&1` in
3531 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3534 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3537 cat "conftest.in" "conftest.in" >"conftest.tmp"
3538 mv "conftest.tmp" "conftest.in"
3539 cp "conftest.in" "conftest.nl"
3540 echo 'EGREP' >> "conftest.nl"
3541 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3542 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3543 ac_count=`expr $ac_count + 1`
3544 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3545 # Best one so far, save it but keep looking for a better one
3546 ac_cv_path_EGREP="$ac_path_EGREP"
3547 ac_path_EGREP_max=$ac_count
3549 # 10*(2^10) chars as input seems more than enough
3550 test $ac_count -gt 10 && break
3552 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3556 $ac_path_EGREP_found && break 3
3566 EGREP="$ac_cv_path_EGREP"
3567 if test -z "$EGREP"; then
3568 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3569 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3570 { (exit 1); exit 1; }; }
3574 ac_cv_path_EGREP=$EGREP
3580 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3581 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3582 EGREP="$ac_cv_path_EGREP"
3586 { echo "$as_me:$LINENO: checking for AIX" >&5
3587 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3588 cat >conftest.$ac_ext <<_ACEOF
3591 cat confdefs.h >>conftest.$ac_ext
3592 cat >>conftest.$ac_ext <<_ACEOF
3593 /* end confdefs.h. */
3599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3600 $EGREP "yes" >/dev/null 2>&1; then
3601 { echo "$as_me:$LINENO: result: yes" >&5
3602 echo "${ECHO_T}yes" >&6; }
3603 cat >>confdefs.h <<\_ACEOF
3604 #define _ALL_SOURCE 1
3608 { echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6; }
3614 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3615 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3616 if test "${ac_cv_header_stdc+set}" = set; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 cat >conftest.$ac_ext <<_ACEOF
3622 cat confdefs.h >>conftest.$ac_ext
3623 cat >>conftest.$ac_ext <<_ACEOF
3624 /* end confdefs.h. */
3638 rm -f conftest.$ac_objext
3639 if { (ac_try="$ac_compile"
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3645 (eval "$ac_compile") 2>conftest.er1
3647 grep -v '^ *+' conftest.er1 >conftest.err
3649 cat conftest.err >&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); } && {
3652 test -z "$ac_c_werror_flag" ||
3653 test ! -s conftest.err
3654 } && test -s conftest.$ac_objext; then
3655 ac_cv_header_stdc=yes
3657 echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 ac_cv_header_stdc=no
3663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 if test $ac_cv_header_stdc = yes; then
3666 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3667 cat >conftest.$ac_ext <<_ACEOF
3670 cat confdefs.h >>conftest.$ac_ext
3671 cat >>conftest.$ac_ext <<_ACEOF
3672 /* end confdefs.h. */
3676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3677 $EGREP "memchr" >/dev/null 2>&1; then
3680 ac_cv_header_stdc=no
3686 if test $ac_cv_header_stdc = yes; then
3687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3688 cat >conftest.$ac_ext <<_ACEOF
3691 cat confdefs.h >>conftest.$ac_ext
3692 cat >>conftest.$ac_ext <<_ACEOF
3693 /* end confdefs.h. */
3697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3698 $EGREP "free" >/dev/null 2>&1; then
3701 ac_cv_header_stdc=no
3707 if test $ac_cv_header_stdc = yes; then
3708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3709 if test "$cross_compiling" = yes; then
3712 cat >conftest.$ac_ext <<_ACEOF
3715 cat confdefs.h >>conftest.$ac_ext
3716 cat >>conftest.$ac_ext <<_ACEOF
3717 /* end confdefs.h. */
3720 #if ((' ' & 0x0FF) == 0x020)
3721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3724 # define ISLOWER(c) \
3725 (('a' <= (c) && (c) <= 'i') \
3726 || ('j' <= (c) && (c) <= 'r') \
3727 || ('s' <= (c) && (c) <= 'z'))
3728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3736 for (i = 0; i < 256; i++)
3737 if (XOR (islower (i), ISLOWER (i))
3738 || toupper (i) != TOUPPER (i))
3743 rm -f conftest$ac_exeext
3744 if { (ac_try="$ac_link"
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_link") 2>&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3754 { (case "(($ac_try" in
3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3756 *) ac_try_echo=$ac_try;;
3758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3759 (eval "$ac_try") 2>&5
3761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762 (exit $ac_status); }; }; then
3765 echo "$as_me: program exited with status $ac_status" >&5
3766 echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3770 ac_cv_header_stdc=no
3772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3778 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3779 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3780 if test $ac_cv_header_stdc = yes; then
3782 cat >>confdefs.h <<\_ACEOF
3783 #define STDC_HEADERS 1
3788 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3798 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3799 inttypes.h stdint.h unistd.h
3801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3805 echo $ECHO_N "(cached) $ECHO_C" >&6
3807 cat >conftest.$ac_ext <<_ACEOF
3810 cat confdefs.h >>conftest.$ac_ext
3811 cat >>conftest.$ac_ext <<_ACEOF
3812 /* end confdefs.h. */
3813 $ac_includes_default
3815 #include <$ac_header>
3817 rm -f conftest.$ac_objext
3818 if { (ac_try="$ac_compile"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_compile") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); } && {
3831 test -z "$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3833 } && test -s conftest.$ac_objext; then
3834 eval "$as_ac_Header=yes"
3836 echo "$as_me: failed program was:" >&5
3837 sed 's/^/| /' conftest.$ac_ext >&5
3839 eval "$as_ac_Header=no"
3842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844 ac_res=`eval echo '${'$as_ac_Header'}'`
3845 { echo "$as_me:$LINENO: result: $ac_res" >&5
3846 echo "${ECHO_T}$ac_res" >&6; }
3847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3848 cat >>confdefs.h <<_ACEOF
3849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3857 if test "${ac_cv_header_minix_config_h+set}" = set; then
3858 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3859 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3860 if test "${ac_cv_header_minix_config_h+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3864 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3866 # Is the header compilable?
3867 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3868 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
3869 cat >conftest.$ac_ext <<_ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875 $ac_includes_default
3876 #include <minix/config.h>
3878 rm -f conftest.$ac_objext
3879 if { (ac_try="$ac_compile"
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_compile") 2>conftest.er1
3887 grep -v '^ *+' conftest.er1 >conftest.err
3889 cat conftest.err >&5
3890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3891 (exit $ac_status); } && {
3892 test -z "$ac_c_werror_flag" ||
3893 test ! -s conftest.err
3894 } && test -s conftest.$ac_objext; then
3895 ac_header_compiler=yes
3897 echo "$as_me: failed program was:" >&5
3898 sed 's/^/| /' conftest.$ac_ext >&5
3900 ac_header_compiler=no
3903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3905 echo "${ECHO_T}$ac_header_compiler" >&6; }
3907 # Is the header present?
3908 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3909 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
3910 cat >conftest.$ac_ext <<_ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h. */
3916 #include <minix/config.h>
3918 if { (ac_try="$ac_cpp conftest.$ac_ext"
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3926 grep -v '^ *+' conftest.er1 >conftest.err
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } >/dev/null && {
3931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3932 test ! -s conftest.err
3934 ac_header_preproc=yes
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3939 ac_header_preproc=no
3942 rm -f conftest.err conftest.$ac_ext
3943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3944 echo "${ECHO_T}$ac_header_preproc" >&6; }
3946 # So? What about this header?
3947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3949 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3950 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3951 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3952 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3953 ac_header_preproc=yes
3956 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3957 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3958 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3959 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3960 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3961 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3962 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3963 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3964 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3965 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3966 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3967 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3969 ## ------------------------------- ##
3970 ## Report this to www.asterisk.org ##
3971 ## ------------------------------- ##
3973 ) | sed "s/^/$as_me: WARNING: /" >&2
3976 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
3977 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
3978 if test "${ac_cv_header_minix_config_h+set}" = set; then
3979 echo $ECHO_N "(cached) $ECHO_C" >&6
3981 ac_cv_header_minix_config_h=$ac_header_preproc
3983 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3984 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
3987 if test $ac_cv_header_minix_config_h = yes; then
3994 if test "$MINIX" = yes; then
3996 cat >>confdefs.h <<\_ACEOF
3997 #define _POSIX_SOURCE 1
4001 cat >>confdefs.h <<\_ACEOF
4002 #define _POSIX_1_SOURCE 2
4006 cat >>confdefs.h <<\_ACEOF
4022 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4023 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4024 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4025 echo $ECHO_N "(cached) $ECHO_C" >&6
4027 cat >conftest.$ac_ext <<_ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4034 # define __EXTENSIONS__ 1
4035 $ac_includes_default
4044 rm -f conftest.$ac_objext
4045 if { (ac_try="$ac_compile"
4047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_compile") 2>conftest.er1
4053 grep -v '^ *+' conftest.er1 >conftest.err
4055 cat conftest.err >&5
4056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4057 (exit $ac_status); } && {
4058 test -z "$ac_c_werror_flag" ||
4059 test ! -s conftest.err
4060 } && test -s conftest.$ac_objext; then
4061 ac_cv_safe_to_define___extensions__=yes
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 ac_cv_safe_to_define___extensions__=no
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4072 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4073 test $ac_cv_safe_to_define___extensions__ = yes &&
4074 cat >>confdefs.h <<\_ACEOF
4075 #define __EXTENSIONS__ 1
4078 cat >>confdefs.h <<\_ACEOF
4079 #define _POSIX_PTHREAD_SEMANTICS 1
4082 cat >>confdefs.h <<\_ACEOF
4083 #define _TANDEM_SOURCE 1
4086 # note- does not work on FreeBSD
4088 case "${host_os}" in
4090 ac_default_prefix=/usr/local
4091 CPPFLAGS=-I/usr/local/include
4092 LDFLAGS=-L/usr/local/lib
4095 ac_default_prefix=/usr/local
4096 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4097 if test ${sysconfdir} = '${prefix}/etc'; then
4100 if test ${mandir} = '${prefix}/man'; then
4101 mandir=/usr/share/man
4104 CPPFLAGS=-I/usr/local/include
4105 LDFLAGS=-L/usr/local/lib
4109 cat >>confdefs.h <<\_ACEOF
4110 #define AST_POLL_COMPAT 1
4115 ac_default_prefix=/usr
4116 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4117 if test ${sysconfdir} = '${prefix}/etc'; then
4120 if test ${mandir} = '${prefix}/man'; then
4121 mandir=/usr/share/man
4127 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4128 if test ${localstatedir} = '${prefix}/var'; then
4133 BUILD_PLATFORM=${build}
4134 BUILD_CPU=${build_cpu}
4135 BUILD_VENDOR=${build_vendor}
4136 BUILD_OS=${build_os}
4143 HOST_PLATFORM=${host}
4144 HOST_CPU=${host_cpu}
4145 HOST_VENDOR=${host_vendor}
4155 case "${host_os}" in
4185 if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4187 set dummy ${ac_tool_prefix}uname; ac_word=$2
4188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4190 if test "${ac_cv_path_UNAME+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4195 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir=.
4203 for ac_exec_ext in '' $ac_executable_extensions; do
4204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 UNAME=$ac_cv_path_UNAME
4217 if test -n "$UNAME"; then
4218 { echo "$as_me:$LINENO: result: $UNAME" >&5
4219 echo "${ECHO_T}$UNAME" >&6; }
4221 { echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6; }
4227 if test -z "$ac_cv_path_UNAME"; then
4229 # Extract the first word of "uname", so it can be a program name with args.
4230 set dummy uname; ac_word=$2
4231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4233 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4236 case $ac_pt_UNAME in
4238 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4260 if test -n "$ac_pt_UNAME"; then
4261 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4262 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4264 { echo "$as_me:$LINENO: result: no" >&5
4265 echo "${ECHO_T}no" >&6; }
4268 if test "x$ac_pt_UNAME" = x; then
4271 case $cross_compiling:$ac_tool_warned in
4273 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4274 whose name does not start with the host triplet. If you think this
4275 configuration is useful to you, please write to autoconf@gnu.org." >&5
4276 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4277 whose name does not start with the host triplet. If you think this
4278 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4279 ac_tool_warned=yes ;;
4284 UNAME="$ac_cv_path_UNAME"
4287 if test ! x"${UNAME}" = xNo; then
4288 PBX_OSREV=$(${UNAME} -r)
4298 # cross-compile checks
4299 if test "${cross_compiling}" = "yes";
4301 if test -n "$ac_tool_prefix"; then
4302 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4303 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4306 if test "${ac_cv_prog_CC+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 if test -n "$CC"; then
4310 ac_cv_prog_CC="$CC" # Let the user override the test.
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 test -z "$as_dir" && as_dir=.
4317 for ac_exec_ext in '' $ac_executable_extensions; do
4318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 if test -n "$CC"; then
4331 { echo "$as_me:$LINENO: result: $CC" >&5
4332 echo "${ECHO_T}$CC" >&6; }
4334 { echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6; }
4340 if test -z "$ac_cv_prog_CC"; then
4342 # Extract the first word of "gcc", so it can be a program name with args.
4343 set dummy gcc; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4349 if test -n "$ac_ct_CC"; then
4350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356 test -z "$as_dir" && as_dir=.
4357 for ac_exec_ext in '' $ac_executable_extensions; do
4358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359 ac_cv_prog_ac_ct_CC="gcc"
4360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4370 if test -n "$ac_ct_CC"; then
4371 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4372 echo "${ECHO_T}$ac_ct_CC" >&6; }
4374 { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4378 if test "x$ac_ct_CC" = x; then
4381 case $cross_compiling:$ac_tool_warned in
4383 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4384 whose name does not start with the host triplet. If you think this
4385 configuration is useful to you, please write to autoconf@gnu.org." >&5
4386 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4387 whose name does not start with the host triplet. If you think this
4388 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4389 ac_tool_warned=yes ;;
4397 if test -n "$ac_tool_prefix"; then
4398 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4399 set dummy ${ac_tool_prefix}g++; ac_word=$2
4400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4402 if test "${ac_cv_prog_CXX+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4405 if test -n "$CXX"; then
4406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 if test -n "$CXX"; then
4427 { echo "$as_me:$LINENO: result: $CXX" >&5
4428 echo "${ECHO_T}$CXX" >&6; }
4430 { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4436 if test -z "$ac_cv_prog_CXX"; then
4438 # Extract the first word of "g++", so it can be a program name with args.
4439 set dummy g++; ac_word=$2
4440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 if test -n "$ac_ct_CXX"; then
4446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4455 ac_cv_prog_ac_ct_CXX="g++"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4466 if test -n "$ac_ct_CXX"; then
4467 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4468 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4470 { echo "$as_me:$LINENO: result: no" >&5
4471 echo "${ECHO_T}no" >&6; }
4474 if test "x$ac_ct_CXX" = x; then
4477 case $cross_compiling:$ac_tool_warned in
4479 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4480 whose name does not start with the host triplet. If you think this
4481 configuration is useful to you, please write to autoconf@gnu.org." >&5
4482 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4483 whose name does not start with the host triplet. If you think this
4484 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4485 ac_tool_warned=yes ;;
4490 CXX="$ac_cv_prog_CXX"
4493 if test -n "$ac_tool_prefix"; then
4494 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4495 set dummy ${ac_tool_prefix}ld; ac_word=$2
4496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4498 if test "${ac_cv_prog_LD+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 if test -n "$LD"; then
4502 ac_cv_prog_LD="$LD" # Let the user override the test.
4504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508 test -z "$as_dir" && as_dir=.
4509 for ac_exec_ext in '' $ac_executable_extensions; do
4510 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4511 ac_cv_prog_LD="${ac_tool_prefix}ld"
4512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 if test -n "$LD"; then
4523 { echo "$as_me:$LINENO: result: $LD" >&5
4524 echo "${ECHO_T}$LD" >&6; }
4526 { echo "$as_me:$LINENO: result: no" >&5
4527 echo "${ECHO_T}no" >&6; }
4532 if test -z "$ac_cv_prog_LD"; then
4534 # Extract the first word of "ld", so it can be a program name with args.
4535 set dummy ld; ac_word=$2
4536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4538 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4539 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 if test -n "$ac_ct_LD"; then
4542 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_ac_ct_LD="ld"
4552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4562 if test -n "$ac_ct_LD"; then
4563 { echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4564 echo "${ECHO_T}$ac_ct_LD" >&6; }
4566 { echo "$as_me:$LINENO: result: no" >&5
4567 echo "${ECHO_T}no" >&6; }
4570 if test "x$ac_ct_LD" = x; then
4573 case $cross_compiling:$ac_tool_warned in
4575 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4576 whose name does not start with the host triplet. If you think this
4577 configuration is useful to you, please write to autoconf@gnu.org." >&5
4578 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4579 whose name does not start with the host triplet. If you think this
4580 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4581 ac_tool_warned=yes ;;
4589 if test -n "$ac_tool_prefix"; then
4590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4591 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_RANLIB+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$RANLIB"; then
4598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 RANLIB=$ac_cv_prog_RANLIB
4618 if test -n "$RANLIB"; then
4619 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4620 echo "${ECHO_T}$RANLIB" >&6; }
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4628 if test -z "$ac_cv_prog_RANLIB"; then
4629 ac_ct_RANLIB=$RANLIB
4630 # Extract the first word of "ranlib", so it can be a program name with args.
4631 set dummy ranlib; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 if test -n "$ac_ct_RANLIB"; then
4638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir=.
4645 for ac_exec_ext in '' $ac_executable_extensions; do
4646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4647 ac_cv_prog_ac_ct_RANLIB="ranlib"
4648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4658 if test -n "$ac_ct_RANLIB"; then
4659 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4660 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4662 { echo "$as_me:$LINENO: result: no" >&5
4663 echo "${ECHO_T}no" >&6; }
4666 if test "x$ac_ct_RANLIB" = x; then
4669 case $cross_compiling:$ac_tool_warned in
4671 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4672 whose name does not start with the host triplet. If you think this
4673 configuration is useful to you, please write to autoconf@gnu.org." >&5
4674 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4675 whose name does not start with the host triplet. If you think this
4676 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4677 ac_tool_warned=yes ;;
4679 RANLIB=$ac_ct_RANLIB
4682 RANLIB="$ac_cv_prog_RANLIB"
4687 # Checks for programs.
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 if test -n "$ac_tool_prefix"; then
4694 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4695 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4696 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4698 if test "${ac_cv_prog_CC+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 if test -n "$CC"; then
4702 ac_cv_prog_CC="$CC" # Let the user override the test.
4704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4708 test -z "$as_dir" && as_dir=.
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 if test -n "$CC"; then
4723 { echo "$as_me:$LINENO: result: $CC" >&5