2 # From configure.ac Revision: 413772 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
32 case `(set -o) 2>/dev/null` in #(
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 # Prefer a ksh shell builtin over an external printf program on Solaris,
49 # but without wasting forks for bash or zsh.
50 if test -z "$BASH_VERSION$ZSH_VERSION" \
51 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo_n='print -rn --'
54 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60 as_echo_n='/usr/ucb/echo -n'
62 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
67 expr "X$arg" : "X\\(.*\\)$as_nl";
68 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73 as_echo_n='sh -c $as_echo_n_body as_echo'
76 as_echo='sh -c $as_echo_body as_echo'
79 # The user is always right.
80 if test "${PATH_SEPARATOR+set}" != set; then
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
99 *[\\/]* ) as_myself=$0 ;;
100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 test -z "$as_dir" && as_dir=.
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
111 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 # in which case we are not to be found in the path.
113 if test "x$as_myself" = x; then
116 if test ! -f "$as_myself"; then
117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 # Unset variables that we do not need and which cause bugs (e.g. in
122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
123 # suppresses any "Segmentation fault" message there. '((' could
124 # trigger a bug in pdksh 5.2.14.
125 for as_var in BASH_ENV ENV MAIL MAILPATH
126 do eval test x\${$as_var+set} = xset \
127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
173 exitcode=1; echo positional parameters were not saved.
175 test x\$exitcode = x0 || exit 1"
176 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
177 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
178 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
179 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 # Preserve -v and -x to the replacement shell.
226 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 *v*x* | *x*v* ) as_opts=-vx ;;
234 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
237 if test x$as_have_required = xno; then :
238 $as_echo "$0: This script requires a shell more modern than all"
239 $as_echo "$0: the shells that I found on your system."
240 if test x${ZSH_VERSION+set} = xset ; then
241 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
242 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
244 $as_echo "$0: Please tell bug-autoconf@gnu.org and
245 $0: https://issues.asterisk.org about your system,
246 $0: including any error possibly output before this
247 $0: message. Then install a modern shell, or manually run
248 $0: the script under such a shell if you do have one."
254 SHELL=${CONFIG_SHELL-/bin/sh}
256 # Unset more variables known to interfere with behavior of common tools.
257 CLICOLOR_FORCE= GREP_OPTIONS=
258 unset CLICOLOR_FORCE GREP_OPTIONS
260 ## --------------------- ##
261 ## M4sh Shell Functions. ##
262 ## --------------------- ##
265 # Portably unset VAR.
268 { eval $1=; unset $1;}
272 # as_fn_set_status STATUS
273 # -----------------------
274 # Set $? to STATUS, without forking.
282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
292 # Create "$as_dir" as a directory, including parents if necessary.
297 -*) as_dir=./$as_dir;;
299 test -d "$as_dir" || eval $as_mkdir_p || {
303 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 as_dirs="'$as_qdir' $as_dirs"
307 as_dir=`$as_dirname -- "$as_dir" ||
308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
309 X"$as_dir" : 'X\(//\)[^/]' \| \
310 X"$as_dir" : 'X\(//\)$' \| \
311 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
312 $as_echo X"$as_dir" |
313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
330 test -d "$as_dir" && break
332 test -z "$as_dirs" || eval "mkdir $as_dirs"
333 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
337 # as_fn_append VAR VALUE
338 # ----------------------
339 # Append the text in VALUE to the end of the definition contained in VAR. Take
340 # advantage of any shell optimizations that allow amortized linear growth over
341 # repeated appends, instead of the typical quadratic growth present in naive
343 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
344 eval 'as_fn_append ()
357 # Perform arithmetic evaluation on the ARGs, and store the result in the
358 # global $as_val. Take advantage of shells that can avoid forks. The arguments
359 # must be portable across $(()) and expr.
360 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
368 as_val=`expr "$@" || test $? -eq 1`
373 # as_fn_error STATUS ERROR [LINENO LOG_FD]
374 # ----------------------------------------
375 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
376 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
377 # script with STATUS, using 1 if that was 0.
380 as_status=$1; test $as_status -eq 0 && as_status=1
382 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
383 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
385 $as_echo "$as_me: error: $2" >&2
386 as_fn_exit $as_status
389 if expr a : '\(a\)' >/dev/null 2>&1 &&
390 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_me=`$as_basename -- "$0" ||
409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
410 X"$0" : 'X\(//\)$' \| \
411 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
413 sed '/^.*\/\([^/][^/]*\)\/*$/{
427 # Avoid depending upon Character Ranges.
428 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
429 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
430 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
431 as_cr_digits='0123456789'
432 as_cr_alnum=$as_cr_Letters$as_cr_digits
435 as_lineno_1=$LINENO as_lineno_1a=$LINENO
436 as_lineno_2=$LINENO as_lineno_2a=$LINENO
437 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
438 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
439 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in #(((((
469 case `echo 'xy\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
472 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 rm -f conf$$ conf$$.exe conf$$.file
480 if test -d conf$$.dir; then
481 rm -f conf$$.dir/conf$$.file
484 mkdir conf$$.dir 2>/dev/null
486 if (echo >conf$$.file) 2>/dev/null; then
487 if ln -s conf$$.file conf$$ 2>/dev/null; then
489 # ... but there are two gotchas:
490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
492 # In both cases, we have to default to `cp -p'.
493 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
495 elif ln conf$$.file conf$$ 2>/dev/null; then
503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
504 rmdir conf$$.dir 2>/dev/null
506 if mkdir -p . 2>/dev/null; then
507 as_mkdir_p='mkdir -p "$as_dir"'
509 test -d ./-p && rmdir ./-p
513 if test -x / >/dev/null 2>&1; then
516 if ls -dL / >/dev/null 2>&1; then
523 if test -d "$1"; then
529 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
530 ???[sx]*):;;*)false;;esac;fi
534 as_executable_p=$as_test_x
536 # Sed expression to map a string onto a valid CPP name.
537 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
539 # Sed expression to map a string onto a valid variable name.
540 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543 test -n "$DJDIR" || exec 7<&0 </dev/null
547 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554 ac_default_prefix=/usr/local
556 ac_config_libobj_dir=.
563 # Identity of this package.
564 PACKAGE_NAME='asterisk'
565 PACKAGE_TARNAME='asterisk'
566 PACKAGE_VERSION='trunk'
567 PACKAGE_STRING='asterisk trunk'
568 PACKAGE_BUGREPORT='https://issues.asterisk.org'
571 ac_unique_file="main/asterisk.c"
572 # Factoring default headers for most tests.
573 ac_includes_default="\
575 #ifdef HAVE_SYS_TYPES_H
576 # include <sys/types.h>
578 #ifdef HAVE_SYS_STAT_H
579 # include <sys/stat.h>
585 # ifdef HAVE_STDLIB_H
590 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #ifdef HAVE_STRINGS_H
596 # include <strings.h>
598 #ifdef HAVE_INTTYPES_H
599 # include <inttypes.h>
609 ac_subst_vars='LTLIBOBJS
611 PBX_SYSLOG_FACILITY_LOG_UUCP
612 PBX_SYSLOG_FACILITY_LOG_SYSLOG
613 PBX_SYSLOG_FACILITY_LOG_NEWS
614 PBX_SYSLOG_FACILITY_LOG_MAIL
615 PBX_SYSLOG_FACILITY_LOG_LPR
616 PBX_SYSLOG_FACILITY_LOG_KERN
617 PBX_SYSLOG_FACILITY_LOG_FTP
618 PBX_SYSLOG_FACILITY_LOG_DAEMON
619 PBX_SYSLOG_FACILITY_LOG_CRON
620 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
621 PBX_SYSLOG_FACILITY_LOG_AUTH
674 AST_NO_STRICT_OVERFLOW
677 AST_DECLARATION_AFTER_STATEMENT
680 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
681 PBX_PTHREAD_RWLOCK_INITIALIZER
743 SRTP_SHUTDOWN_INCLUDE
763 SPEEX_PREPROCESS_INCLUDE
798 PBX_PRI_REVERSE_CHARGE
799 PRI_REVERSE_CHARGE_DIR
800 PRI_REVERSE_CHARGE_INCLUDE
801 PRI_REVERSE_CHARGE_LIB
802 PBX_PRI_SERVICE_MESSAGES
803 PRI_SERVICE_MESSAGES_DIR
804 PRI_SERVICE_MESSAGES_INCLUDE
805 PRI_SERVICE_MESSAGES_LIB
808 PRI_PROG_W_CAUSE_INCLUDE
810 PBX_PRI_INBANDDISCONNECT
811 PRI_INBANDDISCONNECT_DIR
812 PRI_INBANDDISCONNECT_INCLUDE
813 PRI_INBANDDISCONNECT_LIB
816 PRI_SETUP_KEYPAD_INCLUDE
818 PBX_PRI_CALL_REROUTING
819 PRI_CALL_REROUTING_DIR
820 PRI_CALL_REROUTING_INCLUDE
821 PRI_CALL_REROUTING_LIB
824 PRI_CALL_HOLD_INCLUDE
832 PRI_HANGUP_FIX_INCLUDE
844 PRI_AOC_EVENTS_INCLUDE
848 PRI_CALL_WAITING_INCLUDE
860 PRI_DISPLAY_TEXT_INCLUDE
866 PBX_PRI_DATETIME_SEND
867 PRI_DATETIME_SEND_DIR
868 PRI_DATETIME_SEND_INCLUDE
869 PRI_DATETIME_SEND_LIB
870 PBX_PRI_L2_PERSISTENCE
871 PRI_L2_PERSISTENCE_DIR
872 PRI_L2_PERSISTENCE_INCLUDE
873 PRI_L2_PERSISTENCE_LIB
874 PBX_PRI_SETUP_ACK_INBAND
875 PRI_SETUP_ACK_INBAND_DIR
876 PRI_SETUP_ACK_INBAND_INCLUDE
877 PRI_SETUP_ACK_INBAND_LIB
886 PBX_PJSIP_REPLACE_MEDIA_STREAM
887 PJSIP_REPLACE_MEDIA_STREAM_DIR
888 PJSIP_REPLACE_MEDIA_STREAM_INCLUDE
889 PJSIP_REPLACE_MEDIA_STREAM_LIB
890 PBX_PJ_TRANSACTION_GRP_LOCK
891 PJ_TRANSACTION_GRP_LOCK_DIR
892 PJ_TRANSACTION_GRP_LOCK_INCLUDE
893 PJ_TRANSACTION_GRP_LOCK_LIB
964 LIBXSLT_CLEANUP_INCLUDE
1064 OPENSSL_SRTP_INCLUDE
1078 PBX_COROSYNC_CFG_STATE_TRACK
1079 COROSYNC_CFG_STATE_TRACK_DIR
1080 COROSYNC_CFG_STATE_TRACK_INCLUDE
1081 COROSYNC_CFG_STATE_TRACK_LIB
1232 program_transform_name
1245 enable_option_checking
1328 enable_internal_poll
1332 ac_precious_vars='build_alias
1360 # Initialize some variables set by options.
1362 ac_init_version=false
1363 ac_unrecognized_opts=
1364 ac_unrecognized_sep=
1365 # The variables have the same names as the options, with
1366 # dashes changed to underlines.
1367 cache_file=/dev/null
1374 program_transform_name=s,x,x,
1382 # Installation directory options.
1383 # These are left unexpanded so users can "make install exec_prefix=/foo"
1384 # and all the variables that are supposed to be based on exec_prefix
1385 # by default will actually change.
1386 # Use braces instead of parens because sh, perl, etc. also accept them.
1387 # (The list follows the same order as the GNU Coding Standards.)
1388 bindir='${exec_prefix}/bin'
1389 sbindir='${exec_prefix}/sbin'
1390 libexecdir='${exec_prefix}/libexec'
1391 datarootdir='${prefix}/share'
1392 datadir='${datarootdir}'
1393 sysconfdir='${prefix}/etc'
1394 sharedstatedir='${prefix}/com'
1395 localstatedir='${prefix}/var'
1396 includedir='${prefix}/include'
1397 oldincludedir='/usr/include'
1398 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1399 infodir='${datarootdir}/info'
1404 libdir='${exec_prefix}/lib'
1405 localedir='${datarootdir}/locale'
1406 mandir='${datarootdir}/man'
1412 # If the previous option needs an argument, assign it.
1413 if test -n "$ac_prev"; then
1414 eval $ac_prev=\$ac_option
1420 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1425 # Accept the important Cygnus configure options, so we can diagnose typos.
1427 case $ac_dashdash$ac_option in
1431 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1433 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1434 bindir=$ac_optarg ;;
1436 -build | --build | --buil | --bui | --bu)
1437 ac_prev=build_alias ;;
1438 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1439 build_alias=$ac_optarg ;;
1441 -cache-file | --cache-file | --cache-fil | --cache-fi \
1442 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1443 ac_prev=cache_file ;;
1444 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1445 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1446 cache_file=$ac_optarg ;;
1448 --config-cache | -C)
1449 cache_file=config.cache ;;
1451 -datadir | --datadir | --datadi | --datad)
1453 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1454 datadir=$ac_optarg ;;
1456 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1457 | --dataroo | --dataro | --datar)
1458 ac_prev=datarootdir ;;
1459 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1460 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1461 datarootdir=$ac_optarg ;;
1463 -disable-* | --disable-*)
1464 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1465 # Reject names that are not valid shell variable names.
1466 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1467 as_fn_error $? "invalid feature name: $ac_useropt"
1468 ac_useropt_orig=$ac_useropt
1469 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1470 case $ac_user_opts in
1472 "enable_$ac_useropt"
1474 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1475 ac_unrecognized_sep=', ';;
1477 eval enable_$ac_useropt=no ;;
1479 -docdir | --docdir | --docdi | --doc | --do)
1481 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1482 docdir=$ac_optarg ;;
1484 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1486 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1487 dvidir=$ac_optarg ;;
1489 -enable-* | --enable-*)
1490 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1491 # Reject names that are not valid shell variable names.
1492 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1493 as_fn_error $? "invalid feature name: $ac_useropt"
1494 ac_useropt_orig=$ac_useropt
1495 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1496 case $ac_user_opts in
1498 "enable_$ac_useropt"
1500 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1501 ac_unrecognized_sep=', ';;
1503 eval enable_$ac_useropt=\$ac_optarg ;;
1505 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1506 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1507 | --exec | --exe | --ex)
1508 ac_prev=exec_prefix ;;
1509 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1510 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1511 | --exec=* | --exe=* | --ex=*)
1512 exec_prefix=$ac_optarg ;;
1514 -gas | --gas | --ga | --g)
1515 # Obsolete; use --with-gas.
1518 -help | --help | --hel | --he | -h)
1519 ac_init_help=long ;;
1520 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1521 ac_init_help=recursive ;;
1522 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1523 ac_init_help=short ;;
1525 -host | --host | --hos | --ho)
1526 ac_prev=host_alias ;;
1527 -host=* | --host=* | --hos=* | --ho=*)
1528 host_alias=$ac_optarg ;;
1530 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1532 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1534 htmldir=$ac_optarg ;;
1536 -includedir | --includedir | --includedi | --included | --include \
1537 | --includ | --inclu | --incl | --inc)
1538 ac_prev=includedir ;;
1539 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1540 | --includ=* | --inclu=* | --incl=* | --inc=*)
1541 includedir=$ac_optarg ;;
1543 -infodir | --infodir | --infodi | --infod | --info | --inf)
1545 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1546 infodir=$ac_optarg ;;
1548 -libdir | --libdir | --libdi | --libd)
1550 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1551 libdir=$ac_optarg ;;
1553 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1554 | --libexe | --libex | --libe)
1555 ac_prev=libexecdir ;;
1556 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1557 | --libexe=* | --libex=* | --libe=*)
1558 libexecdir=$ac_optarg ;;
1560 -localedir | --localedir | --localedi | --localed | --locale)
1561 ac_prev=localedir ;;
1562 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1563 localedir=$ac_optarg ;;
1565 -localstatedir | --localstatedir | --localstatedi | --localstated \
1566 | --localstate | --localstat | --localsta | --localst | --locals)
1567 ac_prev=localstatedir ;;
1568 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1569 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1570 localstatedir=$ac_optarg ;;
1572 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1574 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1575 mandir=$ac_optarg ;;
1577 -nfp | --nfp | --nf)
1578 # Obsolete; use --without-fp.
1581 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1582 | --no-cr | --no-c | -n)
1585 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1586 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1589 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1590 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1591 | --oldin | --oldi | --old | --ol | --o)
1592 ac_prev=oldincludedir ;;
1593 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1594 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1595 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1596 oldincludedir=$ac_optarg ;;
1598 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1600 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1601 prefix=$ac_optarg ;;
1603 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1604 | --program-pre | --program-pr | --program-p)
1605 ac_prev=program_prefix ;;
1606 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1607 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1608 program_prefix=$ac_optarg ;;
1610 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1611 | --program-suf | --program-su | --program-s)
1612 ac_prev=program_suffix ;;
1613 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1614 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1615 program_suffix=$ac_optarg ;;
1617 -program-transform-name | --program-transform-name \
1618 | --program-transform-nam | --program-transform-na \
1619 | --program-transform-n | --program-transform- \
1620 | --program-transform | --program-transfor \
1621 | --program-transfo | --program-transf \
1622 | --program-trans | --program-tran \
1623 | --progr-tra | --program-tr | --program-t)
1624 ac_prev=program_transform_name ;;
1625 -program-transform-name=* | --program-transform-name=* \
1626 | --program-transform-nam=* | --program-transform-na=* \
1627 | --program-transform-n=* | --program-transform-=* \
1628 | --program-transform=* | --program-transfor=* \
1629 | --program-transfo=* | --program-transf=* \
1630 | --program-trans=* | --program-tran=* \
1631 | --progr-tra=* | --program-tr=* | --program-t=*)
1632 program_transform_name=$ac_optarg ;;
1634 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1636 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1637 pdfdir=$ac_optarg ;;
1639 -psdir | --psdir | --psdi | --psd | --ps)
1641 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645 | -silent | --silent | --silen | --sile | --sil)
1648 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1650 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1652 sbindir=$ac_optarg ;;
1654 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1655 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1656 | --sharedst | --shareds | --shared | --share | --shar \
1658 ac_prev=sharedstatedir ;;
1659 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1660 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1661 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1663 sharedstatedir=$ac_optarg ;;
1665 -site | --site | --sit)
1667 -site=* | --site=* | --sit=*)
1670 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1672 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1673 srcdir=$ac_optarg ;;
1675 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1676 | --syscon | --sysco | --sysc | --sys | --sy)
1677 ac_prev=sysconfdir ;;
1678 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1679 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1680 sysconfdir=$ac_optarg ;;
1682 -target | --target | --targe | --targ | --tar | --ta | --t)
1683 ac_prev=target_alias ;;
1684 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1685 target_alias=$ac_optarg ;;
1687 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1690 -version | --version | --versio | --versi | --vers | -V)
1691 ac_init_version=: ;;
1694 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1695 # Reject names that are not valid shell variable names.
1696 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1697 as_fn_error $? "invalid package name: $ac_useropt"
1698 ac_useropt_orig=$ac_useropt
1699 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1700 case $ac_user_opts in
1704 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1705 ac_unrecognized_sep=', ';;
1707 eval with_$ac_useropt=\$ac_optarg ;;
1709 -without-* | --without-*)
1710 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1711 # Reject names that are not valid shell variable names.
1712 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1713 as_fn_error $? "invalid package name: $ac_useropt"
1714 ac_useropt_orig=$ac_useropt
1715 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1716 case $ac_user_opts in
1720 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1721 ac_unrecognized_sep=', ';;
1723 eval with_$ac_useropt=no ;;
1726 # Obsolete; use --with-x.
1729 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1730 | --x-incl | --x-inc | --x-in | --x-i)
1731 ac_prev=x_includes ;;
1732 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1733 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1734 x_includes=$ac_optarg ;;
1736 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1737 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1738 ac_prev=x_libraries ;;
1739 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1740 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1741 x_libraries=$ac_optarg ;;
1743 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1744 Try \`$0 --help' for more information"
1748 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1749 # Reject names that are not valid shell variable names.
1750 case $ac_envvar in #(
1751 '' | [0-9]* | *[!_$as_cr_alnum]* )
1752 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1754 eval $ac_envvar=\$ac_optarg
1755 export $ac_envvar ;;
1758 # FIXME: should be removed in autoconf 3.0.
1759 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1760 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1761 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1762 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1768 if test -n "$ac_prev"; then
1769 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1770 as_fn_error $? "missing argument to $ac_option"
1773 if test -n "$ac_unrecognized_opts"; then
1774 case $enable_option_checking in
1776 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1777 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1781 # Check all directory arguments for consistency.
1782 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1783 datadir sysconfdir sharedstatedir localstatedir includedir \
1784 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1785 libdir localedir mandir
1787 eval ac_val=\$$ac_var
1788 # Remove trailing slashes.
1791 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1792 eval $ac_var=\$ac_val;;
1794 # Be sure to have absolute directory names.
1796 [\\/$]* | ?:[\\/]* ) continue;;
1797 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1799 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1802 # There might be people who depend on the old broken behavior: `$host'
1803 # used to hold the argument of --host etc.
1804 # FIXME: To remove some day.
1807 target=$target_alias
1809 # FIXME: To remove some day.
1810 if test "x$host_alias" != x; then
1811 if test "x$build_alias" = x; then
1812 cross_compiling=maybe
1813 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1814 If a cross compiler is detected then cross compile mode will be used" >&2
1815 elif test "x$build_alias" != "x$host_alias"; then
1821 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1823 test "$silent" = yes && exec 6>/dev/null
1826 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1827 ac_ls_di=`ls -di .` &&
1828 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1829 as_fn_error $? "working directory cannot be determined"
1830 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1831 as_fn_error $? "pwd does not report name of working directory"
1834 # Find the source files, if location was not specified.
1835 if test -z "$srcdir"; then
1836 ac_srcdir_defaulted=yes
1837 # Try the directory containing this script, then the parent directory.
1838 ac_confdir=`$as_dirname -- "$as_myself" ||
1839 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1840 X"$as_myself" : 'X\(//\)[^/]' \| \
1841 X"$as_myself" : 'X\(//\)$' \| \
1842 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1843 $as_echo X"$as_myself" |
1844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1862 if test ! -r "$srcdir/$ac_unique_file"; then
1866 ac_srcdir_defaulted=no
1868 if test ! -r "$srcdir/$ac_unique_file"; then
1869 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1870 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1872 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1874 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1876 # When building in place, set srcdir=.
1877 if test "$ac_abs_confdir" = "$ac_pwd"; then
1880 # Remove unnecessary trailing slashes from srcdir.
1881 # Double slashes in file names in object file debugging info
1882 # mess up M-x gdb in Emacs.
1884 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1886 for ac_var in $ac_precious_vars; do
1887 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1888 eval ac_env_${ac_var}_value=\$${ac_var}
1889 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1890 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1894 # Report the --help message.
1896 if test "$ac_init_help" = "long"; then
1897 # Omit some internal or obsolete options to make the list less imposing.
1898 # This message is too long to be a string in the A/UX 3.1 sh.
1900 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1902 Usage: $0 [OPTION]... [VAR=VALUE]...
1904 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1905 VAR=VALUE. See below for descriptions of some of the useful variables.
1907 Defaults for the options are specified in brackets.
1910 -h, --help display this help and exit
1911 --help=short display options specific to this package
1912 --help=recursive display the short help of all the included packages
1913 -V, --version display version information and exit
1914 -q, --quiet, --silent do not print \`checking ...' messages
1915 --cache-file=FILE cache test results in FILE [disabled]
1916 -C, --config-cache alias for \`--cache-file=config.cache'
1917 -n, --no-create do not create output files
1918 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1920 Installation directories:
1921 --prefix=PREFIX install architecture-independent files in PREFIX
1922 [$ac_default_prefix]
1923 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1926 By default, \`make install' will install all the files in
1927 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1928 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1929 for instance \`--prefix=\$HOME'.
1931 For better control, use the options below.
1933 Fine tuning of the installation directories:
1934 --bindir=DIR user executables [EPREFIX/bin]
1935 --sbindir=DIR system admin executables [EPREFIX/sbin]
1936 --libexecdir=DIR program executables [EPREFIX/libexec]
1937 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1938 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1939 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1940 --libdir=DIR object code libraries [EPREFIX/lib]
1941 --includedir=DIR C header files [PREFIX/include]
1942 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1943 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1944 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1945 --infodir=DIR info documentation [DATAROOTDIR/info]
1946 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1947 --mandir=DIR man documentation [DATAROOTDIR/man]
1948 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1949 --htmldir=DIR html documentation [DOCDIR]
1950 --dvidir=DIR dvi documentation [DOCDIR]
1951 --pdfdir=DIR pdf documentation [DOCDIR]
1952 --psdir=DIR ps documentation [DOCDIR]
1958 --build=BUILD configure for building on BUILD [guessed]
1959 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1963 if test -n "$ac_init_help"; then
1964 case $ac_init_help in
1965 short | recursive ) echo "Configuration of asterisk trunk:";;
1970 --disable-option-checking ignore unrecognized --enable/--with options
1971 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1972 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1973 --enable-dev-mode Turn on developer mode
1974 --enable-coverage Turn on code coverage tracking (for gcov)
1975 --disable-xmldoc Explicitly disable XML documentation
1976 --disable-largefile omit support for large files
1977 --enable-internal-poll Use Asterisk's poll implementation
1978 --disable-asteriskssl Disable Asterisk's SSL wrapper library
1979 --disable-rpath Disables rpath linker option checking
1982 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1983 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1984 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1985 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1986 --with-bfd=PATH use Debug symbol decoding files in PATH
1987 --with-execinfo=PATH use Stack Backtrace files in PATH
1988 --with-bluetooth=PATH use Bluetooth files in PATH
1989 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1990 --with-cpg=PATH use Corosync files in PATH
1991 --with-curses=PATH use curses files in PATH
1992 --with-crypt=PATH use password and data encryption files in PATH
1993 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1994 --with-dahdi=PATH use DAHDI files in PATH
1995 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1996 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1998 --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
2000 --with-gtk2=PATH use gtk2 files in PATH
2001 --with-gmime=PATH use GMime files in PATH
2002 --with-h323=PATH use OpenH323 files in PATH
2003 --with-hoard=PATH use Hoard Memory Allocator files in PATH
2004 --with-ical=PATH use iCal files in PATH
2005 --with-iconv=PATH use Iconv files in PATH
2006 --with-iksemel=PATH use Iksemel Jabber files in PATH
2007 --with-imap=PATH use UW IMAP Toolkit files in PATH
2008 --with-inotify=PATH use inotify support files in PATH
2009 --with-iodbc=PATH use iODBC files in PATH
2010 --with-isdnnet=PATH use ISDN4Linux files in PATH
2011 --with-jack=PATH use Jack Audio Connection Kit files in PATH
2012 --with-jansson=PATH use Jansson JSON library files in PATH
2013 --with-uriparser=PATH use uriparser library files in PATH
2014 --with-kqueue=PATH use kqueue support files in PATH
2015 --with-ldap=PATH use OpenLDAP files in PATH
2016 --with-libcurl=DIR look for the curl library in DIR
2017 --with-libedit=PATH use NetBSD Editline library files in PATH, use
2018 'internal' Editline otherwise
2019 --with-libxml2=PATH use LibXML2 files in PATH
2020 --with-libxslt=PATH use LibXSLT files in PATH
2021 --with-ltdl=PATH use libtool files in PATH
2022 --with-lua=PATH use Lua files in PATH
2023 --with-misdn=PATH use mISDN user files in PATH
2024 --with-mysqlclient=PATH use MySQL client files in PATH
2025 --with-nbs=PATH use Network Broadcast Sound files in PATH
2026 --with-ncurses=PATH use ncurses files in PATH
2027 --with-neon=PATH use neon files in PATH
2028 --with-neon29=PATH use neon29 files in PATH
2029 --with-netsnmp=PATH use Net-SNMP files in PATH
2030 --with-newt=PATH use newt files in PATH
2031 --with-ogg=PATH use OGG files in PATH
2032 --with-openr2=PATH use MFR2 files in PATH
2033 --with-osptk=PATH use OSP Toolkit files in PATH
2034 --with-oss=PATH use Open Sound System files in PATH
2035 --with-postgres=PATH use PostgreSQL files in PATH
2036 --with-pjproject=PATH use PJPROJECT files in PATH
2037 --with-popt=PATH use popt files in PATH
2038 --with-portaudio=PATH use PortAudio files in PATH
2039 --with-pri=PATH use ISDN PRI files in PATH
2040 --with-pwlib=PATH use PWlib files in PATH
2041 --with-radius=PATH use Radius Client files in PATH
2042 --with-resample=PATH use LIBRESAMPLE files in PATH
2043 --with-sdl=PATH use Sdl files in PATH
2044 --with-SDL_image=PATH use Sdl Image files in PATH
2045 --with-sounds-cache=PATH
2046 use cached sound tarfiles in PATH
2047 --with-spandsp=PATH use SPANDSP files in PATH
2048 --with-ss7=PATH use ISDN SS7 files in PATH
2049 --with-speex=PATH use Speex files in PATH
2050 --with-speex=PATH use Speex preprocess routines files in PATH
2051 --with-speexdsp=PATH use SpeexDSP files in PATH
2052 --with-sqlite=PATH use SQLite files in PATH
2053 --with-sqlite3=PATH use SQLite files in PATH
2054 --with-srtp=PATH use Secure RTP files in PATH
2055 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
2056 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
2057 --with-tds=PATH use FreeTDS files in PATH
2058 --with-termcap=PATH use Termcap files in PATH
2059 --with-timerfd=PATH use timerfd files in PATH
2060 --with-tinfo=PATH use Term Info files in PATH
2061 --with-tonezone=PATH use tonezone files in PATH
2062 --with-unixodbc=PATH use unixODBC files in PATH
2063 --with-vorbis=PATH use Vorbis files in PATH
2064 --with-vpb=PATH use Voicetronix API files in PATH
2065 --with-x11=PATH use X11 files in PATH
2066 --with-z=PATH use zlib compression files in PATH
2068 Some influential environment variables:
2069 CC C compiler command
2070 CFLAGS C compiler flags
2071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2072 nonstandard directory <lib dir>
2073 LIBS libraries to pass to the linker, e.g. -l<library>
2074 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2075 you have headers in a nonstandard directory <include dir>
2077 CXX C++ compiler command
2078 CXXFLAGS C++ compiler flags
2079 CXXCPP C++ preprocessor
2080 PKG_CONFIG path to pkg-config utility
2082 directories to add to pkg-config's search path
2084 path overriding pkg-config's built-in search path
2085 ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
2086 ILBC_LIBS linker flags for ILBC, overriding pkg-config
2088 C compiler flags for LIBEDIT, overriding pkg-config
2090 linker flags for LIBEDIT, overriding pkg-config
2092 C compiler flags for PJPROJECT, overriding pkg-config
2094 linker flags for PJPROJECT, overriding pkg-config
2096 C compiler flags for GMIME, overriding pkg-config
2097 GMIME_LIBS linker flags for GMIME, overriding pkg-config
2098 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2099 GTK2_LIBS linker flags for GTK2, overriding pkg-config
2101 Use these variables to override the choices made by `configure' or to help
2102 it to find libraries and programs with nonstandard names/locations.
2104 Report bugs to <https://issues.asterisk.org>.
2109 if test "$ac_init_help" = "recursive"; then
2110 # If there are subdirs, report their specific --help.
2111 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2112 test -d "$ac_dir" ||
2113 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2118 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2120 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2121 # A ".." for each directory in $ac_dir_suffix.
2122 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2123 case $ac_top_builddir_sub in
2124 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2125 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2128 ac_abs_top_builddir=$ac_pwd
2129 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2130 # for backward compatibility:
2131 ac_top_builddir=$ac_top_build_prefix
2134 .) # We are building in place.
2136 ac_top_srcdir=$ac_top_builddir_sub
2137 ac_abs_top_srcdir=$ac_pwd ;;
2138 [\\/]* | ?:[\\/]* ) # Absolute name.
2139 ac_srcdir=$srcdir$ac_dir_suffix;
2140 ac_top_srcdir=$srcdir
2141 ac_abs_top_srcdir=$srcdir ;;
2143 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2144 ac_top_srcdir=$ac_top_build_prefix$srcdir
2145 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2147 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2149 cd "$ac_dir" || { ac_status=$?; continue; }
2150 # Check for guested configure.
2151 if test -f "$ac_srcdir/configure.gnu"; then
2153 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2154 elif test -f "$ac_srcdir/configure"; then
2156 $SHELL "$ac_srcdir/configure" --help=recursive
2158 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2160 cd "$ac_pwd" || { ac_status=$?; break; }
2164 test -n "$ac_init_help" && exit $ac_status
2165 if $ac_init_version; then
2167 asterisk configure trunk
2168 generated by GNU Autoconf 2.68
2170 Copyright (C) 2010 Free Software Foundation, Inc.
2171 This configure script is free software; the Free Software Foundation
2172 gives unlimited permission to copy, distribute and modify it.
2179 ## ------------------------ ##
2180 ## Autoconf initialization. ##
2181 ## ------------------------ ##
2183 # ac_fn_c_try_compile LINENO
2184 # --------------------------
2185 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2186 ac_fn_c_try_compile ()
2188 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2189 rm -f conftest.$ac_objext
2190 if { { ac_try="$ac_compile"
2192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2193 *) ac_try_echo=$ac_try;;
2195 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2196 $as_echo "$ac_try_echo"; } >&5
2197 (eval "$ac_compile") 2>conftest.err
2199 if test -s conftest.err; then
2200 grep -v '^ *+' conftest.err >conftest.er1
2201 cat conftest.er1 >&5
2202 mv -f conftest.er1 conftest.err
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; } && {
2206 test -z "$ac_c_werror_flag" ||
2207 test ! -s conftest.err
2208 } && test -s conftest.$ac_objext; then :
2211 $as_echo "$as_me: failed program was:" >&5
2212 sed 's/^/| /' conftest.$ac_ext >&5
2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 as_fn_set_status $ac_retval
2219 } # ac_fn_c_try_compile
2221 # ac_fn_c_try_cpp LINENO
2222 # ----------------------
2223 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 if { { ac_try="$ac_cpp conftest.$ac_ext"
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2236 if test -s conftest.err; then
2237 grep -v '^ *+' conftest.err >conftest.er1
2238 cat conftest.er1 >&5
2239 mv -f conftest.er1 conftest.err
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } > conftest.i && {
2243 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2244 test ! -s conftest.err
2248 $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 as_fn_set_status $ac_retval
2258 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2259 # -------------------------------------------------------
2260 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2261 # the include files in INCLUDES and setting the cache variable VAR
2263 ac_fn_c_check_header_mongrel ()
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 if eval \${$3+:} false; then :
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2268 $as_echo_n "checking for $2... " >&6; }
2269 if eval \${$3+:} false; then :
2270 $as_echo_n "(cached) " >&6
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2274 $as_echo "$ac_res" >&6; }
2276 # Is the header compilable?
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2278 $as_echo_n "checking $2 usability... " >&6; }
2279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2280 /* end confdefs.h. */
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285 ac_header_compiler=yes
2287 ac_header_compiler=no
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2291 $as_echo "$ac_header_compiler" >&6; }
2293 # Is the header present?
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2295 $as_echo_n "checking $2 presence... " >&6; }
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h. */
2300 if ac_fn_c_try_cpp "$LINENO"; then :
2301 ac_header_preproc=yes
2303 ac_header_preproc=no
2305 rm -f conftest.err conftest.i conftest.$ac_ext
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2307 $as_echo "$ac_header_preproc" >&6; }
2309 # So? What about this header?
2310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2313 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2315 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2319 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2321 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2323 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2325 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2327 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2328 ( $as_echo "## ------------------------------------------ ##
2329 ## Report this to https://issues.asterisk.org ##
2330 ## ------------------------------------------ ##"
2331 ) | sed "s/^/$as_me: WARNING: /" >&2
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2335 $as_echo_n "checking for $2... " >&6; }
2336 if eval \${$3+:} false; then :
2337 $as_echo_n "(cached) " >&6
2339 eval "$3=\$ac_header_compiler"
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2343 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347 } # ac_fn_c_check_header_mongrel
2349 # ac_fn_c_try_run LINENO
2350 # ----------------------
2351 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2352 # that executables *can* be run.
2355 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2356 if { { ac_try="$ac_link"
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_link") 2>&5
2365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2366 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2367 { { case "(($ac_try" in
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_try") 2>&5
2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2376 test $ac_status = 0; }; }; then :
2379 $as_echo "$as_me: program exited with status $ac_status" >&5
2380 $as_echo "$as_me: failed program was:" >&5
2381 sed 's/^/| /' conftest.$ac_ext >&5
2383 ac_retval=$ac_status
2385 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387 as_fn_set_status $ac_retval
2391 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2392 # -------------------------------------------------------
2393 # Tests whether HEADER exists and can be compiled using the include files in
2394 # INCLUDES, setting the cache variable VAR accordingly.
2395 ac_fn_c_check_header_compile ()
2397 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2399 $as_echo_n "checking for $2... " >&6; }
2400 if eval \${$3+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2404 /* end confdefs.h. */
2408 if ac_fn_c_try_compile "$LINENO"; then :
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2417 $as_echo "$ac_res" >&6; }
2418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2420 } # ac_fn_c_check_header_compile
2422 # ac_fn_cxx_try_compile LINENO
2423 # ----------------------------
2424 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2425 ac_fn_cxx_try_compile ()
2427 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2428 rm -f conftest.$ac_objext
2429 if { { ac_try="$ac_compile"
2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2432 *) ac_try_echo=$ac_try;;
2434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2435 $as_echo "$ac_try_echo"; } >&5
2436 (eval "$ac_compile") 2>conftest.err
2438 if test -s conftest.err; then
2439 grep -v '^ *+' conftest.err >conftest.er1
2440 cat conftest.er1 >&5
2441 mv -f conftest.er1 conftest.err
2443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2444 test $ac_status = 0; } && {
2445 test -z "$ac_cxx_werror_flag" ||
2446 test ! -s conftest.err
2447 } && test -s conftest.$ac_objext; then :
2450 $as_echo "$as_me: failed program was:" >&5
2451 sed 's/^/| /' conftest.$ac_ext >&5
2455 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2456 as_fn_set_status $ac_retval
2458 } # ac_fn_cxx_try_compile
2460 # ac_fn_cxx_try_cpp LINENO
2461 # ------------------------
2462 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2463 ac_fn_cxx_try_cpp ()
2465 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2466 if { { ac_try="$ac_cpp conftest.$ac_ext"
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2472 $as_echo "$ac_try_echo"; } >&5
2473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2475 if test -s conftest.err; then
2476 grep -v '^ *+' conftest.err >conftest.er1
2477 cat conftest.er1 >&5
2478 mv -f conftest.er1 conftest.err
2480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2481 test $ac_status = 0; } > conftest.i && {
2482 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2483 test ! -s conftest.err
2487 $as_echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2492 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2493 as_fn_set_status $ac_retval
2495 } # ac_fn_cxx_try_cpp
2497 # ac_fn_c_try_link LINENO
2498 # -----------------------
2499 # Try to link conftest.$ac_ext, and return whether this succeeded.
2502 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2503 rm -f conftest.$ac_objext conftest$ac_exeext
2504 if { { ac_try="$ac_link"
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2510 $as_echo "$ac_try_echo"; } >&5
2511 (eval "$ac_link") 2>conftest.err
2513 if test -s conftest.err; then
2514 grep -v '^ *+' conftest.err >conftest.er1
2515 cat conftest.er1 >&5
2516 mv -f conftest.er1 conftest.err
2518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2519 test $ac_status = 0; } && {
2520 test -z "$ac_c_werror_flag" ||
2521 test ! -s conftest.err
2522 } && test -s conftest$ac_exeext && {
2523 test "$cross_compiling" = yes ||
2524 $as_test_x conftest$ac_exeext
2528 $as_echo "$as_me: failed program was:" >&5
2529 sed 's/^/| /' conftest.$ac_ext >&5
2533 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2534 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2535 # interfere with the next link command; also delete a directory that is
2536 # left behind by Apple's compiler. We do this before executing the actions.
2537 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2538 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2539 as_fn_set_status $ac_retval
2541 } # ac_fn_c_try_link
2543 # ac_fn_c_check_func LINENO FUNC VAR
2544 # ----------------------------------
2545 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2546 ac_fn_c_check_func ()
2548 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2550 $as_echo_n "checking for $2... " >&6; }
2551 if eval \${$3+:} false; then :
2552 $as_echo_n "(cached) " >&6
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2556 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2558 #define $2 innocuous_$2
2560 /* System header to define __stub macros and hopefully few prototypes,
2561 which can conflict with char $2 (); below.
2562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2563 <limits.h> exists even on freestanding compilers. */
2566 # include <limits.h>
2568 # include <assert.h>
2573 /* Override any GCC internal prototype to avoid an error.
2574 Use char because int might match the return type of a GCC
2575 builtin and then its argument prototype would still apply. */
2580 /* The GNU C library defines this for functions which it implements
2581 to always fail with ENOSYS. Some functions are actually named
2582 something starting with __ and the normal name is an alias. */
2583 #if defined __stub_$2 || defined __stub___$2
2595 if ac_fn_c_try_link "$LINENO"; then :
2600 rm -f core conftest.err conftest.$ac_objext \
2601 conftest$ac_exeext conftest.$ac_ext
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2605 $as_echo "$ac_res" >&6; }
2606 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2608 } # ac_fn_c_check_func
2610 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2611 # -------------------------------------------
2612 # Tests whether TYPE exists after having included INCLUDES, setting cache
2613 # variable VAR accordingly.
2614 ac_fn_c_check_type ()
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2618 $as_echo_n "checking for $2... " >&6; }
2619 if eval \${$3+:} false; then :
2620 $as_echo_n "(cached) " >&6
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2635 if ac_fn_c_try_compile "$LINENO"; then :
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2648 if ac_fn_c_try_compile "$LINENO"; then :
2653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2659 $as_echo "$ac_res" >&6; }
2660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2662 } # ac_fn_c_check_type
2664 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2665 # ----------------------------------------------------
2666 # Tries to find if the field MEMBER exists in type AGGR, after including
2667 # INCLUDES, setting cache variable VAR accordingly.
2668 ac_fn_c_check_member ()
2670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2672 $as_echo_n "checking for $2.$3... " >&6; }
2673 if eval \${$4+:} false; then :
2674 $as_echo_n "(cached) " >&6
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2689 if ac_fn_c_try_compile "$LINENO"; then :
2692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2693 /* end confdefs.h. */
2699 if (sizeof ac_aggr.$3)
2705 if ac_fn_c_try_compile "$LINENO"; then :
2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2716 $as_echo "$ac_res" >&6; }
2717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2719 } # ac_fn_c_check_member
2721 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2722 # --------------------------------------------
2723 # Tries to find the compile-time value of EXPR in a program that includes
2724 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2726 ac_fn_c_compute_int ()
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 if test "$cross_compiling" = yes; then
2730 # Depending upon the size, compute the lo and hi bounds.
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2737 static int test_array [1 - 2 * !(($2) >= 0)];
2744 if ac_fn_c_try_compile "$LINENO"; then :
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2753 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2760 if ac_fn_c_try_compile "$LINENO"; then :
2761 ac_hi=$ac_mid; break
2763 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2764 if test $ac_lo -le $ac_mid; then
2768 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774 /* end confdefs.h. */
2779 static int test_array [1 - 2 * !(($2) < 0)];
2786 if ac_fn_c_try_compile "$LINENO"; then :
2789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2790 /* end confdefs.h. */
2795 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2802 if ac_fn_c_try_compile "$LINENO"; then :
2803 ac_lo=$ac_mid; break
2805 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2806 if test $ac_mid -le $ac_hi; then
2810 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820 # Binary search between lo and hi bounds.
2821 while test "x$ac_lo" != "x$ac_hi"; do
2822 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2824 /* end confdefs.h. */
2829 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2836 if ac_fn_c_try_compile "$LINENO"; then :
2839 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2844 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2849 /* end confdefs.h. */
2851 static long int longval () { return $2; }
2852 static unsigned long int ulongval () { return $2; }
2859 FILE *f = fopen ("conftest.val", "w");
2864 long int i = longval ();
2867 fprintf (f, "%ld", i);
2871 unsigned long int i = ulongval ();
2874 fprintf (f, "%lu", i);
2876 /* Do not output a trailing newline, as this causes \r\n confusion
2877 on some platforms. */
2878 return ferror (f) || fclose (f) != 0;
2884 if ac_fn_c_try_run "$LINENO"; then :
2885 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2890 conftest.$ac_objext conftest.beam conftest.$ac_ext
2894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2895 as_fn_set_status $ac_retval
2897 } # ac_fn_c_compute_int
2899 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2900 # ---------------------------------------------------------
2901 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2902 # the include files in INCLUDES and setting the cache variable VAR
2904 ac_fn_cxx_check_header_mongrel ()
2906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2907 if eval \${$3+:} false; then :
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2909 $as_echo_n "checking for $2... " >&6; }
2910 if eval \${$3+:} false; then :
2911 $as_echo_n "(cached) " >&6
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2915 $as_echo "$ac_res" >&6; }
2917 # Is the header compilable?
2918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2919 $as_echo_n "checking $2 usability... " >&6; }
2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h. */
2925 if ac_fn_cxx_try_compile "$LINENO"; then :
2926 ac_header_compiler=yes
2928 ac_header_compiler=no
2930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2932 $as_echo "$ac_header_compiler" >&6; }
2934 # Is the header present?
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2936 $as_echo_n "checking $2 presence... " >&6; }
2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2938 /* end confdefs.h. */
2941 if ac_fn_cxx_try_cpp "$LINENO"; then :
2942 ac_header_preproc=yes
2944 ac_header_preproc=no
2946 rm -f conftest.err conftest.i conftest.$ac_ext
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2948 $as_echo "$ac_header_preproc" >&6; }
2950 # So? What about this header?
2951 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2954 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2956 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2960 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2962 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2964 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2966 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2968 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2969 ( $as_echo "## ------------------------------------------ ##
2970 ## Report this to https://issues.asterisk.org ##
2971 ## ------------------------------------------ ##"
2972 ) | sed "s/^/$as_me: WARNING: /" >&2
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2976 $as_echo_n "checking for $2... " >&6; }
2977 if eval \${$3+:} false; then :
2978 $as_echo_n "(cached) " >&6
2980 eval "$3=\$ac_header_compiler"
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2984 $as_echo "$ac_res" >&6; }
2986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2988 } # ac_fn_cxx_check_header_mongrel
2990 # ac_fn_cxx_try_link LINENO
2991 # -------------------------
2992 # Try to link conftest.$ac_ext, and return whether this succeeded.
2993 ac_fn_cxx_try_link ()
2995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2996 rm -f conftest.$ac_objext conftest$ac_exeext
2997 if { { ac_try="$ac_link"
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3003 $as_echo "$ac_try_echo"; } >&5
3004 (eval "$ac_link") 2>conftest.err
3006 if test -s conftest.err; then
3007 grep -v '^ *+' conftest.err >conftest.er1
3008 cat conftest.er1 >&5
3009 mv -f conftest.er1 conftest.err
3011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3012 test $ac_status = 0; } && {
3013 test -z "$ac_cxx_werror_flag" ||
3014 test ! -s conftest.err
3015 } && test -s conftest$ac_exeext && {
3016 test "$cross_compiling" = yes ||
3017 $as_test_x conftest$ac_exeext
3021 $as_echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3026 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3027 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3028 # interfere with the next link command; also delete a directory that is
3029 # left behind by Apple's compiler. We do this before executing the actions.
3030 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3032 as_fn_set_status $ac_retval
3034 } # ac_fn_cxx_try_link
3036 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
3037 # ---------------------------------------------------------
3038 # Tests whether HEADER exists and can be compiled using the include files in
3039 # INCLUDES, setting the cache variable VAR accordingly.
3040 ac_fn_cxx_check_header_compile ()
3042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3044 $as_echo_n "checking for $2... " >&6; }
3045 if eval \${$3+:} false; then :
3046 $as_echo_n "(cached) " >&6
3048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3049 /* end confdefs.h. */
3053 if ac_fn_cxx_try_compile "$LINENO"; then :
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3062 $as_echo "$ac_res" >&6; }
3063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3065 } # ac_fn_cxx_check_header_compile
3066 cat >config.log <<_ACEOF
3067 This file contains any messages produced by compilers while
3068 running configure, to aid debugging if configure makes a mistake.
3070 It was created by asterisk $as_me trunk, which was
3071 generated by GNU Autoconf 2.68. Invocation command line was
3083 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3084 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3085 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3086 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3087 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3089 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3090 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3092 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3093 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3094 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3095 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3096 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3097 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3098 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 test -z "$as_dir" && as_dir=.
3107 $as_echo "PATH: $as_dir"
3123 # Keep a trace of the command line.
3124 # Strip out --no-create and --no-recursion so they do not pile up.
3125 # Strip out --silent because we don't want to record it for future runs.
3126 # Also quote any args containing shell meta-characters.
3127 # Make two passes to allow for proper duplicate-argument suppression.
3131 ac_must_keep_next=false
3137 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3139 | -silent | --silent | --silen | --sile | --sil)
3142 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3145 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3147 as_fn_append ac_configure_args1 " '$ac_arg'"
3148 if test $ac_must_keep_next = true; then
3149 ac_must_keep_next=false # Got value, back to normal.
3152 *=* | --config-cache | -C | -disable-* | --disable-* \
3153 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3154 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3155 | -with-* | --with-* | -without-* | --without-* | --x)
3156 case "$ac_configure_args0 " in
3157 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3160 -* ) ac_must_keep_next=true ;;
3163 as_fn_append ac_configure_args " '$ac_arg'"
3168 { ac_configure_args0=; unset ac_configure_args0;}
3169 { ac_configure_args1=; unset ac_configure_args1;}
3171 # When interrupted or exit'd, cleanup temporary files, and complete
3172 # config.log. We remove comments because anyway the quotes in there
3173 # would cause problems or look ugly.
3174 # WARNING: Use '\'' to represent an apostrophe within the trap.
3175 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3176 trap 'exit_status=$?
3177 # Save into config.log some information that might help in debugging.
3181 $as_echo "## ---------------- ##
3182 ## Cache variables. ##
3183 ## ---------------- ##"
3185 # The following way of writing the cache mishandles newlines in values,
3187 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3188 eval ac_val=\$$ac_var
3192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3193 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3196 _ | IFS | as_nl) ;; #(
3197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3198 *) { eval $ac_var=; unset $ac_var;} ;;
3203 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3204 *${as_nl}ac_space=\ *)
3206 "s/'\''/'\''\\\\'\'''\''/g;
3207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3217 $as_echo "## ----------------- ##
3218 ## Output variables. ##
3219 ## ----------------- ##"
3221 for ac_var in $ac_subst_vars
3223 eval ac_val=\$$ac_var
3225 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3227 $as_echo "$ac_var='\''$ac_val'\''"
3231 if test -n "$ac_subst_files"; then
3232 $as_echo "## ------------------- ##
3233 ## File substitutions. ##
3234 ## ------------------- ##"
3236 for ac_var in $ac_subst_files
3238 eval ac_val=\$$ac_var
3240 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3242 $as_echo "$ac_var='\''$ac_val'\''"
3247 if test -s confdefs.h; then
3248 $as_echo "## ----------- ##
3255 test "$ac_signal" != 0 &&
3256 $as_echo "$as_me: caught signal $ac_signal"
3257 $as_echo "$as_me: exit $exit_status"
3259 rm -f core *.core core.conftest.* &&
3260 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3263 for ac_signal in 1 2 13 15; do
3264 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3268 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3269 rm -f -r conftest* confdefs.h
3271 $as_echo "/* confdefs.h */" > confdefs.h
3273 # Predefined preprocessor variables.
3275 cat >>confdefs.h <<_ACEOF
3276 #define PACKAGE_NAME "$PACKAGE_NAME"
3279 cat >>confdefs.h <<_ACEOF
3280 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3283 cat >>confdefs.h <<_ACEOF
3284 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3287 cat >>confdefs.h <<_ACEOF
3288 #define PACKAGE_STRING "$PACKAGE_STRING"
3291 cat >>confdefs.h <<_ACEOF
3292 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3295 cat >>confdefs.h <<_ACEOF
3296 #define PACKAGE_URL "$PACKAGE_URL"
3300 # Let the site file select an alternate cache file if it wants to.
3301 # Prefer an explicitly selected file to automatically selected ones.
3304 if test -n "$CONFIG_SITE"; then
3305 # We do not want a PATH search for config.site.
3306 case $CONFIG_SITE in #((
3307 -*) ac_site_file1=./$CONFIG_SITE;;
3308 */*) ac_site_file1=$CONFIG_SITE;;
3309 *) ac_site_file1=./$CONFIG_SITE;;
3311 elif test "x$prefix" != xNONE; then
3312 ac_site_file1=$prefix/share/config.site
3313 ac_site_file2=$prefix/etc/config.site
3315 ac_site_file1=$ac_default_prefix/share/config.site
3316 ac_site_file2=$ac_default_prefix/etc/config.site
3318 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3320 test "x$ac_site_file" = xNONE && continue
3321 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3323 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3324 sed 's/^/| /' "$ac_site_file" >&5
3326 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3328 as_fn_error $? "failed to load site script $ac_site_file
3329 See \`config.log' for more details" "$LINENO" 5; }
3333 if test -r "$cache_file"; then
3334 # Some versions of bash will fail to source /dev/null (special files
3335 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3336 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3338 $as_echo "$as_me: loading cache $cache_file" >&6;}
3340 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3341 *) . "./$cache_file";;
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3346 $as_echo "$as_me: creating cache $cache_file" >&6;}
3350 as_fn_append ac_header_list " stdlib.h"
3351 as_fn_append ac_header_list " unistd.h"
3352 as_fn_append ac_header_list " sys/param.h"
3353 as_fn_append ac_header_list " utime.h"
3354 # Check that the precious variables saved in the cache have kept the same
3356 ac_cache_corrupted=false
3357 for ac_var in $ac_precious_vars; do
3358 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3359 eval ac_new_set=\$ac_env_${ac_var}_set
3360 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3361 eval ac_new_val=\$ac_env_${ac_var}_value
3362 case $ac_old_set,$ac_new_set in
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3365 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3366 ac_cache_corrupted=: ;;
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3369 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3370 ac_cache_corrupted=: ;;
3373 if test "x$ac_old_val" != "x$ac_new_val"; then
3374 # differences in whitespace do not lead to failure.
3375 ac_old_val_w=`echo x $ac_old_val`
3376 ac_new_val_w=`echo x $ac_new_val`
3377 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3379 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3380 ac_cache_corrupted=:
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3383 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3384 eval $ac_var=\$ac_old_val
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3387 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3389 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3392 # Pass precious variables to config.status.
3393 if test "$ac_new_set" = set; then
3395 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3396 *) ac_arg=$ac_var=$ac_new_val ;;
3398 case " $ac_configure_args " in
3399 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3400 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3404 if $ac_cache_corrupted; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3408 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3409 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3411 ## -------------------- ##
3412 ## Main body of script. ##
3413 ## -------------------- ##
3416 ac_cpp='$CPP $CPPFLAGS'
3417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 # cross-compile macros
3425 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3426 if test -f "$ac_dir/install-sh"; then
3428 ac_install_sh="$ac_aux_dir/install-sh -c"
3430 elif test -f "$ac_dir/install.sh"; then
3432 ac_install_sh="$ac_aux_dir/install.sh -c"
3434 elif test -f "$ac_dir/shtool"; then
3436 ac_install_sh="$ac_aux_dir/shtool install -c"
3440 if test -z "$ac_aux_dir"; then
3441 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3444 # These three variables are undocumented and unsupported,
3445 # and are intended to be withdrawn in a future Autoconf release.
3446 # They can cause serious problems if a builder's source tree is in a directory
3447 # whose full name contains unusual characters.
3448 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3449 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3450 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3453 # Make sure we can run config.sub.
3454 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3455 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3458 $as_echo_n "checking build system type... " >&6; }
3459 if ${ac_cv_build+:} false; then :
3460 $as_echo_n "(cached) " >&6
3462 ac_build_alias=$build_alias
3463 test "x$ac_build_alias" = x &&
3464 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3465 test "x$ac_build_alias" = x &&
3466 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3467 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3468 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3472 $as_echo "$ac_cv_build" >&6; }
3473 case $ac_cv_build in
3475 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3478 ac_save_IFS=$IFS; IFS='-'
3484 # Remember, the first character of IFS is used to create $*,
3485 # except with old shells:
3488 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3492 $as_echo_n "checking host system type... " >&6; }
3493 if ${ac_cv_host+:} false; then :
3494 $as_echo_n "(cached) " >&6
3496 if test "x$host_alias" = x; then
3497 ac_cv_host=$ac_cv_build
3499 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3500 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3505 $as_echo "$ac_cv_host" >&6; }
3508 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3511 ac_save_IFS=$IFS; IFS='-'
3517 # Remember, the first character of IFS is used to create $*,
3518 # except with old shells:
3521 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3525 # check existence of the package
3529 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3530 if test -f "$ac_dir/install-sh"; then
3532 ac_install_sh="$ac_aux_dir/install-sh -c"
3534 elif test -f "$ac_dir/install.sh"; then
3536 ac_install_sh="$ac_aux_dir/install.sh -c"
3538 elif test -f "$ac_dir/shtool"; then
3540 ac_install_sh="$ac_aux_dir/shtool install -c"
3544 if test -z "$ac_aux_dir"; then
3545 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3548 # These three variables are undocumented and unsupported,
3549 # and are intended to be withdrawn in a future Autoconf release.
3550 # They can cause serious problems if a builder's source tree is in a directory
3551 # whose full name contains unusual characters.
3552 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3553 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3554 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3561 # preserve any CFLAGS or LDFLAGS that may be set
3562 # NOTE: This must be done before calling any macros that end up
3563 # calling AC_PROG_CC or the like, since they will set a default
3564 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3565 # we don't want those default flags to be carried over into the
3566 # rest of the build system since we have other means of controlling
3567 # debugging symbol generation and optimization.
3568 CONFIG_CFLAGS="${CFLAGS}"
3569 CONFIG_LDFLAGS="${LDFLAGS}"
3573 # specify output header file
3574 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3577 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3578 # other macro that uses the C compiler, or the default order will be used.
3580 ac_cpp='$CPP $CPPFLAGS'
3581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3584 if test -n "$ac_tool_prefix"; then
3585 for ac_prog in gcc cc
3587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 $as_echo_n "checking for $ac_word... " >&6; }
3591 if ${ac_cv_prog_CC+:} false; then :
3592 $as_echo_n "(cached) " >&6
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615 if test -n "$CC"; then
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3617 $as_echo "$CC" >&6; }
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3620 $as_echo "no" >&6; }
3624 test -n "$CC" && break
3627 if test -z "$CC"; then
3629 for ac_prog in gcc cc
3631 # Extract the first word of "$ac_prog", so it can be a program name with args.
3632 set dummy $ac_prog; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$ac_ct_CC"; then
3639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_ac_ct_CC="$ac_prog"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3659 if test -n "$ac_ct_CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3661 $as_echo "$ac_ct_CC" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3668 test -n "$ac_ct_CC" && break
3671 if test "x$ac_ct_CC" = x; then
3674 case $cross_compiling:$ac_tool_warned in
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3678 ac_tool_warned=yes ;;
3685 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error $? "no acceptable C compiler found in \$PATH
3688 See \`config.log' for more details" "$LINENO" 5; }
3690 # Provide some information about the compiler.
3691 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3694 for ac_option in --version -v -V -qversion; do
3695 { { ac_try="$ac_compiler $ac_option >&5"
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701 $as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3704 if test -s conftest.err; then
3706 ... rest of stderr output deleted ...
3707 10q' conftest.err >conftest.er1
3708 cat conftest.er1 >&5
3710 rm -f conftest.er1 conftest.err
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3726 ac_clean_files_save=$ac_clean_files
3727 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3728 # Try to create an executable without -o first, disregard a.out.
3729 # It will help us diagnose broken compilers, and finding out an intuition
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3732 $as_echo_n "checking whether the C compiler works... " >&6; }
3733 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3735 # The possible output files:
3736 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3739 for ac_file in $ac_files
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3748 if { { ac_try="$ac_link_default"
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_link_default") 2>&5
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; then :
3759 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3760 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3761 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3762 # so that the user can short-circuit this test for compilers unknown to
3764 for ac_file in $ac_files ''
3766 test -f "$ac_file" || continue
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3771 # We found the default executable, but exeext='' is most
3775 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3777 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3779 # We set ac_cv_exeext here because the later test for it is not
3780 # safe: cross compilers may not add the suffix if given an `-o'
3781 # argument, so we may need to know it at that point already.
3782 # Even if this section looks crufty: it has the advantage of
3789 test "$ac_cv_exeext" = no && ac_cv_exeext=
3794 if test -z "$ac_file"; then :
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3797 $as_echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error 77 "C compiler cannot create executables
3803 See \`config.log' for more details" "$LINENO" 5; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 $as_echo "yes" >&6; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3809 $as_echo_n "checking for C compiler default output file name... " >&6; }
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3811 $as_echo "$ac_file" >&6; }
3812 ac_exeext=$ac_cv_exeext
3814 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3815 ac_clean_files=$ac_clean_files_save
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3817 $as_echo_n "checking for suffix of executables... " >&6; }
3818 if { { ac_try="$ac_link"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825 (eval "$ac_link") 2>&5
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }; then :
3829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3830 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3831 # work properly (i.e., refer to `conftest.exe'), while it won't with
3833 for ac_file in conftest.exe conftest conftest.*; do
3834 test -f "$ac_file" || continue
3836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3846 See \`config.log' for more details" "$LINENO" 5; }
3848 rm -f conftest conftest$ac_cv_exeext
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3850 $as_echo "$ac_cv_exeext" >&6; }
3852 rm -f conftest.$ac_ext
3853 EXEEXT=$ac_cv_exeext
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3861 FILE *f = fopen ("conftest.out", "w");
3862 return ferror (f) || fclose (f) != 0;
3868 ac_clean_files="$ac_clean_files conftest.out"
3869 # Check that the compiler produces executables we can run. If not, either
3870 # the compiler is broken, or we cross compile.
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3872 $as_echo_n "checking whether we are cross compiling... " >&6; }
3873 if test "$cross_compiling" != yes; then
3874 { { ac_try="$ac_link"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link") 2>&5
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }
3885 if { ac_try='./conftest$ac_cv_exeext'
3886 { { case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891 $as_echo "$ac_try_echo"; } >&5
3892 (eval "$ac_try") 2>&5
3894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }; }; then
3898 if test "$cross_compiling" = maybe; then
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 as_fn_error $? "cannot run C compiled programs.
3904 If you meant to cross compile, use \`--host'.
3905 See \`config.log' for more details" "$LINENO" 5; }
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910 $as_echo "$cross_compiling" >&6; }
3912 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3913 ac_clean_files=$ac_clean_files_save
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3915 $as_echo_n "checking for suffix of object files... " >&6; }
3916 if ${ac_cv_objext+:} false; then :
3917 $as_echo_n "(cached) " >&6
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3930 rm -f conftest.o conftest.obj
3931 if { { ac_try="$ac_compile"
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_compile") 2>&5
3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }; then :
3942 for ac_file in conftest.o conftest.obj conftest.*; do
3943 test -f "$ac_file" || continue;
3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3951 $as_echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error $? "cannot compute suffix of object files: cannot compile
3957 See \`config.log' for more details" "$LINENO" 5; }
3959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3962 $as_echo "$ac_cv_objext" >&6; }
3963 OBJEXT=$ac_cv_objext
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3966 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3967 if ${ac_cv_c_compiler_gnu+:} false; then :
3968 $as_echo_n "(cached) " >&6
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3984 if ac_fn_c_try_compile "$LINENO"; then :
3989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3994 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3995 if test $ac_compiler_gnu = yes; then
4000 ac_test_CFLAGS=${CFLAGS+set}
4001 ac_save_CFLAGS=$CFLAGS
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4003 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4004 if ${ac_cv_prog_cc_g+:} false; then :
4005 $as_echo_n "(cached) " >&6
4007 ac_save_c_werror_flag=$ac_c_werror_flag
4008 ac_c_werror_flag=yes
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4022 if ac_fn_c_try_compile "$LINENO"; then :
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4037 if ac_fn_c_try_compile "$LINENO"; then :
4040 ac_c_werror_flag=$ac_save_c_werror_flag
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4053 if ac_fn_c_try_compile "$LINENO"; then :
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_c_werror_flag=$ac_save_c_werror_flag
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4064 $as_echo "$ac_cv_prog_cc_g" >&6; }
4065 if test "$ac_test_CFLAGS" = set; then
4066 CFLAGS=$ac_save_CFLAGS
4067 elif test $ac_cv_prog_cc_g = yes; then
4068 if test "$GCC" = yes; then
4074 if test "$GCC" = yes; then
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4081 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4082 if ${ac_cv_prog_cc_c89+:} false; then :
4083 $as_echo_n "(cached) " >&6
4085 ac_cv_prog_cc_c89=no
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4091 #include <sys/types.h>
4092 #include <sys/stat.h>
4093 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4094 struct buf { int x; };
4095 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4096 static char *e (p, i)
4102 static char *f (char * (*g) (char **, int), char **p, ...)
4107 s = g (p, va_arg (v,int));
4112 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4113 function prototypes and stuff, but not '\xHH' hex character constants.
4114 These don't provoke an error unfortunately, instead are silently treated
4115 as 'x'. The following induces an error, until -std is added to get
4116 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4117 array size at least. It's necessary to write '\x00'==0 to get something
4118 that's true only with -std. */
4119 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4121 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4122 inside strings and character constants. */
4124 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4126 int test (int i, double x);
4127 struct s1 {int (*f) (int a);};
4128 struct s2 {int (*f) (double a);};
4129 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4135 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4140 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4141 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4143 CC="$ac_save_CC $ac_arg"
4144 if ac_fn_c_try_compile "$LINENO"; then :
4145 ac_cv_prog_cc_c89=$ac_arg
4147 rm -f core conftest.err conftest.$ac_objext
4148 test "x$ac_cv_prog_cc_c89" != "xno" && break
4150 rm -f conftest.$ac_ext
4155 case "x$ac_cv_prog_cc_c89" in
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4158 $as_echo "none needed" >&6; } ;;
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4161 $as_echo "unsupported" >&6; } ;;
4163 CC="$CC $ac_cv_prog_cc_c89"
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4165 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4167 if test "x$ac_cv_prog_cc_c89" != xno; then :
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4180 ac_cpp='$CPP $CPPFLAGS'
4181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4185 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4186 # On Suns, sometimes $CPP names a directory.
4187 if test -n "$CPP" && test -d "$CPP"; then
4190 if test -z "$CPP"; then
4191 if ${ac_cv_prog_CPP+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 # Double quotes because CPP needs to be expanded
4195 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4198 for ac_c_preproc_warn_flag in '' yes
4200 # Use a header file that comes with gcc, so configuring glibc
4201 # with a fresh cross-compiler works.
4202 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4203 # <limits.h> exists even on freestanding compilers.
4204 # On the NeXT, cc -E runs the code through the compiler's parser,
4205 # not just through cpp. "Syntax error" is here to catch this case.
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4209 # include <limits.h>
4211 # include <assert.h>
4215 if ac_fn_c_try_cpp "$LINENO"; then :
4218 # Broken: fails on valid input.
4221 rm -f conftest.err conftest.i conftest.$ac_ext
4223 # OK, works on sane cases. Now check whether nonexistent headers
4224 # can be detected and how.
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4227 #include <ac_nonexistent.h>
4229 if ac_fn_c_try_cpp "$LINENO"; then :
4230 # Broken: success on invalid input.
4233 # Passes both tests.
4237 rm -f conftest.err conftest.i conftest.$ac_ext
4240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4241 rm -f conftest.i conftest.err conftest.$ac_ext
4242 if $ac_preproc_ok; then :
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4255 $as_echo "$CPP" >&6; }
4257 for ac_c_preproc_warn_flag in '' yes
4259 # Use a header file that comes with gcc, so configuring glibc
4260 # with a fresh cross-compiler works.
4261 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4262 # <limits.h> exists even on freestanding compilers.
4263 # On the NeXT, cc -E runs the code through the compiler's parser,
4264 # not just through cpp. "Syntax error" is here to catch this case.
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4268 # include <limits.h>
4270 # include <assert.h>
4274 if ac_fn_c_try_cpp "$LINENO"; then :
4277 # Broken: fails on valid input.
4280 rm -f conftest.err conftest.i conftest.$ac_ext
4282 # OK, works on sane cases. Now check whether nonexistent headers
4283 # can be detected and how.
4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h. */
4286 #include <ac_nonexistent.h>
4288 if ac_fn_c_try_cpp "$LINENO"; then :
4289 # Broken: success on invalid input.
4292 # Passes both tests.
4296 rm -f conftest.err conftest.i conftest.$ac_ext
4299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4300 rm -f conftest.i conftest.err conftest.$ac_ext
4301 if $ac_preproc_ok; then :
4304 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4306 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4307 See \`config.log' for more details" "$LINENO" 5; }
4311 ac_cpp='$CPP $CPPFLAGS'
4312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4318 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4319 if ${ac_cv_path_GREP+:} false; then :
4320 $as_echo_n "(cached) " >&6
4322 if test -z "$GREP"; then
4323 ac_path_GREP_found=false
4324 # Loop through the user's path and test for each of PROGNAME-LIST
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in grep ggrep; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4333 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4334 # Check for GNU ac_path_GREP and select it if it is found.
4335 # Check for GNU $ac_path_GREP
4336 case `"$ac_path_GREP" --version 2>&1` in
4338 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4341 $as_echo_n 0123456789 >"conftest.in"
4344 cat "conftest.in" "conftest.in" >"conftest.tmp"
4345 mv "conftest.tmp" "conftest.in"
4346 cp "conftest.in" "conftest.nl"
4347 $as_echo 'GREP' >> "conftest.nl"
4348 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4349 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4350 as_fn_arith $ac_count + 1 && ac_count=$as_val
4351 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4352 # Best one so far, save it but keep looking for a better one
4353 ac_cv_path_GREP="$ac_path_GREP"
4354 ac_path_GREP_max=$ac_count
4356 # 10*(2^10) chars as input seems more than enough
4357 test $ac_count -gt 10 && break
4359 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4362 $ac_path_GREP_found && break 3
4367 if test -z "$ac_cv_path_GREP"; then
4368 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4371 ac_cv_path_GREP=$GREP
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4376 $as_echo "$ac_cv_path_GREP" >&6; }
4377 GREP="$ac_cv_path_GREP"
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4381 $as_echo_n "checking for egrep... " >&6; }
4382 if ${ac_cv_path_EGREP+:} false; then :
4383 $as_echo_n "(cached) " >&6
4385 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4386 then ac_cv_path_EGREP="$GREP -E"
4388 if test -z "$EGREP"; then
4389 ac_path_EGREP_found=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4395 test -z "$as_dir" && as_dir=.
4396 for ac_prog in egrep; do
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4399 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4400 # Check for GNU ac_path_EGREP and select it if it is found.
4401 # Check for GNU $ac_path_EGREP
4402 case `"$ac_path_EGREP" --version 2>&1` in
4404 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4407 $as_echo_n 0123456789 >"conftest.in"
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 $as_echo 'EGREP' >> "conftest.nl"
4414 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416 as_fn_arith $ac_count + 1 && ac_count=$as_val
4417 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_EGREP="$ac_path_EGREP"
4420 ac_path_EGREP_max=$ac_count
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4428 $ac_path_EGREP_found && break 3
4433 if test -z "$ac_cv_path_EGREP"; then
4434 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4437 ac_cv_path_EGREP=$EGREP
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4443 $as_echo "$ac_cv_path_EGREP" >&6; }
4444 EGREP="$ac_cv_path_EGREP"
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4448 $as_echo_n "checking for ANSI C header files... " >&6; }
4449 if ${ac_cv_header_stdc+:} false; then :
4450 $as_echo_n "(cached) " >&6
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4467 if ac_fn_c_try_compile "$LINENO"; then :
4468 ac_cv_header_stdc=yes
4470 ac_cv_header_stdc=no
4472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4474 if test $ac_cv_header_stdc = yes; then
4475 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4482 $EGREP "memchr" >/dev/null 2>&1; then :
4485 ac_cv_header_stdc=no
4491 if test $ac_cv_header_stdc = yes; then
4492 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4499 $EGREP "free" >/dev/null 2>&1; then :
4502 ac_cv_header_stdc=no
4508 if test $ac_cv_header_stdc = yes; then
4509 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4510 if test "$cross_compiling" = yes; then :
4513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514 /* end confdefs.h. */
4517 #if ((' ' & 0x0FF) == 0x020)
4518 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4519 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4521 # define ISLOWER(c) \
4522 (('a' <= (c) && (c) <= 'i') \
4523 || ('j' <= (c) && (c) <= 'r') \
4524 || ('s' <= (c) && (c) <= 'z'))
4525 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4528 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4533 for (i = 0; i < 256; i++)
4534 if (XOR (islower (i), ISLOWER (i))
4535 || toupper (i) != TOUPPER (i))
4540 if ac_fn_c_try_run "$LINENO"; then :
4543 ac_cv_header_stdc=no
4545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4546 conftest.$ac_objext conftest.beam conftest.$ac_ext
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4552 $as_echo "$ac_cv_header_stdc" >&6; }
4553 if test $ac_cv_header_stdc = yes; then
4555 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4559 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4560 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4561 inttypes.h stdint.h unistd.h
4563 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4564 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4567 cat >>confdefs.h <<_ACEOF
4568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4577 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4578 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4585 if test "$MINIX" = yes; then
4587 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4590 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4593 $as_echo "#define _MINIX 1" >>confdefs.h
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4599 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4600 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4606 # define __EXTENSIONS__ 1
4607 $ac_includes_default
4616 if ac_fn_c_try_compile "$LINENO"; then :
4617 ac_cv_safe_to_define___extensions__=yes
4619 ac_cv_safe_to_define___extensions__=no
4621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4624 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4625 test $ac_cv_safe_to_define___extensions__ = yes &&
4626 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4628 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4630 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4632 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4634 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4637 # System default paths
4638 astsbindir='${sbindir}'
4639 astetcdir='${sysconfdir}/asterisk'
4640 astheaderdir='${includedir}/asterisk'
4641 astlibdir='${libdir}'
4642 astmoddir='${libdir}/asterisk/modules'
4643 astmandir='${mandir}'
4644 astvarlibdir='${localstatedir}/lib/asterisk'
4645 astdatadir='${astvarlibdir}'
4646 astdbdir='${astvarlibdir}'
4647 astkeydir='${astvarlibdir}'
4648 astspooldir='${localstatedir}/spool/asterisk'
4649 astlogdir='${localstatedir}/log/asterisk'
4650 astvarrundir='${localstatedir}/run/asterisk'
4652 case "${host_os}" in
4654 if test ${prefix} = 'NONE'; then
4655 astvarlibdir='${prefix}/share/asterisk'
4656 astdbdir='${localstatedir}/db/asterisk'
4660 if test ${prefix} = 'NONE'; then
4661 astvarrundir='/Library/Application Support/Asterisk/Run'
4666 case "${host_os}" in
4668 ac_default_prefix=/usr/local
4669 CPPFLAGS=-I/usr/local/include
4670 LDFLAGS=-L/usr/local/lib
4673 ac_default_prefix=/usr/local
4674 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4675 if test ${sysconfdir} = '${prefix}/etc'; then
4676 astetcdir=/etc/asterisk
4678 if test ${mandir} = '${prefix}/man'; then
4679 astmandir=/usr/share/man
4682 CPPFLAGS=-I/usr/local/include
4683 LDFLAGS=-L/usr/local/lib
4686 ac_default_prefix=/usr/local
4687 if test ${prefix} = 'NONE'; then
4688 astmoddir='/Library/Application Support/Asterisk/Modules'
4689 astvarlibdir='/Library/Application Support/Asterisk'
4690 astlogdir=/Library/Logs/Asterisk
4691 astvarrundir='/Library/Application Support/Asterisk/Run'
4694 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4697 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
4701 if test ${prefix} = 'NONE'; then
4702 astetcdir=/var/etc/asterisk
4703 astsbindir=/opt/asterisk/sbin