2 # From configure.ac Revision: 285932 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61 for asterisk trunk.
6 # Report bugs to <https://issues.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='trunk'
581 PACKAGE_STRING='asterisk trunk'
582 PACKAGE_BUGREPORT='https://issues.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>
621 ac_default_prefix=/usr/local
622 ac_default_prefix=/usr/local
623 ac_default_prefix=/usr
634 program_transform_name
929 PRI_CALL_WAITING_INCLUDE
933 PRI_AOC_EVENTS_INCLUDE
945 PRI_HANGUP_FIX_INCLUDE
953 PRI_CALL_HOLD_INCLUDE
956 PRI_CALL_REROUTING_LIB
957 PRI_CALL_REROUTING_INCLUDE
958 PRI_CALL_REROUTING_DIR
959 PBX_PRI_CALL_REROUTING
961 PRI_SETUP_KEYPAD_INCLUDE
964 PRI_INBANDDISCONNECT_LIB
965 PRI_INBANDDISCONNECT_INCLUDE
966 PRI_INBANDDISCONNECT_DIR
967 PBX_PRI_INBANDDISCONNECT
969 PRI_PROG_W_CAUSE_INCLUDE
972 PRI_SERVICE_MESSAGES_LIB
973 PRI_SERVICE_MESSAGES_INCLUDE
974 PRI_SERVICE_MESSAGES_DIR
975 PBX_PRI_SERVICE_MESSAGES
976 PRI_REVERSE_CHARGE_LIB
977 PRI_REVERSE_CHARGE_INCLUDE
978 PRI_REVERSE_CHARGE_DIR
979 PBX_PRI_REVERSE_CHARGE
1013 SPEEX_PREPROCESS_LIB
1014 SPEEX_PREPROCESS_INCLUDE
1015 SPEEX_PREPROCESS_DIR
1016 PBX_SPEEX_PREPROCESS
1091 PBX_PTHREAD_RWLOCK_INITIALIZER
1092 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
1096 AST_DECLARATION_AFTER_STATEMENT
1098 AST_NO_STRICT_OVERFLOW
1106 PBX_MISDN_FAC_RESULT
1136 GENERIC_ODBC_INCLUDE
1138 PBX_SYSLOG_FACILITY_LOG_AUTH
1139 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
1140 PBX_SYSLOG_FACILITY_LOG_CRON
1141 PBX_SYSLOG_FACILITY_LOG_DAEMON
1142 PBX_SYSLOG_FACILITY_LOG_FTP
1143 PBX_SYSLOG_FACILITY_LOG_KERN
1144 PBX_SYSLOG_FACILITY_LOG_LPR
1145 PBX_SYSLOG_FACILITY_LOG_MAIL
1146 PBX_SYSLOG_FACILITY_LOG_NEWS
1147 PBX_SYSLOG_FACILITY_LOG_SYSLOG
1148 PBX_SYSLOG_FACILITY_LOG_UUCP
1152 ac_precious_vars='build_alias
1167 # Initialize some variables set by options.
1169 ac_init_version=false
1170 # The variables have the same names as the options, with
1171 # dashes changed to underlines.
1172 cache_file=/dev/null
1179 program_transform_name=s,x,x,
1187 # Installation directory options.
1188 # These are left unexpanded so users can "make install exec_prefix=/foo"
1189 # and all the variables that are supposed to be based on exec_prefix
1190 # by default will actually change.
1191 # Use braces instead of parens because sh, perl, etc. also accept them.
1192 # (The list follows the same order as the GNU Coding Standards.)
1193 bindir='${exec_prefix}/bin'
1194 sbindir='${exec_prefix}/sbin'
1195 libexecdir='${exec_prefix}/libexec'
1196 datarootdir='${prefix}/share'
1197 datadir='${datarootdir}'
1198 sysconfdir='${prefix}/etc'
1199 sharedstatedir='${prefix}/com'
1200 localstatedir='${prefix}/var'
1201 includedir='${prefix}/include'
1202 oldincludedir='/usr/include'
1203 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1204 infodir='${datarootdir}/info'
1209 libdir='${exec_prefix}/lib'
1210 localedir='${datarootdir}/locale'
1211 mandir='${datarootdir}/man'
1217 # If the previous option needs an argument, assign it.
1218 if test -n "$ac_prev"; then
1219 eval $ac_prev=\$ac_option
1225 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1229 # Accept the important Cygnus configure options, so we can diagnose typos.
1231 case $ac_dashdash$ac_option in
1235 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1237 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1238 bindir=$ac_optarg ;;
1240 -build | --build | --buil | --bui | --bu)
1241 ac_prev=build_alias ;;
1242 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1243 build_alias=$ac_optarg ;;
1245 -cache-file | --cache-file | --cache-fil | --cache-fi \
1246 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1247 ac_prev=cache_file ;;
1248 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1249 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1250 cache_file=$ac_optarg ;;
1252 --config-cache | -C)
1253 cache_file=config.cache ;;
1255 -datadir | --datadir | --datadi | --datad)
1257 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1258 datadir=$ac_optarg ;;
1260 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1261 | --dataroo | --dataro | --datar)
1262 ac_prev=datarootdir ;;
1263 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1264 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1265 datarootdir=$ac_optarg ;;
1267 -disable-* | --disable-*)
1268 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1272 { (exit 1); exit 1; }; }
1273 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1274 eval enable_$ac_feature=no ;;
1276 -docdir | --docdir | --docdi | --doc | --do)
1278 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1279 docdir=$ac_optarg ;;
1281 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1283 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1284 dvidir=$ac_optarg ;;
1286 -enable-* | --enable-*)
1287 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1290 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1291 { (exit 1); exit 1; }; }
1292 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1293 eval enable_$ac_feature=\$ac_optarg ;;
1295 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1296 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1297 | --exec | --exe | --ex)
1298 ac_prev=exec_prefix ;;
1299 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1300 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1301 | --exec=* | --exe=* | --ex=*)
1302 exec_prefix=$ac_optarg ;;
1304 -gas | --gas | --ga | --g)
1305 # Obsolete; use --with-gas.
1308 -help | --help | --hel | --he | -h)
1309 ac_init_help=long ;;
1310 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1311 ac_init_help=recursive ;;
1312 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1313 ac_init_help=short ;;
1315 -host | --host | --hos | --ho)
1316 ac_prev=host_alias ;;
1317 -host=* | --host=* | --hos=* | --ho=*)
1318 host_alias=$ac_optarg ;;
1320 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1322 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1324 htmldir=$ac_optarg ;;
1326 -includedir | --includedir | --includedi | --included | --include \
1327 | --includ | --inclu | --incl | --inc)
1328 ac_prev=includedir ;;
1329 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1330 | --includ=* | --inclu=* | --incl=* | --inc=*)
1331 includedir=$ac_optarg ;;
1333 -infodir | --infodir | --infodi | --infod | --info | --inf)
1335 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1336 infodir=$ac_optarg ;;
1338 -libdir | --libdir | --libdi | --libd)
1340 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1341 libdir=$ac_optarg ;;
1343 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1344 | --libexe | --libex | --libe)
1345 ac_prev=libexecdir ;;
1346 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1347 | --libexe=* | --libex=* | --libe=*)
1348 libexecdir=$ac_optarg ;;
1350 -localedir | --localedir | --localedi | --localed | --locale)
1351 ac_prev=localedir ;;
1352 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1353 localedir=$ac_optarg ;;
1355 -localstatedir | --localstatedir | --localstatedi | --localstated \
1356 | --localstate | --localstat | --localsta | --localst | --locals)
1357 ac_prev=localstatedir ;;
1358 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1359 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1360 localstatedir=$ac_optarg ;;
1362 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1364 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1365 mandir=$ac_optarg ;;
1367 -nfp | --nfp | --nf)
1368 # Obsolete; use --without-fp.
1371 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1372 | --no-cr | --no-c | -n)
1375 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1376 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1379 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1380 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1381 | --oldin | --oldi | --old | --ol | --o)
1382 ac_prev=oldincludedir ;;
1383 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1384 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1385 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1386 oldincludedir=$ac_optarg ;;
1388 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1390 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1391 prefix=$ac_optarg ;;
1393 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1394 | --program-pre | --program-pr | --program-p)
1395 ac_prev=program_prefix ;;
1396 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1397 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1398 program_prefix=$ac_optarg ;;
1400 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1401 | --program-suf | --program-su | --program-s)
1402 ac_prev=program_suffix ;;
1403 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1404 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1405 program_suffix=$ac_optarg ;;
1407 -program-transform-name | --program-transform-name \
1408 | --program-transform-nam | --program-transform-na \
1409 | --program-transform-n | --program-transform- \
1410 | --program-transform | --program-transfor \
1411 | --program-transfo | --program-transf \
1412 | --program-trans | --program-tran \
1413 | --progr-tra | --program-tr | --program-t)
1414 ac_prev=program_transform_name ;;
1415 -program-transform-name=* | --program-transform-name=* \
1416 | --program-transform-nam=* | --program-transform-na=* \
1417 | --program-transform-n=* | --program-transform-=* \
1418 | --program-transform=* | --program-transfor=* \
1419 | --program-transfo=* | --program-transf=* \
1420 | --program-trans=* | --program-tran=* \
1421 | --progr-tra=* | --program-tr=* | --program-t=*)
1422 program_transform_name=$ac_optarg ;;
1424 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1426 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1427 pdfdir=$ac_optarg ;;
1429 -psdir | --psdir | --psdi | --psd | --ps)
1431 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1434 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1435 | -silent | --silent | --silen | --sile | --sil)
1438 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1440 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1442 sbindir=$ac_optarg ;;
1444 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1445 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1446 | --sharedst | --shareds | --shared | --share | --shar \
1448 ac_prev=sharedstatedir ;;
1449 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1450 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1451 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1453 sharedstatedir=$ac_optarg ;;
1455 -site | --site | --sit)
1457 -site=* | --site=* | --sit=*)
1460 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1462 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1463 srcdir=$ac_optarg ;;
1465 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1466 | --syscon | --sysco | --sysc | --sys | --sy)
1467 ac_prev=sysconfdir ;;
1468 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1469 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1470 sysconfdir=$ac_optarg ;;
1472 -target | --target | --targe | --targ | --tar | --ta | --t)
1473 ac_prev=target_alias ;;
1474 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1475 target_alias=$ac_optarg ;;
1477 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1480 -version | --version | --versio | --versi | --vers | -V)
1481 ac_init_version=: ;;
1484 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1485 # Reject names that are not valid shell variable names.
1486 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1487 { echo "$as_me: error: invalid package name: $ac_package" >&2
1488 { (exit 1); exit 1; }; }
1489 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1490 eval with_$ac_package=\$ac_optarg ;;
1492 -without-* | --without-*)
1493 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1494 # Reject names that are not valid shell variable names.
1495 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1496 { echo "$as_me: error: invalid package name: $ac_package" >&2
1497 { (exit 1); exit 1; }; }
1498 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1499 eval with_$ac_package=no ;;
1502 # Obsolete; use --with-x.
1505 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1506 | --x-incl | --x-inc | --x-in | --x-i)
1507 ac_prev=x_includes ;;
1508 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1509 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1510 x_includes=$ac_optarg ;;
1512 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1513 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1514 ac_prev=x_libraries ;;
1515 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1516 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1517 x_libraries=$ac_optarg ;;
1519 -*) { echo "$as_me: error: unrecognized option: $ac_option
1520 Try \`$0 --help' for more information." >&2
1521 { (exit 1); exit 1; }; }
1525 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1526 # Reject names that are not valid shell variable names.
1527 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1528 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1529 { (exit 1); exit 1; }; }
1530 eval $ac_envvar=\$ac_optarg
1531 export $ac_envvar ;;
1534 # FIXME: should be removed in autoconf 3.0.
1535 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1536 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1537 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1538 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1544 if test -n "$ac_prev"; then
1545 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1546 { echo "$as_me: error: missing argument to $ac_option" >&2
1547 { (exit 1); exit 1; }; }
1550 # Be sure to have absolute directory names.
1551 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1552 datadir sysconfdir sharedstatedir localstatedir includedir \
1553 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1554 libdir localedir mandir
1556 eval ac_val=\$$ac_var
1558 [\\/$]* | ?:[\\/]* ) continue;;
1559 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1561 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1562 { (exit 1); exit 1; }; }
1565 # There might be people who depend on the old broken behavior: `$host'
1566 # used to hold the argument of --host etc.
1567 # FIXME: To remove some day.
1570 target=$target_alias
1572 # FIXME: To remove some day.
1573 if test "x$host_alias" != x; then
1574 if test "x$build_alias" = x; then
1575 cross_compiling=maybe
1576 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1577 If a cross compiler is detected then cross compile mode will be used." >&2
1578 elif test "x$build_alias" != "x$host_alias"; then
1584 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1586 test "$silent" = yes && exec 6>/dev/null
1589 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1590 ac_ls_di=`ls -di .` &&
1591 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1592 { echo "$as_me: error: Working directory cannot be determined" >&2
1593 { (exit 1); exit 1; }; }
1594 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1595 { echo "$as_me: error: pwd does not report name of working directory" >&2
1596 { (exit 1); exit 1; }; }
1599 # Find the source files, if location was not specified.
1600 if test -z "$srcdir"; then
1601 ac_srcdir_defaulted=yes
1602 # Try the directory containing this script, then the parent directory.
1603 ac_confdir=`$as_dirname -- "$0" ||
1604 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1605 X"$0" : 'X\(//\)[^/]' \| \
1606 X"$0" : 'X\(//\)$' \| \
1607 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1627 if test ! -r "$srcdir/$ac_unique_file"; then
1631 ac_srcdir_defaulted=no
1633 if test ! -r "$srcdir/$ac_unique_file"; then
1634 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1635 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1636 { (exit 1); exit 1; }; }
1638 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1640 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1641 { (exit 1); exit 1; }; }
1643 # When building in place, set srcdir=.
1644 if test "$ac_abs_confdir" = "$ac_pwd"; then
1647 # Remove unnecessary trailing slashes from srcdir.
1648 # Double slashes in file names in object file debugging info
1649 # mess up M-x gdb in Emacs.
1651 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1653 for ac_var in $ac_precious_vars; do
1654 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1655 eval ac_env_${ac_var}_value=\$${ac_var}
1656 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1657 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1661 # Report the --help message.
1663 if test "$ac_init_help" = "long"; then
1664 # Omit some internal or obsolete options to make the list less imposing.
1665 # This message is too long to be a string in the A/UX 3.1 sh.
1667 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1669 Usage: $0 [OPTION]... [VAR=VALUE]...
1671 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1672 VAR=VALUE. See below for descriptions of some of the useful variables.
1674 Defaults for the options are specified in brackets.
1677 -h, --help display this help and exit
1678 --help=short display options specific to this package
1679 --help=recursive display the short help of all the included packages
1680 -V, --version display version information and exit
1681 -q, --quiet, --silent do not print \`checking...' messages
1682 --cache-file=FILE cache test results in FILE [disabled]
1683 -C, --config-cache alias for \`--cache-file=config.cache'
1684 -n, --no-create do not create output files
1685 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1687 Installation directories:
1688 --prefix=PREFIX install architecture-independent files in PREFIX
1689 [$ac_default_prefix]
1690 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1693 By default, \`make install' will install all the files in
1694 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1695 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1696 for instance \`--prefix=\$HOME'.
1698 For better control, use the options below.
1700 Fine tuning of the installation directories:
1701 --bindir=DIR user executables [EPREFIX/bin]
1702 --sbindir=DIR system admin executables [EPREFIX/sbin]
1703 --libexecdir=DIR program executables [EPREFIX/libexec]
1704 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1705 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1706 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1707 --libdir=DIR object code libraries [EPREFIX/lib]
1708 --includedir=DIR C header files [PREFIX/include]
1709 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1710 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1711 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1712 --infodir=DIR info documentation [DATAROOTDIR/info]
1713 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1714 --mandir=DIR man documentation [DATAROOTDIR/man]
1715 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1716 --htmldir=DIR html documentation [DOCDIR]
1717 --dvidir=DIR dvi documentation [DOCDIR]
1718 --pdfdir=DIR pdf documentation [DOCDIR]
1719 --psdir=DIR ps documentation [DOCDIR]
1725 --build=BUILD configure for building on BUILD [guessed]
1726 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1730 if test -n "$ac_init_help"; then
1731 case $ac_init_help in
1732 short | recursive ) echo "Configuration of asterisk trunk:";;
1737 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1738 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1739 --enable-dev-mode Turn on developer mode
1740 --enable-coverage Turn on code coverage tracking (for gcov)
1741 --disable-largefile omit support for large files
1742 --enable-internal-poll Use Asterisk's poll implementation
1743 --disable-xmldoc Explicity disable XML documentation
1746 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1747 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1748 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1749 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1750 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1751 --with-bluetooth=PATH use Bluetooth files in PATH
1752 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1753 --with-curses=PATH use curses files in PATH
1754 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1755 --with-dahdi=PATH use DAHDI files in PATH
1756 --with-execinfo=PATH use Stack Backtrace files in PATH
1757 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1759 --with-gtk2=PATH use gtk2 files in PATH
1760 --with-gmime=PATH use GMime files in PATH
1761 --with-h323=PATH use OpenH323 files in PATH
1762 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1763 --with-ical=PATH use iCal files in PATH
1764 --with-iconv=PATH use Iconv files in PATH
1765 --with-iksemel=PATH use Iksemel Jabber files in PATH
1766 --with-imap=PATH use UW IMAP Toolkit files in PATH
1767 --with-inotify=PATH use inotify support files in PATH
1768 --with-iodbc=PATH use iODBC files in PATH
1769 --with-isdnnet=PATH use ISDN4Linux files in PATH
1770 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1771 --with-kqueue=PATH use kqueue support files in PATH
1772 --with-ldap=PATH use OpenLDAP files in PATH
1773 --with-libcurl=DIR look for the curl library in DIR
1774 --with-libxml2=PATH use LibXML2 files in PATH
1775 --with-ltdl=PATH use libtool files in PATH
1776 --with-lua=PATH use Lua files in PATH
1777 --with-misdn=PATH use mISDN user files in PATH
1778 --with-mysqlclient=PATH use MySQL client files in PATH
1779 --with-nbs=PATH use Network Broadcast Sound files in PATH
1780 --with-ncurses=PATH use ncurses files in PATH
1781 --with-neon=PATH use neon files in PATH
1782 --with-neon29=PATH use neon29 files in PATH
1783 --with-netsnmp=PATH use Net-SNMP files in PATH
1784 --with-newt=PATH use newt files in PATH
1785 --with-ogg=PATH use OGG files in PATH
1786 --with-openais=PATH use OpenAIS files in PATH
1787 --with-openr2=PATH use MFR2 files in PATH
1788 --with-osptk=PATH use OSP Toolkit files in PATH
1789 --with-oss=PATH use Open Sound System files in PATH
1790 --with-postgres=PATH use PostgreSQL files in PATH
1791 --with-popt=PATH use popt files in PATH
1792 --with-portaudio=PATH use PortAudio files in PATH
1793 --with-pri=PATH use ISDN PRI files in PATH
1794 --with-pwlib=PATH use PWlib files in PATH
1795 --with-radius=PATH use Radius Client files in PATH
1796 --with-resample=PATH use LIBRESAMPLE files in PATH
1797 --with-sdl=PATH use Sdl files in PATH
1798 --with-SDL_image=PATH use Sdl Image files in PATH
1799 --with-sounds-cache=PATH
1800 use cached sound tarfiles in PATH
1801 --with-spandsp=PATH use SPANDSP files in PATH
1802 --with-ss7=PATH use ISDN SS7 files in PATH
1803 --with-speex=PATH use Speex files in PATH
1804 --with-speex=PATH use Speex preprocess routines files in PATH
1805 --with-speexdsp=PATH use SpeexDSP files in PATH
1806 --with-sqlite=PATH use SQLite files in PATH
1807 --with-sqlite3=PATH use SQLite files in PATH
1808 --with-srtp=PATH use Secure RTP files in PATH
1809 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1810 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1811 --with-tds=PATH use FreeTDS files in PATH
1812 --with-termcap=PATH use Termcap files in PATH
1813 --with-timerfd=PATH use timerfd files in PATH
1814 --with-tinfo=PATH use Term Info files in PATH
1815 --with-tonezone=PATH use tonezone files in PATH
1816 --with-unixodbc=PATH use unixODBC files in PATH
1817 --with-usb=PATH use usb files in PATH
1818 --with-vorbis=PATH use Vorbis files in PATH
1819 --with-vpb=PATH use Voicetronix API files in PATH
1820 --with-x11=PATH use X11 files in PATH
1821 --with-z=PATH use zlib compression files in PATH
1823 Some influential environment variables:
1824 CC C compiler command
1825 CFLAGS C compiler flags
1826 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1827 nonstandard directory <lib dir>
1828 LIBS libraries to pass to the linker, e.g. -l<library>
1829 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1830 you have headers in a nonstandard directory <include dir>
1832 CXX C++ compiler command
1833 CXXFLAGS C++ compiler flags
1834 CXXCPP C++ preprocessor
1836 Use these variables to override the choices made by `configure' or to help
1837 it to find libraries and programs with nonstandard names/locations.
1839 Report bugs to <https://issues.asterisk.org>.
1844 if test "$ac_init_help" = "recursive"; then
1845 # If there are subdirs, report their specific --help.
1846 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1847 test -d "$ac_dir" || continue
1851 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1853 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1854 # A ".." for each directory in $ac_dir_suffix.
1855 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1856 case $ac_top_builddir_sub in
1857 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1858 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1861 ac_abs_top_builddir=$ac_pwd
1862 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1863 # for backward compatibility:
1864 ac_top_builddir=$ac_top_build_prefix
1867 .) # We are building in place.
1869 ac_top_srcdir=$ac_top_builddir_sub
1870 ac_abs_top_srcdir=$ac_pwd ;;
1871 [\\/]* | ?:[\\/]* ) # Absolute name.
1872 ac_srcdir=$srcdir$ac_dir_suffix;
1873 ac_top_srcdir=$srcdir
1874 ac_abs_top_srcdir=$srcdir ;;
1876 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1877 ac_top_srcdir=$ac_top_build_prefix$srcdir
1878 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1880 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1882 cd "$ac_dir" || { ac_status=$?; continue; }
1883 # Check for guested configure.
1884 if test -f "$ac_srcdir/configure.gnu"; then
1886 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1887 elif test -f "$ac_srcdir/configure"; then
1889 $SHELL "$ac_srcdir/configure" --help=recursive
1891 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1893 cd "$ac_pwd" || { ac_status=$?; break; }
1897 test -n "$ac_init_help" && exit $ac_status
1898 if $ac_init_version; then
1900 asterisk configure trunk
1901 generated by GNU Autoconf 2.61
1903 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1904 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1905 This configure script is free software; the Free Software Foundation
1906 gives unlimited permission to copy, distribute and modify it.
1912 cat >config.log <<_ACEOF
1913 This file contains any messages produced by compilers while
1914 running configure, to aid debugging if configure makes a mistake.
1916 It was created by asterisk $as_me trunk, which was
1917 generated by GNU Autoconf 2.61. Invocation command line was
1929 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1935 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1938 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1939 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1940 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1941 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1942 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1943 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1944 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952 test -z "$as_dir" && as_dir=.
1953 echo "PATH: $as_dir"
1969 # Keep a trace of the command line.
1970 # Strip out --no-create and --no-recursion so they do not pile up.
1971 # Strip out --silent because we don't want to record it for future runs.
1972 # Also quote any args containing shell meta-characters.
1973 # Make two passes to allow for proper duplicate-argument suppression.
1977 ac_must_keep_next=false
1983 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985 | -silent | --silent | --silen | --sile | --sil)
1988 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1991 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1993 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1994 if test $ac_must_keep_next = true; then
1995 ac_must_keep_next=false # Got value, back to normal.
1998 *=* | --config-cache | -C | -disable-* | --disable-* \
1999 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001 | -with-* | --with-* | -without-* | --without-* | --x)
2002 case "$ac_configure_args0 " in
2003 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2006 -* ) ac_must_keep_next=true ;;
2009 ac_configure_args="$ac_configure_args '$ac_arg'"
2014 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2015 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2017 # When interrupted or exit'd, cleanup temporary files, and complete
2018 # config.log. We remove comments because anyway the quotes in there
2019 # would cause problems or look ugly.
2020 # WARNING: Use '\'' to represent an apostrophe within the trap.
2021 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022 trap 'exit_status=$?
2023 # Save into config.log some information that might help in debugging.
2028 ## ---------------- ##
2029 ## Cache variables. ##
2030 ## ---------------- ##
2033 # The following way of writing the cache mishandles newlines in values,
2035 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2036 eval ac_val=\$$ac_var
2040 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2041 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2044 _ | IFS | as_nl) ;; #(
2045 *) $as_unset $ac_var ;;
2050 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2051 *${as_nl}ac_space=\ *)
2053 "s/'\''/'\''\\\\'\'''\''/g;
2054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2065 ## ----------------- ##
2066 ## Output variables. ##
2067 ## ----------------- ##
2070 for ac_var in $ac_subst_vars
2072 eval ac_val=\$$ac_var
2074 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2076 echo "$ac_var='\''$ac_val'\''"
2080 if test -n "$ac_subst_files"; then
2082 ## ------------------- ##
2083 ## File substitutions. ##
2084 ## ------------------- ##
2087 for ac_var in $ac_subst_files
2089 eval ac_val=\$$ac_var
2091 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093 echo "$ac_var='\''$ac_val'\''"
2098 if test -s confdefs.h; then
2108 test "$ac_signal" != 0 &&
2109 echo "$as_me: caught signal $ac_signal"
2110 echo "$as_me: exit $exit_status"
2112 rm -f core *.core core.conftest.* &&
2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2116 for ac_signal in 1 2 13 15; do
2117 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2121 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2122 rm -f -r conftest* confdefs.h
2124 # Predefined preprocessor variables.
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_NAME "$PACKAGE_NAME"
2131 cat >>confdefs.h <<_ACEOF
2132 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_STRING "$PACKAGE_STRING"
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2151 # Let the site file select an alternate cache file if it wants to.
2152 # Prefer explicitly selected file to automatically selected ones.
2153 if test -n "$CONFIG_SITE"; then
2154 set x "$CONFIG_SITE"
2155 elif test "x$prefix" != xNONE; then
2156 set x "$prefix/share/config.site" "$prefix/etc/config.site"
2158 set x "$ac_default_prefix/share/config.site" \
2159 "$ac_default_prefix/etc/config.site"
2164 if test -r "$ac_site_file"; then
2165 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2166 echo "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2172 if test -r "$cache_file"; then
2173 # Some versions of bash will fail to source /dev/null (special
2174 # files actually), so we avoid doing that.
2175 if test -f "$cache_file"; then
2176 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2177 echo "$as_me: loading cache $cache_file" >&6;}
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2180 *) . "./$cache_file";;
2184 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2185 echo "$as_me: creating cache $cache_file" >&6;}
2189 ac_header_list="$ac_header_list utime.h"
2190 # Check that the precious variables saved in the cache have kept the same
2192 ac_cache_corrupted=false
2193 for ac_var in $ac_precious_vars; do
2194 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2195 eval ac_new_set=\$ac_env_${ac_var}_set
2196 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2197 eval ac_new_val=\$ac_env_${ac_var}_value
2198 case $ac_old_set,$ac_new_set in
2200 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2201 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2202 ac_cache_corrupted=: ;;
2204 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2205 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2206 ac_cache_corrupted=: ;;
2209 if test "x$ac_old_val" != "x$ac_new_val"; then
2210 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2211 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2212 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2213 echo "$as_me: former value: $ac_old_val" >&2;}
2214 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2215 echo "$as_me: current value: $ac_new_val" >&2;}
2216 ac_cache_corrupted=:
2219 # Pass precious variables to config.status.
2220 if test "$ac_new_set" = set; then
2222 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2223 *) ac_arg=$ac_var=$ac_new_val ;;
2225 case " $ac_configure_args " in
2226 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2227 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2231 if $ac_cache_corrupted; then
2232 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2233 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2234 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2235 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2236 { (exit 1); exit 1; }; }
2264 ac_cpp='$CPP $CPPFLAGS'
2265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2271 # cross-compile macros
2273 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2274 if test -f "$ac_dir/install-sh"; then
2276 ac_install_sh="$ac_aux_dir/install-sh -c"
2278 elif test -f "$ac_dir/install.sh"; then
2280 ac_install_sh="$ac_aux_dir/install.sh -c"
2282 elif test -f "$ac_dir/shtool"; then
2284 ac_install_sh="$ac_aux_dir/shtool install -c"
2288 if test -z "$ac_aux_dir"; then
2289 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2290 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2291 { (exit 1); exit 1; }; }
2294 # These three variables are undocumented and unsupported,
2295 # and are intended to be withdrawn in a future Autoconf release.
2296 # They can cause serious problems if a builder's source tree is in a directory
2297 # whose full name contains unusual characters.
2298 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2299 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2300 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2303 # Make sure we can run config.sub.
2304 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2305 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2306 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2307 { (exit 1); exit 1; }; }
2309 { echo "$as_me:$LINENO: checking build system type" >&5
2310 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2311 if test "${ac_cv_build+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 ac_build_alias=$build_alias
2315 test "x$ac_build_alias" = x &&
2316 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2317 test "x$ac_build_alias" = x &&
2318 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2319 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2320 { (exit 1); exit 1; }; }
2321 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2322 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2323 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2324 { (exit 1); exit 1; }; }
2327 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2328 echo "${ECHO_T}$ac_cv_build" >&6; }
2329 case $ac_cv_build in
2331 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2332 echo "$as_me: error: invalid value of canonical build" >&2;}
2333 { (exit 1); exit 1; }; };;
2336 ac_save_IFS=$IFS; IFS='-'
2342 # Remember, the first character of IFS is used to create $*,
2343 # except with old shells:
2346 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2349 { echo "$as_me:$LINENO: checking host system type" >&5
2350 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2351 if test "${ac_cv_host+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test "x$host_alias" = x; then
2355 ac_cv_host=$ac_cv_build
2357 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2358 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2359 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2360 { (exit 1); exit 1; }; }
2364 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2365 echo "${ECHO_T}$ac_cv_host" >&6; }
2368 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2369 echo "$as_me: error: invalid value of canonical host" >&2;}
2370 { (exit 1); exit 1; }; };;
2373 ac_save_IFS=$IFS; IFS='-'
2379 # Remember, the first character of IFS is used to create $*,
2380 # except with old shells:
2383 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2387 # check existence of the package
2391 for ac_dir in `pwd` "$srcdir"/`pwd`; do
2392 if test -f "$ac_dir/install-sh"; then
2394 ac_install_sh="$ac_aux_dir/install-sh -c"
2396 elif test -f "$ac_dir/install.sh"; then
2398 ac_install_sh="$ac_aux_dir/install.sh -c"
2400 elif test -f "$ac_dir/shtool"; then
2402 ac_install_sh="$ac_aux_dir/shtool install -c"
2406 if test -z "$ac_aux_dir"; then
2407 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&5
2408 echo "$as_me: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&2;}
2409 { (exit 1); exit 1; }; }
2412 # These three variables are undocumented and unsupported,
2413 # and are intended to be withdrawn in a future Autoconf release.
2414 # They can cause serious problems if a builder's source tree is in a directory
2415 # whose full name contains unusual characters.
2416 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2417 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2418 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2425 # preserve any CFLAGS or LDFLAGS that may be set
2426 # NOTE: This must be done before calling any macros that end up
2427 # calling AC_PROG_CC or the like, since they will set a default
2428 # set of CFLAGS ("-g -O2") if the user did not supply any, and
2429 # we don't want those default flags to be carried over into the
2430 # rest of the build system since we have other means of controlling
2431 # debugging symbol generation and optimization.
2432 CONFIG_CFLAGS="${CFLAGS}"
2433 CONFIG_LDFLAGS="${LDFLAGS}"
2437 # specify output header file
2438 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2442 cat >>confdefs.h <<\_ACEOF
2443 #define _GNU_SOURCE 1
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452 if test -n "$ac_tool_prefix"; then
2453 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2454 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2457 if test "${ac_cv_prog_CC+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 if test -n "$CC"; then
2461 ac_cv_prog_CC="$CC" # Let the user override the test.
2463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467 test -z "$as_dir" && as_dir=.
2468 for ac_exec_ext in '' $ac_executable_extensions; do
2469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2470 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 if test -n "$CC"; then
2482 { echo "$as_me:$LINENO: result: $CC" >&5
2483 echo "${ECHO_T}$CC" >&6; }
2485 { echo "$as_me:$LINENO: result: no" >&5
2486 echo "${ECHO_T}no" >&6; }
2491 if test -z "$ac_cv_prog_CC"; then
2493 # Extract the first word of "gcc", so it can be a program name with args.
2494 set dummy gcc; ac_word=$2
2495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2498 echo $ECHO_N "(cached) $ECHO_C" >&6
2500 if test -n "$ac_ct_CC"; then
2501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2507 test -z "$as_dir" && as_dir=.
2508 for ac_exec_ext in '' $ac_executable_extensions; do
2509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2510 ac_cv_prog_ac_ct_CC="gcc"
2511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2521 if test -n "$ac_ct_CC"; then
2522 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2523 echo "${ECHO_T}$ac_ct_CC" >&6; }
2525 { echo "$as_me:$LINENO: result: no" >&5
2526 echo "${ECHO_T}no" >&6; }
2529 if test "x$ac_ct_CC" = x; then
2532 case $cross_compiling:$ac_tool_warned in
2534 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2535 whose name does not start with the host triplet. If you think this
2536 configuration is useful to you, please write to autoconf@gnu.org." >&5
2537 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2538 whose name does not start with the host triplet. If you think this
2539 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2540 ac_tool_warned=yes ;;
2548 if test -z "$CC"; then
2549 if test -n "$ac_tool_prefix"; then
2550 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2551 set dummy ${ac_tool_prefix}cc; ac_word=$2
2552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2554 if test "${ac_cv_prog_CC+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 if test -n "$CC"; then
2558 ac_cv_prog_CC="$CC" # Let the user override the test.
2560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2564 test -z "$as_dir" && as_dir=.
2565 for ac_exec_ext in '' $ac_executable_extensions; do
2566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2567 ac_cv_prog_CC="${ac_tool_prefix}cc"
2568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 if test -n "$CC"; then
2579 { echo "$as_me:$LINENO: result: $CC" >&5
2580 echo "${ECHO_T}$CC" >&6; }
2582 { echo "$as_me:$LINENO: result: no" >&5
2583 echo "${ECHO_T}no" >&6; }
2589 if test -z "$CC"; then
2590 # Extract the first word of "cc", so it can be a program name with args.
2591 set dummy cc; ac_word=$2
2592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2594 if test "${ac_cv_prog_CC+set}" = set; then
2595 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 if test -n "$CC"; then
2598 ac_cv_prog_CC="$CC" # Let the user override the test.
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir=.
2606 for ac_exec_ext in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2609 ac_prog_rejected=yes
2613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 if test $ac_prog_rejected = yes; then
2621 # We found a bogon in the path, so make sure we never use it.
2622 set dummy $ac_cv_prog_CC
2624 if test $# != 0; then
2625 # We chose a different compiler from the bogus one.
2626 # However, it has the same basename, so the bogon will be chosen
2627 # first if we set CC to just the basename; use the full file name.
2629 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2635 if test -n "$CC"; then
2636 { echo "$as_me:$LINENO: result: $CC" >&5
2637 echo "${ECHO_T}$CC" >&6; }
2639 { echo "$as_me:$LINENO: result: no" >&5
2640 echo "${ECHO_T}no" >&6; }
2645 if test -z "$CC"; then
2646 if test -n "$ac_tool_prefix"; then
2647 for ac_prog in cl.exe
2649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2653 if test "${ac_cv_prog_CC+set}" = set; then
2654 echo $ECHO_N "(cached) $ECHO_C" >&6
2656 if test -n "$CC"; then
2657 ac_cv_prog_CC="$CC" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 if test -n "$CC"; then
2678 { echo "$as_me:$LINENO: result: $CC" >&5
2679 echo "${ECHO_T}$CC" >&6; }
2681 { echo "$as_me:$LINENO: result: no" >&5
2682 echo "${ECHO_T}no" >&6; }
2686 test -n "$CC" && break
2689 if test -z "$CC"; then
2691 for ac_prog in cl.exe
2693 # Extract the first word of "$ac_prog", so it can be a program name with args.
2694 set dummy $ac_prog; ac_word=$2
2695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2698 echo $ECHO_N "(cached) $ECHO_C" >&6
2700 if test -n "$ac_ct_CC"; then
2701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for ac_exec_ext in '' $ac_executable_extensions; do
2709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2710 ac_cv_prog_ac_ct_CC="$ac_prog"
2711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2721 if test -n "$ac_ct_CC"; then
2722 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2723 echo "${ECHO_T}$ac_ct_CC" >&6; }
2725 { echo "$as_me:$LINENO: result: no" >&5
2726 echo "${ECHO_T}no" >&6; }
2730 test -n "$ac_ct_CC" && break
2733 if test "x$ac_ct_CC" = x; then
2736 case $cross_compiling:$ac_tool_warned in
2738 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2739 whose name does not start with the host triplet. If you think this
2740 configuration is useful to you, please write to autoconf@gnu.org." >&5
2741 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2742 whose name does not start with the host triplet. If you think this
2743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2744 ac_tool_warned=yes ;;
2753 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2754 See \`config.log' for more details." >&5
2755 echo "$as_me: error: no acceptable C compiler found in \$PATH
2756 See \`config.log' for more details." >&2;}
2757 { (exit 1); exit 1; }; }
2759 # Provide some information about the compiler.
2760 echo "$as_me:$LINENO: checking for C compiler version" >&5
2761 ac_compiler=`set X $ac_compile; echo $2`
2762 { (ac_try="$ac_compiler --version >&5"
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_compiler --version >&5") 2>&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }
2772 { (ac_try="$ac_compiler -v >&5"
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compiler -v >&5") 2>&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); }
2782 { (ac_try="$ac_compiler -V >&5"
2784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2785 *) ac_try_echo=$ac_try;;
2787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2788 (eval "$ac_compiler -V >&5") 2>&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); }
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2808 ac_clean_files_save=$ac_clean_files
2809 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2810 # Try to create an executable without -o first, disregard a.out.
2811 # It will help us diagnose broken compilers, and finding out an intuition
2813 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2814 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2815 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2817 # List of possible output files, starting from the most likely.
2818 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2819 # only as a last resort. b.out is created by i960 compilers.
2820 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2822 # The IRIX 6 linker writes into existing files which may not be
2823 # executable, retaining their permissions. Remove them first so a
2824 # subsequent execution test works.
2826 for ac_file in $ac_files
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2830 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2835 if { (ac_try="$ac_link_default"
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2841 (eval "$ac_link_default") 2>&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); }; then
2845 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2846 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2847 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2848 # so that the user can short-circuit this test for compilers unknown to
2850 for ac_file in $ac_files ''
2852 test -f "$ac_file" || continue
2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2857 # We found the default executable, but exeext='' is most
2861 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2863 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2865 # We set ac_cv_exeext here because the later test for it is not
2866 # safe: cross compilers may not add the suffix if given an `-o'
2867 # argument, so we may need to know it at that point already.
2868 # Even if this section looks crufty: it has the advantage of
2875 test "$ac_cv_exeext" = no && ac_cv_exeext=
2881 { echo "$as_me:$LINENO: result: $ac_file" >&5
2882 echo "${ECHO_T}$ac_file" >&6; }
2883 if test -z "$ac_file"; then
2884 echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2887 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2888 See \`config.log' for more details." >&5
2889 echo "$as_me: error: C compiler cannot create executables
2890 See \`config.log' for more details." >&2;}
2891 { (exit 77); exit 77; }; }
2894 ac_exeext=$ac_cv_exeext
2896 # Check that the compiler produces executables we can run. If not, either
2897 # the compiler is broken, or we cross compile.
2898 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2899 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2900 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2901 # If not cross compiling, check that we can run a simple program.
2902 if test "$cross_compiling" != yes; then
2903 if { ac_try='./$ac_file'
2904 { (case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_try") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }; }; then
2915 if test "$cross_compiling" = maybe; then
2918 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2919 If you meant to cross compile, use \`--host'.
2920 See \`config.log' for more details." >&5
2921 echo "$as_me: error: cannot run C compiled programs.
2922 If you meant to cross compile, use \`--host'.
2923 See \`config.log' for more details." >&2;}
2924 { (exit 1); exit 1; }; }
2928 { echo "$as_me:$LINENO: result: yes" >&5
2929 echo "${ECHO_T}yes" >&6; }
2931 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2932 ac_clean_files=$ac_clean_files_save
2933 # Check that the compiler produces executables we can run. If not, either
2934 # the compiler is broken, or we cross compile.
2935 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2936 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2937 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2938 echo "${ECHO_T}$cross_compiling" >&6; }
2940 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2941 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2942 if { (ac_try="$ac_link"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_link") 2>&5
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; then
2952 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2953 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2954 # work properly (i.e., refer to `conftest.exe'), while it won't with
2956 for ac_file in conftest.exe conftest conftest.*; do
2957 test -f "$ac_file" || continue
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2960 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2966 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2967 See \`config.log' for more details." >&5
2968 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2969 See \`config.log' for more details." >&2;}
2970 { (exit 1); exit 1; }; }
2973 rm -f conftest$ac_cv_exeext
2974 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2975 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2977 rm -f conftest.$ac_ext
2978 EXEEXT=$ac_cv_exeext
2980 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2981 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2982 if test "${ac_cv_objext+set}" = set; then
2983 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 cat >conftest.$ac_ext <<_ACEOF
2988 cat confdefs.h >>conftest.$ac_ext
2989 cat >>conftest.$ac_ext <<_ACEOF
2990 /* end confdefs.h. */
3000 rm -f conftest.o conftest.obj
3001 if { (ac_try="$ac_compile"
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_compile") 2>&5
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; then
3011 for ac_file in conftest.o conftest.obj conftest.*; do
3012 test -f "$ac_file" || continue;
3014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3015 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3032 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3033 echo "${ECHO_T}$ac_cv_objext" >&6; }
3034 OBJEXT=$ac_cv_objext
3036 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3037 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3038 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3041 cat >conftest.$ac_ext <<_ACEOF
3044 cat confdefs.h >>conftest.$ac_ext
3045 cat >>conftest.$ac_ext <<_ACEOF
3046 /* end confdefs.h. */
3059 rm -f conftest.$ac_objext
3060 if { (ac_try="$ac_compile"
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3066 (eval "$ac_compile") 2>conftest.er1
3068 grep -v '^ *+' conftest.er1 >conftest.err
3070 cat conftest.err >&5
3071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); } && {
3073 test -z "$ac_c_werror_flag" ||
3074 test ! -s conftest.err
3075 } && test -s conftest.$ac_objext; then
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3088 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3089 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3090 GCC=`test $ac_compiler_gnu = yes && echo yes`
3091 ac_test_CFLAGS=${CFLAGS+set}
3092 ac_save_CFLAGS=$CFLAGS
3093 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3094 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3095 if test "${ac_cv_prog_cc_g+set}" = set; then
3096 echo $ECHO_N "(cached) $ECHO_C" >&6
3098 ac_save_c_werror_flag=$ac_c_werror_flag
3099 ac_c_werror_flag=yes
3102 cat >conftest.$ac_ext <<_ACEOF
3105 cat confdefs.h >>conftest.$ac_ext
3106 cat >>conftest.$ac_ext <<_ACEOF
3107 /* end confdefs.h. */
3117 rm -f conftest.$ac_objext
3118 if { (ac_try="$ac_compile"
3120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121 *) ac_try_echo=$ac_try;;
3123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124 (eval "$ac_compile") 2>conftest.er1
3126 grep -v '^ *+' conftest.er1 >conftest.err
3128 cat conftest.err >&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); } && {
3131 test -z "$ac_c_werror_flag" ||
3132 test ! -s conftest.err
3133 } && test -s conftest.$ac_objext; then
3136 echo "$as_me: failed program was:" >&5
3137 sed 's/^/| /' conftest.$ac_ext >&5
3140 cat >conftest.$ac_ext <<_ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3155 rm -f conftest.$ac_objext
3156 if { (ac_try="$ac_compile"
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3162 (eval "$ac_compile") 2>conftest.er1
3164 grep -v '^ *+' conftest.er1 >conftest.err
3166 cat conftest.err >&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); } && {
3169 test -z "$ac_c_werror_flag" ||
3170 test ! -s conftest.err
3171 } && test -s conftest.$ac_objext; then
3174 echo "$as_me: failed program was:" >&5
3175 sed 's/^/| /' conftest.$ac_ext >&5
3177 ac_c_werror_flag=$ac_save_c_werror_flag
3179 cat >conftest.$ac_ext <<_ACEOF
3182 cat confdefs.h >>conftest.$ac_ext
3183 cat >>conftest.$ac_ext <<_ACEOF
3184 /* end confdefs.h. */
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compile") 2>conftest.er1
3203 grep -v '^ *+' conftest.er1 >conftest.err
3205 cat conftest.err >&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); } && {
3208 test -z "$ac_c_werror_flag" ||
3209 test ! -s conftest.err
3210 } && test -s conftest.$ac_objext; then
3213 echo "$as_me: failed program was:" >&5
3214 sed 's/^/| /' conftest.$ac_ext >&5
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 ac_c_werror_flag=$ac_save_c_werror_flag
3228 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3229 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3230 if test "$ac_test_CFLAGS" = set; then
3231 CFLAGS=$ac_save_CFLAGS
3232 elif test $ac_cv_prog_cc_g = yes; then
3233 if test "$GCC" = yes; then
3239 if test "$GCC" = yes; then
3245 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3246 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3247 if test "${ac_cv_prog_cc_c89+set}" = set; then
3248 echo $ECHO_N "(cached) $ECHO_C" >&6
3250 ac_cv_prog_cc_c89=no
3252 cat >conftest.$ac_ext <<_ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3260 #include <sys/types.h>
3261 #include <sys/stat.h>
3262 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3263 struct buf { int x; };
3264 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3265 static char *e (p, i)
3271 static char *f (char * (*g) (char **, int), char **p, ...)
3276 s = g (p, va_arg (v,int));
3281 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3282 function prototypes and stuff, but not '\xHH' hex character constants.
3283 These don't provoke an error unfortunately, instead are silently treated
3284 as 'x'. The following induces an error, until -std is added to get
3285 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3286 array size at least. It's necessary to write '\x00'==0 to get something
3287 that's true only with -std. */
3288 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3290 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3291 inside strings and character constants. */
3293 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3295 int test (int i, double x);
3296 struct s1 {int (*f) (int a);};
3297 struct s2 {int (*f) (double a);};
3298 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3309 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3310 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3312 CC="$ac_save_CC $ac_arg"
3313 rm -f conftest.$ac_objext
3314 if { (ac_try="$ac_compile"
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_compile") 2>conftest.er1
3322 grep -v '^ *+' conftest.er1 >conftest.err
3324 cat conftest.err >&5
3325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3326 (exit $ac_status); } && {
3327 test -z "$ac_c_werror_flag" ||
3328 test ! -s conftest.err
3329 } && test -s conftest.$ac_objext; then
3330 ac_cv_prog_cc_c89=$ac_arg
3332 echo "$as_me: failed program was:" >&5
3333 sed 's/^/| /' conftest.$ac_ext >&5
3338 rm -f core conftest.err conftest.$ac_objext
3339 test "x$ac_cv_prog_cc_c89" != "xno" && break
3341 rm -f conftest.$ac_ext
3346 case "x$ac_cv_prog_cc_c89" in
3348 { echo "$as_me:$LINENO: result: none needed" >&5
3349 echo "${ECHO_T}none needed" >&6; } ;;
3351 { echo "$as_me:$LINENO: result: unsupported" >&5
3352 echo "${ECHO_T}unsupported" >&6; } ;;
3354 CC="$CC $ac_cv_prog_cc_c89"
3355 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3356 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3361 ac_cpp='$CPP $CPPFLAGS'
3362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 ac_cpp='$CPP $CPPFLAGS'
3369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3372 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3373 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3374 # On Suns, sometimes $CPP names a directory.
3375 if test -n "$CPP" && test -d "$CPP"; then
3378 if test -z "$CPP"; then
3379 if test "${ac_cv_prog_CPP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3382 # Double quotes because CPP needs to be expanded
3383 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3386 for ac_c_preproc_warn_flag in '' yes
3388 # Use a header file that comes with gcc, so configuring glibc
3389 # with a fresh cross-compiler works.
3390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3391 # <limits.h> exists even on freestanding compilers.
3392 # On the NeXT, cc -E runs the code through the compiler's parser,
3393 # not just through cpp. "Syntax error" is here to catch this case.
3394 cat >conftest.$ac_ext <<_ACEOF
3397 cat confdefs.h >>conftest.$ac_ext
3398 cat >>conftest.$ac_ext <<_ACEOF
3399 /* end confdefs.h. */
3401 # include <limits.h>
3403 # include <assert.h>
3407 if { (ac_try="$ac_cpp conftest.$ac_ext"
3409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3410 *) ac_try_echo=$ac_try;;
3412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415 grep -v '^ *+' conftest.er1 >conftest.err
3417 cat conftest.err >&5
3418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419 (exit $ac_status); } >/dev/null && {
3420 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3421 test ! -s conftest.err
3425 echo "$as_me: failed program was:" >&5
3426 sed 's/^/| /' conftest.$ac_ext >&5
3428 # Broken: fails on valid input.
3432 rm -f conftest.err conftest.$ac_ext
3434 # OK, works on sane cases. Now check whether nonexistent headers
3435 # can be detected and how.
3436 cat >conftest.$ac_ext <<_ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h. */
3442 #include <ac_nonexistent.h>
3444 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } >/dev/null && {
3457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3460 # Broken: success on invalid input.
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Passes both tests.
3471 rm -f conftest.err conftest.$ac_ext
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.err conftest.$ac_ext
3476 if $ac_preproc_ok; then
3488 { echo "$as_me:$LINENO: result: $CPP" >&5
3489 echo "${ECHO_T}$CPP" >&6; }
3491 for ac_c_preproc_warn_flag in '' yes
3493 # Use a header file that comes with gcc, so configuring glibc
3494 # with a fresh cross-compiler works.
3495 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3496 # <limits.h> exists even on freestanding compilers.
3497 # On the NeXT, cc -E runs the code through the compiler's parser,
3498 # not just through cpp. "Syntax error" is here to catch this case.
3499 cat >conftest.$ac_ext <<_ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h. */
3506 # include <limits.h>
3508 # include <assert.h>
3512 if { (ac_try="$ac_cpp conftest.$ac_ext"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null && {
3525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3530 echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 # Broken: fails on valid input.
3537 rm -f conftest.err conftest.$ac_ext
3539 # OK, works on sane cases. Now check whether nonexistent headers
3540 # can be detected and how.
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3557 grep -v '^ *+' conftest.er1 >conftest.err
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561 (exit $ac_status); } >/dev/null && {
3562 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3563 test ! -s conftest.err
3565 # Broken: success on invalid input.
3568 echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 # Passes both tests.
3576 rm -f conftest.err conftest.$ac_ext
3579 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3580 rm -f conftest.err conftest.$ac_ext
3581 if $ac_preproc_ok; then
3584 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3585 See \`config.log' for more details." >&5
3586 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3587 See \`config.log' for more details." >&2;}
3588 { (exit 1); exit 1; }; }
3592 ac_cpp='$CPP $CPPFLAGS'
3593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3598 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3599 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3600 if test "${ac_cv_path_GREP+set}" = set; then
3601 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 # Extract the first word of "grep ggrep" to use in msg output
3604 if test -z "$GREP"; then
3605 set dummy grep ggrep; ac_prog_name=$2
3606 if test "${ac_cv_path_GREP+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3609 ac_path_GREP_found=false
3610 # Loop through the user's path and test for each of PROGNAME-LIST
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3615 test -z "$as_dir" && as_dir=.
3616 for ac_prog in grep ggrep; do
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3619 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3620 # Check for GNU ac_path_GREP and select it if it is found.
3621 # Check for GNU $ac_path_GREP
3622 case `"$ac_path_GREP" --version 2>&1` in
3624 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3627 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3630 cat "conftest.in" "conftest.in" >"conftest.tmp"
3631 mv "conftest.tmp" "conftest.in"
3632 cp "conftest.in" "conftest.nl"
3633 echo 'GREP' >> "conftest.nl"
3634 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3635 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3636 ac_count=`expr $ac_count + 1`
3637 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3638 # Best one so far, save it but keep looking for a better one
3639 ac_cv_path_GREP="$ac_path_GREP"
3640 ac_path_GREP_max=$ac_count
3642 # 10*(2^10) chars as input seems more than enough
3643 test $ac_count -gt 10 && break
3645 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3649 $ac_path_GREP_found && break 3
3659 GREP="$ac_cv_path_GREP"
3660 if test -z "$GREP"; then
3661 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3662 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3663 { (exit 1); exit 1; }; }
3667 ac_cv_path_GREP=$GREP
3672 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3673 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3674 GREP="$ac_cv_path_GREP"
3677 { echo "$as_me:$LINENO: checking for egrep" >&5
3678 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3679 if test "${ac_cv_path_EGREP+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3683 then ac_cv_path_EGREP="$GREP -E"
3685 # Extract the first word of "egrep" to use in msg output
3686 if test -z "$EGREP"; then
3687 set dummy egrep; ac_prog_name=$2
3688 if test "${ac_cv_path_EGREP+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 ac_path_EGREP_found=false
3692 # Loop through the user's path and test for each of PROGNAME-LIST
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3697 test -z "$as_dir" && as_dir=.
3698 for ac_prog in egrep; do
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3701 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3702 # Check for GNU ac_path_EGREP and select it if it is found.
3703 # Check for GNU $ac_path_EGREP
3704 case `"$ac_path_EGREP" --version 2>&1` in
3706 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3709 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3712 cat "conftest.in" "conftest.in" >"conftest.tmp"
3713 mv "conftest.tmp" "conftest.in"
3714 cp "conftest.in" "conftest.nl"
3715 echo 'EGREP' >> "conftest.nl"
3716 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3717 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3718 ac_count=`expr $ac_count + 1`
3719 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3720 # Best one so far, save it but keep looking for a better one
3721 ac_cv_path_EGREP="$ac_path_EGREP"
3722 ac_path_EGREP_max=$ac_count
3724 # 10*(2^10) chars as input seems more than enough
3725 test $ac_count -gt 10 && break
3727 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3731 $ac_path_EGREP_found && break 3
3741 EGREP="$ac_cv_path_EGREP"
3742 if test -z "$EGREP"; then
3743 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3744 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3745 { (exit 1); exit 1; }; }
3749 ac_cv_path_EGREP=$EGREP
3755 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3756 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3757 EGREP="$ac_cv_path_EGREP"
3761 { echo "$as_me:$LINENO: checking for AIX" >&5
3762 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
3763 cat >conftest.$ac_ext <<_ACEOF
3766 cat confdefs.h >>conftest.$ac_ext
3767 cat >>conftest.$ac_ext <<_ACEOF
3768 /* end confdefs.h. */
3774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3775 $EGREP "yes" >/dev/null 2>&1; then
3776 { echo "$as_me:$LINENO: result: yes" >&5
3777 echo "${ECHO_T}yes" >&6; }
3778 cat >>confdefs.h <<\_ACEOF
3779 #define _ALL_SOURCE 1
3783 { echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6; }
3789 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3790 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3791 if test "${ac_cv_header_stdc+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 cat >conftest.$ac_ext <<_ACEOF
3797 cat confdefs.h >>conftest.$ac_ext
3798 cat >>conftest.$ac_ext <<_ACEOF
3799 /* end confdefs.h. */
3813 rm -f conftest.$ac_objext
3814 if { (ac_try="$ac_compile"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3830 ac_cv_header_stdc=yes
3832 echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3835 ac_cv_header_stdc=no
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3840 if test $ac_cv_header_stdc = yes; then
3841 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3852 $EGREP "memchr" >/dev/null 2>&1; then
3855 ac_cv_header_stdc=no
3861 if test $ac_cv_header_stdc = yes; then
3862 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3873 $EGREP "free" >/dev/null 2>&1; then
3876 ac_cv_header_stdc=no
3882 if test $ac_cv_header_stdc = yes; then
3883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3884 if test "$cross_compiling" = yes; then
3887 cat >conftest.$ac_ext <<_ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3895 #if ((' ' & 0x0FF) == 0x020)
3896 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3897 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3899 # define ISLOWER(c) \
3900 (('a' <= (c) && (c) <= 'i') \
3901 || ('j' <= (c) && (c) <= 'r') \
3902 || ('s' <= (c) && (c) <= 'z'))
3903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3911 for (i = 0; i < 256; i++)
3912 if (XOR (islower (i), ISLOWER (i))
3913 || toupper (i) != TOUPPER (i))
3918 rm -f conftest$ac_exeext
3919 if { (ac_try="$ac_link"
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_link") 2>&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3929 { (case "(($ac_try" in
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934 (eval "$ac_try") 2>&5
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; }; then
3940 echo "$as_me: program exited with status $ac_status" >&5
3941 echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3945 ac_cv_header_stdc=no
3947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3953 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3954 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3955 if test $ac_cv_header_stdc = yes; then
3957 cat >>confdefs.h <<\_ACEOF
3958 #define STDC_HEADERS 1
3963 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3973 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3974 inttypes.h stdint.h unistd.h
3976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3980 echo $ECHO_N "(cached) $ECHO_C" >&6
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3988 $ac_includes_default
3990 #include <$ac_header>
3992 rm -f conftest.$ac_objext
3993 if { (ac_try="$ac_compile"
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3999 (eval "$ac_compile") 2>conftest.er1
4001 grep -v '^ *+' conftest.er1 >conftest.err
4003 cat conftest.err >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } && {
4006 test -z "$ac_c_werror_flag" ||
4007 test ! -s conftest.err
4008 } && test -s conftest.$ac_objext; then
4009 eval "$as_ac_Header=yes"
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 eval "$as_ac_Header=no"
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 ac_res=`eval echo '${'$as_ac_Header'}'`
4020 { echo "$as_me:$LINENO: result: $ac_res" >&5
4021 echo "${ECHO_T}$ac_res" >&6; }
4022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4023 cat >>confdefs.h <<_ACEOF
4024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4032 if test "${ac_cv_header_minix_config_h+set}" = set; then
4033 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4034 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4035 if test "${ac_cv_header_minix_config_h+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4039 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4041 # Is the header compilable?
4042 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4043 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4044 cat >conftest.$ac_ext <<_ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4050 $ac_includes_default
4051 #include <minix/config.h>
4053 rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } && {
4067 test -z "$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4069 } && test -s conftest.$ac_objext; then
4070 ac_header_compiler=yes
4072 echo "$as_me: failed program was:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4075 ac_header_compiler=no
4078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4080 echo "${ECHO_T}$ac_header_compiler" >&6; }
4082 # Is the header present?
4083 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4084 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4085 cat >conftest.$ac_ext <<_ACEOF
4088 cat confdefs.h >>conftest.$ac_ext
4089 cat >>conftest.$ac_ext <<_ACEOF
4090 /* end confdefs.h. */
4091 #include <minix/config.h>
4093 if { (ac_try="$ac_cpp conftest.$ac_ext"
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4101 grep -v '^ *+' conftest.er1 >conftest.err
4103 cat conftest.err >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } >/dev/null && {
4106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4109 ac_header_preproc=yes
4111 echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4114 ac_header_preproc=no
4117 rm -f conftest.err conftest.$ac_ext
4118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4119 echo "${ECHO_T}$ac_header_preproc" >&6; }
4121 # So? What about this header?
4122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4124 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4125 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4126 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4127 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4128 ac_header_preproc=yes
4131 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4132 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4133 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4134 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4135 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4136 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4137 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4138 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4139 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4140 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4141 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4142 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4144 ## ------------------------------------------ ##
4145 ## Report this to https://issues.asterisk.org ##
4146 ## ------------------------------------------ ##
4148 ) | sed "s/^/$as_me: WARNING: /" >&2
4151 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4152 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4153 if test "${ac_cv_header_minix_config_h+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 ac_cv_header_minix_config_h=$ac_header_preproc
4158 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4159 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4162 if test $ac_cv_header_minix_config_h = yes; then
4169 if test "$MINIX" = yes; then
4171 cat >>confdefs.h <<\_ACEOF
4172 #define _POSIX_SOURCE 1
4176 cat >>confdefs.h <<\_ACEOF
4177 #define _POSIX_1_SOURCE 2
4181 cat >>confdefs.h <<\_ACEOF
4197 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4198 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4199 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4209 # define __EXTENSIONS__ 1
4210 $ac_includes_default
4219 rm -f conftest.$ac_objext
4220 if { (ac_try="$ac_compile"
4222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4223 *) ac_try_echo=$ac_try;;
4225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4226 (eval "$ac_compile") 2>conftest.er1
4228 grep -v '^ *+' conftest.er1 >conftest.err
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } && {
4233 test -z "$ac_c_werror_flag" ||
4234 test ! -s conftest.err
4235 } && test -s conftest.$ac_objext; then
4236 ac_cv_safe_to_define___extensions__=yes
4238 echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4241 ac_cv_safe_to_define___extensions__=no
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4247 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4248 test $ac_cv_safe_to_define___extensions__ = yes &&
4249 cat >>confdefs.h <<\_ACEOF
4250 #define __EXTENSIONS__ 1
4253 cat >>confdefs.h <<\_ACEOF
4254 #define _POSIX_PTHREAD_SEMANTICS 1
4257 cat >>confdefs.h <<\_ACEOF
4258 #define _TANDEM_SOURCE 1
4261 # note- does not work on FreeBSD
4263 case "${host_os}" in
4266 CPPFLAGS=-I/usr/local/include
4267 LDFLAGS=-L/usr/local/lib
4271 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4272 if test ${sysconfdir} = '${prefix}/etc'; then
4275 if test ${mandir} = '${prefix}/man'; then
4276 mandir=/usr/share/man
4279 CPPFLAGS=-I/usr/local/include
4280 LDFLAGS=-L/usr/local/lib
4284 cat >>confdefs.h <<\_ACEOF
4285 #define AST_POLL_COMPAT 1
4289 cat >>confdefs.h <<\_ACEOF
4290 #define _DARWIN_UNLIMITED_SELECT 1
4296 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4297 if test ${sysconfdir} = '${prefix}/etc'; then
4300 if test ${mandir} = '${prefix}/man'; then
4301 mandir=/usr/share/man
4307 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4308 if test ${localstatedir} = '${prefix}/var'; then
4313 BUILD_PLATFORM=${build}
4314 BUILD_CPU=${build_cpu}
4315 BUILD_VENDOR=${build_vendor}
4316 BUILD_OS=${build_os}
4323 HOST_PLATFORM=${host}
4324 HOST_CPU=${host_cpu}
4325 HOST_VENDOR=${host_vendor}
4335 case "${host_os}" in
4371 if test -n "$ac_tool_prefix"; then
4372 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4373 set dummy ${ac_tool_prefix}uname; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_path_UNAME+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4381 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 test -z "$as_dir" && as_dir=.
4389 for ac_exec_ext in '' $ac_executable_extensions; do
4390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4391 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4402 UNAME=$ac_cv_path_UNAME
4403 if test -n "$UNAME"; then
4404 { echo "$as_me:$LINENO: result: $UNAME" >&5
4405 echo "${ECHO_T}$UNAME" >&6; }
4407 { echo "$as_me:$LINENO: result: no" >&5
4408 echo "${ECHO_T}no" >&6; }
4413 if test -z "$ac_cv_path_UNAME"; then
4415 # Extract the first word of "uname", so it can be a program name with args.
4416 set dummy uname; ac_word=$2
4417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4419 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4420 echo $ECHO_N "(cached) $ECHO_C" >&6
4422 case $ac_pt_UNAME in
4424 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4431 test -z "$as_dir" && as_dir=.
4432 for ac_exec_ext in '' $ac_executable_extensions; do
4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4434 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4446 if test -n "$ac_pt_UNAME"; then
4447 { echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4448 echo "${ECHO_T}$ac_pt_UNAME" >&6; }
4450 { echo "$as_me:$LINENO: result: no" >&5
4451 echo "${ECHO_T}no" >&6; }
4454 if test "x$ac_pt_UNAME" = x; then
4457 case $cross_compiling:$ac_tool_warned in
4459 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4460 whose name does not start with the host triplet. If you think this
4461 configuration is useful to you, please write to autoconf@gnu.org." >&5
4462 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4463 whose name does not start with the host triplet. If you think this
4464 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4465 ac_tool_warned=yes ;;
4470 UNAME="$ac_cv_path_UNAME"
4473 if test ! x"${UNAME}" = xNo; then
4474 PBX_OSREV=$(${UNAME} -r)
4484 # cross-compile checks
4485 if test "${cross_compiling}" = "yes";
4487 if test -n "$ac_tool_prefix"; then
4488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4492 if test "${ac_cv_prog_CC+set}" = set; then
4493 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 if test -n "$CC"; then
4496 ac_cv_prog_CC="$CC" # Let the user override the test.
4498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir=.
4503 for ac_exec_ext in '' $ac_executable_extensions; do
4504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 if test -n "$CC"; then
4517 { echo "$as_me:$LINENO: result: $CC" >&5
4518 echo "${ECHO_T}$CC" >&6; }
4520 { echo "$as_me:$LINENO: result: no" >&5
4521 echo "${ECHO_T}no" >&6; }
4526 if test -z "$ac_cv_prog_CC"; then
4528 # Extract the first word of "gcc", so it can be a program name with args.
4529 set dummy gcc; ac_word=$2
4530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4532 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 if test -n "$ac_ct_CC"; then
4536 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4542 test -z "$as_dir" && as_dir=.
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4545 ac_cv_prog_ac_ct_CC="gcc"
4546 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4556 if test -n "$ac_ct_CC"; then
4557 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4558 echo "${ECHO_T}$ac_ct_CC" >&6; }
4560 { echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6; }
4564 if test "x$ac_ct_CC" = x; then
4567 case $cross_compiling:$ac_tool_warned in
4569 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4570 whose name does not start with the host triplet. If you think this
4571 configuration is useful to you, please write to autoconf@gnu.org." >&5
4572 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4573 whose name does not start with the host triplet. If you think this
4574 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4575 ac_tool_warned=yes ;;
4583 if test -n "$ac_tool_prefix"; then
4584 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4585 set dummy ${ac_tool_prefix}g++; ac_word=$2
4586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4588 if test "${ac_cv_prog_CXX+set}" = set; then
4589 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 if test -n "$CXX"; then
4592 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4612 if test -n "$CXX"; then
4613 { echo "$as_me:$LINENO: result: $CXX" >&5
4614 echo "${ECHO_T}$CXX" >&6; }
4616 { echo "$as_me:$LINENO: result: no" >&5
4617 echo "${ECHO_T}no" >&6; }
4622 if test -z "$ac_cv_prog_CXX"; then
4624 # Extract the first word of "g++", so it can be a program name with args.
4625 set dummy g++; ac_word=$2
4626 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4628 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4629 echo $ECHO_N "(cached) $ECHO_C" >&6
4631 if test -n "$ac_ct_CXX"; then
4632 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_ac_ct_CXX="g++"
4642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4652 if test -n "$ac_ct_CXX"; then
4653 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4654 echo "${ECHO_T}$ac_ct_CXX" >&6; }
4656 { echo "$as_me:$LINENO: result: no" >&5
4657 echo "${ECHO_T}no" >&6; }
4660 if test "x$ac_ct_CXX" = x; then
4663 case $cross_compiling:$ac_tool_warned in
4665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4666 whose name does not start with the host triplet. If you think this
4667 configuration is useful to you, please write to autoconf@gnu.org." >&5
4668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4669 whose name does not start with the host triplet. If you think this
4670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4671 ac_tool_warned=yes ;;
4676 CXX="$ac_cv_prog_CXX"
4679 if test -n "$ac_tool_prefix"; then
4680 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4681 set dummy ${ac_tool_prefix}ld; ac_word=$2
4682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4684 if test "${ac_cv_prog_LD+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test -n "$LD"; then
4688 ac_cv_prog_LD="$LD" # Let the user override the test.
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4697 ac_cv_prog_LD="${ac_tool_prefix}ld"
4698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4708 if test -n "$LD"; then
4709 { echo "$as_me:$LINENO: result: $LD" >&5
4710 echo "${ECHO_T}$LD" >&6; }
4712 { echo "$as_me:$LINENO: result: no" >&5
4713 echo "${ECHO_T}no" >&6; }
4718 if test -z "$ac_cv_prog_LD"; then
4720 # Extract the first word of "ld", so it can be a program name with args.
4721 set dummy ld; ac_word=$2
4722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4724 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4725 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 if test -n "$ac_ct_LD"; then
4728 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 test -z "$as_dir" && as_dir=.
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4737 ac_cv_prog_ac_ct_LD="ld"
4738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5