2 # From configure.ac Revision: 355376 .
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
693 AST_NO_STRICT_OVERFLOW
695 AST_DECLARATION_AFTER_STATEMENT
699 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
700 PBX_PTHREAD_RWLOCK_INITIALIZER
780 SPEEX_PREPROCESS_INCLUDE
815 PBX_PRI_REVERSE_CHARGE
816 PRI_REVERSE_CHARGE_DIR
817 PRI_REVERSE_CHARGE_INCLUDE
818 PRI_REVERSE_CHARGE_LIB
819 PBX_PRI_SERVICE_MESSAGES
820 PRI_SERVICE_MESSAGES_DIR
821 PRI_SERVICE_MESSAGES_INCLUDE
822 PRI_SERVICE_MESSAGES_LIB
825 PRI_PROG_W_CAUSE_INCLUDE
827 PBX_PRI_INBANDDISCONNECT
828 PRI_INBANDDISCONNECT_DIR
829 PRI_INBANDDISCONNECT_INCLUDE
830 PRI_INBANDDISCONNECT_LIB
833 PRI_SETUP_KEYPAD_INCLUDE
835 PBX_PRI_CALL_REROUTING
836 PRI_CALL_REROUTING_DIR
837 PRI_CALL_REROUTING_INCLUDE
838 PRI_CALL_REROUTING_LIB
841 PRI_CALL_HOLD_INCLUDE
849 PRI_HANGUP_FIX_INCLUDE
861 PRI_AOC_EVENTS_INCLUDE
865 PRI_CALL_WAITING_INCLUDE
877 PRI_DISPLAY_TEXT_INCLUDE
883 PBX_PRI_DATETIME_SEND
884 PRI_DATETIME_SEND_DIR
885 PRI_DATETIME_SEND_INCLUDE
886 PRI_DATETIME_SEND_LIB
887 PBX_PRI_L2_PERSISTENCE
888 PRI_L2_PERSISTENCE_DIR
889 PRI_L2_PERSISTENCE_INCLUDE
890 PRI_L2_PERSISTENCE_LIB
1193 program_transform_name
1205 enable_option_checking
1282 enable_internal_poll
1285 ac_precious_vars='build_alias
1300 # Initialize some variables set by options.
1302 ac_init_version=false
1303 ac_unrecognized_opts=
1304 ac_unrecognized_sep=
1305 # The variables have the same names as the options, with
1306 # dashes changed to underlines.
1307 cache_file=/dev/null
1314 program_transform_name=s,x,x,
1322 # Installation directory options.
1323 # These are left unexpanded so users can "make install exec_prefix=/foo"
1324 # and all the variables that are supposed to be based on exec_prefix
1325 # by default will actually change.
1326 # Use braces instead of parens because sh, perl, etc. also accept them.
1327 # (The list follows the same order as the GNU Coding Standards.)
1328 bindir='${exec_prefix}/bin'
1329 sbindir='${exec_prefix}/sbin'
1330 libexecdir='${exec_prefix}/libexec'
1331 datarootdir='${prefix}/share'
1332 datadir='${datarootdir}'
1333 sysconfdir='${prefix}/etc'
1334 sharedstatedir='${prefix}/com'
1335 localstatedir='${prefix}/var'
1336 includedir='${prefix}/include'
1337 oldincludedir='/usr/include'
1338 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1339 infodir='${datarootdir}/info'
1344 libdir='${exec_prefix}/lib'
1345 localedir='${datarootdir}/locale'
1346 mandir='${datarootdir}/man'
1352 # If the previous option needs an argument, assign it.
1353 if test -n "$ac_prev"; then
1354 eval $ac_prev=\$ac_option
1360 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1364 # Accept the important Cygnus configure options, so we can diagnose typos.
1366 case $ac_dashdash$ac_option in
1370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1373 bindir=$ac_optarg ;;
1375 -build | --build | --buil | --bui | --bu)
1376 ac_prev=build_alias ;;
1377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1378 build_alias=$ac_optarg ;;
1380 -cache-file | --cache-file | --cache-fil | --cache-fi \
1381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1382 ac_prev=cache_file ;;
1383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1385 cache_file=$ac_optarg ;;
1387 --config-cache | -C)
1388 cache_file=config.cache ;;
1390 -datadir | --datadir | --datadi | --datad)
1392 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1393 datadir=$ac_optarg ;;
1395 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1396 | --dataroo | --dataro | --datar)
1397 ac_prev=datarootdir ;;
1398 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1399 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1400 datarootdir=$ac_optarg ;;
1402 -disable-* | --disable-*)
1403 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1404 # Reject names that are not valid shell variable names.
1405 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1406 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1407 { (exit 1); exit 1; }; }
1408 ac_useropt_orig=$ac_useropt
1409 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1410 case $ac_user_opts in
1412 "enable_$ac_useropt"
1414 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1415 ac_unrecognized_sep=', ';;
1417 eval enable_$ac_useropt=no ;;
1419 -docdir | --docdir | --docdi | --doc | --do)
1421 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1422 docdir=$ac_optarg ;;
1424 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1426 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1427 dvidir=$ac_optarg ;;
1429 -enable-* | --enable-*)
1430 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1431 # Reject names that are not valid shell variable names.
1432 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1433 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1434 { (exit 1); exit 1; }; }
1435 ac_useropt_orig=$ac_useropt
1436 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1437 case $ac_user_opts in
1439 "enable_$ac_useropt"
1441 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1442 ac_unrecognized_sep=', ';;
1444 eval enable_$ac_useropt=\$ac_optarg ;;
1446 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1447 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1448 | --exec | --exe | --ex)
1449 ac_prev=exec_prefix ;;
1450 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1451 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1452 | --exec=* | --exe=* | --ex=*)
1453 exec_prefix=$ac_optarg ;;
1455 -gas | --gas | --ga | --g)
1456 # Obsolete; use --with-gas.
1459 -help | --help | --hel | --he | -h)
1460 ac_init_help=long ;;
1461 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1462 ac_init_help=recursive ;;
1463 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1464 ac_init_help=short ;;
1466 -host | --host | --hos | --ho)
1467 ac_prev=host_alias ;;
1468 -host=* | --host=* | --hos=* | --ho=*)
1469 host_alias=$ac_optarg ;;
1471 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1473 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1475 htmldir=$ac_optarg ;;
1477 -includedir | --includedir | --includedi | --included | --include \
1478 | --includ | --inclu | --incl | --inc)
1479 ac_prev=includedir ;;
1480 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1481 | --includ=* | --inclu=* | --incl=* | --inc=*)
1482 includedir=$ac_optarg ;;
1484 -infodir | --infodir | --infodi | --infod | --info | --inf)
1486 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1487 infodir=$ac_optarg ;;
1489 -libdir | --libdir | --libdi | --libd)
1491 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1492 libdir=$ac_optarg ;;
1494 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1495 | --libexe | --libex | --libe)
1496 ac_prev=libexecdir ;;
1497 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1498 | --libexe=* | --libex=* | --libe=*)
1499 libexecdir=$ac_optarg ;;
1501 -localedir | --localedir | --localedi | --localed | --locale)
1502 ac_prev=localedir ;;
1503 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1504 localedir=$ac_optarg ;;
1506 -localstatedir | --localstatedir | --localstatedi | --localstated \
1507 | --localstate | --localstat | --localsta | --localst | --locals)
1508 ac_prev=localstatedir ;;
1509 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1510 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1511 localstatedir=$ac_optarg ;;
1513 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1515 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1516 mandir=$ac_optarg ;;
1518 -nfp | --nfp | --nf)
1519 # Obsolete; use --without-fp.
1522 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1523 | --no-cr | --no-c | -n)
1526 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1527 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1530 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1531 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1532 | --oldin | --oldi | --old | --ol | --o)
1533 ac_prev=oldincludedir ;;
1534 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1535 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1536 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1537 oldincludedir=$ac_optarg ;;
1539 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1541 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1542 prefix=$ac_optarg ;;
1544 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1545 | --program-pre | --program-pr | --program-p)
1546 ac_prev=program_prefix ;;
1547 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1548 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1549 program_prefix=$ac_optarg ;;
1551 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1552 | --program-suf | --program-su | --program-s)
1553 ac_prev=program_suffix ;;
1554 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1555 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1556 program_suffix=$ac_optarg ;;
1558 -program-transform-name | --program-transform-name \
1559 | --program-transform-nam | --program-transform-na \
1560 | --program-transform-n | --program-transform- \
1561 | --program-transform | --program-transfor \
1562 | --program-transfo | --program-transf \
1563 | --program-trans | --program-tran \
1564 | --progr-tra | --program-tr | --program-t)
1565 ac_prev=program_transform_name ;;
1566 -program-transform-name=* | --program-transform-name=* \
1567 | --program-transform-nam=* | --program-transform-na=* \
1568 | --program-transform-n=* | --program-transform-=* \
1569 | --program-transform=* | --program-transfor=* \
1570 | --program-transfo=* | --program-transf=* \
1571 | --program-trans=* | --program-tran=* \
1572 | --progr-tra=* | --program-tr=* | --program-t=*)
1573 program_transform_name=$ac_optarg ;;
1575 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1577 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1578 pdfdir=$ac_optarg ;;
1580 -psdir | --psdir | --psdi | --psd | --ps)
1582 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1585 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1586 | -silent | --silent | --silen | --sile | --sil)
1589 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1591 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1593 sbindir=$ac_optarg ;;
1595 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1596 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1597 | --sharedst | --shareds | --shared | --share | --shar \
1599 ac_prev=sharedstatedir ;;
1600 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1601 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1602 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1604 sharedstatedir=$ac_optarg ;;
1606 -site | --site | --sit)
1608 -site=* | --site=* | --sit=*)
1611 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1613 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1614 srcdir=$ac_optarg ;;
1616 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1617 | --syscon | --sysco | --sysc | --sys | --sy)
1618 ac_prev=sysconfdir ;;
1619 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1620 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1621 sysconfdir=$ac_optarg ;;
1623 -target | --target | --targe | --targ | --tar | --ta | --t)
1624 ac_prev=target_alias ;;
1625 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1626 target_alias=$ac_optarg ;;
1628 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1631 -version | --version | --versio | --versi | --vers | -V)
1632 ac_init_version=: ;;
1635 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1636 # Reject names that are not valid shell variable names.
1637 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1638 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1639 { (exit 1); exit 1; }; }
1640 ac_useropt_orig=$ac_useropt
1641 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1642 case $ac_user_opts in
1646 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1647 ac_unrecognized_sep=', ';;
1649 eval with_$ac_useropt=\$ac_optarg ;;
1651 -without-* | --without-*)
1652 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1653 # Reject names that are not valid shell variable names.
1654 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1655 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1656 { (exit 1); exit 1; }; }
1657 ac_useropt_orig=$ac_useropt
1658 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1659 case $ac_user_opts in
1663 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1664 ac_unrecognized_sep=', ';;
1666 eval with_$ac_useropt=no ;;
1669 # Obsolete; use --with-x.
1672 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1673 | --x-incl | --x-inc | --x-in | --x-i)
1674 ac_prev=x_includes ;;
1675 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1676 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1677 x_includes=$ac_optarg ;;
1679 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1680 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1681 ac_prev=x_libraries ;;
1682 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1683 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1684 x_libraries=$ac_optarg ;;
1686 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1687 Try \`$0 --help' for more information." >&2
1688 { (exit 1); exit 1; }; }
1692 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1693 # Reject names that are not valid shell variable names.
1694 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1695 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1696 { (exit 1); exit 1; }; }
1697 eval $ac_envvar=\$ac_optarg
1698 export $ac_envvar ;;
1701 # FIXME: should be removed in autoconf 3.0.
1702 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1703 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1704 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1705 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1711 if test -n "$ac_prev"; then
1712 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1713 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1714 { (exit 1); exit 1; }; }
1717 if test -n "$ac_unrecognized_opts"; then
1718 case $enable_option_checking in
1720 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1721 { (exit 1); exit 1; }; } ;;
1722 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1726 # Check all directory arguments for consistency.
1727 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1728 datadir sysconfdir sharedstatedir localstatedir includedir \
1729 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1730 libdir localedir mandir
1732 eval ac_val=\$$ac_var
1733 # Remove trailing slashes.
1736 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1737 eval $ac_var=\$ac_val;;
1739 # Be sure to have absolute directory names.
1741 [\\/$]* | ?:[\\/]* ) continue;;
1742 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1744 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1745 { (exit 1); exit 1; }; }
1748 # There might be people who depend on the old broken behavior: `$host'
1749 # used to hold the argument of --host etc.
1750 # FIXME: To remove some day.
1753 target=$target_alias
1755 # FIXME: To remove some day.
1756 if test "x$host_alias" != x; then
1757 if test "x$build_alias" = x; then
1758 cross_compiling=maybe
1759 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1760 If a cross compiler is detected then cross compile mode will be used." >&2
1761 elif test "x$build_alias" != "x$host_alias"; then
1767 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1769 test "$silent" = yes && exec 6>/dev/null
1772 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1773 ac_ls_di=`ls -di .` &&
1774 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1775 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1776 { (exit 1); exit 1; }; }
1777 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1778 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1779 { (exit 1); exit 1; }; }
1782 # Find the source files, if location was not specified.
1783 if test -z "$srcdir"; then
1784 ac_srcdir_defaulted=yes
1785 # Try the directory containing this script, then the parent directory.
1786 ac_confdir=`$as_dirname -- "$as_myself" ||
1787 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1788 X"$as_myself" : 'X\(//\)[^/]' \| \
1789 X"$as_myself" : 'X\(//\)$' \| \
1790 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1791 $as_echo X"$as_myself" |
1792 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1810 if test ! -r "$srcdir/$ac_unique_file"; then
1814 ac_srcdir_defaulted=no
1816 if test ! -r "$srcdir/$ac_unique_file"; then
1817 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1818 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1819 { (exit 1); exit 1; }; }
1821 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1823 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1824 { (exit 1); exit 1; }; }
1826 # When building in place, set srcdir=.
1827 if test "$ac_abs_confdir" = "$ac_pwd"; then
1830 # Remove unnecessary trailing slashes from srcdir.
1831 # Double slashes in file names in object file debugging info
1832 # mess up M-x gdb in Emacs.
1834 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1836 for ac_var in $ac_precious_vars; do
1837 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1838 eval ac_env_${ac_var}_value=\$${ac_var}
1839 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1840 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1844 # Report the --help message.
1846 if test "$ac_init_help" = "long"; then
1847 # Omit some internal or obsolete options to make the list less imposing.
1848 # This message is too long to be a string in the A/UX 3.1 sh.
1850 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1852 Usage: $0 [OPTION]... [VAR=VALUE]...
1854 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1855 VAR=VALUE. See below for descriptions of some of the useful variables.
1857 Defaults for the options are specified in brackets.
1860 -h, --help display this help and exit
1861 --help=short display options specific to this package
1862 --help=recursive display the short help of all the included packages
1863 -V, --version display version information and exit
1864 -q, --quiet, --silent do not print \`checking...' messages
1865 --cache-file=FILE cache test results in FILE [disabled]
1866 -C, --config-cache alias for \`--cache-file=config.cache'
1867 -n, --no-create do not create output files
1868 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1870 Installation directories:
1871 --prefix=PREFIX install architecture-independent files in PREFIX
1872 [$ac_default_prefix]
1873 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1876 By default, \`make install' will install all the files in
1877 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1878 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1879 for instance \`--prefix=\$HOME'.
1881 For better control, use the options below.
1883 Fine tuning of the installation directories:
1884 --bindir=DIR user executables [EPREFIX/bin]
1885 --sbindir=DIR system admin executables [EPREFIX/sbin]
1886 --libexecdir=DIR program executables [EPREFIX/libexec]
1887 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1888 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1889 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1890 --libdir=DIR object code libraries [EPREFIX/lib]
1891 --includedir=DIR C header files [PREFIX/include]
1892 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1893 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1894 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1895 --infodir=DIR info documentation [DATAROOTDIR/info]
1896 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1897 --mandir=DIR man documentation [DATAROOTDIR/man]
1898 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1899 --htmldir=DIR html documentation [DOCDIR]
1900 --dvidir=DIR dvi documentation [DOCDIR]
1901 --pdfdir=DIR pdf documentation [DOCDIR]
1902 --psdir=DIR ps documentation [DOCDIR]
1908 --build=BUILD configure for building on BUILD [guessed]
1909 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1913 if test -n "$ac_init_help"; then
1914 case $ac_init_help in
1915 short | recursive ) echo "Configuration of asterisk trunk:";;
1920 --disable-option-checking ignore unrecognized --enable/--with options
1921 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1922 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1923 --enable-dev-mode Turn on developer mode
1924 --enable-coverage Turn on code coverage tracking (for gcov)
1925 --disable-xmldoc Explicitly disable XML documentation
1926 --disable-largefile omit support for large files
1927 --enable-internal-poll Use Asterisk's poll implementation
1928 --disable-asteriskssl Disable Asterisk's SSL wrapper library
1931 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1932 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1933 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1934 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1935 --with-bfd=PATH use Debug symbol decoding files in PATH
1936 --with-execinfo=PATH use Stack Backtrace files in PATH
1937 --with-bluetooth=PATH use Bluetooth files in PATH
1938 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1939 --with-cpg=PATH use Corosync files in PATH
1940 --with-curses=PATH use curses files in PATH
1941 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1942 --with-dahdi=PATH use DAHDI files in PATH
1943 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1944 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1946 --with-gtk2=PATH use gtk2 files in PATH
1947 --with-gmime=PATH use GMime files in PATH
1948 --with-h323=PATH use OpenH323 files in PATH
1949 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1950 --with-ical=PATH use iCal files in PATH
1951 --with-iconv=PATH use Iconv files in PATH
1952 --with-iksemel=PATH use Iksemel Jabber files in PATH
1953 --with-imap=PATH use UW IMAP Toolkit files in PATH
1954 --with-inotify=PATH use inotify support files in PATH
1955 --with-iodbc=PATH use iODBC files in PATH
1956 --with-isdnnet=PATH use ISDN4Linux files in PATH
1957 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1958 --with-kqueue=PATH use kqueue support files in PATH
1959 --with-ldap=PATH use OpenLDAP files in PATH
1960 --with-libcurl=DIR look for the curl library in DIR
1961 --with-libxml2=PATH use LibXML2 files in PATH
1962 --with-ltdl=PATH use libtool files in PATH
1963 --with-lua=PATH use Lua files in PATH
1964 --with-misdn=PATH use mISDN user files in PATH
1965 --with-mysqlclient=PATH use MySQL client files in PATH
1966 --with-nbs=PATH use Network Broadcast Sound files in PATH
1967 --with-ncurses=PATH use ncurses files in PATH
1968 --with-neon=PATH use neon files in PATH
1969 --with-neon29=PATH use neon29 files in PATH
1970 --with-netsnmp=PATH use Net-SNMP files in PATH
1971 --with-newt=PATH use newt files in PATH
1972 --with-ogg=PATH use OGG files in PATH
1973 --with-openr2=PATH use MFR2 files in PATH
1974 --with-osptk=PATH use OSP Toolkit files in PATH
1975 --with-oss=PATH use Open Sound System files in PATH
1976 --with-postgres=PATH use PostgreSQL files in PATH
1977 --with-popt=PATH use popt files in PATH
1978 --with-portaudio=PATH use PortAudio files in PATH
1979 --with-pri=PATH use ISDN PRI files in PATH
1980 --with-pwlib=PATH use PWlib files in PATH
1981 --with-radius=PATH use Radius Client files in PATH
1982 --with-resample=PATH use LIBRESAMPLE files in PATH
1983 --with-sdl=PATH use Sdl files in PATH
1984 --with-SDL_image=PATH use Sdl Image files in PATH
1985 --with-sounds-cache=PATH
1986 use cached sound tarfiles in PATH
1987 --with-spandsp=PATH use SPANDSP files in PATH
1988 --with-ss7=PATH use ISDN SS7 files in PATH
1989 --with-speex=PATH use Speex files in PATH
1990 --with-speex=PATH use Speex preprocess routines files in PATH
1991 --with-speexdsp=PATH use SpeexDSP files in PATH
1992 --with-sqlite=PATH use SQLite files in PATH
1993 --with-sqlite3=PATH use SQLite files in PATH
1994 --with-srtp=PATH use Secure RTP files in PATH
1995 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1996 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1997 --with-tds=PATH use FreeTDS files in PATH
1998 --with-termcap=PATH use Termcap files in PATH
1999 --with-timerfd=PATH use timerfd files in PATH
2000 --with-tinfo=PATH use Term Info files in PATH
2001 --with-tonezone=PATH use tonezone files in PATH
2002 --with-unixodbc=PATH use unixODBC files in PATH
2003 --with-usb=PATH use usb files in PATH
2004 --with-vorbis=PATH use Vorbis files in PATH
2005 --with-vpb=PATH use Voicetronix API files in PATH
2006 --with-x11=PATH use X11 files in PATH
2007 --with-z=PATH use zlib compression files in PATH
2009 Some influential environment variables:
2010 CC C compiler command
2011 CFLAGS C compiler flags
2012 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2013 nonstandard directory <lib dir>
2014 LIBS libraries to pass to the linker, e.g. -l<library>
2015 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2016 you have headers in a nonstandard directory <include dir>
2018 CXX C++ compiler command
2019 CXXFLAGS C++ compiler flags
2020 CXXCPP C++ preprocessor
2022 Use these variables to override the choices made by `configure' or to help
2023 it to find libraries and programs with nonstandard names/locations.
2025 Report bugs to <https://issues.asterisk.org>.
2030 if test "$ac_init_help" = "recursive"; then
2031 # If there are subdirs, report their specific --help.
2032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2033 test -d "$ac_dir" ||
2034 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2039 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2041 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2042 # A ".." for each directory in $ac_dir_suffix.
2043 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2044 case $ac_top_builddir_sub in
2045 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2046 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2049 ac_abs_top_builddir=$ac_pwd
2050 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2051 # for backward compatibility:
2052 ac_top_builddir=$ac_top_build_prefix
2055 .) # We are building in place.
2057 ac_top_srcdir=$ac_top_builddir_sub
2058 ac_abs_top_srcdir=$ac_pwd ;;
2059 [\\/]* | ?:[\\/]* ) # Absolute name.
2060 ac_srcdir=$srcdir$ac_dir_suffix;
2061 ac_top_srcdir=$srcdir
2062 ac_abs_top_srcdir=$srcdir ;;
2064 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2065 ac_top_srcdir=$ac_top_build_prefix$srcdir
2066 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2068 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2070 cd "$ac_dir" || { ac_status=$?; continue; }
2071 # Check for guested configure.
2072 if test -f "$ac_srcdir/configure.gnu"; then
2074 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2075 elif test -f "$ac_srcdir/configure"; then
2077 $SHELL "$ac_srcdir/configure" --help=recursive
2079 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2081 cd "$ac_pwd" || { ac_status=$?; break; }
2085 test -n "$ac_init_help" && exit $ac_status
2086 if $ac_init_version; then
2088 asterisk configure trunk
2089 generated by GNU Autoconf 2.63
2091 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2092 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2093 This configure script is free software; the Free Software Foundation
2094 gives unlimited permission to copy, distribute and modify it.
2100 cat >config.log <<_ACEOF
2101 This file contains any messages produced by compilers while
2102 running configure, to aid debugging if configure makes a mistake.
2104 It was created by asterisk $as_me trunk, which was
2105 generated by GNU Autoconf 2.63. Invocation command line was
2117 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2118 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2119 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2120 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2121 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2123 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2124 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2126 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2127 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2128 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2129 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2130 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2131 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2132 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2140 test -z "$as_dir" && as_dir=.
2141 $as_echo "PATH: $as_dir"
2157 # Keep a trace of the command line.
2158 # Strip out --no-create and --no-recursion so they do not pile up.
2159 # Strip out --silent because we don't want to record it for future runs.
2160 # Also quote any args containing shell meta-characters.
2161 # Make two passes to allow for proper duplicate-argument suppression.
2165 ac_must_keep_next=false
2171 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2173 | -silent | --silent | --silen | --sile | --sil)
2176 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2179 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2181 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2182 if test $ac_must_keep_next = true; then
2183 ac_must_keep_next=false # Got value, back to normal.
2186 *=* | --config-cache | -C | -disable-* | --disable-* \
2187 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2188 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2189 | -with-* | --with-* | -without-* | --without-* | --x)
2190 case "$ac_configure_args0 " in
2191 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2194 -* ) ac_must_keep_next=true ;;
2197 ac_configure_args="$ac_configure_args '$ac_arg'"
2202 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2203 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2205 # When interrupted or exit'd, cleanup temporary files, and complete
2206 # config.log. We remove comments because anyway the quotes in there
2207 # would cause problems or look ugly.
2208 # WARNING: Use '\'' to represent an apostrophe within the trap.
2209 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2210 trap 'exit_status=$?
2211 # Save into config.log some information that might help in debugging.
2216 ## ---------------- ##
2217 ## Cache variables. ##
2218 ## ---------------- ##
2221 # The following way of writing the cache mishandles newlines in values,
2223 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2224 eval ac_val=\$$ac_var
2228 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2229 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2232 _ | IFS | as_nl) ;; #(
2233 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2234 *) $as_unset $ac_var ;;
2239 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2240 *${as_nl}ac_space=\ *)
2242 "s/'\''/'\''\\\\'\'''\''/g;
2243 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2254 ## ----------------- ##
2255 ## Output variables. ##
2256 ## ----------------- ##
2259 for ac_var in $ac_subst_vars
2261 eval ac_val=\$$ac_var
2263 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 $as_echo "$ac_var='\''$ac_val'\''"
2269 if test -n "$ac_subst_files"; then
2271 ## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##
2276 for ac_var in $ac_subst_files
2278 eval ac_val=\$$ac_var
2280 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2282 $as_echo "$ac_var='\''$ac_val'\''"
2287 if test -s confdefs.h; then
2297 test "$ac_signal" != 0 &&
2298 $as_echo "$as_me: caught signal $ac_signal"
2299 $as_echo "$as_me: exit $exit_status"
2301 rm -f core *.core core.conftest.* &&
2302 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2305 for ac_signal in 1 2 13 15; do
2306 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2310 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2311 rm -f -r conftest* confdefs.h
2313 # Predefined preprocessor variables.
2315 cat >>confdefs.h <<_ACEOF
2316 #define PACKAGE_NAME "$PACKAGE_NAME"
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2330 cat >>confdefs.h <<_ACEOF
2331 #define PACKAGE_STRING "$PACKAGE_STRING"
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2340 # Let the site file select an alternate cache file if it wants to.
2341 # Prefer an explicitly selected file to automatically selected ones.
2344 if test -n "$CONFIG_SITE"; then
2345 ac_site_file1=$CONFIG_SITE
2346 elif test "x$prefix" != xNONE; then
2347 ac_site_file1=$prefix/share/config.site
2348 ac_site_file2=$prefix/etc/config.site
2350 ac_site_file1=$ac_default_prefix/share/config.site
2351 ac_site_file2=$ac_default_prefix/etc/config.site
2353 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2355 test "x$ac_site_file" = xNONE && continue
2356 if test -r "$ac_site_file"; then
2357 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2358 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2359 sed 's/^/| /' "$ac_site_file" >&5
2364 if test -r "$cache_file"; then
2365 # Some versions of bash will fail to source /dev/null (special
2366 # files actually), so we avoid doing that.
2367 if test -f "$cache_file"; then
2368 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2369 $as_echo "$as_me: loading cache $cache_file" >&6;}
2371 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372 *) . "./$cache_file";;
2376 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2377 $as_echo "$as_me: creating cache $cache_file" >&6;}
2381 ac_header_list="$ac_header_list utime.h"
2382 # Check that the precious variables saved in the cache have kept the same
2384 ac_cache_corrupted=false
2385 for ac_var in $ac_precious_vars; do
2386 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2387 eval ac_new_set=\$ac_env_${ac_var}_set
2388 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2389 eval ac_new_val=\$ac_env_${ac_var}_value
2390 case $ac_old_set,$ac_new_set in
2392 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2393 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2394 ac_cache_corrupted=: ;;
2396 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2397 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2398 ac_cache_corrupted=: ;;
2401 if test "x$ac_old_val" != "x$ac_new_val"; then
2402 # differences in whitespace do not lead to failure.
2403 ac_old_val_w=`echo x $ac_old_val`
2404 ac_new_val_w=`echo x $ac_new_val`
2405 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2406 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2407 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2408 ac_cache_corrupted=:
2410 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2411 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2412 eval $ac_var=\$ac_old_val
2414 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2415 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2416 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2417 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2420 # Pass precious variables to config.status.
2421 if test "$ac_new_set" = set; then
2423 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2424 *) ac_arg=$ac_var=$ac_new_val ;;
2426 case " $ac_configure_args " in
2427 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2428 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2432 if $ac_cache_corrupted; then
2433 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2435 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2436 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2437 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2438 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2439 { (exit 1); exit 1; }; }
2467 ac_cpp='$CPP $CPPFLAGS'
2468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474 # cross-compile macros
2476 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2477 if test -f "$ac_dir/install-sh"; then
2479 ac_install_sh="$ac_aux_dir/install-sh -c"
2481 elif test -f "$ac_dir/install.sh"; then
2483 ac_install_sh="$ac_aux_dir/install.sh -c"
2485 elif test -f "$ac_dir/shtool"; then
2487 ac_install_sh="$ac_aux_dir/shtool install -c"
2491 if test -z "$ac_aux_dir"; then
2492 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2493 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2494 { (exit 1); exit 1; }; }
2497 # These three variables are undocumented and unsupported,
2498 # and are intended to be withdrawn in a future Autoconf release.
2499 # They can cause serious problems if a builder's source tree is in a directory
2500 # whose full name contains unusual characters.
2501 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2502 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2503 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2506 # Make sure we can run config.sub.
2507 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2508 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2509 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2510 { (exit 1); exit 1; }; }
2512 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2513 $as_echo_n "checking build system type... " >&6; }
2514 if test "${ac_cv_build+set}" = set; then
2515 $as_echo_n "(cached) " >&6
2517 ac_build_alias=$build_alias
2518 test "x$ac_build_alias" = x &&
2519 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2520 test "x$ac_build_alias" = x &&
2521 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2522 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2523 { (exit 1); exit 1; }; }
2524 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2525 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2526 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2527 { (exit 1); exit 1; }; }
2530 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2531 $as_echo "$ac_cv_build" >&6; }
2532 case $ac_cv_build in
2534 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2535 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2536 { (exit 1); exit 1; }; };;
2539 ac_save_IFS=$IFS; IFS='-'
2545 # Remember, the first character of IFS is used to create $*,
2546 # except with old shells:
2549 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2552 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2553 $as_echo_n "checking host system type... " >&6; }
2554 if test "${ac_cv_host+set}" = set; then
2555 $as_echo_n "(cached) " >&6
2557 if test "x$host_alias" = x; then
2558 ac_cv_host=$ac_cv_build
2560 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2561 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2562 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2563 { (exit 1); exit 1; }; }
2567 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2568 $as_echo "$ac_cv_host" >&6; }
2571 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2572 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2573 { (exit 1); exit 1; }; };;
2576 ac_save_IFS=$IFS; IFS='-'
2582 # Remember, the first character of IFS is used to create $*,
2583 # except with old shells:
2586 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2590 # check existence of the package
2594 for ac_dir in `pwd` "$srcdir"/`pwd`; do
2595 if test -f "$ac_dir/install-sh"; then
2597 ac_install_sh="$ac_aux_dir/install-sh -c"
2599 elif test -f "$ac_dir/install.sh"; then
2601 ac_install_sh="$ac_aux_dir/install.sh -c"
2603 elif test -f "$ac_dir/shtool"; then
2605 ac_install_sh="$ac_aux_dir/shtool install -c"
2609 if test -z "$ac_aux_dir"; then
2610 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&5
2611 $as_echo "$as_me: error: cannot find install-sh or install.sh in \`pwd\` \"$srcdir\"/\`pwd\`" >&2;}
2612 { (exit 1); exit 1; }; }
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2628 # preserve any CFLAGS or LDFLAGS that may be set
2629 # NOTE: This must be done before calling any macros that end up
2630 # calling AC_PROG_CC or the like, since they will set a default
2631 # set of CFLAGS ("-g -O2") if the user did not supply any, and
2632 # we don't want those default flags to be carried over into the
2633 # rest of the build system since we have other means of controlling
2634 # debugging symbol generation and optimization.
2635 CONFIG_CFLAGS="${CFLAGS}"
2636 CONFIG_LDFLAGS="${LDFLAGS}"
2640 # specify output header file
2641 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
2644 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
2645 # other macro that uses the C compiler, or the default order will be used.
2647 ac_cpp='$CPP $CPPFLAGS'
2648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2651 if test -n "$ac_tool_prefix"; then
2652 for ac_prog in gcc cc
2654 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2655 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2656 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2657 $as_echo_n "checking for $ac_word... " >&6; }
2658 if test "${ac_cv_prog_CC+set}" = set; then
2659 $as_echo_n "(cached) " >&6
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 test -z "$as_dir" && as_dir=.
2669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2671 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2672 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2682 if test -n "$CC"; then
2683 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2684 $as_echo "$CC" >&6; }
2686 { $as_echo "$as_me:$LINENO: result: no" >&5
2687 $as_echo "no" >&6; }
2691 test -n "$CC" && break
2694 if test -z "$CC"; then
2696 for ac_prog in gcc cc
2698 # Extract the first word of "$ac_prog", so it can be a program name with args.
2699 set dummy $ac_prog; ac_word=$2
2700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2703 $as_echo_n "(cached) " >&6
2705 if test -n "$ac_ct_CC"; then
2706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_ac_ct_CC="$ac_prog"
2716 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2725 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2726 if test -n "$ac_ct_CC"; then
2727 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2728 $as_echo "$ac_ct_CC" >&6; }
2730 { $as_echo "$as_me:$LINENO: result: no" >&5
2731 $as_echo "no" >&6; }
2735 test -n "$ac_ct_CC" && break
2738 if test "x$ac_ct_CC" = x; then
2741 case $cross_compiling:$ac_tool_warned in
2743 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2745 ac_tool_warned=yes ;;
2752 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2754 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2755 See \`config.log' for more details." >&5
2756 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2757 See \`config.log' for more details." >&2;}
2758 { (exit 1); exit 1; }; }; }
2760 # Provide some information about the compiler.
2761 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2764 { (ac_try="$ac_compiler --version >&5"
2766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2767 *) ac_try_echo=$ac_try;;
2769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2770 $as_echo "$ac_try_echo") >&5
2771 (eval "$ac_compiler --version >&5") 2>&5
2773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2775 { (ac_try="$ac_compiler -v >&5"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2781 $as_echo "$ac_try_echo") >&5
2782 (eval "$ac_compiler -v >&5") 2>&5
2784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }
2786 { (ac_try="$ac_compiler -V >&5"
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2792 $as_echo "$ac_try_echo") >&5
2793 (eval "$ac_compiler -V >&5") 2>&5
2795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }
2798 cat >conftest.$ac_ext <<_ACEOF
2801 cat confdefs.h >>conftest.$ac_ext
2802 cat >>conftest.$ac_ext <<_ACEOF
2803 /* end confdefs.h. */
2813 ac_clean_files_save=$ac_clean_files
2814 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2815 # Try to create an executable without -o first, disregard a.out.
2816 # It will help us diagnose broken compilers, and finding out an intuition
2818 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2819 $as_echo_n "checking for C compiler default output file name... " >&6; }
2820 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2822 # The possible output files:
2823 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2826 for ac_file in $ac_files
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2830 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2835 if { (ac_try="$ac_link_default"
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2841 $as_echo "$ac_try_echo") >&5
2842 (eval "$ac_link_default") 2>&5
2844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); }; then
2846 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2847 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2848 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2849 # so that the user can short-circuit this test for compilers unknown to
2851 for ac_file in $ac_files ''
2853 test -f "$ac_file" || continue
2855 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2858 # We found the default executable, but exeext='' is most
2862 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2864 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866 # We set ac_cv_exeext here because the later test for it is not
2867 # safe: cross compilers may not add the suffix if given an `-o'
2868 # argument, so we may need to know it at that point already.
2869 # Even if this section looks crufty: it has the advantage of
2876 test "$ac_cv_exeext" = no && ac_cv_exeext=
2882 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2883 $as_echo "$ac_file" >&6; }
2884 if test -z "$ac_file"; then
2885 $as_echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2888 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2890 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2891 See \`config.log' for more details." >&5
2892 $as_echo "$as_me: error: C compiler cannot create executables
2893 See \`config.log' for more details." >&2;}
2894 { (exit 77); exit 77; }; }; }
2897 ac_exeext=$ac_cv_exeext
2899 # Check that the compiler produces executables we can run. If not, either
2900 # the compiler is broken, or we cross compile.
2901 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2902 $as_echo_n "checking whether the C compiler works... " >&6; }
2903 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2904 # If not cross compiling, check that we can run a simple program.
2905 if test "$cross_compiling" != yes; then
2906 if { ac_try='./$ac_file'
2907 { (case "(($ac_try" in
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2912 $as_echo "$ac_try_echo") >&5
2913 (eval "$ac_try") 2>&5
2915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; }; then
2919 if test "$cross_compiling" = maybe; then
2922 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2925 If you meant to cross compile, use \`--host'.
2926 See \`config.log' for more details." >&5
2927 $as_echo "$as_me: error: cannot run C compiled programs.
2928 If you meant to cross compile, use \`--host'.
2929 See \`config.log' for more details." >&2;}
2930 { (exit 1); exit 1; }; }; }
2934 { $as_echo "$as_me:$LINENO: result: yes" >&5
2935 $as_echo "yes" >&6; }
2937 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2938 ac_clean_files=$ac_clean_files_save
2939 # Check that the compiler produces executables we can run. If not, either
2940 # the compiler is broken, or we cross compile.
2941 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2942 $as_echo_n "checking whether we are cross compiling... " >&6; }
2943 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2944 $as_echo "$cross_compiling" >&6; }
2946 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2947 $as_echo_n "checking for suffix of executables... " >&6; }
2948 if { (ac_try="$ac_link"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2954 $as_echo "$ac_try_echo") >&5
2955 (eval "$ac_link") 2>&5
2957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958 (exit $ac_status); }; then
2959 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2960 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2961 # work properly (i.e., refer to `conftest.exe'), while it won't with
2963 for ac_file in conftest.exe conftest conftest.*; do
2964 test -f "$ac_file" || continue
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2967 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2976 See \`config.log' for more details." >&5
2977 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2978 See \`config.log' for more details." >&2;}
2979 { (exit 1); exit 1; }; }; }
2982 rm -f conftest$ac_cv_exeext
2983 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2984 $as_echo "$ac_cv_exeext" >&6; }
2986 rm -f conftest.$ac_ext
2987 EXEEXT=$ac_cv_exeext
2989 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2990 $as_echo_n "checking for suffix of object files... " >&6; }
2991 if test "${ac_cv_objext+set}" = set; then
2992 $as_echo_n "(cached) " >&6
2994 cat >conftest.$ac_ext <<_ACEOF
2997 cat confdefs.h >>conftest.$ac_ext
2998 cat >>conftest.$ac_ext <<_ACEOF
2999 /* end confdefs.h. */
3009 rm -f conftest.o conftest.obj
3010 if { (ac_try="$ac_compile"
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3016 $as_echo "$ac_try_echo") >&5
3017 (eval "$ac_compile") 2>&5
3019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); }; then
3021 for ac_file in conftest.o conftest.obj conftest.*; do
3022 test -f "$ac_file" || continue;
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3025 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3030 $as_echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3033 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3034 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3035 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3036 See \`config.log' for more details." >&5
3037 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3038 See \`config.log' for more details." >&2;}
3039 { (exit 1); exit 1; }; }; }
3042 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3044 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3045 $as_echo "$ac_cv_objext" >&6; }
3046 OBJEXT=$ac_cv_objext
3048 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3049 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3050 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3051 $as_echo_n "(cached) " >&6
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3078 $as_echo "$ac_try_echo") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3081 grep -v '^ *+' conftest.er1 >conftest.err
3083 cat conftest.err >&5
3084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } && {
3086 test -z "$ac_c_werror_flag" ||
3087 test ! -s conftest.err
3088 } && test -s conftest.$ac_objext; then
3091 $as_echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3101 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3102 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3103 if test $ac_compiler_gnu = yes; then
3108 ac_test_CFLAGS=${CFLAGS+set}
3109 ac_save_CFLAGS=$CFLAGS
3110 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3111 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3112 if test "${ac_cv_prog_cc_g+set}" = set; then
3113 $as_echo_n "(cached) " >&6
3115 ac_save_c_werror_flag=$ac_c_werror_flag
3116 ac_c_werror_flag=yes
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141 $as_echo "$ac_try_echo") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3144 grep -v '^ *+' conftest.er1 >conftest.err
3146 cat conftest.err >&5
3147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3158 cat >conftest.$ac_ext <<_ACEOF
3161 cat confdefs.h >>conftest.$ac_ext
3162 cat >>conftest.$ac_ext <<_ACEOF
3163 /* end confdefs.h. */
3173 rm -f conftest.$ac_objext
3174 if { (ac_try="$ac_compile"
3176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3177 *) ac_try_echo=$ac_try;;
3179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3180 $as_echo "$ac_try_echo") >&5
3181 (eval "$ac_compile") 2>conftest.er1
3183 grep -v '^ *+' conftest.er1 >conftest.err
3185 cat conftest.err >&5
3186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3187 (exit $ac_status); } && {
3188 test -z "$ac_c_werror_flag" ||
3189 test ! -s conftest.err
3190 } && test -s conftest.$ac_objext; then
3193 $as_echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 ac_c_werror_flag=$ac_save_c_werror_flag
3198 cat >conftest.$ac_ext <<_ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3213 rm -f conftest.$ac_objext
3214 if { (ac_try="$ac_compile"
3216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217 *) ac_try_echo=$ac_try;;
3219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3220 $as_echo "$ac_try_echo") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } && {
3228 test -z "$ac_c_werror_flag" ||
3229 test ! -s conftest.err
3230 } && test -s conftest.$ac_objext; then
3233 $as_echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3246 ac_c_werror_flag=$ac_save_c_werror_flag
3248 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3249 $as_echo "$ac_cv_prog_cc_g" >&6; }
3250 if test "$ac_test_CFLAGS" = set; then
3251 CFLAGS=$ac_save_CFLAGS
3252 elif test $ac_cv_prog_cc_g = yes; then
3253 if test "$GCC" = yes; then
3259 if test "$GCC" = yes; then
3265 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3266 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3267 if test "${ac_cv_prog_cc_c89+set}" = set; then
3268 $as_echo_n "(cached) " >&6
3270 ac_cv_prog_cc_c89=no
3272 cat >conftest.$ac_ext <<_ACEOF
3275 cat confdefs.h >>conftest.$ac_ext
3276 cat >>conftest.$ac_ext <<_ACEOF
3277 /* end confdefs.h. */
3280 #include <sys/types.h>
3281 #include <sys/stat.h>
3282 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3283 struct buf { int x; };
3284 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3285 static char *e (p, i)
3291 static char *f (char * (*g) (char **, int), char **p, ...)
3296 s = g (p, va_arg (v,int));
3301 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3302 function prototypes and stuff, but not '\xHH' hex character constants.
3303 These don't provoke an error unfortunately, instead are silently treated
3304 as 'x'. The following induces an error, until -std is added to get
3305 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3306 array size at least. It's necessary to write '\x00'==0 to get something
3307 that's true only with -std. */
3308 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3310 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3311 inside strings and character constants. */
3313 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3315 int test (int i, double x);
3316 struct s1 {int (*f) (int a);};
3317 struct s2 {int (*f) (double a);};
3318 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3324 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3329 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3330 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3332 CC="$ac_save_CC $ac_arg"
3333 rm -f conftest.$ac_objext
3334 if { (ac_try="$ac_compile"
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3340 $as_echo "$ac_try_echo") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && {
3348 test -z "$ac_c_werror_flag" ||
3349 test ! -s conftest.err
3350 } && test -s conftest.$ac_objext; then
3351 ac_cv_prog_cc_c89=$ac_arg
3353 $as_echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3360 test "x$ac_cv_prog_cc_c89" != "xno" && break
3362 rm -f conftest.$ac_ext
3367 case "x$ac_cv_prog_cc_c89" in
3369 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3370 $as_echo "none needed" >&6; } ;;
3372 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3373 $as_echo "unsupported" >&6; } ;;
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3377 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3395 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3396 # On Suns, sometimes $CPP names a directory.
3397 if test -n "$CPP" && test -d "$CPP"; then
3400 if test -z "$CPP"; then
3401 if test "${ac_cv_prog_CPP+set}" = set; then
3402 $as_echo_n "(cached) " >&6
3404 # Double quotes because CPP needs to be expanded
3405 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3408 for ac_c_preproc_warn_flag in '' yes
3410 # Use a header file that comes with gcc, so configuring glibc
3411 # with a fresh cross-compiler works.
3412 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3413 # <limits.h> exists even on freestanding compilers.
3414 # On the NeXT, cc -E runs the code through the compiler's parser,
3415 # not just through cpp. "Syntax error" is here to catch this case.
3416 cat >conftest.$ac_ext <<_ACEOF
3419 cat confdefs.h >>conftest.$ac_ext
3420 cat >>conftest.$ac_ext <<_ACEOF
3421 /* end confdefs.h. */
3423 # include <limits.h>
3425 # include <assert.h>
3429 if { (ac_try="$ac_cpp conftest.$ac_ext"
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3435 $as_echo "$ac_try_echo") >&5
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null && {
3443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3444 test ! -s conftest.err
3448 $as_echo "$as_me: failed program was:" >&5
3449 sed 's/^/| /' conftest.$ac_ext >&5
3451 # Broken: fails on valid input.
3455 rm -f conftest.err conftest.$ac_ext
3457 # OK, works on sane cases. Now check whether nonexistent headers
3458 # can be detected and how.
3459 cat >conftest.$ac_ext <<_ACEOF
3462 cat confdefs.h >>conftest.$ac_ext
3463 cat >>conftest.$ac_ext <<_ACEOF
3464 /* end confdefs.h. */
3465 #include <ac_nonexistent.h>
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3473 $as_echo "$ac_try_echo") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3476 grep -v '^ *+' conftest.er1 >conftest.err
3478 cat conftest.err >&5
3479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null && {
3481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3484 # Broken: success on invalid input.
3487 $as_echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3490 # Passes both tests.
3495 rm -f conftest.err conftest.$ac_ext
3498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3499 rm -f conftest.err conftest.$ac_ext
3500 if $ac_preproc_ok; then
3512 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3513 $as_echo "$CPP" >&6; }
3515 for ac_c_preproc_warn_flag in '' yes
3517 # Use a header file that comes with gcc, so configuring glibc
3518 # with a fresh cross-compiler works.
3519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3520 # <limits.h> exists even on freestanding compilers.
3521 # On the NeXT, cc -E runs the code through the compiler's parser,
3522 # not just through cpp. "Syntax error" is here to catch this case.
3523 cat >conftest.$ac_ext <<_ACEOF
3526 cat confdefs.h >>conftest.$ac_ext
3527 cat >>conftest.$ac_ext <<_ACEOF
3528 /* end confdefs.h. */
3530 # include <limits.h>
3532 # include <assert.h>
3536 if { (ac_try="$ac_cpp conftest.$ac_ext"
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3542 $as_echo "$ac_try_echo") >&5
3543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3545 grep -v '^ *+' conftest.er1 >conftest.err
3547 cat conftest.err >&5
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } >/dev/null && {
3550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3551 test ! -s conftest.err
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3558 # Broken: fails on valid input.
3562 rm -f conftest.err conftest.$ac_ext
3564 # OK, works on sane cases. Now check whether nonexistent headers
3565 # can be detected and how.
3566 cat >conftest.$ac_ext <<_ACEOF
3569 cat confdefs.h >>conftest.$ac_ext
3570 cat >>conftest.$ac_ext <<_ACEOF
3571 /* end confdefs.h. */
3572 #include <ac_nonexistent.h>
3574 if { (ac_try="$ac_cpp conftest.$ac_ext"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3580 $as_echo "$ac_try_echo") >&5
3581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3583 grep -v '^ *+' conftest.er1 >conftest.err
3585 cat conftest.err >&5
3586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } >/dev/null && {
3588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3589 test ! -s conftest.err
3591 # Broken: success on invalid input.
3594 $as_echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3597 # Passes both tests.
3602 rm -f conftest.err conftest.$ac_ext
3605 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3606 rm -f conftest.err conftest.$ac_ext
3607 if $ac_preproc_ok; then
3610 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3611 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3612 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3613 See \`config.log' for more details." >&5
3614 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3615 See \`config.log' for more details." >&2;}
3616 { (exit 1); exit 1; }; }; }
3620 ac_cpp='$CPP $CPPFLAGS'
3621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3626 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3627 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3628 if test "${ac_cv_path_GREP+set}" = set; then
3629 $as_echo_n "(cached) " >&6
3631 if test -z "$GREP"; then
3632 ac_path_GREP_found=false
3633 # Loop through the user's path and test for each of PROGNAME-LIST
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3638 test -z "$as_dir" && as_dir=.
3639 for ac_prog in grep ggrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3643 # Check for GNU ac_path_GREP and select it if it is found.
3644 # Check for GNU $ac_path_GREP
3645 case `"$ac_path_GREP" --version 2>&1` in
3647 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3650 $as_echo_n 0123456789 >"conftest.in"
3653 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl"
3656 $as_echo 'GREP' >> "conftest.nl"
3657 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1`
3660 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_GREP="$ac_path_GREP"
3663 ac_path_GREP_max=$ac_count
3665 # 10*(2^10) chars as input seems more than enough
3666 test $ac_count -gt 10 && break
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3671 $ac_path_GREP_found && break 3
3676 if test -z "$ac_cv_path_GREP"; then
3677 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3678 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3679 { (exit 1); exit 1; }; }
3682 ac_cv_path_GREP=$GREP
3686 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3687 $as_echo "$ac_cv_path_GREP" >&6; }
3688 GREP="$ac_cv_path_GREP"
3691 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3692 $as_echo_n "checking for egrep... " >&6; }
3693 if test "${ac_cv_path_EGREP+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3696 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3697 then ac_cv_path_EGREP="$GREP -E"
3699 if test -z "$EGREP"; then
3700 ac_path_EGREP_found=false
3701 # Loop through the user's path and test for each of PROGNAME-LIST
3702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3706 test -z "$as_dir" && as_dir=.
3707 for ac_prog in egrep; do
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3710 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3711 # Check for GNU ac_path_EGREP and select it if it is found.
3712 # Check for GNU $ac_path_EGREP
3713 case `"$ac_path_EGREP" --version 2>&1` in
3715 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3718 $as_echo_n 0123456789 >"conftest.in"
3721 cat "conftest.in" "conftest.in" >"conftest.tmp"
3722 mv "conftest.tmp" "conftest.in"
3723 cp "conftest.in" "conftest.nl"
3724 $as_echo 'EGREP' >> "conftest.nl"
3725 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3727 ac_count=`expr $ac_count + 1`
3728 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3729 # Best one so far, save it but keep looking for a better one
3730 ac_cv_path_EGREP="$ac_path_EGREP"
3731 ac_path_EGREP_max=$ac_count
3733 # 10*(2^10) chars as input seems more than enough
3734 test $ac_count -gt 10 && break
3736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3739 $ac_path_EGREP_found && break 3
3744 if test -z "$ac_cv_path_EGREP"; then
3745 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3746 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3747 { (exit 1); exit 1; }; }
3750 ac_cv_path_EGREP=$EGREP
3755 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3756 $as_echo "$ac_cv_path_EGREP" >&6; }
3757 EGREP="$ac_cv_path_EGREP"
3760 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3761 $as_echo_n "checking for ANSI C header files... " >&6; }
3762 if test "${ac_cv_header_stdc+set}" = set; then
3763 $as_echo_n "(cached) " >&6
3765 cat >conftest.$ac_ext <<_ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3784 rm -f conftest.$ac_objext
3785 if { (ac_try="$ac_compile"
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3790 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3791 $as_echo "$ac_try_echo") >&5
3792 (eval "$ac_compile") 2>conftest.er1
3794 grep -v '^ *+' conftest.er1 >conftest.err
3796 cat conftest.err >&5
3797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } && {
3799 test -z "$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3801 } && test -s conftest.$ac_objext; then
3802 ac_cv_header_stdc=yes
3804 $as_echo "$as_me: failed program was:" >&5
3805 sed 's/^/| /' conftest.$ac_ext >&5
3807 ac_cv_header_stdc=no
3810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 if test $ac_cv_header_stdc = yes; then
3813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3824 $EGREP "memchr" >/dev/null 2>&1; then
3827 ac_cv_header_stdc=no
3833 if test $ac_cv_header_stdc = yes; then
3834 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3835 cat >conftest.$ac_ext <<_ACEOF
3838 cat confdefs.h >>conftest.$ac_ext
3839 cat >>conftest.$ac_ext <<_ACEOF
3840 /* end confdefs.h. */
3844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3845 $EGREP "free" >/dev/null 2>&1; then
3848 ac_cv_header_stdc=no
3854 if test $ac_cv_header_stdc = yes; then
3855 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3856 if test "$cross_compiling" = yes; then
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3867 #if ((' ' & 0x0FF) == 0x020)
3868 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3869 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3871 # define ISLOWER(c) \
3872 (('a' <= (c) && (c) <= 'i') \
3873 || ('j' <= (c) && (c) <= 'r') \
3874 || ('s' <= (c) && (c) <= 'z'))
3875 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3878 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3883 for (i = 0; i < 256; i++)
3884 if (XOR (islower (i), ISLOWER (i))
3885 || toupper (i) != TOUPPER (i))
3890 rm -f conftest$ac_exeext
3891 if { (ac_try="$ac_link"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3897 $as_echo "$ac_try_echo") >&5
3898 (eval "$ac_link") 2>&5
3900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3902 { (case "(($ac_try" in
3903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3904 *) ac_try_echo=$ac_try;;
3906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3907 $as_echo "$ac_try_echo") >&5
3908 (eval "$ac_try") 2>&5
3910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3914 $as_echo "$as_me: program exited with status $ac_status" >&5
3915 $as_echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3919 ac_cv_header_stdc=no
3921 rm -rf conftest.dSYM
3922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3928 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3929 $as_echo "$ac_cv_header_stdc" >&6; }
3930 if test $ac_cv_header_stdc = yes; then
3932 cat >>confdefs.h <<\_ACEOF
3933 #define STDC_HEADERS 1
3938 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3948 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3949 inttypes.h stdint.h unistd.h
3951 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3952 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3953 $as_echo_n "checking for $ac_header... " >&6; }
3954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3955 $as_echo_n "(cached) " >&6
3957 cat >conftest.$ac_ext <<_ACEOF
3960 cat confdefs.h >>conftest.$ac_ext
3961 cat >>conftest.$ac_ext <<_ACEOF
3962 /* end confdefs.h. */
3963 $ac_includes_default
3965 #include <$ac_header>
3967 rm -f conftest.$ac_objext
3968 if { (ac_try="$ac_compile"
3970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3971 *) ac_try_echo=$ac_try;;
3973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""