2 # From configure.ac Revision: 355621 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 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 Free Software Foundation,
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 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=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&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, 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
650 AST_NO_STRICT_OVERFLOW
652 AST_DECLARATION_AFTER_STATEMENT
656 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
657 PBX_PTHREAD_RWLOCK_INITIALIZER
737 SPEEX_PREPROCESS_INCLUDE
772 PBX_PRI_REVERSE_CHARGE
773 PRI_REVERSE_CHARGE_DIR
774 PRI_REVERSE_CHARGE_INCLUDE
775 PRI_REVERSE_CHARGE_LIB
776 PBX_PRI_SERVICE_MESSAGES
777 PRI_SERVICE_MESSAGES_DIR
778 PRI_SERVICE_MESSAGES_INCLUDE
779 PRI_SERVICE_MESSAGES_LIB
782 PRI_PROG_W_CAUSE_INCLUDE
784 PBX_PRI_INBANDDISCONNECT
785 PRI_INBANDDISCONNECT_DIR
786 PRI_INBANDDISCONNECT_INCLUDE
787 PRI_INBANDDISCONNECT_LIB
790 PRI_SETUP_KEYPAD_INCLUDE
792 PBX_PRI_CALL_REROUTING
793 PRI_CALL_REROUTING_DIR
794 PRI_CALL_REROUTING_INCLUDE
795 PRI_CALL_REROUTING_LIB
798 PRI_CALL_HOLD_INCLUDE
806 PRI_HANGUP_FIX_INCLUDE
818 PRI_AOC_EVENTS_INCLUDE
822 PRI_CALL_WAITING_INCLUDE
834 PRI_DISPLAY_TEXT_INCLUDE
840 PBX_PRI_DATETIME_SEND
841 PRI_DATETIME_SEND_DIR
842 PRI_DATETIME_SEND_INCLUDE
843 PRI_DATETIME_SEND_LIB
844 PBX_PRI_L2_PERSISTENCE
845 PRI_L2_PERSISTENCE_DIR
846 PRI_L2_PERSISTENCE_INCLUDE
847 PRI_L2_PERSISTENCE_LIB
1151 program_transform_name
1164 enable_option_checking
1241 enable_internal_poll
1244 ac_precious_vars='build_alias
1259 # Initialize some variables set by options.
1261 ac_init_version=false
1262 ac_unrecognized_opts=
1263 ac_unrecognized_sep=
1264 # The variables have the same names as the options, with
1265 # dashes changed to underlines.
1266 cache_file=/dev/null
1273 program_transform_name=s,x,x,
1281 # Installation directory options.
1282 # These are left unexpanded so users can "make install exec_prefix=/foo"
1283 # and all the variables that are supposed to be based on exec_prefix
1284 # by default will actually change.
1285 # Use braces instead of parens because sh, perl, etc. also accept them.
1286 # (The list follows the same order as the GNU Coding Standards.)
1287 bindir='${exec_prefix}/bin'
1288 sbindir='${exec_prefix}/sbin'
1289 libexecdir='${exec_prefix}/libexec'
1290 datarootdir='${prefix}/share'
1291 datadir='${datarootdir}'
1292 sysconfdir='${prefix}/etc'
1293 sharedstatedir='${prefix}/com'
1294 localstatedir='${prefix}/var'
1295 includedir='${prefix}/include'
1296 oldincludedir='/usr/include'
1297 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1298 infodir='${datarootdir}/info'
1303 libdir='${exec_prefix}/lib'
1304 localedir='${datarootdir}/locale'
1305 mandir='${datarootdir}/man'
1311 # If the previous option needs an argument, assign it.
1312 if test -n "$ac_prev"; then
1313 eval $ac_prev=\$ac_option
1319 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1323 # Accept the important Cygnus configure options, so we can diagnose typos.
1325 case $ac_dashdash$ac_option in
1329 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1331 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1332 bindir=$ac_optarg ;;
1334 -build | --build | --buil | --bui | --bu)
1335 ac_prev=build_alias ;;
1336 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1337 build_alias=$ac_optarg ;;
1339 -cache-file | --cache-file | --cache-fil | --cache-fi \
1340 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1341 ac_prev=cache_file ;;
1342 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1343 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1344 cache_file=$ac_optarg ;;
1346 --config-cache | -C)
1347 cache_file=config.cache ;;
1349 -datadir | --datadir | --datadi | --datad)
1351 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1352 datadir=$ac_optarg ;;
1354 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1355 | --dataroo | --dataro | --datar)
1356 ac_prev=datarootdir ;;
1357 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1358 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1359 datarootdir=$ac_optarg ;;
1361 -disable-* | --disable-*)
1362 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1363 # Reject names that are not valid shell variable names.
1364 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1365 as_fn_error "invalid feature name: $ac_useropt"
1366 ac_useropt_orig=$ac_useropt
1367 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1368 case $ac_user_opts in
1370 "enable_$ac_useropt"
1372 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1373 ac_unrecognized_sep=', ';;
1375 eval enable_$ac_useropt=no ;;
1377 -docdir | --docdir | --docdi | --doc | --do)
1379 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1380 docdir=$ac_optarg ;;
1382 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1384 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1385 dvidir=$ac_optarg ;;
1387 -enable-* | --enable-*)
1388 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1391 as_fn_error "invalid feature name: $ac_useropt"
1392 ac_useropt_orig=$ac_useropt
1393 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1396 "enable_$ac_useropt"
1398 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1399 ac_unrecognized_sep=', ';;
1401 eval enable_$ac_useropt=\$ac_optarg ;;
1403 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1404 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1405 | --exec | --exe | --ex)
1406 ac_prev=exec_prefix ;;
1407 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1408 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1409 | --exec=* | --exe=* | --ex=*)
1410 exec_prefix=$ac_optarg ;;
1412 -gas | --gas | --ga | --g)
1413 # Obsolete; use --with-gas.
1416 -help | --help | --hel | --he | -h)
1417 ac_init_help=long ;;
1418 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1419 ac_init_help=recursive ;;
1420 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1421 ac_init_help=short ;;
1423 -host | --host | --hos | --ho)
1424 ac_prev=host_alias ;;
1425 -host=* | --host=* | --hos=* | --ho=*)
1426 host_alias=$ac_optarg ;;
1428 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1430 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1432 htmldir=$ac_optarg ;;
1434 -includedir | --includedir | --includedi | --included | --include \
1435 | --includ | --inclu | --incl | --inc)
1436 ac_prev=includedir ;;
1437 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1438 | --includ=* | --inclu=* | --incl=* | --inc=*)
1439 includedir=$ac_optarg ;;
1441 -infodir | --infodir | --infodi | --infod | --info | --inf)
1443 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1444 infodir=$ac_optarg ;;
1446 -libdir | --libdir | --libdi | --libd)
1448 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1449 libdir=$ac_optarg ;;
1451 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1452 | --libexe | --libex | --libe)
1453 ac_prev=libexecdir ;;
1454 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1455 | --libexe=* | --libex=* | --libe=*)
1456 libexecdir=$ac_optarg ;;
1458 -localedir | --localedir | --localedi | --localed | --locale)
1459 ac_prev=localedir ;;
1460 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1461 localedir=$ac_optarg ;;
1463 -localstatedir | --localstatedir | --localstatedi | --localstated \
1464 | --localstate | --localstat | --localsta | --localst | --locals)
1465 ac_prev=localstatedir ;;
1466 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1467 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1468 localstatedir=$ac_optarg ;;
1470 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1472 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1473 mandir=$ac_optarg ;;
1475 -nfp | --nfp | --nf)
1476 # Obsolete; use --without-fp.
1479 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1480 | --no-cr | --no-c | -n)
1483 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1484 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1487 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1488 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1489 | --oldin | --oldi | --old | --ol | --o)
1490 ac_prev=oldincludedir ;;
1491 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1492 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1493 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1494 oldincludedir=$ac_optarg ;;
1496 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1498 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1499 prefix=$ac_optarg ;;
1501 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1502 | --program-pre | --program-pr | --program-p)
1503 ac_prev=program_prefix ;;
1504 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1505 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1506 program_prefix=$ac_optarg ;;
1508 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1509 | --program-suf | --program-su | --program-s)
1510 ac_prev=program_suffix ;;
1511 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1512 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1513 program_suffix=$ac_optarg ;;
1515 -program-transform-name | --program-transform-name \
1516 | --program-transform-nam | --program-transform-na \
1517 | --program-transform-n | --program-transform- \
1518 | --program-transform | --program-transfor \
1519 | --program-transfo | --program-transf \
1520 | --program-trans | --program-tran \
1521 | --progr-tra | --program-tr | --program-t)
1522 ac_prev=program_transform_name ;;
1523 -program-transform-name=* | --program-transform-name=* \
1524 | --program-transform-nam=* | --program-transform-na=* \
1525 | --program-transform-n=* | --program-transform-=* \
1526 | --program-transform=* | --program-transfor=* \
1527 | --program-transfo=* | --program-transf=* \
1528 | --program-trans=* | --program-tran=* \
1529 | --progr-tra=* | --program-tr=* | --program-t=*)
1530 program_transform_name=$ac_optarg ;;
1532 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1534 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1535 pdfdir=$ac_optarg ;;
1537 -psdir | --psdir | --psdi | --psd | --ps)
1539 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1543 | -silent | --silent | --silen | --sile | --sil)
1546 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1548 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1550 sbindir=$ac_optarg ;;
1552 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1553 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1554 | --sharedst | --shareds | --shared | --share | --shar \
1556 ac_prev=sharedstatedir ;;
1557 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1558 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1559 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1561 sharedstatedir=$ac_optarg ;;
1563 -site | --site | --sit)
1565 -site=* | --site=* | --sit=*)
1568 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1570 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1571 srcdir=$ac_optarg ;;
1573 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1574 | --syscon | --sysco | --sysc | --sys | --sy)
1575 ac_prev=sysconfdir ;;
1576 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1577 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1578 sysconfdir=$ac_optarg ;;
1580 -target | --target | --targe | --targ | --tar | --ta | --t)
1581 ac_prev=target_alias ;;
1582 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1583 target_alias=$ac_optarg ;;
1585 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1588 -version | --version | --versio | --versi | --vers | -V)
1589 ac_init_version=: ;;
1592 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1595 as_fn_error "invalid package name: $ac_useropt"
1596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1605 eval with_$ac_useropt=\$ac_optarg ;;
1607 -without-* | --without-*)
1608 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1609 # Reject names that are not valid shell variable names.
1610 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1611 as_fn_error "invalid package name: $ac_useropt"
1612 ac_useropt_orig=$ac_useropt
1613 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1614 case $ac_user_opts in
1618 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1619 ac_unrecognized_sep=', ';;
1621 eval with_$ac_useropt=no ;;
1624 # Obsolete; use --with-x.
1627 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1628 | --x-incl | --x-inc | --x-in | --x-i)
1629 ac_prev=x_includes ;;
1630 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1631 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1632 x_includes=$ac_optarg ;;
1634 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1635 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1636 ac_prev=x_libraries ;;
1637 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1638 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1639 x_libraries=$ac_optarg ;;
1641 -*) as_fn_error "unrecognized option: \`$ac_option'
1642 Try \`$0 --help' for more information."
1646 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1647 # Reject names that are not valid shell variable names.
1648 case $ac_envvar in #(
1649 '' | [0-9]* | *[!_$as_cr_alnum]* )
1650 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1652 eval $ac_envvar=\$ac_optarg
1653 export $ac_envvar ;;
1656 # FIXME: should be removed in autoconf 3.0.
1657 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1658 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1659 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1660 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1666 if test -n "$ac_prev"; then
1667 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1668 as_fn_error "missing argument to $ac_option"
1671 if test -n "$ac_unrecognized_opts"; then
1672 case $enable_option_checking in
1674 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1675 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1679 # Check all directory arguments for consistency.
1680 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1681 datadir sysconfdir sharedstatedir localstatedir includedir \
1682 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1683 libdir localedir mandir
1685 eval ac_val=\$$ac_var
1686 # Remove trailing slashes.
1689 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1690 eval $ac_var=\$ac_val;;
1692 # Be sure to have absolute directory names.
1694 [\\/$]* | ?:[\\/]* ) continue;;
1695 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1697 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1700 # There might be people who depend on the old broken behavior: `$host'
1701 # used to hold the argument of --host etc.
1702 # FIXME: To remove some day.
1705 target=$target_alias
1707 # FIXME: To remove some day.
1708 if test "x$host_alias" != x; then
1709 if test "x$build_alias" = x; then
1710 cross_compiling=maybe
1711 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1712 If a cross compiler is detected then cross compile mode will be used." >&2
1713 elif test "x$build_alias" != "x$host_alias"; then
1719 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1721 test "$silent" = yes && exec 6>/dev/null
1724 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1725 ac_ls_di=`ls -di .` &&
1726 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1727 as_fn_error "working directory cannot be determined"
1728 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1729 as_fn_error "pwd does not report name of working directory"
1732 # Find the source files, if location was not specified.
1733 if test -z "$srcdir"; then
1734 ac_srcdir_defaulted=yes
1735 # Try the directory containing this script, then the parent directory.
1736 ac_confdir=`$as_dirname -- "$as_myself" ||
1737 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1738 X"$as_myself" : 'X\(//\)[^/]' \| \
1739 X"$as_myself" : 'X\(//\)$' \| \
1740 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1741 $as_echo X"$as_myself" |
1742 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1760 if test ! -r "$srcdir/$ac_unique_file"; then
1764 ac_srcdir_defaulted=no
1766 if test ! -r "$srcdir/$ac_unique_file"; then
1767 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1768 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1770 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1772 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1774 # When building in place, set srcdir=.
1775 if test "$ac_abs_confdir" = "$ac_pwd"; then
1778 # Remove unnecessary trailing slashes from srcdir.
1779 # Double slashes in file names in object file debugging info
1780 # mess up M-x gdb in Emacs.
1782 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1784 for ac_var in $ac_precious_vars; do
1785 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1786 eval ac_env_${ac_var}_value=\$${ac_var}
1787 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1788 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1792 # Report the --help message.
1794 if test "$ac_init_help" = "long"; then
1795 # Omit some internal or obsolete options to make the list less imposing.
1796 # This message is too long to be a string in the A/UX 3.1 sh.
1798 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1800 Usage: $0 [OPTION]... [VAR=VALUE]...
1802 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1803 VAR=VALUE. See below for descriptions of some of the useful variables.
1805 Defaults for the options are specified in brackets.
1808 -h, --help display this help and exit
1809 --help=short display options specific to this package
1810 --help=recursive display the short help of all the included packages
1811 -V, --version display version information and exit
1812 -q, --quiet, --silent do not print \`checking...' messages
1813 --cache-file=FILE cache test results in FILE [disabled]
1814 -C, --config-cache alias for \`--cache-file=config.cache'
1815 -n, --no-create do not create output files
1816 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1818 Installation directories:
1819 --prefix=PREFIX install architecture-independent files in PREFIX
1820 [$ac_default_prefix]
1821 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1824 By default, \`make install' will install all the files in
1825 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1826 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1827 for instance \`--prefix=\$HOME'.
1829 For better control, use the options below.
1831 Fine tuning of the installation directories:
1832 --bindir=DIR user executables [EPREFIX/bin]
1833 --sbindir=DIR system admin executables [EPREFIX/sbin]
1834 --libexecdir=DIR program executables [EPREFIX/libexec]
1835 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1836 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1837 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1838 --libdir=DIR object code libraries [EPREFIX/lib]
1839 --includedir=DIR C header files [PREFIX/include]
1840 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1841 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1842 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1843 --infodir=DIR info documentation [DATAROOTDIR/info]
1844 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1845 --mandir=DIR man documentation [DATAROOTDIR/man]
1846 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1847 --htmldir=DIR html documentation [DOCDIR]
1848 --dvidir=DIR dvi documentation [DOCDIR]
1849 --pdfdir=DIR pdf documentation [DOCDIR]
1850 --psdir=DIR ps documentation [DOCDIR]
1856 --build=BUILD configure for building on BUILD [guessed]
1857 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1861 if test -n "$ac_init_help"; then
1862 case $ac_init_help in
1863 short | recursive ) echo "Configuration of asterisk trunk:";;
1868 --disable-option-checking ignore unrecognized --enable/--with options
1869 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1870 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1871 --enable-dev-mode Turn on developer mode
1872 --enable-coverage Turn on code coverage tracking (for gcov)
1873 --disable-xmldoc Explicitly disable XML documentation
1874 --disable-largefile omit support for large files
1875 --enable-internal-poll Use Asterisk's poll implementation
1876 --disable-asteriskssl Disable Asterisk's SSL wrapper library
1879 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1880 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1881 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1882 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1883 --with-bfd=PATH use Debug symbol decoding files in PATH
1884 --with-execinfo=PATH use Stack Backtrace files in PATH
1885 --with-bluetooth=PATH use Bluetooth files in PATH
1886 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1887 --with-cpg=PATH use Corosync files in PATH
1888 --with-curses=PATH use curses files in PATH
1889 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1890 --with-dahdi=PATH use DAHDI files in PATH
1891 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1892 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1894 --with-gtk2=PATH use gtk2 files in PATH
1895 --with-gmime=PATH use GMime files in PATH
1896 --with-h323=PATH use OpenH323 files in PATH
1897 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1898 --with-ical=PATH use iCal files in PATH
1899 --with-iconv=PATH use Iconv files in PATH
1900 --with-iksemel=PATH use Iksemel Jabber files in PATH
1901 --with-imap=PATH use UW IMAP Toolkit files in PATH
1902 --with-inotify=PATH use inotify support files in PATH
1903 --with-iodbc=PATH use iODBC files in PATH
1904 --with-isdnnet=PATH use ISDN4Linux files in PATH
1905 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1906 --with-kqueue=PATH use kqueue support files in PATH
1907 --with-ldap=PATH use OpenLDAP files in PATH
1908 --with-libcurl=DIR look for the curl library in DIR
1909 --with-libxml2=PATH use LibXML2 files in PATH
1910 --with-ltdl=PATH use libtool files in PATH
1911 --with-lua=PATH use Lua files in PATH
1912 --with-misdn=PATH use mISDN user files in PATH
1913 --with-mysqlclient=PATH use MySQL client files in PATH
1914 --with-nbs=PATH use Network Broadcast Sound files in PATH
1915 --with-ncurses=PATH use ncurses files in PATH
1916 --with-neon=PATH use neon files in PATH
1917 --with-neon29=PATH use neon29 files in PATH
1918 --with-netsnmp=PATH use Net-SNMP files in PATH
1919 --with-newt=PATH use newt files in PATH
1920 --with-ogg=PATH use OGG files in PATH
1921 --with-openr2=PATH use MFR2 files in PATH
1922 --with-osptk=PATH use OSP Toolkit files in PATH
1923 --with-oss=PATH use Open Sound System files in PATH
1924 --with-postgres=PATH use PostgreSQL files in PATH
1925 --with-popt=PATH use popt files in PATH
1926 --with-portaudio=PATH use PortAudio files in PATH
1927 --with-pri=PATH use ISDN PRI files in PATH
1928 --with-pwlib=PATH use PWlib files in PATH
1929 --with-radius=PATH use Radius Client files in PATH
1930 --with-resample=PATH use LIBRESAMPLE files in PATH
1931 --with-sdl=PATH use Sdl files in PATH
1932 --with-SDL_image=PATH use Sdl Image files in PATH
1933 --with-sounds-cache=PATH
1934 use cached sound tarfiles in PATH
1935 --with-spandsp=PATH use SPANDSP files in PATH
1936 --with-ss7=PATH use ISDN SS7 files in PATH
1937 --with-speex=PATH use Speex files in PATH
1938 --with-speex=PATH use Speex preprocess routines files in PATH
1939 --with-speexdsp=PATH use SpeexDSP files in PATH
1940 --with-sqlite=PATH use SQLite files in PATH
1941 --with-sqlite3=PATH use SQLite files in PATH
1942 --with-srtp=PATH use Secure RTP files in PATH
1943 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1944 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1945 --with-tds=PATH use FreeTDS files in PATH
1946 --with-termcap=PATH use Termcap files in PATH
1947 --with-timerfd=PATH use timerfd files in PATH
1948 --with-tinfo=PATH use Term Info files in PATH
1949 --with-tonezone=PATH use tonezone files in PATH
1950 --with-unixodbc=PATH use unixODBC files in PATH
1951 --with-usb=PATH use usb files in PATH
1952 --with-vorbis=PATH use Vorbis files in PATH
1953 --with-vpb=PATH use Voicetronix API files in PATH
1954 --with-x11=PATH use X11 files in PATH
1955 --with-z=PATH use zlib compression files in PATH
1957 Some influential environment variables:
1958 CC C compiler command
1959 CFLAGS C compiler flags
1960 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1961 nonstandard directory <lib dir>
1962 LIBS libraries to pass to the linker, e.g. -l<library>
1963 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1964 you have headers in a nonstandard directory <include dir>
1966 CXX C++ compiler command
1967 CXXFLAGS C++ compiler flags
1968 CXXCPP C++ preprocessor
1970 Use these variables to override the choices made by `configure' or to help
1971 it to find libraries and programs with nonstandard names/locations.
1973 Report bugs to <https://issues.asterisk.org>.
1978 if test "$ac_init_help" = "recursive"; then
1979 # If there are subdirs, report their specific --help.
1980 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1981 test -d "$ac_dir" ||
1982 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1987 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1989 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1990 # A ".." for each directory in $ac_dir_suffix.
1991 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1992 case $ac_top_builddir_sub in
1993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1997 ac_abs_top_builddir=$ac_pwd
1998 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1999 # for backward compatibility:
2000 ac_top_builddir=$ac_top_build_prefix
2003 .) # We are building in place.
2005 ac_top_srcdir=$ac_top_builddir_sub
2006 ac_abs_top_srcdir=$ac_pwd ;;
2007 [\\/]* | ?:[\\/]* ) # Absolute name.
2008 ac_srcdir=$srcdir$ac_dir_suffix;
2009 ac_top_srcdir=$srcdir
2010 ac_abs_top_srcdir=$srcdir ;;
2012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2013 ac_top_srcdir=$ac_top_build_prefix$srcdir
2014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2016 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2018 cd "$ac_dir" || { ac_status=$?; continue; }
2019 # Check for guested configure.
2020 if test -f "$ac_srcdir/configure.gnu"; then
2022 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2023 elif test -f "$ac_srcdir/configure"; then
2025 $SHELL "$ac_srcdir/configure" --help=recursive
2027 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2029 cd "$ac_pwd" || { ac_status=$?; break; }
2033 test -n "$ac_init_help" && exit $ac_status
2034 if $ac_init_version; then
2036 asterisk configure trunk
2037 generated by GNU Autoconf 2.65
2039 Copyright (C) 2009 Free Software Foundation, Inc.
2040 This configure script is free software; the Free Software Foundation
2041 gives unlimited permission to copy, distribute and modify it.
2048 ## ------------------------ ##
2049 ## Autoconf initialization. ##
2050 ## ------------------------ ##
2052 # ac_fn_c_try_compile LINENO
2053 # --------------------------
2054 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2055 ac_fn_c_try_compile ()
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 rm -f conftest.$ac_objext
2059 if { { ac_try="$ac_compile"
2061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2062 *) ac_try_echo=$ac_try;;
2064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2065 $as_echo "$ac_try_echo"; } >&5
2066 (eval "$ac_compile") 2>conftest.err
2068 if test -s conftest.err; then
2069 grep -v '^ *+' conftest.err >conftest.er1
2070 cat conftest.er1 >&5
2071 mv -f conftest.er1 conftest.err
2073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2074 test $ac_status = 0; } && {
2075 test -z "$ac_c_werror_flag" ||
2076 test ! -s conftest.err
2077 } && test -s conftest.$ac_objext; then :
2080 $as_echo "$as_me: failed program was:" >&5
2081 sed 's/^/| /' conftest.$ac_ext >&5
2085 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086 as_fn_set_status $ac_retval
2088 } # ac_fn_c_try_compile
2090 # ac_fn_c_try_cpp LINENO
2091 # ----------------------
2092 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 if { { ac_try="$ac_cpp conftest.$ac_ext"
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102 $as_echo "$ac_try_echo"; } >&5
2103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2105 if test -s conftest.err; then
2106 grep -v '^ *+' conftest.err >conftest.er1
2107 cat conftest.er1 >&5
2108 mv -f conftest.er1 conftest.err
2110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111 test $ac_status = 0; } >/dev/null && {
2112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2113 test ! -s conftest.err
2117 $as_echo "$as_me: failed program was:" >&5
2118 sed 's/^/| /' conftest.$ac_ext >&5
2122 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2123 as_fn_set_status $ac_retval
2127 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2128 # -------------------------------------------------------
2129 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2130 # the include files in INCLUDES and setting the cache variable VAR
2132 ac_fn_c_check_header_mongrel ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2137 $as_echo_n "checking for $2... " >&6; }
2138 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2139 $as_echo_n "(cached) " >&6
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143 $as_echo "$ac_res" >&6; }
2145 # Is the header compilable?
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2147 $as_echo_n "checking $2 usability... " >&6; }
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_header_compiler=yes
2156 ac_header_compiler=no
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2160 $as_echo "$ac_header_compiler" >&6; }
2162 # Is the header present?
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2164 $as_echo_n "checking $2 presence... " >&6; }
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 if ac_fn_c_try_cpp "$LINENO"; then :
2170 ac_header_preproc=yes
2172 ac_header_preproc=no
2174 rm -f conftest.err conftest.$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2176 $as_echo "$ac_header_preproc" >&6; }
2178 # So? What about this header?
2179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2182 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2184 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2188 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2190 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2192 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2194 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2196 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2198 ## ------------------------------------------ ##
2199 ## Report this to https://issues.asterisk.org ##
2200 ## ------------------------------------------ ##
2202 ) | sed "s/^/$as_me: WARNING: /" >&2
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206 $as_echo_n "checking for $2... " >&6; }
2207 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2208 $as_echo_n "(cached) " >&6
2210 eval "$3=\$ac_header_compiler"
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2218 } # ac_fn_c_check_header_mongrel
2220 # ac_fn_c_try_run LINENO
2221 # ----------------------
2222 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2223 # that executables *can* be run.
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 if { { ac_try="$ac_link"
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_link") 2>&5
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2238 { { case "(($ac_try" in
2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2240 *) ac_try_echo=$ac_try;;
2242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2243 $as_echo "$ac_try_echo"; } >&5
2244 (eval "$ac_try") 2>&5
2246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2247 test $ac_status = 0; }; }; then :
2250 $as_echo "$as_me: program exited with status $ac_status" >&5
2251 $as_echo "$as_me: failed program was:" >&5
2252 sed 's/^/| /' conftest.$ac_ext >&5
2254 ac_retval=$ac_status
2256 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2257 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2258 as_fn_set_status $ac_retval
2262 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2263 # -------------------------------------------------------
2264 # Tests whether HEADER exists and can be compiled using the include files in
2265 # INCLUDES, setting the cache variable VAR accordingly.
2266 ac_fn_c_check_header_compile ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2272 $as_echo_n "(cached) " >&6
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2279 if ac_fn_c_try_compile "$LINENO"; then :
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2291 } # ac_fn_c_check_header_compile
2293 # ac_fn_cxx_try_compile LINENO
2294 # ----------------------------
2295 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2296 ac_fn_cxx_try_compile ()
2298 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2299 rm -f conftest.$ac_objext
2300 if { { ac_try="$ac_compile"
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_compile") 2>conftest.err
2309 if test -s conftest.err; then
2310 grep -v '^ *+' conftest.err >conftest.er1
2311 cat conftest.er1 >&5
2312 mv -f conftest.er1 conftest.err
2314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2315 test $ac_status = 0; } && {
2316 test -z "$ac_cxx_werror_flag" ||
2317 test ! -s conftest.err
2318 } && test -s conftest.$ac_objext; then :
2321 $as_echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2326 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2327 as_fn_set_status $ac_retval
2329 } # ac_fn_cxx_try_compile
2331 # ac_fn_cxx_try_cpp LINENO
2332 # ------------------------
2333 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2334 ac_fn_cxx_try_cpp ()
2336 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2337 if { { ac_try="$ac_cpp conftest.$ac_ext"
2339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2340 *) ac_try_echo=$ac_try;;
2342 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2343 $as_echo "$ac_try_echo"; } >&5
2344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2346 if test -s conftest.err; then
2347 grep -v '^ *+' conftest.err >conftest.er1
2348 cat conftest.er1 >&5
2349 mv -f conftest.er1 conftest.err
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } >/dev/null && {
2353 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2354 test ! -s conftest.err
2358 $as_echo "$as_me: failed program was:" >&5
2359 sed 's/^/| /' conftest.$ac_ext >&5
2363 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2364 as_fn_set_status $ac_retval
2366 } # ac_fn_cxx_try_cpp
2368 # ac_fn_c_try_link LINENO
2369 # -----------------------
2370 # Try to link conftest.$ac_ext, and return whether this succeeded.
2373 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2374 rm -f conftest.$ac_objext conftest$ac_exeext
2375 if { { ac_try="$ac_link"
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2381 $as_echo "$ac_try_echo"; } >&5
2382 (eval "$ac_link") 2>conftest.err
2384 if test -s conftest.err; then
2385 grep -v '^ *+' conftest.err >conftest.er1
2386 cat conftest.er1 >&5
2387 mv -f conftest.er1 conftest.err
2389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2390 test $ac_status = 0; } && {
2391 test -z "$ac_c_werror_flag" ||
2392 test ! -s conftest.err
2393 } && test -s conftest$ac_exeext && {
2394 test "$cross_compiling" = yes ||
2395 $as_test_x conftest$ac_exeext
2399 $as_echo "$as_me: failed program was:" >&5
2400 sed 's/^/| /' conftest.$ac_ext >&5
2404 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2405 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2406 # interfere with the next link command; also delete a directory that is
2407 # left behind by Apple's compiler. We do this before executing the actions.
2408 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410 as_fn_set_status $ac_retval
2412 } # ac_fn_c_try_link
2414 # ac_fn_c_check_func LINENO FUNC VAR
2415 # ----------------------------------
2416 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2417 ac_fn_c_check_func ()
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2421 $as_echo_n "checking for $2... " >&6; }
2422 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2423 $as_echo_n "(cached) " >&6
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2427 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2428 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2429 #define $2 innocuous_$2
2431 /* System header to define __stub macros and hopefully few prototypes,
2432 which can conflict with char $2 (); below.
2433 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2434 <limits.h> exists even on freestanding compilers. */
2437 # include <limits.h>
2439 # include <assert.h>
2444 /* Override any GCC internal prototype to avoid an error.
2445 Use char because int might match the return type of a GCC
2446 builtin and then its argument prototype would still apply. */
2451 /* The GNU C library defines this for functions which it implements
2452 to always fail with ENOSYS. Some functions are actually named
2453 something starting with __ and the normal name is an alias. */
2454 #if defined __stub_$2 || defined __stub___$2
2466 if ac_fn_c_try_link "$LINENO"; then :
2471 rm -f core conftest.err conftest.$ac_objext \
2472 conftest$ac_exeext conftest.$ac_ext
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479 } # ac_fn_c_check_func
2481 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2482 # -------------------------------------------
2483 # Tests whether TYPE exists after having included INCLUDES, setting cache
2484 # variable VAR accordingly.
2485 ac_fn_c_check_type ()
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2489 $as_echo_n "checking for $2... " >&6; }
2490 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2491 $as_echo_n "(cached) " >&6
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2506 if ac_fn_c_try_compile "$LINENO"; then :
2507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2508 /* end confdefs.h. */
2519 if ac_fn_c_try_compile "$LINENO"; then :
2524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2530 $as_echo "$ac_res" >&6; }
2531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2533 } # ac_fn_c_check_type
2535 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2536 # ----------------------------------------------------
2537 # Tries to find if the field MEMBER exists in type AGGR, after including
2538 # INCLUDES, setting cache variable VAR accordingly.
2539 ac_fn_c_check_member ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2543 $as_echo_n "checking for $2.$3... " >&6; }
2544 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2545 $as_echo_n "(cached) " >&6
2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2548 /* end confdefs.h. */
2560 if ac_fn_c_try_compile "$LINENO"; then :
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2570 if (sizeof ac_aggr.$3)
2576 if ac_fn_c_try_compile "$LINENO"; then :
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 $as_echo "$ac_res" >&6; }
2588 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2590 } # ac_fn_c_check_member
2592 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2593 # --------------------------------------------
2594 # Tries to find the compile-time value of EXPR in a program that includes
2595 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2597 ac_fn_c_compute_int ()
2599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2600 if test "$cross_compiling" = yes; then
2601 # Depending upon the size, compute the lo and hi bounds.
2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h. */
2608 static int test_array [1 - 2 * !(($2) >= 0)];
2615 if ac_fn_c_try_compile "$LINENO"; then :
2618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2619 /* end confdefs.h. */
2624 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2631 if ac_fn_c_try_compile "$LINENO"; then :
2632 ac_hi=$ac_mid; break
2634 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2635 if test $ac_lo -le $ac_mid; then
2639 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2650 static int test_array [1 - 2 * !(($2) < 0)];
2657 if ac_fn_c_try_compile "$LINENO"; then :
2660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661 /* end confdefs.h. */
2666 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2673 if ac_fn_c_try_compile "$LINENO"; then :
2674 ac_lo=$ac_mid; break
2676 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2677 if test $ac_mid -le $ac_hi; then
2681 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2691 # Binary search between lo and hi bounds.
2692 while test "x$ac_lo" != "x$ac_hi"; do
2693 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h. */
2700 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2707 if ac_fn_c_try_compile "$LINENO"; then :
2710 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2722 static long int longval () { return $2; }
2723 static unsigned long int ulongval () { return $2; }
2730 FILE *f = fopen ("conftest.val", "w");
2735 long int i = longval ();
2738 fprintf (f, "%ld", i);
2742 unsigned long int i = ulongval ();
2745 fprintf (f, "%lu", i);
2747 /* Do not output a trailing newline, as this causes \r\n confusion
2748 on some platforms. */
2749 return ferror (f) || fclose (f) != 0;
2755 if ac_fn_c_try_run "$LINENO"; then :
2756 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2761 conftest.$ac_objext conftest.beam conftest.$ac_ext
2765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2766 as_fn_set_status $ac_retval
2768 } # ac_fn_c_compute_int
2770 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2771 # ---------------------------------------------------------
2772 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2773 # the include files in INCLUDES and setting the cache variable VAR
2775 ac_fn_cxx_check_header_mongrel ()
2777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2780 $as_echo_n "checking for $2... " >&6; }
2781 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2782 $as_echo_n "(cached) " >&6
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2786 $as_echo "$ac_res" >&6; }
2788 # Is the header compilable?
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2790 $as_echo_n "checking $2 usability... " >&6; }
2791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2792 /* end confdefs.h. */
2796 if ac_fn_cxx_try_compile "$LINENO"; then :
2797 ac_header_compiler=yes
2799 ac_header_compiler=no
2801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2803 $as_echo "$ac_header_compiler" >&6; }
2805 # Is the header present?
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2807 $as_echo_n "checking $2 presence... " >&6; }
2808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2809 /* end confdefs.h. */
2812 if ac_fn_cxx_try_cpp "$LINENO"; then :
2813 ac_header_preproc=yes
2815 ac_header_preproc=no
2817 rm -f conftest.err conftest.$ac_ext
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2819 $as_echo "$ac_header_preproc" >&6; }
2821 # So? What about this header?
2822 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2825 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2827 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2831 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2833 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2835 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2837 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2839 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2841 ## ------------------------------------------ ##
2842 ## Report this to https://issues.asterisk.org ##
2843 ## ------------------------------------------ ##
2845 ) | sed "s/^/$as_me: WARNING: /" >&2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2849 $as_echo_n "checking for $2... " >&6; }
2850 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2851 $as_echo_n "(cached) " >&6
2853 eval "$3=\$ac_header_compiler"
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2857 $as_echo "$ac_res" >&6; }
2859 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2861 } # ac_fn_cxx_check_header_mongrel
2863 # ac_fn_cxx_try_link LINENO
2864 # -------------------------
2865 # Try to link conftest.$ac_ext, and return whether this succeeded.
2866 ac_fn_cxx_try_link ()
2868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2869 rm -f conftest.$ac_objext conftest$ac_exeext
2870 if { { ac_try="$ac_link"
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2876 $as_echo "$ac_try_echo"; } >&5
2877 (eval "$ac_link") 2>conftest.err
2879 if test -s conftest.err; then
2880 grep -v '^ *+' conftest.err >conftest.er1
2881 cat conftest.er1 >&5
2882 mv -f conftest.er1 conftest.err
2884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2885 test $ac_status = 0; } && {
2886 test -z "$ac_cxx_werror_flag" ||
2887 test ! -s conftest.err
2888 } && test -s conftest$ac_exeext && {
2889 test "$cross_compiling" = yes ||
2890 $as_test_x conftest$ac_exeext
2894 $as_echo "$as_me: failed program was:" >&5
2895 sed 's/^/| /' conftest.$ac_ext >&5
2899 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2900 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2901 # interfere with the next link command; also delete a directory that is
2902 # left behind by Apple's compiler. We do this before executing the actions.
2903 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2904 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2905 as_fn_set_status $ac_retval
2907 } # ac_fn_cxx_try_link
2909 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2910 # ---------------------------------------------------------
2911 # Tests whether HEADER exists and can be compiled using the include files in
2912 # INCLUDES, setting the cache variable VAR accordingly.
2913 ac_fn_cxx_check_header_compile ()
2915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2917 $as_echo_n "checking for $2... " >&6; }
2918 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2919 $as_echo_n "(cached) " >&6
2921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2922 /* end confdefs.h. */
2926 if ac_fn_cxx_try_compile "$LINENO"; then :
2931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2935 $as_echo "$ac_res" >&6; }
2936 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2938 } # ac_fn_cxx_check_header_compile
2939 cat >config.log <<_ACEOF
2940 This file contains any messages produced by compilers while
2941 running configure, to aid debugging if configure makes a mistake.
2943 It was created by asterisk $as_me trunk, which was
2944 generated by GNU Autoconf 2.65. Invocation command line was
2956 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2957 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2958 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2959 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2960 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2962 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2963 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2965 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2966 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2967 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2968 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2969 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2970 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2971 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 test -z "$as_dir" && as_dir=.
2980 $as_echo "PATH: $as_dir"
2996 # Keep a trace of the command line.
2997 # Strip out --no-create and --no-recursion so they do not pile up.
2998 # Strip out --silent because we don't want to record it for future runs.
2999 # Also quote any args containing shell meta-characters.
3000 # Make two passes to allow for proper duplicate-argument suppression.
3004 ac_must_keep_next=false
3010 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3012 | -silent | --silent | --silen | --sile | --sil)
3015 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3018 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3020 as_fn_append ac_configure_args1 " '$ac_arg'"
3021 if test $ac_must_keep_next = true; then
3022 ac_must_keep_next=false # Got value, back to normal.
3025 *=* | --config-cache | -C | -disable-* | --disable-* \
3026 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3027 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3028 | -with-* | --with-* | -without-* | --without-* | --x)
3029 case "$ac_configure_args0 " in
3030 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3033 -* ) ac_must_keep_next=true ;;
3036 as_fn_append ac_configure_args " '$ac_arg'"
3041 { ac_configure_args0=; unset ac_configure_args0;}
3042 { ac_configure_args1=; unset ac_configure_args1;}
3044 # When interrupted or exit'd, cleanup temporary files, and complete
3045 # config.log. We remove comments because anyway the quotes in there
3046 # would cause problems or look ugly.
3047 # WARNING: Use '\'' to represent an apostrophe within the trap.
3048 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3049 trap 'exit_status=$?
3050 # Save into config.log some information that might help in debugging.
3055 ## ---------------- ##
3056 ## Cache variables. ##
3057 ## ---------------- ##
3060 # The following way of writing the cache mishandles newlines in values,
3062 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3063 eval ac_val=\$$ac_var
3067 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3068 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3071 _ | IFS | as_nl) ;; #(
3072 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3073 *) { eval $ac_var=; unset $ac_var;} ;;
3078 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3079 *${as_nl}ac_space=\ *)
3081 "s/'\''/'\''\\\\'\'''\''/g;
3082 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3085 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3093 ## ----------------- ##
3094 ## Output variables. ##
3095 ## ----------------- ##
3098 for ac_var in $ac_subst_vars
3100 eval ac_val=\$$ac_var
3102 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3104 $as_echo "$ac_var='\''$ac_val'\''"
3108 if test -n "$ac_subst_files"; then
3110 ## ------------------- ##
3111 ## File substitutions. ##
3112 ## ------------------- ##
3115 for ac_var in $ac_subst_files
3117 eval ac_val=\$$ac_var
3119 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3121 $as_echo "$ac_var='\''$ac_val'\''"
3126 if test -s confdefs.h; then
3136 test "$ac_signal" != 0 &&
3137 $as_echo "$as_me: caught signal $ac_signal"
3138 $as_echo "$as_me: exit $exit_status"
3140 rm -f core *.core core.conftest.* &&
3141 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3144 for ac_signal in 1 2 13 15; do
3145 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3149 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3150 rm -f -r conftest* confdefs.h
3152 $as_echo "/* confdefs.h */" > confdefs.h
3154 # Predefined preprocessor variables.
3156 cat >>confdefs.h <<_ACEOF
3157 #define PACKAGE_NAME "$PACKAGE_NAME"
3160 cat >>confdefs.h <<_ACEOF
3161 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3164 cat >>confdefs.h <<_ACEOF
3165 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3168 cat >>confdefs.h <<_ACEOF
3169 #define PACKAGE_STRING "$PACKAGE_STRING"
3172 cat >>confdefs.h <<_ACEOF
3173 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3176 cat >>confdefs.h <<_ACEOF
3177 #define PACKAGE_URL "$PACKAGE_URL"
3181 # Let the site file select an alternate cache file if it wants to.
3182 # Prefer an explicitly selected file to automatically selected ones.
3185 if test -n "$CONFIG_SITE"; then
3186 ac_site_file1=$CONFIG_SITE
3187 elif test "x$prefix" != xNONE; then
3188 ac_site_file1=$prefix/share/config.site
3189 ac_site_file2=$prefix/etc/config.site
3191 ac_site_file1=$ac_default_prefix/share/config.site
3192 ac_site_file2=$ac_default_prefix/etc/config.site
3194 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3196 test "x$ac_site_file" = xNONE && continue
3197 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3199 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3200 sed 's/^/| /' "$ac_site_file" >&5
3205 if test -r "$cache_file"; then
3206 # Some versions of bash will fail to source /dev/null (special files
3207 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3208 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3210 $as_echo "$as_me: loading cache $cache_file" >&6;}
3212 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3213 *) . "./$cache_file";;
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3218 $as_echo "$as_me: creating cache $cache_file" >&6;}
3222 as_fn_append ac_header_list " stdlib.h"
3223 as_fn_append ac_header_list " unistd.h"
3224 as_fn_append ac_header_list " sys/param.h"
3225 as_fn_append ac_header_list " utime.h"
3226 # Check that the precious variables saved in the cache have kept the same
3228 ac_cache_corrupted=false
3229 for ac_var in $ac_precious_vars; do
3230 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3231 eval ac_new_set=\$ac_env_${ac_var}_set
3232 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3233 eval ac_new_val=\$ac_env_${ac_var}_value
3234 case $ac_old_set,$ac_new_set in
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3237 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3238 ac_cache_corrupted=: ;;
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3241 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3242 ac_cache_corrupted=: ;;
3245 if test "x$ac_old_val" != "x$ac_new_val"; then
3246 # differences in whitespace do not lead to failure.
3247 ac_old_val_w=`echo x $ac_old_val`
3248 ac_new_val_w=`echo x $ac_new_val`
3249 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3251 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3252 ac_cache_corrupted=:
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3255 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3256 eval $ac_var=\$ac_old_val
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3259 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3261 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3264 # Pass precious variables to config.status.
3265 if test "$ac_new_set" = set; then
3267 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3268 *) ac_arg=$ac_var=$ac_new_val ;;
3270 case " $ac_configure_args " in
3271 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3272 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3276 if $ac_cache_corrupted; then
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3280 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3281 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3283 ## -------------------- ##
3284 ## Main body of script. ##
3285 ## -------------------- ##
3288 ac_cpp='$CPP $CPPFLAGS'
3289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3295 # cross-compile macros
3297 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3298 for ac_t in install-sh install.sh shtool; do
3299 if test -f "$ac_dir/$ac_t"; then
3301 ac_install_sh="$ac_aux_dir/$ac_t -c"
3306 if test -z "$ac_aux_dir"; then
3307 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3310 # These three variables are undocumented and unsupported,
3311 # and are intended to be withdrawn in a future Autoconf release.
3312 # They can cause serious problems if a builder's source tree is in a directory
3313 # whose full name contains unusual characters.
3314 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3315 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3316 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3319 # Make sure we can run config.sub.
3320 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3321 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3324 $as_echo_n "checking build system type... " >&6; }
3325 if test "${ac_cv_build+set}" = set; then :
3326 $as_echo_n "(cached) " >&6
3328 ac_build_alias=$build_alias
3329 test "x$ac_build_alias" = x &&
3330 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3331 test "x$ac_build_alias" = x &&
3332 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3333 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3334 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3338 $as_echo "$ac_cv_build" >&6; }
3339 case $ac_cv_build in
3341 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3344 ac_save_IFS=$IFS; IFS='-'
3350 # Remember, the first character of IFS is used to create $*,
3351 # except with old shells:
3354 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3358 $as_echo_n "checking host system type... " >&6; }
3359 if test "${ac_cv_host+set}" = set; then :
3360 $as_echo_n "(cached) " >&6
3362 if test "x$host_alias" = x; then
3363 ac_cv_host=$ac_cv_build
3365 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3366 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3371 $as_echo "$ac_cv_host" >&6; }
3374 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3377 ac_save_IFS=$IFS; IFS='-'
3383 # Remember, the first character of IFS is used to create $*,
3384 # except with old shells:
3387 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3391 # check existence of the package
3395 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3396 for ac_t in install-sh install.sh shtool; do
3397 if test -f "$ac_dir/$ac_t"; then
3399 ac_install_sh="$ac_aux_dir/$ac_t -c"
3404 if test -z "$ac_aux_dir"; then
3405 as_fn_error "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3408 # These three variables are undocumented and unsupported,
3409 # and are intended to be withdrawn in a future Autoconf release.
3410 # They can cause serious problems if a builder's source tree is in a directory
3411 # whose full name contains unusual characters.
3412 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3413 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3414 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3421 # preserve any CFLAGS or LDFLAGS that may be set
3422 # NOTE: This must be done before calling any macros that end up
3423 # calling AC_PROG_CC or the like, since they will set a default
3424 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3425 # we don't want those default flags to be carried over into the
3426 # rest of the build system since we have other means of controlling
3427 # debugging symbol generation and optimization.
3428 CONFIG_CFLAGS="${CFLAGS}"
3429 CONFIG_LDFLAGS="${LDFLAGS}"
3433 # specify output header file
3434 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3437 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3438 # other macro that uses the C compiler, or the default order will be used.
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 if test -n "$ac_tool_prefix"; then
3445 for ac_prog in gcc cc
3447 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3448 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3450 $as_echo_n "checking for $ac_word... " >&6; }
3451 if test "${ac_cv_prog_CC+set}" = set; then :
3452 $as_echo_n "(cached) " >&6
3454 if test -n "$CC"; then
3455 ac_cv_prog_CC="$CC" # Let the user override the test.
3457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3461 test -z "$as_dir" && as_dir=.
3462 for ac_exec_ext in '' $ac_executable_extensions; do
3463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 if test -n "$CC"; then
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3477 $as_echo "$CC" >&6; }
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3480 $as_echo "no" >&6; }
3484 test -n "$CC" && break
3487 if test -z "$CC"; then
3489 for ac_prog in gcc cc
3491 # Extract the first word of "$ac_prog", so it can be a program name with args.
3492 set dummy $ac_prog; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3498 if test -n "$ac_ct_CC"; then
3499 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_ac_ct_CC="$ac_prog"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3519 if test -n "$ac_ct_CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3521 $as_echo "$ac_ct_CC" >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3528 test -n "$ac_ct_CC" && break
3531 if test "x$ac_ct_CC" = x; then
3534 case $cross_compiling:$ac_tool_warned in
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3538 ac_tool_warned=yes ;;
3545 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3547 as_fn_error "no acceptable C compiler found in \$PATH
3548 See \`config.log' for more details." "$LINENO" 5; }
3550 # Provide some information about the compiler.
3551 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3554 for ac_option in --version -v -V -qversion; do
3555 { { ac_try="$ac_compiler $ac_option >&5"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3564 if test -s conftest.err; then
3566 ... rest of stderr output deleted ...
3567 10q' conftest.err >conftest.er1
3568 cat conftest.er1 >&5
3570 rm -f conftest.er1 conftest.err
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }
3575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3576 /* end confdefs.h. */
3586 ac_clean_files_save=$ac_clean_files
3587 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3588 # Try to create an executable without -o first, disregard a.out.
3589 # It will help us diagnose broken compilers, and finding out an intuition
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3592 $as_echo_n "checking whether the C compiler works... " >&6; }
3593 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3595 # The possible output files:
3596 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3599 for ac_file in $ac_files
3602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3603 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3608 if { { ac_try="$ac_link_default"
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_link_default") 2>&5
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; then :
3619 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3620 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3621 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3622 # so that the user can short-circuit this test for compilers unknown to
3624 for ac_file in $ac_files ''
3626 test -f "$ac_file" || continue
3628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3631 # We found the default executable, but exeext='' is most
3635 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3637 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3639 # We set ac_cv_exeext here because the later test for it is not
3640 # safe: cross compilers may not add the suffix if given an `-o'
3641 # argument, so we may need to know it at that point already.
3642 # Even if this section looks crufty: it has the advantage of
3649 test "$ac_cv_exeext" = no && ac_cv_exeext=
3654 if test -z "$ac_file"; then :
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 { as_fn_set_status 77
3663 as_fn_error "C compiler cannot create executables
3664 See \`config.log' for more details." "$LINENO" 5; }; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3667 $as_echo "yes" >&6; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3670 $as_echo_n "checking for C compiler default output file name... " >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3672 $as_echo "$ac_file" >&6; }
3673 ac_exeext=$ac_cv_exeext
3675 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3676 ac_clean_files=$ac_clean_files_save
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3678 $as_echo_n "checking for suffix of executables... " >&6; }
3679 if { { ac_try="$ac_link"
3681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_link") 2>&5
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; then :
3690 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3691 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3692 # work properly (i.e., refer to `conftest.exe'), while it won't with
3694 for ac_file in conftest.exe conftest conftest.*; do
3695 test -f "$ac_file" || continue
3697 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3698 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error "cannot compute suffix of executables: cannot compile and link
3707 See \`config.log' for more details." "$LINENO" 5; }
3709 rm -f conftest conftest$ac_cv_exeext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3711 $as_echo "$ac_cv_exeext" >&6; }
3713 rm -f conftest.$ac_ext
3714 EXEEXT=$ac_cv_exeext
3716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3722 FILE *f = fopen ("conftest.out", "w");
3723 return ferror (f) || fclose (f) != 0;
3729 ac_clean_files="$ac_clean_files conftest.out"
3730 # Check that the compiler produces executables we can run. If not, either
3731 # the compiler is broken, or we cross compile.
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3733 $as_echo_n "checking whether we are cross compiling... " >&6; }
3734 if test "$cross_compiling" != yes; then
3735 { { ac_try="$ac_link"
3737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_link") 2>&5
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }
3746 if { ac_try='./conftest$ac_cv_exeext'
3747 { { case "(($ac_try" in
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_try") 2>&5
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; }; then
3759 if test "$cross_compiling" = maybe; then
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error "cannot run C compiled programs.
3765 If you meant to cross compile, use \`--host'.
3766 See \`config.log' for more details." "$LINENO" 5; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3771 $as_echo "$cross_compiling" >&6; }
3773 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3774 ac_clean_files=$ac_clean_files_save
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3776 $as_echo_n "checking for suffix of object files... " >&6; }
3777 if test "${ac_cv_objext+set}" = set; then :
3778 $as_echo_n "(cached) " >&6
3780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 rm -f conftest.o conftest.obj
3792 if { { ac_try="$ac_compile"
3794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_compile") 2>&5
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }; then :
3803 for ac_file in conftest.o conftest.obj conftest.*; do
3804 test -f "$ac_file" || continue;
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error "cannot compute suffix of object files: cannot compile
3818 See \`config.log' for more details." "$LINENO" 5; }
3820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3823 $as_echo "$ac_cv_objext" >&6; }
3824 OBJEXT=$ac_cv_objext
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3827 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3828 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3845 if ac_fn_c_try_compile "$LINENO"; then :
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3855 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3856 if test $ac_compiler_gnu = yes; then
3861 ac_test_CFLAGS=${CFLAGS+set}
3862 ac_save_CFLAGS=$CFLAGS
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3864 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3865 if test "${ac_cv_prog_cc_g+set}" = set; then :
3866 $as_echo_n "(cached) " >&6
3868 ac_save_c_werror_flag=$ac_c_werror_flag
3869 ac_c_werror_flag=yes
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3883 if ac_fn_c_try_compile "$LINENO"; then :
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3898 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3914 if ac_fn_c_try_compile "$LINENO"; then :
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 ac_c_werror_flag=$ac_save_c_werror_flag
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3925 $as_echo "$ac_cv_prog_cc_g" >&6; }
3926 if test "$ac_test_CFLAGS" = set; then
3927 CFLAGS=$ac_save_CFLAGS
3928 elif test $ac_cv_prog_cc_g = yes; then
3929 if test "$GCC" = yes; then
3935 if test "$GCC" = yes; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3942 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3943 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3944 $as_echo_n "(cached) " >&6
3946 ac_cv_prog_cc_c89=no
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3952 #include <sys/types.h>
3953 #include <sys/stat.h>
3954 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3955 struct buf { int x; };
3956 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3957 static char *e (p, i)
3963 static char *f (char * (*g) (char **, int), char **p, ...)
3968 s = g (p, va_arg (v,int));
3973 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3974 function prototypes and stuff, but not '\xHH' hex character constants.
3975 These don't provoke an error unfortunately, instead are silently treated
3976 as 'x'. The following induces an error, until -std is added to get
3977 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3978 array size at least. It's necessary to write '\x00'==0 to get something
3979 that's true only with -std. */
3980 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3982 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3983 inside strings and character constants. */
3985 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3987 int test (int i, double x);
3988 struct s1 {int (*f) (int a);};
3989 struct s2 {int (*f) (double a);};
3990 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3996 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4001 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4002 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4004 CC="$ac_save_CC $ac_arg"
4005 if ac_fn_c_try_compile "$LINENO"; then :
4006 ac_cv_prog_cc_c89=$ac_arg
4008 rm -f core conftest.err conftest.$ac_objext
4009 test "x$ac_cv_prog_cc_c89" != "xno" && break
4011 rm -f conftest.$ac_ext
4016 case "x$ac_cv_prog_cc_c89" in
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4019 $as_echo "none needed" >&6; } ;;
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4022 $as_echo "unsupported" >&6; } ;;
4024 CC="$CC $ac_cv_prog_cc_c89"
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4026 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4028 if test "x$ac_cv_prog_cc_c89" != xno; then :
4033 ac_cpp='$CPP $CPPFLAGS'
4034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4046 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4047 # On Suns, sometimes $CPP names a directory.
4048 if test -n "$CPP" && test -d "$CPP"; then
4051 if test -z "$CPP"; then
4052 if test "${ac_cv_prog_CPP+set}" = set; then :
4053 $as_echo_n "(cached) " >&6
4055 # Double quotes because CPP needs to be expanded
4056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4059 for ac_c_preproc_warn_flag in '' yes
4061 # Use a header file that comes with gcc, so configuring glibc
4062 # with a fresh cross-compiler works.
4063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4064 # <limits.h> exists even on freestanding compilers.
4065 # On the NeXT, cc -E runs the code through the compiler's parser,
4066 # not just through cpp. "Syntax error" is here to catch this case.
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4070 # include <limits.h>
4072 # include <assert.h>
4076 if ac_fn_c_try_cpp "$LINENO"; then :
4079 # Broken: fails on valid input.
4082 rm -f conftest.err conftest.$ac_ext
4084 # OK, works on sane cases. Now check whether nonexistent headers
4085 # can be detected and how.
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087 /* end confdefs.h. */
4088 #include <ac_nonexistent.h>
4090 if ac_fn_c_try_cpp "$LINENO"; then :
4091 # Broken: success on invalid input.
4094 # Passes both tests.
4098 rm -f conftest.err conftest.$ac_ext
4101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4102 rm -f conftest.err conftest.$ac_ext
4103 if $ac_preproc_ok; then :
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4116 $as_echo "$CPP" >&6; }
4118 for ac_c_preproc_warn_flag in '' yes
4120 # Use a header file that comes with gcc, so configuring glibc
4121 # with a fresh cross-compiler works.
4122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4123 # <limits.h> exists even on freestanding compilers.
4124 # On the NeXT, cc -E runs the code through the compiler's parser,
4125 # not just through cpp. "Syntax error" is here to catch this case.
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4129 # include <limits.h>
4131 # include <assert.h>
4135 if ac_fn_c_try_cpp "$LINENO"; then :
4138 # Broken: fails on valid input.
4141 rm -f conftest.err conftest.$ac_ext
4143 # OK, works on sane cases. Now check whether nonexistent headers
4144 # can be detected and how.
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4147 #include <ac_nonexistent.h>
4149 if ac_fn_c_try_cpp "$LINENO"; then :
4150 # Broken: success on invalid input.
4153 # Passes both tests.
4157 rm -f conftest.err conftest.$ac_ext
4160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4161 rm -f conftest.err conftest.$ac_ext
4162 if $ac_preproc_ok; then :
4165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4167 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4168 See \`config.log' for more details." "$LINENO" 5; }
4172 ac_cpp='$CPP $CPPFLAGS'
4173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4180 if test "${ac_cv_path_GREP+set}" = set; then :
4181 $as_echo_n "(cached) " >&6
4183 if test -z "$GREP"; then
4184 ac_path_GREP_found=false
4185 # Loop through the user's path and test for each of PROGNAME-LIST
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4190 test -z "$as_dir" && as_dir=.
4191 for ac_prog in grep ggrep; do
4192 for ac_exec_ext in '' $ac_executable_extensions; do
4193 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4194 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4195 # Check for GNU ac_path_GREP and select it if it is found.
4196 # Check for GNU $ac_path_GREP
4197 case `"$ac_path_GREP" --version 2>&1` in
4199 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4202 $as_echo_n 0123456789 >"conftest.in"
4205 cat "conftest.in" "conftest.in" >"conftest.tmp"
4206 mv "conftest.tmp" "conftest.in"
4207 cp "conftest.in" "conftest.nl"
4208 $as_echo 'GREP' >> "conftest.nl"
4209 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4211 as_fn_arith $ac_count + 1 && ac_count=$as_val
4212 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4213 # Best one so far, save it but keep looking for a better one
4214 ac_cv_path_GREP="$ac_path_GREP"
4215 ac_path_GREP_max=$ac_count
4217 # 10*(2^10) chars as input seems more than enough
4218 test $ac_count -gt 10 && break
4220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4223 $ac_path_GREP_found && break 3
4228 if test -z "$ac_cv_path_GREP"; then
4229 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4232 ac_cv_path_GREP=$GREP
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4237 $as_echo "$ac_cv_path_GREP" >&6; }
4238 GREP="$ac_cv_path_GREP"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4242 $as_echo_n "checking for egrep... " >&6; }
4243 if test "${ac_cv_path_EGREP+set}" = set; then :
4244 $as_echo_n "(cached) " >&6
4246 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4247 then ac_cv_path_EGREP="$GREP -E"
4249 if test -z "$EGREP"; then
4250 ac_path_EGREP_found=false
4251 # Loop through the user's path and test for each of PROGNAME-LIST
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4256 test -z "$as_dir" && as_dir=.
4257 for ac_prog in egrep; do
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4260 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4261 # Check for GNU ac_path_EGREP and select it if it is found.
4262 # Check for GNU $ac_path_EGREP
4263 case `"$ac_path_EGREP" --version 2>&1` in
4265 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4268 $as_echo_n 0123456789 >"conftest.in"
4271 cat "conftest.in" "conftest.in" >"conftest.tmp"
4272 mv "conftest.tmp" "conftest.in"
4273 cp "conftest.in" "conftest.nl"
4274 $as_echo 'EGREP' >> "conftest.nl"
4275 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4277 as_fn_arith $ac_count + 1 && ac_count=$as_val
4278 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4279 # Best one so far, save it but keep looking for a better one
4280 ac_cv_path_EGREP="$ac_path_EGREP"
4281 ac_path_EGREP_max=$ac_count
4283 # 10*(2^10) chars as input seems more than enough
4284 test $ac_count -gt 10 && break
4286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4289 $ac_path_EGREP_found && break 3
4294 if test -z "$ac_cv_path_EGREP"; then
4295 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4298 ac_cv_path_EGREP=$EGREP
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4304 $as_echo "$ac_cv_path_EGREP" >&6; }
4305 EGREP="$ac_cv_path_EGREP"
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4309 $as_echo_n "checking for ANSI C header files... " >&6; }
4310 if test "${ac_cv_header_stdc+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4328 if ac_fn_c_try_compile "$LINENO"; then :
4329 ac_cv_header_stdc=yes
4331 ac_cv_header_stdc=no
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 if test $ac_cv_header_stdc = yes; then
4336 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4338 /* end confdefs.h. */
4342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4343 $EGREP "memchr" >/dev/null 2>&1; then :
4346 ac_cv_header_stdc=no
4352 if test $ac_cv_header_stdc = yes; then
4353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4355 /* end confdefs.h. */
4359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4360 $EGREP "free" >/dev/null 2>&1; then :
4363 ac_cv_header_stdc=no
4369 if test $ac_cv_header_stdc = yes; then
4370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4371 if test "$cross_compiling" = yes; then :
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4378 #if ((' ' & 0x0FF) == 0x020)
4379 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4380 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4382 # define ISLOWER(c) \
4383 (('a' <= (c) && (c) <= 'i') \
4384 || ('j' <= (c) && (c) <= 'r') \
4385 || ('s' <= (c) && (c) <= 'z'))
4386 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4389 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4394 for (i = 0; i < 256; i++)
4395 if (XOR (islower (i), ISLOWER (i))
4396 || toupper (i) != TOUPPER (i))
4401 if ac_fn_c_try_run "$LINENO"; then :
4404 ac_cv_header_stdc=no
4406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4407 conftest.$ac_objext conftest.beam conftest.$ac_ext
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4413 $as_echo "$ac_cv_header_stdc" >&6; }
4414 if test $ac_cv_header_stdc = yes; then
4416 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4421 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4422 inttypes.h stdint.h unistd.h
4424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4425 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4427 eval as_val=\$$as_ac_Header
4428 if test "x$as_val" = x""yes; then :
4429 cat >>confdefs.h <<_ACEOF
4430 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4439 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4440 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4447 if test "$MINIX" = yes; then
4449 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4452 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4455 $as_echo "#define _MINIX 1" >>confdefs.h
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4461 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4462 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4468 # define __EXTENSIONS__ 1
4469 $ac_includes_default
4478 if ac_fn_c_try_compile "$LINENO"; then :
4479 ac_cv_safe_to_define___extensions__=yes
4481 ac_cv_safe_to_define___extensions__=no
4483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4486 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4487 test $ac_cv_safe_to_define___extensions__ = yes &&
4488 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4490 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4492 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4494 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4496 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4499 # System default paths
4500 astsbindir='${sbindir}'
4501 astetcdir='${sysconfdir}/asterisk'
4502 astheaderdir='${includedir}/asterisk'
4503 astlibdir='${libdir}'
4504 astmoddir='${libdir}/asterisk/modules'
4505 astmandir='${mandir}'
4506 astvarlibdir='${localstatedir}/lib/asterisk'
4507 astdatadir='${astvarlibdir}'
4508 astdbdir='${astvarlibdir}'
4509 astkeydir='${astvarlibdir}'
4510 astspooldir='${localstatedir}/spool/asterisk'
4511 astlogdir='${localstatedir}/log/asterisk'
4512 astvarrundir='${localstatedir}/run/asterisk'
4514 case "${host_os}" in
4516 if test ${prefix} = 'NONE'; then
4517 astvarlibdir='${prefix}/share/asterisk'
4518 astdbdir='${localstatedir}/db/asterisk'
4522 if test ${prefix} = 'NONE'; then
4523 astvarrundir='/Library/Application Support/Asterisk/Run'
4528 case "${host_os}" in
4530 ac_default_prefix=/usr/local
4531 CPPFLAGS=-I/usr/local/include
4532 LDFLAGS=-L/usr/local/lib
4535 ac_default_prefix=/usr/local
4536 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4537 if test ${sysconfdir} = '${prefix}/etc'; then
4538 astetcdir=/etc/asterisk
4540 if test ${mandir} = '${prefix}/man'; then
4541 astmandir=/usr/share/man
4544 CPPFLAGS=-I/usr/local/include
4545 LDFLAGS=-L/usr/local/lib
4548 ac_default_prefix=/usr/local
4549 if test ${prefix} = 'NONE'; then
4550 astmoddir='/Library/Application Support/Asterisk/Modules'
4551 astvarlibdir='/Library/Application Support/Asterisk'
4552 astlogdir=/Library/Logs/Asterisk
4553 astvarrundir='/Library/Application Support/Asterisk/Run'
4556 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4559 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
4563 if test ${prefix} = 'NONE'; then
4564 astetcdir=/var/etc/asterisk
4565 astsbindir=/opt/asterisk/sbin
4566 astlibdir=/opt/asterisk/lib
4567 astmoddir=/opt/asterisk/lib/modules
4568 astheaderdir=/opt/asterisk/include
4569 astmandir=/opt/asterisk/man
4570 astvarlibdir=/var/opt/asterisk
4571 astspooldir=/var/spool/asterisk
4572 astlogdir=/var/log/asterisk
4573 astvarrundir=/var/run/asterisk
4577 ac_default_prefix=/usr
4578 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4579 if test ${sysconfdir} = '${prefix}/etc'; then
4582 if test ${mandir} = '${prefix}/man'; then
4583 mandir=/usr/share/man
4589 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4590 if test ${localstatedir} = '${prefix}/var'; then
4595 BUILD_PLATFORM=${build}
4596 BUILD_CPU=${build_cpu}
4597 BUILD_VENDOR=${build_vendor}
4598 BUILD_OS=${build_os}
4605 HOST_PLATFORM=${host}
4606 HOST_CPU=${host_cpu}
4607 HOST_VENDOR=${host_vendor}
4617 case "${host_os}" in
4653 if test -n "$ac_tool_prefix"; then
4654 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4655 set dummy ${ac_tool_prefix}uname; ac_word=$2
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657 $as_echo_n "checking for $ac_word... " >&6; }
4658 if test "${ac_cv_path_UNAME+set}" = set; then :
4659 $as_echo_n "(cached) " >&6
4663 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4684 UNAME=$ac_cv_path_UNAME
4685 if test -n "$UNAME"; then
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
4687 $as_echo "$UNAME" >&6; }
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4690 $as_echo "no" >&6; }
4695 if test -z "$ac_cv_path_UNAME"; then
4697 # Extract the first word of "uname", so it can be a program name with args.
4698 set dummy uname; ac_word=$2