2 # From configure.ac Revision: 314116 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
32 case `(set -o) 2>/dev/null` in #(
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 # Prefer a ksh shell builtin over an external printf program on Solaris,
49 # but without wasting forks for bash or zsh.
50 if test -z "$BASH_VERSION$ZSH_VERSION" \
51 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo_n='print -rn --'
54 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60 as_echo_n='/usr/ucb/echo -n'
62 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
67 expr "X$arg" : "X\\(.*\\)$as_nl";
68 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73 as_echo_n='sh -c $as_echo_n_body as_echo'
76 as_echo='sh -c $as_echo_body as_echo'
79 # The user is always right.
80 if test "${PATH_SEPARATOR+set}" != set; then
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120 # Unset variables that we do not need and which cause bugs (e.g. in
121 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122 # suppresses any "Segmentation fault" message there. '((' could
123 # trigger a bug in pdksh 5.2.14.
124 for as_var in BASH_ENV ENV MAIL MAILPATH
125 do eval test x\${$as_var+set} = xset \
126 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
139 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141 if test "x$CONFIG_SHELL" = x; then
142 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
150 case \`(set -o) 2>/dev/null\` in #(
158 as_required="as_fn_return () { (exit \$1); }
159 as_fn_success () { as_fn_return 0; }
160 as_fn_failure () { as_fn_return 1; }
161 as_fn_ret_success () { return 0; }
162 as_fn_ret_failure () { return 1; }
165 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172 exitcode=1; echo positional parameters were not saved.
174 test x\$exitcode = x0 || exit 1"
175 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179 test \$(( 1 + 1 )) = 2 || exit 1"
180 if (eval "$as_required") 2>/dev/null; then :
185 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 test -z "$as_dir" && as_dir=.
197 for as_base in sh bash ksh sh5; do
198 # Try only shells that exist, to save several forks.
199 as_shell=$as_dir/$as_base
200 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 CONFIG_SHELL=$as_shell as_have_required=yes
203 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
212 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
213 CONFIG_SHELL=$SHELL as_have_required=yes
218 if test "x$CONFIG_SHELL" != x; then :
219 # We cannot yet assume a decent shell, so we have to provide a
220 # neutralization value for shells without unset; and this also
221 # works around shells that cannot unset nonexistent variables.
224 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
229 if test x$as_have_required = xno; then :
230 $as_echo "$0: This script requires a shell more modern than all"
231 $as_echo "$0: the shells that I found on your system."
232 if test x${ZSH_VERSION+set} = xset ; then
233 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
234 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 $as_echo "$0: Please tell bug-autoconf@gnu.org and
237 $0: https://issues.asterisk.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535 test -n "$DJDIR" || exec 7<&0 </dev/null
539 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
540 # so uname gets run too.
541 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 ac_default_prefix=/usr/local
548 ac_config_libobj_dir=.
555 # Identity of this package.
556 PACKAGE_NAME='asterisk'
557 PACKAGE_TARNAME='asterisk'
558 PACKAGE_VERSION='trunk'
559 PACKAGE_STRING='asterisk trunk'
560 PACKAGE_BUGREPORT='https://issues.asterisk.org'
563 ac_unique_file="main/asterisk.c"
564 # Factoring default headers for most tests.
565 ac_includes_default="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
601 ac_subst_vars='LTLIBOBJS
603 PBX_SYSLOG_FACILITY_LOG_UUCP
604 PBX_SYSLOG_FACILITY_LOG_SYSLOG
605 PBX_SYSLOG_FACILITY_LOG_NEWS
606 PBX_SYSLOG_FACILITY_LOG_MAIL
607 PBX_SYSLOG_FACILITY_LOG_LPR
608 PBX_SYSLOG_FACILITY_LOG_KERN
609 PBX_SYSLOG_FACILITY_LOG_FTP
610 PBX_SYSLOG_FACILITY_LOG_DAEMON
611 PBX_SYSLOG_FACILITY_LOG_CRON
612 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
613 PBX_SYSLOG_FACILITY_LOG_AUTH
655 AST_NO_STRICT_OVERFLOW
657 AST_DECLARATION_AFTER_STATEMENT
661 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
662 PBX_PTHREAD_RWLOCK_INITIALIZER
739 SPEEX_PREPROCESS_INCLUDE
774 PBX_PRI_REVERSE_CHARGE
775 PRI_REVERSE_CHARGE_DIR
776 PRI_REVERSE_CHARGE_INCLUDE
777 PRI_REVERSE_CHARGE_LIB
778 PBX_PRI_SERVICE_MESSAGES
779 PRI_SERVICE_MESSAGES_DIR
780 PRI_SERVICE_MESSAGES_INCLUDE
781 PRI_SERVICE_MESSAGES_LIB
784 PRI_PROG_W_CAUSE_INCLUDE
786 PBX_PRI_INBANDDISCONNECT
787 PRI_INBANDDISCONNECT_DIR
788 PRI_INBANDDISCONNECT_INCLUDE
789 PRI_INBANDDISCONNECT_LIB
792 PRI_SETUP_KEYPAD_INCLUDE
794 PBX_PRI_CALL_REROUTING
795 PRI_CALL_REROUTING_DIR
796 PRI_CALL_REROUTING_INCLUDE
797 PRI_CALL_REROUTING_LIB
800 PRI_CALL_HOLD_INCLUDE
808 PRI_HANGUP_FIX_INCLUDE
820 PRI_AOC_EVENTS_INCLUDE
824 PRI_CALL_WAITING_INCLUDE
836 PRI_DISPLAY_TEXT_INCLUDE
1144 program_transform_name
1157 enable_option_checking
1233 enable_internal_poll
1236 ac_precious_vars='build_alias
1251 # Initialize some variables set by options.
1253 ac_init_version=false
1254 ac_unrecognized_opts=
1255 ac_unrecognized_sep=
1256 # The variables have the same names as the options, with
1257 # dashes changed to underlines.
1258 cache_file=/dev/null
1265 program_transform_name=s,x,x,
1273 # Installation directory options.
1274 # These are left unexpanded so users can "make install exec_prefix=/foo"
1275 # and all the variables that are supposed to be based on exec_prefix
1276 # by default will actually change.
1277 # Use braces instead of parens because sh, perl, etc. also accept them.
1278 # (The list follows the same order as the GNU Coding Standards.)
1279 bindir='${exec_prefix}/bin'
1280 sbindir='${exec_prefix}/sbin'
1281 libexecdir='${exec_prefix}/libexec'
1282 datarootdir='${prefix}/share'
1283 datadir='${datarootdir}'
1284 sysconfdir='${prefix}/etc'
1285 sharedstatedir='${prefix}/com'
1286 localstatedir='${prefix}/var'
1287 includedir='${prefix}/include'
1288 oldincludedir='/usr/include'
1289 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1290 infodir='${datarootdir}/info'
1295 libdir='${exec_prefix}/lib'
1296 localedir='${datarootdir}/locale'
1297 mandir='${datarootdir}/man'
1303 # If the previous option needs an argument, assign it.
1304 if test -n "$ac_prev"; then
1305 eval $ac_prev=\$ac_option
1311 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1315 # Accept the important Cygnus configure options, so we can diagnose typos.
1317 case $ac_dashdash$ac_option in
1321 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1323 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1324 bindir=$ac_optarg ;;
1326 -build | --build | --buil | --bui | --bu)
1327 ac_prev=build_alias ;;
1328 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1329 build_alias=$ac_optarg ;;
1331 -cache-file | --cache-file | --cache-fil | --cache-fi \
1332 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1333 ac_prev=cache_file ;;
1334 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1335 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1336 cache_file=$ac_optarg ;;
1338 --config-cache | -C)
1339 cache_file=config.cache ;;
1341 -datadir | --datadir | --datadi | --datad)
1343 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1344 datadir=$ac_optarg ;;
1346 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1347 | --dataroo | --dataro | --datar)
1348 ac_prev=datarootdir ;;
1349 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1350 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1351 datarootdir=$ac_optarg ;;
1353 -disable-* | --disable-*)
1354 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1355 # Reject names that are not valid shell variable names.
1356 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1357 as_fn_error "invalid feature name: $ac_useropt"
1358 ac_useropt_orig=$ac_useropt
1359 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1360 case $ac_user_opts in
1362 "enable_$ac_useropt"
1364 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1365 ac_unrecognized_sep=', ';;
1367 eval enable_$ac_useropt=no ;;
1369 -docdir | --docdir | --docdi | --doc | --do)
1371 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1372 docdir=$ac_optarg ;;
1374 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1376 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1377 dvidir=$ac_optarg ;;
1379 -enable-* | --enable-*)
1380 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1381 # Reject names that are not valid shell variable names.
1382 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1383 as_fn_error "invalid feature name: $ac_useropt"
1384 ac_useropt_orig=$ac_useropt
1385 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1386 case $ac_user_opts in
1388 "enable_$ac_useropt"
1390 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1391 ac_unrecognized_sep=', ';;
1393 eval enable_$ac_useropt=\$ac_optarg ;;
1395 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1396 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1397 | --exec | --exe | --ex)
1398 ac_prev=exec_prefix ;;
1399 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1400 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1401 | --exec=* | --exe=* | --ex=*)
1402 exec_prefix=$ac_optarg ;;
1404 -gas | --gas | --ga | --g)
1405 # Obsolete; use --with-gas.
1408 -help | --help | --hel | --he | -h)
1409 ac_init_help=long ;;
1410 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1411 ac_init_help=recursive ;;
1412 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1413 ac_init_help=short ;;
1415 -host | --host | --hos | --ho)
1416 ac_prev=host_alias ;;
1417 -host=* | --host=* | --hos=* | --ho=*)
1418 host_alias=$ac_optarg ;;
1420 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1422 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1424 htmldir=$ac_optarg ;;
1426 -includedir | --includedir | --includedi | --included | --include \
1427 | --includ | --inclu | --incl | --inc)
1428 ac_prev=includedir ;;
1429 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1430 | --includ=* | --inclu=* | --incl=* | --inc=*)
1431 includedir=$ac_optarg ;;
1433 -infodir | --infodir | --infodi | --infod | --info | --inf)
1435 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1436 infodir=$ac_optarg ;;
1438 -libdir | --libdir | --libdi | --libd)
1440 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1441 libdir=$ac_optarg ;;
1443 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1444 | --libexe | --libex | --libe)
1445 ac_prev=libexecdir ;;
1446 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1447 | --libexe=* | --libex=* | --libe=*)
1448 libexecdir=$ac_optarg ;;
1450 -localedir | --localedir | --localedi | --localed | --locale)
1451 ac_prev=localedir ;;
1452 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1453 localedir=$ac_optarg ;;
1455 -localstatedir | --localstatedir | --localstatedi | --localstated \
1456 | --localstate | --localstat | --localsta | --localst | --locals)
1457 ac_prev=localstatedir ;;
1458 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1459 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1460 localstatedir=$ac_optarg ;;
1462 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1464 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1465 mandir=$ac_optarg ;;
1467 -nfp | --nfp | --nf)
1468 # Obsolete; use --without-fp.
1471 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1472 | --no-cr | --no-c | -n)
1475 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1476 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1479 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1480 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1481 | --oldin | --oldi | --old | --ol | --o)
1482 ac_prev=oldincludedir ;;
1483 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1484 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1485 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1486 oldincludedir=$ac_optarg ;;
1488 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1490 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1491 prefix=$ac_optarg ;;
1493 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1494 | --program-pre | --program-pr | --program-p)
1495 ac_prev=program_prefix ;;
1496 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1497 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1498 program_prefix=$ac_optarg ;;
1500 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1501 | --program-suf | --program-su | --program-s)
1502 ac_prev=program_suffix ;;
1503 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1504 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1505 program_suffix=$ac_optarg ;;
1507 -program-transform-name | --program-transform-name \
1508 | --program-transform-nam | --program-transform-na \
1509 | --program-transform-n | --program-transform- \
1510 | --program-transform | --program-transfor \
1511 | --program-transfo | --program-transf \
1512 | --program-trans | --program-tran \
1513 | --progr-tra | --program-tr | --program-t)
1514 ac_prev=program_transform_name ;;
1515 -program-transform-name=* | --program-transform-name=* \
1516 | --program-transform-nam=* | --program-transform-na=* \
1517 | --program-transform-n=* | --program-transform-=* \
1518 | --program-transform=* | --program-transfor=* \
1519 | --program-transfo=* | --program-transf=* \
1520 | --program-trans=* | --program-tran=* \
1521 | --progr-tra=* | --program-tr=* | --program-t=*)
1522 program_transform_name=$ac_optarg ;;
1524 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1526 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1527 pdfdir=$ac_optarg ;;
1529 -psdir | --psdir | --psdi | --psd | --ps)
1531 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1535 | -silent | --silent | --silen | --sile | --sil)
1538 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1540 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1542 sbindir=$ac_optarg ;;
1544 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1545 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1546 | --sharedst | --shareds | --shared | --share | --shar \
1548 ac_prev=sharedstatedir ;;
1549 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1550 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1551 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1553 sharedstatedir=$ac_optarg ;;
1555 -site | --site | --sit)
1557 -site=* | --site=* | --sit=*)
1560 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1562 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1563 srcdir=$ac_optarg ;;
1565 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1566 | --syscon | --sysco | --sysc | --sys | --sy)
1567 ac_prev=sysconfdir ;;
1568 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1569 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1570 sysconfdir=$ac_optarg ;;
1572 -target | --target | --targe | --targ | --tar | --ta | --t)
1573 ac_prev=target_alias ;;
1574 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1575 target_alias=$ac_optarg ;;
1577 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1580 -version | --version | --versio | --versi | --vers | -V)
1581 ac_init_version=: ;;
1584 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1585 # Reject names that are not valid shell variable names.
1586 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1587 as_fn_error "invalid package name: $ac_useropt"
1588 ac_useropt_orig=$ac_useropt
1589 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1590 case $ac_user_opts in
1594 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1595 ac_unrecognized_sep=', ';;
1597 eval with_$ac_useropt=\$ac_optarg ;;
1599 -without-* | --without-*)
1600 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1601 # Reject names that are not valid shell variable names.
1602 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1603 as_fn_error "invalid package name: $ac_useropt"
1604 ac_useropt_orig=$ac_useropt
1605 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1606 case $ac_user_opts in
1610 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1611 ac_unrecognized_sep=', ';;
1613 eval with_$ac_useropt=no ;;
1616 # Obsolete; use --with-x.
1619 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1620 | --x-incl | --x-inc | --x-in | --x-i)
1621 ac_prev=x_includes ;;
1622 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1623 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1624 x_includes=$ac_optarg ;;
1626 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1627 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1628 ac_prev=x_libraries ;;
1629 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1630 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1631 x_libraries=$ac_optarg ;;
1633 -*) as_fn_error "unrecognized option: \`$ac_option'
1634 Try \`$0 --help' for more information."
1638 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1639 # Reject names that are not valid shell variable names.
1640 case $ac_envvar in #(
1641 '' | [0-9]* | *[!_$as_cr_alnum]* )
1642 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1644 eval $ac_envvar=\$ac_optarg
1645 export $ac_envvar ;;
1648 # FIXME: should be removed in autoconf 3.0.
1649 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1650 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1651 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1652 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1658 if test -n "$ac_prev"; then
1659 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1660 as_fn_error "missing argument to $ac_option"
1663 if test -n "$ac_unrecognized_opts"; then
1664 case $enable_option_checking in
1666 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1667 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1671 # Check all directory arguments for consistency.
1672 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1673 datadir sysconfdir sharedstatedir localstatedir includedir \
1674 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1675 libdir localedir mandir
1677 eval ac_val=\$$ac_var
1678 # Remove trailing slashes.
1681 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1682 eval $ac_var=\$ac_val;;
1684 # Be sure to have absolute directory names.
1686 [\\/$]* | ?:[\\/]* ) continue;;
1687 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1689 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1692 # There might be people who depend on the old broken behavior: `$host'
1693 # used to hold the argument of --host etc.
1694 # FIXME: To remove some day.
1697 target=$target_alias
1699 # FIXME: To remove some day.
1700 if test "x$host_alias" != x; then
1701 if test "x$build_alias" = x; then
1702 cross_compiling=maybe
1703 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1704 If a cross compiler is detected then cross compile mode will be used." >&2
1705 elif test "x$build_alias" != "x$host_alias"; then
1711 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1713 test "$silent" = yes && exec 6>/dev/null
1716 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1717 ac_ls_di=`ls -di .` &&
1718 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1719 as_fn_error "working directory cannot be determined"
1720 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1721 as_fn_error "pwd does not report name of working directory"
1724 # Find the source files, if location was not specified.
1725 if test -z "$srcdir"; then
1726 ac_srcdir_defaulted=yes
1727 # Try the directory containing this script, then the parent directory.
1728 ac_confdir=`$as_dirname -- "$as_myself" ||
1729 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1730 X"$as_myself" : 'X\(//\)[^/]' \| \
1731 X"$as_myself" : 'X\(//\)$' \| \
1732 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1733 $as_echo X"$as_myself" |
1734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1752 if test ! -r "$srcdir/$ac_unique_file"; then
1756 ac_srcdir_defaulted=no
1758 if test ! -r "$srcdir/$ac_unique_file"; then
1759 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1760 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1762 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1764 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1766 # When building in place, set srcdir=.
1767 if test "$ac_abs_confdir" = "$ac_pwd"; then
1770 # Remove unnecessary trailing slashes from srcdir.
1771 # Double slashes in file names in object file debugging info
1772 # mess up M-x gdb in Emacs.
1774 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1776 for ac_var in $ac_precious_vars; do
1777 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1778 eval ac_env_${ac_var}_value=\$${ac_var}
1779 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1780 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1784 # Report the --help message.
1786 if test "$ac_init_help" = "long"; then
1787 # Omit some internal or obsolete options to make the list less imposing.
1788 # This message is too long to be a string in the A/UX 3.1 sh.
1790 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1792 Usage: $0 [OPTION]... [VAR=VALUE]...
1794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1795 VAR=VALUE. See below for descriptions of some of the useful variables.
1797 Defaults for the options are specified in brackets.
1800 -h, --help display this help and exit
1801 --help=short display options specific to this package
1802 --help=recursive display the short help of all the included packages
1803 -V, --version display version information and exit
1804 -q, --quiet, --silent do not print \`checking...' messages
1805 --cache-file=FILE cache test results in FILE [disabled]
1806 -C, --config-cache alias for \`--cache-file=config.cache'
1807 -n, --no-create do not create output files
1808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1810 Installation directories:
1811 --prefix=PREFIX install architecture-independent files in PREFIX
1812 [$ac_default_prefix]
1813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1816 By default, \`make install' will install all the files in
1817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1819 for instance \`--prefix=\$HOME'.
1821 For better control, use the options below.
1823 Fine tuning of the installation directories:
1824 --bindir=DIR user executables [EPREFIX/bin]
1825 --sbindir=DIR system admin executables [EPREFIX/sbin]
1826 --libexecdir=DIR program executables [EPREFIX/libexec]
1827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1830 --libdir=DIR object code libraries [EPREFIX/lib]
1831 --includedir=DIR C header files [PREFIX/include]
1832 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1833 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1834 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1835 --infodir=DIR info documentation [DATAROOTDIR/info]
1836 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1837 --mandir=DIR man documentation [DATAROOTDIR/man]
1838 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1839 --htmldir=DIR html documentation [DOCDIR]
1840 --dvidir=DIR dvi documentation [DOCDIR]
1841 --pdfdir=DIR pdf documentation [DOCDIR]
1842 --psdir=DIR ps documentation [DOCDIR]
1848 --build=BUILD configure for building on BUILD [guessed]
1849 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1853 if test -n "$ac_init_help"; then
1854 case $ac_init_help in
1855 short | recursive ) echo "Configuration of asterisk trunk:";;
1860 --disable-option-checking ignore unrecognized --enable/--with options
1861 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1862 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1863 --enable-dev-mode Turn on developer mode
1864 --enable-coverage Turn on code coverage tracking (for gcov)
1865 --disable-largefile omit support for large files
1866 --enable-internal-poll Use Asterisk's poll implementation
1867 --disable-xmldoc Explicity disable XML documentation
1870 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1871 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1872 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1873 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1874 --with-bfd=PATH use Debug symbol decoding files in PATH
1875 --with-execinfo=PATH use Stack Backtrace files in PATH
1876 --with-bluetooth=PATH use Bluetooth files in PATH
1877 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1878 --with-curses=PATH use curses files in PATH
1879 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1880 --with-dahdi=PATH use DAHDI files in PATH
1881 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1882 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1884 --with-gtk2=PATH use gtk2 files in PATH
1885 --with-gmime=PATH use GMime files in PATH
1886 --with-h323=PATH use OpenH323 files in PATH
1887 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1888 --with-ical=PATH use iCal files in PATH
1889 --with-iconv=PATH use Iconv files in PATH
1890 --with-iksemel=PATH use Iksemel Jabber files in PATH
1891 --with-imap=PATH use UW IMAP Toolkit files in PATH
1892 --with-inotify=PATH use inotify support files in PATH
1893 --with-iodbc=PATH use iODBC files in PATH
1894 --with-isdnnet=PATH use ISDN4Linux files in PATH
1895 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1896 --with-kqueue=PATH use kqueue support files in PATH
1897 --with-ldap=PATH use OpenLDAP files in PATH
1898 --with-libcurl=DIR look for the curl library in DIR
1899 --with-libxml2=PATH use LibXML2 files in PATH
1900 --with-ltdl=PATH use libtool files in PATH
1901 --with-lua=PATH use Lua files in PATH
1902 --with-misdn=PATH use mISDN user files in PATH
1903 --with-mysqlclient=PATH use MySQL client files in PATH
1904 --with-nbs=PATH use Network Broadcast Sound files in PATH
1905 --with-ncurses=PATH use ncurses files in PATH
1906 --with-neon=PATH use neon files in PATH
1907 --with-neon29=PATH use neon29 files in PATH
1908 --with-netsnmp=PATH use Net-SNMP files in PATH
1909 --with-newt=PATH use newt files in PATH
1910 --with-ogg=PATH use OGG files in PATH
1911 --with-openais=PATH use OpenAIS files in PATH
1912 --with-openr2=PATH use MFR2 files in PATH
1913 --with-osptk=PATH use OSP Toolkit files in PATH
1914 --with-oss=PATH use Open Sound System files in PATH
1915 --with-postgres=PATH use PostgreSQL files in PATH
1916 --with-popt=PATH use popt files in PATH
1917 --with-portaudio=PATH use PortAudio files in PATH
1918 --with-pri=PATH use ISDN PRI files in PATH
1919 --with-pwlib=PATH use PWlib files in PATH
1920 --with-radius=PATH use Radius Client files in PATH
1921 --with-resample=PATH use LIBRESAMPLE files in PATH
1922 --with-sdl=PATH use Sdl files in PATH
1923 --with-SDL_image=PATH use Sdl Image files in PATH
1924 --with-sounds-cache=PATH
1925 use cached sound tarfiles in PATH
1926 --with-spandsp=PATH use SPANDSP files in PATH
1927 --with-ss7=PATH use ISDN SS7 files in PATH
1928 --with-speex=PATH use Speex files in PATH
1929 --with-speex=PATH use Speex preprocess routines files in PATH
1930 --with-speexdsp=PATH use SpeexDSP files in PATH
1931 --with-sqlite=PATH use SQLite files in PATH
1932 --with-sqlite3=PATH use SQLite files in PATH
1933 --with-srtp=PATH use Secure RTP files in PATH
1934 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1935 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1936 --with-tds=PATH use FreeTDS files in PATH
1937 --with-termcap=PATH use Termcap files in PATH
1938 --with-timerfd=PATH use timerfd files in PATH
1939 --with-tinfo=PATH use Term Info files in PATH
1940 --with-tonezone=PATH use tonezone files in PATH
1941 --with-unixodbc=PATH use unixODBC files in PATH
1942 --with-usb=PATH use usb files in PATH
1943 --with-vorbis=PATH use Vorbis files in PATH
1944 --with-vpb=PATH use Voicetronix API files in PATH
1945 --with-x11=PATH use X11 files in PATH
1946 --with-z=PATH use zlib compression files in PATH
1948 Some influential environment variables:
1949 CC C compiler command
1950 CFLAGS C compiler flags
1951 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1952 nonstandard directory <lib dir>
1953 LIBS libraries to pass to the linker, e.g. -l<library>
1954 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1955 you have headers in a nonstandard directory <include dir>
1957 CXX C++ compiler command
1958 CXXFLAGS C++ compiler flags
1959 CXXCPP C++ preprocessor
1961 Use these variables to override the choices made by `configure' or to help
1962 it to find libraries and programs with nonstandard names/locations.
1964 Report bugs to <https://issues.asterisk.org>.
1969 if test "$ac_init_help" = "recursive"; then
1970 # If there are subdirs, report their specific --help.
1971 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1972 test -d "$ac_dir" ||
1973 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1978 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1980 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1981 # A ".." for each directory in $ac_dir_suffix.
1982 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1983 case $ac_top_builddir_sub in
1984 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1985 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1988 ac_abs_top_builddir=$ac_pwd
1989 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1990 # for backward compatibility:
1991 ac_top_builddir=$ac_top_build_prefix
1994 .) # We are building in place.
1996 ac_top_srcdir=$ac_top_builddir_sub
1997 ac_abs_top_srcdir=$ac_pwd ;;
1998 [\\/]* | ?:[\\/]* ) # Absolute name.
1999 ac_srcdir=$srcdir$ac_dir_suffix;
2000 ac_top_srcdir=$srcdir
2001 ac_abs_top_srcdir=$srcdir ;;
2003 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2004 ac_top_srcdir=$ac_top_build_prefix$srcdir
2005 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2007 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2009 cd "$ac_dir" || { ac_status=$?; continue; }
2010 # Check for guested configure.
2011 if test -f "$ac_srcdir/configure.gnu"; then
2013 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2014 elif test -f "$ac_srcdir/configure"; then
2016 $SHELL "$ac_srcdir/configure" --help=recursive
2018 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2020 cd "$ac_pwd" || { ac_status=$?; break; }
2024 test -n "$ac_init_help" && exit $ac_status
2025 if $ac_init_version; then
2027 asterisk configure trunk
2028 generated by GNU Autoconf 2.65
2030 Copyright (C) 2009 Free Software Foundation, Inc.
2031 This configure script is free software; the Free Software Foundation
2032 gives unlimited permission to copy, distribute and modify it.
2039 ## ------------------------ ##
2040 ## Autoconf initialization. ##
2041 ## ------------------------ ##
2043 # ac_fn_c_try_compile LINENO
2044 # --------------------------
2045 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2046 ac_fn_c_try_compile ()
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 rm -f conftest.$ac_objext
2050 if { { ac_try="$ac_compile"
2052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2053 *) ac_try_echo=$ac_try;;
2055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2056 $as_echo "$ac_try_echo"; } >&5
2057 (eval "$ac_compile") 2>conftest.err
2059 if test -s conftest.err; then
2060 grep -v '^ *+' conftest.err >conftest.er1
2061 cat conftest.er1 >&5
2062 mv -f conftest.er1 conftest.err
2064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065 test $ac_status = 0; } && {
2066 test -z "$ac_c_werror_flag" ||
2067 test ! -s conftest.err
2068 } && test -s conftest.$ac_objext; then :
2071 $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2076 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2077 as_fn_set_status $ac_retval
2079 } # ac_fn_c_try_compile
2081 # ac_fn_c_try_cpp LINENO
2082 # ----------------------
2083 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 if { { ac_try="$ac_cpp conftest.$ac_ext"
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2092 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093 $as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2096 if test -s conftest.err; then
2097 grep -v '^ *+' conftest.err >conftest.er1
2098 cat conftest.er1 >&5
2099 mv -f conftest.er1 conftest.err
2101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102 test $ac_status = 0; } >/dev/null && {
2103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2104 test ! -s conftest.err
2108 $as_echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114 as_fn_set_status $ac_retval
2118 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2119 # -------------------------------------------------------
2120 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2121 # the include files in INCLUDES and setting the cache variable VAR
2123 ac_fn_c_check_header_mongrel ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2128 $as_echo_n "checking for $2... " >&6; }
2129 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2130 $as_echo_n "(cached) " >&6
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2136 # Is the header compilable?
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2138 $as_echo_n "checking $2 usability... " >&6; }
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 ac_header_compiler=yes
2147 ac_header_compiler=no
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2151 $as_echo "$ac_header_compiler" >&6; }
2153 # Is the header present?
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2155 $as_echo_n "checking $2 presence... " >&6; }
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157 /* end confdefs.h. */
2160 if ac_fn_c_try_cpp "$LINENO"; then :
2161 ac_header_preproc=yes
2163 ac_header_preproc=no
2165 rm -f conftest.err conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2167 $as_echo "$ac_header_preproc" >&6; }
2169 # So? What about this header?
2170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2173 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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;}
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2179 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2181 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2183 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2185 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2187 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2189 ## ------------------------------------------ ##
2190 ## Report this to https://issues.asterisk.org ##
2191 ## ------------------------------------------ ##
2193 ) | sed "s/^/$as_me: WARNING: /" >&2
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2197 $as_echo_n "checking for $2... " >&6; }
2198 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2199 $as_echo_n "(cached) " >&6
2201 eval "$3=\$ac_header_compiler"
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2205 $as_echo "$ac_res" >&6; }
2207 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2209 } # ac_fn_c_check_header_mongrel
2211 # ac_fn_c_try_run LINENO
2212 # ----------------------
2213 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2214 # that executables *can* be run.
2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2218 if { { ac_try="$ac_link"
2220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2221 *) ac_try_echo=$ac_try;;
2223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2224 $as_echo "$ac_try_echo"; } >&5
2225 (eval "$ac_link") 2>&5
2227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2229 { { case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2233 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234 $as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_try") 2>&5
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; }; }; then :
2241 $as_echo "$as_me: program exited with status $ac_status" >&5
2242 $as_echo "$as_me: failed program was:" >&5
2243 sed 's/^/| /' conftest.$ac_ext >&5
2245 ac_retval=$ac_status
2247 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 as_fn_set_status $ac_retval
2253 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2254 # -------------------------------------------------------
2255 # Tests whether HEADER exists and can be compiled using the include files in
2256 # INCLUDES, setting the cache variable VAR accordingly.
2257 ac_fn_c_check_header_compile ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2261 $as_echo_n "checking for $2... " >&6; }
2262 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2270 if ac_fn_c_try_compile "$LINENO"; then :
2275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2279 $as_echo "$ac_res" >&6; }
2280 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2282 } # ac_fn_c_check_header_compile
2284 # ac_fn_cxx_try_compile LINENO
2285 # ----------------------------
2286 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2287 ac_fn_cxx_try_compile ()
2289 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2290 rm -f conftest.$ac_objext
2291 if { { ac_try="$ac_compile"
2293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2294 *) ac_try_echo=$ac_try;;
2296 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2297 $as_echo "$ac_try_echo"; } >&5
2298 (eval "$ac_compile") 2>conftest.err
2300 if test -s conftest.err; then
2301 grep -v '^ *+' conftest.err >conftest.er1
2302 cat conftest.er1 >&5
2303 mv -f conftest.er1 conftest.err
2305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2306 test $ac_status = 0; } && {
2307 test -z "$ac_cxx_werror_flag" ||
2308 test ! -s conftest.err
2309 } && test -s conftest.$ac_objext; then :
2312 $as_echo "$as_me: failed program was:" >&5
2313 sed 's/^/| /' conftest.$ac_ext >&5
2317 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2318 as_fn_set_status $ac_retval
2320 } # ac_fn_cxx_try_compile
2322 # ac_fn_cxx_try_cpp LINENO
2323 # ------------------------
2324 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2325 ac_fn_cxx_try_cpp ()
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 if { { ac_try="$ac_cpp conftest.$ac_ext"
2330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2331 *) ac_try_echo=$ac_try;;
2333 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2334 $as_echo "$ac_try_echo"; } >&5
2335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2337 if test -s conftest.err; then
2338 grep -v '^ *+' conftest.err >conftest.er1
2339 cat conftest.er1 >&5
2340 mv -f conftest.er1 conftest.err
2342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2343 test $ac_status = 0; } >/dev/null && {
2344 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2345 test ! -s conftest.err
2349 $as_echo "$as_me: failed program was:" >&5
2350 sed 's/^/| /' conftest.$ac_ext >&5
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 as_fn_set_status $ac_retval
2357 } # ac_fn_cxx_try_cpp
2359 # ac_fn_c_try_link LINENO
2360 # -----------------------
2361 # Try to link conftest.$ac_ext, and return whether this succeeded.
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2365 rm -f conftest.$ac_objext conftest$ac_exeext
2366 if { { ac_try="$ac_link"
2368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2369 *) ac_try_echo=$ac_try;;
2371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2372 $as_echo "$ac_try_echo"; } >&5
2373 (eval "$ac_link") 2>conftest.err
2375 if test -s conftest.err; then
2376 grep -v '^ *+' conftest.err >conftest.er1
2377 cat conftest.er1 >&5
2378 mv -f conftest.er1 conftest.err
2380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2381 test $ac_status = 0; } && {
2382 test -z "$ac_c_werror_flag" ||
2383 test ! -s conftest.err
2384 } && test -s conftest$ac_exeext && {
2385 test "$cross_compiling" = yes ||
2386 $as_test_x conftest$ac_exeext
2390 $as_echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2395 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2396 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2397 # interfere with the next link command; also delete a directory that is
2398 # left behind by Apple's compiler. We do this before executing the actions.
2399 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2400 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2401 as_fn_set_status $ac_retval
2403 } # ac_fn_c_try_link
2405 # ac_fn_c_check_func LINENO FUNC VAR
2406 # ----------------------------------
2407 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2408 ac_fn_c_check_func ()
2410 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2412 $as_echo_n "checking for $2... " >&6; }
2413 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2414 $as_echo_n "(cached) " >&6
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2418 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2420 #define $2 innocuous_$2
2422 /* System header to define __stub macros and hopefully few prototypes,
2423 which can conflict with char $2 (); below.
2424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2425 <limits.h> exists even on freestanding compilers. */
2428 # include <limits.h>
2430 # include <assert.h>
2435 /* Override any GCC internal prototype to avoid an error.
2436 Use char because int might match the return type of a GCC
2437 builtin and then its argument prototype would still apply. */
2442 /* The GNU C library defines this for functions which it implements
2443 to always fail with ENOSYS. Some functions are actually named
2444 something starting with __ and the normal name is an alias. */
2445 #if defined __stub_$2 || defined __stub___$2
2457 if ac_fn_c_try_link "$LINENO"; then :
2462 rm -f core conftest.err conftest.$ac_objext \
2463 conftest$ac_exeext conftest.$ac_ext
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2467 $as_echo "$ac_res" >&6; }
2468 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2470 } # ac_fn_c_check_func
2472 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2473 # -------------------------------------------
2474 # Tests whether TYPE exists after having included INCLUDES, setting cache
2475 # variable VAR accordingly.
2476 ac_fn_c_check_type ()
2478 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2480 $as_echo_n "checking for $2... " >&6; }
2481 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2482 $as_echo_n "(cached) " >&6
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2497 if ac_fn_c_try_compile "$LINENO"; then :
2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2499 /* end confdefs.h. */
2510 if ac_fn_c_try_compile "$LINENO"; then :
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2521 $as_echo "$ac_res" >&6; }
2522 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2524 } # ac_fn_c_check_type
2526 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2527 # ----------------------------------------------------
2528 # Tries to find if the field MEMBER exists in type AGGR, after including
2529 # INCLUDES, setting cache variable VAR accordingly.
2530 ac_fn_c_check_member ()
2532 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2534 $as_echo_n "checking for $2.$3... " >&6; }
2535 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2536 $as_echo_n "(cached) " >&6
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2551 if ac_fn_c_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2561 if (sizeof ac_aggr.$3)
2567 if ac_fn_c_try_compile "$LINENO"; then :
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2578 $as_echo "$ac_res" >&6; }
2579 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2581 } # ac_fn_c_check_member
2583 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2584 # --------------------------------------------
2585 # Tries to find the compile-time value of EXPR in a program that includes
2586 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2588 ac_fn_c_compute_int ()
2590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2591 if test "$cross_compiling" = yes; then
2592 # Depending upon the size, compute the lo and hi bounds.
2593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2594 /* end confdefs.h. */
2599 static int test_array [1 - 2 * !(($2) >= 0)];
2606 if ac_fn_c_try_compile "$LINENO"; then :
2609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h. */
2615 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2622 if ac_fn_c_try_compile "$LINENO"; then :
2623 ac_hi=$ac_mid; break
2625 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2626 if test $ac_lo -le $ac_mid; then
2630 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2641 static int test_array [1 - 2 * !(($2) < 0)];
2648 if ac_fn_c_try_compile "$LINENO"; then :
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2657 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2664 if ac_fn_c_try_compile "$LINENO"; then :
2665 ac_lo=$ac_mid; break
2667 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2668 if test $ac_mid -le $ac_hi; then
2672 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2682 # Binary search between lo and hi bounds.
2683 while test "x$ac_lo" != "x$ac_hi"; do
2684 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686 /* end confdefs.h. */
2691 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2698 if ac_fn_c_try_compile "$LINENO"; then :
2701 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2706 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711 /* end confdefs.h. */
2713 static long int longval () { return $2; }
2714 static unsigned long int ulongval () { return $2; }
2721 FILE *f = fopen ("conftest.val", "w");
2726 long int i = longval ();
2729 fprintf (f, "%ld", i);
2733 unsigned long int i = ulongval ();
2736 fprintf (f, "%lu", i);
2738 /* Do not output a trailing newline, as this causes \r\n confusion
2739 on some platforms. */
2740 return ferror (f) || fclose (f) != 0;
2746 if ac_fn_c_try_run "$LINENO"; then :
2747 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2752 conftest.$ac_objext conftest.beam conftest.$ac_ext
2756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2757 as_fn_set_status $ac_retval
2759 } # ac_fn_c_compute_int
2761 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2762 # ---------------------------------------------------------
2763 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2764 # the include files in INCLUDES and setting the cache variable VAR
2766 ac_fn_cxx_check_header_mongrel ()
2768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2769 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2771 $as_echo_n "checking for $2... " >&6; }
2772 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2773 $as_echo_n "(cached) " >&6
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2777 $as_echo "$ac_res" >&6; }
2779 # Is the header compilable?
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2781 $as_echo_n "checking $2 usability... " >&6; }
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2787 if ac_fn_cxx_try_compile "$LINENO"; then :
2788 ac_header_compiler=yes
2790 ac_header_compiler=no
2792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2794 $as_echo "$ac_header_compiler" >&6; }
2796 # Is the header present?
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2798 $as_echo_n "checking $2 presence... " >&6; }
2799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2800 /* end confdefs.h. */
2803 if ac_fn_cxx_try_cpp "$LINENO"; then :
2804 ac_header_preproc=yes
2806 ac_header_preproc=no
2808 rm -f conftest.err conftest.$ac_ext
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2810 $as_echo "$ac_header_preproc" >&6; }
2812 # So? What about this header?
2813 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2816 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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;}
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2822 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2824 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2826 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2828 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2830 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2832 ## ------------------------------------------ ##
2833 ## Report this to https://issues.asterisk.org ##
2834 ## ------------------------------------------ ##
2836 ) | sed "s/^/$as_me: WARNING: /" >&2
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2840 $as_echo_n "checking for $2... " >&6; }
2841 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2842 $as_echo_n "(cached) " >&6
2844 eval "$3=\$ac_header_compiler"
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2848 $as_echo "$ac_res" >&6; }
2850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2852 } # ac_fn_cxx_check_header_mongrel
2854 # ac_fn_cxx_try_link LINENO
2855 # -------------------------
2856 # Try to link conftest.$ac_ext, and return whether this succeeded.
2857 ac_fn_cxx_try_link ()
2859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2860 rm -f conftest.$ac_objext conftest$ac_exeext
2861 if { { ac_try="$ac_link"
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2867 $as_echo "$ac_try_echo"; } >&5
2868 (eval "$ac_link") 2>conftest.err
2870 if test -s conftest.err; then
2871 grep -v '^ *+' conftest.err >conftest.er1
2872 cat conftest.er1 >&5
2873 mv -f conftest.er1 conftest.err
2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876 test $ac_status = 0; } && {
2877 test -z "$ac_cxx_werror_flag" ||
2878 test ! -s conftest.err
2879 } && test -s conftest$ac_exeext && {
2880 test "$cross_compiling" = yes ||
2881 $as_test_x conftest$ac_exeext
2885 $as_echo "$as_me: failed program was:" >&5
2886 sed 's/^/| /' conftest.$ac_ext >&5
2890 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2891 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2892 # interfere with the next link command; also delete a directory that is
2893 # left behind by Apple's compiler. We do this before executing the actions.
2894 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2895 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2896 as_fn_set_status $ac_retval
2898 } # ac_fn_cxx_try_link
2900 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2901 # ---------------------------------------------------------
2902 # Tests whether HEADER exists and can be compiled using the include files in
2903 # INCLUDES, setting the cache variable VAR accordingly.
2904 ac_fn_cxx_check_header_compile ()
2906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2908 $as_echo_n "checking for $2... " >&6; }
2909 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2910 $as_echo_n "(cached) " >&6
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h. */
2917 if ac_fn_cxx_try_compile "$LINENO"; then :
2922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2926 $as_echo "$ac_res" >&6; }
2927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2929 } # ac_fn_cxx_check_header_compile
2930 cat >config.log <<_ACEOF
2931 This file contains any messages produced by compilers while
2932 running configure, to aid debugging if configure makes a mistake.
2934 It was created by asterisk $as_me trunk, which was
2935 generated by GNU Autoconf 2.65. Invocation command line was
2947 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2948 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2949 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2950 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2951 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2953 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2954 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2956 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2957 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2958 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2959 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2960 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2961 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2962 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 test -z "$as_dir" && as_dir=.
2971 $as_echo "PATH: $as_dir"
2987 # Keep a trace of the command line.
2988 # Strip out --no-create and --no-recursion so they do not pile up.
2989 # Strip out --silent because we don't want to record it for future runs.
2990 # Also quote any args containing shell meta-characters.
2991 # Make two passes to allow for proper duplicate-argument suppression.
2995 ac_must_keep_next=false
3001 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3003 | -silent | --silent | --silen | --sile | --sil)
3006 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3009 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3011 as_fn_append ac_configure_args1 " '$ac_arg'"
3012 if test $ac_must_keep_next = true; then
3013 ac_must_keep_next=false # Got value, back to normal.
3016 *=* | --config-cache | -C | -disable-* | --disable-* \
3017 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3018 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3019 | -with-* | --with-* | -without-* | --without-* | --x)
3020 case "$ac_configure_args0 " in
3021 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3024 -* ) ac_must_keep_next=true ;;
3027 as_fn_append ac_configure_args " '$ac_arg'"
3032 { ac_configure_args0=; unset ac_configure_args0;}
3033 { ac_configure_args1=; unset ac_configure_args1;}
3035 # When interrupted or exit'd, cleanup temporary files, and complete
3036 # config.log. We remove comments because anyway the quotes in there
3037 # would cause problems or look ugly.
3038 # WARNING: Use '\'' to represent an apostrophe within the trap.
3039 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3040 trap 'exit_status=$?
3041 # Save into config.log some information that might help in debugging.
3046 ## ---------------- ##
3047 ## Cache variables. ##
3048 ## ---------------- ##
3051 # The following way of writing the cache mishandles newlines in values,
3053 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3054 eval ac_val=\$$ac_var
3058 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3062 _ | IFS | as_nl) ;; #(
3063 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3064 *) { eval $ac_var=; unset $ac_var;} ;;
3069 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3070 *${as_nl}ac_space=\ *)
3072 "s/'\''/'\''\\\\'\'''\''/g;
3073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3076 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3084 ## ----------------- ##
3085 ## Output variables. ##
3086 ## ----------------- ##
3089 for ac_var in $ac_subst_vars
3091 eval ac_val=\$$ac_var
3093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3095 $as_echo "$ac_var='\''$ac_val'\''"
3099 if test -n "$ac_subst_files"; then
3101 ## ------------------- ##
3102 ## File substitutions. ##
3103 ## ------------------- ##
3106 for ac_var in $ac_subst_files
3108 eval ac_val=\$$ac_var
3110 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3112 $as_echo "$ac_var='\''$ac_val'\''"
3117 if test -s confdefs.h; then
3127 test "$ac_signal" != 0 &&
3128 $as_echo "$as_me: caught signal $ac_signal"
3129 $as_echo "$as_me: exit $exit_status"
3131 rm -f core *.core core.conftest.* &&
3132 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3135 for ac_signal in 1 2 13 15; do
3136 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3140 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3141 rm -f -r conftest* confdefs.h
3143 $as_echo "/* confdefs.h */" > confdefs.h
3145 # Predefined preprocessor variables.
3147 cat >>confdefs.h <<_ACEOF
3148 #define PACKAGE_NAME "$PACKAGE_NAME"
3151 cat >>confdefs.h <<_ACEOF
3152 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3159 cat >>confdefs.h <<_ACEOF
3160 #define PACKAGE_STRING "$PACKAGE_STRING"
3163 cat >>confdefs.h <<_ACEOF
3164 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3167 cat >>confdefs.h <<_ACEOF
3168 #define PACKAGE_URL "$PACKAGE_URL"
3172 # Let the site file select an alternate cache file if it wants to.
3173 # Prefer an explicitly selected file to automatically selected ones.
3176 if test -n "$CONFIG_SITE"; then
3177 ac_site_file1=$CONFIG_SITE
3178 elif test "x$prefix" != xNONE; then
3179 ac_site_file1=$prefix/share/config.site
3180 ac_site_file2=$prefix/etc/config.site
3182 ac_site_file1=$ac_default_prefix/share/config.site
3183 ac_site_file2=$ac_default_prefix/etc/config.site
3185 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3187 test "x$ac_site_file" = xNONE && continue
3188 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3190 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3191 sed 's/^/| /' "$ac_site_file" >&5
3196 if test -r "$cache_file"; then
3197 # Some versions of bash will fail to source /dev/null (special files
3198 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3199 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3201 $as_echo "$as_me: loading cache $cache_file" >&6;}
3203 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3204 *) . "./$cache_file";;
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3209 $as_echo "$as_me: creating cache $cache_file" >&6;}
3213 as_fn_append ac_header_list " stdlib.h"
3214 as_fn_append ac_header_list " unistd.h"
3215 as_fn_append ac_header_list " sys/param.h"
3216 as_fn_append ac_header_list " utime.h"
3217 # Check that the precious variables saved in the cache have kept the same
3219 ac_cache_corrupted=false
3220 for ac_var in $ac_precious_vars; do
3221 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3222 eval ac_new_set=\$ac_env_${ac_var}_set
3223 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3224 eval ac_new_val=\$ac_env_${ac_var}_value
3225 case $ac_old_set,$ac_new_set in
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3228 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3229 ac_cache_corrupted=: ;;
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3232 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3233 ac_cache_corrupted=: ;;
3236 if test "x$ac_old_val" != "x$ac_new_val"; then
3237 # differences in whitespace do not lead to failure.
3238 ac_old_val_w=`echo x $ac_old_val`
3239 ac_new_val_w=`echo x $ac_new_val`
3240 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3242 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3243 ac_cache_corrupted=:
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3246 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3247 eval $ac_var=\$ac_old_val
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3250 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3252 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3255 # Pass precious variables to config.status.
3256 if test "$ac_new_set" = set; then
3258 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3259 *) ac_arg=$ac_var=$ac_new_val ;;
3261 case " $ac_configure_args " in
3262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3263 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3267 if $ac_cache_corrupted; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3271 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3272 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3274 ## -------------------- ##
3275 ## Main body of script. ##
3276 ## -------------------- ##
3279 ac_cpp='$CPP $CPPFLAGS'
3280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3286 # cross-compile macros
3288 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3289 for ac_t in install-sh install.sh shtool; do
3290 if test -f "$ac_dir/$ac_t"; then
3292 ac_install_sh="$ac_aux_dir/$ac_t -c"
3297 if test -z "$ac_aux_dir"; then
3298 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3301 # These three variables are undocumented and unsupported,
3302 # and are intended to be withdrawn in a future Autoconf release.
3303 # They can cause serious problems if a builder's source tree is in a directory
3304 # whose full name contains unusual characters.
3305 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3306 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3307 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3310 # Make sure we can run config.sub.
3311 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3312 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3315 $as_echo_n "checking build system type... " >&6; }
3316 if test "${ac_cv_build+set}" = set; then :
3317 $as_echo_n "(cached) " >&6
3319 ac_build_alias=$build_alias
3320 test "x$ac_build_alias" = x &&
3321 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3322 test "x$ac_build_alias" = x &&
3323 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3324 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3325 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3329 $as_echo "$ac_cv_build" >&6; }
3330 case $ac_cv_build in
3332 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3335 ac_save_IFS=$IFS; IFS='-'
3341 # Remember, the first character of IFS is used to create $*,
3342 # except with old shells:
3345 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3349 $as_echo_n "checking host system type... " >&6; }
3350 if test "${ac_cv_host+set}" = set; then :
3351 $as_echo_n "(cached) " >&6
3353 if test "x$host_alias" = x; then
3354 ac_cv_host=$ac_cv_build
3356 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3357 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3362 $as_echo "$ac_cv_host" >&6; }
3365 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3368 ac_save_IFS=$IFS; IFS='-'
3374 # Remember, the first character of IFS is used to create $*,
3375 # except with old shells:
3378 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3382 # check existence of the package
3386 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3387 for ac_t in install-sh install.sh shtool; do
3388 if test -f "$ac_dir/$ac_t"; then
3390 ac_install_sh="$ac_aux_dir/$ac_t -c"
3395 if test -z "$ac_aux_dir"; then
3396 as_fn_error "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3399 # These three variables are undocumented and unsupported,
3400 # and are intended to be withdrawn in a future Autoconf release.
3401 # They can cause serious problems if a builder's source tree is in a directory
3402 # whose full name contains unusual characters.
3403 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3404 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3405 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3412 # preserve any CFLAGS or LDFLAGS that may be set
3413 # NOTE: This must be done before calling any macros that end up
3414 # calling AC_PROG_CC or the like, since they will set a default
3415 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3416 # we don't want those default flags to be carried over into the
3417 # rest of the build system since we have other means of controlling
3418 # debugging symbol generation and optimization.
3419 CONFIG_CFLAGS="${CFLAGS}"
3420 CONFIG_LDFLAGS="${LDFLAGS}"
3424 # specify output header file
3425 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3428 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3429 # other macro that uses the C compiler, or the default order will be used.
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3435 if test -n "$ac_tool_prefix"; then
3436 for ac_prog in gcc cc
3438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441 $as_echo_n "checking for $ac_word... " >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then :
3443 $as_echo_n "(cached) " >&6
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC="$CC" # Let the user override the test.
3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 if test -n "$CC"; then
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3468 $as_echo "$CC" >&6; }
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3471 $as_echo "no" >&6; }
3475 test -n "$CC" && break
3478 if test -z "$CC"; then
3480 for ac_prog in gcc cc
3482 # Extract the first word of "$ac_prog", so it can be a program name with args.
3483 set dummy $ac_prog; ac_word=$2
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485 $as_echo_n "checking for $ac_word... " >&6; }
3486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3487 $as_echo_n "(cached) " >&6
3489 if test -n "$ac_ct_CC"; then
3490 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3496 test -z "$as_dir" && as_dir=.
3497 for ac_exec_ext in '' $ac_executable_extensions; do
3498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499 ac_cv_prog_ac_ct_CC="$ac_prog"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3510 if test -n "$ac_ct_CC"; then
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3512 $as_echo "$ac_ct_CC" >&6; }
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3519 test -n "$ac_ct_CC" && break
3522 if test "x$ac_ct_CC" = x; then
3525 case $cross_compiling:$ac_tool_warned in
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3529 ac_tool_warned=yes ;;
3536 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3537 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3538 as_fn_error "no acceptable C compiler found in \$PATH
3539 See \`config.log' for more details." "$LINENO" 5; }
3541 # Provide some information about the compiler.
3542 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3545 for ac_option in --version -v -V -qversion; do
3546 { { ac_try="$ac_compiler $ac_option >&5"
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3552 $as_echo "$ac_try_echo"; } >&5
3553 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3555 if test -s conftest.err; then
3557 ... rest of stderr output deleted ...
3558 10q' conftest.err >conftest.er1
3559 cat conftest.er1 >&5
3561 rm -f conftest.er1 conftest.err
3562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3563 test $ac_status = 0; }
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3577 ac_clean_files_save=$ac_clean_files
3578 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3579 # Try to create an executable without -o first, disregard a.out.
3580 # It will help us diagnose broken compilers, and finding out an intuition
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3583 $as_echo_n "checking whether the C compiler works... " >&6; }
3584 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3586 # The possible output files:
3587 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3590 for ac_file in $ac_files
3593 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3594 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3599 if { { ac_try="$ac_link_default"
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3605 $as_echo "$ac_try_echo"; } >&5
3606 (eval "$ac_link_default") 2>&5
3608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609 test $ac_status = 0; }; then :
3610 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3611 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3612 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3613 # so that the user can short-circuit this test for compilers unknown to
3615 for ac_file in $ac_files ''
3617 test -f "$ac_file" || continue
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3622 # We found the default executable, but exeext='' is most
3626 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3628 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630 # We set ac_cv_exeext here because the later test for it is not
3631 # safe: cross compilers may not add the suffix if given an `-o'
3632 # argument, so we may need to know it at that point already.
3633 # Even if this section looks crufty: it has the advantage of
3640 test "$ac_cv_exeext" = no && ac_cv_exeext=
3645 if test -z "$ac_file"; then :
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3648 $as_echo "$as_me: failed program was:" >&5
3649 sed 's/^/| /' conftest.$ac_ext >&5
3651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3653 { as_fn_set_status 77
3654 as_fn_error "C compiler cannot create executables
3655 See \`config.log' for more details." "$LINENO" 5; }; }
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3658 $as_echo "yes" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3661 $as_echo_n "checking for C compiler default output file name... " >&6; }
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3663 $as_echo "$ac_file" >&6; }
3664 ac_exeext=$ac_cv_exeext
3666 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3667 ac_clean_files=$ac_clean_files_save
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3669 $as_echo_n "checking for suffix of executables... " >&6; }
3670 if { { ac_try="$ac_link"
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link") 2>&5
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3682 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3683 # work properly (i.e., refer to `conftest.exe'), while it won't with
3685 for ac_file in conftest.exe conftest conftest.*; do
3686 test -f "$ac_file" || continue
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697 as_fn_error "cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details." "$LINENO" 5; }
3700 rm -f conftest conftest$ac_cv_exeext
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3702 $as_echo "$ac_cv_exeext" >&6; }
3704 rm -f conftest.$ac_ext
3705 EXEEXT=$ac_cv_exeext
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3713 FILE *f = fopen ("conftest.out", "w");
3714 return ferror (f) || fclose (f) != 0;
3720 ac_clean_files="$ac_clean_files conftest.out"
3721 # Check that the compiler produces executables we can run. If not, either
3722 # the compiler is broken, or we cross compile.
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3724 $as_echo_n "checking whether we are cross compiling... " >&6; }
3725 if test "$cross_compiling" != yes; then
3726 { { ac_try="$ac_link"
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_link") 2>&5
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }
3737 if { ac_try='./conftest$ac_cv_exeext'
3738 { { case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743 $as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_try") 2>&5
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }; }; then
3750 if test "$cross_compiling" = maybe; then
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755 as_fn_error "cannot run C compiled programs.
3756 If you meant to cross compile, use \`--host'.
3757 See \`config.log' for more details." "$LINENO" 5; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3762 $as_echo "$cross_compiling" >&6; }
3764 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3765 ac_clean_files=$ac_clean_files_save
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3767 $as_echo_n "checking for suffix of object files... " >&6; }
3768 if test "${ac_cv_objext+set}" = set; then :
3769 $as_echo_n "(cached) " >&6
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3782 rm -f conftest.o conftest.obj
3783 if { { ac_try="$ac_compile"
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_compile") 2>&5
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; then :
3794 for ac_file in conftest.o conftest.obj conftest.*; do
3795 test -f "$ac_file" || continue;
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3803 $as_echo "$as_me: failed program was:" >&5
3804 sed 's/^/| /' conftest.$ac_ext >&5
3806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808 as_fn_error "cannot compute suffix of object files: cannot compile
3809 See \`config.log' for more details." "$LINENO" 5; }
3811 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3814 $as_echo "$ac_cv_objext" >&6; }
3815 OBJEXT=$ac_cv_objext
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3818 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3819 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3820 $as_echo_n "(cached) " >&6
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823 /* end confdefs.h. */
3836 if ac_fn_c_try_compile "$LINENO"; then :
3841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3846 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3847 if test $ac_compiler_gnu = yes; then
3852 ac_test_CFLAGS=${CFLAGS+set}
3853 ac_save_CFLAGS=$CFLAGS
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3855 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3856 if test "${ac_cv_prog_cc_g+set}" = set; then :
3857 $as_echo_n "(cached) " >&6
3859 ac_save_c_werror_flag=$ac_c_werror_flag
3860 ac_c_werror_flag=yes
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3874 if ac_fn_c_try_compile "$LINENO"; then :
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h. */
3889 if ac_fn_c_try_compile "$LINENO"; then :
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h. */
3905 if ac_fn_c_try_compile "$LINENO"; then :
3908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 ac_c_werror_flag=$ac_save_c_werror_flag
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3916 $as_echo "$ac_cv_prog_cc_g" >&6; }
3917 if test "$ac_test_CFLAGS" = set; then
3918 CFLAGS=$ac_save_CFLAGS
3919 elif test $ac_cv_prog_cc_g = yes; then
3920 if test "$GCC" = yes; then
3926 if test "$GCC" = yes; then
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3933 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3934 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3935 $as_echo_n "(cached) " >&6
3937 ac_cv_prog_cc_c89=no
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3943 #include <sys/types.h>
3944 #include <sys/stat.h>
3945 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3946 struct buf { int x; };
3947 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3948 static char *e (p, i)
3954 static char *f (char * (*g) (char **, int), char **p, ...)
3959 s = g (p, va_arg (v,int));
3964 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3965 function prototypes and stuff, but not '\xHH' hex character constants.
3966 These don't provoke an error unfortunately, instead are silently treated
3967 as 'x'. The following induces an error, until -std is added to get
3968 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3969 array size at least. It's necessary to write '\x00'==0 to get something
3970 that's true only with -std. */
3971 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3973 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3974 inside strings and character constants. */
3976 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3978 int test (int i, double x);
3979 struct s1 {int (*f) (int a);};
3980 struct s2 {int (*f) (double a);};
3981 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3987 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3992 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3993 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3995 CC="$ac_save_CC $ac_arg"
3996 if ac_fn_c_try_compile "$LINENO"; then :
3997 ac_cv_prog_cc_c89=$ac_arg
3999 rm -f core conftest.err conftest.$ac_objext
4000 test "x$ac_cv_prog_cc_c89" != "xno" && break
4002 rm -f conftest.$ac_ext
4007 case "x$ac_cv_prog_cc_c89" in
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4010 $as_echo "none needed" >&6; } ;;
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4013 $as_echo "unsupported" >&6; } ;;
4015 CC="$CC $ac_cv_prog_cc_c89"
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4017 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4019 if test "x$ac_cv_prog_cc_c89" != xno; then :
4024 ac_cpp='$CPP $CPPFLAGS'
4025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4037 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4038 # On Suns, sometimes $CPP names a directory.
4039 if test -n "$CPP" && test -d "$CPP"; then
4042 if test -z "$CPP"; then
4043 if test "${ac_cv_prog_CPP+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4046 # Double quotes because CPP needs to be expanded
4047 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4050 for ac_c_preproc_warn_flag in '' yes
4052 # Use a header file that comes with gcc, so configuring glibc
4053 # with a fresh cross-compiler works.
4054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4055 # <limits.h> exists even on freestanding compilers.
4056 # On the NeXT, cc -E runs the code through the compiler's parser,
4057 # not just through cpp. "Syntax error" is here to catch this case.
4058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4059 /* end confdefs.h. */
4061 # include <limits.h>
4063 # include <assert.h>
4067 if ac_fn_c_try_cpp "$LINENO"; then :
4070 # Broken: fails on valid input.
4073 rm -f conftest.err conftest.$ac_ext
4075 # OK, works on sane cases. Now check whether nonexistent headers
4076 # can be detected and how.
4077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* end confdefs.h. */
4079 #include <ac_nonexistent.h>
4081 if ac_fn_c_try_cpp "$LINENO"; then :
4082 # Broken: success on invalid input.
4085 # Passes both tests.
4089 rm -f conftest.err conftest.$ac_ext
4092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4093 rm -f conftest.err conftest.$ac_ext
4094 if $ac_preproc_ok; then :
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4107 $as_echo "$CPP" >&6; }
4109 for ac_c_preproc_warn_flag in '' yes
4111 # Use a header file that comes with gcc, so configuring glibc
4112 # with a fresh cross-compiler works.
4113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4114 # <limits.h> exists even on freestanding compilers.
4115 # On the NeXT, cc -E runs the code through the compiler's parser,
4116 # not just through cpp. "Syntax error" is here to catch this case.
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4120 # include <limits.h>
4122 # include <assert.h>
4126 if ac_fn_c_try_cpp "$LINENO"; then :
4129 # Broken: fails on valid input.
4132 rm -f conftest.err conftest.$ac_ext
4134 # OK, works on sane cases. Now check whether nonexistent headers
4135 # can be detected and how.
4136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137 /* end confdefs.h. */
4138 #include <ac_nonexistent.h>
4140 if ac_fn_c_try_cpp "$LINENO"; then :
4141 # Broken: success on invalid input.
4144 # Passes both tests.
4148 rm -f conftest.err conftest.$ac_ext
4151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4152 rm -f conftest.err conftest.$ac_ext
4153 if $ac_preproc_ok; then :
4156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4158 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4159 See \`config.log' for more details." "$LINENO" 5; }
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4170 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4171 if test "${ac_cv_path_GREP+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4174 if test -z "$GREP"; then
4175 ac_path_GREP_found=false
4176 # Loop through the user's path and test for each of PROGNAME-LIST
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4181 test -z "$as_dir" && as_dir=.
4182 for ac_prog in grep ggrep; do
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4185 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4186 # Check for GNU ac_path_GREP and select it if it is found.
4187 # Check for GNU $ac_path_GREP
4188 case `"$ac_path_GREP" --version 2>&1` in
4190 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4193 $as_echo_n 0123456789 >"conftest.in"
4196 cat "conftest.in" "conftest.in" >"conftest.tmp"
4197 mv "conftest.tmp" "conftest.in"
4198 cp "conftest.in" "conftest.nl"
4199 $as_echo 'GREP' >> "conftest.nl"
4200 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4202 as_fn_arith $ac_count + 1 && ac_count=$as_val
4203 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4204 # Best one so far, save it but keep looking for a better one
4205 ac_cv_path_GREP="$ac_path_GREP"
4206 ac_path_GREP_max=$ac_count
4208 # 10*(2^10) chars as input seems more than enough
4209 test $ac_count -gt 10 && break
4211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4214 $ac_path_GREP_found && break 3
4219 if test -z "$ac_cv_path_GREP"; then
4220 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4223 ac_cv_path_GREP=$GREP
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4228 $as_echo "$ac_cv_path_GREP" >&6; }
4229 GREP="$ac_cv_path_GREP"
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4233 $as_echo_n "checking for egrep... " >&6; }
4234 if test "${ac_cv_path_EGREP+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4237 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4238 then ac_cv_path_EGREP="$GREP -E"
4240 if test -z "$EGREP"; then
4241 ac_path_EGREP_found=false
4242 # Loop through the user's path and test for each of PROGNAME-LIST
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4247 test -z "$as_dir" && as_dir=.
4248 for ac_prog in egrep; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4251 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4252 # Check for GNU ac_path_EGREP and select it if it is found.
4253 # Check for GNU $ac_path_EGREP
4254 case `"$ac_path_EGREP" --version 2>&1` in
4256 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4259 $as_echo_n 0123456789 >"conftest.in"
4262 cat "conftest.in" "conftest.in" >"conftest.tmp"
4263 mv "conftest.tmp" "conftest.in"
4264 cp "conftest.in" "conftest.nl"
4265 $as_echo 'EGREP' >> "conftest.nl"
4266 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4267 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4268 as_fn_arith $ac_count + 1 && ac_count=$as_val
4269 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4270 # Best one so far, save it but keep looking for a better one
4271 ac_cv_path_EGREP="$ac_path_EGREP"
4272 ac_path_EGREP_max=$ac_count
4274 # 10*(2^10) chars as input seems more than enough
4275 test $ac_count -gt 10 && break
4277 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4280 $ac_path_EGREP_found && break 3
4285 if test -z "$ac_cv_path_EGREP"; then
4286 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4289 ac_cv_path_EGREP=$EGREP
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4295 $as_echo "$ac_cv_path_EGREP" >&6; }
4296 EGREP="$ac_cv_path_EGREP"
4299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4300 $as_echo_n "checking for ANSI C header files... " >&6; }
4301 if test "${ac_cv_header_stdc+set}" = set; then :
4302 $as_echo_n "(cached) " >&6
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4319 if ac_fn_c_try_compile "$LINENO"; then :
4320 ac_cv_header_stdc=yes
4322 ac_cv_header_stdc=no
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 if test $ac_cv_header_stdc = yes; then
4327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4329 /* end confdefs.h. */
4333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4334 $EGREP "memchr" >/dev/null 2>&1; then :
4337 ac_cv_header_stdc=no
4343 if test $ac_cv_header_stdc = yes; then
4344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4351 $EGREP "free" >/dev/null 2>&1; then :
4354 ac_cv_header_stdc=no
4360 if test $ac_cv_header_stdc = yes; then
4361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4362 if test "$cross_compiling" = yes; then :
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4369 #if ((' ' & 0x0FF) == 0x020)
4370 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4371 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4373 # define ISLOWER(c) \
4374 (('a' <= (c) && (c) <= 'i') \
4375 || ('j' <= (c) && (c) <= 'r') \
4376 || ('s' <= (c) && (c) <= 'z'))
4377 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4380 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4385 for (i = 0; i < 256; i++)
4386 if (XOR (islower (i), ISLOWER (i))
4387 || toupper (i) != TOUPPER (i))
4392 if ac_fn_c_try_run "$LINENO"; then :
4395 ac_cv_header_stdc=no
4397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4398 conftest.$ac_objext conftest.beam conftest.$ac_ext
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4404 $as_echo "$ac_cv_header_stdc" >&6; }
4405 if test $ac_cv_header_stdc = yes; then
4407 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4411 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4412 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4413 inttypes.h stdint.h unistd.h
4415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4416 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4418 eval as_val=\$$as_ac_Header
4419 if test "x$as_val" = x""yes; then :
4420 cat >>confdefs.h <<_ACEOF
4421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4430 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4431 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4438 if test "$MINIX" = yes; then
4440 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4443 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4446 $as_echo "#define _MINIX 1" >>confdefs.h
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4452 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4453 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4454 $as_echo_n "(cached) " >&6
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4459 # define __EXTENSIONS__ 1
4460 $ac_includes_default
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_safe_to_define___extensions__=yes
4472 ac_cv_safe_to_define___extensions__=no
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4477 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4478 test $ac_cv_safe_to_define___extensions__ = yes &&
4479 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4481 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4483 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4485 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4487 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4490 # System default paths
4491 astsbindir='${sbindir}'
4492 astetcdir='${sysconfdir}/asterisk'
4493 astheaderdir='${includedir}/asterisk'
4494 astlibdir='${libdir}/asterisk'
4495 astmandir='${mandir}'
4496 astvarlibdir='${localstatedir}/lib/asterisk'
4497 astdatadir='${astvarlibdir}'
4498 astdbdir='${astvarlibdir}'
4499 astkeydir='${astvarlibdir}'
4500 astspooldir='${localstatedir}/spool/asterisk'
4501 astlogdir='${localstatedir}/log/asterisk'
4502 astvarrundir='${localstatedir}/run/asterisk'
4504 case "${host_os}" in
4506 if test ${prefix} = 'NONE'; then
4507 astvarlibdir='${prefix}/share/asterisk'
4508 astdbdir='${localstatedir}/db/asterisk'
4512 if test ${prefix} = 'NONE'; then
4513 astvarrundir='/Library/Application Support/Asterisk/Run'
4518 case "${host_os}" in
4520 ac_default_prefix=/usr/local
4521 CPPFLAGS=-I/usr/local/include
4522 LDFLAGS=-L/usr/local/lib
4525 ac_default_prefix=/usr/local
4526 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4527 if test ${sysconfdir} = '${prefix}/etc'; then
4528 astetcdir=/etc/asterisk
4530 if test ${mandir} = '${prefix}/man'; then
4531 astmandir=/usr/share/man
4534 CPPFLAGS=-I/usr/local/include
4535 LDFLAGS=-L/usr/local/lib
4538 ac_default_prefix=/usr/local
4539 if test ${prefix} = 'NONE'; then
4540 astlibdir='/Library/Application Support/Asterisk/Modules'
4541 astvarlibdir='/Library/Application Support/Asterisk'
4542 astlogdir=/Library/Logs/Asterisk
4543 astvarrundir='/Library/Application Support/Asterisk/Run'
4546 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4549 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
4553 if test ${prefix} = 'NONE'; then
4554 astetcdir=/var/etc/asterisk
4555 astsbindir=/opt/asterisk/sbin
4556 astlibdir=/opt/asterisk/lib
4557 astheaderdir=/opt/asterisk/include
4558 astmandir=/opt/asterisk/man
4559 astvarlibdir=/var/opt/asterisk
4560 astspooldir=/var/spool/asterisk
4561 astlogdir=/var/log/asterisk
4562 astvarrundir=/var/run/asterisk
4566 ac_default_prefix=/usr
4567 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4568 if test ${sysconfdir} = '${prefix}/etc'; then
4571 if test ${mandir} = '${prefix}/man'; then
4572 mandir=/usr/share/man
4578 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4579 if test ${localstatedir} = '${prefix}/var'; then
4584 BUILD_PLATFORM=${build}
4585 BUILD_CPU=${build_cpu}
4586 BUILD_VENDOR=${build_vendor}
4587 BUILD_OS=${build_os}
4594 HOST_PLATFORM=${host}
4595 HOST_CPU=${host_cpu}
4596 HOST_VENDOR=${host_vendor}
4606 case "${host_os}" in
4642 if test -n "$ac_tool_prefix"; then
4643 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4644 set dummy ${ac_tool_prefix}uname; ac_word=$2
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4646 $as_echo_n "checking for $ac_word... " >&6; }
4647 if test "${ac_cv_path_UNAME+set}" = set; then :
4648 $as_echo_n "(cached) " >&6
4652 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4659 test -z "$as_dir" && as_dir=.
4660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4662 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4673 UNAME=$ac_cv_path_UNAME
4674 if test -n "$UNAME"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
4676 $as_echo "$UNAME" >&6; }
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4684 if test -z "$ac_cv_path_UNAME"; then
4686 # Extract the first word of "uname", so it can be a program name with args.
4687 set dummy uname; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then :
4691 $as_echo_n "(cached) " >&6
4693 case $ac_pt_UNAME in
4695 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.