2 # From configure.ac Revision: 374940 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63 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, 2007, 2008 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 # Pre-4.2 versions of Zsh do 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
48 # Printing a long string crashes Solaris 7 /usr/bin/printf.
49 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
50 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
51 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
52 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
86 # Support unset when possible.
87 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
95 # We need space, tab and new line, in precisely that order. Quoting is
96 # there to prevent editors from complaining about space-tab.
97 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
98 # splitting by setting IFS to empty value.)
101 # Find who we are. Look in the path if we contain no directory separator.
103 *[\\/]* ) as_myself=$0 ;;
104 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
108 test -z "$as_dir" && as_dir=.
109 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 # We did not find ourselves, most probably we were run as `sh COMMAND'
116 # in which case we are not to be found in the path.
117 if test "x$as_myself" = x; then
120 if test ! -f "$as_myself"; then
121 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
122 { (exit 1); exit 1; }
125 # Work around bugs in pre-3.0 UWIN ksh.
126 for as_var in ENV MAIL MAILPATH
127 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
139 # Required to use basename.
140 if expr a : '\(a\)' >/dev/null 2>&1 &&
141 test "X`expr 00001 : '.*\(...\)'`" = X001; then
147 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
154 # Name of the executable.
155 as_me=`$as_basename -- "$0" ||
156 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
157 X"$0" : 'X\(//\)$' \| \
158 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
160 sed '/^.*\/\([^/][^/]*\)\/*$/{
178 if test "x$CONFIG_SHELL" = x; then
179 if (eval ":") 2>/dev/null; then
185 if test $as_have_required = yes && (eval ":
195 as_func_ret_success () {
198 as_func_ret_failure () {
203 if as_func_success; then
207 echo as_func_success failed.
210 if as_func_failure; then
212 echo as_func_failure succeeded.
215 if as_func_ret_success; then
219 echo as_func_ret_success failed.
222 if as_func_ret_failure; then
224 echo as_func_ret_failure succeeded.
227 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
231 echo positional parameters were not saved.
234 test \$exitcode = 0) || { (exit 1); exit 1; }
239 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
240 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
241 ") 2> /dev/null; then
245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
246 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
249 test -z "$as_dir" && as_dir=.
252 for as_base in sh bash ksh sh5; do
253 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
260 for as_shell in $as_candidate_shells $SHELL; do
261 # Try only shells that exist, to save several forks.
262 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
263 { ("$as_shell") 2> /dev/null <<\_ASEOF
264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
268 # is contrary to our usage. Disable this feature.
269 alias -g '${1+"$@"}'='"$@"'
272 case `(set -o) 2>/dev/null` in
273 *posix*) set -o posix ;;
282 CONFIG_SHELL=$as_shell
284 if { "$as_shell" 2> /dev/null <<\_ASEOF
285 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
288 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
289 # is contrary to our usage. Disable this feature.
290 alias -g '${1+"$@"}'='"$@"'
293 case `(set -o) 2>/dev/null` in
294 *posix*) set -o posix ;;
310 as_func_ret_success () {
313 as_func_ret_failure () {
318 if as_func_success; then
322 echo as_func_success failed.
325 if as_func_failure; then
327 echo as_func_failure succeeded.
330 if as_func_ret_success; then
334 echo as_func_ret_success failed.
337 if as_func_ret_failure; then
339 echo as_func_ret_failure succeeded.
342 if ( set x; as_func_ret_success y && test x = "$1" ); then
346 echo positional parameters were not saved.
349 test $exitcode = 0) || { (exit 1); exit 1; }
354 test "x$as_lineno_1" != "x$as_lineno_2" &&
355 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
366 if test "x$CONFIG_SHELL" != x; then
367 for as_var in BASH_ENV ENV
368 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
371 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
375 if test $as_have_required = no; then
376 echo This script requires a shell more modern than all the
377 echo shells that I found on your system. Please install a
378 echo modern shell, or manually run the script under such a
379 echo shell if you do have one.
380 { (exit 1); exit 1; }
390 (eval "as_func_return () {
399 as_func_ret_success () {
402 as_func_ret_failure () {
407 if as_func_success; then
411 echo as_func_success failed.
414 if as_func_failure; then
416 echo as_func_failure succeeded.
419 if as_func_ret_success; then
423 echo as_func_ret_success failed.
426 if as_func_ret_failure; then
428 echo as_func_ret_failure succeeded.
431 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
435 echo positional parameters were not saved.
438 test \$exitcode = 0") || {
439 echo No shell found that supports shell functions.
440 echo Please tell bug-autoconf@gnu.org about your system,
441 echo including any error possibly output before this message.
442 echo This can help us improve future autoconf versions.
443 echo Configuration will now proceed without shell functions.
450 test "x$as_lineno_1" != "x$as_lineno_2" &&
451 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
453 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
454 # uniformly replaced by the line number. The first 'sed' inserts a
455 # line-number line after each line using $LINENO; the second 'sed'
456 # does the real work. The second script uses 'N' to pair each
457 # line-number line with the line containing $LINENO, and appends
458 # trailing '-' during substitution so that $LINENO is not a special
460 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
461 # scripts with optimization help from Paolo Bonzini. Blame Lee
462 # E. McMahon (1931-1989) for sed's syntax. :-)
474 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
478 chmod +x "$as_me.lineno" ||
479 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
480 { (exit 1); exit 1; }; }
482 # Don't try to exec as it changes $[0], causing all sort of problems
483 # (the dirname of $[0] is not the place where we might find the
484 # original and so on. Autoconf is especially sensitive to this).
486 # Exit status is that of the last command.
491 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
497 ECHO_C= ECHO_N= ECHO_T=
501 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
507 if expr a : '\(a\)' >/dev/null 2>&1 &&
508 test "X`expr 00001 : '.*\(...\)'`" = X001; then
514 rm -f conf$$ conf$$.exe conf$$.file
515 if test -d conf$$.dir; then
516 rm -f conf$$.dir/conf$$.file
519 mkdir conf$$.dir 2>/dev/null
521 if (echo >conf$$.file) 2>/dev/null; then
522 if ln -s conf$$.file conf$$ 2>/dev/null; then
524 # ... but there are two gotchas:
525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
527 # In both cases, we have to default to `cp -p'.
528 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
530 elif ln conf$$.file conf$$ 2>/dev/null; then
538 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
539 rmdir conf$$.dir 2>/dev/null
541 if mkdir -p . 2>/dev/null; then
544 test -d ./-p && rmdir ./-p
548 if test -x / >/dev/null 2>&1; then
551 if ls -dL / >/dev/null 2>&1; then
558 if test -d "$1"; then
564 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
565 ???[sx]*):;;*)false;;esac;fi
569 as_executable_p=$as_test_x
571 # Sed expression to map a string onto a valid CPP name.
572 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
574 # Sed expression to map a string onto a valid variable name.
575 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
579 exec 7<&0 </dev/null 6>&1
582 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
583 # so uname gets run too.
584 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
589 ac_default_prefix=/usr/local
591 ac_config_libobj_dir=.
597 SHELL=${CONFIG_SHELL-/bin/sh}
599 # Identity of this package.
600 PACKAGE_NAME='asterisk'
601 PACKAGE_TARNAME='asterisk'
602 PACKAGE_VERSION='trunk'
603 PACKAGE_STRING='asterisk trunk'
604 PACKAGE_BUGREPORT='https://issues.asterisk.org'
606 ac_unique_file="main/asterisk.c"
607 # Factoring default headers for most tests.
608 ac_includes_default="\
610 #ifdef HAVE_SYS_TYPES_H
611 # include <sys/types.h>
613 #ifdef HAVE_SYS_STAT_H
614 # include <sys/stat.h>
620 # ifdef HAVE_STDLIB_H
625 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
630 #ifdef HAVE_STRINGS_H
631 # include <strings.h>
633 #ifdef HAVE_INTTYPES_H
634 # include <inttypes.h>
644 ac_subst_vars='LTLIBOBJS
646 PBX_SYSLOG_FACILITY_LOG_UUCP
647 PBX_SYSLOG_FACILITY_LOG_SYSLOG
648 PBX_SYSLOG_FACILITY_LOG_NEWS
649 PBX_SYSLOG_FACILITY_LOG_MAIL
650 PBX_SYSLOG_FACILITY_LOG_LPR
651 PBX_SYSLOG_FACILITY_LOG_KERN
652 PBX_SYSLOG_FACILITY_LOG_FTP
653 PBX_SYSLOG_FACILITY_LOG_DAEMON
654 PBX_SYSLOG_FACILITY_LOG_CRON
655 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
656 PBX_SYSLOG_FACILITY_LOG_AUTH
703 AST_NO_STRICT_OVERFLOW
706 AST_DECLARATION_AFTER_STATEMENT
710 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
711 PBX_PTHREAD_RWLOCK_INITIALIZER
787 SPEEX_PREPROCESS_INCLUDE
822 PBX_PRI_REVERSE_CHARGE
823 PRI_REVERSE_CHARGE_DIR
824 PRI_REVERSE_CHARGE_INCLUDE
825 PRI_REVERSE_CHARGE_LIB
826 PBX_PRI_SERVICE_MESSAGES
827 PRI_SERVICE_MESSAGES_DIR
828 PRI_SERVICE_MESSAGES_INCLUDE
829 PRI_SERVICE_MESSAGES_LIB
832 PRI_PROG_W_CAUSE_INCLUDE
834 PBX_PRI_INBANDDISCONNECT
835 PRI_INBANDDISCONNECT_DIR
836 PRI_INBANDDISCONNECT_INCLUDE
837 PRI_INBANDDISCONNECT_LIB
840 PRI_SETUP_KEYPAD_INCLUDE
842 PBX_PRI_CALL_REROUTING
843 PRI_CALL_REROUTING_DIR
844 PRI_CALL_REROUTING_INCLUDE
845 PRI_CALL_REROUTING_LIB
848 PRI_CALL_HOLD_INCLUDE
856 PRI_HANGUP_FIX_INCLUDE
868 PRI_AOC_EVENTS_INCLUDE
872 PRI_CALL_WAITING_INCLUDE
884 PRI_DISPLAY_TEXT_INCLUDE
890 PBX_PRI_DATETIME_SEND
891 PRI_DATETIME_SEND_DIR
892 PRI_DATETIME_SEND_INCLUDE
893 PRI_DATETIME_SEND_LIB
894 PBX_PRI_L2_PERSISTENCE
895 PRI_L2_PERSISTENCE_DIR
896 PRI_L2_PERSISTENCE_INCLUDE
897 PRI_L2_PERSISTENCE_LIB
1056 OPENSSL_SRTP_INCLUDE
1066 PBX_COROSYNC_CFG_STATE_TRACK
1067 COROSYNC_CFG_STATE_TRACK_DIR
1068 COROSYNC_CFG_STATE_TRACK_INCLUDE
1069 COROSYNC_CFG_STATE_TRACK_LIB
1220 program_transform_name
1232 enable_option_checking
1310 enable_internal_poll
1313 ac_precious_vars='build_alias
1337 # Initialize some variables set by options.
1339 ac_init_version=false
1340 ac_unrecognized_opts=
1341 ac_unrecognized_sep=
1342 # The variables have the same names as the options, with
1343 # dashes changed to underlines.
1344 cache_file=/dev/null
1351 program_transform_name=s,x,x,
1359 # Installation directory options.
1360 # These are left unexpanded so users can "make install exec_prefix=/foo"
1361 # and all the variables that are supposed to be based on exec_prefix
1362 # by default will actually change.
1363 # Use braces instead of parens because sh, perl, etc. also accept them.
1364 # (The list follows the same order as the GNU Coding Standards.)
1365 bindir='${exec_prefix}/bin'
1366 sbindir='${exec_prefix}/sbin'
1367 libexecdir='${exec_prefix}/libexec'
1368 datarootdir='${prefix}/share'
1369 datadir='${datarootdir}'
1370 sysconfdir='${prefix}/etc'
1371 sharedstatedir='${prefix}/com'
1372 localstatedir='${prefix}/var'
1373 includedir='${prefix}/include'
1374 oldincludedir='/usr/include'
1375 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1376 infodir='${datarootdir}/info'
1381 libdir='${exec_prefix}/lib'
1382 localedir='${datarootdir}/locale'
1383 mandir='${datarootdir}/man'
1389 # If the previous option needs an argument, assign it.
1390 if test -n "$ac_prev"; then
1391 eval $ac_prev=\$ac_option
1397 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1401 # Accept the important Cygnus configure options, so we can diagnose typos.
1403 case $ac_dashdash$ac_option in
1407 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1409 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1410 bindir=$ac_optarg ;;
1412 -build | --build | --buil | --bui | --bu)
1413 ac_prev=build_alias ;;
1414 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1415 build_alias=$ac_optarg ;;
1417 -cache-file | --cache-file | --cache-fil | --cache-fi \
1418 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1419 ac_prev=cache_file ;;
1420 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1421 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1422 cache_file=$ac_optarg ;;
1424 --config-cache | -C)
1425 cache_file=config.cache ;;
1427 -datadir | --datadir | --datadi | --datad)
1429 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1430 datadir=$ac_optarg ;;
1432 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1433 | --dataroo | --dataro | --datar)
1434 ac_prev=datarootdir ;;
1435 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1436 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1437 datarootdir=$ac_optarg ;;
1439 -disable-* | --disable-*)
1440 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1441 # Reject names that are not valid shell variable names.
1442 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1443 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1444 { (exit 1); exit 1; }; }
1445 ac_useropt_orig=$ac_useropt
1446 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1447 case $ac_user_opts in
1449 "enable_$ac_useropt"
1451 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1452 ac_unrecognized_sep=', ';;
1454 eval enable_$ac_useropt=no ;;
1456 -docdir | --docdir | --docdi | --doc | --do)
1458 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1459 docdir=$ac_optarg ;;
1461 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1463 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1464 dvidir=$ac_optarg ;;
1466 -enable-* | --enable-*)
1467 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1468 # Reject names that are not valid shell variable names.
1469 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1470 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1471 { (exit 1); exit 1; }; }
1472 ac_useropt_orig=$ac_useropt
1473 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1474 case $ac_user_opts in
1476 "enable_$ac_useropt"
1478 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1479 ac_unrecognized_sep=', ';;
1481 eval enable_$ac_useropt=\$ac_optarg ;;
1483 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1484 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1485 | --exec | --exe | --ex)
1486 ac_prev=exec_prefix ;;
1487 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1488 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1489 | --exec=* | --exe=* | --ex=*)
1490 exec_prefix=$ac_optarg ;;
1492 -gas | --gas | --ga | --g)
1493 # Obsolete; use --with-gas.
1496 -help | --help | --hel | --he | -h)
1497 ac_init_help=long ;;
1498 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1499 ac_init_help=recursive ;;
1500 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1501 ac_init_help=short ;;
1503 -host | --host | --hos | --ho)
1504 ac_prev=host_alias ;;
1505 -host=* | --host=* | --hos=* | --ho=*)
1506 host_alias=$ac_optarg ;;
1508 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1510 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1512 htmldir=$ac_optarg ;;
1514 -includedir | --includedir | --includedi | --included | --include \
1515 | --includ | --inclu | --incl | --inc)
1516 ac_prev=includedir ;;
1517 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1518 | --includ=* | --inclu=* | --incl=* | --inc=*)
1519 includedir=$ac_optarg ;;
1521 -infodir | --infodir | --infodi | --infod | --info | --inf)
1523 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1524 infodir=$ac_optarg ;;
1526 -libdir | --libdir | --libdi | --libd)
1528 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1529 libdir=$ac_optarg ;;
1531 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1532 | --libexe | --libex | --libe)
1533 ac_prev=libexecdir ;;
1534 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1535 | --libexe=* | --libex=* | --libe=*)
1536 libexecdir=$ac_optarg ;;
1538 -localedir | --localedir | --localedi | --localed | --locale)
1539 ac_prev=localedir ;;
1540 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1541 localedir=$ac_optarg ;;
1543 -localstatedir | --localstatedir | --localstatedi | --localstated \
1544 | --localstate | --localstat | --localsta | --localst | --locals)
1545 ac_prev=localstatedir ;;
1546 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1547 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1548 localstatedir=$ac_optarg ;;
1550 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1552 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1553 mandir=$ac_optarg ;;
1555 -nfp | --nfp | --nf)
1556 # Obsolete; use --without-fp.
1559 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1560 | --no-cr | --no-c | -n)
1563 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1564 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1567 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1568 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1569 | --oldin | --oldi | --old | --ol | --o)
1570 ac_prev=oldincludedir ;;
1571 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1572 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1573 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1574 oldincludedir=$ac_optarg ;;
1576 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1578 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1579 prefix=$ac_optarg ;;
1581 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1582 | --program-pre | --program-pr | --program-p)
1583 ac_prev=program_prefix ;;
1584 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1585 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1586 program_prefix=$ac_optarg ;;
1588 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1589 | --program-suf | --program-su | --program-s)
1590 ac_prev=program_suffix ;;
1591 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1592 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1593 program_suffix=$ac_optarg ;;
1595 -program-transform-name | --program-transform-name \
1596 | --program-transform-nam | --program-transform-na \
1597 | --program-transform-n | --program-transform- \
1598 | --program-transform | --program-transfor \
1599 | --program-transfo | --program-transf \
1600 | --program-trans | --program-tran \
1601 | --progr-tra | --program-tr | --program-t)
1602 ac_prev=program_transform_name ;;
1603 -program-transform-name=* | --program-transform-name=* \
1604 | --program-transform-nam=* | --program-transform-na=* \
1605 | --program-transform-n=* | --program-transform-=* \
1606 | --program-transform=* | --program-transfor=* \
1607 | --program-transfo=* | --program-transf=* \
1608 | --program-trans=* | --program-tran=* \
1609 | --progr-tra=* | --program-tr=* | --program-t=*)
1610 program_transform_name=$ac_optarg ;;
1612 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1614 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1615 pdfdir=$ac_optarg ;;
1617 -psdir | --psdir | --psdi | --psd | --ps)
1619 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1623 | -silent | --silent | --silen | --sile | --sil)
1626 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1628 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1630 sbindir=$ac_optarg ;;
1632 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1633 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1634 | --sharedst | --shareds | --shared | --share | --shar \
1636 ac_prev=sharedstatedir ;;
1637 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1638 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1639 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1641 sharedstatedir=$ac_optarg ;;
1643 -site | --site | --sit)
1645 -site=* | --site=* | --sit=*)
1648 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1650 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1651 srcdir=$ac_optarg ;;
1653 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1654 | --syscon | --sysco | --sysc | --sys | --sy)
1655 ac_prev=sysconfdir ;;
1656 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1657 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1658 sysconfdir=$ac_optarg ;;
1660 -target | --target | --targe | --targ | --tar | --ta | --t)
1661 ac_prev=target_alias ;;
1662 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1663 target_alias=$ac_optarg ;;
1665 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1668 -version | --version | --versio | --versi | --vers | -V)
1669 ac_init_version=: ;;
1672 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1673 # Reject names that are not valid shell variable names.
1674 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1675 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1676 { (exit 1); exit 1; }; }
1677 ac_useropt_orig=$ac_useropt
1678 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1679 case $ac_user_opts in
1683 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1684 ac_unrecognized_sep=', ';;
1686 eval with_$ac_useropt=\$ac_optarg ;;
1688 -without-* | --without-*)
1689 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1690 # Reject names that are not valid shell variable names.
1691 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1692 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1693 { (exit 1); exit 1; }; }
1694 ac_useropt_orig=$ac_useropt
1695 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1696 case $ac_user_opts in
1700 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1701 ac_unrecognized_sep=', ';;
1703 eval with_$ac_useropt=no ;;
1706 # Obsolete; use --with-x.
1709 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1710 | --x-incl | --x-inc | --x-in | --x-i)
1711 ac_prev=x_includes ;;
1712 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1713 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1714 x_includes=$ac_optarg ;;
1716 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1717 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1718 ac_prev=x_libraries ;;
1719 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1720 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1721 x_libraries=$ac_optarg ;;
1723 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1724 Try \`$0 --help' for more information." >&2
1725 { (exit 1); exit 1; }; }
1729 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1730 # Reject names that are not valid shell variable names.
1731 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1732 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1733 { (exit 1); exit 1; }; }
1734 eval $ac_envvar=\$ac_optarg
1735 export $ac_envvar ;;
1738 # FIXME: should be removed in autoconf 3.0.
1739 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1740 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1741 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1742 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1748 if test -n "$ac_prev"; then
1749 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1750 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1751 { (exit 1); exit 1; }; }
1754 if test -n "$ac_unrecognized_opts"; then
1755 case $enable_option_checking in
1757 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1758 { (exit 1); exit 1; }; } ;;
1759 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1763 # Check all directory arguments for consistency.
1764 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1765 datadir sysconfdir sharedstatedir localstatedir includedir \
1766 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1767 libdir localedir mandir
1769 eval ac_val=\$$ac_var
1770 # Remove trailing slashes.
1773 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1774 eval $ac_var=\$ac_val;;
1776 # Be sure to have absolute directory names.
1778 [\\/$]* | ?:[\\/]* ) continue;;
1779 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1781 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1782 { (exit 1); exit 1; }; }
1785 # There might be people who depend on the old broken behavior: `$host'
1786 # used to hold the argument of --host etc.
1787 # FIXME: To remove some day.
1790 target=$target_alias
1792 # FIXME: To remove some day.
1793 if test "x$host_alias" != x; then
1794 if test "x$build_alias" = x; then
1795 cross_compiling=maybe
1796 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1797 If a cross compiler is detected then cross compile mode will be used." >&2
1798 elif test "x$build_alias" != "x$host_alias"; then
1804 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1806 test "$silent" = yes && exec 6>/dev/null
1809 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1810 ac_ls_di=`ls -di .` &&
1811 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1812 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1813 { (exit 1); exit 1; }; }
1814 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1815 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1816 { (exit 1); exit 1; }; }
1819 # Find the source files, if location was not specified.
1820 if test -z "$srcdir"; then
1821 ac_srcdir_defaulted=yes
1822 # Try the directory containing this script, then the parent directory.
1823 ac_confdir=`$as_dirname -- "$as_myself" ||
1824 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1825 X"$as_myself" : 'X\(//\)[^/]' \| \
1826 X"$as_myself" : 'X\(//\)$' \| \
1827 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1828 $as_echo X"$as_myself" |
1829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1847 if test ! -r "$srcdir/$ac_unique_file"; then
1851 ac_srcdir_defaulted=no
1853 if test ! -r "$srcdir/$ac_unique_file"; then
1854 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1855 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1856 { (exit 1); exit 1; }; }
1858 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1860 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1861 { (exit 1); exit 1; }; }
1863 # When building in place, set srcdir=.
1864 if test "$ac_abs_confdir" = "$ac_pwd"; then
1867 # Remove unnecessary trailing slashes from srcdir.
1868 # Double slashes in file names in object file debugging info
1869 # mess up M-x gdb in Emacs.
1871 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1873 for ac_var in $ac_precious_vars; do
1874 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1875 eval ac_env_${ac_var}_value=\$${ac_var}
1876 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1877 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1881 # Report the --help message.
1883 if test "$ac_init_help" = "long"; then
1884 # Omit some internal or obsolete options to make the list less imposing.
1885 # This message is too long to be a string in the A/UX 3.1 sh.
1887 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1889 Usage: $0 [OPTION]... [VAR=VALUE]...
1891 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1892 VAR=VALUE. See below for descriptions of some of the useful variables.
1894 Defaults for the options are specified in brackets.
1897 -h, --help display this help and exit
1898 --help=short display options specific to this package
1899 --help=recursive display the short help of all the included packages
1900 -V, --version display version information and exit
1901 -q, --quiet, --silent do not print \`checking...' messages
1902 --cache-file=FILE cache test results in FILE [disabled]
1903 -C, --config-cache alias for \`--cache-file=config.cache'
1904 -n, --no-create do not create output files
1905 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1907 Installation directories:
1908 --prefix=PREFIX install architecture-independent files in PREFIX
1909 [$ac_default_prefix]
1910 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1913 By default, \`make install' will install all the files in
1914 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1915 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1916 for instance \`--prefix=\$HOME'.
1918 For better control, use the options below.
1920 Fine tuning of the installation directories:
1921 --bindir=DIR user executables [EPREFIX/bin]
1922 --sbindir=DIR system admin executables [EPREFIX/sbin]
1923 --libexecdir=DIR program executables [EPREFIX/libexec]
1924 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1925 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1926 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1927 --libdir=DIR object code libraries [EPREFIX/lib]
1928 --includedir=DIR C header files [PREFIX/include]
1929 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1930 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1931 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1932 --infodir=DIR info documentation [DATAROOTDIR/info]
1933 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1934 --mandir=DIR man documentation [DATAROOTDIR/man]
1935 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1936 --htmldir=DIR html documentation [DOCDIR]
1937 --dvidir=DIR dvi documentation [DOCDIR]
1938 --pdfdir=DIR pdf documentation [DOCDIR]
1939 --psdir=DIR ps documentation [DOCDIR]
1945 --build=BUILD configure for building on BUILD [guessed]
1946 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1950 if test -n "$ac_init_help"; then
1951 case $ac_init_help in
1952 short | recursive ) echo "Configuration of asterisk trunk:";;
1957 --disable-option-checking ignore unrecognized --enable/--with options
1958 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1959 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1960 --enable-dev-mode Turn on developer mode
1961 --enable-coverage Turn on code coverage tracking (for gcov)
1962 --disable-xmldoc Explicitly disable XML documentation
1963 --disable-largefile omit support for large files
1964 --enable-internal-poll Use Asterisk's poll implementation
1965 --disable-asteriskssl Disable Asterisk's SSL wrapper library
1968 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1969 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1970 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1971 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1972 --with-bfd=PATH use Debug symbol decoding files in PATH
1973 --with-execinfo=PATH use Stack Backtrace files in PATH
1974 --with-bluetooth=PATH use Bluetooth files in PATH
1975 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1976 --with-cpg=PATH use Corosync files in PATH
1977 --with-curses=PATH use curses files in PATH
1978 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1979 --with-dahdi=PATH use DAHDI files in PATH
1980 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1981 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1983 --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
1985 --with-gtk2=PATH use gtk2 files in PATH
1986 --with-gmime=PATH use GMime files in PATH
1987 --with-h323=PATH use OpenH323 files in PATH
1988 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1989 --with-ical=PATH use iCal files in PATH
1990 --with-iconv=PATH use Iconv files in PATH
1991 --with-iksemel=PATH use Iksemel Jabber files in PATH
1992 --with-imap=PATH use UW IMAP Toolkit files in PATH
1993 --with-inotify=PATH use inotify support files in PATH
1994 --with-iodbc=PATH use iODBC files in PATH
1995 --with-isdnnet=PATH use ISDN4Linux files in PATH
1996 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1997 --with-kqueue=PATH use kqueue support files in PATH
1998 --with-ldap=PATH use OpenLDAP files in PATH
1999 --with-libcurl=DIR look for the curl library in DIR
2000 --with-libedit=PATH use NetBSD Editline library files in PATH, use
2001 'internal' Editline otherwise
2002 --with-libxml2=PATH use LibXML2 files in PATH
2003 --with-ltdl=PATH use libtool files in PATH
2004 --with-lua=PATH use Lua files in PATH
2005 --with-misdn=PATH use mISDN user files in PATH
2006 --with-mysqlclient=PATH use MySQL client files in PATH
2007 --with-nbs=PATH use Network Broadcast Sound files in PATH
2008 --with-ncurses=PATH use ncurses files in PATH
2009 --with-neon=PATH use neon files in PATH
2010 --with-neon29=PATH use neon29 files in PATH
2011 --with-netsnmp=PATH use Net-SNMP files in PATH
2012 --with-newt=PATH use newt files in PATH
2013 --with-ogg=PATH use OGG files in PATH
2014 --with-openr2=PATH use MFR2 files in PATH
2015 --with-osptk=PATH use OSP Toolkit files in PATH
2016 --with-oss=PATH use Open Sound System files in PATH
2017 --with-postgres=PATH use PostgreSQL files in PATH
2018 --with-popt=PATH use popt files in PATH
2019 --with-portaudio=PATH use PortAudio files in PATH
2020 --with-pri=PATH use ISDN PRI files in PATH
2021 --with-pwlib=PATH use PWlib files in PATH
2022 --with-radius=PATH use Radius Client files in PATH
2023 --with-resample=PATH use LIBRESAMPLE files in PATH
2024 --with-sdl=PATH use Sdl files in PATH
2025 --with-SDL_image=PATH use Sdl Image files in PATH
2026 --with-sounds-cache=PATH
2027 use cached sound tarfiles in PATH
2028 --with-spandsp=PATH use SPANDSP files in PATH
2029 --with-ss7=PATH use ISDN SS7 files in PATH
2030 --with-speex=PATH use Speex files in PATH
2031 --with-speex=PATH use Speex preprocess routines files in PATH
2032 --with-speexdsp=PATH use SpeexDSP files in PATH
2033 --with-sqlite=PATH use SQLite files in PATH
2034 --with-sqlite3=PATH use SQLite files in PATH
2035 --with-srtp=PATH use Secure RTP files in PATH
2036 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
2037 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
2038 --with-tds=PATH use FreeTDS files in PATH
2039 --with-termcap=PATH use Termcap files in PATH
2040 --with-timerfd=PATH use timerfd files in PATH
2041 --with-tinfo=PATH use Term Info files in PATH
2042 --with-tonezone=PATH use tonezone files in PATH
2043 --with-unixodbc=PATH use unixODBC files in PATH
2044 --with-vorbis=PATH use Vorbis files in PATH
2045 --with-vpb=PATH use Voicetronix API files in PATH
2046 --with-x11=PATH use X11 files in PATH
2047 --with-z=PATH use zlib compression files in PATH
2049 Some influential environment variables:
2050 CC C compiler command
2051 CFLAGS C compiler flags
2052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2053 nonstandard directory <lib dir>
2054 LIBS libraries to pass to the linker, e.g. -l<library>
2055 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2056 you have headers in a nonstandard directory <include dir>
2058 CXX C++ compiler command
2059 CXXFLAGS C++ compiler flags
2060 CXXCPP C++ preprocessor
2061 PKG_CONFIG path to pkg-config utility
2062 ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
2063 ILBC_LIBS linker flags for ILBC, overriding pkg-config
2065 C compiler flags for LIBEDIT, overriding pkg-config
2067 linker flags for LIBEDIT, overriding pkg-config
2069 C compiler flags for GMIME, overriding pkg-config
2070 GMIME_LIBS linker flags for GMIME, overriding pkg-config
2071 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2072 GTK2_LIBS linker flags for GTK2, overriding pkg-config
2074 Use these variables to override the choices made by `configure' or to help
2075 it to find libraries and programs with nonstandard names/locations.
2077 Report bugs to <https://issues.asterisk.org>.
2082 if test "$ac_init_help" = "recursive"; then
2083 # If there are subdirs, report their specific --help.
2084 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2085 test -d "$ac_dir" ||
2086 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2091 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2093 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2094 # A ".." for each directory in $ac_dir_suffix.
2095 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2096 case $ac_top_builddir_sub in
2097 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2098 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2101 ac_abs_top_builddir=$ac_pwd
2102 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2103 # for backward compatibility:
2104 ac_top_builddir=$ac_top_build_prefix
2107 .) # We are building in place.
2109 ac_top_srcdir=$ac_top_builddir_sub
2110 ac_abs_top_srcdir=$ac_pwd ;;
2111 [\\/]* | ?:[\\/]* ) # Absolute name.
2112 ac_srcdir=$srcdir$ac_dir_suffix;
2113 ac_top_srcdir=$srcdir
2114 ac_abs_top_srcdir=$srcdir ;;
2116 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2117 ac_top_srcdir=$ac_top_build_prefix$srcdir
2118 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2120 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2122 cd "$ac_dir" || { ac_status=$?; continue; }
2123 # Check for guested configure.
2124 if test -f "$ac_srcdir/configure.gnu"; then
2126 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2127 elif test -f "$ac_srcdir/configure"; then
2129 $SHELL "$ac_srcdir/configure" --help=recursive
2131 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2133 cd "$ac_pwd" || { ac_status=$?; break; }
2137 test -n "$ac_init_help" && exit $ac_status
2138 if $ac_init_version; then
2140 asterisk configure trunk
2141 generated by GNU Autoconf 2.63
2143 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2144 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2145 This configure script is free software; the Free Software Foundation
2146 gives unlimited permission to copy, distribute and modify it.
2152 cat >config.log <<_ACEOF
2153 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake.
2156 It was created by asterisk $as_me trunk, which was
2157 generated by GNU Autoconf 2.63. Invocation command line was
2169 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2170 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2171 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2172 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2173 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2175 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2176 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2178 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2179 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2180 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2181 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2182 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2183 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2184 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir=.
2193 $as_echo "PATH: $as_dir"
2209 # Keep a trace of the command line.
2210 # Strip out --no-create and --no-recursion so they do not pile up.
2211 # Strip out --silent because we don't want to record it for future runs.
2212 # Also quote any args containing shell meta-characters.
2213 # Make two passes to allow for proper duplicate-argument suppression.
2217 ac_must_keep_next=false
2223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225 | -silent | --silent | --silen | --sile | --sil)
2228 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2231 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2233 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2234 if test $ac_must_keep_next = true; then
2235 ac_must_keep_next=false # Got value, back to normal.
2238 *=* | --config-cache | -C | -disable-* | --disable-* \
2239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241 | -with-* | --with-* | -without-* | --without-* | --x)
2242 case "$ac_configure_args0 " in
2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2246 -* ) ac_must_keep_next=true ;;
2249 ac_configure_args="$ac_configure_args '$ac_arg'"
2254 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2255 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2257 # When interrupted or exit'd, cleanup temporary files, and complete
2258 # config.log. We remove comments because anyway the quotes in there
2259 # would cause problems or look ugly.
2260 # WARNING: Use '\'' to represent an apostrophe within the trap.
2261 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262 trap 'exit_status=$?
2263 # Save into config.log some information that might help in debugging.
2268 ## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##
2273 # The following way of writing the cache mishandles newlines in values,
2275 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2276 eval ac_val=\$$ac_var
2280 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2281 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2284 _ | IFS | as_nl) ;; #(
2285 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2286 *) $as_unset $ac_var ;;
2291 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2292 *${as_nl}ac_space=\ *)
2294 "s/'\''/'\''\\\\'\'''\''/g;
2295 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2298 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2306 ## ----------------- ##
2307 ## Output variables. ##
2308 ## ----------------- ##
2311 for ac_var in $ac_subst_vars
2313 eval ac_val=\$$ac_var
2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2317 $as_echo "$ac_var='\''$ac_val'\''"
2321 if test -n "$ac_subst_files"; then
2323 ## ------------------- ##
2324 ## File substitutions. ##
2325 ## ------------------- ##
2328 for ac_var in $ac_subst_files
2330 eval ac_val=\$$ac_var
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 $as_echo "$ac_var='\''$ac_val'\''"
2339 if test -s confdefs.h; then
2349 test "$ac_signal" != 0 &&
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357 for ac_signal in 1 2 13 15; do
2358 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2363 rm -f -r conftest* confdefs.h
2365 # Predefined preprocessor variables.
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_NAME "$PACKAGE_NAME"
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_STRING "$PACKAGE_STRING"
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2392 # Let the site file select an alternate cache file if it wants to.
2393 # Prefer an explicitly selected file to automatically selected ones.
2396 if test -n "$CONFIG_SITE"; then
2397 ac_site_file1=$CONFIG_SITE
2398 elif test "x$prefix" != xNONE; then
2399 ac_site_file1=$prefix/share/config.site
2400 ac_site_file2=$prefix/etc/config.site
2402 ac_site_file1=$ac_default_prefix/share/config.site
2403 ac_site_file2=$ac_default_prefix/etc/config.site
2405 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2407 test "x$ac_site_file" = xNONE && continue
2408 if test -r "$ac_site_file"; then
2409 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2410 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2411 sed 's/^/| /' "$ac_site_file" >&5
2416 if test -r "$cache_file"; then
2417 # Some versions of bash will fail to source /dev/null (special
2418 # files actually), so we avoid doing that.
2419 if test -f "$cache_file"; then
2420 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2421 $as_echo "$as_me: loading cache $cache_file" >&6;}
2423 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2424 *) . "./$cache_file";;
2428 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2429 $as_echo "$as_me: creating cache $cache_file" >&6;}
2433 ac_header_list="$ac_header_list utime.h"
2434 # Check that the precious variables saved in the cache have kept the same
2436 ac_cache_corrupted=false
2437 for ac_var in $ac_precious_vars; do
2438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2439 eval ac_new_set=\$ac_env_${ac_var}_set
2440 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2441 eval ac_new_val=\$ac_env_${ac_var}_value
2442 case $ac_old_set,$ac_new_set in
2444 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2445 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2446 ac_cache_corrupted=: ;;
2448 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2449 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2450 ac_cache_corrupted=: ;;
2453 if test "x$ac_old_val" != "x$ac_new_val"; then
2454 # differences in whitespace do not lead to failure.
2455 ac_old_val_w=`echo x $ac_old_val`
2456 ac_new_val_w=`echo x $ac_new_val`
2457 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2458 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2459 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2460 ac_cache_corrupted=:
2462 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2463 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2464 eval $ac_var=\$ac_old_val
2466 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2467 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2468 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2469 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2472 # Pass precious variables to config.status.
2473 if test "$ac_new_set" = set; then
2475 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2476 *) ac_arg=$ac_var=$ac_new_val ;;
2478 case " $ac_configure_args " in
2479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2484 if $ac_cache_corrupted; then
2485 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2488 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2489 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2490 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2491 { (exit 1); exit 1; }; }
2519 ac_cpp='$CPP $CPPFLAGS'
2520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526 # cross-compile macros
2528 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2529 if test -f "$ac_dir/install-sh"; then
2531 ac_install_sh="$ac_aux_dir/install-sh -c"
2533 elif test -f "$ac_dir/install.sh"; then
2535 ac_install_sh="$ac_aux_dir/install.sh -c"
2537 elif test -f "$ac_dir/shtool"; then
2539 ac_install_sh="$ac_aux_dir/shtool install -c"
2543 if test -z "$ac_aux_dir"; then
2544 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2545 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2546 { (exit 1); exit 1; }; }
2549 # These three variables are undocumented and unsupported,
2550 # and are intended to be withdrawn in a future Autoconf release.
2551 # They can cause serious problems if a builder's source tree is in a directory
2552 # whose full name contains unusual characters.
2553 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2554 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2555 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2558 # Make sure we can run config.sub.
2559 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2560 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2561 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2562 { (exit 1); exit 1; }; }
2564 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2565 $as_echo_n "checking build system type... " >&6; }
2566 if test "${ac_cv_build+set}" = set; then
2567 $as_echo_n "(cached) " >&6
2569 ac_build_alias=$build_alias
2570 test "x$ac_build_alias" = x &&
2571 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2572 test "x$ac_build_alias" = x &&
2573 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2574 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2575 { (exit 1); exit 1; }; }
2576 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2577 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2578 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2579 { (exit 1); exit 1; }; }
2582 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2583 $as_echo "$ac_cv_build" >&6; }
2584 case $ac_cv_build in
2586 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2587 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2588 { (exit 1); exit 1; }; };;
2591 ac_save_IFS=$IFS; IFS='-'
2597 # Remember, the first character of IFS is used to create $*,
2598 # except with old shells:
2601 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2604 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2605 $as_echo_n "checking host system type... " >&6; }
2606 if test "${ac_cv_host+set}" = set; then
2607 $as_echo_n "(cached) " >&6
2609 if test "x$host_alias" = x; then
2610 ac_cv_host=$ac_cv_build
2612 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2613 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2614 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2615 { (exit 1); exit 1; }; }
2619 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2620 $as_echo "$ac_cv_host" >&6; }
2623 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2624 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2625 { (exit 1); exit 1; }; };;
2628 ac_save_IFS=$IFS; IFS='-'
2634 # Remember, the first character of IFS is used to create $*,
2635 # except with old shells:
2638 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2642 # check existence of the package
2646 for ac_dir in `pwd` "$srcdir"/`pwd`; do
2647 if test -f "$ac_dir/install-sh"; then
2649 ac_install_sh="$ac_aux_dir/install-sh -c"
2651 elif test -f "$ac_dir/install.sh"; then
2653 ac_install_sh="$ac_aux_dir/install.sh -c"
2655 elif test -f "$ac_dir/shtool"; then
2657 ac_install_sh="$ac_aux_dir/shtool install -c"
2661 if test -z "$ac_aux_dir"; then
2662 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&5
2663 $as_echo "$as_me: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&2;}
2664 { (exit 1); exit 1; }; }
2667 # These three variables are undocumented and unsupported,
2668 # and are intended to be withdrawn in a future Autoconf release.
2669 # They can cause serious problems if a builder's source tree is in a directory
2670 # whose full name contains unusual characters.
2671 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2672 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2673 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2680 # preserve any CFLAGS or LDFLAGS that may be set
2681 # NOTE: This must be done before calling any macros that end up
2682 # calling AC_PROG_CC or the like, since they will set a default
2683 # set of CFLAGS ("-g -O2") if the user did not supply any, and
2684 # we don't want those default flags to be carried over into the
2685 # rest of the build system since we have other means of controlling
2686 # debugging symbol generation and optimization.
2687 CONFIG_CFLAGS="${CFLAGS}"
2688 CONFIG_LDFLAGS="${LDFLAGS}"
2692 # specify output header file
2693 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2696 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
2697 # other macro that uses the C compiler, or the default order will be used.
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703 if test -n "$ac_tool_prefix"; then
2704 for ac_prog in gcc cc
2706 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2707 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2708 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2709 $as_echo_n "checking for $ac_word... " >&6; }
2710 if test "${ac_cv_prog_CC+set}" = set; then
2711 $as_echo_n "(cached) " >&6
2713 if test -n "$CC"; then
2714 ac_cv_prog_CC="$CC" # Let the user override the test.
2716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 test -z "$as_dir" && as_dir=.
2721 for ac_exec_ext in '' $ac_executable_extensions; do
2722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2723 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2724 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 if test -n "$CC"; then
2735 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2736 $as_echo "$CC" >&6; }
2738 { $as_echo "$as_me:$LINENO: result: no" >&5
2739 $as_echo "no" >&6; }
2743 test -n "$CC" && break
2746 if test -z "$CC"; then
2748 for ac_prog in gcc cc
2750 # Extract the first word of "$ac_prog", so it can be a program name with args.
2751 set dummy $ac_prog; ac_word=$2
2752 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 $as_echo_n "checking for $ac_word... " >&6; }
2754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2755 $as_echo_n "(cached) " >&6
2757 if test -n "$ac_ct_CC"; then
2758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2767 ac_cv_prog_ac_ct_CC="$ac_prog"
2768 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2778 if test -n "$ac_ct_CC"; then
2779 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2780 $as_echo "$ac_ct_CC" >&6; }
2782 { $as_echo "$as_me:$LINENO: result: no" >&5
2783 $as_echo "no" >&6; }
2787 test -n "$ac_ct_CC" && break
2790 if test "x$ac_ct_CC" = x; then
2793 case $cross_compiling:$ac_tool_warned in
2795 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2796 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2797 ac_tool_warned=yes ;;
2804 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2805 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2806 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2807 See \`config.log' for more details." >&5
2808 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2809 See \`config.log' for more details." >&2;}
2810 { (exit 1); exit 1; }; }; }
2812 # Provide some information about the compiler.
2813 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2816 { (ac_try="$ac_compiler --version >&5"
2818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2819 *) ac_try_echo=$ac_try;;
2821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2822 $as_echo "$ac_try_echo") >&5
2823 (eval "$ac_compiler --version >&5") 2>&5
2825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }
2827 { (ac_try="$ac_compiler -v >&5"
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2833 $as_echo "$ac_try_echo") >&5
2834 (eval "$ac_compiler -v >&5") 2>&5
2836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }
2838 { (ac_try="$ac_compiler -V >&5"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2844 $as_echo "$ac_try_echo") >&5
2845 (eval "$ac_compiler -V >&5") 2>&5
2847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }
2850 cat >conftest.$ac_ext <<_ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2865 ac_clean_files_save=$ac_clean_files
2866 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2867 # Try to create an executable without -o first, disregard a.out.
2868 # It will help us diagnose broken compilers, and finding out an intuition
2870 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2871 $as_echo_n "checking for C compiler default output file name... " >&6; }
2872 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2874 # The possible output files:
2875 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2878 for ac_file in $ac_files
2881 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2882 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2887 if { (ac_try="$ac_link_default"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2893 $as_echo "$ac_try_echo") >&5
2894 (eval "$ac_link_default") 2>&5
2896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }; then
2898 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2899 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2900 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2901 # so that the user can short-circuit this test for compilers unknown to
2903 for ac_file in $ac_files ''
2905 test -f "$ac_file" || continue
2907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2910 # We found the default executable, but exeext='' is most
2914 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2916 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2918 # We set ac_cv_exeext here because the later test for it is not
2919 # safe: cross compilers may not add the suffix if given an `-o'
2920 # argument, so we may need to know it at that point already.
2921 # Even if this section looks crufty: it has the advantage of
2928 test "$ac_cv_exeext" = no && ac_cv_exeext=
2934 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2935 $as_echo "$ac_file" >&6; }
2936 if test -z "$ac_file"; then
2937 $as_echo "$as_me: failed program was:" >&5
2938 sed 's/^/| /' conftest.$ac_ext >&5
2940 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2942 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2943 See \`config.log' for more details." >&5
2944 $as_echo "$as_me: error: C compiler cannot create executables
2945 See \`config.log' for more details." >&2;}
2946 { (exit 77); exit 77; }; }; }
2949 ac_exeext=$ac_cv_exeext
2951 # Check that the compiler produces executables we can run. If not, either
2952 # the compiler is broken, or we cross compile.
2953 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2954 $as_echo_n "checking whether the C compiler works... " >&6; }
2955 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2956 # If not cross compiling, check that we can run a simple program.
2957 if test "$cross_compiling" != yes; then
2958 if { ac_try='./$ac_file'
2959 { (case "(($ac_try" in
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2964 $as_echo "$ac_try_echo") >&5
2965 (eval "$ac_try") 2>&5
2967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); }; }; then
2971 if test "$cross_compiling" = maybe; then
2974 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2977 If you meant to cross compile, use \`--host'.
2978 See \`config.log' for more details." >&5
2979 $as_echo "$as_me: error: cannot run C compiled programs.
2980 If you meant to cross compile, use \`--host'.
2981 See \`config.log' for more details." >&2;}
2982 { (exit 1); exit 1; }; }; }
2986 { $as_echo "$as_me:$LINENO: result: yes" >&5
2987 $as_echo "yes" >&6; }
2989 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2990 ac_clean_files=$ac_clean_files_save
2991 # Check that the compiler produces executables we can run. If not, either
2992 # the compiler is broken, or we cross compile.
2993 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2994 $as_echo_n "checking whether we are cross compiling... " >&6; }
2995 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2996 $as_echo "$cross_compiling" >&6; }
2998 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2999 $as_echo_n "checking for suffix of executables... " >&6; }
3000 if { (ac_try="$ac_link"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3006 $as_echo "$ac_try_echo") >&5
3007 (eval "$ac_link") 2>&5
3009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; then
3011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3013 # work properly (i.e., refer to `conftest.exe'), while it won't with
3015 for ac_file in conftest.exe conftest conftest.*; do
3016 test -f "$ac_file" || continue
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details." >&5
3029 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3030 See \`config.log' for more details." >&2;}
3031 { (exit 1); exit 1; }; }; }
3034 rm -f conftest$ac_cv_exeext
3035 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3036 $as_echo "$ac_cv_exeext" >&6; }
3038 rm -f conftest.$ac_ext
3039 EXEEXT=$ac_cv_exeext
3041 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3042 $as_echo_n "checking for suffix of object files... " >&6; }
3043 if test "${ac_cv_objext+set}" = set; then
3044 $as_echo_n "(cached) " >&6
3046 cat >conftest.$ac_ext <<_ACEOF
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3061 rm -f conftest.o conftest.obj
3062 if { (ac_try="$ac_compile"
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3068 $as_echo "$ac_try_echo") >&5
3069 (eval "$ac_compile") 2>&5
3071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3072 (exit $ac_status); }; then
3073 for ac_file in conftest.o conftest.obj conftest.*; do
3074 test -f "$ac_file" || continue;
3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3077 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3082 $as_echo "$as_me: failed program was:" >&5
3083 sed 's/^/| /' conftest.$ac_ext >&5
3085 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3088 See \`config.log' for more details." >&5
3089 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3090 See \`config.log' for more details." >&2;}
3091 { (exit 1); exit 1; }; }; }
3094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3096 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3097 $as_echo "$ac_cv_objext" >&6; }
3098 OBJEXT=$ac_cv_objext
3100 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3102 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3103 $as_echo_n "(cached) " >&6
3105 cat >conftest.$ac_ext <<_ACEOF
3108 cat confdefs.h >>conftest.$ac_ext
3109 cat >>conftest.$ac_ext <<_ACEOF
3110 /* end confdefs.h. */
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3130 $as_echo "$ac_try_echo") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } && {
3138 test -z "$ac_c_werror_flag" ||
3139 test ! -s conftest.err
3140 } && test -s conftest.$ac_objext; then
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3153 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3154 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3155 if test $ac_compiler_gnu = yes; then
3160 ac_test_CFLAGS=${CFLAGS+set}
3161 ac_save_CFLAGS=$CFLAGS
3162 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3163 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3164 if test "${ac_cv_prog_cc_g+set}" = set; then
3165 $as_echo_n "(cached) " >&6
3167 ac_save_c_werror_flag=$ac_c_werror_flag
3168 ac_c_werror_flag=yes
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3193 $as_echo "$ac_try_echo") >&5
3194 (eval "$ac_compile") 2>conftest.er1
3196 grep -v '^ *+' conftest.er1 >conftest.err
3198 cat conftest.err >&5
3199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); } && {
3201 test -z "$ac_c_werror_flag" ||
3202 test ! -s conftest.err
3203 } && test -s conftest.$ac_objext; then
3206 $as_echo "$as_me: failed program was:" >&5
3207 sed 's/^/| /' conftest.$ac_ext >&5
3210 cat >conftest.$ac_ext <<_ACEOF
3213 cat confdefs.h >>conftest.$ac_ext
3214 cat >>conftest.$ac_ext <<_ACEOF
3215 /* end confdefs.h. */
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3232 $as_echo "$ac_try_echo") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3245 $as_echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3248 ac_c_werror_flag=$ac_save_c_werror_flag
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3272 $as_echo "$ac_try_echo") >&5
3273 (eval "$ac_compile") 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } && {
3280 test -z "$ac_c_werror_flag" ||
3281 test ! -s conftest.err
3282 } && test -s conftest.$ac_objext; then
3285 $as_echo "$as_me: failed program was:" >&5
3286 sed 's/^/| /' conftest.$ac_ext >&5
3291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 ac_c_werror_flag=$ac_save_c_werror_flag
3300 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3301 $as_echo "$ac_cv_prog_cc_g" >&6; }
3302 if test "$ac_test_CFLAGS" = set; then
3303 CFLAGS=$ac_save_CFLAGS
3304 elif test $ac_cv_prog_cc_g = yes; then
3305 if test "$GCC" = yes; then
3311 if test "$GCC" = yes; then
3317 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3318 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3319 if test "${ac_cv_prog_cc_c89+set}" = set; then
3320 $as_echo_n "(cached) " >&6
3322 ac_cv_prog_cc_c89=no
3324 cat >conftest.$ac_ext <<_ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3332 #include <sys/types.h>
3333 #include <sys/stat.h>
3334 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3335 struct buf { int x; };
3336 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3337 static char *e (p, i)
3343 static char *f (char * (*g) (char **, int), char **p, ...)
3348 s = g (p, va_arg (v,int));
3353 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3354 function prototypes and stuff, but not '\xHH' hex character constants.
3355 These don't provoke an error unfortunately, instead are silently treated
3356 as 'x'. The following induces an error, until -std is added to get
3357 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3358 array size at least. It's necessary to write '\x00'==0 to get something
3359 that's true only with -std. */
3360 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3362 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3363 inside strings and character constants. */
3365 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3367 int test (int i, double x);
3368 struct s1 {int (*f) (int a);};
3369 struct s2 {int (*f) (double a);};
3370 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3376 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3381 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3382 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3384 CC="$ac_save_CC $ac_arg"
3385 rm -f conftest.$ac_objext
3386 if { (ac_try="$ac_compile"
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3392 $as_echo "$ac_try_echo") >&5
3393 (eval "$ac_compile") 2>conftest.er1
3395 grep -v '^ *+' conftest.er1 >conftest.err
3397 cat conftest.err >&5
3398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); } && {
3400 test -z "$ac_c_werror_flag" ||
3401 test ! -s conftest.err
3402 } && test -s conftest.$ac_objext; then
3403 ac_cv_prog_cc_c89=$ac_arg
3405 $as_echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3411 rm -f core conftest.err conftest.$ac_objext
3412 test "x$ac_cv_prog_cc_c89" != "xno" && break
3414 rm -f conftest.$ac_ext
3419 case "x$ac_cv_prog_cc_c89" in
3421 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3422 $as_echo "none needed" >&6; } ;;
3424 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3425 $as_echo "unsupported" >&6; } ;;
3427 CC="$CC $ac_cv_prog_cc_c89"
3428 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3429 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3446 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3447 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3448 # On Suns, sometimes $CPP names a directory.
3449 if test -n "$CPP" && test -d "$CPP"; then
3452 if test -z "$CPP"; then
3453 if test "${ac_cv_prog_CPP+set}" = set; then
3454 $as_echo_n "(cached) " >&6
3456 # Double quotes because CPP needs to be expanded
3457 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3460 for ac_c_preproc_warn_flag in '' yes
3462 # Use a header file that comes with gcc, so configuring glibc
3463 # with a fresh cross-compiler works.
3464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3465 # <limits.h> exists even on freestanding compilers.
3466 # On the NeXT, cc -E runs the code through the compiler's parser,
3467 # not just through cpp. "Syntax error" is here to catch this case.
3468 cat >conftest.$ac_ext <<_ACEOF
3471 cat confdefs.h >>conftest.$ac_ext
3472 cat >>conftest.$ac_ext <<_ACEOF
3473 /* end confdefs.h. */
3475 # include <limits.h>
3477 # include <assert.h>
3481 if { (ac_try="$ac_cpp conftest.$ac_ext"
3483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3484 *) ac_try_echo=$ac_try;;
3486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3487 $as_echo "$ac_try_echo") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3490 grep -v '^ *+' conftest.er1 >conftest.err
3492 cat conftest.err >&5
3493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null && {
3495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3500 $as_echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Broken: fails on valid input.
3507 rm -f conftest.err conftest.$ac_ext
3509 # OK, works on sane cases. Now check whether nonexistent headers
3510 # can be detected and how.
3511 cat >conftest.$ac_ext <<_ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3519 if { (ac_try="$ac_cpp conftest.$ac_ext"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3525 $as_echo "$ac_try_echo") >&5
3526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3528 grep -v '^ *+' conftest.er1 >conftest.err
3530 cat conftest.err >&5
3531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); } >/dev/null && {
3533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3534 test ! -s conftest.err
3536 # Broken: success on invalid input.
3539 $as_echo "$as_me: failed program was:" >&5
3540 sed 's/^/| /' conftest.$ac_ext >&5
3542 # Passes both tests.
3547 rm -f conftest.err conftest.$ac_ext
3550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3551 rm -f conftest.err conftest.$ac_ext
3552 if $ac_preproc_ok; then
3564 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3565 $as_echo "$CPP" >&6; }
3567 for ac_c_preproc_warn_flag in '' yes
3569 # Use a header file that comes with gcc, so configuring glibc
3570 # with a fresh cross-compiler works.
3571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3572 # <limits.h> exists even on freestanding compilers.
3573 # On the NeXT, cc -E runs the code through the compiler's parser,
3574 # not just through cpp. "Syntax error" is here to catch this case.
3575 cat >conftest.$ac_ext <<_ACEOF
3578 cat confdefs.h >>conftest.$ac_ext
3579 cat >>conftest.$ac_ext <<_ACEOF
3580 /* end confdefs.h. */
3582 # include <limits.h>
3584 # include <assert.h>
3588 if { (ac_try="$ac_cpp conftest.$ac_ext"
3590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3591 *) ac_try_echo=$ac_try;;
3593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3594 $as_echo "$ac_try_echo") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null && {
3602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3603 test ! -s conftest.err
3607 $as_echo "$as_me: failed program was:" >&5
3608 sed 's/^/| /' conftest.$ac_ext >&5
3610 # Broken: fails on valid input.
3614 rm -f conftest.err conftest.$ac_ext
3616 # OK, works on sane cases. Now check whether nonexistent headers
3617 # can be detected and how.
3618 cat >conftest.$ac_ext <<_ACEOF
3621 cat confdefs.h >>conftest.$ac_ext
3622 cat >>conftest.$ac_ext <<_ACEOF
3623 /* end confdefs.h. */
3624 #include <ac_nonexistent.h>
3626 if { (ac_try="$ac_cpp conftest.$ac_ext"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3632 $as_echo "$ac_try_echo") >&5
3633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3635 grep -v '^ *+' conftest.er1 >conftest.err
3637 cat conftest.err >&5
3638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3639 (exit $ac_status); } >/dev/null && {
3640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3641 test ! -s conftest.err
3643 # Broken: success on invalid input.
3646 $as_echo "$as_me: failed program was:" >&5
3647 sed 's/^/| /' conftest.$ac_ext >&5
3649 # Passes both tests.
3654 rm -f conftest.err conftest.$ac_ext
3657 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3658 rm -f conftest.err conftest.$ac_ext
3659 if $ac_preproc_ok; then
3662 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3665 See \`config.log' for more details." >&5
3666 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3667 See \`config.log' for more details." >&2;}
3668 { (exit 1); exit 1; }; }; }
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3678 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3679 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3680 if test "${ac_cv_path_GREP+set}" = set; then
3681 $as_echo_n "(cached) " >&6
3683 if test -z "$GREP"; then
3684 ac_path_GREP_found=false
3685 # Loop through the user's path and test for each of PROGNAME-LIST
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3690 test -z "$as_dir" && as_dir=.
3691 for ac_prog in grep ggrep; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3694 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3695 # Check for GNU ac_path_GREP and select it if it is found.
3696 # Check for GNU $ac_path_GREP
3697 case `"$ac_path_GREP" --version 2>&1` in
3699 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3702 $as_echo_n 0123456789 >"conftest.in"
3705 cat "conftest.in" "conftest.in" >"conftest.tmp"
3706 mv "conftest.tmp" "conftest.in"
3707 cp "conftest.in" "conftest.nl"
3708 $as_echo 'GREP' >> "conftest.nl"
3709 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3711 ac_count=`expr $ac_count + 1`
3712 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3713 # Best one so far, save it but keep looking for a better one
3714 ac_cv_path_GREP="$ac_path_GREP"
3715 ac_path_GREP_max=$ac_count
3717 # 10*(2^10) chars as input seems more than enough
3718 test $ac_count -gt 10 && break
3720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3723 $ac_path_GREP_found && break 3
3728 if test -z "$ac_cv_path_GREP"; then
3729 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3730 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3731 { (exit 1); exit 1; }; }
3734 ac_cv_path_GREP=$GREP
3738 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3739 $as_echo "$ac_cv_path_GREP" >&6; }
3740 GREP="$ac_cv_path_GREP"
3743 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3744 $as_echo_n "checking for egrep... " >&6; }
3745 if test "${ac_cv_path_EGREP+set}" = set; then
3746 $as_echo_n "(cached) " >&6
3748 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3749 then ac_cv_path_EGREP="$GREP -E"
3751 if test -z "$EGREP"; then
3752 ac_path_EGREP_found=false
3753 # Loop through the user's path and test for each of PROGNAME-LIST
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3758 test -z "$as_dir" && as_dir=.
3759 for ac_prog in egrep; do
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3762 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3763 # Check for GNU ac_path_EGREP and select it if it is found.
3764 # Check for GNU $ac_path_EGREP
3765 case `"$ac_path_EGREP" --version 2>&1` in
3767 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3770 $as_echo_n 0123456789 >"conftest.in"
3773 cat "conftest.in" "conftest.in" >"conftest.tmp"
3774 mv "conftest.tmp" "conftest.in"
3775 cp "conftest.in" "conftest.nl"
3776 $as_echo 'EGREP' >> "conftest.nl"
3777 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3778 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3779 ac_count=`expr $ac_count + 1`
3780 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3781 # Best one so far, save it but keep looking for a better one
3782 ac_cv_path_EGREP="$ac_path_EGREP"
3783 ac_path_EGREP_max=$ac_count
3785 # 10*(2^10) chars as input seems more than enough
3786 test $ac_count -gt 10 && break
3788 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3791 $ac_path_EGREP_found && break 3
3796 if test -z "$ac_cv_path_EGREP"; then
3797 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3802 ac_cv_path_EGREP=$EGREP
3807 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3808 $as_echo "$ac_cv_path_EGREP" >&6; }
3809 EGREP="$ac_cv_path_EGREP"
3812 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3813 $as_echo_n "checking for ANSI C header files... " >&6; }
3814 if test "${ac_cv_header_stdc+set}" = set; then
3815 $as_echo_n "(cached) " >&6
3817 cat >conftest.$ac_ext <<_ACEOF
3820 cat confdefs.h >>conftest.$ac_ext
3821 cat >>conftest.$ac_ext <<_ACEOF
3822 /* end confdefs.h. */
3836 rm -f conftest.$ac_objext
3837 if { (ac_try="$ac_compile"
3839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3843 $as_echo "$ac_try_echo") >&5
3844 (eval "$ac_compile") 2>conftest.er1
3846 grep -v '^ *+' conftest.er1 >conftest.err
3848 cat conftest.err >&5
3849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); } && {
3851 test -z "$ac_c_werror_flag" ||
3852 test ! -s conftest.err
3853 } && test -s conftest.$ac_objext; then
3854 ac_cv_header_stdc=yes
3856 $as_echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 ac_cv_header_stdc=no
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 if test $ac_cv_header_stdc = yes; then
3865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3866 cat >conftest.$ac_ext <<_ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 $EGREP "memchr" >/dev/null 2>&1; then
3879 ac_cv_header_stdc=no
3885 if test $ac_cv_header_stdc = yes; then
3886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3887 cat >conftest.$ac_ext <<_ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897 $EGREP "free" >/dev/null 2>&1; then
3900 ac_cv_header_stdc=no
3906 if test $ac_cv_header_stdc = yes; then
3907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3908 if test "$cross_compiling" = yes; then
3911 cat >conftest.$ac_ext <<_ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3919 #if ((' ' & 0x0FF) == 0x020)
3920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3923 # define ISLOWER(c) \
3924 (('a' <= (c) && (c) <= 'i') \
3925 || ('j' <= (c) && (c) <= 'r') \
3926 || ('s' <= (c) && (c) <= 'z'))
3927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3935 for (i = 0; i < 256; i++)
3936 if (XOR (islower (i), ISLOWER (i))
3937 || toupper (i) != TOUPPER (i))
3942 rm -f conftest$ac_exeext
3943 if { (ac_try="$ac_link"
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3949 $as_echo "$ac_try_echo") >&5
3950 (eval "$ac_link") 2>&5
3952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3954 { (case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3959 $as_echo "$ac_try_echo") >&5
3960 (eval "$ac_try") 2>&5
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; }; then
3966 $as_echo "$as_me: program exited with status $ac_status" >&5
3967 $as_echo "$as_me: failed program was:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3971 ac_cv_header_stdc=no
3973 rm -rf conftest.dSYM
3974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3980 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3981 $as_echo "$ac_cv_header_stdc" >&6; }
3982 if test $ac_cv_header_stdc = yes; then
3984 cat >>confdefs.h <<\_ACEOF
3985 #define STDC_HEADERS 1
3990 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4000 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4001 inttypes.h stdint.h unistd.h
4003 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4004 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4005 $as_echo_n "checking for $ac_header... " >&6; }
4006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4007 $as_echo_n "(cached) " >&6
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4015 $ac_includes_default
4017 #include <$ac_header>
4019 rm -f conftest.$ac_objext
4020 if { (ac_try="$ac_compile"
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4026 $as_echo "$ac_try_echo") >&5
4027 (eval "$ac_compile") 2>conftest.er1
4029 grep -v '^ *+' conftest.er1 >conftest.err
4031 cat conftest.err >&5
4032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } && {
4034 test -z "$ac_c_werror_flag" ||
4035 test ! -s conftest.err
4036 } && test -s conftest.$ac_objext; then
4037 eval "$as_ac_Header=yes"
4039 $as_echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4042 eval "$as_ac_Header=no"
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_res=`eval 'as_val=${'$as_ac_Header'}
4048 $as_echo "$as_val"'`
4049 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4050 $as_echo "$ac_res" >&6; }
4051 as_val=`eval 'as_val=${'$as_ac_Header'}
4052 $as_echo "$as_val"'`
4053 if test "x$as_val" = x""yes; then
4054 cat >>confdefs.h <<_ACEOF
4055 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4064 if test "${ac_cv_header_minix_config_h+set}" = set; then
4065 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4066 $as_echo_n "checking for minix/config.h... " >&6; }
4067 if test "${ac_cv_header_minix_config_h+set}" = set; then
4068 $as_echo_n "(cached) " >&6
4070 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4071 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4073 # Is the header compilable?
4074 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4075 $as_echo_n "checking minix/config.h usability... " >&6; }
4076 cat >conftest.$ac_ext <<_ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h. */
4082 $ac_includes_default
4083 #include <minix/config.h>
4085 rm -f conftest.$ac_objext
4086 if { (ac_try="$ac_compile"
4088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4092 $as_echo "$ac_try_echo") >&5
4093 (eval "$ac_compile") 2>conftest.er1
4095 grep -v '^ *+' conftest.er1 >conftest.err
4097 cat conftest.err >&5
4098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); } && {
4100 test -z "$ac_c_werror_flag" ||
4101 test ! -s conftest.err
4102 } && test -s conftest.$ac_objext; then
4103 ac_header_compiler=yes
4105 $as_echo "$as_me: failed program was:" >&5
4106 sed 's/^/| /' conftest.$ac_ext >&5
4108 ac_header_compiler=no
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4112 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4113 $as_echo "$ac_header_compiler" >&6; }
4115 # Is the header present?
4116 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4117 $as_echo_n "checking minix/config.h presence... " >&6; }
4118 cat >conftest.$ac_ext <<_ACEOF
4121 cat confdefs.h >>conftest.$ac_ext
4122 cat >>conftest.$ac_ext <<_ACEOF
4123 /* end confdefs.h. */
4124 #include <minix/config.h>
4126 if { (ac_try="$ac_cpp conftest.$ac_ext"
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4132 $as_echo "$ac_try_echo") >&5
4133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4135 grep -v '^ *+' conftest.er1 >conftest.err
4137 cat conftest.err >&5
4138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4139 (exit $ac_status); } >/dev/null && {
4140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4141 test ! -s conftest.err
4143 ac_header_preproc=yes
4145 $as_echo "$as_me: failed program was:" >&5
4146 sed 's/^/| /' conftest.$ac_ext >&5
4148 ac_header_preproc=no
4151 rm -f conftest.err conftest.$ac_ext
4152 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4153 $as_echo "$ac_header_preproc" >&6; }
4155 # So? What about this header?
4156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4158 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4159 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4160 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4161 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4162 ac_header_preproc=yes
4165 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4166 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4167 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4168 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4169 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4170 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4171 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4172 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4173 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4174 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4175 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4176 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4178 ## ------------------------------------------ ##
4179 ## Report this to https://issues.asterisk.org ##
4180 ## ------------------------------------------ ##
4182 ) | sed "s/^/$as_me: WARNING: /" >&2
4185 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4186 $as_echo_n "checking for minix/config.h... " >&6; }
4187 if test "${ac_cv_header_minix_config_h+set}" = set; then
4188 $as_echo_n "(cached) " >&6
4190 ac_cv_header_minix_config_h=$ac_header_preproc
4192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4193 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4196 if test "x$ac_cv_header_minix_config_h" = x""yes; then
4203 if test "$MINIX" = yes; then
4205 cat >>confdefs.h <<\_ACEOF
4206 #define _POSIX_SOURCE 1
4210 cat >>confdefs.h <<\_ACEOF
4211 #define _POSIX_1_SOURCE 2
4215 cat >>confdefs.h <<\_ACEOF
4223 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4224 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4225 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4226 $as_echo_n "(cached) " >&6
4228 cat >conftest.$ac_ext <<_ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h. */
4235 # define __EXTENSIONS__ 1
4236 $ac_includes_default
4245 rm -f conftest.$ac_objext
4246 if { (ac_try="$ac_compile"
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4252 $as_echo "$ac_try_echo") >&5
4253 (eval "$ac_compile") 2>conftest.er1
4255 grep -v '^ *+' conftest.er1 >conftest.err
4257 cat conftest.err >&5
4258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } && {
4260 test -z "$ac_c_werror_flag" ||
4261 test ! -s conftest.err
4262 } && test -s conftest.$ac_objext; then
4263 ac_cv_safe_to_define___extensions__=yes
4265 $as_echo "$as_me: failed program was:" >&5
4266 sed 's/^/| /' conftest.$ac_ext >&5
4268 ac_cv_safe_to_define___extensions__=no
4271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4274 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4275 test $ac_cv_safe_to_define___extensions__ = yes &&
4276 cat >>confdefs.h <<\_ACEOF
4277 #define __EXTENSIONS__ 1
4280 cat >>confdefs.h <<\_ACEOF
4281 #define _ALL_SOURCE 1
4284 cat >>confdefs.h <<\_ACEOF
4285 #define _GNU_SOURCE 1
4288 cat >>confdefs.h <<\_ACEOF
4289 #define _POSIX_PTHREAD_SEMANTICS 1
4292 cat >>confdefs.h <<\_ACEOF
4293 #define _TANDEM_SOURCE 1
4297 # System default paths
4298 astsbindir='${sbindir}'
4299 astetcdir='${sysconfdir}/asterisk'
4300 astheaderdir='${includedir}/asterisk'
4301 astlibdir='${libdir}'
4302 astmoddir='${libdir}/asterisk/modules'
4303 astmandir='${mandir}'
4304 astvarlibdir='${localstatedir}/lib/asterisk'
4305 astdatadir='${astvarlibdir}'
4306 astdbdir='${astvarlibdir}'
4307 astkeydir='${astvarlibdir}'
4308 astspooldir='${localstatedir}/spool/asterisk'
4309 astlogdir='${localstatedir}/log/asterisk'
4310 astvarrundir='${localstatedir}/run/asterisk'
4312 case "${host_os}" in
4314 if test ${prefix} = 'NONE'; then
4315 astvarlibdir='${prefix}/share/asterisk'
4316 astdbdir='${localstatedir}/db/asterisk'
4320 if test ${prefix} = 'NONE'; then
4321 astvarrundir='/Library/Application Support/Asterisk/Run'
4326 case "${host_os}" in
4328 ac_default_prefix=/usr/local
4329 CPPFLAGS=-I/usr/local/include
4330 LDFLAGS=-L/usr/local/lib
4333 ac_default_prefix=/usr/local
4334 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4335 if test ${sysconfdir} = '${prefix}/etc'; then
4336 astetcdir=/etc/asterisk
4338 if test ${mandir} = '${prefix}/man'; then
4339 astmandir=/usr/share/man
4342 CPPFLAGS=-I/usr/local/include
4343 LDFLAGS=-L/usr/local/lib
4346 ac_default_prefix=/usr/local
4347 if test ${prefix} = 'NONE'; then
4348 astmoddir='/Library/Application Support/Asterisk/Modules'
4349 astvarlibdir='/Library/Application Support/Asterisk'
4350 astlogdir=/Library/Logs/Asterisk
4351 astvarrundir='/Library/Application Support/Asterisk/Run'
4354 cat >>confdefs.h <<\_ACEOF
4355 #define AST_POLL_COMPAT 1
4359 cat >>confdefs.h <<\_ACEOF
4360 #define _DARWIN_UNLIMITED_SELECT 1
4365 if test ${prefix} = 'NONE'; then
4366 astetcdir=/var/etc/asterisk
4367 astsbindir=/opt/asterisk/sbin
4368 astlibdir=/opt/asterisk/lib
4369 astmoddir=/opt/asterisk/lib/modules
4370 astheaderdir=/opt/asterisk/include
4371 astmandir=/opt/asterisk/man
4372 astvarlibdir=/var/opt/asterisk
4373 astspooldir=/var/spool/asterisk
4374 astlogdir=/var/log/asterisk
4375 astvarrundir=/var/run/asterisk
4379 ac_default_prefix=/usr
4380 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4381 if test ${sysconfdir} = '${prefix}/etc'; then
4384 if test ${mandir} = '${prefix}/man'; then
4385 mandir=/usr/share/man
4391 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4392 if test ${localstatedir} = '${prefix}/var'; then
4397 BUILD_PLATFORM=${build}
4398 BUILD_CPU=${build_cpu}
4399 BUILD_VENDOR=${build_vendor}
4400 BUILD_OS=${build_os}
4407 HOST_PLATFORM=${host}
4408 HOST_CPU=${host_cpu}
4409 HOST_VENDOR=${host_vendor}
4419 case "${host_os}" in
4455 if test -n "$ac_tool_prefix"; then
4456 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}uname; ac_word=$2
4458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if test "${ac_cv_path_UNAME+set}" = set; then
4461 $as_echo_n "(cached) " >&6
4465 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 test -z "$as_dir" && as_dir=.
4473 for ac_exec_ext in '' $ac_executable_extensions; do
4474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4475 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4476 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4486 UNAME=$ac_cv_path_UNAME
4487 if test -n "$UNAME"; then
4488 { $as_echo "$as_me:$LINENO: result: $UNAME" >&5
4489 $as_echo "$UNAME" >&6; }
4491 { $as_echo "$as_me:$LINENO: result: no" >&5
4492 $as_echo "no" >&6; }
4497 if test -z "$ac_cv_path_UNAME"; then
4499 # Extract the first word of "uname", so it can be a program name with args.
4500 set dummy uname; ac_word=$2
4501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4502 $as_echo_n "checking for $ac_word... " >&6; }
4503 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then
4504 $as_echo_n "(cached) " >&6
4506 case $ac_pt_UNAME in
4508 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4519 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4530 if test -n "$ac_pt_UNAME"; then
4531 { $as_echo "$as_me:$LINENO: result: $ac_pt_UNAME" >&5
4532 $as_echo "$ac_pt_UNAME" >&6; }
4534 { $as_echo "$as_me:$LINENO: result: no" >&5
4535 $as_echo "no" >&6; }
4538 if test "x$ac_pt_UNAME" = x; then
4541 case $cross_compiling:$ac_tool_warned in
4543 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4545 ac_tool_warned=yes ;;
4550 UNAME="$ac_cv_path_UNAME"
4553 if test ! x"${UNAME}" = xNo; then
4554 PBX_OSREV=$(${UNAME} -r)
4564 # cross-compile checks
4565 if test "${cross_compiling}" = "yes";
4567 if test -n "$ac_tool_prefix"; then
4568 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4569 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4570 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4571 $as_echo_n "checking for $ac_word... " >&6; }
4572 if test "${ac_cv_prog_CC+set}" = set; then
4573 $as_echo_n "(cached) " >&6
4575 if test -n "$CC"; then
4576 ac_cv_prog_CC="$CC" # Let the user override the test.
4578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 test -z "$as_dir" && as_dir=.
4583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4585 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4586 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 if test -n "$CC"; then
4597 { $as_echo "$as_me:$LINENO: result: $CC" >&5
4598 $as_echo "$CC" >&6; }
4600 { $as_echo "$as_me:$LINENO: result: no" >&5
4601 $as_echo "no" >&6; }
4606 if test -z "$ac_cv_prog_CC"; then
4608 # Extract the first word of "gcc", so it can be a program name with args.
4609 set dummy gcc; ac_word=$2
4610 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4613 $as_echo_n "(cached) " >&6
4615 if test -n "$ac_ct_CC"; then
4616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_ac_ct_CC="gcc"
4626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4636 if test -n "$ac_ct_CC"; then
4637 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4638 $as_echo "$ac_ct_CC" >&6; }
4640 { $as_echo "$as_me:$LINENO: result: no" >&5
4641 $as_echo "no" >&6; }
4644 if test "x$ac_ct_CC" = x; then
4647 case $cross_compiling:$ac_tool_warned in
4649 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4651 ac_tool_warned=yes ;;
4659 if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
4661 set dummy ${ac_tool_prefix}g++; ac_word=$2
4662 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4663 $as_echo_n "checking for $ac_word... " >&6; }
4664 if test "${ac_cv_prog_CXX+set}" = set; then
4665 $as_echo_n "(cached) " >&6
4667 if test -n "$CXX"; then
4668 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_CXX="${ac_tool_prefix}g++"
4678 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4688 if test -n "$CXX"; then
4689 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
4690 $as_echo "$CXX" >&6; }
4692 { $as_echo "$as_me:$LINENO: result: no" >&5
4693 $as_echo "no" >&6; }
4698 if test -z "$ac_cv_prog_CXX"; then
4700 # Extract the first word of "g++", so it can be a program name with args.
4701 set dummy g++; ac_word=$2
4702 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4703 $as_echo_n "checking for $ac_word... " >&6; }
4704 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4705 $as_echo_n "(cached) " >&6
4707 if test -n "$ac_ct_CXX"; then
4708 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_CXX="g++"
4718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4728 if test -n "$ac_ct_CXX"; then
4729 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4730 $as_echo "$ac_ct_CXX" >&6; }
4732 { $as_echo "$as_me:$LINENO: result: no" >&5
4733 $as_echo "no" >&6; }
4736 if test "x$ac_ct_CXX" = x; then
4739 case $cross_compiling:$ac_tool_warned in
4741 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743 ac_tool_warned=yes ;;
4748 CXX="$ac_cv_prog_CXX"