2 # From configure.ac Revision: 323321 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 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.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 # Unset variables that we do not need and which cause bugs (e.g. in
121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122 # suppresses any "Segmentation fault" message there. '((' could
123 # trigger a bug in pdksh 5.2.14.
124 for as_var in BASH_ENV ENV MAIL MAILPATH
125 do eval test x\${$as_var+set} = xset \
126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 case \`(set -o) 2>/dev/null\` in #(
158 as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172 exitcode=1; echo positional parameters were not saved.
174 test x\$exitcode = x0 || exit 1"
175 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179 test \$(( 1 + 1 )) = 2 || exit 1"
180 if (eval "$as_required") 2>/dev/null; then :
185 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 test -z "$as_dir" && as_dir=.
197 for as_base in sh bash ksh sh5; do
198 # Try only shells that exist, to save several forks.
199 as_shell=$as_dir/$as_base
200 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 CONFIG_SHELL=$as_shell as_have_required=yes
203 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
212 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
213 CONFIG_SHELL=$SHELL as_have_required=yes
218 if test "x$CONFIG_SHELL" != x; then :
219 # We cannot yet assume a decent shell, so we have to provide a
220 # neutralization value for shells without unset; and this also
221 # works around shells that cannot unset nonexistent variables.
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
229 if test x$as_have_required = xno; then :
230 $as_echo "$0: This script requires a shell more modern than all"
231 $as_echo "$0: the shells that I found on your system."
232 if test x${ZSH_VERSION+set} = xset ; then
233 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
234 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 $as_echo "$0: Please tell bug-autoconf@gnu.org and
237 $0: https://issues.asterisk.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error STATUS ERROR [LINENO LOG_FD]
366 # ----------------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with STATUS, using 1 if that was 0.
372 as_status=$1; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
377 $as_echo "$as_me: error: $2" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 test -n "$DJDIR" || exec 7<&0 </dev/null
539 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
540 # so uname gets run too.
541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 ac_default_prefix=/usr/local
548 ac_config_libobj_dir=.
555 # Identity of this package.
556 PACKAGE_NAME='asterisk'
557 PACKAGE_TARNAME='asterisk'
558 PACKAGE_VERSION='trunk'
559 PACKAGE_STRING='asterisk trunk'
560 PACKAGE_BUGREPORT='https://issues.asterisk.org'
563 ac_unique_file="main/asterisk.c"
564 # Factoring default headers for most tests.
565 ac_includes_default="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
601 ac_subst_vars='LTLIBOBJS
603 PBX_SYSLOG_FACILITY_LOG_UUCP
604 PBX_SYSLOG_FACILITY_LOG_SYSLOG
605 PBX_SYSLOG_FACILITY_LOG_NEWS
606 PBX_SYSLOG_FACILITY_LOG_MAIL
607 PBX_SYSLOG_FACILITY_LOG_LPR
608 PBX_SYSLOG_FACILITY_LOG_KERN
609 PBX_SYSLOG_FACILITY_LOG_FTP
610 PBX_SYSLOG_FACILITY_LOG_DAEMON
611 PBX_SYSLOG_FACILITY_LOG_CRON
612 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
613 PBX_SYSLOG_FACILITY_LOG_AUTH
655 AST_NO_STRICT_OVERFLOW
657 AST_DECLARATION_AFTER_STATEMENT
661 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
662 PBX_PTHREAD_RWLOCK_INITIALIZER
739 SPEEX_PREPROCESS_INCLUDE
774 PBX_PRI_REVERSE_CHARGE
775 PRI_REVERSE_CHARGE_DIR
776 PRI_REVERSE_CHARGE_INCLUDE
777 PRI_REVERSE_CHARGE_LIB
778 PBX_PRI_SERVICE_MESSAGES
779 PRI_SERVICE_MESSAGES_DIR
780 PRI_SERVICE_MESSAGES_INCLUDE
781 PRI_SERVICE_MESSAGES_LIB
784 PRI_PROG_W_CAUSE_INCLUDE
786 PBX_PRI_INBANDDISCONNECT
787 PRI_INBANDDISCONNECT_DIR
788 PRI_INBANDDISCONNECT_INCLUDE
789 PRI_INBANDDISCONNECT_LIB
792 PRI_SETUP_KEYPAD_INCLUDE
794 PBX_PRI_CALL_REROUTING
795 PRI_CALL_REROUTING_DIR
796 PRI_CALL_REROUTING_INCLUDE
797 PRI_CALL_REROUTING_LIB
800 PRI_CALL_HOLD_INCLUDE
808 PRI_HANGUP_FIX_INCLUDE
820 PRI_AOC_EVENTS_INCLUDE
824 PRI_CALL_WAITING_INCLUDE
836 PRI_DISPLAY_TEXT_INCLUDE
842 PBX_PRI_DATETIME_SEND
843 PRI_DATETIME_SEND_DIR
844 PRI_DATETIME_SEND_INCLUDE
845 PRI_DATETIME_SEND_LIB
1148 program_transform_name
1161 enable_option_checking
1237 enable_internal_poll
1240 ac_precious_vars='build_alias
1255 # Initialize some variables set by options.
1257 ac_init_version=false
1258 ac_unrecognized_opts=
1259 ac_unrecognized_sep=
1260 # The variables have the same names as the options, with
1261 # dashes changed to underlines.
1262 cache_file=/dev/null
1269 program_transform_name=s,x,x,
1277 # Installation directory options.
1278 # These are left unexpanded so users can "make install exec_prefix=/foo"
1279 # and all the variables that are supposed to be based on exec_prefix
1280 # by default will actually change.
1281 # Use braces instead of parens because sh, perl, etc. also accept them.
1282 # (The list follows the same order as the GNU Coding Standards.)
1283 bindir='${exec_prefix}/bin'
1284 sbindir='${exec_prefix}/sbin'
1285 libexecdir='${exec_prefix}/libexec'
1286 datarootdir='${prefix}/share'
1287 datadir='${datarootdir}'
1288 sysconfdir='${prefix}/etc'
1289 sharedstatedir='${prefix}/com'
1290 localstatedir='${prefix}/var'
1291 includedir='${prefix}/include'
1292 oldincludedir='/usr/include'
1293 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1294 infodir='${datarootdir}/info'
1299 libdir='${exec_prefix}/lib'
1300 localedir='${datarootdir}/locale'
1301 mandir='${datarootdir}/man'
1307 # If the previous option needs an argument, assign it.
1308 if test -n "$ac_prev"; then
1309 eval $ac_prev=\$ac_option
1315 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1320 # Accept the important Cygnus configure options, so we can diagnose typos.
1322 case $ac_dashdash$ac_option in
1326 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1328 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1329 bindir=$ac_optarg ;;
1331 -build | --build | --buil | --bui | --bu)
1332 ac_prev=build_alias ;;
1333 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1334 build_alias=$ac_optarg ;;
1336 -cache-file | --cache-file | --cache-fil | --cache-fi \
1337 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1338 ac_prev=cache_file ;;
1339 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1340 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1341 cache_file=$ac_optarg ;;
1343 --config-cache | -C)
1344 cache_file=config.cache ;;
1346 -datadir | --datadir | --datadi | --datad)
1348 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1349 datadir=$ac_optarg ;;
1351 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1352 | --dataroo | --dataro | --datar)
1353 ac_prev=datarootdir ;;
1354 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1355 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1356 datarootdir=$ac_optarg ;;
1358 -disable-* | --disable-*)
1359 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362 as_fn_error $? "invalid feature name: $ac_useropt"
1363 ac_useropt_orig=$ac_useropt
1364 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1367 "enable_$ac_useropt"
1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1370 ac_unrecognized_sep=', ';;
1372 eval enable_$ac_useropt=no ;;
1374 -docdir | --docdir | --docdi | --doc | --do)
1376 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1377 docdir=$ac_optarg ;;
1379 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1381 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1382 dvidir=$ac_optarg ;;
1384 -enable-* | --enable-*)
1385 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1388 as_fn_error $? "invalid feature name: $ac_useropt"
1389 ac_useropt_orig=$ac_useropt
1390 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1391 case $ac_user_opts in
1393 "enable_$ac_useropt"
1395 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1396 ac_unrecognized_sep=', ';;
1398 eval enable_$ac_useropt=\$ac_optarg ;;
1400 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1401 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1402 | --exec | --exe | --ex)
1403 ac_prev=exec_prefix ;;
1404 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1405 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1406 | --exec=* | --exe=* | --ex=*)
1407 exec_prefix=$ac_optarg ;;
1409 -gas | --gas | --ga | --g)
1410 # Obsolete; use --with-gas.
1413 -help | --help | --hel | --he | -h)
1414 ac_init_help=long ;;
1415 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1416 ac_init_help=recursive ;;
1417 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1418 ac_init_help=short ;;
1420 -host | --host | --hos | --ho)
1421 ac_prev=host_alias ;;
1422 -host=* | --host=* | --hos=* | --ho=*)
1423 host_alias=$ac_optarg ;;
1425 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1427 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1429 htmldir=$ac_optarg ;;
1431 -includedir | --includedir | --includedi | --included | --include \
1432 | --includ | --inclu | --incl | --inc)
1433 ac_prev=includedir ;;
1434 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1435 | --includ=* | --inclu=* | --incl=* | --inc=*)
1436 includedir=$ac_optarg ;;
1438 -infodir | --infodir | --infodi | --infod | --info | --inf)
1440 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1441 infodir=$ac_optarg ;;
1443 -libdir | --libdir | --libdi | --libd)
1445 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1446 libdir=$ac_optarg ;;
1448 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1449 | --libexe | --libex | --libe)
1450 ac_prev=libexecdir ;;
1451 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1452 | --libexe=* | --libex=* | --libe=*)
1453 libexecdir=$ac_optarg ;;
1455 -localedir | --localedir | --localedi | --localed | --locale)
1456 ac_prev=localedir ;;
1457 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1458 localedir=$ac_optarg ;;
1460 -localstatedir | --localstatedir | --localstatedi | --localstated \
1461 | --localstate | --localstat | --localsta | --localst | --locals)
1462 ac_prev=localstatedir ;;
1463 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1464 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1465 localstatedir=$ac_optarg ;;
1467 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1469 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1470 mandir=$ac_optarg ;;
1472 -nfp | --nfp | --nf)
1473 # Obsolete; use --without-fp.
1476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1477 | --no-cr | --no-c | -n)
1480 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1481 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1484 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1485 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1486 | --oldin | --oldi | --old | --ol | --o)
1487 ac_prev=oldincludedir ;;
1488 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1489 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1490 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1491 oldincludedir=$ac_optarg ;;
1493 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1495 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1496 prefix=$ac_optarg ;;
1498 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1499 | --program-pre | --program-pr | --program-p)
1500 ac_prev=program_prefix ;;
1501 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1502 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1503 program_prefix=$ac_optarg ;;
1505 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1506 | --program-suf | --program-su | --program-s)
1507 ac_prev=program_suffix ;;
1508 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1509 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1510 program_suffix=$ac_optarg ;;
1512 -program-transform-name | --program-transform-name \
1513 | --program-transform-nam | --program-transform-na \
1514 | --program-transform-n | --program-transform- \
1515 | --program-transform | --program-transfor \
1516 | --program-transfo | --program-transf \
1517 | --program-trans | --program-tran \
1518 | --progr-tra | --program-tr | --program-t)
1519 ac_prev=program_transform_name ;;
1520 -program-transform-name=* | --program-transform-name=* \
1521 | --program-transform-nam=* | --program-transform-na=* \
1522 | --program-transform-n=* | --program-transform-=* \
1523 | --program-transform=* | --program-transfor=* \
1524 | --program-transfo=* | --program-transf=* \
1525 | --program-trans=* | --program-tran=* \
1526 | --progr-tra=* | --program-tr=* | --program-t=*)
1527 program_transform_name=$ac_optarg ;;
1529 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1531 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1532 pdfdir=$ac_optarg ;;
1534 -psdir | --psdir | --psdi | --psd | --ps)
1536 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1540 | -silent | --silent | --silen | --sile | --sil)
1543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1547 sbindir=$ac_optarg ;;
1549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1551 | --sharedst | --shareds | --shared | --share | --shar \
1553 ac_prev=sharedstatedir ;;
1554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1558 sharedstatedir=$ac_optarg ;;
1560 -site | --site | --sit)
1562 -site=* | --site=* | --sit=*)
1565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1568 srcdir=$ac_optarg ;;
1570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1571 | --syscon | --sysco | --sysc | --sys | --sy)
1572 ac_prev=sysconfdir ;;
1573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1575 sysconfdir=$ac_optarg ;;
1577 -target | --target | --targe | --targ | --tar | --ta | --t)
1578 ac_prev=target_alias ;;
1579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1580 target_alias=$ac_optarg ;;
1582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1585 -version | --version | --versio | --versi | --vers | -V)
1586 ac_init_version=: ;;
1589 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1590 # Reject names that are not valid shell variable names.
1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1592 as_fn_error $? "invalid package name: $ac_useropt"
1593 ac_useropt_orig=$ac_useropt
1594 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595 case $ac_user_opts in
1599 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1600 ac_unrecognized_sep=', ';;
1602 eval with_$ac_useropt=\$ac_optarg ;;
1604 -without-* | --without-*)
1605 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1606 # Reject names that are not valid shell variable names.
1607 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1608 as_fn_error $? "invalid package name: $ac_useropt"
1609 ac_useropt_orig=$ac_useropt
1610 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1611 case $ac_user_opts in
1615 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1616 ac_unrecognized_sep=', ';;
1618 eval with_$ac_useropt=no ;;
1621 # Obsolete; use --with-x.
1624 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1625 | --x-incl | --x-inc | --x-in | --x-i)
1626 ac_prev=x_includes ;;
1627 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1628 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1629 x_includes=$ac_optarg ;;
1631 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1632 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1633 ac_prev=x_libraries ;;
1634 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1635 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1636 x_libraries=$ac_optarg ;;
1638 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1639 Try \`$0 --help' for more information"
1643 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1644 # Reject names that are not valid shell variable names.
1645 case $ac_envvar in #(
1646 '' | [0-9]* | *[!_$as_cr_alnum]* )
1647 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1649 eval $ac_envvar=\$ac_optarg
1650 export $ac_envvar ;;
1653 # FIXME: should be removed in autoconf 3.0.
1654 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1655 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1656 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1657 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1663 if test -n "$ac_prev"; then
1664 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1665 as_fn_error $? "missing argument to $ac_option"
1668 if test -n "$ac_unrecognized_opts"; then
1669 case $enable_option_checking in
1671 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1672 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1676 # Check all directory arguments for consistency.
1677 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1678 datadir sysconfdir sharedstatedir localstatedir includedir \
1679 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1680 libdir localedir mandir
1682 eval ac_val=\$$ac_var
1683 # Remove trailing slashes.
1686 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1687 eval $ac_var=\$ac_val;;
1689 # Be sure to have absolute directory names.
1691 [\\/$]* | ?:[\\/]* ) continue;;
1692 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1694 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1697 # There might be people who depend on the old broken behavior: `$host'
1698 # used to hold the argument of --host etc.
1699 # FIXME: To remove some day.
1702 target=$target_alias
1704 # FIXME: To remove some day.
1705 if test "x$host_alias" != x; then
1706 if test "x$build_alias" = x; then
1707 cross_compiling=maybe
1708 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1709 If a cross compiler is detected then cross compile mode will be used" >&2
1710 elif test "x$build_alias" != "x$host_alias"; then
1716 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1718 test "$silent" = yes && exec 6>/dev/null
1721 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1722 ac_ls_di=`ls -di .` &&
1723 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1724 as_fn_error $? "working directory cannot be determined"
1725 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1726 as_fn_error $? "pwd does not report name of working directory"
1729 # Find the source files, if location was not specified.
1730 if test -z "$srcdir"; then
1731 ac_srcdir_defaulted=yes
1732 # Try the directory containing this script, then the parent directory.
1733 ac_confdir=`$as_dirname -- "$as_myself" ||
1734 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1735 X"$as_myself" : 'X\(//\)[^/]' \| \
1736 X"$as_myself" : 'X\(//\)$' \| \
1737 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1738 $as_echo X"$as_myself" |
1739 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1757 if test ! -r "$srcdir/$ac_unique_file"; then
1761 ac_srcdir_defaulted=no
1763 if test ! -r "$srcdir/$ac_unique_file"; then
1764 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1765 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1767 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1769 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1771 # When building in place, set srcdir=.
1772 if test "$ac_abs_confdir" = "$ac_pwd"; then
1775 # Remove unnecessary trailing slashes from srcdir.
1776 # Double slashes in file names in object file debugging info
1777 # mess up M-x gdb in Emacs.
1779 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1781 for ac_var in $ac_precious_vars; do
1782 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1783 eval ac_env_${ac_var}_value=\$${ac_var}
1784 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1785 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1789 # Report the --help message.
1791 if test "$ac_init_help" = "long"; then
1792 # Omit some internal or obsolete options to make the list less imposing.
1793 # This message is too long to be a string in the A/UX 3.1 sh.
1795 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1797 Usage: $0 [OPTION]... [VAR=VALUE]...
1799 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1800 VAR=VALUE. See below for descriptions of some of the useful variables.
1802 Defaults for the options are specified in brackets.
1805 -h, --help display this help and exit
1806 --help=short display options specific to this package
1807 --help=recursive display the short help of all the included packages
1808 -V, --version display version information and exit
1809 -q, --quiet, --silent do not print \`checking ...' messages
1810 --cache-file=FILE cache test results in FILE [disabled]
1811 -C, --config-cache alias for \`--cache-file=config.cache'
1812 -n, --no-create do not create output files
1813 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1815 Installation directories:
1816 --prefix=PREFIX install architecture-independent files in PREFIX
1817 [$ac_default_prefix]
1818 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1821 By default, \`make install' will install all the files in
1822 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1823 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1824 for instance \`--prefix=\$HOME'.
1826 For better control, use the options below.
1828 Fine tuning of the installation directories:
1829 --bindir=DIR user executables [EPREFIX/bin]
1830 --sbindir=DIR system admin executables [EPREFIX/sbin]
1831 --libexecdir=DIR program executables [EPREFIX/libexec]
1832 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1833 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1834 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1835 --libdir=DIR object code libraries [EPREFIX/lib]
1836 --includedir=DIR C header files [PREFIX/include]
1837 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1838 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1839 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1840 --infodir=DIR info documentation [DATAROOTDIR/info]
1841 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1842 --mandir=DIR man documentation [DATAROOTDIR/man]
1843 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1844 --htmldir=DIR html documentation [DOCDIR]
1845 --dvidir=DIR dvi documentation [DOCDIR]
1846 --pdfdir=DIR pdf documentation [DOCDIR]
1847 --psdir=DIR ps documentation [DOCDIR]
1853 --build=BUILD configure for building on BUILD [guessed]
1854 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1858 if test -n "$ac_init_help"; then
1859 case $ac_init_help in
1860 short | recursive ) echo "Configuration of asterisk trunk:";;
1865 --disable-option-checking ignore unrecognized --enable/--with options
1866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1868 --enable-dev-mode Turn on developer mode
1869 --enable-coverage Turn on code coverage tracking (for gcov)
1870 --disable-largefile omit support for large files
1871 --enable-internal-poll Use Asterisk's poll implementation
1872 --disable-xmldoc Explicity disable XML documentation
1875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1877 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1878 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1879 --with-bfd=PATH use Debug symbol decoding files in PATH
1880 --with-execinfo=PATH use Stack Backtrace files in PATH
1881 --with-bluetooth=PATH use Bluetooth files in PATH
1882 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1883 --with-curses=PATH use curses files in PATH
1884 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1885 --with-dahdi=PATH use DAHDI files in PATH
1886 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1887 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1889 --with-gtk2=PATH use gtk2 files in PATH
1890 --with-gmime=PATH use GMime files in PATH
1891 --with-h323=PATH use OpenH323 files in PATH
1892 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1893 --with-ical=PATH use iCal files in PATH
1894 --with-iconv=PATH use Iconv files in PATH
1895 --with-iksemel=PATH use Iksemel Jabber files in PATH
1896 --with-imap=PATH use UW IMAP Toolkit files in PATH
1897 --with-inotify=PATH use inotify support files in PATH
1898 --with-iodbc=PATH use iODBC files in PATH
1899 --with-isdnnet=PATH use ISDN4Linux files in PATH
1900 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1901 --with-kqueue=PATH use kqueue support files in PATH
1902 --with-ldap=PATH use OpenLDAP files in PATH
1903 --with-libcurl=DIR look for the curl library in DIR
1904 --with-libxml2=PATH use LibXML2 files in PATH
1905 --with-ltdl=PATH use libtool files in PATH
1906 --with-lua=PATH use Lua files in PATH
1907 --with-misdn=PATH use mISDN user files in PATH
1908 --with-mysqlclient=PATH use MySQL client files in PATH
1909 --with-nbs=PATH use Network Broadcast Sound files in PATH
1910 --with-ncurses=PATH use ncurses files in PATH
1911 --with-neon=PATH use neon files in PATH
1912 --with-neon29=PATH use neon29 files in PATH
1913 --with-netsnmp=PATH use Net-SNMP files in PATH
1914 --with-newt=PATH use newt files in PATH
1915 --with-ogg=PATH use OGG files in PATH
1916 --with-openais=PATH use OpenAIS files in PATH
1917 --with-openr2=PATH use MFR2 files in PATH
1918 --with-osptk=PATH use OSP Toolkit files in PATH
1919 --with-oss=PATH use Open Sound System files in PATH
1920 --with-postgres=PATH use PostgreSQL files in PATH
1921 --with-popt=PATH use popt files in PATH
1922 --with-portaudio=PATH use PortAudio files in PATH
1923 --with-pri=PATH use ISDN PRI files in PATH
1924 --with-pwlib=PATH use PWlib files in PATH
1925 --with-radius=PATH use Radius Client files in PATH
1926 --with-resample=PATH use LIBRESAMPLE files in PATH
1927 --with-sdl=PATH use Sdl files in PATH
1928 --with-SDL_image=PATH use Sdl Image files in PATH
1929 --with-sounds-cache=PATH
1930 use cached sound tarfiles in PATH
1931 --with-spandsp=PATH use SPANDSP files in PATH
1932 --with-ss7=PATH use ISDN SS7 files in PATH
1933 --with-speex=PATH use Speex files in PATH
1934 --with-speex=PATH use Speex preprocess routines files in PATH
1935 --with-speexdsp=PATH use SpeexDSP files in PATH
1936 --with-sqlite=PATH use SQLite files in PATH
1937 --with-sqlite3=PATH use SQLite files in PATH
1938 --with-srtp=PATH use Secure RTP files in PATH
1939 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1940 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1941 --with-tds=PATH use FreeTDS files in PATH
1942 --with-termcap=PATH use Termcap files in PATH
1943 --with-timerfd=PATH use timerfd files in PATH
1944 --with-tinfo=PATH use Term Info files in PATH
1945 --with-tonezone=PATH use tonezone files in PATH
1946 --with-unixodbc=PATH use unixODBC files in PATH
1947 --with-usb=PATH use usb files in PATH
1948 --with-vorbis=PATH use Vorbis files in PATH
1949 --with-vpb=PATH use Voicetronix API files in PATH
1950 --with-x11=PATH use X11 files in PATH
1951 --with-z=PATH use zlib compression files in PATH
1953 Some influential environment variables:
1954 CC C compiler command
1955 CFLAGS C compiler flags
1956 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1957 nonstandard directory <lib dir>
1958 LIBS libraries to pass to the linker, e.g. -l<library>
1959 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1960 you have headers in a nonstandard directory <include dir>
1962 CXX C++ compiler command
1963 CXXFLAGS C++ compiler flags
1964 CXXCPP C++ preprocessor
1966 Use these variables to override the choices made by `configure' or to help
1967 it to find libraries and programs with nonstandard names/locations.
1969 Report bugs to <https://issues.asterisk.org>.
1974 if test "$ac_init_help" = "recursive"; then
1975 # If there are subdirs, report their specific --help.
1976 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1977 test -d "$ac_dir" ||
1978 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1983 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1986 # A ".." for each directory in $ac_dir_suffix.
1987 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1988 case $ac_top_builddir_sub in
1989 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1990 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1993 ac_abs_top_builddir=$ac_pwd
1994 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1995 # for backward compatibility:
1996 ac_top_builddir=$ac_top_build_prefix
1999 .) # We are building in place.
2001 ac_top_srcdir=$ac_top_builddir_sub
2002 ac_abs_top_srcdir=$ac_pwd ;;
2003 [\\/]* | ?:[\\/]* ) # Absolute name.
2004 ac_srcdir=$srcdir$ac_dir_suffix;
2005 ac_top_srcdir=$srcdir
2006 ac_abs_top_srcdir=$srcdir ;;
2008 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2009 ac_top_srcdir=$ac_top_build_prefix$srcdir
2010 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2012 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2014 cd "$ac_dir" || { ac_status=$?; continue; }
2015 # Check for guested configure.
2016 if test -f "$ac_srcdir/configure.gnu"; then
2018 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2019 elif test -f "$ac_srcdir/configure"; then
2021 $SHELL "$ac_srcdir/configure" --help=recursive
2023 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2025 cd "$ac_pwd" || { ac_status=$?; break; }
2029 test -n "$ac_init_help" && exit $ac_status
2030 if $ac_init_version; then
2032 asterisk configure trunk
2033 generated by GNU Autoconf 2.67
2035 Copyright (C) 2010 Free Software Foundation, Inc.
2036 This configure script is free software; the Free Software Foundation
2037 gives unlimited permission to copy, distribute and modify it.
2044 ## ------------------------ ##
2045 ## Autoconf initialization. ##
2046 ## ------------------------ ##
2048 # ac_fn_c_try_compile LINENO
2049 # --------------------------
2050 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2051 ac_fn_c_try_compile ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 rm -f conftest.$ac_objext
2055 if { { ac_try="$ac_compile"
2057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058 *) ac_try_echo=$ac_try;;
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062 (eval "$ac_compile") 2>conftest.err
2064 if test -s conftest.err; then
2065 grep -v '^ *+' conftest.err >conftest.er1
2066 cat conftest.er1 >&5
2067 mv -f conftest.er1 conftest.err
2069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070 test $ac_status = 0; } && {
2071 test -z "$ac_c_werror_flag" ||
2072 test ! -s conftest.err
2073 } && test -s conftest.$ac_objext; then :
2076 $as_echo "$as_me: failed program was:" >&5
2077 sed 's/^/| /' conftest.$ac_ext >&5
2081 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 as_fn_set_status $ac_retval
2084 } # ac_fn_c_try_compile
2086 # ac_fn_c_try_cpp LINENO
2087 # ----------------------
2088 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2091 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2092 if { { ac_try="$ac_cpp conftest.$ac_ext"
2094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2095 *) ac_try_echo=$ac_try;;
2097 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2098 $as_echo "$ac_try_echo"; } >&5
2099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2101 if test -s conftest.err; then
2102 grep -v '^ *+' conftest.err >conftest.er1
2103 cat conftest.er1 >&5
2104 mv -f conftest.er1 conftest.err
2106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2107 test $ac_status = 0; } > conftest.i && {
2108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2109 test ! -s conftest.err
2113 $as_echo "$as_me: failed program was:" >&5
2114 sed 's/^/| /' conftest.$ac_ext >&5
2118 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 as_fn_set_status $ac_retval
2123 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2124 # -------------------------------------------------------
2125 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2126 # the include files in INCLUDES and setting the cache variable VAR
2128 ac_fn_c_check_header_mongrel ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 if eval "test \"\${$3+set}\"" = set; then :
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133 $as_echo_n "checking for $2... " >&6; }
2134 if eval "test \"\${$3+set}\"" = set; then :
2135 $as_echo_n "(cached) " >&6
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139 $as_echo "$ac_res" >&6; }
2141 # Is the header compilable?
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2143 $as_echo_n "checking $2 usability... " >&6; }
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 ac_header_compiler=yes
2152 ac_header_compiler=no
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2156 $as_echo "$ac_header_compiler" >&6; }
2158 # Is the header present?
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2160 $as_echo_n "checking $2 presence... " >&6; }
2161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2165 if ac_fn_c_try_cpp "$LINENO"; then :
2166 ac_header_preproc=yes
2168 ac_header_preproc=no
2170 rm -f conftest.err conftest.i conftest.$ac_ext
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2172 $as_echo "$ac_header_preproc" >&6; }
2174 # So? What about this header?
2175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2178 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2180 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2184 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2186 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2188 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2190 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2192 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193 ( $as_echo "## ------------------------------------------ ##
2194 ## Report this to https://issues.asterisk.org ##
2195 ## ------------------------------------------ ##"
2196 ) | sed "s/^/$as_me: WARNING: /" >&2
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200 $as_echo_n "checking for $2... " >&6; }
2201 if eval "test \"\${$3+set}\"" = set; then :
2202 $as_echo_n "(cached) " >&6
2204 eval "$3=\$ac_header_compiler"
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2212 } # ac_fn_c_check_header_mongrel
2214 # ac_fn_c_try_run LINENO
2215 # ----------------------
2216 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2217 # that executables *can* be run.
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 if { { ac_try="$ac_link"
2223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224 *) ac_try_echo=$ac_try;;
2226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2227 $as_echo "$ac_try_echo"; } >&5
2228 (eval "$ac_link") 2>&5
2230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2232 { { case "(($ac_try" in
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2237 $as_echo "$ac_try_echo"; } >&5
2238 (eval "$ac_try") 2>&5
2240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241 test $ac_status = 0; }; }; then :
2244 $as_echo "$as_me: program exited with status $ac_status" >&5
2245 $as_echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2248 ac_retval=$ac_status
2250 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2251 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252 as_fn_set_status $ac_retval
2256 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2257 # -------------------------------------------------------
2258 # Tests whether HEADER exists and can be compiled using the include files in
2259 # INCLUDES, setting the cache variable VAR accordingly.
2260 ac_fn_c_check_header_compile ()
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264 $as_echo_n "checking for $2... " >&6; }
2265 if eval "test \"\${$3+set}\"" = set; then :
2266 $as_echo_n "(cached) " >&6
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2273 if ac_fn_c_try_compile "$LINENO"; then :
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 } # ac_fn_c_check_header_compile
2287 # ac_fn_cxx_try_compile LINENO
2288 # ----------------------------
2289 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2290 ac_fn_cxx_try_compile ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 rm -f conftest.$ac_objext
2294 if { { ac_try="$ac_compile"
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2300 $as_echo "$ac_try_echo"; } >&5
2301 (eval "$ac_compile") 2>conftest.err
2303 if test -s conftest.err; then
2304 grep -v '^ *+' conftest.err >conftest.er1
2305 cat conftest.er1 >&5
2306 mv -f conftest.er1 conftest.err
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; } && {
2310 test -z "$ac_cxx_werror_flag" ||
2311 test ! -s conftest.err
2312 } && test -s conftest.$ac_objext; then :
2315 $as_echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 as_fn_set_status $ac_retval
2323 } # ac_fn_cxx_try_compile
2325 # ac_fn_cxx_try_cpp LINENO
2326 # ------------------------
2327 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2328 ac_fn_cxx_try_cpp ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 if { { ac_try="$ac_cpp conftest.$ac_ext"
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337 $as_echo "$ac_try_echo"; } >&5
2338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2340 if test -s conftest.err; then
2341 grep -v '^ *+' conftest.err >conftest.er1
2342 cat conftest.er1 >&5
2343 mv -f conftest.er1 conftest.err
2345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2346 test $ac_status = 0; } > conftest.i && {
2347 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2348 test ! -s conftest.err
2352 $as_echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2357 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2358 as_fn_set_status $ac_retval
2360 } # ac_fn_cxx_try_cpp
2362 # ac_fn_c_try_link LINENO
2363 # -----------------------
2364 # Try to link conftest.$ac_ext, and return whether this succeeded.
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 rm -f conftest.$ac_objext conftest$ac_exeext
2369 if { { ac_try="$ac_link"
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_link") 2>conftest.err
2378 if test -s conftest.err; then
2379 grep -v '^ *+' conftest.err >conftest.er1
2380 cat conftest.er1 >&5
2381 mv -f conftest.er1 conftest.err
2383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2384 test $ac_status = 0; } && {
2385 test -z "$ac_c_werror_flag" ||
2386 test ! -s conftest.err
2387 } && test -s conftest$ac_exeext && {
2388 test "$cross_compiling" = yes ||
2389 $as_test_x conftest$ac_exeext
2393 $as_echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2398 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2399 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2400 # interfere with the next link command; also delete a directory that is
2401 # left behind by Apple's compiler. We do this before executing the actions.
2402 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2403 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2404 as_fn_set_status $ac_retval
2406 } # ac_fn_c_try_link
2408 # ac_fn_c_check_func LINENO FUNC VAR
2409 # ----------------------------------
2410 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2411 ac_fn_c_check_func ()
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2415 $as_echo_n "checking for $2... " >&6; }
2416 if eval "test \"\${$3+set}\"" = set; then :
2417 $as_echo_n "(cached) " >&6
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2423 #define $2 innocuous_$2
2425 /* System header to define __stub macros and hopefully few prototypes,
2426 which can conflict with char $2 (); below.
2427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2428 <limits.h> exists even on freestanding compilers. */
2431 # include <limits.h>
2433 # include <assert.h>
2438 /* Override any GCC internal prototype to avoid an error.
2439 Use char because int might match the return type of a GCC
2440 builtin and then its argument prototype would still apply. */
2445 /* The GNU C library defines this for functions which it implements
2446 to always fail with ENOSYS. Some functions are actually named
2447 something starting with __ and the normal name is an alias. */
2448 #if defined __stub_$2 || defined __stub___$2
2460 if ac_fn_c_try_link "$LINENO"; then :
2465 rm -f core conftest.err conftest.$ac_objext \
2466 conftest$ac_exeext conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473 } # ac_fn_c_check_func
2475 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2476 # -------------------------------------------
2477 # Tests whether TYPE exists after having included INCLUDES, setting cache
2478 # variable VAR accordingly.
2479 ac_fn_c_check_type ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if eval "test \"\${$3+set}\"" = set; then :
2485 $as_echo_n "(cached) " >&6
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h. */
2513 if ac_fn_c_try_compile "$LINENO"; then :
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524 $as_echo "$ac_res" >&6; }
2525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2527 } # ac_fn_c_check_type
2529 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2530 # ----------------------------------------------------
2531 # Tries to find if the field MEMBER exists in type AGGR, after including
2532 # INCLUDES, setting cache variable VAR accordingly.
2533 ac_fn_c_check_member ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2537 $as_echo_n "checking for $2.$3... " >&6; }
2538 if eval "test \"\${$4+set}\"" = set; then :
2539 $as_echo_n "(cached) " >&6
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2554 if ac_fn_c_try_compile "$LINENO"; then :
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2564 if (sizeof ac_aggr.$3)
2570 if ac_fn_c_try_compile "$LINENO"; then :
2575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2584 } # ac_fn_c_check_member
2586 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2587 # --------------------------------------------
2588 # Tries to find the compile-time value of EXPR in a program that includes
2589 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2591 ac_fn_c_compute_int ()
2593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2594 if test "$cross_compiling" = yes; then
2595 # Depending upon the size, compute the lo and hi bounds.
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2602 static int test_array [1 - 2 * !(($2) >= 0)];
2609 if ac_fn_c_try_compile "$LINENO"; then :
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2618 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2625 if ac_fn_c_try_compile "$LINENO"; then :
2626 ac_hi=$ac_mid; break
2628 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2629 if test $ac_lo -le $ac_mid; then
2633 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2644 static int test_array [1 - 2 * !(($2) < 0)];
2651 if ac_fn_c_try_compile "$LINENO"; then :
2654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h. */
2660 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2667 if ac_fn_c_try_compile "$LINENO"; then :
2668 ac_lo=$ac_mid; break
2670 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2671 if test $ac_mid -le $ac_hi; then
2675 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 # Binary search between lo and hi bounds.
2686 while test "x$ac_lo" != "x$ac_hi"; do
2687 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h. */
2694 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2701 if ac_fn_c_try_compile "$LINENO"; then :
2704 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2716 static long int longval () { return $2; }
2717 static unsigned long int ulongval () { return $2; }
2724 FILE *f = fopen ("conftest.val", "w");
2729 long int i = longval ();
2732 fprintf (f, "%ld", i);
2736 unsigned long int i = ulongval ();
2739 fprintf (f, "%lu", i);
2741 /* Do not output a trailing newline, as this causes \r\n confusion
2742 on some platforms. */
2743 return ferror (f) || fclose (f) != 0;
2749 if ac_fn_c_try_run "$LINENO"; then :
2750 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2755 conftest.$ac_objext conftest.beam conftest.$ac_ext
2759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2760 as_fn_set_status $ac_retval
2762 } # ac_fn_c_compute_int
2764 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2765 # ---------------------------------------------------------
2766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2767 # the include files in INCLUDES and setting the cache variable VAR
2769 ac_fn_cxx_check_header_mongrel ()
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 if eval "test \"\${$3+set}\"" = set; then :
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if eval "test \"\${$3+set}\"" = set; then :
2776 $as_echo_n "(cached) " >&6
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2780 $as_echo "$ac_res" >&6; }
2782 # Is the header compilable?
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2784 $as_echo_n "checking $2 usability... " >&6; }
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h. */
2790 if ac_fn_cxx_try_compile "$LINENO"; then :
2791 ac_header_compiler=yes
2793 ac_header_compiler=no
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2797 $as_echo "$ac_header_compiler" >&6; }
2799 # Is the header present?
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2801 $as_echo_n "checking $2 presence... " >&6; }
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2806 if ac_fn_cxx_try_cpp "$LINENO"; then :
2807 ac_header_preproc=yes
2809 ac_header_preproc=no
2811 rm -f conftest.err conftest.i conftest.$ac_ext
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2813 $as_echo "$ac_header_preproc" >&6; }
2815 # So? What about this header?
2816 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2834 ( $as_echo "## ------------------------------------------ ##
2835 ## Report this to https://issues.asterisk.org ##
2836 ## ------------------------------------------ ##"
2837 ) | sed "s/^/$as_me: WARNING: /" >&2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2841 $as_echo_n "checking for $2... " >&6; }
2842 if eval "test \"\${$3+set}\"" = set; then :
2843 $as_echo_n "(cached) " >&6
2845 eval "$3=\$ac_header_compiler"
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2849 $as_echo "$ac_res" >&6; }
2851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2853 } # ac_fn_cxx_check_header_mongrel
2855 # ac_fn_cxx_try_link LINENO
2856 # -------------------------
2857 # Try to link conftest.$ac_ext, and return whether this succeeded.
2858 ac_fn_cxx_try_link ()
2860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2861 rm -f conftest.$ac_objext conftest$ac_exeext
2862 if { { ac_try="$ac_link"
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2868 $as_echo "$ac_try_echo"; } >&5
2869 (eval "$ac_link") 2>conftest.err
2871 if test -s conftest.err; then
2872 grep -v '^ *+' conftest.err >conftest.er1
2873 cat conftest.er1 >&5
2874 mv -f conftest.er1 conftest.err
2876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2877 test $ac_status = 0; } && {
2878 test -z "$ac_cxx_werror_flag" ||
2879 test ! -s conftest.err
2880 } && test -s conftest$ac_exeext && {
2881 test "$cross_compiling" = yes ||
2882 $as_test_x conftest$ac_exeext
2886 $as_echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
2891 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2892 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2893 # interfere with the next link command; also delete a directory that is
2894 # left behind by Apple's compiler. We do this before executing the actions.
2895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2897 as_fn_set_status $ac_retval
2899 } # ac_fn_cxx_try_link
2901 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2902 # ---------------------------------------------------------
2903 # Tests whether HEADER exists and can be compiled using the include files in
2904 # INCLUDES, setting the cache variable VAR accordingly.
2905 ac_fn_cxx_check_header_compile ()
2907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2909 $as_echo_n "checking for $2... " >&6; }
2910 if eval "test \"\${$3+set}\"" = set; then :
2911 $as_echo_n "(cached) " >&6
2913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2914 /* end confdefs.h. */
2918 if ac_fn_cxx_try_compile "$LINENO"; then :
2923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2927 $as_echo "$ac_res" >&6; }
2928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2930 } # ac_fn_cxx_check_header_compile
2931 cat >config.log <<_ACEOF
2932 This file contains any messages produced by compilers while
2933 running configure, to aid debugging if configure makes a mistake.
2935 It was created by asterisk $as_me trunk, which was
2936 generated by GNU Autoconf 2.67. Invocation command line was
2948 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2949 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2950 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2951 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2952 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2954 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2955 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2957 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2958 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2959 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2960 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2961 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2962 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2963 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir=.
2972 $as_echo "PATH: $as_dir"
2988 # Keep a trace of the command line.
2989 # Strip out --no-create and --no-recursion so they do not pile up.
2990 # Strip out --silent because we don't want to record it for future runs.
2991 # Also quote any args containing shell meta-characters.
2992 # Make two passes to allow for proper duplicate-argument suppression.
2996 ac_must_keep_next=false
3002 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3004 | -silent | --silent | --silen | --sile | --sil)
3007 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3010 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3012 as_fn_append ac_configure_args1 " '$ac_arg'"
3013 if test $ac_must_keep_next = true; then
3014 ac_must_keep_next=false # Got value, back to normal.
3017 *=* | --config-cache | -C | -disable-* | --disable-* \
3018 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3019 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3020 | -with-* | --with-* | -without-* | --without-* | --x)
3021 case "$ac_configure_args0 " in
3022 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3025 -* ) ac_must_keep_next=true ;;
3028 as_fn_append ac_configure_args " '$ac_arg'"
3033 { ac_configure_args0=; unset ac_configure_args0;}
3034 { ac_configure_args1=; unset ac_configure_args1;}
3036 # When interrupted or exit'd, cleanup temporary files, and complete
3037 # config.log. We remove comments because anyway the quotes in there
3038 # would cause problems or look ugly.
3039 # WARNING: Use '\'' to represent an apostrophe within the trap.
3040 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3041 trap 'exit_status=$?
3042 # Save into config.log some information that might help in debugging.
3046 $as_echo "## ---------------- ##
3047 ## Cache variables. ##
3048 ## ---------------- ##"
3050 # The following way of writing the cache mishandles newlines in values,
3052 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3053 eval ac_val=\$$ac_var
3057 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3058 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3061 _ | IFS | as_nl) ;; #(
3062 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3063 *) { eval $ac_var=; unset $ac_var;} ;;
3068 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3069 *${as_nl}ac_space=\ *)
3071 "s/'\''/'\''\\\\'\'''\''/g;
3072 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3075 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3082 $as_echo "## ----------------- ##
3083 ## Output variables. ##
3084 ## ----------------- ##"
3086 for ac_var in $ac_subst_vars
3088 eval ac_val=\$$ac_var
3090 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3092 $as_echo "$ac_var='\''$ac_val'\''"
3096 if test -n "$ac_subst_files"; then
3097 $as_echo "## ------------------- ##
3098 ## File substitutions. ##
3099 ## ------------------- ##"
3101 for ac_var in $ac_subst_files
3103 eval ac_val=\$$ac_var
3105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3107 $as_echo "$ac_var='\''$ac_val'\''"
3112 if test -s confdefs.h; then
3113 $as_echo "## ----------- ##
3120 test "$ac_signal" != 0 &&
3121 $as_echo "$as_me: caught signal $ac_signal"
3122 $as_echo "$as_me: exit $exit_status"
3124 rm -f core *.core core.conftest.* &&
3125 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3128 for ac_signal in 1 2 13 15; do
3129 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3133 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3134 rm -f -r conftest* confdefs.h
3136 $as_echo "/* confdefs.h */" > confdefs.h
3138 # Predefined preprocessor variables.
3140 cat >>confdefs.h <<_ACEOF
3141 #define PACKAGE_NAME "$PACKAGE_NAME"
3144 cat >>confdefs.h <<_ACEOF
3145 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3148 cat >>confdefs.h <<_ACEOF
3149 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3152 cat >>confdefs.h <<_ACEOF
3153 #define PACKAGE_STRING "$PACKAGE_STRING"
3156 cat >>confdefs.h <<_ACEOF
3157 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3160 cat >>confdefs.h <<_ACEOF
3161 #define PACKAGE_URL "$PACKAGE_URL"
3165 # Let the site file select an alternate cache file if it wants to.
3166 # Prefer an explicitly selected file to automatically selected ones.
3169 if test -n "$CONFIG_SITE"; then
3170 # We do not want a PATH search for config.site.
3171 case $CONFIG_SITE in #((
3172 -*) ac_site_file1=./$CONFIG_SITE;;
3173 */*) ac_site_file1=$CONFIG_SITE;;
3174 *) ac_site_file1=./$CONFIG_SITE;;
3176 elif test "x$prefix" != xNONE; then
3177 ac_site_file1=$prefix/share/config.site
3178 ac_site_file2=$prefix/etc/config.site
3180 ac_site_file1=$ac_default_prefix/share/config.site
3181 ac_site_file2=$ac_default_prefix/etc/config.site
3183 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3185 test "x$ac_site_file" = xNONE && continue
3186 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3188 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3189 sed 's/^/| /' "$ac_site_file" >&5
3191 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error $? "failed to load site script $ac_site_file
3194 See \`config.log' for more details" "$LINENO" 5 ; }
3198 if test -r "$cache_file"; then
3199 # Some versions of bash will fail to source /dev/null (special files
3200 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3201 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3203 $as_echo "$as_me: loading cache $cache_file" >&6;}
3205 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3206 *) . "./$cache_file";;
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3211 $as_echo "$as_me: creating cache $cache_file" >&6;}
3215 as_fn_append ac_header_list " stdlib.h"
3216 as_fn_append ac_header_list " unistd.h"
3217 as_fn_append ac_header_list " sys/param.h"
3218 as_fn_append ac_header_list " utime.h"
3219 # Check that the precious variables saved in the cache have kept the same
3221 ac_cache_corrupted=false
3222 for ac_var in $ac_precious_vars; do
3223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3224 eval ac_new_set=\$ac_env_${ac_var}_set
3225 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3226 eval ac_new_val=\$ac_env_${ac_var}_value
3227 case $ac_old_set,$ac_new_set in
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3230 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3231 ac_cache_corrupted=: ;;
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3234 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3235 ac_cache_corrupted=: ;;
3238 if test "x$ac_old_val" != "x$ac_new_val"; then
3239 # differences in whitespace do not lead to failure.
3240 ac_old_val_w=`echo x $ac_old_val`
3241 ac_new_val_w=`echo x $ac_new_val`
3242 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3244 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3245 ac_cache_corrupted=:
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3248 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3249 eval $ac_var=\$ac_old_val
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3252 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3254 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3257 # Pass precious variables to config.status.
3258 if test "$ac_new_set" = set; then
3260 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3261 *) ac_arg=$ac_var=$ac_new_val ;;
3263 case " $ac_configure_args " in
3264 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3265 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3269 if $ac_cache_corrupted; then
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3271 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3273 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3274 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3276 ## -------------------- ##
3277 ## Main body of script. ##
3278 ## -------------------- ##
3281 ac_cpp='$CPP $CPPFLAGS'
3282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288 # cross-compile macros
3290 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3291 if test -f "$ac_dir/install-sh"; then
3293 ac_install_sh="$ac_aux_dir/install-sh -c"
3295 elif test -f "$ac_dir/install.sh"; then
3297 ac_install_sh="$ac_aux_dir/install.sh -c"
3299 elif test -f "$ac_dir/shtool"; then
3301 ac_install_sh="$ac_aux_dir/shtool install -c"
3305 if test -z "$ac_aux_dir"; then
3306 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3309 # These three variables are undocumented and unsupported,
3310 # and are intended to be withdrawn in a future Autoconf release.
3311 # They can cause serious problems if a builder's source tree is in a directory
3312 # whose full name contains unusual characters.
3313 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3314 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3315 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3318 # Make sure we can run config.sub.
3319 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3320 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3323 $as_echo_n "checking build system type... " >&6; }
3324 if test "${ac_cv_build+set}" = set; then :
3325 $as_echo_n "(cached) " >&6
3327 ac_build_alias=$build_alias
3328 test "x$ac_build_alias" = x &&
3329 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3330 test "x$ac_build_alias" = x &&
3331 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3332 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3333 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3337 $as_echo "$ac_cv_build" >&6; }
3338 case $ac_cv_build in
3340 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3343 ac_save_IFS=$IFS; IFS='-'
3349 # Remember, the first character of IFS is used to create $*,
3350 # except with old shells:
3353 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3357 $as_echo_n "checking host system type... " >&6; }
3358 if test "${ac_cv_host+set}" = set; then :
3359 $as_echo_n "(cached) " >&6
3361 if test "x$host_alias" = x; then
3362 ac_cv_host=$ac_cv_build
3364 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3365 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3370 $as_echo "$ac_cv_host" >&6; }
3373 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3376 ac_save_IFS=$IFS; IFS='-'
3382 # Remember, the first character of IFS is used to create $*,
3383 # except with old shells:
3386 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3390 # check existence of the package
3394 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3395 if test -f "$ac_dir/install-sh"; then
3397 ac_install_sh="$ac_aux_dir/install-sh -c"
3399 elif test -f "$ac_dir/install.sh"; then
3401 ac_install_sh="$ac_aux_dir/install.sh -c"
3403 elif test -f "$ac_dir/shtool"; then
3405 ac_install_sh="$ac_aux_dir/shtool install -c"
3409 if test -z "$ac_aux_dir"; then
3410 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3413 # These three variables are undocumented and unsupported,
3414 # and are intended to be withdrawn in a future Autoconf release.
3415 # They can cause serious problems if a builder's source tree is in a directory
3416 # whose full name contains unusual characters.
3417 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3418 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3419 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3426 # preserve any CFLAGS or LDFLAGS that may be set
3427 # NOTE: This must be done before calling any macros that end up
3428 # calling AC_PROG_CC or the like, since they will set a default
3429 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3430 # we don't want those default flags to be carried over into the
3431 # rest of the build system since we have other means of controlling
3432 # debugging symbol generation and optimization.
3433 CONFIG_CFLAGS="${CFLAGS}"
3434 CONFIG_LDFLAGS="${LDFLAGS}"
3438 # specify output header file
3439 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3442 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3443 # other macro that uses the C compiler, or the default order will be used.
3445 ac_cpp='$CPP $CPPFLAGS'
3446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3449 if test -n "$ac_tool_prefix"; then
3450 for ac_prog in gcc cc
3452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if test "${ac_cv_prog_CC+set}" = set; then :
3457 $as_echo_n "(cached) " >&6
3459 if test -n "$CC"; then
3460 ac_cv_prog_CC="$CC" # Let the user override the test.
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 if test -n "$CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3482 $as_echo "$CC" >&6; }
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3489 test -n "$CC" && break
3492 if test -z "$CC"; then
3494 for ac_prog in gcc cc
3496 # Extract the first word of "$ac_prog", so it can be a program name with args.
3497 set dummy $ac_prog; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3503 if test -n "$ac_ct_CC"; then
3504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_ac_ct_CC="$ac_prog"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3524 if test -n "$ac_ct_CC"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3526 $as_echo "$ac_ct_CC" >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3533 test -n "$ac_ct_CC" && break
3536 if test "x$ac_ct_CC" = x; then
3539 case $cross_compiling:$ac_tool_warned in
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3543 ac_tool_warned=yes ;;
3550 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3552 as_fn_error $? "no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details" "$LINENO" 5 ; }
3555 # Provide some information about the compiler.
3556 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3559 for ac_option in --version -v -V -qversion; do
3560 { { ac_try="$ac_compiler $ac_option >&5"
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3569 if test -s conftest.err; then
3571 ... rest of stderr output deleted ...
3572 10q' conftest.err >conftest.er1
3573 cat conftest.er1 >&5
3575 rm -f conftest.er1 conftest.err
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3581 /* end confdefs.h. */
3591 ac_clean_files_save=$ac_clean_files
3592 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3593 # Try to create an executable without -o first, disregard a.out.
3594 # It will help us diagnose broken compilers, and finding out an intuition
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3597 $as_echo_n "checking whether the C compiler works... " >&6; }
3598 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3600 # The possible output files:
3601 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3604 for ac_file in $ac_files
3607 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3613 if { { ac_try="$ac_link_default"
3615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616 *) ac_try_echo=$ac_try;;
3618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619 $as_echo "$ac_try_echo"; } >&5
3620 (eval "$ac_link_default") 2>&5
3622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623 test $ac_status = 0; }; then :
3624 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3625 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3626 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3627 # so that the user can short-circuit this test for compilers unknown to
3629 for ac_file in $ac_files ''
3631 test -f "$ac_file" || continue
3633 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3636 # We found the default executable, but exeext='' is most
3640 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3642 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3644 # We set ac_cv_exeext here because the later test for it is not
3645 # safe: cross compilers may not add the suffix if given an `-o'
3646 # argument, so we may need to know it at that point already.
3647 # Even if this section looks crufty: it has the advantage of
3654 test "$ac_cv_exeext" = no && ac_cv_exeext=
3659 if test -z "$ac_file"; then :
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3662 $as_echo "$as_me: failed program was:" >&5
3663 sed 's/^/| /' conftest.$ac_ext >&5
3665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3667 as_fn_error 77 "C compiler cannot create executables
3668 See \`config.log' for more details" "$LINENO" 5 ; }
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3671 $as_echo "yes" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3674 $as_echo_n "checking for C compiler default output file name... " >&6; }
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3676 $as_echo "$ac_file" >&6; }
3677 ac_exeext=$ac_cv_exeext
3679 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3680 ac_clean_files=$ac_clean_files_save
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3682 $as_echo_n "checking for suffix of executables... " >&6; }
3683 if { { ac_try="$ac_link"
3685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3686 *) ac_try_echo=$ac_try;;
3688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3689 $as_echo "$ac_try_echo"; } >&5
3690 (eval "$ac_link") 2>&5
3692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693 test $ac_status = 0; }; then :
3694 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3695 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3696 # work properly (i.e., refer to `conftest.exe'), while it won't with
3698 for ac_file in conftest.exe conftest conftest.*; do
3699 test -f "$ac_file" || continue
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3702 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3711 See \`config.log' for more details" "$LINENO" 5 ; }
3713 rm -f conftest conftest$ac_cv_exeext
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3715 $as_echo "$ac_cv_exeext" >&6; }
3717 rm -f conftest.$ac_ext
3718 EXEEXT=$ac_cv_exeext
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3726 FILE *f = fopen ("conftest.out", "w");
3727 return ferror (f) || fclose (f) != 0;
3733 ac_clean_files="$ac_clean_files conftest.out"
3734 # Check that the compiler produces executables we can run. If not, either
3735 # the compiler is broken, or we cross compile.
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3737 $as_echo_n "checking whether we are cross compiling... " >&6; }
3738 if test "$cross_compiling" != yes; then
3739 { { ac_try="$ac_link"
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745 $as_echo "$ac_try_echo"; } >&5
3746 (eval "$ac_link") 2>&5
3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749 test $ac_status = 0; }
3750 if { ac_try='./conftest$ac_cv_exeext'
3751 { { case "(($ac_try" in
3752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3756 $as_echo "$ac_try_echo"; } >&5
3757 (eval "$ac_try") 2>&5
3759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3760 test $ac_status = 0; }; }; then
3763 if test "$cross_compiling" = maybe; then
3766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 as_fn_error $? "cannot run C compiled programs.
3769 If you meant to cross compile, use \`--host'.
3770 See \`config.log' for more details" "$LINENO" 5 ; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3775 $as_echo "$cross_compiling" >&6; }
3777 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3778 ac_clean_files=$ac_clean_files_save
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3780 $as_echo_n "checking for suffix of object files... " >&6; }
3781 if test "${ac_cv_objext+set}" = set; then :
3782 $as_echo_n "(cached) " >&6
3784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3785 /* end confdefs.h. */
3795 rm -f conftest.o conftest.obj
3796 if { { ac_try="$ac_compile"
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802 $as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compile") 2>&5
3805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3806 test $ac_status = 0; }; then :
3807 for ac_file in conftest.o conftest.obj conftest.*; do
3808 test -f "$ac_file" || continue;
3810 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3811 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3816 $as_echo "$as_me: failed program was:" >&5
3817 sed 's/^/| /' conftest.$ac_ext >&5
3819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3821 as_fn_error $? "cannot compute suffix of object files: cannot compile
3822 See \`config.log' for more details" "$LINENO" 5 ; }
3824 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3827 $as_echo "$ac_cv_objext" >&6; }
3828 OBJEXT=$ac_cv_objext
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3831 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3832 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3833 $as_echo_n "(cached) " >&6
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3849 if ac_fn_c_try_compile "$LINENO"; then :
3854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3855 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3859 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3860 if test $ac_compiler_gnu = yes; then
3865 ac_test_CFLAGS=${CFLAGS+set}
3866 ac_save_CFLAGS=$CFLAGS
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3868 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3869 if test "${ac_cv_prog_cc_g+set}" = set; then :
3870 $as_echo_n "(cached) " >&6
3872 ac_save_c_werror_flag=$ac_c_werror_flag
3873 ac_c_werror_flag=yes
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3887 if ac_fn_c_try_compile "$LINENO"; then :
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3902 if ac_fn_c_try_compile "$LINENO"; then :
3905 ac_c_werror_flag=$ac_save_c_werror_flag
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3918 if ac_fn_c_try_compile "$LINENO"; then :
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 ac_c_werror_flag=$ac_save_c_werror_flag
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3929 $as_echo "$ac_cv_prog_cc_g" >&6; }
3930 if test "$ac_test_CFLAGS" = set; then
3931 CFLAGS=$ac_save_CFLAGS
3932 elif test $ac_cv_prog_cc_g = yes; then
3933 if test "$GCC" = yes; then
3939 if test "$GCC" = yes; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3946 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3947 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3948 $as_echo_n "(cached) " >&6
3950 ac_cv_prog_cc_c89=no
3952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3953 /* end confdefs.h. */
3956 #include <sys/types.h>
3957 #include <sys/stat.h>
3958 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3959 struct buf { int x; };
3960 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3961 static char *e (p, i)
3967 static char *f (char * (*g) (char **, int), char **p, ...)
3972 s = g (p, va_arg (v,int));
3977 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3978 function prototypes and stuff, but not '\xHH' hex character constants.
3979 These don't provoke an error unfortunately, instead are silently treated
3980 as 'x'. The following induces an error, until -std is added to get
3981 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3982 array size at least. It's necessary to write '\x00'==0 to get something
3983 that's true only with -std. */
3984 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3986 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3987 inside strings and character constants. */
3989 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3991 int test (int i, double x);
3992 struct s1 {int (*f) (int a);};
3993 struct s2 {int (*f) (double a);};
3994 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4000 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4005 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4006 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4008 CC="$ac_save_CC $ac_arg"
4009 if ac_fn_c_try_compile "$LINENO"; then :
4010 ac_cv_prog_cc_c89=$ac_arg
4012 rm -f core conftest.err conftest.$ac_objext
4013 test "x$ac_cv_prog_cc_c89" != "xno" && break
4015 rm -f conftest.$ac_ext
4020 case "x$ac_cv_prog_cc_c89" in
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4023 $as_echo "none needed" >&6; } ;;
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4026 $as_echo "unsupported" >&6; } ;;
4028 CC="$CC $ac_cv_prog_cc_c89"
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4030 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4032 if test "x$ac_cv_prog_cc_c89" != xno; then :
4037 ac_cpp='$CPP $CPPFLAGS'
4038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 ac_cpp='$CPP $CPPFLAGS'
4046 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4047 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4048 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4050 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4051 # On Suns, sometimes $CPP names a directory.
4052 if test -n "$CPP" && test -d "$CPP"; then
4055 if test -z "$CPP"; then
4056 if test "${ac_cv_prog_CPP+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4059 # Double quotes because CPP needs to be expanded
4060 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4063 for ac_c_preproc_warn_flag in '' yes
4065 # Use a header file that comes with gcc, so configuring glibc
4066 # with a fresh cross-compiler works.
4067 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4068 # <limits.h> exists even on freestanding compilers.
4069 # On the NeXT, cc -E runs the code through the compiler's parser,
4070 # not just through cpp. "Syntax error" is here to catch this case.
4071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4072 /* end confdefs.h. */
4074 # include <limits.h>
4076 # include <assert.h>
4080 if ac_fn_c_try_cpp "$LINENO"; then :
4083 # Broken: fails on valid input.
4086 rm -f conftest.err conftest.i conftest.$ac_ext
4088 # OK, works on sane cases. Now check whether nonexistent headers
4089 # can be detected and how.
4090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091 /* end confdefs.h. */
4092 #include <ac_nonexistent.h>
4094 if ac_fn_c_try_cpp "$LINENO"; then :
4095 # Broken: success on invalid input.
4098 # Passes both tests.
4102 rm -f conftest.err conftest.i conftest.$ac_ext
4105 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4106 rm -f conftest.i conftest.err conftest.$ac_ext
4107 if $ac_preproc_ok; then :
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4120 $as_echo "$CPP" >&6; }
4122 for ac_c_preproc_warn_flag in '' yes
4124 # Use a header file that comes with gcc, so configuring glibc
4125 # with a fresh cross-compiler works.
4126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4127 # <limits.h> exists even on freestanding compilers.
4128 # On the NeXT, cc -E runs the code through the compiler's parser,
4129 # not just through cpp. "Syntax error" is here to catch this case.
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4133 # include <limits.h>
4135 # include <assert.h>
4139 if ac_fn_c_try_cpp "$LINENO"; then :
4142 # Broken: fails on valid input.
4145 rm -f conftest.err conftest.i conftest.$ac_ext
4147 # OK, works on sane cases. Now check whether nonexistent headers
4148 # can be detected and how.
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4151 #include <ac_nonexistent.h>
4153 if ac_fn_c_try_cpp "$LINENO"; then :
4154 # Broken: success on invalid input.
4157 # Passes both tests.
4161 rm -f conftest.err conftest.i conftest.$ac_ext
4164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4165 rm -f conftest.i conftest.err conftest.$ac_ext
4166 if $ac_preproc_ok; then :
4169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4171 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4172 See \`config.log' for more details" "$LINENO" 5 ; }
4176 ac_cpp='$CPP $CPPFLAGS'
4177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4183 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4184 if test "${ac_cv_path_GREP+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4187 if test -z "$GREP"; then
4188 ac_path_GREP_found=false
4189 # Loop through the user's path and test for each of PROGNAME-LIST
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4194 test -z "$as_dir" && as_dir=.
4195 for ac_prog in grep ggrep; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4198 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4199 # Check for GNU ac_path_GREP and select it if it is found.
4200 # Check for GNU $ac_path_GREP
4201 case `"$ac_path_GREP" --version 2>&1` in
4203 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4206 $as_echo_n 0123456789 >"conftest.in"
4209 cat "conftest.in" "conftest.in" >"conftest.tmp"
4210 mv "conftest.tmp" "conftest.in"
4211 cp "conftest.in" "conftest.nl"
4212 $as_echo 'GREP' >> "conftest.nl"
4213 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4215 as_fn_arith $ac_count + 1 && ac_count=$as_val
4216 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4217 # Best one so far, save it but keep looking for a better one
4218 ac_cv_path_GREP="$ac_path_GREP"
4219 ac_path_GREP_max=$ac_count
4221 # 10*(2^10) chars as input seems more than enough
4222 test $ac_count -gt 10 && break
4224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4227 $ac_path_GREP_found && break 3
4232 if test -z "$ac_cv_path_GREP"; then
4233 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4236 ac_cv_path_GREP=$GREP
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4241 $as_echo "$ac_cv_path_GREP" >&6; }
4242 GREP="$ac_cv_path_GREP"
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4246 $as_echo_n "checking for egrep... " >&6; }
4247 if test "${ac_cv_path_EGREP+set}" = set; then :
4248 $as_echo_n "(cached) " >&6
4250 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4251 then ac_cv_path_EGREP="$GREP -E"
4253 if test -z "$EGREP"; then
4254 ac_path_EGREP_found=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260 test -z "$as_dir" && as_dir=.
4261 for ac_prog in egrep; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4264 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4265 # Check for GNU ac_path_EGREP and select it if it is found.
4266 # Check for GNU $ac_path_EGREP
4267 case `"$ac_path_EGREP" --version 2>&1` in
4269 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4272 $as_echo_n 0123456789 >"conftest.in"
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 $as_echo 'EGREP' >> "conftest.nl"
4279 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281 as_fn_arith $ac_count + 1 && ac_count=$as_val
4282 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_EGREP="$ac_path_EGREP"
4285 ac_path_EGREP_max=$ac_count
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293 $ac_path_EGREP_found && break 3
4298 if test -z "$ac_cv_path_EGREP"; then
4299 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4302 ac_cv_path_EGREP=$EGREP
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4308 $as_echo "$ac_cv_path_EGREP" >&6; }
4309 EGREP="$ac_cv_path_EGREP"
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4313 $as_echo_n "checking for ANSI C header files... " >&6; }
4314 if test "${ac_cv_header_stdc+set}" = set; then :
4315 $as_echo_n "(cached) " >&6
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h. */
4332 if ac_fn_c_try_compile "$LINENO"; then :
4333 ac_cv_header_stdc=yes
4335 ac_cv_header_stdc=no
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 if test $ac_cv_header_stdc = yes; then
4340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342 /* end confdefs.h. */
4346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4347 $EGREP "memchr" >/dev/null 2>&1; then :
4350 ac_cv_header_stdc=no
4356 if test $ac_cv_header_stdc = yes; then
4357 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359 /* end confdefs.h. */
4363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4364 $EGREP "free" >/dev/null 2>&1; then :
4367 ac_cv_header_stdc=no
4373 if test $ac_cv_header_stdc = yes; then
4374 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4375 if test "$cross_compiling" = yes; then :
4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h. */
4382 #if ((' ' & 0x0FF) == 0x020)
4383 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4384 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4386 # define ISLOWER(c) \
4387 (('a' <= (c) && (c) <= 'i') \
4388 || ('j' <= (c) && (c) <= 'r') \
4389 || ('s' <= (c) && (c) <= 'z'))
4390 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4393 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4398 for (i = 0; i < 256; i++)
4399 if (XOR (islower (i), ISLOWER (i))
4400 || toupper (i) != TOUPPER (i))
4405 if ac_fn_c_try_run "$LINENO"; then :
4408 ac_cv_header_stdc=no
4410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4411 conftest.$ac_objext conftest.beam conftest.$ac_ext
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4417 $as_echo "$ac_cv_header_stdc" >&6; }
4418 if test $ac_cv_header_stdc = yes; then
4420 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4424 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4425 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4426 inttypes.h stdint.h unistd.h
4428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4429 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4432 cat >>confdefs.h <<_ACEOF
4433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4442 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4443 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4450 if test "$MINIX" = yes; then
4452 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4455 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4458 $as_echo "#define _MINIX 1" >>confdefs.h
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4464 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4465 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4466 $as_echo_n "(cached) " >&6
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4471 # define __EXTENSIONS__ 1
4472 $ac_includes_default
4481 if ac_fn_c_try_compile "$LINENO"; then :
4482 ac_cv_safe_to_define___extensions__=yes
4484 ac_cv_safe_to_define___extensions__=no
4486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4489 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4490 test $ac_cv_safe_to_define___extensions__ = yes &&
4491 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4493 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4495 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4497 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4499 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4502 # System default paths
4503 astsbindir='${sbindir}'
4504 astetcdir='${sysconfdir}/asterisk'
4505 astheaderdir='${includedir}/asterisk'
4506 astlibdir='${libdir}/asterisk'
4507 astmandir='${mandir}'
4508 astvarlibdir='${localstatedir}/lib/asterisk'
4509 astdatadir='${astvarlibdir}'
4510 astdbdir='${astvarlibdir}'
4511 astkeydir='${astvarlibdir}'
4512 astspooldir='${localstatedir}/spool/asterisk'
4513 astlogdir='${localstatedir}/log/asterisk'
4514 astvarrundir='${localstatedir}/run/asterisk'
4516 case "${host_os}" in
4518 if test ${prefix} = 'NONE'; then
4519 astvarlibdir='${prefix}/share/asterisk'
4520 astdbdir='${localstatedir}/db/asterisk'
4524 if test ${prefix} = 'NONE'; then
4525 astvarrundir='/Library/Application Support/Asterisk/Run'
4530 case "${host_os}" in
4532 ac_default_prefix=/usr/local
4533 CPPFLAGS=-I/usr/local/include
4534 LDFLAGS=-L/usr/local/lib
4537 ac_default_prefix=/usr/local
4538 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4539 if test ${sysconfdir} = '${prefix}/etc'; then
4540 astetcdir=/etc/asterisk
4542 if test ${mandir} = '${prefix}/man'; then
4543 astmandir=/usr/share/man
4546 CPPFLAGS=-I/usr/local/include
4547 LDFLAGS=-L/usr/local/lib
4550 ac_default_prefix=/usr/local
4551 if test ${prefix} = 'NONE'; then
4552 astlibdir='/Library/Application Support/Asterisk/Modules'
4553 astvarlibdir='/Library/Application Support/Asterisk'
4554 astlogdir=/Library/Logs/Asterisk
4555 astvarrundir='/Library/Application Support/Asterisk/Run'
4558 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4561 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
4565 if test ${prefix} = 'NONE'; then
4566 astetcdir=/var/etc/asterisk
4567 astsbindir=/opt/asterisk/sbin
4568 astlibdir=/opt/asterisk/lib
4569 astheaderdir=/opt/asterisk/include
4570 astmandir=/opt/asterisk/man
4571 astvarlibdir=/var/opt/asterisk
4572 astspooldir=/var/spool/asterisk
4573 astlogdir=/var/log/asterisk
4574 astvarrundir=/var/run/asterisk
4578 ac_default_prefix=/usr
4579 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4580 if test ${sysconfdir} = '${prefix}/etc'; then
4583 if test ${mandir} = '${prefix}/man'; then
4584 mandir=/usr/share/man
4590 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4591 if test ${localstatedir} = '${prefix}/var'; then
4596 BUILD_PLATFORM=${build}
4597 BUILD_CPU=${build_cpu}
4598 BUILD_VENDOR=${build_vendor}
4599 BUILD_OS=${build_os}
4606 HOST_PLATFORM=${host}
4607 HOST_CPU=${host_cpu}
4608 HOST_VENDOR=${host_vendor}
4618 case "${host_os}" in
4654 if test -n "$ac_tool_prefix"; then
4655 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4656 set dummy ${ac_tool_prefix}uname; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if test "${ac_cv_path_UNAME+set}" = set; then :
4660 $as_echo_n "(cached) " >&6
4664 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 test -z "$as_dir" && as_dir=.
4672 for ac_exec_ext in '' $ac_executable_extensions; do
4673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4674 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4685 UNAME=$ac_cv_path_UNAME
4686 if test -n "$UNAME"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
4688 $as_echo "$UNAME" >&6; }
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }