2 # From configure.ac Revision: 418035 .
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
673 AST_NO_STRICT_OVERFLOW
676 AST_DECLARATION_AFTER_STATEMENT
679 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
680 PBX_PTHREAD_RWLOCK_INITIALIZER
742 SRTP_SHUTDOWN_INCLUDE
762 SPEEX_PREPROCESS_INCLUDE
797 PBX_PRI_REVERSE_CHARGE
798 PRI_REVERSE_CHARGE_DIR
799 PRI_REVERSE_CHARGE_INCLUDE
800 PRI_REVERSE_CHARGE_LIB
801 PBX_PRI_SERVICE_MESSAGES
802 PRI_SERVICE_MESSAGES_DIR
803 PRI_SERVICE_MESSAGES_INCLUDE
804 PRI_SERVICE_MESSAGES_LIB
807 PRI_PROG_W_CAUSE_INCLUDE
809 PBX_PRI_INBANDDISCONNECT
810 PRI_INBANDDISCONNECT_DIR
811 PRI_INBANDDISCONNECT_INCLUDE
812 PRI_INBANDDISCONNECT_LIB
815 PRI_SETUP_KEYPAD_INCLUDE
817 PBX_PRI_CALL_REROUTING
818 PRI_CALL_REROUTING_DIR
819 PRI_CALL_REROUTING_INCLUDE
820 PRI_CALL_REROUTING_LIB
823 PRI_CALL_HOLD_INCLUDE
831 PRI_HANGUP_FIX_INCLUDE
843 PRI_AOC_EVENTS_INCLUDE
847 PRI_CALL_WAITING_INCLUDE
859 PRI_DISPLAY_TEXT_INCLUDE
865 PBX_PRI_DATETIME_SEND
866 PRI_DATETIME_SEND_DIR
867 PRI_DATETIME_SEND_INCLUDE
868 PRI_DATETIME_SEND_LIB
869 PBX_PRI_L2_PERSISTENCE
870 PRI_L2_PERSISTENCE_DIR
871 PRI_L2_PERSISTENCE_INCLUDE
872 PRI_L2_PERSISTENCE_LIB
873 PBX_PRI_SETUP_ACK_INBAND
874 PRI_SETUP_ACK_INBAND_DIR
875 PRI_SETUP_ACK_INBAND_INCLUDE
876 PRI_SETUP_ACK_INBAND_LIB
885 PBX_PJSIP_REPLACE_MEDIA_STREAM
886 PJSIP_REPLACE_MEDIA_STREAM_DIR
887 PJSIP_REPLACE_MEDIA_STREAM_INCLUDE
888 PJSIP_REPLACE_MEDIA_STREAM_LIB
889 PBX_PJ_TRANSACTION_GRP_LOCK
890 PJ_TRANSACTION_GRP_LOCK_DIR
891 PJ_TRANSACTION_GRP_LOCK_INCLUDE
892 PJ_TRANSACTION_GRP_LOCK_LIB
963 LIBXSLT_CLEANUP_INCLUDE
1067 OPENSSL_SRTP_INCLUDE
1081 PBX_COROSYNC_CFG_STATE_TRACK
1082 COROSYNC_CFG_STATE_TRACK_DIR
1083 COROSYNC_CFG_STATE_TRACK_INCLUDE
1084 COROSYNC_CFG_STATE_TRACK_LIB
1235 program_transform_name
1248 enable_option_checking
1331 enable_internal_poll
1335 ac_precious_vars='build_alias
1363 # Initialize some variables set by options.
1365 ac_init_version=false
1366 ac_unrecognized_opts=
1367 ac_unrecognized_sep=
1368 # The variables have the same names as the options, with
1369 # dashes changed to underlines.
1370 cache_file=/dev/null
1377 program_transform_name=s,x,x,
1385 # Installation directory options.
1386 # These are left unexpanded so users can "make install exec_prefix=/foo"
1387 # and all the variables that are supposed to be based on exec_prefix
1388 # by default will actually change.
1389 # Use braces instead of parens because sh, perl, etc. also accept them.
1390 # (The list follows the same order as the GNU Coding Standards.)
1391 bindir='${exec_prefix}/bin'
1392 sbindir='${exec_prefix}/sbin'
1393 libexecdir='${exec_prefix}/libexec'
1394 datarootdir='${prefix}/share'
1395 datadir='${datarootdir}'
1396 sysconfdir='${prefix}/etc'
1397 sharedstatedir='${prefix}/com'
1398 localstatedir='${prefix}/var'
1399 includedir='${prefix}/include'
1400 oldincludedir='/usr/include'
1401 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1402 infodir='${datarootdir}/info'
1407 libdir='${exec_prefix}/lib'
1408 localedir='${datarootdir}/locale'
1409 mandir='${datarootdir}/man'
1415 # If the previous option needs an argument, assign it.
1416 if test -n "$ac_prev"; then
1417 eval $ac_prev=\$ac_option
1423 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1428 # Accept the important Cygnus configure options, so we can diagnose typos.
1430 case $ac_dashdash$ac_option in
1434 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1436 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1437 bindir=$ac_optarg ;;
1439 -build | --build | --buil | --bui | --bu)
1440 ac_prev=build_alias ;;
1441 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1442 build_alias=$ac_optarg ;;
1444 -cache-file | --cache-file | --cache-fil | --cache-fi \
1445 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1446 ac_prev=cache_file ;;
1447 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1448 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1449 cache_file=$ac_optarg ;;
1451 --config-cache | -C)
1452 cache_file=config.cache ;;
1454 -datadir | --datadir | --datadi | --datad)
1456 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1457 datadir=$ac_optarg ;;
1459 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1460 | --dataroo | --dataro | --datar)
1461 ac_prev=datarootdir ;;
1462 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1463 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1464 datarootdir=$ac_optarg ;;
1466 -disable-* | --disable-*)
1467 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1468 # Reject names that are not valid shell variable names.
1469 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1470 as_fn_error $? "invalid feature name: $ac_useropt"
1471 ac_useropt_orig=$ac_useropt
1472 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1473 case $ac_user_opts in
1475 "enable_$ac_useropt"
1477 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1478 ac_unrecognized_sep=', ';;
1480 eval enable_$ac_useropt=no ;;
1482 -docdir | --docdir | --docdi | --doc | --do)
1484 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1485 docdir=$ac_optarg ;;
1487 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1489 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1490 dvidir=$ac_optarg ;;
1492 -enable-* | --enable-*)
1493 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1494 # Reject names that are not valid shell variable names.
1495 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1496 as_fn_error $? "invalid feature name: $ac_useropt"
1497 ac_useropt_orig=$ac_useropt
1498 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1499 case $ac_user_opts in
1501 "enable_$ac_useropt"
1503 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1504 ac_unrecognized_sep=', ';;
1506 eval enable_$ac_useropt=\$ac_optarg ;;
1508 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1509 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1510 | --exec | --exe | --ex)
1511 ac_prev=exec_prefix ;;
1512 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1513 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1514 | --exec=* | --exe=* | --ex=*)
1515 exec_prefix=$ac_optarg ;;
1517 -gas | --gas | --ga | --g)
1518 # Obsolete; use --with-gas.
1521 -help | --help | --hel | --he | -h)
1522 ac_init_help=long ;;
1523 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1524 ac_init_help=recursive ;;
1525 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1526 ac_init_help=short ;;
1528 -host | --host | --hos | --ho)
1529 ac_prev=host_alias ;;
1530 -host=* | --host=* | --hos=* | --ho=*)
1531 host_alias=$ac_optarg ;;
1533 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1535 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1537 htmldir=$ac_optarg ;;
1539 -includedir | --includedir | --includedi | --included | --include \
1540 | --includ | --inclu | --incl | --inc)
1541 ac_prev=includedir ;;
1542 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1543 | --includ=* | --inclu=* | --incl=* | --inc=*)
1544 includedir=$ac_optarg ;;
1546 -infodir | --infodir | --infodi | --infod | --info | --inf)
1548 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1549 infodir=$ac_optarg ;;
1551 -libdir | --libdir | --libdi | --libd)
1553 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1554 libdir=$ac_optarg ;;
1556 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1557 | --libexe | --libex | --libe)
1558 ac_prev=libexecdir ;;
1559 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1560 | --libexe=* | --libex=* | --libe=*)
1561 libexecdir=$ac_optarg ;;
1563 -localedir | --localedir | --localedi | --localed | --locale)
1564 ac_prev=localedir ;;
1565 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1566 localedir=$ac_optarg ;;
1568 -localstatedir | --localstatedir | --localstatedi | --localstated \
1569 | --localstate | --localstat | --localsta | --localst | --locals)
1570 ac_prev=localstatedir ;;
1571 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1572 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1573 localstatedir=$ac_optarg ;;
1575 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1577 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1578 mandir=$ac_optarg ;;
1580 -nfp | --nfp | --nf)
1581 # Obsolete; use --without-fp.
1584 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1585 | --no-cr | --no-c | -n)
1588 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1589 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1592 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1593 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1594 | --oldin | --oldi | --old | --ol | --o)
1595 ac_prev=oldincludedir ;;
1596 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1597 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1598 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1599 oldincludedir=$ac_optarg ;;
1601 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1603 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1604 prefix=$ac_optarg ;;
1606 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1607 | --program-pre | --program-pr | --program-p)
1608 ac_prev=program_prefix ;;
1609 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1610 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1611 program_prefix=$ac_optarg ;;
1613 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1614 | --program-suf | --program-su | --program-s)
1615 ac_prev=program_suffix ;;
1616 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1617 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1618 program_suffix=$ac_optarg ;;
1620 -program-transform-name | --program-transform-name \
1621 | --program-transform-nam | --program-transform-na \
1622 | --program-transform-n | --program-transform- \
1623 | --program-transform | --program-transfor \
1624 | --program-transfo | --program-transf \
1625 | --program-trans | --program-tran \
1626 | --progr-tra | --program-tr | --program-t)
1627 ac_prev=program_transform_name ;;
1628 -program-transform-name=* | --program-transform-name=* \
1629 | --program-transform-nam=* | --program-transform-na=* \
1630 | --program-transform-n=* | --program-transform-=* \
1631 | --program-transform=* | --program-transfor=* \
1632 | --program-transfo=* | --program-transf=* \
1633 | --program-trans=* | --program-tran=* \
1634 | --progr-tra=* | --program-tr=* | --program-t=*)
1635 program_transform_name=$ac_optarg ;;
1637 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1639 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1640 pdfdir=$ac_optarg ;;
1642 -psdir | --psdir | --psdi | --psd | --ps)
1644 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1647 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1648 | -silent | --silent | --silen | --sile | --sil)
1651 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1653 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1655 sbindir=$ac_optarg ;;
1657 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1658 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1659 | --sharedst | --shareds | --shared | --share | --shar \
1661 ac_prev=sharedstatedir ;;
1662 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1663 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1664 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1666 sharedstatedir=$ac_optarg ;;
1668 -site | --site | --sit)
1670 -site=* | --site=* | --sit=*)
1673 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1675 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1676 srcdir=$ac_optarg ;;
1678 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1679 | --syscon | --sysco | --sysc | --sys | --sy)
1680 ac_prev=sysconfdir ;;
1681 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1682 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1683 sysconfdir=$ac_optarg ;;
1685 -target | --target | --targe | --targ | --tar | --ta | --t)
1686 ac_prev=target_alias ;;
1687 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1688 target_alias=$ac_optarg ;;
1690 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1693 -version | --version | --versio | --versi | --vers | -V)
1694 ac_init_version=: ;;
1697 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1698 # Reject names that are not valid shell variable names.
1699 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1700 as_fn_error $? "invalid package name: $ac_useropt"
1701 ac_useropt_orig=$ac_useropt
1702 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1703 case $ac_user_opts in
1707 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1708 ac_unrecognized_sep=', ';;
1710 eval with_$ac_useropt=\$ac_optarg ;;
1712 -without-* | --without-*)
1713 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1714 # Reject names that are not valid shell variable names.
1715 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1716 as_fn_error $? "invalid package name: $ac_useropt"
1717 ac_useropt_orig=$ac_useropt
1718 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1719 case $ac_user_opts in
1723 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1724 ac_unrecognized_sep=', ';;
1726 eval with_$ac_useropt=no ;;
1729 # Obsolete; use --with-x.
1732 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1733 | --x-incl | --x-inc | --x-in | --x-i)
1734 ac_prev=x_includes ;;
1735 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1736 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1737 x_includes=$ac_optarg ;;
1739 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1740 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1741 ac_prev=x_libraries ;;
1742 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1743 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1744 x_libraries=$ac_optarg ;;
1746 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1747 Try \`$0 --help' for more information"
1751 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1752 # Reject names that are not valid shell variable names.
1753 case $ac_envvar in #(
1754 '' | [0-9]* | *[!_$as_cr_alnum]* )
1755 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1757 eval $ac_envvar=\$ac_optarg
1758 export $ac_envvar ;;
1761 # FIXME: should be removed in autoconf 3.0.
1762 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1763 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1764 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1765 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1771 if test -n "$ac_prev"; then
1772 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1773 as_fn_error $? "missing argument to $ac_option"
1776 if test -n "$ac_unrecognized_opts"; then
1777 case $enable_option_checking in
1779 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1780 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1784 # Check all directory arguments for consistency.
1785 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1786 datadir sysconfdir sharedstatedir localstatedir includedir \
1787 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1788 libdir localedir mandir
1790 eval ac_val=\$$ac_var
1791 # Remove trailing slashes.
1794 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1795 eval $ac_var=\$ac_val;;
1797 # Be sure to have absolute directory names.
1799 [\\/$]* | ?:[\\/]* ) continue;;
1800 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1802 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1805 # There might be people who depend on the old broken behavior: `$host'
1806 # used to hold the argument of --host etc.
1807 # FIXME: To remove some day.
1810 target=$target_alias
1812 # FIXME: To remove some day.
1813 if test "x$host_alias" != x; then
1814 if test "x$build_alias" = x; then
1815 cross_compiling=maybe
1816 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1817 If a cross compiler is detected then cross compile mode will be used" >&2
1818 elif test "x$build_alias" != "x$host_alias"; then
1824 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1826 test "$silent" = yes && exec 6>/dev/null
1829 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1830 ac_ls_di=`ls -di .` &&
1831 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1832 as_fn_error $? "working directory cannot be determined"
1833 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1834 as_fn_error $? "pwd does not report name of working directory"
1837 # Find the source files, if location was not specified.
1838 if test -z "$srcdir"; then
1839 ac_srcdir_defaulted=yes
1840 # Try the directory containing this script, then the parent directory.
1841 ac_confdir=`$as_dirname -- "$as_myself" ||
1842 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1843 X"$as_myself" : 'X\(//\)[^/]' \| \
1844 X"$as_myself" : 'X\(//\)$' \| \
1845 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1846 $as_echo X"$as_myself" |
1847 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1865 if test ! -r "$srcdir/$ac_unique_file"; then
1869 ac_srcdir_defaulted=no
1871 if test ! -r "$srcdir/$ac_unique_file"; then
1872 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1873 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1875 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1877 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1879 # When building in place, set srcdir=.
1880 if test "$ac_abs_confdir" = "$ac_pwd"; then
1883 # Remove unnecessary trailing slashes from srcdir.
1884 # Double slashes in file names in object file debugging info
1885 # mess up M-x gdb in Emacs.
1887 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1889 for ac_var in $ac_precious_vars; do
1890 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1891 eval ac_env_${ac_var}_value=\$${ac_var}
1892 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1893 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1897 # Report the --help message.
1899 if test "$ac_init_help" = "long"; then
1900 # Omit some internal or obsolete options to make the list less imposing.
1901 # This message is too long to be a string in the A/UX 3.1 sh.
1903 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1905 Usage: $0 [OPTION]... [VAR=VALUE]...
1907 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1908 VAR=VALUE. See below for descriptions of some of the useful variables.
1910 Defaults for the options are specified in brackets.
1913 -h, --help display this help and exit
1914 --help=short display options specific to this package
1915 --help=recursive display the short help of all the included packages
1916 -V, --version display version information and exit
1917 -q, --quiet, --silent do not print \`checking ...' messages
1918 --cache-file=FILE cache test results in FILE [disabled]
1919 -C, --config-cache alias for \`--cache-file=config.cache'
1920 -n, --no-create do not create output files
1921 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1923 Installation directories:
1924 --prefix=PREFIX install architecture-independent files in PREFIX
1925 [$ac_default_prefix]
1926 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1929 By default, \`make install' will install all the files in
1930 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1931 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1932 for instance \`--prefix=\$HOME'.
1934 For better control, use the options below.
1936 Fine tuning of the installation directories:
1937 --bindir=DIR user executables [EPREFIX/bin]
1938 --sbindir=DIR system admin executables [EPREFIX/sbin]
1939 --libexecdir=DIR program executables [EPREFIX/libexec]
1940 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1941 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1942 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1943 --libdir=DIR object code libraries [EPREFIX/lib]
1944 --includedir=DIR C header files [PREFIX/include]
1945 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1946 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1947 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1948 --infodir=DIR info documentation [DATAROOTDIR/info]
1949 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1950 --mandir=DIR man documentation [DATAROOTDIR/man]
1951 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1952 --htmldir=DIR html documentation [DOCDIR]
1953 --dvidir=DIR dvi documentation [DOCDIR]
1954 --pdfdir=DIR pdf documentation [DOCDIR]
1955 --psdir=DIR ps documentation [DOCDIR]
1961 --build=BUILD configure for building on BUILD [guessed]
1962 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1966 if test -n "$ac_init_help"; then
1967 case $ac_init_help in
1968 short | recursive ) echo "Configuration of asterisk trunk:";;
1973 --disable-option-checking ignore unrecognized --enable/--with options
1974 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1975 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1976 --enable-dev-mode Turn on developer mode
1977 --enable-coverage Turn on code coverage tracking (for gcov)
1978 --disable-xmldoc Explicitly disable XML documentation
1979 --disable-largefile omit support for large files
1980 --enable-internal-poll Use Asterisk's poll implementation
1981 --disable-asteriskssl Disable Asterisk's SSL wrapper library
1982 --disable-rpath Disables rpath linker option checking
1985 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1986 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1987 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1988 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1989 --with-bfd=PATH use Debug symbol decoding files in PATH
1990 --with-execinfo=PATH use Stack Backtrace files in PATH
1991 --with-bluetooth=PATH use Bluetooth files in PATH
1992 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1993 --with-cpg=PATH use Corosync files in PATH
1994 --with-curses=PATH use curses files in PATH
1995 --with-crypt=PATH use password and data encryption files in PATH
1996 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1997 --with-dahdi=PATH use DAHDI files in PATH
1998 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1999 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
2001 --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
2003 --with-gtk2=PATH use gtk2 files in PATH
2004 --with-gmime=PATH use GMime files in PATH
2005 --with-h323=PATH use OpenH323 files in PATH
2006 --with-hoard=PATH use Hoard Memory Allocator files in PATH
2007 --with-ical=PATH use iCal files in PATH
2008 --with-iconv=PATH use Iconv files in PATH
2009 --with-iksemel=PATH use Iksemel Jabber files in PATH
2010 --with-imap=PATH use UW IMAP Toolkit files in PATH
2011 --with-inotify=PATH use inotify support files in PATH
2012 --with-iodbc=PATH use iODBC files in PATH
2013 --with-isdnnet=PATH use ISDN4Linux files in PATH
2014 --with-jack=PATH use Jack Audio Connection Kit files in PATH
2015 --with-jansson=PATH use Jansson JSON library files in PATH
2016 --with-uriparser=PATH use uriparser library files in PATH
2017 --with-kqueue=PATH use kqueue support files in PATH
2018 --with-ldap=PATH use OpenLDAP files in PATH
2019 --with-libcurl=DIR look for the curl library in DIR
2020 --with-libedit=PATH use NetBSD Editline library files in PATH, use
2021 'internal' Editline otherwise
2022 --with-libxml2=PATH use LibXML2 files in PATH
2023 --with-libxslt=PATH use LibXSLT files in PATH
2024 --with-ltdl=PATH use libtool files in PATH
2025 --with-lua=PATH use Lua files in PATH
2026 --with-misdn=PATH use mISDN user files in PATH
2027 --with-mysqlclient=PATH use MySQL client files in PATH
2028 --with-nbs=PATH use Network Broadcast Sound files in PATH
2029 --with-ncurses=PATH use ncurses files in PATH
2030 --with-neon=PATH use neon files in PATH
2031 --with-neon29=PATH use neon29 files in PATH
2032 --with-netsnmp=PATH use Net-SNMP files in PATH
2033 --with-newt=PATH use newt files in PATH
2034 --with-ogg=PATH use OGG files in PATH
2035 --with-openr2=PATH use MFR2 files in PATH
2036 --with-osptk=PATH use OSP Toolkit files in PATH
2037 --with-oss=PATH use Open Sound System files in PATH
2038 --with-postgres=PATH use PostgreSQL files in PATH
2039 --with-pjproject=PATH use PJPROJECT files in PATH
2040 --with-popt=PATH use popt files in PATH
2041 --with-portaudio=PATH use PortAudio files in PATH
2042 --with-pri=PATH use ISDN PRI files in PATH
2043 --with-pwlib=PATH use PWlib files in PATH
2044 --with-radius=PATH use Radius Client files in PATH
2045 --with-resample=PATH use LIBRESAMPLE files in PATH
2046 --with-sdl=PATH use Sdl files in PATH
2047 --with-SDL_image=PATH use Sdl Image files in PATH
2048 --with-sounds-cache=PATH
2049 use cached sound tarfiles in PATH
2050 --with-spandsp=PATH use SPANDSP files in PATH
2051 --with-ss7=PATH use ISDN SS7 files in PATH
2052 --with-speex=PATH use Speex files in PATH
2053 --with-speex=PATH use Speex preprocess routines files in PATH
2054 --with-speexdsp=PATH use SpeexDSP files in PATH
2055 --with-sqlite=PATH use SQLite files in PATH
2056 --with-sqlite3=PATH use SQLite files in PATH
2057 --with-srtp=PATH use Secure RTP files in PATH
2058 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
2059 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
2060 --with-tds=PATH use FreeTDS files in PATH
2061 --with-termcap=PATH use Termcap files in PATH
2062 --with-timerfd=PATH use timerfd files in PATH
2063 --with-tinfo=PATH use Term Info files in PATH
2064 --with-tonezone=PATH use tonezone files in PATH
2065 --with-unixodbc=PATH use unixODBC files in PATH
2066 --with-vorbis=PATH use Vorbis files in PATH
2067 --with-vpb=PATH use Voicetronix API files in PATH
2068 --with-x11=PATH use X11 files in PATH
2069 --with-z=PATH use zlib compression files in PATH
2071 Some influential environment variables:
2072 CC C compiler command
2073 CFLAGS C compiler flags
2074 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2075 nonstandard directory <lib dir>
2076 LIBS libraries to pass to the linker, e.g. -l<library>
2077 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2078 you have headers in a nonstandard directory <include dir>
2080 CXX C++ compiler command
2081 CXXFLAGS C++ compiler flags
2082 CXXCPP C++ preprocessor
2083 PKG_CONFIG path to pkg-config utility
2085 directories to add to pkg-config's search path
2087 path overriding pkg-config's built-in search path
2088 ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
2089 ILBC_LIBS linker flags for ILBC, overriding pkg-config
2091 C compiler flags for LIBEDIT, overriding pkg-config
2093 linker flags for LIBEDIT, overriding pkg-config
2095 C compiler flags for PJPROJECT, overriding pkg-config
2097 linker flags for PJPROJECT, overriding pkg-config
2099 C compiler flags for GMIME, overriding pkg-config
2100 GMIME_LIBS linker flags for GMIME, overriding pkg-config
2101 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2102 GTK2_LIBS linker flags for GTK2, overriding pkg-config
2104 Use these variables to override the choices made by `configure' or to help
2105 it to find libraries and programs with nonstandard names/locations.
2107 Report bugs to <https://issues.asterisk.org>.
2112 if test "$ac_init_help" = "recursive"; then
2113 # If there are subdirs, report their specific --help.
2114 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2115 test -d "$ac_dir" ||
2116 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2121 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2123 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2124 # A ".." for each directory in $ac_dir_suffix.
2125 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2126 case $ac_top_builddir_sub in
2127 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2128 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2131 ac_abs_top_builddir=$ac_pwd
2132 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2133 # for backward compatibility:
2134 ac_top_builddir=$ac_top_build_prefix
2137 .) # We are building in place.
2139 ac_top_srcdir=$ac_top_builddir_sub
2140 ac_abs_top_srcdir=$ac_pwd ;;
2141 [\\/]* | ?:[\\/]* ) # Absolute name.
2142 ac_srcdir=$srcdir$ac_dir_suffix;
2143 ac_top_srcdir=$srcdir
2144 ac_abs_top_srcdir=$srcdir ;;
2146 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2147 ac_top_srcdir=$ac_top_build_prefix$srcdir
2148 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2150 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2152 cd "$ac_dir" || { ac_status=$?; continue; }
2153 # Check for guested configure.
2154 if test -f "$ac_srcdir/configure.gnu"; then
2156 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2157 elif test -f "$ac_srcdir/configure"; then
2159 $SHELL "$ac_srcdir/configure" --help=recursive
2161 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2163 cd "$ac_pwd" || { ac_status=$?; break; }
2167 test -n "$ac_init_help" && exit $ac_status
2168 if $ac_init_version; then
2170 asterisk configure trunk
2171 generated by GNU Autoconf 2.68
2173 Copyright (C) 2010 Free Software Foundation, Inc.
2174 This configure script is free software; the Free Software Foundation
2175 gives unlimited permission to copy, distribute and modify it.
2182 ## ------------------------ ##
2183 ## Autoconf initialization. ##
2184 ## ------------------------ ##
2186 # ac_fn_c_try_compile LINENO
2187 # --------------------------
2188 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2189 ac_fn_c_try_compile ()
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 rm -f conftest.$ac_objext
2193 if { { ac_try="$ac_compile"
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_compile") 2>conftest.err
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } && {
2209 test -z "$ac_c_werror_flag" ||
2210 test ! -s conftest.err
2211 } && test -s conftest.$ac_objext; then :
2214 $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2219 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220 as_fn_set_status $ac_retval
2222 } # ac_fn_c_try_compile
2224 # ac_fn_c_try_cpp LINENO
2225 # ----------------------
2226 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2230 if { { ac_try="$ac_cpp conftest.$ac_ext"
2232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2233 *) ac_try_echo=$ac_try;;
2235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2236 $as_echo "$ac_try_echo"; } >&5
2237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2239 if test -s conftest.err; then
2240 grep -v '^ *+' conftest.err >conftest.er1
2241 cat conftest.er1 >&5
2242 mv -f conftest.er1 conftest.err
2244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2245 test $ac_status = 0; } > conftest.i && {
2246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2247 test ! -s conftest.err
2251 $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257 as_fn_set_status $ac_retval
2261 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2262 # -------------------------------------------------------
2263 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2264 # the include files in INCLUDES and setting the cache variable VAR
2266 ac_fn_c_check_header_mongrel ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 if eval \${$3+:} false; then :
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2271 $as_echo_n "checking for $2... " >&6; }
2272 if eval \${$3+:} false; then :
2273 $as_echo_n "(cached) " >&6
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2277 $as_echo "$ac_res" >&6; }
2279 # Is the header compilable?
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2281 $as_echo_n "checking $2 usability... " >&6; }
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2287 if ac_fn_c_try_compile "$LINENO"; then :
2288 ac_header_compiler=yes
2290 ac_header_compiler=no
2292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2294 $as_echo "$ac_header_compiler" >&6; }
2296 # Is the header present?
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2298 $as_echo_n "checking $2 presence... " >&6; }
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300 /* end confdefs.h. */
2303 if ac_fn_c_try_cpp "$LINENO"; then :
2304 ac_header_preproc=yes
2306 ac_header_preproc=no
2308 rm -f conftest.err conftest.i conftest.$ac_ext
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2310 $as_echo "$ac_header_preproc" >&6; }
2312 # So? What about this header?
2313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2316 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2318 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2322 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2324 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2326 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2328 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2330 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2331 ( $as_echo "## ------------------------------------------ ##
2332 ## Report this to https://issues.asterisk.org ##
2333 ## ------------------------------------------ ##"
2334 ) | sed "s/^/$as_me: WARNING: /" >&2
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2338 $as_echo_n "checking for $2... " >&6; }
2339 if eval \${$3+:} false; then :
2340 $as_echo_n "(cached) " >&6
2342 eval "$3=\$ac_header_compiler"
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2348 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350 } # ac_fn_c_check_header_mongrel
2352 # ac_fn_c_try_run LINENO
2353 # ----------------------
2354 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2355 # that executables *can* be run.
2358 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359 if { { ac_try="$ac_link"
2361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2362 *) ac_try_echo=$ac_try;;
2364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2365 $as_echo "$ac_try_echo"; } >&5
2366 (eval "$ac_link") 2>&5
2368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2370 { { case "(($ac_try" in
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2375 $as_echo "$ac_try_echo"; } >&5
2376 (eval "$ac_try") 2>&5
2378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; }; }; then :
2382 $as_echo "$as_me: program exited with status $ac_status" >&5
2383 $as_echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2386 ac_retval=$ac_status
2388 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2389 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2390 as_fn_set_status $ac_retval
2394 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2395 # -------------------------------------------------------
2396 # Tests whether HEADER exists and can be compiled using the include files in
2397 # INCLUDES, setting the cache variable VAR accordingly.
2398 ac_fn_c_check_header_compile ()
2400 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2402 $as_echo_n "checking for $2... " >&6; }
2403 if eval \${$3+:} false; then :
2404 $as_echo_n "(cached) " >&6
2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2407 /* end confdefs.h. */
2411 if ac_fn_c_try_compile "$LINENO"; then :
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2420 $as_echo "$ac_res" >&6; }
2421 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2423 } # ac_fn_c_check_header_compile
2425 # ac_fn_cxx_try_compile LINENO
2426 # ----------------------------
2427 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2428 ac_fn_cxx_try_compile ()
2430 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2431 rm -f conftest.$ac_objext
2432 if { { ac_try="$ac_compile"
2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2435 *) ac_try_echo=$ac_try;;
2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2438 $as_echo "$ac_try_echo"; } >&5
2439 (eval "$ac_compile") 2>conftest.err
2441 if test -s conftest.err; then
2442 grep -v '^ *+' conftest.err >conftest.er1
2443 cat conftest.er1 >&5
2444 mv -f conftest.er1 conftest.err
2446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447 test $ac_status = 0; } && {
2448 test -z "$ac_cxx_werror_flag" ||
2449 test ! -s conftest.err
2450 } && test -s conftest.$ac_objext; then :
2453 $as_echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2458 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2459 as_fn_set_status $ac_retval
2461 } # ac_fn_cxx_try_compile
2463 # ac_fn_cxx_try_cpp LINENO
2464 # ------------------------
2465 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2466 ac_fn_cxx_try_cpp ()
2468 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2469 if { { ac_try="$ac_cpp conftest.$ac_ext"
2471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2472 *) ac_try_echo=$ac_try;;
2474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2475 $as_echo "$ac_try_echo"; } >&5
2476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2478 if test -s conftest.err; then
2479 grep -v '^ *+' conftest.err >conftest.er1
2480 cat conftest.er1 >&5
2481 mv -f conftest.er1 conftest.err
2483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484 test $ac_status = 0; } > conftest.i && {
2485 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2486 test ! -s conftest.err
2490 $as_echo "$as_me: failed program was:" >&5
2491 sed 's/^/| /' conftest.$ac_ext >&5
2495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496 as_fn_set_status $ac_retval
2498 } # ac_fn_cxx_try_cpp
2500 # ac_fn_c_try_link LINENO
2501 # -----------------------
2502 # Try to link conftest.$ac_ext, and return whether this succeeded.
2505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2506 rm -f conftest.$ac_objext conftest$ac_exeext
2507 if { { ac_try="$ac_link"
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2513 $as_echo "$ac_try_echo"; } >&5
2514 (eval "$ac_link") 2>conftest.err
2516 if test -s conftest.err; then
2517 grep -v '^ *+' conftest.err >conftest.er1
2518 cat conftest.er1 >&5
2519 mv -f conftest.er1 conftest.err
2521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2522 test $ac_status = 0; } && {
2523 test -z "$ac_c_werror_flag" ||
2524 test ! -s conftest.err
2525 } && test -s conftest$ac_exeext && {
2526 test "$cross_compiling" = yes ||
2527 $as_test_x conftest$ac_exeext
2531 $as_echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2536 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2537 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2538 # interfere with the next link command; also delete a directory that is
2539 # left behind by Apple's compiler. We do this before executing the actions.
2540 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2542 as_fn_set_status $ac_retval
2544 } # ac_fn_c_try_link
2546 # ac_fn_c_check_func LINENO FUNC VAR
2547 # ----------------------------------
2548 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2549 ac_fn_c_check_func ()
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553 $as_echo_n "checking for $2... " >&6; }
2554 if eval \${$3+:} false; then :
2555 $as_echo_n "(cached) " >&6
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2559 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2561 #define $2 innocuous_$2
2563 /* System header to define __stub macros and hopefully few prototypes,
2564 which can conflict with char $2 (); below.
2565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2566 <limits.h> exists even on freestanding compilers. */
2569 # include <limits.h>
2571 # include <assert.h>
2576 /* Override any GCC internal prototype to avoid an error.
2577 Use char because int might match the return type of a GCC
2578 builtin and then its argument prototype would still apply. */
2583 /* The GNU C library defines this for functions which it implements
2584 to always fail with ENOSYS. Some functions are actually named
2585 something starting with __ and the normal name is an alias. */
2586 #if defined __stub_$2 || defined __stub___$2
2598 if ac_fn_c_try_link "$LINENO"; then :
2603 rm -f core conftest.err conftest.$ac_objext \
2604 conftest$ac_exeext conftest.$ac_ext
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2608 $as_echo "$ac_res" >&6; }
2609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2611 } # ac_fn_c_check_func
2613 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2614 # -------------------------------------------
2615 # Tests whether TYPE exists after having included INCLUDES, setting cache
2616 # variable VAR accordingly.
2617 ac_fn_c_check_type ()
2619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2621 $as_echo_n "checking for $2... " >&6; }
2622 if eval \${$3+:} false; then :
2623 $as_echo_n "(cached) " >&6
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2638 if ac_fn_c_try_compile "$LINENO"; then :
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2651 if ac_fn_c_try_compile "$LINENO"; then :
2656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2662 $as_echo "$ac_res" >&6; }
2663 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2665 } # ac_fn_c_check_type
2667 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2668 # ----------------------------------------------------
2669 # Tries to find if the field MEMBER exists in type AGGR, after including
2670 # INCLUDES, setting cache variable VAR accordingly.
2671 ac_fn_c_check_member ()
2673 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2675 $as_echo_n "checking for $2.$3... " >&6; }
2676 if eval \${$4+:} false; then :
2677 $as_echo_n "(cached) " >&6
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2692 if ac_fn_c_try_compile "$LINENO"; then :
2695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2696 /* end confdefs.h. */
2702 if (sizeof ac_aggr.$3)
2708 if ac_fn_c_try_compile "$LINENO"; then :
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2719 $as_echo "$ac_res" >&6; }
2720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2722 } # ac_fn_c_check_member
2724 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2725 # --------------------------------------------
2726 # Tries to find the compile-time value of EXPR in a program that includes
2727 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2729 ac_fn_c_compute_int ()
2731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2732 if test "$cross_compiling" = yes; then
2733 # Depending upon the size, compute the lo and hi bounds.
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2740 static int test_array [1 - 2 * !(($2) >= 0)];
2747 if ac_fn_c_try_compile "$LINENO"; then :
2750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2751 /* end confdefs.h. */
2756 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2763 if ac_fn_c_try_compile "$LINENO"; then :
2764 ac_hi=$ac_mid; break
2766 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2767 if test $ac_lo -le $ac_mid; then
2771 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2777 /* end confdefs.h. */
2782 static int test_array [1 - 2 * !(($2) < 0)];
2789 if ac_fn_c_try_compile "$LINENO"; then :
2792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2793 /* end confdefs.h. */
2798 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2805 if ac_fn_c_try_compile "$LINENO"; then :
2806 ac_lo=$ac_mid; break
2808 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2809 if test $ac_mid -le $ac_hi; then
2813 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2823 # Binary search between lo and hi bounds.
2824 while test "x$ac_lo" != "x$ac_hi"; do
2825 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2827 /* end confdefs.h. */
2832 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2839 if ac_fn_c_try_compile "$LINENO"; then :
2842 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2847 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2852 /* end confdefs.h. */
2854 static long int longval () { return $2; }
2855 static unsigned long int ulongval () { return $2; }
2862 FILE *f = fopen ("conftest.val", "w");
2867 long int i = longval ();
2870 fprintf (f, "%ld", i);
2874 unsigned long int i = ulongval ();
2877 fprintf (f, "%lu", i);
2879 /* Do not output a trailing newline, as this causes \r\n confusion
2880 on some platforms. */
2881 return ferror (f) || fclose (f) != 0;
2887 if ac_fn_c_try_run "$LINENO"; then :
2888 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2892 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2893 conftest.$ac_objext conftest.beam conftest.$ac_ext
2897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2898 as_fn_set_status $ac_retval
2900 } # ac_fn_c_compute_int
2902 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2903 # ---------------------------------------------------------
2904 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2905 # the include files in INCLUDES and setting the cache variable VAR
2907 ac_fn_cxx_check_header_mongrel ()
2909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2910 if eval \${$3+:} false; then :
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2912 $as_echo_n "checking for $2... " >&6; }
2913 if eval \${$3+:} false; then :
2914 $as_echo_n "(cached) " >&6
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2918 $as_echo "$ac_res" >&6; }
2920 # Is the header compilable?
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2922 $as_echo_n "checking $2 usability... " >&6; }
2923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2924 /* end confdefs.h. */
2928 if ac_fn_cxx_try_compile "$LINENO"; then :
2929 ac_header_compiler=yes
2931 ac_header_compiler=no
2933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2935 $as_echo "$ac_header_compiler" >&6; }
2937 # Is the header present?
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2939 $as_echo_n "checking $2 presence... " >&6; }
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2944 if ac_fn_cxx_try_cpp "$LINENO"; then :
2945 ac_header_preproc=yes
2947 ac_header_preproc=no
2949 rm -f conftest.err conftest.i conftest.$ac_ext
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2951 $as_echo "$ac_header_preproc" >&6; }
2953 # So? What about this header?
2954 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2957 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2959 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2963 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2965 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2967 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2969 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2972 ( $as_echo "## ------------------------------------------ ##
2973 ## Report this to https://issues.asterisk.org ##
2974 ## ------------------------------------------ ##"
2975 ) | sed "s/^/$as_me: WARNING: /" >&2
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2979 $as_echo_n "checking for $2... " >&6; }
2980 if eval \${$3+:} false; then :
2981 $as_echo_n "(cached) " >&6
2983 eval "$3=\$ac_header_compiler"
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2987 $as_echo "$ac_res" >&6; }
2989 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2991 } # ac_fn_cxx_check_header_mongrel
2993 # ac_fn_cxx_try_link LINENO
2994 # -------------------------
2995 # Try to link conftest.$ac_ext, and return whether this succeeded.
2996 ac_fn_cxx_try_link ()
2998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2999 rm -f conftest.$ac_objext conftest$ac_exeext
3000 if { { ac_try="$ac_link"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link") 2>conftest.err
3009 if test -s conftest.err; then
3010 grep -v '^ *+' conftest.err >conftest.er1
3011 cat conftest.er1 >&5
3012 mv -f conftest.er1 conftest.err
3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3015 test $ac_status = 0; } && {
3016 test -z "$ac_cxx_werror_flag" ||
3017 test ! -s conftest.err
3018 } && test -s conftest$ac_exeext && {
3019 test "$cross_compiling" = yes ||
3020 $as_test_x conftest$ac_exeext
3024 $as_echo "$as_me: failed program was:" >&5
3025 sed 's/^/| /' conftest.$ac_ext >&5
3029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3031 # interfere with the next link command; also delete a directory that is
3032 # left behind by Apple's compiler. We do this before executing the actions.
3033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3035 as_fn_set_status $ac_retval
3037 } # ac_fn_cxx_try_link
3039 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
3040 # ---------------------------------------------------------
3041 # Tests whether HEADER exists and can be compiled using the include files in
3042 # INCLUDES, setting the cache variable VAR accordingly.
3043 ac_fn_cxx_check_header_compile ()
3045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3047 $as_echo_n "checking for $2... " >&6; }
3048 if eval \${$3+:} false; then :
3049 $as_echo_n "(cached) " >&6
3051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3052 /* end confdefs.h. */
3056 if ac_fn_cxx_try_compile "$LINENO"; then :
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3065 $as_echo "$ac_res" >&6; }
3066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3068 } # ac_fn_cxx_check_header_compile
3069 cat >config.log <<_ACEOF
3070 This file contains any messages produced by compilers while
3071 running configure, to aid debugging if configure makes a mistake.
3073 It was created by asterisk $as_me trunk, which was
3074 generated by GNU Autoconf 2.68. Invocation command line was
3086 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3087 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3088 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3089 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3090 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3092 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3093 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3095 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3096 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3097 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3098 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3099 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3100 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3101 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 test -z "$as_dir" && as_dir=.
3110 $as_echo "PATH: $as_dir"
3126 # Keep a trace of the command line.
3127 # Strip out --no-create and --no-recursion so they do not pile up.
3128 # Strip out --silent because we don't want to record it for future runs.
3129 # Also quote any args containing shell meta-characters.
3130 # Make two passes to allow for proper duplicate-argument suppression.
3134 ac_must_keep_next=false
3140 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3142 | -silent | --silent | --silen | --sile | --sil)
3145 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3148 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3150 as_fn_append ac_configure_args1 " '$ac_arg'"
3151 if test $ac_must_keep_next = true; then
3152 ac_must_keep_next=false # Got value, back to normal.
3155 *=* | --config-cache | -C | -disable-* | --disable-* \
3156 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3157 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3158 | -with-* | --with-* | -without-* | --without-* | --x)
3159 case "$ac_configure_args0 " in
3160 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3163 -* ) ac_must_keep_next=true ;;
3166 as_fn_append ac_configure_args " '$ac_arg'"
3171 { ac_configure_args0=; unset ac_configure_args0;}
3172 { ac_configure_args1=; unset ac_configure_args1;}
3174 # When interrupted or exit'd, cleanup temporary files, and complete
3175 # config.log. We remove comments because anyway the quotes in there
3176 # would cause problems or look ugly.
3177 # WARNING: Use '\'' to represent an apostrophe within the trap.
3178 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3179 trap 'exit_status=$?
3180 # Save into config.log some information that might help in debugging.
3184 $as_echo "## ---------------- ##
3185 ## Cache variables. ##
3186 ## ---------------- ##"
3188 # The following way of writing the cache mishandles newlines in values,
3190 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3191 eval ac_val=\$$ac_var
3195 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3196 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3199 _ | IFS | as_nl) ;; #(
3200 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3201 *) { eval $ac_var=; unset $ac_var;} ;;
3206 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3207 *${as_nl}ac_space=\ *)
3209 "s/'\''/'\''\\\\'\'''\''/g;
3210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3220 $as_echo "## ----------------- ##
3221 ## Output variables. ##
3222 ## ----------------- ##"
3224 for ac_var in $ac_subst_vars
3226 eval ac_val=\$$ac_var
3228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3230 $as_echo "$ac_var='\''$ac_val'\''"
3234 if test -n "$ac_subst_files"; then
3235 $as_echo "## ------------------- ##
3236 ## File substitutions. ##
3237 ## ------------------- ##"
3239 for ac_var in $ac_subst_files
3241 eval ac_val=\$$ac_var
3243 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3245 $as_echo "$ac_var='\''$ac_val'\''"
3250 if test -s confdefs.h; then
3251 $as_echo "## ----------- ##
3258 test "$ac_signal" != 0 &&
3259 $as_echo "$as_me: caught signal $ac_signal"
3260 $as_echo "$as_me: exit $exit_status"
3262 rm -f core *.core core.conftest.* &&
3263 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3266 for ac_signal in 1 2 13 15; do
3267 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3271 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3272 rm -f -r conftest* confdefs.h
3274 $as_echo "/* confdefs.h */" > confdefs.h
3276 # Predefined preprocessor variables.
3278 cat >>confdefs.h <<_ACEOF
3279 #define PACKAGE_NAME "$PACKAGE_NAME"
3282 cat >>confdefs.h <<_ACEOF
3283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3286 cat >>confdefs.h <<_ACEOF
3287 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3290 cat >>confdefs.h <<_ACEOF
3291 #define PACKAGE_STRING "$PACKAGE_STRING"
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE_URL "$PACKAGE_URL"
3303 # Let the site file select an alternate cache file if it wants to.
3304 # Prefer an explicitly selected file to automatically selected ones.
3307 if test -n "$CONFIG_SITE"; then
3308 # We do not want a PATH search for config.site.
3309 case $CONFIG_SITE in #((
3310 -*) ac_site_file1=./$CONFIG_SITE;;
3311 */*) ac_site_file1=$CONFIG_SITE;;
3312 *) ac_site_file1=./$CONFIG_SITE;;
3314 elif test "x$prefix" != xNONE; then
3315 ac_site_file1=$prefix/share/config.site
3316 ac_site_file2=$prefix/etc/config.site
3318 ac_site_file1=$ac_default_prefix/share/config.site
3319 ac_site_file2=$ac_default_prefix/etc/config.site
3321 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3323 test "x$ac_site_file" = xNONE && continue
3324 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3326 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3327 sed 's/^/| /' "$ac_site_file" >&5
3329 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error $? "failed to load site script $ac_site_file
3332 See \`config.log' for more details" "$LINENO" 5; }
3336 if test -r "$cache_file"; then
3337 # Some versions of bash will fail to source /dev/null (special files
3338 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3339 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3341 $as_echo "$as_me: loading cache $cache_file" >&6;}
3343 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3344 *) . "./$cache_file";;
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3349 $as_echo "$as_me: creating cache $cache_file" >&6;}
3353 as_fn_append ac_header_list " stdlib.h"
3354 as_fn_append ac_header_list " unistd.h"
3355 as_fn_append ac_header_list " sys/param.h"
3356 as_fn_append ac_header_list " utime.h"
3357 # Check that the precious variables saved in the cache have kept the same
3359 ac_cache_corrupted=false
3360 for ac_var in $ac_precious_vars; do
3361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3362 eval ac_new_set=\$ac_env_${ac_var}_set
3363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3364 eval ac_new_val=\$ac_env_${ac_var}_value
3365 case $ac_old_set,$ac_new_set in
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3368 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3369 ac_cache_corrupted=: ;;
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3372 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3373 ac_cache_corrupted=: ;;
3376 if test "x$ac_old_val" != "x$ac_new_val"; then
3377 # differences in whitespace do not lead to failure.
3378 ac_old_val_w=`echo x $ac_old_val`
3379 ac_new_val_w=`echo x $ac_new_val`
3380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3382 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3383 ac_cache_corrupted=:
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3386 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3387 eval $ac_var=\$ac_old_val
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3390 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3392 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3395 # Pass precious variables to config.status.
3396 if test "$ac_new_set" = set; then
3398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3399 *) ac_arg=$ac_var=$ac_new_val ;;
3401 case " $ac_configure_args " in
3402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3407 if $ac_cache_corrupted; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3411 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3414 ## -------------------- ##
3415 ## Main body of script. ##
3416 ## -------------------- ##
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3426 # cross-compile macros
3428 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3429 if test -f "$ac_dir/install-sh"; then
3431 ac_install_sh="$ac_aux_dir/install-sh -c"
3433 elif test -f "$ac_dir/install.sh"; then
3435 ac_install_sh="$ac_aux_dir/install.sh -c"
3437 elif test -f "$ac_dir/shtool"; then
3439 ac_install_sh="$ac_aux_dir/shtool install -c"
3443 if test -z "$ac_aux_dir"; then
3444 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3447 # These three variables are undocumented and unsupported,
3448 # and are intended to be withdrawn in a future Autoconf release.
3449 # They can cause serious problems if a builder's source tree is in a directory
3450 # whose full name contains unusual characters.
3451 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3452 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3453 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3456 # Make sure we can run config.sub.
3457 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3458 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3461 $as_echo_n "checking build system type... " >&6; }
3462 if ${ac_cv_build+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 ac_build_alias=$build_alias
3466 test "x$ac_build_alias" = x &&
3467 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3468 test "x$ac_build_alias" = x &&
3469 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3470 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3471 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3475 $as_echo "$ac_cv_build" >&6; }
3476 case $ac_cv_build in
3478 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3481 ac_save_IFS=$IFS; IFS='-'
3487 # Remember, the first character of IFS is used to create $*,
3488 # except with old shells:
3491 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3495 $as_echo_n "checking host system type... " >&6; }
3496 if ${ac_cv_host+:} false; then :
3497 $as_echo_n "(cached) " >&6
3499 if test "x$host_alias" = x; then
3500 ac_cv_host=$ac_cv_build
3502 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3508 $as_echo "$ac_cv_host" >&6; }
3511 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3514 ac_save_IFS=$IFS; IFS='-'
3520 # Remember, the first character of IFS is used to create $*,
3521 # except with old shells:
3524 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3528 # check existence of the package
3532 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3533 if test -f "$ac_dir/install-sh"; then
3535 ac_install_sh="$ac_aux_dir/install-sh -c"
3537 elif test -f "$ac_dir/install.sh"; then
3539 ac_install_sh="$ac_aux_dir/install.sh -c"
3541 elif test -f "$ac_dir/shtool"; then
3543 ac_install_sh="$ac_aux_dir/shtool install -c"
3547 if test -z "$ac_aux_dir"; then
3548 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3551 # These three variables are undocumented and unsupported,
3552 # and are intended to be withdrawn in a future Autoconf release.
3553 # They can cause serious problems if a builder's source tree is in a directory
3554 # whose full name contains unusual characters.
3555 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3556 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3557 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3564 # preserve any CFLAGS or LDFLAGS that may be set
3565 # NOTE: This must be done before calling any macros that end up
3566 # calling AC_PROG_CC or the like, since they will set a default
3567 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3568 # we don't want those default flags to be carried over into the
3569 # rest of the build system since we have other means of controlling
3570 # debugging symbol generation and optimization.
3571 CONFIG_CFLAGS="${CFLAGS}"
3572 CONFIG_LDFLAGS="${LDFLAGS}"
3576 # specify output header file
3577 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3580 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3581 # other macro that uses the C compiler, or the default order will be used.
3583 ac_cpp='$CPP $CPPFLAGS'
3584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3587 if test -n "$ac_tool_prefix"; then
3588 for ac_prog in gcc cc
3590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593 $as_echo_n "checking for $ac_word... " >&6; }
3594 if ${ac_cv_prog_CC+:} false; then :
3595 $as_echo_n "(cached) " >&6
3597 if test -n "$CC"; then
3598 ac_cv_prog_CC="$CC" # Let the user override the test.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 if test -n "$CC"; then
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620 $as_echo "$CC" >&6; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623 $as_echo "no" >&6; }
3627 test -n "$CC" && break
3630 if test -z "$CC"; then
3632 for ac_prog in gcc cc
3634 # Extract the first word of "$ac_prog", so it can be a program name with args.
3635 set dummy $ac_prog; ac_word=$2
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3637 $as_echo_n "checking for $ac_word... " >&6; }
3638 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3639 $as_echo_n "(cached) " >&6
3641 if test -n "$ac_ct_CC"; then
3642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir=.
3649 for ac_exec_ext in '' $ac_executable_extensions; do
3650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3651 ac_cv_prog_ac_ct_CC="$ac_prog"
3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3662 if test -n "$ac_ct_CC"; then
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3664 $as_echo "$ac_ct_CC" >&6; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3667 $as_echo "no" >&6; }
3671 test -n "$ac_ct_CC" && break
3674 if test "x$ac_ct_CC" = x; then
3677 case $cross_compiling:$ac_tool_warned in
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3681 ac_tool_warned=yes ;;
3688 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3690 as_fn_error $? "no acceptable C compiler found in \$PATH
3691 See \`config.log' for more details" "$LINENO" 5; }
3693 # Provide some information about the compiler.
3694 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3697 for ac_option in --version -v -V -qversion; do
3698 { { ac_try="$ac_compiler $ac_option >&5"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3707 if test -s conftest.err; then
3709 ... rest of stderr output deleted ...
3710 10q' conftest.err >conftest.er1
3711 cat conftest.er1 >&5
3713 rm -f conftest.er1 conftest.err
3714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3715 test $ac_status = 0; }
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3729 ac_clean_files_save=$ac_clean_files
3730 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3731 # Try to create an executable without -o first, disregard a.out.
3732 # It will help us diagnose broken compilers, and finding out an intuition
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3735 $as_echo_n "checking whether the C compiler works... " >&6; }
3736 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3738 # The possible output files:
3739 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3742 for ac_file in $ac_files
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3746 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3751 if { { ac_try="$ac_link_default"
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_link_default") 2>&5
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }; then :
3762 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3763 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3764 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3765 # so that the user can short-circuit this test for compilers unknown to
3767 for ac_file in $ac_files ''
3769 test -f "$ac_file" || continue
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3774 # We found the default executable, but exeext='' is most
3778 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3780 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3782 # We set ac_cv_exeext here because the later test for it is not
3783 # safe: cross compilers may not add the suffix if given an `-o'
3784 # argument, so we may need to know it at that point already.
3785 # Even if this section looks crufty: it has the advantage of
3792 test "$ac_cv_exeext" = no && ac_cv_exeext=
3797 if test -z "$ac_file"; then :
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3800 $as_echo "$as_me: failed program was:" >&5
3801 sed 's/^/| /' conftest.$ac_ext >&5
3803 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3804 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3805 as_fn_error 77 "C compiler cannot create executables
3806 See \`config.log' for more details" "$LINENO" 5; }
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3809 $as_echo "yes" >&6; }
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3812 $as_echo_n "checking for C compiler default output file name... " >&6; }
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3814 $as_echo "$ac_file" >&6; }
3815 ac_exeext=$ac_cv_exeext
3817 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3818 ac_clean_files=$ac_clean_files_save
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3820 $as_echo_n "checking for suffix of executables... " >&6; }
3821 if { { ac_try="$ac_link"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_link") 2>&5
3830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3831 test $ac_status = 0; }; then :
3832 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3833 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3834 # work properly (i.e., refer to `conftest.exe'), while it won't with
3836 for ac_file in conftest.exe conftest conftest.*; do
3837 test -f "$ac_file" || continue
3839 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3840 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3847 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3848 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3849 See \`config.log' for more details" "$LINENO" 5; }
3851 rm -f conftest conftest$ac_cv_exeext
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3853 $as_echo "$ac_cv_exeext" >&6; }
3855 rm -f conftest.$ac_ext
3856 EXEEXT=$ac_cv_exeext
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3864 FILE *f = fopen ("conftest.out", "w");
3865 return ferror (f) || fclose (f) != 0;
3871 ac_clean_files="$ac_clean_files conftest.out"
3872 # Check that the compiler produces executables we can run. If not, either
3873 # the compiler is broken, or we cross compile.
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3875 $as_echo_n "checking whether we are cross compiling... " >&6; }
3876 if test "$cross_compiling" != yes; then
3877 { { ac_try="$ac_link"
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_link") 2>&5
3886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3887 test $ac_status = 0; }
3888 if { ac_try='./conftest$ac_cv_exeext'
3889 { { case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3894 $as_echo "$ac_try_echo"; } >&5
3895 (eval "$ac_try") 2>&5
3897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3898 test $ac_status = 0; }; }; then
3901 if test "$cross_compiling" = maybe; then
3904 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3905 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3906 as_fn_error $? "cannot run C compiled programs.
3907 If you meant to cross compile, use \`--host'.
3908 See \`config.log' for more details" "$LINENO" 5; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3913 $as_echo "$cross_compiling" >&6; }
3915 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3916 ac_clean_files=$ac_clean_files_save
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3918 $as_echo_n "checking for suffix of object files... " >&6; }
3919 if ${ac_cv_objext+:} false; then :
3920 $as_echo_n "(cached) " >&6
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3933 rm -f conftest.o conftest.obj
3934 if { { ac_try="$ac_compile"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_compile") 2>&5
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; then :
3945 for ac_file in conftest.o conftest.obj conftest.*; do
3946 test -f "$ac_file" || continue;
3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3954 $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3957 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3958 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3959 as_fn_error $? "cannot compute suffix of object files: cannot compile
3960 See \`config.log' for more details" "$LINENO" 5; }
3962 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3965 $as_echo "$ac_cv_objext" >&6; }
3966 OBJEXT=$ac_cv_objext
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3969 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3970 if ${ac_cv_c_compiler_gnu+:} false; then :
3971 $as_echo_n "(cached) " >&6
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974 /* end confdefs.h. */
3987 if ac_fn_c_try_compile "$LINENO"; then :
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3997 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3998 if test $ac_compiler_gnu = yes; then
4003 ac_test_CFLAGS=${CFLAGS+set}
4004 ac_save_CFLAGS=$CFLAGS
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4006 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4007 if ${ac_cv_prog_cc_g+:} false; then :
4008 $as_echo_n "(cached) " >&6
4010 ac_save_c_werror_flag=$ac_c_werror_flag
4011 ac_c_werror_flag=yes
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h. */
4025 if ac_fn_c_try_compile "$LINENO"; then :
4029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030 /* end confdefs.h. */
4040 if ac_fn_c_try_compile "$LINENO"; then :
4043 ac_c_werror_flag=$ac_save_c_werror_flag
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4056 if ac_fn_c_try_compile "$LINENO"; then :
4059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 ac_c_werror_flag=$ac_save_c_werror_flag
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4067 $as_echo "$ac_cv_prog_cc_g" >&6; }
4068 if test "$ac_test_CFLAGS" = set; then
4069 CFLAGS=$ac_save_CFLAGS
4070 elif test $ac_cv_prog_cc_g = yes; then
4071 if test "$GCC" = yes; then
4077 if test "$GCC" = yes; then
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4084 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4085 if ${ac_cv_prog_cc_c89+:} false; then :
4086 $as_echo_n "(cached) " >&6
4088 ac_cv_prog_cc_c89=no
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4094 #include <sys/types.h>
4095 #include <sys/stat.h>
4096 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4097 struct buf { int x; };
4098 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4099 static char *e (p, i)
4105 static char *f (char * (*g) (char **, int), char **p, ...)
4110 s = g (p, va_arg (v,int));
4115 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4116 function prototypes and stuff, but not '\xHH' hex character constants.
4117 These don't provoke an error unfortunately, instead are silently treated
4118 as 'x'. The following induces an error, until -std is added to get
4119 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4120 array size at least. It's necessary to write '\x00'==0 to get something
4121 that's true only with -std. */
4122 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4124 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4125 inside strings and character constants. */
4127 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4129 int test (int i, double x);
4130 struct s1 {int (*f) (int a);};
4131 struct s2 {int (*f) (double a);};
4132 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4138 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4143 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4144 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4146 CC="$ac_save_CC $ac_arg"
4147 if ac_fn_c_try_compile "$LINENO"; then :
4148 ac_cv_prog_cc_c89=$ac_arg
4150 rm -f core conftest.err conftest.$ac_objext
4151 test "x$ac_cv_prog_cc_c89" != "xno" && break
4153 rm -f conftest.$ac_ext
4158 case "x$ac_cv_prog_cc_c89" in
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4161 $as_echo "none needed" >&6; } ;;
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4164 $as_echo "unsupported" >&6; } ;;
4166 CC="$CC $ac_cv_prog_cc_c89"
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4168 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4170 if test "x$ac_cv_prog_cc_c89" != xno; then :
4175 ac_cpp='$CPP $CPPFLAGS'
4176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183 ac_cpp='$CPP $CPPFLAGS'
4184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4188 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4189 # On Suns, sometimes $CPP names a directory.
4190 if test -n "$CPP" && test -d "$CPP"; then
4193 if test -z "$CPP"; then
4194 if ${ac_cv_prog_CPP+:} false; then :
4195 $as_echo_n "(cached) " >&6
4197 # Double quotes because CPP needs to be expanded
4198 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4201 for ac_c_preproc_warn_flag in '' yes
4203 # Use a header file that comes with gcc, so configuring glibc
4204 # with a fresh cross-compiler works.
4205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4206 # <limits.h> exists even on freestanding compilers.
4207 # On the NeXT, cc -E runs the code through the compiler's parser,
4208 # not just through cpp. "Syntax error" is here to catch this case.
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4212 # include <limits.h>
4214 # include <assert.h>
4218 if ac_fn_c_try_cpp "$LINENO"; then :
4221 # Broken: fails on valid input.
4224 rm -f conftest.err conftest.i conftest.$ac_ext
4226 # OK, works on sane cases. Now check whether nonexistent headers
4227 # can be detected and how.
4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4229 /* end confdefs.h. */
4230 #include <ac_nonexistent.h>
4232 if ac_fn_c_try_cpp "$LINENO"; then :
4233 # Broken: success on invalid input.
4236 # Passes both tests.
4240 rm -f conftest.err conftest.i conftest.$ac_ext
4243 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4244 rm -f conftest.i conftest.err conftest.$ac_ext
4245 if $ac_preproc_ok; then :
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4258 $as_echo "$CPP" >&6; }
4260 for ac_c_preproc_warn_flag in '' yes
4262 # Use a header file that comes with gcc, so configuring glibc
4263 # with a fresh cross-compiler works.
4264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4265 # <limits.h> exists even on freestanding compilers.
4266 # On the NeXT, cc -E runs the code through the compiler's parser,
4267 # not just through cpp. "Syntax error" is here to catch this case.
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4271 # include <limits.h>
4273 # include <assert.h>
4277 if ac_fn_c_try_cpp "$LINENO"; then :
4280 # Broken: fails on valid input.
4283 rm -f conftest.err conftest.i conftest.$ac_ext
4285 # OK, works on sane cases. Now check whether nonexistent headers
4286 # can be detected and how.
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288 /* end confdefs.h. */
4289 #include <ac_nonexistent.h>
4291 if ac_fn_c_try_cpp "$LINENO"; then :
4292 # Broken: success on invalid input.
4295 # Passes both tests.
4299 rm -f conftest.err conftest.i conftest.$ac_ext
4302 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4303 rm -f conftest.i conftest.err conftest.$ac_ext
4304 if $ac_preproc_ok; then :
4307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4309 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4310 See \`config.log' for more details" "$LINENO" 5; }
4314 ac_cpp='$CPP $CPPFLAGS'
4315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4321 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4322 if ${ac_cv_path_GREP+:} false; then :
4323 $as_echo_n "(cached) " >&6
4325 if test -z "$GREP"; then
4326 ac_path_GREP_found=false
4327 # Loop through the user's path and test for each of PROGNAME-LIST
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4332 test -z "$as_dir" && as_dir=.
4333 for ac_prog in grep ggrep; do
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4336 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4337 # Check for GNU ac_path_GREP and select it if it is found.
4338 # Check for GNU $ac_path_GREP
4339 case `"$ac_path_GREP" --version 2>&1` in
4341 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4344 $as_echo_n 0123456789 >"conftest.in"
4347 cat "conftest.in" "conftest.in" >"conftest.tmp"
4348 mv "conftest.tmp" "conftest.in"
4349 cp "conftest.in" "conftest.nl"
4350 $as_echo 'GREP' >> "conftest.nl"
4351 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4353 as_fn_arith $ac_count + 1 && ac_count=$as_val
4354 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4355 # Best one so far, save it but keep looking for a better one
4356 ac_cv_path_GREP="$ac_path_GREP"
4357 ac_path_GREP_max=$ac_count
4359 # 10*(2^10) chars as input seems more than enough
4360 test $ac_count -gt 10 && break
4362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4365 $ac_path_GREP_found && break 3
4370 if test -z "$ac_cv_path_GREP"; then
4371 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4374 ac_cv_path_GREP=$GREP
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4379 $as_echo "$ac_cv_path_GREP" >&6; }
4380 GREP="$ac_cv_path_GREP"
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4384 $as_echo_n "checking for egrep... " >&6; }
4385 if ${ac_cv_path_EGREP+:} false; then :
4386 $as_echo_n "(cached) " >&6
4388 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4389 then ac_cv_path_EGREP="$GREP -E"
4391 if test -z "$EGREP"; then
4392 ac_path_EGREP_found=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4398 test -z "$as_dir" && as_dir=.
4399 for ac_prog in egrep; do
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4403 # Check for GNU ac_path_EGREP and select it if it is found.
4404 # Check for GNU $ac_path_EGREP
4405 case `"$ac_path_EGREP" --version 2>&1` in
4407 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4410 $as_echo_n 0123456789 >"conftest.in"
4413 cat "conftest.in" "conftest.in" >"conftest.tmp"
4414 mv "conftest.tmp" "conftest.in"
4415 cp "conftest.in" "conftest.nl"
4416 $as_echo 'EGREP' >> "conftest.nl"
4417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4419 as_fn_arith $ac_count + 1 && ac_count=$as_val
4420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4421 # Best one so far, save it but keep looking for a better one
4422 ac_cv_path_EGREP="$ac_path_EGREP"
4423 ac_path_EGREP_max=$ac_count
4425 # 10*(2^10) chars as input seems more than enough
4426 test $ac_count -gt 10 && break
4428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4431 $ac_path_EGREP_found && break 3
4436 if test -z "$ac_cv_path_EGREP"; then
4437 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4440 ac_cv_path_EGREP=$EGREP
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4446 $as_echo "$ac_cv_path_EGREP" >&6; }
4447 EGREP="$ac_cv_path_EGREP"
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4451 $as_echo_n "checking for ANSI C header files... " >&6; }
4452 if ${ac_cv_header_stdc+:} false; then :
4453 $as_echo_n "(cached) " >&6
4455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h. */
4470 if ac_fn_c_try_compile "$LINENO"; then :
4471 ac_cv_header_stdc=yes
4473 ac_cv_header_stdc=no
4475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4477 if test $ac_cv_header_stdc = yes; then
4478 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4485 $EGREP "memchr" >/dev/null 2>&1; then :
4488 ac_cv_header_stdc=no
4494 if test $ac_cv_header_stdc = yes; then
4495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4497 /* end confdefs.h. */
4501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4502 $EGREP "free" >/dev/null 2>&1; then :
4505 ac_cv_header_stdc=no
4511 if test $ac_cv_header_stdc = yes; then
4512 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4513 if test "$cross_compiling" = yes; then :
4516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h. */
4520 #if ((' ' & 0x0FF) == 0x020)
4521 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4522 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4524 # define ISLOWER(c) \
4525 (('a' <= (c) && (c) <= 'i') \
4526 || ('j' <= (c) && (c) <= 'r') \
4527 || ('s' <= (c) && (c) <= 'z'))
4528 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4531 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4536 for (i = 0; i < 256; i++)
4537 if (XOR (islower (i), ISLOWER (i))
4538 || toupper (i) != TOUPPER (i))
4543 if ac_fn_c_try_run "$LINENO"; then :
4546 ac_cv_header_stdc=no
4548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4549 conftest.$ac_objext conftest.beam conftest.$ac_ext
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4555 $as_echo "$ac_cv_header_stdc" >&6; }
4556 if test $ac_cv_header_stdc = yes; then
4558 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4562 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4563 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4564 inttypes.h stdint.h unistd.h
4566 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4567 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4569 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4570 cat >>confdefs.h <<_ACEOF
4571 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4580 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4581 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4588 if test "$MINIX" = yes; then
4590 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4593 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4596 $as_echo "#define _MINIX 1" >>confdefs.h
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4602 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4603 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4604 $as_echo_n "(cached) " >&6
4606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h. */
4609 # define __EXTENSIONS__ 1
4610 $ac_includes_default
4619 if ac_fn_c_try_compile "$LINENO"; then :
4620 ac_cv_safe_to_define___extensions__=yes
4622 ac_cv_safe_to_define___extensions__=no
4624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4627 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4628 test $ac_cv_safe_to_define___extensions__ = yes &&
4629 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4631 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4633 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4635 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4637 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4640 # System default paths
4641 astsbindir='${sbindir}'
4642 astetcdir='${sysconfdir}/asterisk'
4643 astheaderdir='${includedir}/asterisk'
4644 astlibdir='${libdir}'
4645 astmoddir='${libdir}/asterisk/modules'
4646 astmandir='${mandir}'
4647 astvarlibdir='${localstatedir}/lib/asterisk'
4648 astdatadir='${astvarlibdir}'
4649 astdbdir='${astvarlibdir}'
4650 astkeydir='${astvarlibdir}'
4651 astspooldir='${localstatedir}/spool/asterisk'
4652 astlogdir='${localstatedir}/log/asterisk'
4653 astvarrundir='${localstatedir}/run/asterisk'
4655 case "${host_os}" in
4657 if test ${prefix} = 'NONE'; then
4658 astvarlibdir='${prefix}/share/asterisk'
4659 astdbdir='${localstatedir}/db/asterisk'
4663 if test ${prefix} = 'NONE'; then
4664 astvarrundir='/Library/Application Support/Asterisk/Run'
4669 case "${host_os}" in
4671 ac_default_prefix=/usr/local
4672 CPPFLAGS=-I/usr/local/include
4673 LDFLAGS=-L/usr/local/lib
4676 ac_default_prefix=/usr/local
4677 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4678 if test ${sysconfdir} = '${prefix}/etc'; then
4679 astetcdir=/etc/asterisk
4681 if test ${mandir} = '${prefix}/man'; then
4682 astmandir=/usr/share/man
4685 CPPFLAGS=-I/usr/local/include
4686 LDFLAGS=-L/usr/local/lib
4689 ac_default_prefix=/usr/local
4690 if test ${prefix} = 'NONE'; then
4691 astmoddir='/Library/Application Support/Asterisk/Modules'
4692 astvarlibdir='/Library/Application Support/Asterisk'
4693 astlogdir=/Library/Logs/Asterisk
4694 astvarrundir='/Library/Application Support/Asterisk/Run'
4697 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4700 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h