2 # From configure.ac Revision: 360490 .
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
733 SPEEX_PREPROCESS_INCLUDE
768 PBX_PRI_REVERSE_CHARGE
769 PRI_REVERSE_CHARGE_DIR
770 PRI_REVERSE_CHARGE_INCLUDE
771 PRI_REVERSE_CHARGE_LIB
772 PBX_PRI_SERVICE_MESSAGES
773 PRI_SERVICE_MESSAGES_DIR
774 PRI_SERVICE_MESSAGES_INCLUDE
775 PRI_SERVICE_MESSAGES_LIB
778 PRI_PROG_W_CAUSE_INCLUDE
780 PBX_PRI_INBANDDISCONNECT
781 PRI_INBANDDISCONNECT_DIR
782 PRI_INBANDDISCONNECT_INCLUDE
783 PRI_INBANDDISCONNECT_LIB
786 PRI_SETUP_KEYPAD_INCLUDE
788 PBX_PRI_CALL_REROUTING
789 PRI_CALL_REROUTING_DIR
790 PRI_CALL_REROUTING_INCLUDE
791 PRI_CALL_REROUTING_LIB
794 PRI_CALL_HOLD_INCLUDE
802 PRI_HANGUP_FIX_INCLUDE
814 PRI_AOC_EVENTS_INCLUDE
818 PRI_CALL_WAITING_INCLUDE
830 PRI_DISPLAY_TEXT_INCLUDE
836 PBX_PRI_DATETIME_SEND
837 PRI_DATETIME_SEND_DIR
838 PRI_DATETIME_SEND_INCLUDE
839 PRI_DATETIME_SEND_LIB
840 PBX_PRI_L2_PERSISTENCE
841 PRI_L2_PERSISTENCE_DIR
842 PRI_L2_PERSISTENCE_INCLUDE
843 PRI_L2_PERSISTENCE_LIB
1147 program_transform_name
1160 enable_option_checking
1236 enable_internal_poll
1239 ac_precious_vars='build_alias
1254 # Initialize some variables set by options.
1256 ac_init_version=false
1257 ac_unrecognized_opts=
1258 ac_unrecognized_sep=
1259 # The variables have the same names as the options, with
1260 # dashes changed to underlines.
1261 cache_file=/dev/null
1268 program_transform_name=s,x,x,
1276 # Installation directory options.
1277 # These are left unexpanded so users can "make install exec_prefix=/foo"
1278 # and all the variables that are supposed to be based on exec_prefix
1279 # by default will actually change.
1280 # Use braces instead of parens because sh, perl, etc. also accept them.
1281 # (The list follows the same order as the GNU Coding Standards.)
1282 bindir='${exec_prefix}/bin'
1283 sbindir='${exec_prefix}/sbin'
1284 libexecdir='${exec_prefix}/libexec'
1285 datarootdir='${prefix}/share'
1286 datadir='${datarootdir}'
1287 sysconfdir='${prefix}/etc'
1288 sharedstatedir='${prefix}/com'
1289 localstatedir='${prefix}/var'
1290 includedir='${prefix}/include'
1291 oldincludedir='/usr/include'
1292 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1293 infodir='${datarootdir}/info'
1298 libdir='${exec_prefix}/lib'
1299 localedir='${datarootdir}/locale'
1300 mandir='${datarootdir}/man'
1306 # If the previous option needs an argument, assign it.
1307 if test -n "$ac_prev"; then
1308 eval $ac_prev=\$ac_option
1314 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1318 # Accept the important Cygnus configure options, so we can diagnose typos.
1320 case $ac_dashdash$ac_option in
1324 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1326 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1327 bindir=$ac_optarg ;;
1329 -build | --build | --buil | --bui | --bu)
1330 ac_prev=build_alias ;;
1331 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1332 build_alias=$ac_optarg ;;
1334 -cache-file | --cache-file | --cache-fil | --cache-fi \
1335 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1336 ac_prev=cache_file ;;
1337 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1338 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1339 cache_file=$ac_optarg ;;
1341 --config-cache | -C)
1342 cache_file=config.cache ;;
1344 -datadir | --datadir | --datadi | --datad)
1346 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1347 datadir=$ac_optarg ;;
1349 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1350 | --dataroo | --dataro | --datar)
1351 ac_prev=datarootdir ;;
1352 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1353 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1354 datarootdir=$ac_optarg ;;
1356 -disable-* | --disable-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1360 as_fn_error "invalid feature name: $ac_useropt"
1361 ac_useropt_orig=$ac_useropt
1362 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1365 "enable_$ac_useropt"
1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1368 ac_unrecognized_sep=', ';;
1370 eval enable_$ac_useropt=no ;;
1372 -docdir | --docdir | --docdi | --doc | --do)
1374 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1375 docdir=$ac_optarg ;;
1377 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1379 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1380 dvidir=$ac_optarg ;;
1382 -enable-* | --enable-*)
1383 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1384 # Reject names that are not valid shell variable names.
1385 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1386 as_fn_error "invalid feature name: $ac_useropt"
1387 ac_useropt_orig=$ac_useropt
1388 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1389 case $ac_user_opts in
1391 "enable_$ac_useropt"
1393 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1394 ac_unrecognized_sep=', ';;
1396 eval enable_$ac_useropt=\$ac_optarg ;;
1398 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1399 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1400 | --exec | --exe | --ex)
1401 ac_prev=exec_prefix ;;
1402 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1403 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1404 | --exec=* | --exe=* | --ex=*)
1405 exec_prefix=$ac_optarg ;;
1407 -gas | --gas | --ga | --g)
1408 # Obsolete; use --with-gas.
1411 -help | --help | --hel | --he | -h)
1412 ac_init_help=long ;;
1413 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1414 ac_init_help=recursive ;;
1415 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1416 ac_init_help=short ;;
1418 -host | --host | --hos | --ho)
1419 ac_prev=host_alias ;;
1420 -host=* | --host=* | --hos=* | --ho=*)
1421 host_alias=$ac_optarg ;;
1423 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1425 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1427 htmldir=$ac_optarg ;;
1429 -includedir | --includedir | --includedi | --included | --include \
1430 | --includ | --inclu | --incl | --inc)
1431 ac_prev=includedir ;;
1432 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1433 | --includ=* | --inclu=* | --incl=* | --inc=*)
1434 includedir=$ac_optarg ;;
1436 -infodir | --infodir | --infodi | --infod | --info | --inf)
1438 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1439 infodir=$ac_optarg ;;
1441 -libdir | --libdir | --libdi | --libd)
1443 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1444 libdir=$ac_optarg ;;
1446 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1447 | --libexe | --libex | --libe)
1448 ac_prev=libexecdir ;;
1449 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1450 | --libexe=* | --libex=* | --libe=*)
1451 libexecdir=$ac_optarg ;;
1453 -localedir | --localedir | --localedi | --localed | --locale)
1454 ac_prev=localedir ;;
1455 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1456 localedir=$ac_optarg ;;
1458 -localstatedir | --localstatedir | --localstatedi | --localstated \
1459 | --localstate | --localstat | --localsta | --localst | --locals)
1460 ac_prev=localstatedir ;;
1461 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1462 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1463 localstatedir=$ac_optarg ;;
1465 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1467 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1468 mandir=$ac_optarg ;;
1470 -nfp | --nfp | --nf)
1471 # Obsolete; use --without-fp.
1474 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1475 | --no-cr | --no-c | -n)
1478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1482 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1483 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1484 | --oldin | --oldi | --old | --ol | --o)
1485 ac_prev=oldincludedir ;;
1486 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1487 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1488 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1489 oldincludedir=$ac_optarg ;;
1491 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1493 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1494 prefix=$ac_optarg ;;
1496 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1497 | --program-pre | --program-pr | --program-p)
1498 ac_prev=program_prefix ;;
1499 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1500 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1501 program_prefix=$ac_optarg ;;
1503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1504 | --program-suf | --program-su | --program-s)
1505 ac_prev=program_suffix ;;
1506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1508 program_suffix=$ac_optarg ;;
1510 -program-transform-name | --program-transform-name \
1511 | --program-transform-nam | --program-transform-na \
1512 | --program-transform-n | --program-transform- \
1513 | --program-transform | --program-transfor \
1514 | --program-transfo | --program-transf \
1515 | --program-trans | --program-tran \
1516 | --progr-tra | --program-tr | --program-t)
1517 ac_prev=program_transform_name ;;
1518 -program-transform-name=* | --program-transform-name=* \
1519 | --program-transform-nam=* | --program-transform-na=* \
1520 | --program-transform-n=* | --program-transform-=* \
1521 | --program-transform=* | --program-transfor=* \
1522 | --program-transfo=* | --program-transf=* \
1523 | --program-trans=* | --program-tran=* \
1524 | --progr-tra=* | --program-tr=* | --program-t=*)
1525 program_transform_name=$ac_optarg ;;
1527 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1529 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1530 pdfdir=$ac_optarg ;;
1532 -psdir | --psdir | --psdi | --psd | --ps)
1534 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538 | -silent | --silent | --silen | --sile | --sil)
1541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1545 sbindir=$ac_optarg ;;
1547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1549 | --sharedst | --shareds | --shared | --share | --shar \
1551 ac_prev=sharedstatedir ;;
1552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1556 sharedstatedir=$ac_optarg ;;
1558 -site | --site | --sit)
1560 -site=* | --site=* | --sit=*)
1563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1566 srcdir=$ac_optarg ;;
1568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1569 | --syscon | --sysco | --sysc | --sys | --sy)
1570 ac_prev=sysconfdir ;;
1571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1573 sysconfdir=$ac_optarg ;;
1575 -target | --target | --targe | --targ | --tar | --ta | --t)
1576 ac_prev=target_alias ;;
1577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1578 target_alias=$ac_optarg ;;
1580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1583 -version | --version | --versio | --versi | --vers | -V)
1584 ac_init_version=: ;;
1587 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1588 # Reject names that are not valid shell variable names.
1589 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1590 as_fn_error "invalid package name: $ac_useropt"
1591 ac_useropt_orig=$ac_useropt
1592 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1593 case $ac_user_opts in
1597 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1598 ac_unrecognized_sep=', ';;
1600 eval with_$ac_useropt=\$ac_optarg ;;
1602 -without-* | --without-*)
1603 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1604 # Reject names that are not valid shell variable names.
1605 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1606 as_fn_error "invalid package name: $ac_useropt"
1607 ac_useropt_orig=$ac_useropt
1608 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1609 case $ac_user_opts in
1613 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1614 ac_unrecognized_sep=', ';;
1616 eval with_$ac_useropt=no ;;
1619 # Obsolete; use --with-x.
1622 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1623 | --x-incl | --x-inc | --x-in | --x-i)
1624 ac_prev=x_includes ;;
1625 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1626 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1627 x_includes=$ac_optarg ;;
1629 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1630 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1631 ac_prev=x_libraries ;;
1632 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1633 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1634 x_libraries=$ac_optarg ;;
1636 -*) as_fn_error "unrecognized option: \`$ac_option'
1637 Try \`$0 --help' for more information."
1641 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1642 # Reject names that are not valid shell variable names.
1643 case $ac_envvar in #(
1644 '' | [0-9]* | *[!_$as_cr_alnum]* )
1645 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1647 eval $ac_envvar=\$ac_optarg
1648 export $ac_envvar ;;
1651 # FIXME: should be removed in autoconf 3.0.
1652 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1653 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1654 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1655 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1661 if test -n "$ac_prev"; then
1662 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1663 as_fn_error "missing argument to $ac_option"
1666 if test -n "$ac_unrecognized_opts"; then
1667 case $enable_option_checking in
1669 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1670 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1674 # Check all directory arguments for consistency.
1675 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1676 datadir sysconfdir sharedstatedir localstatedir includedir \
1677 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1678 libdir localedir mandir
1680 eval ac_val=\$$ac_var
1681 # Remove trailing slashes.
1684 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1685 eval $ac_var=\$ac_val;;
1687 # Be sure to have absolute directory names.
1689 [\\/$]* | ?:[\\/]* ) continue;;
1690 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1692 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1695 # There might be people who depend on the old broken behavior: `$host'
1696 # used to hold the argument of --host etc.
1697 # FIXME: To remove some day.
1700 target=$target_alias
1702 # FIXME: To remove some day.
1703 if test "x$host_alias" != x; then
1704 if test "x$build_alias" = x; then
1705 cross_compiling=maybe
1706 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1707 If a cross compiler is detected then cross compile mode will be used." >&2
1708 elif test "x$build_alias" != "x$host_alias"; then
1714 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1716 test "$silent" = yes && exec 6>/dev/null
1719 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1720 ac_ls_di=`ls -di .` &&
1721 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1722 as_fn_error "working directory cannot be determined"
1723 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1724 as_fn_error "pwd does not report name of working directory"
1727 # Find the source files, if location was not specified.
1728 if test -z "$srcdir"; then
1729 ac_srcdir_defaulted=yes
1730 # Try the directory containing this script, then the parent directory.
1731 ac_confdir=`$as_dirname -- "$as_myself" ||
1732 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1733 X"$as_myself" : 'X\(//\)[^/]' \| \
1734 X"$as_myself" : 'X\(//\)$' \| \
1735 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1736 $as_echo X"$as_myself" |
1737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1755 if test ! -r "$srcdir/$ac_unique_file"; then
1759 ac_srcdir_defaulted=no
1761 if test ! -r "$srcdir/$ac_unique_file"; then
1762 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1763 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1765 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1767 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1769 # When building in place, set srcdir=.
1770 if test "$ac_abs_confdir" = "$ac_pwd"; then
1773 # Remove unnecessary trailing slashes from srcdir.
1774 # Double slashes in file names in object file debugging info
1775 # mess up M-x gdb in Emacs.
1777 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1779 for ac_var in $ac_precious_vars; do
1780 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1781 eval ac_env_${ac_var}_value=\$${ac_var}
1782 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1783 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1787 # Report the --help message.
1789 if test "$ac_init_help" = "long"; then
1790 # Omit some internal or obsolete options to make the list less imposing.
1791 # This message is too long to be a string in the A/UX 3.1 sh.
1793 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1795 Usage: $0 [OPTION]... [VAR=VALUE]...
1797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1798 VAR=VALUE. See below for descriptions of some of the useful variables.
1800 Defaults for the options are specified in brackets.
1803 -h, --help display this help and exit
1804 --help=short display options specific to this package
1805 --help=recursive display the short help of all the included packages
1806 -V, --version display version information and exit
1807 -q, --quiet, --silent do not print \`checking...' messages
1808 --cache-file=FILE cache test results in FILE [disabled]
1809 -C, --config-cache alias for \`--cache-file=config.cache'
1810 -n, --no-create do not create output files
1811 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1813 Installation directories:
1814 --prefix=PREFIX install architecture-independent files in PREFIX
1815 [$ac_default_prefix]
1816 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1819 By default, \`make install' will install all the files in
1820 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1821 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1822 for instance \`--prefix=\$HOME'.
1824 For better control, use the options below.
1826 Fine tuning of the installation directories:
1827 --bindir=DIR user executables [EPREFIX/bin]
1828 --sbindir=DIR system admin executables [EPREFIX/sbin]
1829 --libexecdir=DIR program executables [EPREFIX/libexec]
1830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1833 --libdir=DIR object code libraries [EPREFIX/lib]
1834 --includedir=DIR C header files [PREFIX/include]
1835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1836 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1837 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1838 --infodir=DIR info documentation [DATAROOTDIR/info]
1839 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1840 --mandir=DIR man documentation [DATAROOTDIR/man]
1841 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1842 --htmldir=DIR html documentation [DOCDIR]
1843 --dvidir=DIR dvi documentation [DOCDIR]
1844 --pdfdir=DIR pdf documentation [DOCDIR]
1845 --psdir=DIR ps documentation [DOCDIR]
1851 --build=BUILD configure for building on BUILD [guessed]
1852 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1856 if test -n "$ac_init_help"; then
1857 case $ac_init_help in
1858 short | recursive ) echo "Configuration of asterisk trunk:";;
1863 --disable-option-checking ignore unrecognized --enable/--with options
1864 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1865 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1866 --enable-dev-mode Turn on developer mode
1867 --enable-coverage Turn on code coverage tracking (for gcov)
1868 --disable-xmldoc Explicitly disable XML documentation
1869 --disable-largefile omit support for large files
1870 --enable-internal-poll Use Asterisk's poll implementation
1871 --disable-asteriskssl Disable Asterisk's SSL wrapper library
1874 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1875 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1876 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1877 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1878 --with-bfd=PATH use Debug symbol decoding files in PATH
1879 --with-execinfo=PATH use Stack Backtrace files in PATH
1880 --with-bluetooth=PATH use Bluetooth files in PATH
1881 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1882 --with-cpg=PATH use Corosync files in PATH
1883 --with-curses=PATH use curses files in PATH
1884 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1885 --with-dahdi=PATH use DAHDI files in PATH
1886 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1887 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1889 --with-gtk2=PATH use gtk2 files in PATH
1890 --with-gmime=PATH use GMime files in PATH
1891 --with-h323=PATH use OpenH323 files in PATH
1892 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1893 --with-ical=PATH use iCal files in PATH
1894 --with-iconv=PATH use Iconv files in PATH
1895 --with-iksemel=PATH use Iksemel Jabber files in PATH
1896 --with-imap=PATH use UW IMAP Toolkit files in PATH
1897 --with-inotify=PATH use inotify support files in PATH
1898 --with-iodbc=PATH use iODBC files in PATH
1899 --with-isdnnet=PATH use ISDN4Linux files in PATH
1900 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1901 --with-kqueue=PATH use kqueue support files in PATH
1902 --with-ldap=PATH use OpenLDAP files in PATH
1903 --with-libcurl=DIR look for the curl library in DIR
1904 --with-libxml2=PATH use LibXML2 files in PATH
1905 --with-ltdl=PATH use libtool files in PATH
1906 --with-lua=PATH use Lua files in PATH
1907 --with-misdn=PATH use mISDN user files in PATH
1908 --with-mysqlclient=PATH use MySQL client files in PATH
1909 --with-nbs=PATH use Network Broadcast Sound files in PATH
1910 --with-ncurses=PATH use ncurses files in PATH
1911 --with-neon=PATH use neon files in PATH
1912 --with-neon29=PATH use neon29 files in PATH
1913 --with-netsnmp=PATH use Net-SNMP files in PATH
1914 --with-newt=PATH use newt files in PATH
1915 --with-ogg=PATH use OGG files in PATH
1916 --with-openr2=PATH use MFR2 files in PATH
1917 --with-osptk=PATH use OSP Toolkit files in PATH
1918 --with-oss=PATH use Open Sound System files in PATH
1919 --with-postgres=PATH use PostgreSQL files in PATH
1920 --with-popt=PATH use popt files in PATH
1921 --with-portaudio=PATH use PortAudio files in PATH
1922 --with-pri=PATH use ISDN PRI files in PATH
1923 --with-pwlib=PATH use PWlib files in PATH
1924 --with-radius=PATH use Radius Client files in PATH
1925 --with-resample=PATH use LIBRESAMPLE files in PATH
1926 --with-sdl=PATH use Sdl files in PATH
1927 --with-SDL_image=PATH use Sdl Image files in PATH
1928 --with-sounds-cache=PATH
1929 use cached sound tarfiles in PATH
1930 --with-spandsp=PATH use SPANDSP files in PATH
1931 --with-ss7=PATH use ISDN SS7 files in PATH
1932 --with-speex=PATH use Speex files in PATH
1933 --with-speex=PATH use Speex preprocess routines files in PATH
1934 --with-speexdsp=PATH use SpeexDSP files in PATH
1935 --with-sqlite=PATH use SQLite files in PATH
1936 --with-sqlite3=PATH use SQLite files in PATH
1937 --with-srtp=PATH use Secure RTP files in PATH
1938 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1939 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1940 --with-tds=PATH use FreeTDS files in PATH
1941 --with-termcap=PATH use Termcap files in PATH
1942 --with-timerfd=PATH use timerfd files in PATH
1943 --with-tinfo=PATH use Term Info files in PATH
1944 --with-tonezone=PATH use tonezone files in PATH
1945 --with-unixodbc=PATH use unixODBC files in PATH
1946 --with-vorbis=PATH use Vorbis files in PATH
1947 --with-vpb=PATH use Voicetronix API files in PATH
1948 --with-x11=PATH use X11 files in PATH
1949 --with-z=PATH use zlib compression files in PATH
1951 Some influential environment variables:
1952 CC C compiler command
1953 CFLAGS C compiler flags
1954 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1955 nonstandard directory <lib dir>
1956 LIBS libraries to pass to the linker, e.g. -l<library>
1957 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1958 you have headers in a nonstandard directory <include dir>
1960 CXX C++ compiler command
1961 CXXFLAGS C++ compiler flags
1962 CXXCPP C++ preprocessor
1964 Use these variables to override the choices made by `configure' or to help
1965 it to find libraries and programs with nonstandard names/locations.
1967 Report bugs to <https://issues.asterisk.org>.
1972 if test "$ac_init_help" = "recursive"; then
1973 # If there are subdirs, report their specific --help.
1974 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1975 test -d "$ac_dir" ||
1976 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1981 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1983 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1984 # A ".." for each directory in $ac_dir_suffix.
1985 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1986 case $ac_top_builddir_sub in
1987 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1988 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1991 ac_abs_top_builddir=$ac_pwd
1992 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1993 # for backward compatibility:
1994 ac_top_builddir=$ac_top_build_prefix
1997 .) # We are building in place.
1999 ac_top_srcdir=$ac_top_builddir_sub
2000 ac_abs_top_srcdir=$ac_pwd ;;
2001 [\\/]* | ?:[\\/]* ) # Absolute name.
2002 ac_srcdir=$srcdir$ac_dir_suffix;
2003 ac_top_srcdir=$srcdir
2004 ac_abs_top_srcdir=$srcdir ;;
2006 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2007 ac_top_srcdir=$ac_top_build_prefix$srcdir
2008 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2010 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2012 cd "$ac_dir" || { ac_status=$?; continue; }
2013 # Check for guested configure.
2014 if test -f "$ac_srcdir/configure.gnu"; then
2016 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2017 elif test -f "$ac_srcdir/configure"; then
2019 $SHELL "$ac_srcdir/configure" --help=recursive
2021 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2023 cd "$ac_pwd" || { ac_status=$?; break; }
2027 test -n "$ac_init_help" && exit $ac_status
2028 if $ac_init_version; then
2030 asterisk configure trunk
2031 generated by GNU Autoconf 2.65
2033 Copyright (C) 2009 Free Software Foundation, Inc.
2034 This configure script is free software; the Free Software Foundation
2035 gives unlimited permission to copy, distribute and modify it.
2042 ## ------------------------ ##
2043 ## Autoconf initialization. ##
2044 ## ------------------------ ##
2046 # ac_fn_c_try_compile LINENO
2047 # --------------------------
2048 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2049 ac_fn_c_try_compile ()
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 rm -f conftest.$ac_objext
2053 if { { ac_try="$ac_compile"
2055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2056 *) ac_try_echo=$ac_try;;
2058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2059 $as_echo "$ac_try_echo"; } >&5
2060 (eval "$ac_compile") 2>conftest.err
2062 if test -s conftest.err; then
2063 grep -v '^ *+' conftest.err >conftest.er1
2064 cat conftest.er1 >&5
2065 mv -f conftest.er1 conftest.err
2067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2068 test $ac_status = 0; } && {
2069 test -z "$ac_c_werror_flag" ||
2070 test ! -s conftest.err
2071 } && test -s conftest.$ac_objext; then :
2074 $as_echo "$as_me: failed program was:" >&5
2075 sed 's/^/| /' conftest.$ac_ext >&5
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2080 as_fn_set_status $ac_retval
2082 } # ac_fn_c_try_compile
2084 # ac_fn_c_try_cpp LINENO
2085 # ----------------------
2086 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if { { ac_try="$ac_cpp conftest.$ac_ext"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2099 if test -s conftest.err; then
2100 grep -v '^ *+' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 mv -f conftest.er1 conftest.err
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; } >/dev/null && {
2106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2107 test ! -s conftest.err
2111 $as_echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2116 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117 as_fn_set_status $ac_retval
2121 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2122 # -------------------------------------------------------
2123 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2124 # the include files in INCLUDES and setting the cache variable VAR
2126 ac_fn_c_check_header_mongrel ()
2128 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2129 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2131 $as_echo_n "checking for $2... " >&6; }
2132 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2133 $as_echo_n "(cached) " >&6
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137 $as_echo "$ac_res" >&6; }
2139 # Is the header compilable?
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2141 $as_echo_n "checking $2 usability... " >&6; }
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h. */
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_header_compiler=yes
2150 ac_header_compiler=no
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2154 $as_echo "$ac_header_compiler" >&6; }
2156 # Is the header present?
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2158 $as_echo_n "checking $2 presence... " >&6; }
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2163 if ac_fn_c_try_cpp "$LINENO"; then :
2164 ac_header_preproc=yes
2166 ac_header_preproc=no
2168 rm -f conftest.err conftest.$ac_ext
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2170 $as_echo "$ac_header_preproc" >&6; }
2172 # So? What about this header?
2173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2176 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2178 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2182 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2184 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2186 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2188 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2190 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2192 ## ------------------------------------------ ##
2193 ## Report this to https://issues.asterisk.org ##
2194 ## ------------------------------------------ ##
2196 ) | sed "s/^/$as_me: WARNING: /" >&2
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200 $as_echo_n "checking for $2... " >&6; }
2201 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2202 $as_echo_n "(cached) " >&6
2204 eval "$3=\$ac_header_compiler"
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2208 $as_echo "$ac_res" >&6; }
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2212 } # ac_fn_c_check_header_mongrel
2214 # ac_fn_c_try_run LINENO
2215 # ----------------------
2216 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2217 # that executables *can* be run.
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 if { { ac_try="$ac_link"
2223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224 *) ac_try_echo=$ac_try;;
2226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2227 $as_echo "$ac_try_echo"; } >&5
2228 (eval "$ac_link") 2>&5
2230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2231 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2232 { { case "(($ac_try" in
2233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2234 *) ac_try_echo=$ac_try;;
2236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2237 $as_echo "$ac_try_echo"; } >&5
2238 (eval "$ac_try") 2>&5
2240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241 test $ac_status = 0; }; }; then :
2244 $as_echo "$as_me: program exited with status $ac_status" >&5
2245 $as_echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2248 ac_retval=$ac_status
2250 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2251 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252 as_fn_set_status $ac_retval
2256 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2257 # -------------------------------------------------------
2258 # Tests whether HEADER exists and can be compiled using the include files in
2259 # INCLUDES, setting the cache variable VAR accordingly.
2260 ac_fn_c_check_header_compile ()
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2264 $as_echo_n "checking for $2... " >&6; }
2265 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2266 $as_echo_n "(cached) " >&6
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269 /* end confdefs.h. */
2273 if ac_fn_c_try_compile "$LINENO"; then :
2278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285 } # ac_fn_c_check_header_compile
2287 # ac_fn_cxx_try_compile LINENO
2288 # ----------------------------
2289 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2290 ac_fn_cxx_try_compile ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 rm -f conftest.$ac_objext
2294 if { { ac_try="$ac_compile"
2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2297 *) ac_try_echo=$ac_try;;
2299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2300 $as_echo "$ac_try_echo"; } >&5
2301 (eval "$ac_compile") 2>conftest.err
2303 if test -s conftest.err; then
2304 grep -v '^ *+' conftest.err >conftest.er1
2305 cat conftest.er1 >&5
2306 mv -f conftest.er1 conftest.err
2308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2309 test $ac_status = 0; } && {
2310 test -z "$ac_cxx_werror_flag" ||
2311 test ! -s conftest.err
2312 } && test -s conftest.$ac_objext; then :
2315 $as_echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2320 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2321 as_fn_set_status $ac_retval
2323 } # ac_fn_cxx_try_compile
2325 # ac_fn_cxx_try_cpp LINENO
2326 # ------------------------
2327 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2328 ac_fn_cxx_try_cpp ()
2330 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2331 if { { ac_try="$ac_cpp conftest.$ac_ext"
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337 $as_echo "$ac_try_echo"; } >&5
2338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2340 if test -s conftest.err; then
2341 grep -v '^ *+' conftest.err >conftest.er1
2342 cat conftest.er1 >&5
2343 mv -f conftest.er1 conftest.err
2345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2346 test $ac_status = 0; } >/dev/null && {
2347 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2348 test ! -s conftest.err
2352 $as_echo "$as_me: failed program was:" >&5
2353 sed 's/^/| /' conftest.$ac_ext >&5
2357 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2358 as_fn_set_status $ac_retval
2360 } # ac_fn_cxx_try_cpp
2362 # ac_fn_c_try_link LINENO
2363 # -----------------------
2364 # Try to link conftest.$ac_ext, and return whether this succeeded.
2367 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2368 rm -f conftest.$ac_objext conftest$ac_exeext
2369 if { { ac_try="$ac_link"
2371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2372 *) ac_try_echo=$ac_try;;
2374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2375 $as_echo "$ac_try_echo"; } >&5
2376 (eval "$ac_link") 2>conftest.err
2378 if test -s conftest.err; then
2379 grep -v '^ *+' conftest.err >conftest.er1
2380 cat conftest.er1 >&5
2381 mv -f conftest.er1 conftest.err
2383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2384 test $ac_status = 0; } && {
2385 test -z "$ac_c_werror_flag" ||
2386 test ! -s conftest.err
2387 } && test -s conftest$ac_exeext && {
2388 test "$cross_compiling" = yes ||
2389 $as_test_x conftest$ac_exeext
2393 $as_echo "$as_me: failed program was:" >&5
2394 sed 's/^/| /' conftest.$ac_ext >&5
2398 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2399 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2400 # interfere with the next link command; also delete a directory that is
2401 # left behind by Apple's compiler. We do this before executing the actions.
2402 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2403 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2404 as_fn_set_status $ac_retval
2406 } # ac_fn_c_try_link
2408 # ac_fn_c_check_func LINENO FUNC VAR
2409 # ----------------------------------
2410 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2411 ac_fn_c_check_func ()
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2415 $as_echo_n "checking for $2... " >&6; }
2416 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2417 $as_echo_n "(cached) " >&6
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2421 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2423 #define $2 innocuous_$2
2425 /* System header to define __stub macros and hopefully few prototypes,
2426 which can conflict with char $2 (); below.
2427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2428 <limits.h> exists even on freestanding compilers. */
2431 # include <limits.h>
2433 # include <assert.h>
2438 /* Override any GCC internal prototype to avoid an error.
2439 Use char because int might match the return type of a GCC
2440 builtin and then its argument prototype would still apply. */
2445 /* The GNU C library defines this for functions which it implements
2446 to always fail with ENOSYS. Some functions are actually named
2447 something starting with __ and the normal name is an alias. */
2448 #if defined __stub_$2 || defined __stub___$2
2460 if ac_fn_c_try_link "$LINENO"; then :
2465 rm -f core conftest.err conftest.$ac_objext \
2466 conftest$ac_exeext conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2470 $as_echo "$ac_res" >&6; }
2471 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2473 } # ac_fn_c_check_func
2475 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2476 # -------------------------------------------
2477 # Tests whether TYPE exists after having included INCLUDES, setting cache
2478 # variable VAR accordingly.
2479 ac_fn_c_check_type ()
2481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2483 $as_echo_n "checking for $2... " >&6; }
2484 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2485 $as_echo_n "(cached) " >&6
2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h. */
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502 /* end confdefs.h. */
2513 if ac_fn_c_try_compile "$LINENO"; then :
2518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2524 $as_echo "$ac_res" >&6; }
2525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2527 } # ac_fn_c_check_type
2529 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2530 # ----------------------------------------------------
2531 # Tries to find if the field MEMBER exists in type AGGR, after including
2532 # INCLUDES, setting cache variable VAR accordingly.
2533 ac_fn_c_check_member ()
2535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2537 $as_echo_n "checking for $2.$3... " >&6; }
2538 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2539 $as_echo_n "(cached) " >&6
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2554 if ac_fn_c_try_compile "$LINENO"; then :
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2564 if (sizeof ac_aggr.$3)
2570 if ac_fn_c_try_compile "$LINENO"; then :
2575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2581 $as_echo "$ac_res" >&6; }
2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2584 } # ac_fn_c_check_member
2586 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2587 # --------------------------------------------
2588 # Tries to find the compile-time value of EXPR in a program that includes
2589 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2591 ac_fn_c_compute_int ()
2593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2594 if test "$cross_compiling" = yes; then
2595 # Depending upon the size, compute the lo and hi bounds.
2596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597 /* end confdefs.h. */
2602 static int test_array [1 - 2 * !(($2) >= 0)];
2609 if ac_fn_c_try_compile "$LINENO"; then :
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2618 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2625 if ac_fn_c_try_compile "$LINENO"; then :
2626 ac_hi=$ac_mid; break
2628 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2629 if test $ac_lo -le $ac_mid; then
2633 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2644 static int test_array [1 - 2 * !(($2) < 0)];
2651 if ac_fn_c_try_compile "$LINENO"; then :
2654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2655 /* end confdefs.h. */
2660 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2667 if ac_fn_c_try_compile "$LINENO"; then :
2668 ac_lo=$ac_mid; break
2670 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2671 if test $ac_mid -le $ac_hi; then
2675 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2685 # Binary search between lo and hi bounds.
2686 while test "x$ac_lo" != "x$ac_hi"; do
2687 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h. */
2694 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2701 if ac_fn_c_try_compile "$LINENO"; then :
2704 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2716 static long int longval () { return $2; }
2717 static unsigned long int ulongval () { return $2; }
2724 FILE *f = fopen ("conftest.val", "w");
2729 long int i = longval ();
2732 fprintf (f, "%ld", i);
2736 unsigned long int i = ulongval ();
2739 fprintf (f, "%lu", i);
2741 /* Do not output a trailing newline, as this causes \r\n confusion
2742 on some platforms. */
2743 return ferror (f) || fclose (f) != 0;
2749 if ac_fn_c_try_run "$LINENO"; then :
2750 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2754 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2755 conftest.$ac_objext conftest.beam conftest.$ac_ext
2759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2760 as_fn_set_status $ac_retval
2762 } # ac_fn_c_compute_int
2764 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2765 # ---------------------------------------------------------
2766 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2767 # the include files in INCLUDES and setting the cache variable VAR
2769 ac_fn_cxx_check_header_mongrel ()
2771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2774 $as_echo_n "checking for $2... " >&6; }
2775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2776 $as_echo_n "(cached) " >&6
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2780 $as_echo "$ac_res" >&6; }
2782 # Is the header compilable?
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2784 $as_echo_n "checking $2 usability... " >&6; }
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h. */
2790 if ac_fn_cxx_try_compile "$LINENO"; then :
2791 ac_header_compiler=yes
2793 ac_header_compiler=no
2795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2797 $as_echo "$ac_header_compiler" >&6; }
2799 # Is the header present?
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2801 $as_echo_n "checking $2 presence... " >&6; }
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2806 if ac_fn_cxx_try_cpp "$LINENO"; then :
2807 ac_header_preproc=yes
2809 ac_header_preproc=no
2811 rm -f conftest.err conftest.$ac_ext
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2813 $as_echo "$ac_header_preproc" >&6; }
2815 # So? What about this header?
2816 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2819 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2821 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2825 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2827 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2829 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2831 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2833 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2835 ## ------------------------------------------ ##
2836 ## Report this to https://issues.asterisk.org ##
2837 ## ------------------------------------------ ##
2839 ) | sed "s/^/$as_me: WARNING: /" >&2
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2843 $as_echo_n "checking for $2... " >&6; }
2844 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2845 $as_echo_n "(cached) " >&6
2847 eval "$3=\$ac_header_compiler"
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2851 $as_echo "$ac_res" >&6; }
2853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2855 } # ac_fn_cxx_check_header_mongrel
2857 # ac_fn_cxx_try_link LINENO
2858 # -------------------------
2859 # Try to link conftest.$ac_ext, and return whether this succeeded.
2860 ac_fn_cxx_try_link ()
2862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2863 rm -f conftest.$ac_objext conftest$ac_exeext
2864 if { { ac_try="$ac_link"
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2870 $as_echo "$ac_try_echo"; } >&5
2871 (eval "$ac_link") 2>conftest.err
2873 if test -s conftest.err; then
2874 grep -v '^ *+' conftest.err >conftest.er1
2875 cat conftest.er1 >&5
2876 mv -f conftest.er1 conftest.err
2878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2879 test $ac_status = 0; } && {
2880 test -z "$ac_cxx_werror_flag" ||
2881 test ! -s conftest.err
2882 } && test -s conftest$ac_exeext && {
2883 test "$cross_compiling" = yes ||
2884 $as_test_x conftest$ac_exeext
2888 $as_echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2893 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2894 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2895 # interfere with the next link command; also delete a directory that is
2896 # left behind by Apple's compiler. We do this before executing the actions.
2897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2899 as_fn_set_status $ac_retval
2901 } # ac_fn_cxx_try_link
2903 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2904 # ---------------------------------------------------------
2905 # Tests whether HEADER exists and can be compiled using the include files in
2906 # INCLUDES, setting the cache variable VAR accordingly.
2907 ac_fn_cxx_check_header_compile ()
2909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2911 $as_echo_n "checking for $2... " >&6; }
2912 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2913 $as_echo_n "(cached) " >&6
2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916 /* end confdefs.h. */
2920 if ac_fn_cxx_try_compile "$LINENO"; then :
2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2929 $as_echo "$ac_res" >&6; }
2930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2932 } # ac_fn_cxx_check_header_compile
2933 cat >config.log <<_ACEOF
2934 This file contains any messages produced by compilers while
2935 running configure, to aid debugging if configure makes a mistake.
2937 It was created by asterisk $as_me trunk, which was
2938 generated by GNU Autoconf 2.65. Invocation command line was
2950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2962 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir=.
2974 $as_echo "PATH: $as_dir"
2990 # Keep a trace of the command line.
2991 # Strip out --no-create and --no-recursion so they do not pile up.
2992 # Strip out --silent because we don't want to record it for future runs.
2993 # Also quote any args containing shell meta-characters.
2994 # Make two passes to allow for proper duplicate-argument suppression.
2998 ac_must_keep_next=false
3004 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3006 | -silent | --silent | --silen | --sile | --sil)
3009 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3012 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3014 as_fn_append ac_configure_args1 " '$ac_arg'"
3015 if test $ac_must_keep_next = true; then
3016 ac_must_keep_next=false # Got value, back to normal.
3019 *=* | --config-cache | -C | -disable-* | --disable-* \
3020 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3021 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3022 | -with-* | --with-* | -without-* | --without-* | --x)
3023 case "$ac_configure_args0 " in
3024 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3027 -* ) ac_must_keep_next=true ;;
3030 as_fn_append ac_configure_args " '$ac_arg'"
3035 { ac_configure_args0=; unset ac_configure_args0;}
3036 { ac_configure_args1=; unset ac_configure_args1;}
3038 # When interrupted or exit'd, cleanup temporary files, and complete
3039 # config.log. We remove comments because anyway the quotes in there
3040 # would cause problems or look ugly.
3041 # WARNING: Use '\'' to represent an apostrophe within the trap.
3042 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3043 trap 'exit_status=$?
3044 # Save into config.log some information that might help in debugging.
3049 ## ---------------- ##
3050 ## Cache variables. ##
3051 ## ---------------- ##
3054 # The following way of writing the cache mishandles newlines in values,
3056 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3057 eval ac_val=\$$ac_var
3061 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3062 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3065 _ | IFS | as_nl) ;; #(
3066 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3067 *) { eval $ac_var=; unset $ac_var;} ;;
3072 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3073 *${as_nl}ac_space=\ *)
3075 "s/'\''/'\''\\\\'\'''\''/g;
3076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3079 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3087 ## ----------------- ##
3088 ## Output variables. ##
3089 ## ----------------- ##
3092 for ac_var in $ac_subst_vars
3094 eval ac_val=\$$ac_var
3096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3098 $as_echo "$ac_var='\''$ac_val'\''"
3102 if test -n "$ac_subst_files"; then
3104 ## ------------------- ##
3105 ## File substitutions. ##
3106 ## ------------------- ##
3109 for ac_var in $ac_subst_files
3111 eval ac_val=\$$ac_var
3113 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3115 $as_echo "$ac_var='\''$ac_val'\''"
3120 if test -s confdefs.h; then
3130 test "$ac_signal" != 0 &&
3131 $as_echo "$as_me: caught signal $ac_signal"
3132 $as_echo "$as_me: exit $exit_status"
3134 rm -f core *.core core.conftest.* &&
3135 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3138 for ac_signal in 1 2 13 15; do
3139 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3143 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3144 rm -f -r conftest* confdefs.h
3146 $as_echo "/* confdefs.h */" > confdefs.h
3148 # Predefined preprocessor variables.
3150 cat >>confdefs.h <<_ACEOF
3151 #define PACKAGE_NAME "$PACKAGE_NAME"
3154 cat >>confdefs.h <<_ACEOF
3155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3158 cat >>confdefs.h <<_ACEOF
3159 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3162 cat >>confdefs.h <<_ACEOF
3163 #define PACKAGE_STRING "$PACKAGE_STRING"
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_URL "$PACKAGE_URL"
3175 # Let the site file select an alternate cache file if it wants to.
3176 # Prefer an explicitly selected file to automatically selected ones.
3179 if test -n "$CONFIG_SITE"; then
3180 ac_site_file1=$CONFIG_SITE
3181 elif test "x$prefix" != xNONE; then
3182 ac_site_file1=$prefix/share/config.site
3183 ac_site_file2=$prefix/etc/config.site
3185 ac_site_file1=$ac_default_prefix/share/config.site
3186 ac_site_file2=$ac_default_prefix/etc/config.site
3188 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3190 test "x$ac_site_file" = xNONE && continue
3191 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3193 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3194 sed 's/^/| /' "$ac_site_file" >&5
3199 if test -r "$cache_file"; then
3200 # Some versions of bash will fail to source /dev/null (special files
3201 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3202 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3204 $as_echo "$as_me: loading cache $cache_file" >&6;}
3206 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3207 *) . "./$cache_file";;
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3212 $as_echo "$as_me: creating cache $cache_file" >&6;}
3216 as_fn_append ac_header_list " stdlib.h"
3217 as_fn_append ac_header_list " unistd.h"
3218 as_fn_append ac_header_list " sys/param.h"
3219 as_fn_append ac_header_list " utime.h"
3220 # Check that the precious variables saved in the cache have kept the same
3222 ac_cache_corrupted=false
3223 for ac_var in $ac_precious_vars; do
3224 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3225 eval ac_new_set=\$ac_env_${ac_var}_set
3226 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3227 eval ac_new_val=\$ac_env_${ac_var}_value
3228 case $ac_old_set,$ac_new_set in
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3231 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3232 ac_cache_corrupted=: ;;
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3235 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3236 ac_cache_corrupted=: ;;
3239 if test "x$ac_old_val" != "x$ac_new_val"; then
3240 # differences in whitespace do not lead to failure.
3241 ac_old_val_w=`echo x $ac_old_val`
3242 ac_new_val_w=`echo x $ac_new_val`
3243 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3245 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3246 ac_cache_corrupted=:
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3249 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3250 eval $ac_var=\$ac_old_val
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3253 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3255 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3258 # Pass precious variables to config.status.
3259 if test "$ac_new_set" = set; then
3261 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3262 *) ac_arg=$ac_var=$ac_new_val ;;
3264 case " $ac_configure_args " in
3265 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3266 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3270 if $ac_cache_corrupted; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3274 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3275 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3277 ## -------------------- ##
3278 ## Main body of script. ##
3279 ## -------------------- ##
3282 ac_cpp='$CPP $CPPFLAGS'
3283 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3284 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3285 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289 # cross-compile macros
3291 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3292 for ac_t in install-sh install.sh shtool; do
3293 if test -f "$ac_dir/$ac_t"; then
3295 ac_install_sh="$ac_aux_dir/$ac_t -c"
3300 if test -z "$ac_aux_dir"; then
3301 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3304 # These three variables are undocumented and unsupported,
3305 # and are intended to be withdrawn in a future Autoconf release.
3306 # They can cause serious problems if a builder's source tree is in a directory
3307 # whose full name contains unusual characters.
3308 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3309 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3310 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3313 # Make sure we can run config.sub.
3314 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3315 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3318 $as_echo_n "checking build system type... " >&6; }
3319 if test "${ac_cv_build+set}" = set; then :
3320 $as_echo_n "(cached) " >&6
3322 ac_build_alias=$build_alias
3323 test "x$ac_build_alias" = x &&
3324 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3325 test "x$ac_build_alias" = x &&
3326 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3327 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3328 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3332 $as_echo "$ac_cv_build" >&6; }
3333 case $ac_cv_build in
3335 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3338 ac_save_IFS=$IFS; IFS='-'
3344 # Remember, the first character of IFS is used to create $*,
3345 # except with old shells:
3348 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3352 $as_echo_n "checking host system type... " >&6; }
3353 if test "${ac_cv_host+set}" = set; then :
3354 $as_echo_n "(cached) " >&6
3356 if test "x$host_alias" = x; then
3357 ac_cv_host=$ac_cv_build
3359 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3360 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3365 $as_echo "$ac_cv_host" >&6; }
3368 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3371 ac_save_IFS=$IFS; IFS='-'
3377 # Remember, the first character of IFS is used to create $*,
3378 # except with old shells:
3381 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3385 # check existence of the package
3389 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3390 for ac_t in install-sh install.sh shtool; do
3391 if test -f "$ac_dir/$ac_t"; then
3393 ac_install_sh="$ac_aux_dir/$ac_t -c"
3398 if test -z "$ac_aux_dir"; then
3399 as_fn_error "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3402 # These three variables are undocumented and unsupported,
3403 # and are intended to be withdrawn in a future Autoconf release.
3404 # They can cause serious problems if a builder's source tree is in a directory
3405 # whose full name contains unusual characters.
3406 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3407 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3408 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3415 # preserve any CFLAGS or LDFLAGS that may be set
3416 # NOTE: This must be done before calling any macros that end up
3417 # calling AC_PROG_CC or the like, since they will set a default
3418 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3419 # we don't want those default flags to be carried over into the
3420 # rest of the build system since we have other means of controlling
3421 # debugging symbol generation and optimization.
3422 CONFIG_CFLAGS="${CFLAGS}"
3423 CONFIG_LDFLAGS="${LDFLAGS}"
3427 # specify output header file
3428 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3431 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3432 # other macro that uses the C compiler, or the default order will be used.
3434 ac_cpp='$CPP $CPPFLAGS'
3435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3438 if test -n "$ac_tool_prefix"; then
3439 for ac_prog in gcc cc
3441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3444 $as_echo_n "checking for $ac_word... " >&6; }
3445 if test "${ac_cv_prog_CC+set}" = set; then :
3446 $as_echo_n "(cached) " >&6
3448 if test -n "$CC"; then
3449 ac_cv_prog_CC="$CC" # Let the user override the test.
3451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 test -z "$as_dir" && as_dir=.
3456 for ac_exec_ext in '' $ac_executable_extensions; do
3457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3458 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 if test -n "$CC"; then
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471 $as_echo "$CC" >&6; }
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3478 test -n "$CC" && break
3481 if test -z "$CC"; then
3483 for ac_prog in gcc cc
3485 # Extract the first word of "$ac_prog", so it can be a program name with args.
3486 set dummy $ac_prog; ac_word=$2
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3488 $as_echo_n "checking for $ac_word... " >&6; }
3489 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3490 $as_echo_n "(cached) " >&6
3492 if test -n "$ac_ct_CC"; then
3493 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 test -z "$as_dir" && as_dir=.
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3502 ac_cv_prog_ac_ct_CC="$ac_prog"
3503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3513 if test -n "$ac_ct_CC"; then
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3515 $as_echo "$ac_ct_CC" >&6; }
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3518 $as_echo "no" >&6; }
3522 test -n "$ac_ct_CC" && break
3525 if test "x$ac_ct_CC" = x; then
3528 case $cross_compiling:$ac_tool_warned in
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3532 ac_tool_warned=yes ;;
3539 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541 as_fn_error "no acceptable C compiler found in \$PATH
3542 See \`config.log' for more details." "$LINENO" 5; }
3544 # Provide some information about the compiler.
3545 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3548 for ac_option in --version -v -V -qversion; do
3549 { { ac_try="$ac_compiler $ac_option >&5"
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 $as_echo "$ac_try_echo"; } >&5
3556 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3558 if test -s conftest.err; then
3560 ... rest of stderr output deleted ...
3561 10q' conftest.err >conftest.er1
3562 cat conftest.er1 >&5
3564 rm -f conftest.er1 conftest.err
3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566 test $ac_status = 0; }
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570 /* end confdefs.h. */
3580 ac_clean_files_save=$ac_clean_files
3581 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3582 # Try to create an executable without -o first, disregard a.out.
3583 # It will help us diagnose broken compilers, and finding out an intuition
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3586 $as_echo_n "checking whether the C compiler works... " >&6; }
3587 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3589 # The possible output files:
3590 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3593 for ac_file in $ac_files
3596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3597 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3602 if { { ac_try="$ac_link_default"
3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608 $as_echo "$ac_try_echo"; } >&5
3609 (eval "$ac_link_default") 2>&5
3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612 test $ac_status = 0; }; then :
3613 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3614 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3615 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3616 # so that the user can short-circuit this test for compilers unknown to
3618 for ac_file in $ac_files ''
3620 test -f "$ac_file" || continue
3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3625 # We found the default executable, but exeext='' is most
3629 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3631 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3633 # We set ac_cv_exeext here because the later test for it is not
3634 # safe: cross compilers may not add the suffix if given an `-o'
3635 # argument, so we may need to know it at that point already.
3636 # Even if this section looks crufty: it has the advantage of
3643 test "$ac_cv_exeext" = no && ac_cv_exeext=
3648 if test -z "$ac_file"; then :
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650 $as_echo "no" >&6; }
3651 $as_echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 { as_fn_set_status 77
3657 as_fn_error "C compiler cannot create executables
3658 See \`config.log' for more details." "$LINENO" 5; }; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3661 $as_echo "yes" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3664 $as_echo_n "checking for C compiler default output file name... " >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3666 $as_echo "$ac_file" >&6; }
3667 ac_exeext=$ac_cv_exeext
3669 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3670 ac_clean_files=$ac_clean_files_save
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3672 $as_echo_n "checking for suffix of executables... " >&6; }
3673 if { { ac_try="$ac_link"
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679 $as_echo "$ac_try_echo"; } >&5
3680 (eval "$ac_link") 2>&5
3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683 test $ac_status = 0; }; then :
3684 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3685 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3686 # work properly (i.e., refer to `conftest.exe'), while it won't with
3688 for ac_file in conftest.exe conftest conftest.*; do
3689 test -f "$ac_file" || continue
3691 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3692 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error "cannot compute suffix of executables: cannot compile and link
3701 See \`config.log' for more details." "$LINENO" 5; }
3703 rm -f conftest conftest$ac_cv_exeext
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3705 $as_echo "$ac_cv_exeext" >&6; }
3707 rm -f conftest.$ac_ext
3708 EXEEXT=$ac_cv_exeext
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3716 FILE *f = fopen ("conftest.out", "w");
3717 return ferror (f) || fclose (f) != 0;
3723 ac_clean_files="$ac_clean_files conftest.out"
3724 # Check that the compiler produces executables we can run. If not, either
3725 # the compiler is broken, or we cross compile.
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3727 $as_echo_n "checking whether we are cross compiling... " >&6; }
3728 if test "$cross_compiling" != yes; then
3729 { { ac_try="$ac_link"
3731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3732 *) ac_try_echo=$ac_try;;
3734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3735 $as_echo "$ac_try_echo"; } >&5
3736 (eval "$ac_link") 2>&5
3738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3739 test $ac_status = 0; }
3740 if { ac_try='./conftest$ac_cv_exeext'
3741 { { case "(($ac_try" in
3742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743 *) ac_try_echo=$ac_try;;
3745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3746 $as_echo "$ac_try_echo"; } >&5
3747 (eval "$ac_try") 2>&5
3749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3750 test $ac_status = 0; }; }; then
3753 if test "$cross_compiling" = maybe; then
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error "cannot run C compiled programs.
3759 If you meant to cross compile, use \`--host'.
3760 See \`config.log' for more details." "$LINENO" 5; }
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3765 $as_echo "$cross_compiling" >&6; }
3767 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3768 ac_clean_files=$ac_clean_files_save
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3770 $as_echo_n "checking for suffix of object files... " >&6; }
3771 if test "${ac_cv_objext+set}" = set; then :
3772 $as_echo_n "(cached) " >&6
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3785 rm -f conftest.o conftest.obj
3786 if { { ac_try="$ac_compile"
3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3789 *) ac_try_echo=$ac_try;;
3791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3792 $as_echo "$ac_try_echo"; } >&5
3793 (eval "$ac_compile") 2>&5
3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3796 test $ac_status = 0; }; then :
3797 for ac_file in conftest.o conftest.obj conftest.*; do
3798 test -f "$ac_file" || continue;
3800 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3801 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3806 $as_echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 as_fn_error "cannot compute suffix of object files: cannot compile
3812 See \`config.log' for more details." "$LINENO" 5; }
3814 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3817 $as_echo "$ac_cv_objext" >&6; }
3818 OBJEXT=$ac_cv_objext
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3821 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3822 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3839 if ac_fn_c_try_compile "$LINENO"; then :
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3849 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3850 if test $ac_compiler_gnu = yes; then
3855 ac_test_CFLAGS=${CFLAGS+set}
3856 ac_save_CFLAGS=$CFLAGS
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3858 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3859 if test "${ac_cv_prog_cc_g+set}" = set; then :
3860 $as_echo_n "(cached) " >&6
3862 ac_save_c_werror_flag=$ac_c_werror_flag
3863 ac_c_werror_flag=yes
3866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3867 /* end confdefs.h. */
3877 if ac_fn_c_try_compile "$LINENO"; then :
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882 /* end confdefs.h. */
3892 if ac_fn_c_try_compile "$LINENO"; then :
3895 ac_c_werror_flag=$ac_save_c_werror_flag
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3908 if ac_fn_c_try_compile "$LINENO"; then :
3911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3916 ac_c_werror_flag=$ac_save_c_werror_flag
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3919 $as_echo "$ac_cv_prog_cc_g" >&6; }
3920 if test "$ac_test_CFLAGS" = set; then
3921 CFLAGS=$ac_save_CFLAGS
3922 elif test $ac_cv_prog_cc_g = yes; then
3923 if test "$GCC" = yes; then
3929 if test "$GCC" = yes; then