2 # From configure.ac Revision: 350839 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.68 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
32 case `(set -o) 2>/dev/null` in #(
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 # Prefer a ksh shell builtin over an external printf program on Solaris,
49 # but without wasting forks for bash or zsh.
50 if test -z "$BASH_VERSION$ZSH_VERSION" \
51 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo_n='print -rn --'
54 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60 as_echo_n='/usr/ucb/echo -n'
62 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
67 expr "X$arg" : "X\\(.*\\)$as_nl";
68 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73 as_echo_n='sh -c $as_echo_n_body as_echo'
76 as_echo='sh -c $as_echo_body as_echo'
79 # The user is always right.
80 if test "${PATH_SEPARATOR+set}" != set; then
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
99 *[\\/]* ) as_myself=$0 ;;
100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
104 test -z "$as_dir" && as_dir=.
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
111 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 # in which case we are not to be found in the path.
113 if test "x$as_myself" = x; then
116 if test ! -f "$as_myself"; then
117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
121 # Unset variables that we do not need and which cause bugs (e.g. in
122 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
123 # suppresses any "Segmentation fault" message there. '((' could
124 # trigger a bug in pdksh 5.2.14.
125 for as_var in BASH_ENV ENV MAIL MAILPATH
126 do eval test x\${$as_var+set} = xset \
127 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
140 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 case \`(set -o) 2>/dev/null\` in #(
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
173 exitcode=1; echo positional parameters were not saved.
175 test x\$exitcode = x0 || exit 1"
176 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
177 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
178 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
179 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 # Preserve -v and -x to the replacement shell.
226 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
229 *v*x* | *x*v* ) as_opts=-vx ;;
234 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
237 if test x$as_have_required = xno; then :
238 $as_echo "$0: This script requires a shell more modern than all"
239 $as_echo "$0: the shells that I found on your system."
240 if test x${ZSH_VERSION+set} = xset ; then
241 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
242 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
244 $as_echo "$0: Please tell bug-autoconf@gnu.org and
245 $0: https://issues.asterisk.org about your system,
246 $0: including any error possibly output before this
247 $0: message. Then install a modern shell, or manually run
248 $0: the script under such a shell if you do have one."
254 SHELL=${CONFIG_SHELL-/bin/sh}
256 # Unset more variables known to interfere with behavior of common tools.
257 CLICOLOR_FORCE= GREP_OPTIONS=
258 unset CLICOLOR_FORCE GREP_OPTIONS
260 ## --------------------- ##
261 ## M4sh Shell Functions. ##
262 ## --------------------- ##
265 # Portably unset VAR.
268 { eval $1=; unset $1;}
272 # as_fn_set_status STATUS
273 # -----------------------
274 # Set $? to STATUS, without forking.
282 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
292 # Create "$as_dir" as a directory, including parents if necessary.
297 -*) as_dir=./$as_dir;;
299 test -d "$as_dir" || eval $as_mkdir_p || {
303 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
306 as_dirs="'$as_qdir' $as_dirs"
307 as_dir=`$as_dirname -- "$as_dir" ||
308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
309 X"$as_dir" : 'X\(//\)[^/]' \| \
310 X"$as_dir" : 'X\(//\)$' \| \
311 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
312 $as_echo X"$as_dir" |
313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
330 test -d "$as_dir" && break
332 test -z "$as_dirs" || eval "mkdir $as_dirs"
333 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
337 # as_fn_append VAR VALUE
338 # ----------------------
339 # Append the text in VALUE to the end of the definition contained in VAR. Take
340 # advantage of any shell optimizations that allow amortized linear growth over
341 # repeated appends, instead of the typical quadratic growth present in naive
343 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
344 eval 'as_fn_append ()
357 # Perform arithmetic evaluation on the ARGs, and store the result in the
358 # global $as_val. Take advantage of shells that can avoid forks. The arguments
359 # must be portable across $(()) and expr.
360 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
368 as_val=`expr "$@" || test $? -eq 1`
373 # as_fn_error STATUS ERROR [LINENO LOG_FD]
374 # ----------------------------------------
375 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
376 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
377 # script with STATUS, using 1 if that was 0.
380 as_status=$1; test $as_status -eq 0 && as_status=1
382 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
383 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
385 $as_echo "$as_me: error: $2" >&2
386 as_fn_exit $as_status
389 if expr a : '\(a\)' >/dev/null 2>&1 &&
390 test "X`expr 00001 : '.*\(...\)'`" = X001; then
396 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408 as_me=`$as_basename -- "$0" ||
409 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
410 X"$0" : 'X\(//\)$' \| \
411 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
413 sed '/^.*\/\([^/][^/]*\)\/*$/{
427 # Avoid depending upon Character Ranges.
428 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
429 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
430 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
431 as_cr_digits='0123456789'
432 as_cr_alnum=$as_cr_Letters$as_cr_digits
435 as_lineno_1=$LINENO as_lineno_1a=$LINENO
436 as_lineno_2=$LINENO as_lineno_2a=$LINENO
437 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
438 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
439 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
458 # Don't try to exec as it changes $[0], causing all sort of problems
459 # (the dirname of $[0] is not the place where we might find the
460 # original and so on. Autoconf is especially sensitive to this).
462 # Exit status is that of the last command.
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in #(((((
469 case `echo 'xy\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
472 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 rm -f conf$$ conf$$.exe conf$$.file
480 if test -d conf$$.dir; then
481 rm -f conf$$.dir/conf$$.file
484 mkdir conf$$.dir 2>/dev/null
486 if (echo >conf$$.file) 2>/dev/null; then
487 if ln -s conf$$.file conf$$ 2>/dev/null; then
489 # ... but there are two gotchas:
490 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
491 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
492 # In both cases, we have to default to `cp -p'.
493 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
495 elif ln conf$$.file conf$$ 2>/dev/null; then
503 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
504 rmdir conf$$.dir 2>/dev/null
506 if mkdir -p . 2>/dev/null; then
507 as_mkdir_p='mkdir -p "$as_dir"'
509 test -d ./-p && rmdir ./-p
513 if test -x / >/dev/null 2>&1; then
516 if ls -dL / >/dev/null 2>&1; then
523 if test -d "$1"; then
529 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
530 ???[sx]*):;;*)false;;esac;fi
534 as_executable_p=$as_test_x
536 # Sed expression to map a string onto a valid CPP name.
537 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
539 # Sed expression to map a string onto a valid variable name.
540 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543 test -n "$DJDIR" || exec 7<&0 </dev/null
547 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
548 # so uname gets run too.
549 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
554 ac_default_prefix=/usr/local
556 ac_config_libobj_dir=.
563 # Identity of this package.
564 PACKAGE_NAME='asterisk'
565 PACKAGE_TARNAME='asterisk'
566 PACKAGE_VERSION='trunk'
567 PACKAGE_STRING='asterisk trunk'
568 PACKAGE_BUGREPORT='https://issues.asterisk.org'
571 ac_unique_file="main/asterisk.c"
572 # Factoring default headers for most tests.
573 ac_includes_default="\
575 #ifdef HAVE_SYS_TYPES_H
576 # include <sys/types.h>
578 #ifdef HAVE_SYS_STAT_H
579 # include <sys/stat.h>
585 # ifdef HAVE_STDLIB_H
590 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #ifdef HAVE_STRINGS_H
596 # include <strings.h>
598 #ifdef HAVE_INTTYPES_H
599 # include <inttypes.h>
609 ac_subst_vars='LTLIBOBJS
611 PBX_SYSLOG_FACILITY_LOG_UUCP
612 PBX_SYSLOG_FACILITY_LOG_SYSLOG
613 PBX_SYSLOG_FACILITY_LOG_NEWS
614 PBX_SYSLOG_FACILITY_LOG_MAIL
615 PBX_SYSLOG_FACILITY_LOG_LPR
616 PBX_SYSLOG_FACILITY_LOG_KERN
617 PBX_SYSLOG_FACILITY_LOG_FTP
618 PBX_SYSLOG_FACILITY_LOG_DAEMON
619 PBX_SYSLOG_FACILITY_LOG_CRON
620 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
621 PBX_SYSLOG_FACILITY_LOG_AUTH
661 AST_NO_STRICT_OVERFLOW
663 AST_DECLARATION_AFTER_STATEMENT
667 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
668 PBX_PTHREAD_RWLOCK_INITIALIZER
748 SPEEX_PREPROCESS_INCLUDE
783 PBX_PRI_REVERSE_CHARGE
784 PRI_REVERSE_CHARGE_DIR
785 PRI_REVERSE_CHARGE_INCLUDE
786 PRI_REVERSE_CHARGE_LIB
787 PBX_PRI_SERVICE_MESSAGES
788 PRI_SERVICE_MESSAGES_DIR
789 PRI_SERVICE_MESSAGES_INCLUDE
790 PRI_SERVICE_MESSAGES_LIB
793 PRI_PROG_W_CAUSE_INCLUDE
795 PBX_PRI_INBANDDISCONNECT
796 PRI_INBANDDISCONNECT_DIR
797 PRI_INBANDDISCONNECT_INCLUDE
798 PRI_INBANDDISCONNECT_LIB
801 PRI_SETUP_KEYPAD_INCLUDE
803 PBX_PRI_CALL_REROUTING
804 PRI_CALL_REROUTING_DIR
805 PRI_CALL_REROUTING_INCLUDE
806 PRI_CALL_REROUTING_LIB
809 PRI_CALL_HOLD_INCLUDE
817 PRI_HANGUP_FIX_INCLUDE
829 PRI_AOC_EVENTS_INCLUDE
833 PRI_CALL_WAITING_INCLUDE
845 PRI_DISPLAY_TEXT_INCLUDE
851 PBX_PRI_DATETIME_SEND
852 PRI_DATETIME_SEND_DIR
853 PRI_DATETIME_SEND_INCLUDE
854 PRI_DATETIME_SEND_LIB
855 PBX_PRI_L2_PERSISTENCE
856 PRI_L2_PERSISTENCE_DIR
857 PRI_L2_PERSISTENCE_INCLUDE
858 PRI_L2_PERSISTENCE_LIB
1161 program_transform_name
1174 enable_option_checking
1251 enable_internal_poll
1254 ac_precious_vars='build_alias
1269 # Initialize some variables set by options.
1271 ac_init_version=false
1272 ac_unrecognized_opts=
1273 ac_unrecognized_sep=
1274 # The variables have the same names as the options, with
1275 # dashes changed to underlines.
1276 cache_file=/dev/null
1283 program_transform_name=s,x,x,
1291 # Installation directory options.
1292 # These are left unexpanded so users can "make install exec_prefix=/foo"
1293 # and all the variables that are supposed to be based on exec_prefix
1294 # by default will actually change.
1295 # Use braces instead of parens because sh, perl, etc. also accept them.
1296 # (The list follows the same order as the GNU Coding Standards.)
1297 bindir='${exec_prefix}/bin'
1298 sbindir='${exec_prefix}/sbin'
1299 libexecdir='${exec_prefix}/libexec'
1300 datarootdir='${prefix}/share'
1301 datadir='${datarootdir}'
1302 sysconfdir='${prefix}/etc'
1303 sharedstatedir='${prefix}/com'
1304 localstatedir='${prefix}/var'
1305 includedir='${prefix}/include'
1306 oldincludedir='/usr/include'
1307 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1308 infodir='${datarootdir}/info'
1313 libdir='${exec_prefix}/lib'
1314 localedir='${datarootdir}/locale'
1315 mandir='${datarootdir}/man'
1321 # If the previous option needs an argument, assign it.
1322 if test -n "$ac_prev"; then
1323 eval $ac_prev=\$ac_option
1329 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1334 # Accept the important Cygnus configure options, so we can diagnose typos.
1336 case $ac_dashdash$ac_option in
1340 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1342 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1343 bindir=$ac_optarg ;;
1345 -build | --build | --buil | --bui | --bu)
1346 ac_prev=build_alias ;;
1347 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1348 build_alias=$ac_optarg ;;
1350 -cache-file | --cache-file | --cache-fil | --cache-fi \
1351 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1352 ac_prev=cache_file ;;
1353 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1354 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1355 cache_file=$ac_optarg ;;
1357 --config-cache | -C)
1358 cache_file=config.cache ;;
1360 -datadir | --datadir | --datadi | --datad)
1362 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1363 datadir=$ac_optarg ;;
1365 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1366 | --dataroo | --dataro | --datar)
1367 ac_prev=datarootdir ;;
1368 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1369 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1370 datarootdir=$ac_optarg ;;
1372 -disable-* | --disable-*)
1373 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376 as_fn_error $? "invalid feature name: $ac_useropt"
1377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1381 "enable_$ac_useropt"
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1386 eval enable_$ac_useropt=no ;;
1388 -docdir | --docdir | --docdi | --doc | --do)
1390 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1391 docdir=$ac_optarg ;;
1393 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1395 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1396 dvidir=$ac_optarg ;;
1398 -enable-* | --enable-*)
1399 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1400 # Reject names that are not valid shell variable names.
1401 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1402 as_fn_error $? "invalid feature name: $ac_useropt"
1403 ac_useropt_orig=$ac_useropt
1404 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1405 case $ac_user_opts in
1407 "enable_$ac_useropt"
1409 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1410 ac_unrecognized_sep=', ';;
1412 eval enable_$ac_useropt=\$ac_optarg ;;
1414 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1415 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1416 | --exec | --exe | --ex)
1417 ac_prev=exec_prefix ;;
1418 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1419 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1420 | --exec=* | --exe=* | --ex=*)
1421 exec_prefix=$ac_optarg ;;
1423 -gas | --gas | --ga | --g)
1424 # Obsolete; use --with-gas.
1427 -help | --help | --hel | --he | -h)
1428 ac_init_help=long ;;
1429 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1430 ac_init_help=recursive ;;
1431 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1432 ac_init_help=short ;;
1434 -host | --host | --hos | --ho)
1435 ac_prev=host_alias ;;
1436 -host=* | --host=* | --hos=* | --ho=*)
1437 host_alias=$ac_optarg ;;
1439 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1441 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1443 htmldir=$ac_optarg ;;
1445 -includedir | --includedir | --includedi | --included | --include \
1446 | --includ | --inclu | --incl | --inc)
1447 ac_prev=includedir ;;
1448 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1449 | --includ=* | --inclu=* | --incl=* | --inc=*)
1450 includedir=$ac_optarg ;;
1452 -infodir | --infodir | --infodi | --infod | --info | --inf)
1454 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1455 infodir=$ac_optarg ;;
1457 -libdir | --libdir | --libdi | --libd)
1459 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1460 libdir=$ac_optarg ;;
1462 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1463 | --libexe | --libex | --libe)
1464 ac_prev=libexecdir ;;
1465 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1466 | --libexe=* | --libex=* | --libe=*)
1467 libexecdir=$ac_optarg ;;
1469 -localedir | --localedir | --localedi | --localed | --locale)
1470 ac_prev=localedir ;;
1471 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1472 localedir=$ac_optarg ;;
1474 -localstatedir | --localstatedir | --localstatedi | --localstated \
1475 | --localstate | --localstat | --localsta | --localst | --locals)
1476 ac_prev=localstatedir ;;
1477 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1478 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1479 localstatedir=$ac_optarg ;;
1481 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1483 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1484 mandir=$ac_optarg ;;
1486 -nfp | --nfp | --nf)
1487 # Obsolete; use --without-fp.
1490 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1491 | --no-cr | --no-c | -n)
1494 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1495 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1498 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1499 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1500 | --oldin | --oldi | --old | --ol | --o)
1501 ac_prev=oldincludedir ;;
1502 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1503 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1504 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1505 oldincludedir=$ac_optarg ;;
1507 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1509 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1510 prefix=$ac_optarg ;;
1512 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1513 | --program-pre | --program-pr | --program-p)
1514 ac_prev=program_prefix ;;
1515 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1516 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1517 program_prefix=$ac_optarg ;;
1519 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1520 | --program-suf | --program-su | --program-s)
1521 ac_prev=program_suffix ;;
1522 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1523 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1524 program_suffix=$ac_optarg ;;
1526 -program-transform-name | --program-transform-name \
1527 | --program-transform-nam | --program-transform-na \
1528 | --program-transform-n | --program-transform- \
1529 | --program-transform | --program-transfor \
1530 | --program-transfo | --program-transf \
1531 | --program-trans | --program-tran \
1532 | --progr-tra | --program-tr | --program-t)
1533 ac_prev=program_transform_name ;;
1534 -program-transform-name=* | --program-transform-name=* \
1535 | --program-transform-nam=* | --program-transform-na=* \
1536 | --program-transform-n=* | --program-transform-=* \
1537 | --program-transform=* | --program-transfor=* \
1538 | --program-transfo=* | --program-transf=* \
1539 | --program-trans=* | --program-tran=* \
1540 | --progr-tra=* | --program-tr=* | --program-t=*)
1541 program_transform_name=$ac_optarg ;;
1543 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1545 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1546 pdfdir=$ac_optarg ;;
1548 -psdir | --psdir | --psdi | --psd | --ps)
1550 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1553 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1554 | -silent | --silent | --silen | --sile | --sil)
1557 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1559 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1561 sbindir=$ac_optarg ;;
1563 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1564 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1565 | --sharedst | --shareds | --shared | --share | --shar \
1567 ac_prev=sharedstatedir ;;
1568 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1569 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1570 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1572 sharedstatedir=$ac_optarg ;;
1574 -site | --site | --sit)
1576 -site=* | --site=* | --sit=*)
1579 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1581 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1582 srcdir=$ac_optarg ;;
1584 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1585 | --syscon | --sysco | --sysc | --sys | --sy)
1586 ac_prev=sysconfdir ;;
1587 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1588 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1589 sysconfdir=$ac_optarg ;;
1591 -target | --target | --targe | --targ | --tar | --ta | --t)
1592 ac_prev=target_alias ;;
1593 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1594 target_alias=$ac_optarg ;;
1596 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1599 -version | --version | --versio | --versi | --vers | -V)
1600 ac_init_version=: ;;
1603 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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--with-$ac_useropt_orig"
1614 ac_unrecognized_sep=', ';;
1616 eval with_$ac_useropt=\$ac_optarg ;;
1618 -without-* | --without-*)
1619 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1620 # Reject names that are not valid shell variable names.
1621 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1622 as_fn_error $? "invalid package name: $ac_useropt"
1623 ac_useropt_orig=$ac_useropt
1624 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1625 case $ac_user_opts in
1629 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1630 ac_unrecognized_sep=', ';;
1632 eval with_$ac_useropt=no ;;
1635 # Obsolete; use --with-x.
1638 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1639 | --x-incl | --x-inc | --x-in | --x-i)
1640 ac_prev=x_includes ;;
1641 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1642 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1643 x_includes=$ac_optarg ;;
1645 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1646 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1647 ac_prev=x_libraries ;;
1648 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1649 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1650 x_libraries=$ac_optarg ;;
1652 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1653 Try \`$0 --help' for more information"
1657 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1658 # Reject names that are not valid shell variable names.
1659 case $ac_envvar in #(
1660 '' | [0-9]* | *[!_$as_cr_alnum]* )
1661 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1663 eval $ac_envvar=\$ac_optarg
1664 export $ac_envvar ;;
1667 # FIXME: should be removed in autoconf 3.0.
1668 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1669 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1670 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1671 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1677 if test -n "$ac_prev"; then
1678 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1679 as_fn_error $? "missing argument to $ac_option"
1682 if test -n "$ac_unrecognized_opts"; then
1683 case $enable_option_checking in
1685 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1686 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1690 # Check all directory arguments for consistency.
1691 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1692 datadir sysconfdir sharedstatedir localstatedir includedir \
1693 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1694 libdir localedir mandir
1696 eval ac_val=\$$ac_var
1697 # Remove trailing slashes.
1700 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1701 eval $ac_var=\$ac_val;;
1703 # Be sure to have absolute directory names.
1705 [\\/$]* | ?:[\\/]* ) continue;;
1706 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1708 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1711 # There might be people who depend on the old broken behavior: `$host'
1712 # used to hold the argument of --host etc.
1713 # FIXME: To remove some day.
1716 target=$target_alias
1718 # FIXME: To remove some day.
1719 if test "x$host_alias" != x; then
1720 if test "x$build_alias" = x; then
1721 cross_compiling=maybe
1722 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1723 If a cross compiler is detected then cross compile mode will be used" >&2
1724 elif test "x$build_alias" != "x$host_alias"; then
1730 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1732 test "$silent" = yes && exec 6>/dev/null
1735 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1736 ac_ls_di=`ls -di .` &&
1737 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1738 as_fn_error $? "working directory cannot be determined"
1739 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1740 as_fn_error $? "pwd does not report name of working directory"
1743 # Find the source files, if location was not specified.
1744 if test -z "$srcdir"; then
1745 ac_srcdir_defaulted=yes
1746 # Try the directory containing this script, then the parent directory.
1747 ac_confdir=`$as_dirname -- "$as_myself" ||
1748 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1749 X"$as_myself" : 'X\(//\)[^/]' \| \
1750 X"$as_myself" : 'X\(//\)$' \| \
1751 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1752 $as_echo X"$as_myself" |
1753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1771 if test ! -r "$srcdir/$ac_unique_file"; then
1775 ac_srcdir_defaulted=no
1777 if test ! -r "$srcdir/$ac_unique_file"; then
1778 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1779 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1781 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1783 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1785 # When building in place, set srcdir=.
1786 if test "$ac_abs_confdir" = "$ac_pwd"; then
1789 # Remove unnecessary trailing slashes from srcdir.
1790 # Double slashes in file names in object file debugging info
1791 # mess up M-x gdb in Emacs.
1793 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1795 for ac_var in $ac_precious_vars; do
1796 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1797 eval ac_env_${ac_var}_value=\$${ac_var}
1798 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1799 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1803 # Report the --help message.
1805 if test "$ac_init_help" = "long"; then
1806 # Omit some internal or obsolete options to make the list less imposing.
1807 # This message is too long to be a string in the A/UX 3.1 sh.
1809 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1811 Usage: $0 [OPTION]... [VAR=VALUE]...
1813 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1814 VAR=VALUE. See below for descriptions of some of the useful variables.
1816 Defaults for the options are specified in brackets.
1819 -h, --help display this help and exit
1820 --help=short display options specific to this package
1821 --help=recursive display the short help of all the included packages
1822 -V, --version display version information and exit
1823 -q, --quiet, --silent do not print \`checking ...' messages
1824 --cache-file=FILE cache test results in FILE [disabled]
1825 -C, --config-cache alias for \`--cache-file=config.cache'
1826 -n, --no-create do not create output files
1827 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1829 Installation directories:
1830 --prefix=PREFIX install architecture-independent files in PREFIX
1831 [$ac_default_prefix]
1832 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1835 By default, \`make install' will install all the files in
1836 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1837 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1838 for instance \`--prefix=\$HOME'.
1840 For better control, use the options below.
1842 Fine tuning of the installation directories:
1843 --bindir=DIR user executables [EPREFIX/bin]
1844 --sbindir=DIR system admin executables [EPREFIX/sbin]
1845 --libexecdir=DIR program executables [EPREFIX/libexec]
1846 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1847 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1848 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1849 --libdir=DIR object code libraries [EPREFIX/lib]
1850 --includedir=DIR C header files [PREFIX/include]
1851 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1852 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1853 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1854 --infodir=DIR info documentation [DATAROOTDIR/info]
1855 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1856 --mandir=DIR man documentation [DATAROOTDIR/man]
1857 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1858 --htmldir=DIR html documentation [DOCDIR]
1859 --dvidir=DIR dvi documentation [DOCDIR]
1860 --pdfdir=DIR pdf documentation [DOCDIR]
1861 --psdir=DIR ps documentation [DOCDIR]
1867 --build=BUILD configure for building on BUILD [guessed]
1868 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1872 if test -n "$ac_init_help"; then
1873 case $ac_init_help in
1874 short | recursive ) echo "Configuration of asterisk trunk:";;
1879 --disable-option-checking ignore unrecognized --enable/--with options
1880 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1881 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1882 --enable-dev-mode Turn on developer mode
1883 --enable-coverage Turn on code coverage tracking (for gcov)
1884 --disable-xmldoc Explicitly disable XML documentation
1885 --disable-largefile omit support for large files
1886 --enable-internal-poll Use Asterisk's poll implementation
1887 --disable-asteriskssl Disable Asterisk's SSL wrapper library
1890 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1891 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1892 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1893 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1894 --with-bfd=PATH use Debug symbol decoding files in PATH
1895 --with-execinfo=PATH use Stack Backtrace files in PATH
1896 --with-bluetooth=PATH use Bluetooth files in PATH
1897 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1898 --with-curses=PATH use curses files in PATH
1899 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1900 --with-dahdi=PATH use DAHDI files in PATH
1901 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1902 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1904 --with-gtk2=PATH use gtk2 files in PATH
1905 --with-gmime=PATH use GMime files in PATH
1906 --with-h323=PATH use OpenH323 files in PATH
1907 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1908 --with-ical=PATH use iCal files in PATH
1909 --with-iconv=PATH use Iconv files in PATH
1910 --with-iksemel=PATH use Iksemel Jabber files in PATH
1911 --with-imap=PATH use UW IMAP Toolkit files in PATH
1912 --with-inotify=PATH use inotify support files in PATH
1913 --with-iodbc=PATH use iODBC files in PATH
1914 --with-isdnnet=PATH use ISDN4Linux files in PATH
1915 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1916 --with-kqueue=PATH use kqueue support files in PATH
1917 --with-ldap=PATH use OpenLDAP files in PATH
1918 --with-libcurl=DIR look for the curl library in DIR
1919 --with-libxml2=PATH use LibXML2 files in PATH
1920 --with-ltdl=PATH use libtool files in PATH
1921 --with-lua=PATH use Lua files in PATH
1922 --with-misdn=PATH use mISDN user files in PATH
1923 --with-mysqlclient=PATH use MySQL client files in PATH
1924 --with-nbs=PATH use Network Broadcast Sound files in PATH
1925 --with-ncurses=PATH use ncurses files in PATH
1926 --with-neon=PATH use neon files in PATH
1927 --with-neon29=PATH use neon29 files in PATH
1928 --with-netsnmp=PATH use Net-SNMP files in PATH
1929 --with-newt=PATH use newt files in PATH
1930 --with-ogg=PATH use OGG files in PATH
1931 --with-openais=PATH use OpenAIS files in PATH
1932 --with-openr2=PATH use MFR2 files in PATH
1933 --with-osptk=PATH use OSP Toolkit files in PATH
1934 --with-oss=PATH use Open Sound System files in PATH
1935 --with-postgres=PATH use PostgreSQL files in PATH
1936 --with-popt=PATH use popt files in PATH
1937 --with-portaudio=PATH use PortAudio files in PATH
1938 --with-pri=PATH use ISDN PRI files in PATH
1939 --with-pwlib=PATH use PWlib files in PATH
1940 --with-radius=PATH use Radius Client files in PATH
1941 --with-resample=PATH use LIBRESAMPLE files in PATH
1942 --with-sdl=PATH use Sdl files in PATH
1943 --with-SDL_image=PATH use Sdl Image files in PATH
1944 --with-sounds-cache=PATH
1945 use cached sound tarfiles in PATH
1946 --with-spandsp=PATH use SPANDSP files in PATH
1947 --with-ss7=PATH use ISDN SS7 files in PATH
1948 --with-speex=PATH use Speex files in PATH
1949 --with-speex=PATH use Speex preprocess routines files in PATH
1950 --with-speexdsp=PATH use SpeexDSP files in PATH
1951 --with-sqlite=PATH use SQLite files in PATH
1952 --with-sqlite3=PATH use SQLite files in PATH
1953 --with-srtp=PATH use Secure RTP files in PATH
1954 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1955 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1956 --with-tds=PATH use FreeTDS files in PATH
1957 --with-termcap=PATH use Termcap files in PATH
1958 --with-timerfd=PATH use timerfd files in PATH
1959 --with-tinfo=PATH use Term Info files in PATH
1960 --with-tonezone=PATH use tonezone files in PATH
1961 --with-unixodbc=PATH use unixODBC files in PATH
1962 --with-usb=PATH use usb files in PATH
1963 --with-vorbis=PATH use Vorbis files in PATH
1964 --with-vpb=PATH use Voicetronix API files in PATH
1965 --with-x11=PATH use X11 files in PATH
1966 --with-z=PATH use zlib compression files in PATH
1968 Some influential environment variables:
1969 CC C compiler command
1970 CFLAGS C compiler flags
1971 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1972 nonstandard directory <lib dir>
1973 LIBS libraries to pass to the linker, e.g. -l<library>
1974 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1975 you have headers in a nonstandard directory <include dir>
1977 CXX C++ compiler command
1978 CXXFLAGS C++ compiler flags
1979 CXXCPP C++ preprocessor
1981 Use these variables to override the choices made by `configure' or to help
1982 it to find libraries and programs with nonstandard names/locations.
1984 Report bugs to <https://issues.asterisk.org>.
1989 if test "$ac_init_help" = "recursive"; then
1990 # If there are subdirs, report their specific --help.
1991 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1992 test -d "$ac_dir" ||
1993 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1998 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2000 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2001 # A ".." for each directory in $ac_dir_suffix.
2002 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2003 case $ac_top_builddir_sub in
2004 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2005 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2008 ac_abs_top_builddir=$ac_pwd
2009 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2010 # for backward compatibility:
2011 ac_top_builddir=$ac_top_build_prefix
2014 .) # We are building in place.
2016 ac_top_srcdir=$ac_top_builddir_sub
2017 ac_abs_top_srcdir=$ac_pwd ;;
2018 [\\/]* | ?:[\\/]* ) # Absolute name.
2019 ac_srcdir=$srcdir$ac_dir_suffix;
2020 ac_top_srcdir=$srcdir
2021 ac_abs_top_srcdir=$srcdir ;;
2023 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2024 ac_top_srcdir=$ac_top_build_prefix$srcdir
2025 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2027 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2029 cd "$ac_dir" || { ac_status=$?; continue; }
2030 # Check for guested configure.
2031 if test -f "$ac_srcdir/configure.gnu"; then
2033 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2034 elif test -f "$ac_srcdir/configure"; then
2036 $SHELL "$ac_srcdir/configure" --help=recursive
2038 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2040 cd "$ac_pwd" || { ac_status=$?; break; }
2044 test -n "$ac_init_help" && exit $ac_status
2045 if $ac_init_version; then
2047 asterisk configure trunk
2048 generated by GNU Autoconf 2.68
2050 Copyright (C) 2010 Free Software Foundation, Inc.
2051 This configure script is free software; the Free Software Foundation
2052 gives unlimited permission to copy, distribute and modify it.
2059 ## ------------------------ ##
2060 ## Autoconf initialization. ##
2061 ## ------------------------ ##
2063 # ac_fn_c_try_compile LINENO
2064 # --------------------------
2065 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2066 ac_fn_c_try_compile ()
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 rm -f conftest.$ac_objext
2070 if { { ac_try="$ac_compile"
2072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073 *) ac_try_echo=$ac_try;;
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077 (eval "$ac_compile") 2>conftest.err
2079 if test -s conftest.err; then
2080 grep -v '^ *+' conftest.err >conftest.er1
2081 cat conftest.er1 >&5
2082 mv -f conftest.er1 conftest.err
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; } && {
2086 test -z "$ac_c_werror_flag" ||
2087 test ! -s conftest.err
2088 } && test -s conftest.$ac_objext; then :
2091 $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097 as_fn_set_status $ac_retval
2099 } # ac_fn_c_try_compile
2101 # ac_fn_c_try_cpp LINENO
2102 # ----------------------
2103 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 if { { ac_try="$ac_cpp conftest.$ac_ext"
2109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2110 *) ac_try_echo=$ac_try;;
2112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2113 $as_echo "$ac_try_echo"; } >&5
2114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2116 if test -s conftest.err; then
2117 grep -v '^ *+' conftest.err >conftest.er1
2118 cat conftest.er1 >&5
2119 mv -f conftest.er1 conftest.err
2121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2122 test $ac_status = 0; } > conftest.i && {
2123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2124 test ! -s conftest.err
2128 $as_echo "$as_me: failed program was:" >&5
2129 sed 's/^/| /' conftest.$ac_ext >&5
2133 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2134 as_fn_set_status $ac_retval
2138 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2139 # -------------------------------------------------------
2140 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2141 # the include files in INCLUDES and setting the cache variable VAR
2143 ac_fn_c_check_header_mongrel ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 if eval \${$3+:} false; then :
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148 $as_echo_n "checking for $2... " >&6; }
2149 if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2156 # Is the header compilable?
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2158 $as_echo_n "checking $2 usability... " >&6; }
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165 ac_header_compiler=yes
2167 ac_header_compiler=no
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2171 $as_echo "$ac_header_compiler" >&6; }
2173 # Is the header present?
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2175 $as_echo_n "checking $2 presence... " >&6; }
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2180 if ac_fn_c_try_cpp "$LINENO"; then :
2181 ac_header_preproc=yes
2183 ac_header_preproc=no
2185 rm -f conftest.err conftest.i conftest.$ac_ext
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2187 $as_echo "$ac_header_preproc" >&6; }
2189 # So? What about this header?
2190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2193 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2195 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2199 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2201 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2203 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2205 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2207 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2208 ( $as_echo "## ------------------------------------------ ##
2209 ## Report this to https://issues.asterisk.org ##
2210 ## ------------------------------------------ ##"
2211 ) | sed "s/^/$as_me: WARNING: /" >&2
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2215 $as_echo_n "checking for $2... " >&6; }
2216 if eval \${$3+:} false; then :
2217 $as_echo_n "(cached) " >&6
2219 eval "$3=\$ac_header_compiler"
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2223 $as_echo "$ac_res" >&6; }
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2227 } # ac_fn_c_check_header_mongrel
2229 # ac_fn_c_try_run LINENO
2230 # ----------------------
2231 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2232 # that executables *can* be run.
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 if { { ac_try="$ac_link"
2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;;
2241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2242 $as_echo "$ac_try_echo"; } >&5
2243 (eval "$ac_link") 2>&5
2245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2246 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2247 { { case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252 $as_echo "$ac_try_echo"; } >&5
2253 (eval "$ac_try") 2>&5
2255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2256 test $ac_status = 0; }; }; then :
2259 $as_echo "$as_me: program exited with status $ac_status" >&5
2260 $as_echo "$as_me: failed program was:" >&5
2261 sed 's/^/| /' conftest.$ac_ext >&5
2263 ac_retval=$ac_status
2265 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2266 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267 as_fn_set_status $ac_retval
2271 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2272 # -------------------------------------------------------
2273 # Tests whether HEADER exists and can be compiled using the include files in
2274 # INCLUDES, setting the cache variable VAR accordingly.
2275 ac_fn_c_check_header_compile ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2279 $as_echo_n "checking for $2... " >&6; }
2280 if eval \${$3+:} false; then :
2281 $as_echo_n "(cached) " >&6
2283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h. */
2288 if ac_fn_c_try_compile "$LINENO"; then :
2293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2297 $as_echo "$ac_res" >&6; }
2298 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2300 } # ac_fn_c_check_header_compile
2302 # ac_fn_cxx_try_compile LINENO
2303 # ----------------------------
2304 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2305 ac_fn_cxx_try_compile ()
2307 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2308 rm -f conftest.$ac_objext
2309 if { { ac_try="$ac_compile"
2311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312 *) ac_try_echo=$ac_try;;
2314 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2315 $as_echo "$ac_try_echo"; } >&5
2316 (eval "$ac_compile") 2>conftest.err
2318 if test -s conftest.err; then
2319 grep -v '^ *+' conftest.err >conftest.er1
2320 cat conftest.er1 >&5
2321 mv -f conftest.er1 conftest.err
2323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2324 test $ac_status = 0; } && {
2325 test -z "$ac_cxx_werror_flag" ||
2326 test ! -s conftest.err
2327 } && test -s conftest.$ac_objext; then :
2330 $as_echo "$as_me: failed program was:" >&5
2331 sed 's/^/| /' conftest.$ac_ext >&5
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2336 as_fn_set_status $ac_retval
2338 } # ac_fn_cxx_try_compile
2340 # ac_fn_cxx_try_cpp LINENO
2341 # ------------------------
2342 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2343 ac_fn_cxx_try_cpp ()
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 if { { ac_try="$ac_cpp conftest.$ac_ext"
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2352 $as_echo "$ac_try_echo"; } >&5
2353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2355 if test -s conftest.err; then
2356 grep -v '^ *+' conftest.err >conftest.er1
2357 cat conftest.er1 >&5
2358 mv -f conftest.er1 conftest.err
2360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2361 test $ac_status = 0; } > conftest.i && {
2362 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2363 test ! -s conftest.err
2367 $as_echo "$as_me: failed program was:" >&5
2368 sed 's/^/| /' conftest.$ac_ext >&5
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373 as_fn_set_status $ac_retval
2375 } # ac_fn_cxx_try_cpp
2377 # ac_fn_c_try_link LINENO
2378 # -----------------------
2379 # Try to link conftest.$ac_ext, and return whether this succeeded.
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 rm -f conftest.$ac_objext conftest$ac_exeext
2384 if { { ac_try="$ac_link"
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2390 $as_echo "$ac_try_echo"; } >&5
2391 (eval "$ac_link") 2>conftest.err
2393 if test -s conftest.err; then
2394 grep -v '^ *+' conftest.err >conftest.er1
2395 cat conftest.er1 >&5
2396 mv -f conftest.er1 conftest.err
2398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399 test $ac_status = 0; } && {
2400 test -z "$ac_c_werror_flag" ||
2401 test ! -s conftest.err
2402 } && test -s conftest$ac_exeext && {
2403 test "$cross_compiling" = yes ||
2404 $as_test_x conftest$ac_exeext
2408 $as_echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2413 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2414 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2415 # interfere with the next link command; also delete a directory that is
2416 # left behind by Apple's compiler. We do this before executing the actions.
2417 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2419 as_fn_set_status $ac_retval
2421 } # ac_fn_c_try_link
2423 # ac_fn_c_check_func LINENO FUNC VAR
2424 # ----------------------------------
2425 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2426 ac_fn_c_check_func ()
2428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2430 $as_echo_n "checking for $2... " >&6; }
2431 if eval \${$3+:} false; then :
2432 $as_echo_n "(cached) " >&6
2434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2435 /* end confdefs.h. */
2436 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2438 #define $2 innocuous_$2
2440 /* System header to define __stub macros and hopefully few prototypes,
2441 which can conflict with char $2 (); below.
2442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2443 <limits.h> exists even on freestanding compilers. */
2446 # include <limits.h>
2448 # include <assert.h>
2453 /* Override any GCC internal prototype to avoid an error.
2454 Use char because int might match the return type of a GCC
2455 builtin and then its argument prototype would still apply. */
2460 /* The GNU C library defines this for functions which it implements
2461 to always fail with ENOSYS. Some functions are actually named
2462 something starting with __ and the normal name is an alias. */
2463 #if defined __stub_$2 || defined __stub___$2
2475 if ac_fn_c_try_link "$LINENO"; then :
2480 rm -f core conftest.err conftest.$ac_objext \
2481 conftest$ac_exeext conftest.$ac_ext
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2485 $as_echo "$ac_res" >&6; }
2486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2488 } # ac_fn_c_check_func
2490 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2491 # -------------------------------------------
2492 # Tests whether TYPE exists after having included INCLUDES, setting cache
2493 # variable VAR accordingly.
2494 ac_fn_c_check_type ()
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2498 $as_echo_n "checking for $2... " >&6; }
2499 if eval \${$3+:} false; then :
2500 $as_echo_n "(cached) " >&6
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2515 if ac_fn_c_try_compile "$LINENO"; then :
2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2517 /* end confdefs.h. */
2528 if ac_fn_c_try_compile "$LINENO"; then :
2533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2539 $as_echo "$ac_res" >&6; }
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2542 } # ac_fn_c_check_type
2544 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2545 # ----------------------------------------------------
2546 # Tries to find if the field MEMBER exists in type AGGR, after including
2547 # INCLUDES, setting cache variable VAR accordingly.
2548 ac_fn_c_check_member ()
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2552 $as_echo_n "checking for $2.$3... " >&6; }
2553 if eval \${$4+:} false; then :
2554 $as_echo_n "(cached) " >&6
2556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h. */
2569 if ac_fn_c_try_compile "$LINENO"; then :
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2579 if (sizeof ac_aggr.$3)
2585 if ac_fn_c_try_compile "$LINENO"; then :
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2596 $as_echo "$ac_res" >&6; }
2597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2599 } # ac_fn_c_check_member
2601 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2602 # --------------------------------------------
2603 # Tries to find the compile-time value of EXPR in a program that includes
2604 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2606 ac_fn_c_compute_int ()
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 if test "$cross_compiling" = yes; then
2610 # Depending upon the size, compute the lo and hi bounds.
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612 /* end confdefs.h. */
2617 static int test_array [1 - 2 * !(($2) >= 0)];
2624 if ac_fn_c_try_compile "$LINENO"; then :
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h. */
2633 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2640 if ac_fn_c_try_compile "$LINENO"; then :
2641 ac_hi=$ac_mid; break
2643 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2644 if test $ac_lo -le $ac_mid; then
2648 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h. */
2659 static int test_array [1 - 2 * !(($2) < 0)];
2666 if ac_fn_c_try_compile "$LINENO"; then :
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2675 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2682 if ac_fn_c_try_compile "$LINENO"; then :
2683 ac_lo=$ac_mid; break
2685 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2686 if test $ac_mid -le $ac_hi; then
2690 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 # Binary search between lo and hi bounds.
2701 while test "x$ac_lo" != "x$ac_hi"; do
2702 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704 /* end confdefs.h. */
2709 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2716 if ac_fn_c_try_compile "$LINENO"; then :
2719 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2729 /* end confdefs.h. */
2731 static long int longval () { return $2; }
2732 static unsigned long int ulongval () { return $2; }
2739 FILE *f = fopen ("conftest.val", "w");
2744 long int i = longval ();
2747 fprintf (f, "%ld", i);
2751 unsigned long int i = ulongval ();
2754 fprintf (f, "%lu", i);
2756 /* Do not output a trailing newline, as this causes \r\n confusion
2757 on some platforms. */
2758 return ferror (f) || fclose (f) != 0;
2764 if ac_fn_c_try_run "$LINENO"; then :
2765 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2770 conftest.$ac_objext conftest.beam conftest.$ac_ext
2774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2775 as_fn_set_status $ac_retval
2777 } # ac_fn_c_compute_int
2779 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2780 # ---------------------------------------------------------
2781 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2782 # the include files in INCLUDES and setting the cache variable VAR
2784 ac_fn_cxx_check_header_mongrel ()
2786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2787 if eval \${$3+:} false; then :
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2789 $as_echo_n "checking for $2... " >&6; }
2790 if eval \${$3+:} false; then :
2791 $as_echo_n "(cached) " >&6
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2795 $as_echo "$ac_res" >&6; }
2797 # Is the header compilable?
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2799 $as_echo_n "checking $2 usability... " >&6; }
2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2801 /* end confdefs.h. */
2805 if ac_fn_cxx_try_compile "$LINENO"; then :
2806 ac_header_compiler=yes
2808 ac_header_compiler=no
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2812 $as_echo "$ac_header_compiler" >&6; }
2814 # Is the header present?
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2816 $as_echo_n "checking $2 presence... " >&6; }
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2821 if ac_fn_cxx_try_cpp "$LINENO"; then :
2822 ac_header_preproc=yes
2824 ac_header_preproc=no
2826 rm -f conftest.err conftest.i conftest.$ac_ext
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2828 $as_echo "$ac_header_preproc" >&6; }
2830 # So? What about this header?
2831 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2834 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2836 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2840 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2842 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2844 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2846 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2848 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2849 ( $as_echo "## ------------------------------------------ ##
2850 ## Report this to https://issues.asterisk.org ##
2851 ## ------------------------------------------ ##"
2852 ) | sed "s/^/$as_me: WARNING: /" >&2
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2856 $as_echo_n "checking for $2... " >&6; }
2857 if eval \${$3+:} false; then :
2858 $as_echo_n "(cached) " >&6
2860 eval "$3=\$ac_header_compiler"
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2864 $as_echo "$ac_res" >&6; }
2866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2868 } # ac_fn_cxx_check_header_mongrel
2870 # ac_fn_cxx_try_link LINENO
2871 # -------------------------
2872 # Try to link conftest.$ac_ext, and return whether this succeeded.
2873 ac_fn_cxx_try_link ()
2875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2876 rm -f conftest.$ac_objext conftest$ac_exeext
2877 if { { ac_try="$ac_link"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883 $as_echo "$ac_try_echo"; } >&5
2884 (eval "$ac_link") 2>conftest.err
2886 if test -s conftest.err; then
2887 grep -v '^ *+' conftest.err >conftest.er1
2888 cat conftest.er1 >&5
2889 mv -f conftest.er1 conftest.err
2891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2892 test $ac_status = 0; } && {
2893 test -z "$ac_cxx_werror_flag" ||
2894 test ! -s conftest.err
2895 } && test -s conftest$ac_exeext && {
2896 test "$cross_compiling" = yes ||
2897 $as_test_x conftest$ac_exeext
2901 $as_echo "$as_me: failed program was:" >&5
2902 sed 's/^/| /' conftest.$ac_ext >&5
2906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2908 # interfere with the next link command; also delete a directory that is
2909 # left behind by Apple's compiler. We do this before executing the actions.
2910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2912 as_fn_set_status $ac_retval
2914 } # ac_fn_cxx_try_link
2916 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2917 # ---------------------------------------------------------
2918 # Tests whether HEADER exists and can be compiled using the include files in
2919 # INCLUDES, setting the cache variable VAR accordingly.
2920 ac_fn_cxx_check_header_compile ()
2922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2924 $as_echo_n "checking for $2... " >&6; }
2925 if eval \${$3+:} false; then :
2926 $as_echo_n "(cached) " >&6
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2933 if ac_fn_cxx_try_compile "$LINENO"; then :
2938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2942 $as_echo "$ac_res" >&6; }
2943 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2945 } # ac_fn_cxx_check_header_compile
2946 cat >config.log <<_ACEOF
2947 This file contains any messages produced by compilers while
2948 running configure, to aid debugging if configure makes a mistake.
2950 It was created by asterisk $as_me trunk, which was
2951 generated by GNU Autoconf 2.68. Invocation command line was
2963 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2964 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2965 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2966 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2967 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2969 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2970 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2972 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2973 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2974 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2975 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2976 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2977 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2978 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 test -z "$as_dir" && as_dir=.
2987 $as_echo "PATH: $as_dir"
3003 # Keep a trace of the command line.
3004 # Strip out --no-create and --no-recursion so they do not pile up.
3005 # Strip out --silent because we don't want to record it for future runs.
3006 # Also quote any args containing shell meta-characters.
3007 # Make two passes to allow for proper duplicate-argument suppression.
3011 ac_must_keep_next=false
3017 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3018 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3019 | -silent | --silent | --silen | --sile | --sil)
3022 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3025 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3027 as_fn_append ac_configure_args1 " '$ac_arg'"
3028 if test $ac_must_keep_next = true; then
3029 ac_must_keep_next=false # Got value, back to normal.
3032 *=* | --config-cache | -C | -disable-* | --disable-* \
3033 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3034 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3035 | -with-* | --with-* | -without-* | --without-* | --x)
3036 case "$ac_configure_args0 " in
3037 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3040 -* ) ac_must_keep_next=true ;;
3043 as_fn_append ac_configure_args " '$ac_arg'"
3048 { ac_configure_args0=; unset ac_configure_args0;}
3049 { ac_configure_args1=; unset ac_configure_args1;}
3051 # When interrupted or exit'd, cleanup temporary files, and complete
3052 # config.log. We remove comments because anyway the quotes in there
3053 # would cause problems or look ugly.
3054 # WARNING: Use '\'' to represent an apostrophe within the trap.
3055 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3056 trap 'exit_status=$?
3057 # Save into config.log some information that might help in debugging.
3061 $as_echo "## ---------------- ##
3062 ## Cache variables. ##
3063 ## ---------------- ##"
3065 # The following way of writing the cache mishandles newlines in values,
3067 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3068 eval ac_val=\$$ac_var
3072 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3073 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3076 _ | IFS | as_nl) ;; #(
3077 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3078 *) { eval $ac_var=; unset $ac_var;} ;;
3083 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3084 *${as_nl}ac_space=\ *)
3086 "s/'\''/'\''\\\\'\'''\''/g;
3087 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3090 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3097 $as_echo "## ----------------- ##
3098 ## Output variables. ##
3099 ## ----------------- ##"
3101 for ac_var in $ac_subst_vars
3103 eval ac_val=\$$ac_var
3105 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3107 $as_echo "$ac_var='\''$ac_val'\''"
3111 if test -n "$ac_subst_files"; then
3112 $as_echo "## ------------------- ##
3113 ## File substitutions. ##
3114 ## ------------------- ##"
3116 for ac_var in $ac_subst_files
3118 eval ac_val=\$$ac_var
3120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3122 $as_echo "$ac_var='\''$ac_val'\''"
3127 if test -s confdefs.h; then
3128 $as_echo "## ----------- ##
3135 test "$ac_signal" != 0 &&
3136 $as_echo "$as_me: caught signal $ac_signal"
3137 $as_echo "$as_me: exit $exit_status"
3139 rm -f core *.core core.conftest.* &&
3140 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3143 for ac_signal in 1 2 13 15; do
3144 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3148 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3149 rm -f -r conftest* confdefs.h
3151 $as_echo "/* confdefs.h */" > confdefs.h
3153 # Predefined preprocessor variables.
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE_NAME "$PACKAGE_NAME"
3159 cat >>confdefs.h <<_ACEOF
3160 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3163 cat >>confdefs.h <<_ACEOF
3164 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3167 cat >>confdefs.h <<_ACEOF
3168 #define PACKAGE_STRING "$PACKAGE_STRING"
3171 cat >>confdefs.h <<_ACEOF
3172 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3175 cat >>confdefs.h <<_ACEOF
3176 #define PACKAGE_URL "$PACKAGE_URL"
3180 # Let the site file select an alternate cache file if it wants to.
3181 # Prefer an explicitly selected file to automatically selected ones.
3184 if test -n "$CONFIG_SITE"; then
3185 # We do not want a PATH search for config.site.
3186 case $CONFIG_SITE in #((
3187 -*) ac_site_file1=./$CONFIG_SITE;;
3188 */*) ac_site_file1=$CONFIG_SITE;;
3189 *) ac_site_file1=./$CONFIG_SITE;;
3191 elif test "x$prefix" != xNONE; then
3192 ac_site_file1=$prefix/share/config.site
3193 ac_site_file2=$prefix/etc/config.site
3195 ac_site_file1=$ac_default_prefix/share/config.site
3196 ac_site_file2=$ac_default_prefix/etc/config.site
3198 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3200 test "x$ac_site_file" = xNONE && continue
3201 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3203 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3204 sed 's/^/| /' "$ac_site_file" >&5
3206 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3208 as_fn_error $? "failed to load site script $ac_site_file
3209 See \`config.log' for more details" "$LINENO" 5; }
3213 if test -r "$cache_file"; then
3214 # Some versions of bash will fail to source /dev/null (special files
3215 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3216 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3218 $as_echo "$as_me: loading cache $cache_file" >&6;}
3220 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3221 *) . "./$cache_file";;
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3226 $as_echo "$as_me: creating cache $cache_file" >&6;}
3230 as_fn_append ac_header_list " stdlib.h"
3231 as_fn_append ac_header_list " unistd.h"
3232 as_fn_append ac_header_list " sys/param.h"
3233 as_fn_append ac_header_list " utime.h"
3234 # Check that the precious variables saved in the cache have kept the same
3236 ac_cache_corrupted=false
3237 for ac_var in $ac_precious_vars; do
3238 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3239 eval ac_new_set=\$ac_env_${ac_var}_set
3240 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3241 eval ac_new_val=\$ac_env_${ac_var}_value
3242 case $ac_old_set,$ac_new_set in
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3245 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3246 ac_cache_corrupted=: ;;
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3249 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3250 ac_cache_corrupted=: ;;
3253 if test "x$ac_old_val" != "x$ac_new_val"; then
3254 # differences in whitespace do not lead to failure.
3255 ac_old_val_w=`echo x $ac_old_val`
3256 ac_new_val_w=`echo x $ac_new_val`
3257 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3259 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3260 ac_cache_corrupted=:
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3263 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3264 eval $ac_var=\$ac_old_val
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3267 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3269 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3272 # Pass precious variables to config.status.
3273 if test "$ac_new_set" = set; then
3275 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3276 *) ac_arg=$ac_var=$ac_new_val ;;
3278 case " $ac_configure_args " in
3279 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3280 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3284 if $ac_cache_corrupted; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3288 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3289 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3291 ## -------------------- ##
3292 ## Main body of script. ##
3293 ## -------------------- ##
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 # cross-compile macros
3305 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3306 if test -f "$ac_dir/install-sh"; then
3308 ac_install_sh="$ac_aux_dir/install-sh -c"
3310 elif test -f "$ac_dir/install.sh"; then
3312 ac_install_sh="$ac_aux_dir/install.sh -c"
3314 elif test -f "$ac_dir/shtool"; then
3316 ac_install_sh="$ac_aux_dir/shtool install -c"
3320 if test -z "$ac_aux_dir"; then
3321 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3324 # These three variables are undocumented and unsupported,
3325 # and are intended to be withdrawn in a future Autoconf release.
3326 # They can cause serious problems if a builder's source tree is in a directory
3327 # whose full name contains unusual characters.
3328 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3329 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3330 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3333 # Make sure we can run config.sub.
3334 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3335 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3338 $as_echo_n "checking build system type... " >&6; }
3339 if ${ac_cv_build+:} false; then :
3340 $as_echo_n "(cached) " >&6
3342 ac_build_alias=$build_alias
3343 test "x$ac_build_alias" = x &&
3344 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3345 test "x$ac_build_alias" = x &&
3346 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3347 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3348 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3352 $as_echo "$ac_cv_build" >&6; }
3353 case $ac_cv_build in
3355 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3358 ac_save_IFS=$IFS; IFS='-'
3364 # Remember, the first character of IFS is used to create $*,
3365 # except with old shells:
3368 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3372 $as_echo_n "checking host system type... " >&6; }
3373 if ${ac_cv_host+:} false; then :
3374 $as_echo_n "(cached) " >&6
3376 if test "x$host_alias" = x; then
3377 ac_cv_host=$ac_cv_build
3379 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3380 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3385 $as_echo "$ac_cv_host" >&6; }
3388 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3391 ac_save_IFS=$IFS; IFS='-'
3397 # Remember, the first character of IFS is used to create $*,
3398 # except with old shells:
3401 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3405 # check existence of the package
3409 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3410 if test -f "$ac_dir/install-sh"; then
3412 ac_install_sh="$ac_aux_dir/install-sh -c"
3414 elif test -f "$ac_dir/install.sh"; then
3416 ac_install_sh="$ac_aux_dir/install.sh -c"
3418 elif test -f "$ac_dir/shtool"; then
3420 ac_install_sh="$ac_aux_dir/shtool install -c"
3424 if test -z "$ac_aux_dir"; then
3425 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3428 # These three variables are undocumented and unsupported,
3429 # and are intended to be withdrawn in a future Autoconf release.
3430 # They can cause serious problems if a builder's source tree is in a directory
3431 # whose full name contains unusual characters.
3432 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3433 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3434 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3441 # preserve any CFLAGS or LDFLAGS that may be set
3442 # NOTE: This must be done before calling any macros that end up
3443 # calling AC_PROG_CC or the like, since they will set a default
3444 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3445 # we don't want those default flags to be carried over into the
3446 # rest of the build system since we have other means of controlling
3447 # debugging symbol generation and optimization.
3448 CONFIG_CFLAGS="${CFLAGS}"
3449 CONFIG_LDFLAGS="${LDFLAGS}"
3453 # specify output header file
3454 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3457 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3458 # other macro that uses the C compiler, or the default order will be used.
3460 ac_cpp='$CPP $CPPFLAGS'
3461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464 if test -n "$ac_tool_prefix"; then
3465 for ac_prog in gcc cc
3467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_CC+:} false; then :
3472 $as_echo_n "(cached) " >&6
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 if test -n "$CC"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497 $as_echo "$CC" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3504 test -n "$CC" && break
3507 if test -z "$CC"; then
3509 for ac_prog in gcc cc
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy $ac_prog; ac_word=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3516 $as_echo_n "(cached) " >&6
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_ac_ct_CC="$ac_prog"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3541 $as_echo "$ac_ct_CC" >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3548 test -n "$ac_ct_CC" && break
3551 if test "x$ac_ct_CC" = x; then
3554 case $cross_compiling:$ac_tool_warned in
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3558 ac_tool_warned=yes ;;
3565 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567 as_fn_error $? "no acceptable C compiler found in \$PATH
3568 See \`config.log' for more details" "$LINENO" 5; }
3570 # Provide some information about the compiler.
3571 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3574 for ac_option in --version -v -V -qversion; do
3575 { { ac_try="$ac_compiler $ac_option >&5"
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3584 if test -s conftest.err; then
3586 ... rest of stderr output deleted ...
3587 10q' conftest.err >conftest.er1
3588 cat conftest.er1 >&5
3590 rm -f conftest.er1 conftest.err
3591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3592 test $ac_status = 0; }
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3606 ac_clean_files_save=$ac_clean_files
3607 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3608 # Try to create an executable without -o first, disregard a.out.
3609 # It will help us diagnose broken compilers, and finding out an intuition
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3612 $as_echo_n "checking whether the C compiler works... " >&6; }
3613 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3615 # The possible output files:
3616 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3619 for ac_file in $ac_files
3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3623 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3628 if { { ac_try="$ac_link_default"
3630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631 *) ac_try_echo=$ac_try;;
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635 (eval "$ac_link_default") 2>&5
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }; then :
3639 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3640 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3641 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3642 # so that the user can short-circuit this test for compilers unknown to
3644 for ac_file in $ac_files ''
3646 test -f "$ac_file" || continue
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3651 # We found the default executable, but exeext='' is most
3655 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3657 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3659 # We set ac_cv_exeext here because the later test for it is not
3660 # safe: cross compilers may not add the suffix if given an `-o'
3661 # argument, so we may need to know it at that point already.
3662 # Even if this section looks crufty: it has the advantage of
3669 test "$ac_cv_exeext" = no && ac_cv_exeext=
3674 if test -z "$ac_file"; then :
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3676 $as_echo "no" >&6; }
3677 $as_echo "$as_me: failed program was:" >&5
3678 sed 's/^/| /' conftest.$ac_ext >&5
3680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error 77 "C compiler cannot create executables
3683 See \`config.log' for more details" "$LINENO" 5; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3686 $as_echo "yes" >&6; }
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3689 $as_echo_n "checking for C compiler default output file name... " >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3691 $as_echo "$ac_file" >&6; }
3692 ac_exeext=$ac_cv_exeext
3694 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3695 ac_clean_files=$ac_clean_files_save
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3697 $as_echo_n "checking for suffix of executables... " >&6; }
3698 if { { ac_try="$ac_link"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3704 $as_echo "$ac_try_echo"; } >&5
3705 (eval "$ac_link") 2>&5
3707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3708 test $ac_status = 0; }; then :
3709 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3710 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3711 # work properly (i.e., refer to `conftest.exe'), while it won't with
3713 for ac_file in conftest.exe conftest conftest.*; do
3714 test -f "$ac_file" || continue
3716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3717 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3723 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3725 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3726 See \`config.log' for more details" "$LINENO" 5; }
3728 rm -f conftest conftest$ac_cv_exeext
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3730 $as_echo "$ac_cv_exeext" >&6; }
3732 rm -f conftest.$ac_ext
3733 EXEEXT=$ac_cv_exeext
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3741 FILE *f = fopen ("conftest.out", "w");
3742 return ferror (f) || fclose (f) != 0;
3748 ac_clean_files="$ac_clean_files conftest.out"
3749 # Check that the compiler produces executables we can run. If not, either
3750 # the compiler is broken, or we cross compile.
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3752 $as_echo_n "checking whether we are cross compiling... " >&6; }
3753 if test "$cross_compiling" != yes; then
3754 { { ac_try="$ac_link"
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_link") 2>&5
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }
3765 if { ac_try='./conftest$ac_cv_exeext'
3766 { { case "(($ac_try" in
3767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3768 *) ac_try_echo=$ac_try;;
3770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3771 $as_echo "$ac_try_echo"; } >&5
3772 (eval "$ac_try") 2>&5
3774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3775 test $ac_status = 0; }; }; then
3778 if test "$cross_compiling" = maybe; then
3781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 as_fn_error $? "cannot run C compiled programs.
3784 If you meant to cross compile, use \`--host'.
3785 See \`config.log' for more details" "$LINENO" 5; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3790 $as_echo "$cross_compiling" >&6; }
3792 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3793 ac_clean_files=$ac_clean_files_save
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3795 $as_echo_n "checking for suffix of object files... " >&6; }
3796 if ${ac_cv_objext+:} false; then :
3797 $as_echo_n "(cached) " >&6
3799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 /* end confdefs.h. */
3810 rm -f conftest.o conftest.obj
3811 if { { ac_try="$ac_compile"
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_compile") 2>&5
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }; then :
3822 for ac_file in conftest.o conftest.obj conftest.*; do
3823 test -f "$ac_file" || continue;
3825 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3826 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3831 $as_echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error $? "cannot compute suffix of object files: cannot compile
3837 See \`config.log' for more details" "$LINENO" 5; }
3839 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3842 $as_echo "$ac_cv_objext" >&6; }
3843 OBJEXT=$ac_cv_objext
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3846 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3847 if ${ac_cv_c_compiler_gnu+:} false; then :
3848 $as_echo_n "(cached) " >&6
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3864 if ac_fn_c_try_compile "$LINENO"; then :
3869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3870 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3874 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3875 if test $ac_compiler_gnu = yes; then
3880 ac_test_CFLAGS=${CFLAGS+set}
3881 ac_save_CFLAGS=$CFLAGS
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3883 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3884 if ${ac_cv_prog_cc_g+:} false; then :
3885 $as_echo_n "(cached) " >&6
3887 ac_save_c_werror_flag=$ac_c_werror_flag
3888 ac_c_werror_flag=yes
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3892 /* end confdefs.h. */
3902 if ac_fn_c_try_compile "$LINENO"; then :
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3917 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_c_werror_flag=$ac_save_c_werror_flag
3922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 /* end confdefs.h. */
3933 if ac_fn_c_try_compile "$LINENO"; then :