2 # From configure.ac Revision: 293047 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
32 case `(set -o) 2>/dev/null` in #(
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 # Prefer a ksh shell builtin over an external printf program on Solaris,
49 # but without wasting forks for bash or zsh.
50 if test -z "$BASH_VERSION$ZSH_VERSION" \
51 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo_n='print -rn --'
54 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60 as_echo_n='/usr/ucb/echo -n'
62 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
67 expr "X$arg" : "X\\(.*\\)$as_nl";
68 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73 as_echo_n='sh -c $as_echo_n_body as_echo'
76 as_echo='sh -c $as_echo_body as_echo'
79 # The user is always right.
80 if test "${PATH_SEPARATOR+set}" != set; then
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 # Unset variables that we do not need and which cause bugs (e.g. in
121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122 # suppresses any "Segmentation fault" message there. '((' could
123 # trigger a bug in pdksh 5.2.14.
124 for as_var in BASH_ENV ENV MAIL MAILPATH
125 do eval test x\${$as_var+set} = xset \
126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 case \`(set -o) 2>/dev/null\` in #(
158 as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172 exitcode=1; echo positional parameters were not saved.
174 test x\$exitcode = x0 || exit 1"
175 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179 test \$(( 1 + 1 )) = 2 || exit 1"
180 if (eval "$as_required") 2>/dev/null; then :
185 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 test -z "$as_dir" && as_dir=.
197 for as_base in sh bash ksh sh5; do
198 # Try only shells that exist, to save several forks.
199 as_shell=$as_dir/$as_base
200 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 CONFIG_SHELL=$as_shell as_have_required=yes
203 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
212 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
213 CONFIG_SHELL=$SHELL as_have_required=yes
218 if test "x$CONFIG_SHELL" != x; then :
219 # We cannot yet assume a decent shell, so we have to provide a
220 # neutralization value for shells without unset; and this also
221 # works around shells that cannot unset nonexistent variables.
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
229 if test x$as_have_required = xno; then :
230 $as_echo "$0: This script requires a shell more modern than all"
231 $as_echo "$0: the shells that I found on your system."
232 if test x${ZSH_VERSION+set} = xset ; then
233 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
234 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 $as_echo "$0: Please tell bug-autoconf@gnu.org and
237 $0: https://issues.asterisk.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 test -n "$DJDIR" || exec 7<&0 </dev/null
539 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
540 # so uname gets run too.
541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 ac_default_prefix=/usr/local
548 ac_config_libobj_dir=.
555 # Identity of this package.
556 PACKAGE_NAME='asterisk'
557 PACKAGE_TARNAME='asterisk'
558 PACKAGE_VERSION='trunk'
559 PACKAGE_STRING='asterisk trunk'
560 PACKAGE_BUGREPORT='https://issues.asterisk.org'
563 ac_unique_file="main/asterisk.c"
564 # Factoring default headers for most tests.
565 ac_includes_default="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
600 ac_default_prefix=/usr/local
601 ac_default_prefix=/usr/local
602 ac_default_prefix=/usr/local
603 ac_default_prefix=/usr
605 ac_subst_vars='LTLIBOBJS
607 PBX_SYSLOG_FACILITY_LOG_UUCP
608 PBX_SYSLOG_FACILITY_LOG_SYSLOG
609 PBX_SYSLOG_FACILITY_LOG_NEWS
610 PBX_SYSLOG_FACILITY_LOG_MAIL
611 PBX_SYSLOG_FACILITY_LOG_LPR
612 PBX_SYSLOG_FACILITY_LOG_KERN
613 PBX_SYSLOG_FACILITY_LOG_FTP
614 PBX_SYSLOG_FACILITY_LOG_DAEMON
615 PBX_SYSLOG_FACILITY_LOG_CRON
616 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
617 PBX_SYSLOG_FACILITY_LOG_AUTH
657 AST_NO_STRICT_OVERFLOW
659 AST_DECLARATION_AFTER_STATEMENT
663 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
664 PBX_PTHREAD_RWLOCK_INITIALIZER
741 SPEEX_PREPROCESS_INCLUDE
776 PBX_PRI_REVERSE_CHARGE
777 PRI_REVERSE_CHARGE_DIR
778 PRI_REVERSE_CHARGE_INCLUDE
779 PRI_REVERSE_CHARGE_LIB
780 PBX_PRI_SERVICE_MESSAGES
781 PRI_SERVICE_MESSAGES_DIR
782 PRI_SERVICE_MESSAGES_INCLUDE
783 PRI_SERVICE_MESSAGES_LIB
786 PRI_PROG_W_CAUSE_INCLUDE
788 PBX_PRI_INBANDDISCONNECT
789 PRI_INBANDDISCONNECT_DIR
790 PRI_INBANDDISCONNECT_INCLUDE
791 PRI_INBANDDISCONNECT_LIB
794 PRI_SETUP_KEYPAD_INCLUDE
796 PBX_PRI_CALL_REROUTING
797 PRI_CALL_REROUTING_DIR
798 PRI_CALL_REROUTING_INCLUDE
799 PRI_CALL_REROUTING_LIB
802 PRI_CALL_HOLD_INCLUDE
810 PRI_HANGUP_FIX_INCLUDE
822 PRI_AOC_EVENTS_INCLUDE
826 PRI_CALL_WAITING_INCLUDE
1134 program_transform_name
1147 enable_option_checking
1222 enable_internal_poll
1225 ac_precious_vars='build_alias
1240 # Initialize some variables set by options.
1242 ac_init_version=false
1243 ac_unrecognized_opts=
1244 ac_unrecognized_sep=
1245 # The variables have the same names as the options, with
1246 # dashes changed to underlines.
1247 cache_file=/dev/null
1254 program_transform_name=s,x,x,
1262 # Installation directory options.
1263 # These are left unexpanded so users can "make install exec_prefix=/foo"
1264 # and all the variables that are supposed to be based on exec_prefix
1265 # by default will actually change.
1266 # Use braces instead of parens because sh, perl, etc. also accept them.
1267 # (The list follows the same order as the GNU Coding Standards.)
1268 bindir='${exec_prefix}/bin'
1269 sbindir='${exec_prefix}/sbin'
1270 libexecdir='${exec_prefix}/libexec'
1271 datarootdir='${prefix}/share'
1272 datadir='${datarootdir}'
1273 sysconfdir='${prefix}/etc'
1274 sharedstatedir='${prefix}/com'
1275 localstatedir='${prefix}/var'
1276 includedir='${prefix}/include'
1277 oldincludedir='/usr/include'
1278 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1279 infodir='${datarootdir}/info'
1284 libdir='${exec_prefix}/lib'
1285 localedir='${datarootdir}/locale'
1286 mandir='${datarootdir}/man'
1292 # If the previous option needs an argument, assign it.
1293 if test -n "$ac_prev"; then
1294 eval $ac_prev=\$ac_option
1300 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1304 # Accept the important Cygnus configure options, so we can diagnose typos.
1306 case $ac_dashdash$ac_option in
1310 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1312 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1313 bindir=$ac_optarg ;;
1315 -build | --build | --buil | --bui | --bu)
1316 ac_prev=build_alias ;;
1317 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1318 build_alias=$ac_optarg ;;
1320 -cache-file | --cache-file | --cache-fil | --cache-fi \
1321 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1322 ac_prev=cache_file ;;
1323 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1324 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1325 cache_file=$ac_optarg ;;
1327 --config-cache | -C)
1328 cache_file=config.cache ;;
1330 -datadir | --datadir | --datadi | --datad)
1332 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1333 datadir=$ac_optarg ;;
1335 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1336 | --dataroo | --dataro | --datar)
1337 ac_prev=datarootdir ;;
1338 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1339 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1340 datarootdir=$ac_optarg ;;
1342 -disable-* | --disable-*)
1343 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1344 # Reject names that are not valid shell variable names.
1345 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1346 as_fn_error "invalid feature name: $ac_useropt"
1347 ac_useropt_orig=$ac_useropt
1348 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1349 case $ac_user_opts in
1351 "enable_$ac_useropt"
1353 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1354 ac_unrecognized_sep=', ';;
1356 eval enable_$ac_useropt=no ;;
1358 -docdir | --docdir | --docdi | --doc | --do)
1360 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1361 docdir=$ac_optarg ;;
1363 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1365 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1366 dvidir=$ac_optarg ;;
1368 -enable-* | --enable-*)
1369 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1370 # Reject names that are not valid shell variable names.
1371 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1372 as_fn_error "invalid feature name: $ac_useropt"
1373 ac_useropt_orig=$ac_useropt
1374 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1375 case $ac_user_opts in
1377 "enable_$ac_useropt"
1379 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1380 ac_unrecognized_sep=', ';;
1382 eval enable_$ac_useropt=\$ac_optarg ;;
1384 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1385 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1386 | --exec | --exe | --ex)
1387 ac_prev=exec_prefix ;;
1388 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1389 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1390 | --exec=* | --exe=* | --ex=*)
1391 exec_prefix=$ac_optarg ;;
1393 -gas | --gas | --ga | --g)
1394 # Obsolete; use --with-gas.
1397 -help | --help | --hel | --he | -h)
1398 ac_init_help=long ;;
1399 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1400 ac_init_help=recursive ;;
1401 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1402 ac_init_help=short ;;
1404 -host | --host | --hos | --ho)
1405 ac_prev=host_alias ;;
1406 -host=* | --host=* | --hos=* | --ho=*)
1407 host_alias=$ac_optarg ;;
1409 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1411 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1413 htmldir=$ac_optarg ;;
1415 -includedir | --includedir | --includedi | --included | --include \
1416 | --includ | --inclu | --incl | --inc)
1417 ac_prev=includedir ;;
1418 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1419 | --includ=* | --inclu=* | --incl=* | --inc=*)
1420 includedir=$ac_optarg ;;
1422 -infodir | --infodir | --infodi | --infod | --info | --inf)
1424 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1425 infodir=$ac_optarg ;;
1427 -libdir | --libdir | --libdi | --libd)
1429 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1430 libdir=$ac_optarg ;;
1432 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1433 | --libexe | --libex | --libe)
1434 ac_prev=libexecdir ;;
1435 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1436 | --libexe=* | --libex=* | --libe=*)
1437 libexecdir=$ac_optarg ;;
1439 -localedir | --localedir | --localedi | --localed | --locale)
1440 ac_prev=localedir ;;
1441 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1442 localedir=$ac_optarg ;;
1444 -localstatedir | --localstatedir | --localstatedi | --localstated \
1445 | --localstate | --localstat | --localsta | --localst | --locals)
1446 ac_prev=localstatedir ;;
1447 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1448 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1449 localstatedir=$ac_optarg ;;
1451 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1453 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1454 mandir=$ac_optarg ;;
1456 -nfp | --nfp | --nf)
1457 # Obsolete; use --without-fp.
1460 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1461 | --no-cr | --no-c | -n)
1464 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1465 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1468 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1469 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1470 | --oldin | --oldi | --old | --ol | --o)
1471 ac_prev=oldincludedir ;;
1472 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1473 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1474 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1475 oldincludedir=$ac_optarg ;;
1477 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1479 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1480 prefix=$ac_optarg ;;
1482 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1483 | --program-pre | --program-pr | --program-p)
1484 ac_prev=program_prefix ;;
1485 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1486 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1487 program_prefix=$ac_optarg ;;
1489 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1490 | --program-suf | --program-su | --program-s)
1491 ac_prev=program_suffix ;;
1492 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1493 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1494 program_suffix=$ac_optarg ;;
1496 -program-transform-name | --program-transform-name \
1497 | --program-transform-nam | --program-transform-na \
1498 | --program-transform-n | --program-transform- \
1499 | --program-transform | --program-transfor \
1500 | --program-transfo | --program-transf \
1501 | --program-trans | --program-tran \
1502 | --progr-tra | --program-tr | --program-t)
1503 ac_prev=program_transform_name ;;
1504 -program-transform-name=* | --program-transform-name=* \
1505 | --program-transform-nam=* | --program-transform-na=* \
1506 | --program-transform-n=* | --program-transform-=* \
1507 | --program-transform=* | --program-transfor=* \
1508 | --program-transfo=* | --program-transf=* \
1509 | --program-trans=* | --program-tran=* \
1510 | --progr-tra=* | --program-tr=* | --program-t=*)
1511 program_transform_name=$ac_optarg ;;
1513 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1515 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1516 pdfdir=$ac_optarg ;;
1518 -psdir | --psdir | --psdi | --psd | --ps)
1520 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1523 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1524 | -silent | --silent | --silen | --sile | --sil)
1527 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1529 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1531 sbindir=$ac_optarg ;;
1533 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1534 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1535 | --sharedst | --shareds | --shared | --share | --shar \
1537 ac_prev=sharedstatedir ;;
1538 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1539 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1540 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1542 sharedstatedir=$ac_optarg ;;
1544 -site | --site | --sit)
1546 -site=* | --site=* | --sit=*)
1549 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1551 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1552 srcdir=$ac_optarg ;;
1554 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1555 | --syscon | --sysco | --sysc | --sys | --sy)
1556 ac_prev=sysconfdir ;;
1557 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1558 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1559 sysconfdir=$ac_optarg ;;
1561 -target | --target | --targe | --targ | --tar | --ta | --t)
1562 ac_prev=target_alias ;;
1563 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1564 target_alias=$ac_optarg ;;
1566 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1569 -version | --version | --versio | --versi | --vers | -V)
1570 ac_init_version=: ;;
1573 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1574 # Reject names that are not valid shell variable names.
1575 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1576 as_fn_error "invalid package name: $ac_useropt"
1577 ac_useropt_orig=$ac_useropt
1578 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1579 case $ac_user_opts in
1583 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1584 ac_unrecognized_sep=', ';;
1586 eval with_$ac_useropt=\$ac_optarg ;;
1588 -without-* | --without-*)
1589 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1590 # Reject names that are not valid shell variable names.
1591 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1592 as_fn_error "invalid package name: $ac_useropt"
1593 ac_useropt_orig=$ac_useropt
1594 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1595 case $ac_user_opts in
1599 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1600 ac_unrecognized_sep=', ';;
1602 eval with_$ac_useropt=no ;;
1605 # Obsolete; use --with-x.
1608 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1609 | --x-incl | --x-inc | --x-in | --x-i)
1610 ac_prev=x_includes ;;
1611 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1612 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1613 x_includes=$ac_optarg ;;
1615 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1616 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1617 ac_prev=x_libraries ;;
1618 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1619 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1620 x_libraries=$ac_optarg ;;
1622 -*) as_fn_error "unrecognized option: \`$ac_option'
1623 Try \`$0 --help' for more information."
1627 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1628 # Reject names that are not valid shell variable names.
1629 case $ac_envvar in #(
1630 '' | [0-9]* | *[!_$as_cr_alnum]* )
1631 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1633 eval $ac_envvar=\$ac_optarg
1634 export $ac_envvar ;;
1637 # FIXME: should be removed in autoconf 3.0.
1638 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1639 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1640 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1641 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1647 if test -n "$ac_prev"; then
1648 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1649 as_fn_error "missing argument to $ac_option"
1652 if test -n "$ac_unrecognized_opts"; then
1653 case $enable_option_checking in
1655 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1656 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1660 # Check all directory arguments for consistency.
1661 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1662 datadir sysconfdir sharedstatedir localstatedir includedir \
1663 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1664 libdir localedir mandir
1666 eval ac_val=\$$ac_var
1667 # Remove trailing slashes.
1670 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1671 eval $ac_var=\$ac_val;;
1673 # Be sure to have absolute directory names.
1675 [\\/$]* | ?:[\\/]* ) continue;;
1676 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1678 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1681 # There might be people who depend on the old broken behavior: `$host'
1682 # used to hold the argument of --host etc.
1683 # FIXME: To remove some day.
1686 target=$target_alias
1688 # FIXME: To remove some day.
1689 if test "x$host_alias" != x; then
1690 if test "x$build_alias" = x; then
1691 cross_compiling=maybe
1692 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1693 If a cross compiler is detected then cross compile mode will be used." >&2
1694 elif test "x$build_alias" != "x$host_alias"; then
1700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1702 test "$silent" = yes && exec 6>/dev/null
1705 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1706 ac_ls_di=`ls -di .` &&
1707 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1708 as_fn_error "working directory cannot be determined"
1709 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1710 as_fn_error "pwd does not report name of working directory"
1713 # Find the source files, if location was not specified.
1714 if test -z "$srcdir"; then
1715 ac_srcdir_defaulted=yes
1716 # Try the directory containing this script, then the parent directory.
1717 ac_confdir=`$as_dirname -- "$as_myself" ||
1718 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1719 X"$as_myself" : 'X\(//\)[^/]' \| \
1720 X"$as_myself" : 'X\(//\)$' \| \
1721 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1722 $as_echo X"$as_myself" |
1723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1741 if test ! -r "$srcdir/$ac_unique_file"; then
1745 ac_srcdir_defaulted=no
1747 if test ! -r "$srcdir/$ac_unique_file"; then
1748 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1749 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1751 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1753 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1755 # When building in place, set srcdir=.
1756 if test "$ac_abs_confdir" = "$ac_pwd"; then
1759 # Remove unnecessary trailing slashes from srcdir.
1760 # Double slashes in file names in object file debugging info
1761 # mess up M-x gdb in Emacs.
1763 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1765 for ac_var in $ac_precious_vars; do
1766 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1767 eval ac_env_${ac_var}_value=\$${ac_var}
1768 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1769 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1773 # Report the --help message.
1775 if test "$ac_init_help" = "long"; then
1776 # Omit some internal or obsolete options to make the list less imposing.
1777 # This message is too long to be a string in the A/UX 3.1 sh.
1779 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1781 Usage: $0 [OPTION]... [VAR=VALUE]...
1783 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1784 VAR=VALUE. See below for descriptions of some of the useful variables.
1786 Defaults for the options are specified in brackets.
1789 -h, --help display this help and exit
1790 --help=short display options specific to this package
1791 --help=recursive display the short help of all the included packages
1792 -V, --version display version information and exit
1793 -q, --quiet, --silent do not print \`checking...' messages
1794 --cache-file=FILE cache test results in FILE [disabled]
1795 -C, --config-cache alias for \`--cache-file=config.cache'
1796 -n, --no-create do not create output files
1797 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1799 Installation directories:
1800 --prefix=PREFIX install architecture-independent files in PREFIX
1801 [$ac_default_prefix]
1802 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1805 By default, \`make install' will install all the files in
1806 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1807 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1808 for instance \`--prefix=\$HOME'.
1810 For better control, use the options below.
1812 Fine tuning of the installation directories:
1813 --bindir=DIR user executables [EPREFIX/bin]
1814 --sbindir=DIR system admin executables [EPREFIX/sbin]
1815 --libexecdir=DIR program executables [EPREFIX/libexec]
1816 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1817 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1818 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1819 --libdir=DIR object code libraries [EPREFIX/lib]
1820 --includedir=DIR C header files [PREFIX/include]
1821 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1822 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1823 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1824 --infodir=DIR info documentation [DATAROOTDIR/info]
1825 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1826 --mandir=DIR man documentation [DATAROOTDIR/man]
1827 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1828 --htmldir=DIR html documentation [DOCDIR]
1829 --dvidir=DIR dvi documentation [DOCDIR]
1830 --pdfdir=DIR pdf documentation [DOCDIR]
1831 --psdir=DIR ps documentation [DOCDIR]
1837 --build=BUILD configure for building on BUILD [guessed]
1838 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1842 if test -n "$ac_init_help"; then
1843 case $ac_init_help in
1844 short | recursive ) echo "Configuration of asterisk trunk:";;
1849 --disable-option-checking ignore unrecognized --enable/--with options
1850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1852 --enable-dev-mode Turn on developer mode
1853 --enable-coverage Turn on code coverage tracking (for gcov)
1854 --disable-largefile omit support for large files
1855 --enable-internal-poll Use Asterisk's poll implementation
1856 --disable-xmldoc Explicity disable XML documentation
1859 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1860 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1861 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1862 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1863 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1864 --with-bluetooth=PATH use Bluetooth files in PATH
1865 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1866 --with-curses=PATH use curses files in PATH
1867 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1868 --with-dahdi=PATH use DAHDI files in PATH
1869 --with-execinfo=PATH use Stack Backtrace files in PATH
1870 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1872 --with-gtk2=PATH use gtk2 files in PATH
1873 --with-gmime=PATH use GMime files in PATH
1874 --with-h323=PATH use OpenH323 files in PATH
1875 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1876 --with-ical=PATH use iCal files in PATH
1877 --with-iconv=PATH use Iconv files in PATH
1878 --with-iksemel=PATH use Iksemel Jabber files in PATH
1879 --with-imap=PATH use UW IMAP Toolkit files in PATH
1880 --with-inotify=PATH use inotify support files in PATH
1881 --with-iodbc=PATH use iODBC files in PATH
1882 --with-isdnnet=PATH use ISDN4Linux files in PATH
1883 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1884 --with-kqueue=PATH use kqueue support files in PATH
1885 --with-ldap=PATH use OpenLDAP files in PATH
1886 --with-libcurl=DIR look for the curl library in DIR
1887 --with-libxml2=PATH use LibXML2 files in PATH
1888 --with-ltdl=PATH use libtool files in PATH
1889 --with-lua=PATH use Lua files in PATH
1890 --with-misdn=PATH use mISDN user files in PATH
1891 --with-mysqlclient=PATH use MySQL client files in PATH
1892 --with-nbs=PATH use Network Broadcast Sound files in PATH
1893 --with-ncurses=PATH use ncurses files in PATH
1894 --with-neon=PATH use neon files in PATH
1895 --with-neon29=PATH use neon29 files in PATH
1896 --with-netsnmp=PATH use Net-SNMP files in PATH
1897 --with-newt=PATH use newt files in PATH
1898 --with-ogg=PATH use OGG files in PATH
1899 --with-openais=PATH use OpenAIS files in PATH
1900 --with-openr2=PATH use MFR2 files in PATH
1901 --with-osptk=PATH use OSP Toolkit files in PATH
1902 --with-oss=PATH use Open Sound System files in PATH
1903 --with-postgres=PATH use PostgreSQL files in PATH
1904 --with-popt=PATH use popt files in PATH
1905 --with-portaudio=PATH use PortAudio files in PATH
1906 --with-pri=PATH use ISDN PRI files in PATH
1907 --with-pwlib=PATH use PWlib files in PATH
1908 --with-radius=PATH use Radius Client files in PATH
1909 --with-resample=PATH use LIBRESAMPLE files in PATH
1910 --with-sdl=PATH use Sdl files in PATH
1911 --with-SDL_image=PATH use Sdl Image files in PATH
1912 --with-sounds-cache=PATH
1913 use cached sound tarfiles in PATH
1914 --with-spandsp=PATH use SPANDSP files in PATH
1915 --with-ss7=PATH use ISDN SS7 files in PATH
1916 --with-speex=PATH use Speex files in PATH
1917 --with-speex=PATH use Speex preprocess routines files in PATH
1918 --with-speexdsp=PATH use SpeexDSP files in PATH
1919 --with-sqlite=PATH use SQLite files in PATH
1920 --with-sqlite3=PATH use SQLite files in PATH
1921 --with-srtp=PATH use Secure RTP files in PATH
1922 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1923 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1924 --with-tds=PATH use FreeTDS files in PATH
1925 --with-termcap=PATH use Termcap files in PATH
1926 --with-timerfd=PATH use timerfd files in PATH
1927 --with-tinfo=PATH use Term Info files in PATH
1928 --with-tonezone=PATH use tonezone files in PATH
1929 --with-unixodbc=PATH use unixODBC files in PATH
1930 --with-usb=PATH use usb files in PATH
1931 --with-vorbis=PATH use Vorbis files in PATH
1932 --with-vpb=PATH use Voicetronix API files in PATH
1933 --with-x11=PATH use X11 files in PATH
1934 --with-z=PATH use zlib compression files in PATH
1936 Some influential environment variables:
1937 CC C compiler command
1938 CFLAGS C compiler flags
1939 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1940 nonstandard directory <lib dir>
1941 LIBS libraries to pass to the linker, e.g. -l<library>
1942 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1943 you have headers in a nonstandard directory <include dir>
1945 CXX C++ compiler command
1946 CXXFLAGS C++ compiler flags
1947 CXXCPP C++ preprocessor
1949 Use these variables to override the choices made by `configure' or to help
1950 it to find libraries and programs with nonstandard names/locations.
1952 Report bugs to <https://issues.asterisk.org>.
1957 if test "$ac_init_help" = "recursive"; then
1958 # If there are subdirs, report their specific --help.
1959 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1960 test -d "$ac_dir" ||
1961 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1966 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1968 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1969 # A ".." for each directory in $ac_dir_suffix.
1970 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1971 case $ac_top_builddir_sub in
1972 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1973 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1976 ac_abs_top_builddir=$ac_pwd
1977 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1978 # for backward compatibility:
1979 ac_top_builddir=$ac_top_build_prefix
1982 .) # We are building in place.
1984 ac_top_srcdir=$ac_top_builddir_sub
1985 ac_abs_top_srcdir=$ac_pwd ;;
1986 [\\/]* | ?:[\\/]* ) # Absolute name.
1987 ac_srcdir=$srcdir$ac_dir_suffix;
1988 ac_top_srcdir=$srcdir
1989 ac_abs_top_srcdir=$srcdir ;;
1991 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1992 ac_top_srcdir=$ac_top_build_prefix$srcdir
1993 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1995 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1997 cd "$ac_dir" || { ac_status=$?; continue; }
1998 # Check for guested configure.
1999 if test -f "$ac_srcdir/configure.gnu"; then
2001 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2002 elif test -f "$ac_srcdir/configure"; then
2004 $SHELL "$ac_srcdir/configure" --help=recursive
2006 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2008 cd "$ac_pwd" || { ac_status=$?; break; }
2012 test -n "$ac_init_help" && exit $ac_status
2013 if $ac_init_version; then
2015 asterisk configure trunk
2016 generated by GNU Autoconf 2.65
2018 Copyright (C) 2009 Free Software Foundation, Inc.
2019 This configure script is free software; the Free Software Foundation
2020 gives unlimited permission to copy, distribute and modify it.
2027 ## ------------------------ ##
2028 ## Autoconf initialization. ##
2029 ## ------------------------ ##
2031 # ac_fn_c_try_compile LINENO
2032 # --------------------------
2033 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2034 ac_fn_c_try_compile ()
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 rm -f conftest.$ac_objext
2038 if { { ac_try="$ac_compile"
2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041 *) ac_try_echo=$ac_try;;
2043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_compile") 2>conftest.err
2047 if test -s conftest.err; then
2048 grep -v '^ *+' conftest.err >conftest.er1
2049 cat conftest.er1 >&5
2050 mv -f conftest.er1 conftest.err
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && {
2054 test -z "$ac_c_werror_flag" ||
2055 test ! -s conftest.err
2056 } && test -s conftest.$ac_objext; then :
2059 $as_echo "$as_me: failed program was:" >&5
2060 sed 's/^/| /' conftest.$ac_ext >&5
2064 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 as_fn_set_status $ac_retval
2067 } # ac_fn_c_try_compile
2069 # ac_fn_c_try_cpp LINENO
2070 # ----------------------
2071 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 if { { ac_try="$ac_cpp conftest.$ac_ext"
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2084 if test -s conftest.err; then
2085 grep -v '^ *+' conftest.err >conftest.er1
2086 cat conftest.er1 >&5
2087 mv -f conftest.er1 conftest.err
2089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2090 test $ac_status = 0; } >/dev/null && {
2091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2092 test ! -s conftest.err
2096 $as_echo "$as_me: failed program was:" >&5
2097 sed 's/^/| /' conftest.$ac_ext >&5
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2102 as_fn_set_status $ac_retval
2106 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2107 # -------------------------------------------------------
2108 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2109 # the include files in INCLUDES and setting the cache variable VAR
2111 ac_fn_c_check_header_mongrel ()
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118 $as_echo_n "(cached) " >&6
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122 $as_echo "$ac_res" >&6; }
2124 # Is the header compilable?
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2126 $as_echo_n "checking $2 usability... " >&6; }
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_header_compiler=yes
2135 ac_header_compiler=no
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2139 $as_echo "$ac_header_compiler" >&6; }
2141 # Is the header present?
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2143 $as_echo_n "checking $2 presence... " >&6; }
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2148 if ac_fn_c_try_cpp "$LINENO"; then :
2149 ac_header_preproc=yes
2151 ac_header_preproc=no
2153 rm -f conftest.err conftest.$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2155 $as_echo "$ac_header_preproc" >&6; }
2157 # So? What about this header?
2158 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2161 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2167 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2169 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2171 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2173 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2175 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177 ## ------------------------------------------ ##
2178 ## Report this to https://issues.asterisk.org ##
2179 ## ------------------------------------------ ##
2181 ) | sed "s/^/$as_me: WARNING: /" >&2
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2185 $as_echo_n "checking for $2... " >&6; }
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187 $as_echo_n "(cached) " >&6
2189 eval "$3=\$ac_header_compiler"
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2193 $as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2197 } # ac_fn_c_check_header_mongrel
2199 # ac_fn_c_try_run LINENO
2200 # ----------------------
2201 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2202 # that executables *can* be run.
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 if { { ac_try="$ac_link"
2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209 *) ac_try_echo=$ac_try;;
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 $as_echo "$ac_try_echo"; } >&5
2213 (eval "$ac_link") 2>&5
2215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2216 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2217 { { case "(($ac_try" in
2218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2219 *) ac_try_echo=$ac_try;;
2221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2222 $as_echo "$ac_try_echo"; } >&5
2223 (eval "$ac_try") 2>&5
2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; }; }; then :
2229 $as_echo "$as_me: program exited with status $ac_status" >&5
2230 $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2233 ac_retval=$ac_status
2235 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2236 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2237 as_fn_set_status $ac_retval
2241 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2242 # -------------------------------------------------------
2243 # Tests whether HEADER exists and can be compiled using the include files in
2244 # INCLUDES, setting the cache variable VAR accordingly.
2245 ac_fn_c_check_header_compile ()
2247 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2249 $as_echo_n "checking for $2... " >&6; }
2250 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2251 $as_echo_n "(cached) " >&6
2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254 /* end confdefs.h. */
2258 if ac_fn_c_try_compile "$LINENO"; then :
2263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2270 } # ac_fn_c_check_header_compile
2272 # ac_fn_cxx_try_compile LINENO
2273 # ----------------------------
2274 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2275 ac_fn_cxx_try_compile ()
2277 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2278 rm -f conftest.$ac_objext
2279 if { { ac_try="$ac_compile"
2281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282 *) ac_try_echo=$ac_try;;
2284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2285 $as_echo "$ac_try_echo"; } >&5
2286 (eval "$ac_compile") 2>conftest.err
2288 if test -s conftest.err; then
2289 grep -v '^ *+' conftest.err >conftest.er1
2290 cat conftest.er1 >&5
2291 mv -f conftest.er1 conftest.err
2293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2294 test $ac_status = 0; } && {
2295 test -z "$ac_cxx_werror_flag" ||
2296 test ! -s conftest.err
2297 } && test -s conftest.$ac_objext; then :
2300 $as_echo "$as_me: failed program was:" >&5
2301 sed 's/^/| /' conftest.$ac_ext >&5
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306 as_fn_set_status $ac_retval
2308 } # ac_fn_cxx_try_compile
2310 # ac_fn_cxx_try_cpp LINENO
2311 # ------------------------
2312 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2313 ac_fn_cxx_try_cpp ()
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 if { { ac_try="$ac_cpp conftest.$ac_ext"
2318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2319 *) ac_try_echo=$ac_try;;
2321 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2322 $as_echo "$ac_try_echo"; } >&5
2323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2325 if test -s conftest.err; then
2326 grep -v '^ *+' conftest.err >conftest.er1
2327 cat conftest.er1 >&5
2328 mv -f conftest.er1 conftest.err
2330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2331 test $ac_status = 0; } >/dev/null && {
2332 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2333 test ! -s conftest.err
2337 $as_echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2342 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2343 as_fn_set_status $ac_retval
2345 } # ac_fn_cxx_try_cpp
2347 # ac_fn_c_try_link LINENO
2348 # -----------------------
2349 # Try to link conftest.$ac_ext, and return whether this succeeded.
2352 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353 rm -f conftest.$ac_objext conftest$ac_exeext
2354 if { { ac_try="$ac_link"
2356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2357 *) ac_try_echo=$ac_try;;
2359 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2360 $as_echo "$ac_try_echo"; } >&5
2361 (eval "$ac_link") 2>conftest.err
2363 if test -s conftest.err; then
2364 grep -v '^ *+' conftest.err >conftest.er1
2365 cat conftest.er1 >&5
2366 mv -f conftest.er1 conftest.err
2368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2369 test $ac_status = 0; } && {
2370 test -z "$ac_c_werror_flag" ||
2371 test ! -s conftest.err
2372 } && test -s conftest$ac_exeext && {
2373 test "$cross_compiling" = yes ||
2374 $as_test_x conftest$ac_exeext
2378 $as_echo "$as_me: failed program was:" >&5
2379 sed 's/^/| /' conftest.$ac_ext >&5
2383 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2384 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2385 # interfere with the next link command; also delete a directory that is
2386 # left behind by Apple's compiler. We do this before executing the actions.
2387 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2388 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2389 as_fn_set_status $ac_retval
2391 } # ac_fn_c_try_link
2393 # ac_fn_c_check_func LINENO FUNC VAR
2394 # ----------------------------------
2395 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2396 ac_fn_c_check_func ()
2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2400 $as_echo_n "checking for $2... " >&6; }
2401 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2402 $as_echo_n "(cached) " >&6
2404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2405 /* end confdefs.h. */
2406 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2408 #define $2 innocuous_$2
2410 /* System header to define __stub macros and hopefully few prototypes,
2411 which can conflict with char $2 (); below.
2412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2413 <limits.h> exists even on freestanding compilers. */
2416 # include <limits.h>
2418 # include <assert.h>
2423 /* Override any GCC internal prototype to avoid an error.
2424 Use char because int might match the return type of a GCC
2425 builtin and then its argument prototype would still apply. */
2430 /* The GNU C library defines this for functions which it implements
2431 to always fail with ENOSYS. Some functions are actually named
2432 something starting with __ and the normal name is an alias. */
2433 #if defined __stub_$2 || defined __stub___$2
2445 if ac_fn_c_try_link "$LINENO"; then :
2450 rm -f core conftest.err conftest.$ac_objext \
2451 conftest$ac_exeext conftest.$ac_ext
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2455 $as_echo "$ac_res" >&6; }
2456 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2458 } # ac_fn_c_check_func
2460 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2461 # -------------------------------------------
2462 # Tests whether TYPE exists after having included INCLUDES, setting cache
2463 # variable VAR accordingly.
2464 ac_fn_c_check_type ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2468 $as_echo_n "checking for $2... " >&6; }
2469 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2470 $as_echo_n "(cached) " >&6
2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474 /* end confdefs.h. */
2485 if ac_fn_c_try_compile "$LINENO"; then :
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2498 if ac_fn_c_try_compile "$LINENO"; then :
2503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512 } # ac_fn_c_check_type
2514 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2515 # ----------------------------------------------------
2516 # Tries to find if the field MEMBER exists in type AGGR, after including
2517 # INCLUDES, setting cache variable VAR accordingly.
2518 ac_fn_c_check_member ()
2520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2522 $as_echo_n "checking for $2.$3... " >&6; }
2523 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2524 $as_echo_n "(cached) " >&6
2526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2527 /* end confdefs.h. */
2539 if ac_fn_c_try_compile "$LINENO"; then :
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543 /* end confdefs.h. */
2549 if (sizeof ac_aggr.$3)
2555 if ac_fn_c_try_compile "$LINENO"; then :
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2567 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2569 } # ac_fn_c_check_member
2571 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2572 # --------------------------------------------
2573 # Tries to find the compile-time value of EXPR in a program that includes
2574 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2576 ac_fn_c_compute_int ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 if test "$cross_compiling" = yes; then
2580 # Depending upon the size, compute the lo and hi bounds.
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2587 static int test_array [1 - 2 * !(($2) >= 0)];
2594 if ac_fn_c_try_compile "$LINENO"; then :
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2603 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2610 if ac_fn_c_try_compile "$LINENO"; then :
2611 ac_hi=$ac_mid; break
2613 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2614 if test $ac_lo -le $ac_mid; then
2618 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2629 static int test_array [1 - 2 * !(($2) < 0)];
2636 if ac_fn_c_try_compile "$LINENO"; then :
2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640 /* end confdefs.h. */
2645 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2652 if ac_fn_c_try_compile "$LINENO"; then :
2653 ac_lo=$ac_mid; break
2655 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2656 if test $ac_mid -le $ac_hi; then
2660 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 # Binary search between lo and hi bounds.
2671 while test "x$ac_lo" != "x$ac_hi"; do
2672 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2679 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2686 if ac_fn_c_try_compile "$LINENO"; then :
2689 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2699 /* end confdefs.h. */
2701 static long int longval () { return $2; }
2702 static unsigned long int ulongval () { return $2; }
2709 FILE *f = fopen ("conftest.val", "w");
2714 long int i = longval ();
2717 fprintf (f, "%ld", i);
2721 unsigned long int i = ulongval ();
2724 fprintf (f, "%lu", i);
2726 /* Do not output a trailing newline, as this causes \r\n confusion
2727 on some platforms. */
2728 return ferror (f) || fclose (f) != 0;
2734 if ac_fn_c_try_run "$LINENO"; then :
2735 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2740 conftest.$ac_objext conftest.beam conftest.$ac_ext
2744 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2745 as_fn_set_status $ac_retval
2747 } # ac_fn_c_compute_int
2749 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2750 # ---------------------------------------------------------
2751 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2752 # the include files in INCLUDES and setting the cache variable VAR
2754 ac_fn_cxx_check_header_mongrel ()
2756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2757 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2759 $as_echo_n "checking for $2... " >&6; }
2760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2761 $as_echo_n "(cached) " >&6
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2765 $as_echo "$ac_res" >&6; }
2767 # Is the header compilable?
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2769 $as_echo_n "checking $2 usability... " >&6; }
2770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2771 /* end confdefs.h. */
2775 if ac_fn_cxx_try_compile "$LINENO"; then :
2776 ac_header_compiler=yes
2778 ac_header_compiler=no
2780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2782 $as_echo "$ac_header_compiler" >&6; }
2784 # Is the header present?
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2786 $as_echo_n "checking $2 presence... " >&6; }
2787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2788 /* end confdefs.h. */
2791 if ac_fn_cxx_try_cpp "$LINENO"; then :
2792 ac_header_preproc=yes
2794 ac_header_preproc=no
2796 rm -f conftest.err conftest.$ac_ext
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2798 $as_echo "$ac_header_preproc" >&6; }
2800 # So? What about this header?
2801 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2804 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2806 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2810 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2812 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2814 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2816 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2818 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2820 ## ------------------------------------------ ##
2821 ## Report this to https://issues.asterisk.org ##
2822 ## ------------------------------------------ ##
2824 ) | sed "s/^/$as_me: WARNING: /" >&2
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2828 $as_echo_n "checking for $2... " >&6; }
2829 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2830 $as_echo_n "(cached) " >&6
2832 eval "$3=\$ac_header_compiler"
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2836 $as_echo "$ac_res" >&6; }
2838 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2840 } # ac_fn_cxx_check_header_mongrel
2842 # ac_fn_cxx_try_link LINENO
2843 # -------------------------
2844 # Try to link conftest.$ac_ext, and return whether this succeeded.
2845 ac_fn_cxx_try_link ()
2847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2848 rm -f conftest.$ac_objext conftest$ac_exeext
2849 if { { ac_try="$ac_link"
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2855 $as_echo "$ac_try_echo"; } >&5
2856 (eval "$ac_link") 2>conftest.err
2858 if test -s conftest.err; then
2859 grep -v '^ *+' conftest.err >conftest.er1
2860 cat conftest.er1 >&5
2861 mv -f conftest.er1 conftest.err
2863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2864 test $ac_status = 0; } && {
2865 test -z "$ac_cxx_werror_flag" ||
2866 test ! -s conftest.err
2867 } && test -s conftest$ac_exeext && {
2868 test "$cross_compiling" = yes ||
2869 $as_test_x conftest$ac_exeext
2873 $as_echo "$as_me: failed program was:" >&5
2874 sed 's/^/| /' conftest.$ac_ext >&5
2878 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2879 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2880 # interfere with the next link command; also delete a directory that is
2881 # left behind by Apple's compiler. We do this before executing the actions.
2882 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2884 as_fn_set_status $ac_retval
2886 } # ac_fn_cxx_try_link
2888 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2889 # ---------------------------------------------------------
2890 # Tests whether HEADER exists and can be compiled using the include files in
2891 # INCLUDES, setting the cache variable VAR accordingly.
2892 ac_fn_cxx_check_header_compile ()
2894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2896 $as_echo_n "checking for $2... " >&6; }
2897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2898 $as_echo_n "(cached) " >&6
2900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2901 /* end confdefs.h. */
2905 if ac_fn_cxx_try_compile "$LINENO"; then :
2910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2914 $as_echo "$ac_res" >&6; }
2915 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2917 } # ac_fn_cxx_check_header_compile
2918 cat >config.log <<_ACEOF
2919 This file contains any messages produced by compilers while
2920 running configure, to aid debugging if configure makes a mistake.
2922 It was created by asterisk $as_me trunk, which was
2923 generated by GNU Autoconf 2.65. Invocation command line was
2935 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2936 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2937 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2938 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2939 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2941 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2942 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2944 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2945 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2946 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2947 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2948 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2949 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2950 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 test -z "$as_dir" && as_dir=.
2959 $as_echo "PATH: $as_dir"
2975 # Keep a trace of the command line.
2976 # Strip out --no-create and --no-recursion so they do not pile up.
2977 # Strip out --silent because we don't want to record it for future runs.
2978 # Also quote any args containing shell meta-characters.
2979 # Make two passes to allow for proper duplicate-argument suppression.
2983 ac_must_keep_next=false
2989 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2990 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2991 | -silent | --silent | --silen | --sile | --sil)
2994 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2997 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2999 as_fn_append ac_configure_args1 " '$ac_arg'"
3000 if test $ac_must_keep_next = true; then
3001 ac_must_keep_next=false # Got value, back to normal.
3004 *=* | --config-cache | -C | -disable-* | --disable-* \
3005 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3006 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3007 | -with-* | --with-* | -without-* | --without-* | --x)
3008 case "$ac_configure_args0 " in
3009 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3012 -* ) ac_must_keep_next=true ;;
3015 as_fn_append ac_configure_args " '$ac_arg'"
3020 { ac_configure_args0=; unset ac_configure_args0;}
3021 { ac_configure_args1=; unset ac_configure_args1;}
3023 # When interrupted or exit'd, cleanup temporary files, and complete
3024 # config.log. We remove comments because anyway the quotes in there
3025 # would cause problems or look ugly.
3026 # WARNING: Use '\'' to represent an apostrophe within the trap.
3027 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3028 trap 'exit_status=$?
3029 # Save into config.log some information that might help in debugging.
3034 ## ---------------- ##
3035 ## Cache variables. ##
3036 ## ---------------- ##
3039 # The following way of writing the cache mishandles newlines in values,
3041 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3042 eval ac_val=\$$ac_var
3046 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3047 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3050 _ | IFS | as_nl) ;; #(
3051 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3052 *) { eval $ac_var=; unset $ac_var;} ;;
3057 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3058 *${as_nl}ac_space=\ *)
3060 "s/'\''/'\''\\\\'\'''\''/g;
3061 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3064 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3072 ## ----------------- ##
3073 ## Output variables. ##
3074 ## ----------------- ##
3077 for ac_var in $ac_subst_vars
3079 eval ac_val=\$$ac_var
3081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3083 $as_echo "$ac_var='\''$ac_val'\''"
3087 if test -n "$ac_subst_files"; then
3089 ## ------------------- ##
3090 ## File substitutions. ##
3091 ## ------------------- ##
3094 for ac_var in $ac_subst_files
3096 eval ac_val=\$$ac_var
3098 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3100 $as_echo "$ac_var='\''$ac_val'\''"
3105 if test -s confdefs.h; then
3115 test "$ac_signal" != 0 &&
3116 $as_echo "$as_me: caught signal $ac_signal"
3117 $as_echo "$as_me: exit $exit_status"
3119 rm -f core *.core core.conftest.* &&
3120 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3123 for ac_signal in 1 2 13 15; do
3124 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3128 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3129 rm -f -r conftest* confdefs.h
3131 $as_echo "/* confdefs.h */" > confdefs.h
3133 # Predefined preprocessor variables.
3135 cat >>confdefs.h <<_ACEOF
3136 #define PACKAGE_NAME "$PACKAGE_NAME"
3139 cat >>confdefs.h <<_ACEOF
3140 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3143 cat >>confdefs.h <<_ACEOF
3144 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3147 cat >>confdefs.h <<_ACEOF
3148 #define PACKAGE_STRING "$PACKAGE_STRING"
3151 cat >>confdefs.h <<_ACEOF
3152 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE_URL "$PACKAGE_URL"
3160 # Let the site file select an alternate cache file if it wants to.
3161 # Prefer an explicitly selected file to automatically selected ones.
3164 if test -n "$CONFIG_SITE"; then
3165 ac_site_file1=$CONFIG_SITE
3166 elif test "x$prefix" != xNONE; then
3167 ac_site_file1=$prefix/share/config.site
3168 ac_site_file2=$prefix/etc/config.site
3170 ac_site_file1=$ac_default_prefix/share/config.site
3171 ac_site_file2=$ac_default_prefix/etc/config.site
3173 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3175 test "x$ac_site_file" = xNONE && continue
3176 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3178 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3179 sed 's/^/| /' "$ac_site_file" >&5
3184 if test -r "$cache_file"; then
3185 # Some versions of bash will fail to source /dev/null (special files
3186 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3187 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3189 $as_echo "$as_me: loading cache $cache_file" >&6;}
3191 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3192 *) . "./$cache_file";;
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3197 $as_echo "$as_me: creating cache $cache_file" >&6;}
3201 as_fn_append ac_header_list " stdlib.h"
3202 as_fn_append ac_header_list " unistd.h"
3203 as_fn_append ac_header_list " sys/param.h"
3204 as_fn_append ac_header_list " utime.h"
3205 # Check that the precious variables saved in the cache have kept the same
3207 ac_cache_corrupted=false
3208 for ac_var in $ac_precious_vars; do
3209 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3210 eval ac_new_set=\$ac_env_${ac_var}_set
3211 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3212 eval ac_new_val=\$ac_env_${ac_var}_value
3213 case $ac_old_set,$ac_new_set in
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3216 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3217 ac_cache_corrupted=: ;;
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3220 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3221 ac_cache_corrupted=: ;;
3224 if test "x$ac_old_val" != "x$ac_new_val"; then
3225 # differences in whitespace do not lead to failure.
3226 ac_old_val_w=`echo x $ac_old_val`
3227 ac_new_val_w=`echo x $ac_new_val`
3228 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3230 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3231 ac_cache_corrupted=:
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3234 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3235 eval $ac_var=\$ac_old_val
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3238 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3240 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3243 # Pass precious variables to config.status.
3244 if test "$ac_new_set" = set; then
3246 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3247 *) ac_arg=$ac_var=$ac_new_val ;;
3249 case " $ac_configure_args " in
3250 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3251 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3255 if $ac_cache_corrupted; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3259 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3260 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3262 ## -------------------- ##
3263 ## Main body of script. ##
3264 ## -------------------- ##
3267 ac_cpp='$CPP $CPPFLAGS'
3268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3274 # cross-compile macros
3276 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3277 for ac_t in install-sh install.sh shtool; do
3278 if test -f "$ac_dir/$ac_t"; then
3280 ac_install_sh="$ac_aux_dir/$ac_t -c"
3285 if test -z "$ac_aux_dir"; then
3286 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3289 # These three variables are undocumented and unsupported,
3290 # and are intended to be withdrawn in a future Autoconf release.
3291 # They can cause serious problems if a builder's source tree is in a directory
3292 # whose full name contains unusual characters.
3293 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3294 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3295 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3298 # Make sure we can run config.sub.
3299 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3300 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3303 $as_echo_n "checking build system type... " >&6; }
3304 if test "${ac_cv_build+set}" = set; then :
3305 $as_echo_n "(cached) " >&6
3307 ac_build_alias=$build_alias
3308 test "x$ac_build_alias" = x &&
3309 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3310 test "x$ac_build_alias" = x &&
3311 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3312 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3313 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3317 $as_echo "$ac_cv_build" >&6; }
3318 case $ac_cv_build in
3320 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3323 ac_save_IFS=$IFS; IFS='-'
3329 # Remember, the first character of IFS is used to create $*,
3330 # except with old shells:
3333 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3337 $as_echo_n "checking host system type... " >&6; }
3338 if test "${ac_cv_host+set}" = set; then :
3339 $as_echo_n "(cached) " >&6
3341 if test "x$host_alias" = x; then
3342 ac_cv_host=$ac_cv_build
3344 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3345 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3350 $as_echo "$ac_cv_host" >&6; }
3353 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3356 ac_save_IFS=$IFS; IFS='-'
3362 # Remember, the first character of IFS is used to create $*,
3363 # except with old shells:
3366 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3370 # check existence of the package
3374 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3375 for ac_t in install-sh install.sh shtool; do
3376 if test -f "$ac_dir/$ac_t"; then
3378 ac_install_sh="$ac_aux_dir/$ac_t -c"
3383 if test -z "$ac_aux_dir"; then
3384 as_fn_error "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3387 # These three variables are undocumented and unsupported,
3388 # and are intended to be withdrawn in a future Autoconf release.
3389 # They can cause serious problems if a builder's source tree is in a directory
3390 # whose full name contains unusual characters.
3391 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3392 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3393 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3400 # preserve any CFLAGS or LDFLAGS that may be set
3401 # NOTE: This must be done before calling any macros that end up
3402 # calling AC_PROG_CC or the like, since they will set a default
3403 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3404 # we don't want those default flags to be carried over into the
3405 # rest of the build system since we have other means of controlling
3406 # debugging symbol generation and optimization.
3407 CONFIG_CFLAGS="${CFLAGS}"
3408 CONFIG_LDFLAGS="${LDFLAGS}"
3412 # specify output header file
3413 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3417 ac_cpp='$CPP $CPPFLAGS'
3418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3421 if test -n "$ac_tool_prefix"; then
3422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3425 $as_echo_n "checking for $ac_word... " >&6; }
3426 if test "${ac_cv_prog_CC+set}" = set; then :
3427 $as_echo_n "(cached) " >&6
3429 if test -n "$CC"; then
3430 ac_cv_prog_CC="$CC" # Let the user override the test.
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 if test -n "$CC"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3452 $as_echo "$CC" >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3455 $as_echo "no" >&6; }
3460 if test -z "$ac_cv_prog_CC"; then
3462 # Extract the first word of "gcc", so it can be a program name with args.
3463 set dummy gcc; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3467 $as_echo_n "(cached) " >&6
3469 if test -n "$ac_ct_CC"; then
3470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3479 ac_cv_prog_ac_ct_CC="gcc"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3490 if test -n "$ac_ct_CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3492 $as_echo "$ac_ct_CC" >&6; }
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3498 if test "x$ac_ct_CC" = x; then
3501 case $cross_compiling:$ac_tool_warned in
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3505 ac_tool_warned=yes ;;
3513 if test -z "$CC"; then
3514 if test -n "$ac_tool_prefix"; then
3515 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3516 set dummy ${ac_tool_prefix}cc; ac_word=$2
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_CC+set}" = set; then :
3520 $as_echo_n "(cached) " >&6
3522 if test -n "$CC"; then
3523 ac_cv_prog_CC="$CC" # Let the user override the test.
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 test -z "$as_dir" && as_dir=.
3530 for ac_exec_ext in '' $ac_executable_extensions; do
3531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532 ac_cv_prog_CC="${ac_tool_prefix}cc"
3533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3543 if test -n "$CC"; then
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548 $as_echo "no" >&6; }
3554 if test -z "$CC"; then
3555 # Extract the first word of "cc", so it can be a program name with args.
3556 set dummy cc; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3562 if test -n "$CC"; then
3563 ac_cv_prog_CC="$CC" # Let the user override the test.
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3574 ac_prog_rejected=yes
3578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 if test $ac_prog_rejected = yes; then
3586 # We found a bogon in the path, so make sure we never use it.
3587 set dummy $ac_cv_prog_CC
3589 if test $# != 0; then
3590 # We chose a different compiler from the bogus one.
3591 # However, it has the same basename, so the bogon will be chosen
3592 # first if we set CC to just the basename; use the full file name.
3594 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3610 if test -z "$CC"; then
3611 if test -n "$ac_tool_prefix"; then
3612 for ac_prog in cl.exe
3614 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3615 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if test "${ac_cv_prog_CC+set}" = set; then :
3619 $as_echo_n "(cached) " >&6
3621 if test -n "$CC"; then
3622 ac_cv_prog_CC="$CC" # Let the user override the test.
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3631 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 if test -n "$CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3644 $as_echo "$CC" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3651 test -n "$CC" && break
3654 if test -z "$CC"; then
3656 for ac_prog in cl.exe
3658 # Extract the first word of "$ac_prog", so it can be a program name with args.
3659 set dummy $ac_prog; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3663 $as_echo_n "(cached) " >&6
3665 if test -n "$ac_ct_CC"; then
3666 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_ac_ct_CC="$ac_prog"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3686 if test -n "$ac_ct_CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3688 $as_echo "$ac_ct_CC" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3695 test -n "$ac_ct_CC" && break
3698 if test "x$ac_ct_CC" = x; then
3701 case $cross_compiling:$ac_tool_warned in
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3705 ac_tool_warned=yes ;;
3714 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3715 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3716 as_fn_error "no acceptable C compiler found in \$PATH
3717 See \`config.log' for more details." "$LINENO" 5; }
3719 # Provide some information about the compiler.
3720 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3723 for ac_option in --version -v -V -qversion; do
3724 { { ac_try="$ac_compiler $ac_option >&5"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3733 if test -s conftest.err; then
3735 ... rest of stderr output deleted ...
3736 10q' conftest.err >conftest.er1
3737 cat conftest.er1 >&5
3739 rm -f conftest.er1 conftest.err
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3755 ac_clean_files_save=$ac_clean_files
3756 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3757 # Try to create an executable without -o first, disregard a.out.
3758 # It will help us diagnose broken compilers, and finding out an intuition
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3761 $as_echo_n "checking whether the C compiler works... " >&6; }
3762 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3764 # The possible output files:
3765 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3768 for ac_file in $ac_files
3771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3777 if { { ac_try="$ac_link_default"
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783 $as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_link_default") 2>&5
3786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3787 test $ac_status = 0; }; then :
3788 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3789 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3790 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3791 # so that the user can short-circuit this test for compilers unknown to
3793 for ac_file in $ac_files ''
3795 test -f "$ac_file" || continue
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3800 # We found the default executable, but exeext='' is most
3804 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3806 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3808 # We set ac_cv_exeext here because the later test for it is not
3809 # safe: cross compilers may not add the suffix if given an `-o'
3810 # argument, so we may need to know it at that point already.
3811 # Even if this section looks crufty: it has the advantage of
3818 test "$ac_cv_exeext" = no && ac_cv_exeext=
3823 if test -z "$ac_file"; then :
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 $as_echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3829 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3831 { as_fn_set_status 77
3832 as_fn_error "C compiler cannot create executables
3833 See \`config.log' for more details." "$LINENO" 5; }; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3836 $as_echo "yes" >&6; }
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3839 $as_echo_n "checking for C compiler default output file name... " >&6; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3841 $as_echo "$ac_file" >&6; }
3842 ac_exeext=$ac_cv_exeext
3844 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3845 ac_clean_files=$ac_clean_files_save
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3847 $as_echo_n "checking for suffix of executables... " >&6; }
3848 if { { ac_try="$ac_link"
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3854 $as_echo "$ac_try_echo"; } >&5
3855 (eval "$ac_link") 2>&5
3857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3858 test $ac_status = 0; }; then :
3859 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3860 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3861 # work properly (i.e., refer to `conftest.exe'), while it won't with
3863 for ac_file in conftest.exe conftest conftest.*; do
3864 test -f "$ac_file" || continue
3866 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3867 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3875 as_fn_error "cannot compute suffix of executables: cannot compile and link
3876 See \`config.log' for more details." "$LINENO" 5; }
3878 rm -f conftest conftest$ac_cv_exeext
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3880 $as_echo "$ac_cv_exeext" >&6; }
3882 rm -f conftest.$ac_ext
3883 EXEEXT=$ac_cv_exeext
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3886 /* end confdefs.h. */
3891 FILE *f = fopen ("conftest.out", "w");
3892 return ferror (f) || fclose (f) != 0;
3898 ac_clean_files="$ac_clean_files conftest.out"
3899 # Check that the compiler produces executables we can run. If not, either
3900 # the compiler is broken, or we cross compile.
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3902 $as_echo_n "checking whether we are cross compiling... " >&6; }
3903 if test "$cross_compiling" != yes; then
3904 { { ac_try="$ac_link"
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_link") 2>&5
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }
3915 if { ac_try='./conftest$ac_cv_exeext'
3916 { { case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3928 if test "$cross_compiling" = maybe; then
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile, use \`--host'.
3935 See \`config.log' for more details." "$LINENO" 5; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3940 $as_echo "$cross_compiling" >&6; }
3942 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3945 $as_echo_n "checking for suffix of object files... " >&6; }
3946 if test "${ac_cv_objext+set}" = set; then :
3947 $as_echo_n "(cached) " >&6
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3960 rm -f conftest.o conftest.obj
3961 if { { ac_try="$ac_compile"
3963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3964 *) ac_try_echo=$ac_try;;
3966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3967 $as_echo "$ac_try_echo"; } >&5
3968 (eval "$ac_compile") 2>&5
3970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3971 test $ac_status = 0; }; then :
3972 for ac_file in conftest.o conftest.obj conftest.*; do
3973 test -f "$ac_file" || continue;
3975 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3976 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3981 $as_echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3986 as_fn_error "cannot compute suffix of object files: cannot compile
3987 See \`config.log' for more details." "$LINENO" 5; }
3989 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3992 $as_echo "$ac_cv_objext" >&6; }
3993 OBJEXT=$ac_cv_objext
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3996 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3997 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3998 $as_echo_n "(cached) " >&6
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4014 if ac_fn_c_try_compile "$LINENO"; then :
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4024 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4025 if test $ac_compiler_gnu = yes; then
4030 ac_test_CFLAGS=${CFLAGS+set}
4031 ac_save_CFLAGS=$CFLAGS
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4033 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4034 if test "${ac_cv_prog_cc_g+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4037 ac_save_c_werror_flag=$ac_c_werror_flag
4038 ac_c_werror_flag=yes
4041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042 /* end confdefs.h. */
4052 if ac_fn_c_try_compile "$LINENO"; then :
4056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4057 /* end confdefs.h. */
4067 if ac_fn_c_try_compile "$LINENO"; then :
4070 ac_c_werror_flag=$ac_save_c_werror_flag
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4083 if ac_fn_c_try_compile "$LINENO"; then :
4086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091 ac_c_werror_flag=$ac_save_c_werror_flag
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4094 $as_echo "$ac_cv_prog_cc_g" >&6; }
4095 if test "$ac_test_CFLAGS" = set; then
4096 CFLAGS=$ac_save_CFLAGS
4097 elif test $ac_cv_prog_cc_g = yes; then
4098 if test "$GCC" = yes; then
4104 if test "$GCC" = yes; then
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4111 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4112 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4115 ac_cv_prog_cc_c89=no
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4121 #include <sys/types.h>
4122 #include <sys/stat.h>
4123 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4124 struct buf { int x; };
4125 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4126 static char *e (p, i)
4132 static char *f (char * (*g) (char **, int), char **p, ...)
4137 s = g (p, va_arg (v,int));
4142 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4143 function prototypes and stuff, but not '\xHH' hex character constants.
4144 These don't provoke an error unfortunately, instead are silently treated
4145 as 'x'. The following induces an error, until -std is added to get
4146 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4147 array size at least. It's necessary to write '\x00'==0 to get something
4148 that's true only with -std. */
4149 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4151 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4152 inside strings and character constants. */
4154 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4156 int test (int i, double x);
4157 struct s1 {int (*f) (int a);};
4158 struct s2 {int (*f) (double a);};
4159 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4165 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4170 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4171 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4173 CC="$ac_save_CC $ac_arg"
4174 if ac_fn_c_try_compile "$LINENO"; then :
4175 ac_cv_prog_cc_c89=$ac_arg
4177 rm -f core conftest.err conftest.$ac_objext
4178 test "x$ac_cv_prog_cc_c89" != "xno" && break
4180 rm -f conftest.$ac_ext
4185 case "x$ac_cv_prog_cc_c89" in
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4188 $as_echo "none needed" >&6; } ;;
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4191 $as_echo "unsupported" >&6; } ;;
4193 CC="$CC $ac_cv_prog_cc_c89"
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4195 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4197 if test "x$ac_cv_prog_cc_c89" != xno; then :
4202 ac_cpp='$CPP $CPPFLAGS'
4203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4209 ac_cpp='$CPP $CPPFLAGS'
4210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4214 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4215 # On Suns, sometimes $CPP names a directory.
4216 if test -n "$CPP" && test -d "$CPP"; then
4219 if test -z "$CPP"; then
4220 if test "${ac_cv_prog_CPP+set}" = set; then :
4221 $as_echo_n "(cached) " >&6
4223 # Double quotes because CPP needs to be expanded
4224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4227 for ac_c_preproc_warn_flag in '' yes
4229 # Use a header file that comes with gcc, so configuring glibc
4230 # with a fresh cross-compiler works.
4231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4232 # <limits.h> exists even on freestanding compilers.
4233 # On the NeXT, cc -E runs the code through the compiler's parser,
4234 # not just through cpp. "Syntax error" is here to catch this case.
4235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4236 /* end confdefs.h. */
4238 # include <limits.h>
4240 # include <assert.h>
4244 if ac_fn_c_try_cpp "$LINENO"; then :
4247 # Broken: fails on valid input.
4250 rm -f conftest.err conftest.$ac_ext
4252 # OK, works on sane cases. Now check whether nonexistent headers
4253 # can be detected and how.
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 #include <ac_nonexistent.h>
4258 if ac_fn_c_try_cpp "$LINENO"; then :
4259 # Broken: success on invalid input.
4262 # Passes both tests.
4266 rm -f conftest.err conftest.$ac_ext
4269 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4270 rm -f conftest.err conftest.$ac_ext
4271 if $ac_preproc_ok; then :
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4284 $as_echo "$CPP" >&6; }
4286 for ac_c_preproc_warn_flag in '' yes
4288 # Use a header file that comes with gcc, so configuring glibc
4289 # with a fresh cross-compiler works.
4290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4291 # <limits.h> exists even on freestanding compilers.
4292 # On the NeXT, cc -E runs the code through the compiler's parser,
4293 # not just through cpp. "Syntax error" is here to catch this case.
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4297 # include <limits.h>
4299 # include <assert.h>
4303 if ac_fn_c_try_cpp "$LINENO"; then :
4306 # Broken: fails on valid input.
4309 rm -f conftest.err conftest.$ac_ext
4311 # OK, works on sane cases. Now check whether nonexistent headers
4312 # can be detected and how.
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4315 #include <ac_nonexistent.h>
4317 if ac_fn_c_try_cpp "$LINENO"; then :
4318 # Broken: success on invalid input.
4321 # Passes both tests.
4325 rm -f conftest.err conftest.$ac_ext
4328 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4329 rm -f conftest.err conftest.$ac_ext
4330 if $ac_preproc_ok; then :
4333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4335 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4336 See \`config.log' for more details." "$LINENO" 5; }
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4347 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4348 if test "${ac_cv_path_GREP+set}" = set; then :
4349 $as_echo_n "(cached) " >&6
4351 if test -z "$GREP"; then
4352 ac_path_GREP_found=false
4353 # Loop through the user's path and test for each of PROGNAME-LIST
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4358 test -z "$as_dir" && as_dir=.
4359 for ac_prog in grep ggrep; do
4360 for ac_exec_ext in '' $ac_executable_extensions; do
4361 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4362 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4363 # Check for GNU ac_path_GREP and select it if it is found.
4364 # Check for GNU $ac_path_GREP
4365 case `"$ac_path_GREP" --version 2>&1` in
4367 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4370 $as_echo_n 0123456789 >"conftest.in"
4373 cat "conftest.in" "conftest.in" >"conftest.tmp"
4374 mv "conftest.tmp" "conftest.in"
4375 cp "conftest.in" "conftest.nl"
4376 $as_echo 'GREP' >> "conftest.nl"
4377 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4379 as_fn_arith $ac_count + 1 && ac_count=$as_val
4380 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4381 # Best one so far, save it but keep looking for a better one
4382 ac_cv_path_GREP="$ac_path_GREP"
4383 ac_path_GREP_max=$ac_count
4385 # 10*(2^10) chars as input seems more than enough
4386 test $ac_count -gt 10 && break
4388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4391 $ac_path_GREP_found && break 3
4396 if test -z "$ac_cv_path_GREP"; then
4397 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4400 ac_cv_path_GREP=$GREP
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4405 $as_echo "$ac_cv_path_GREP" >&6; }
4406 GREP="$ac_cv_path_GREP"
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4410 $as_echo_n "checking for egrep... " >&6; }
4411 if test "${ac_cv_path_EGREP+set}" = set; then :
4412 $as_echo_n "(cached) " >&6
4414 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4415 then ac_cv_path_EGREP="$GREP -E"
4417 if test -z "$EGREP"; then
4418 ac_path_EGREP_found=false
4419 # Loop through the user's path and test for each of PROGNAME-LIST
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4424 test -z "$as_dir" && as_dir=.
4425 for ac_prog in egrep; do
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4428 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4429 # Check for GNU ac_path_EGREP and select it if it is found.
4430 # Check for GNU $ac_path_EGREP
4431 case `"$ac_path_EGREP" --version 2>&1` in
4433 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4436 $as_echo_n 0123456789 >"conftest.in"
4439 cat "conftest.in" "conftest.in" >"conftest.tmp"
4440 mv "conftest.tmp" "conftest.in"
4441 cp "conftest.in" "conftest.nl"
4442 $as_echo 'EGREP' >> "conftest.nl"
4443 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4444 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4445 as_fn_arith $ac_count + 1 && ac_count=$as_val
4446 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4447 # Best one so far, save it but keep looking for a better one
4448 ac_cv_path_EGREP="$ac_path_EGREP"
4449 ac_path_EGREP_max=$ac_count
4451 # 10*(2^10) chars as input seems more than enough
4452 test $ac_count -gt 10 && break
4454 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4457 $ac_path_EGREP_found && break 3
4462 if test -z "$ac_cv_path_EGREP"; then
4463 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4466 ac_cv_path_EGREP=$EGREP
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4472 $as_echo "$ac_cv_path_EGREP" >&6; }
4473 EGREP="$ac_cv_path_EGREP"
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4477 $as_echo_n "checking for ANSI C header files... " >&6; }
4478 if test "${ac_cv_header_stdc+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4496 if ac_fn_c_try_compile "$LINENO"; then :
4497 ac_cv_header_stdc=yes
4499 ac_cv_header_stdc=no
4501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4503 if test $ac_cv_header_stdc = yes; then
4504 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4511 $EGREP "memchr" >/dev/null 2>&1; then :
4514 ac_cv_header_stdc=no
4520 if test $ac_cv_header_stdc = yes; then
4521 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4528 $EGREP "free" >/dev/null 2>&1; then :
4531 ac_cv_header_stdc=no
4537 if test $ac_cv_header_stdc = yes; then
4538 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4539 if test "$cross_compiling" = yes; then :
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4546 #if ((' ' & 0x0FF) == 0x020)
4547 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4548 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4550 # define ISLOWER(c) \
4551 (('a' <= (c) && (c) <= 'i') \
4552 || ('j' <= (c) && (c) <= 'r') \
4553 || ('s' <= (c) && (c) <= 'z'))
4554 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4562 for (i = 0; i < 256; i++)
4563 if (XOR (islower (i), ISLOWER (i))
4564 || toupper (i) != TOUPPER (i))
4569 if ac_fn_c_try_run "$LINENO"; then :
4572 ac_cv_header_stdc=no
4574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4575 conftest.$ac_objext conftest.beam conftest.$ac_ext
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4581 $as_echo "$ac_cv_header_stdc" >&6; }
4582 if test $ac_cv_header_stdc = yes; then
4584 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4588 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4589 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4590 inttypes.h stdint.h unistd.h
4592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4593 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4595 eval as_val=\$$as_ac_Header
4596 if test "x$as_val" = x""yes; then :
4597 cat >>confdefs.h <<_ACEOF
4598 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4607 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4608 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4615 if test "$MINIX" = yes; then
4617 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4620 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4623 $as_echo "#define _MINIX 1" >>confdefs.h
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4629 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4630 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
4633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4634 /* end confdefs.h. */
4636 # define __EXTENSIONS__ 1
4637 $ac_includes_default
4646 if ac_fn_c_try_compile "$LINENO"; then :
4647 ac_cv_safe_to_define___extensions__=yes
4649 ac_cv_safe_to_define___extensions__=no
4651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4654 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4655 test $ac_cv_safe_to_define___extensions__ = yes &&
4656 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4658 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4660 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4662 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4664 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4667 # System default paths
4668 astsbindir='${sbindir}'
4669 astetcdir='${sysconfdir}/asterisk'
4670 astheaderdir='${includedir}/asterisk'
4671 astlibdir='${libdir}/asterisk'
4672 astmandir='${mandir}'
4673 astvarlibdir='${localstatedir}/lib/asterisk'
4674 astdatadir='${astvarlibdir}'
4675 astdbdir='${astvarlibdir}'
4676 astkeydir='${astvarlibdir}'
4677 astspooldir='${localstatedir}/spool/asterisk'
4678 astlogdir='${localstatedir}/log/asterisk'
4679 astvarrundir='${localstatedir}/run/asterisk'
4681 case "${host_os}" in
4683 if test ${prefix} = 'NONE'; then
4684 astvarlibdir='${prefix}/share/asterisk'
4685 astdbdir='${localstatedir}/db/asterisk'
4689 if test ${prefix} = 'NONE'; then
4690 astvarrundir='/Library/Application Support/Asterisk/Run'