2 # From configure.ac Revision: 335913 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.67 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
14 # This configure script is free software; the Free Software Foundation
15 # gives unlimited permission to copy, distribute and modify it.
18 ## -------------------- ##
19 ## M4sh Initialization. ##
20 ## -------------------- ##
22 # Be more Bourne compatible
23 DUALCASE=1; export DUALCASE # for MKS sh
24 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
32 case `(set -o) 2>/dev/null` in #(
44 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
48 # Prefer a ksh shell builtin over an external printf program on Solaris,
49 # but without wasting forks for bash or zsh.
50 if test -z "$BASH_VERSION$ZSH_VERSION" \
51 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
53 as_echo_n='print -rn --'
54 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
58 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
59 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
60 as_echo_n='/usr/ucb/echo -n'
62 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
67 expr "X$arg" : "X\\(.*\\)$as_nl";
68 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
70 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
73 as_echo_n='sh -c $as_echo_n_body as_echo'
76 as_echo='sh -c $as_echo_body as_echo'
79 # The user is always right.
80 if test "${PATH_SEPARATOR+set}" != set; then
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
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 STATUS 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=$1; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
377 $as_echo "$as_me: error: $2" >&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, old GNU/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
653 AST_NO_STRICT_OVERFLOW
655 AST_DECLARATION_AFTER_STATEMENT
659 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
660 PBX_PTHREAD_RWLOCK_INITIALIZER
739 SPEEX_PREPROCESS_INCLUDE
1076 program_transform_name
1089 enable_option_checking
1166 enable_internal_poll
1168 ac_precious_vars='build_alias
1183 # Initialize some variables set by options.
1185 ac_init_version=false
1186 ac_unrecognized_opts=
1187 ac_unrecognized_sep=
1188 # The variables have the same names as the options, with
1189 # dashes changed to underlines.
1190 cache_file=/dev/null
1197 program_transform_name=s,x,x,
1205 # Installation directory options.
1206 # These are left unexpanded so users can "make install exec_prefix=/foo"
1207 # and all the variables that are supposed to be based on exec_prefix
1208 # by default will actually change.
1209 # Use braces instead of parens because sh, perl, etc. also accept them.
1210 # (The list follows the same order as the GNU Coding Standards.)
1211 bindir='${exec_prefix}/bin'
1212 sbindir='${exec_prefix}/sbin'
1213 libexecdir='${exec_prefix}/libexec'
1214 datarootdir='${prefix}/share'
1215 datadir='${datarootdir}'
1216 sysconfdir='${prefix}/etc'
1217 sharedstatedir='${prefix}/com'
1218 localstatedir='${prefix}/var'
1219 includedir='${prefix}/include'
1220 oldincludedir='/usr/include'
1221 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1222 infodir='${datarootdir}/info'
1227 libdir='${exec_prefix}/lib'
1228 localedir='${datarootdir}/locale'
1229 mandir='${datarootdir}/man'
1235 # If the previous option needs an argument, assign it.
1236 if test -n "$ac_prev"; then
1237 eval $ac_prev=\$ac_option
1243 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1248 # Accept the important Cygnus configure options, so we can diagnose typos.
1250 case $ac_dashdash$ac_option in
1254 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1256 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1257 bindir=$ac_optarg ;;
1259 -build | --build | --buil | --bui | --bu)
1260 ac_prev=build_alias ;;
1261 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1262 build_alias=$ac_optarg ;;
1264 -cache-file | --cache-file | --cache-fil | --cache-fi \
1265 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1266 ac_prev=cache_file ;;
1267 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1268 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1269 cache_file=$ac_optarg ;;
1271 --config-cache | -C)
1272 cache_file=config.cache ;;
1274 -datadir | --datadir | --datadi | --datad)
1276 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1277 datadir=$ac_optarg ;;
1279 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1280 | --dataroo | --dataro | --datar)
1281 ac_prev=datarootdir ;;
1282 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1283 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1284 datarootdir=$ac_optarg ;;
1286 -disable-* | --disable-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error $? "invalid feature name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1295 "enable_$ac_useropt"
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1300 eval enable_$ac_useropt=no ;;
1302 -docdir | --docdir | --docdi | --doc | --do)
1304 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1305 docdir=$ac_optarg ;;
1307 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1309 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1310 dvidir=$ac_optarg ;;
1312 -enable-* | --enable-*)
1313 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316 as_fn_error $? "invalid feature name: $ac_useropt"
1317 ac_useropt_orig=$ac_useropt
1318 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1321 "enable_$ac_useropt"
1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1324 ac_unrecognized_sep=', ';;
1326 eval enable_$ac_useropt=\$ac_optarg ;;
1328 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1329 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1330 | --exec | --exe | --ex)
1331 ac_prev=exec_prefix ;;
1332 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1333 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1334 | --exec=* | --exe=* | --ex=*)
1335 exec_prefix=$ac_optarg ;;
1337 -gas | --gas | --ga | --g)
1338 # Obsolete; use --with-gas.
1341 -help | --help | --hel | --he | -h)
1342 ac_init_help=long ;;
1343 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1344 ac_init_help=recursive ;;
1345 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1346 ac_init_help=short ;;
1348 -host | --host | --hos | --ho)
1349 ac_prev=host_alias ;;
1350 -host=* | --host=* | --hos=* | --ho=*)
1351 host_alias=$ac_optarg ;;
1353 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1355 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1357 htmldir=$ac_optarg ;;
1359 -includedir | --includedir | --includedi | --included | --include \
1360 | --includ | --inclu | --incl | --inc)
1361 ac_prev=includedir ;;
1362 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1363 | --includ=* | --inclu=* | --incl=* | --inc=*)
1364 includedir=$ac_optarg ;;
1366 -infodir | --infodir | --infodi | --infod | --info | --inf)
1368 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1369 infodir=$ac_optarg ;;
1371 -libdir | --libdir | --libdi | --libd)
1373 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1374 libdir=$ac_optarg ;;
1376 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1377 | --libexe | --libex | --libe)
1378 ac_prev=libexecdir ;;
1379 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1380 | --libexe=* | --libex=* | --libe=*)
1381 libexecdir=$ac_optarg ;;
1383 -localedir | --localedir | --localedi | --localed | --locale)
1384 ac_prev=localedir ;;
1385 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1386 localedir=$ac_optarg ;;
1388 -localstatedir | --localstatedir | --localstatedi | --localstated \
1389 | --localstate | --localstat | --localsta | --localst | --locals)
1390 ac_prev=localstatedir ;;
1391 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1392 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1393 localstatedir=$ac_optarg ;;
1395 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1397 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1398 mandir=$ac_optarg ;;
1400 -nfp | --nfp | --nf)
1401 # Obsolete; use --without-fp.
1404 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1405 | --no-cr | --no-c | -n)
1408 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1409 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1412 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1413 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1414 | --oldin | --oldi | --old | --ol | --o)
1415 ac_prev=oldincludedir ;;
1416 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1417 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1418 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1419 oldincludedir=$ac_optarg ;;
1421 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1423 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1424 prefix=$ac_optarg ;;
1426 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1427 | --program-pre | --program-pr | --program-p)
1428 ac_prev=program_prefix ;;
1429 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1430 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1431 program_prefix=$ac_optarg ;;
1433 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1434 | --program-suf | --program-su | --program-s)
1435 ac_prev=program_suffix ;;
1436 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1437 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1438 program_suffix=$ac_optarg ;;
1440 -program-transform-name | --program-transform-name \
1441 | --program-transform-nam | --program-transform-na \
1442 | --program-transform-n | --program-transform- \
1443 | --program-transform | --program-transfor \
1444 | --program-transfo | --program-transf \
1445 | --program-trans | --program-tran \
1446 | --progr-tra | --program-tr | --program-t)
1447 ac_prev=program_transform_name ;;
1448 -program-transform-name=* | --program-transform-name=* \
1449 | --program-transform-nam=* | --program-transform-na=* \
1450 | --program-transform-n=* | --program-transform-=* \
1451 | --program-transform=* | --program-transfor=* \
1452 | --program-transfo=* | --program-transf=* \
1453 | --program-trans=* | --program-tran=* \
1454 | --progr-tra=* | --program-tr=* | --program-t=*)
1455 program_transform_name=$ac_optarg ;;
1457 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1459 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1460 pdfdir=$ac_optarg ;;
1462 -psdir | --psdir | --psdi | --psd | --ps)
1464 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468 | -silent | --silent | --silen | --sile | --sil)
1471 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1473 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1475 sbindir=$ac_optarg ;;
1477 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1478 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1479 | --sharedst | --shareds | --shared | --share | --shar \
1481 ac_prev=sharedstatedir ;;
1482 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1483 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1484 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1486 sharedstatedir=$ac_optarg ;;
1488 -site | --site | --sit)
1490 -site=* | --site=* | --sit=*)
1493 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1495 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1496 srcdir=$ac_optarg ;;
1498 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1499 | --syscon | --sysco | --sysc | --sys | --sy)
1500 ac_prev=sysconfdir ;;
1501 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1502 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1503 sysconfdir=$ac_optarg ;;
1505 -target | --target | --targe | --targ | --tar | --ta | --t)
1506 ac_prev=target_alias ;;
1507 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1508 target_alias=$ac_optarg ;;
1510 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1513 -version | --version | --versio | --versi | --vers | -V)
1514 ac_init_version=: ;;
1517 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1518 # Reject names that are not valid shell variable names.
1519 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1520 as_fn_error $? "invalid package name: $ac_useropt"
1521 ac_useropt_orig=$ac_useropt
1522 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1523 case $ac_user_opts in
1527 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1528 ac_unrecognized_sep=', ';;
1530 eval with_$ac_useropt=\$ac_optarg ;;
1532 -without-* | --without-*)
1533 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1534 # Reject names that are not valid shell variable names.
1535 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1536 as_fn_error $? "invalid package name: $ac_useropt"
1537 ac_useropt_orig=$ac_useropt
1538 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1539 case $ac_user_opts in
1543 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1544 ac_unrecognized_sep=', ';;
1546 eval with_$ac_useropt=no ;;
1549 # Obsolete; use --with-x.
1552 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1553 | --x-incl | --x-inc | --x-in | --x-i)
1554 ac_prev=x_includes ;;
1555 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1556 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1557 x_includes=$ac_optarg ;;
1559 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1560 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1561 ac_prev=x_libraries ;;
1562 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1563 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1564 x_libraries=$ac_optarg ;;
1566 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1567 Try \`$0 --help' for more information"
1571 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1572 # Reject names that are not valid shell variable names.
1573 case $ac_envvar in #(
1574 '' | [0-9]* | *[!_$as_cr_alnum]* )
1575 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1577 eval $ac_envvar=\$ac_optarg
1578 export $ac_envvar ;;
1581 # FIXME: should be removed in autoconf 3.0.
1582 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1583 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1584 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1585 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1591 if test -n "$ac_prev"; then
1592 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1593 as_fn_error $? "missing argument to $ac_option"
1596 if test -n "$ac_unrecognized_opts"; then
1597 case $enable_option_checking in
1599 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1600 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1604 # Check all directory arguments for consistency.
1605 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1606 datadir sysconfdir sharedstatedir localstatedir includedir \
1607 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1608 libdir localedir mandir
1610 eval ac_val=\$$ac_var
1611 # Remove trailing slashes.
1614 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1615 eval $ac_var=\$ac_val;;
1617 # Be sure to have absolute directory names.
1619 [\\/$]* | ?:[\\/]* ) continue;;
1620 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1622 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1625 # There might be people who depend on the old broken behavior: `$host'
1626 # used to hold the argument of --host etc.
1627 # FIXME: To remove some day.
1630 target=$target_alias
1632 # FIXME: To remove some day.
1633 if test "x$host_alias" != x; then
1634 if test "x$build_alias" = x; then
1635 cross_compiling=maybe
1636 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1637 If a cross compiler is detected then cross compile mode will be used" >&2
1638 elif test "x$build_alias" != "x$host_alias"; then
1644 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1646 test "$silent" = yes && exec 6>/dev/null
1649 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1650 ac_ls_di=`ls -di .` &&
1651 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1652 as_fn_error $? "working directory cannot be determined"
1653 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1654 as_fn_error $? "pwd does not report name of working directory"
1657 # Find the source files, if location was not specified.
1658 if test -z "$srcdir"; then
1659 ac_srcdir_defaulted=yes
1660 # Try the directory containing this script, then the parent directory.
1661 ac_confdir=`$as_dirname -- "$as_myself" ||
1662 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1663 X"$as_myself" : 'X\(//\)[^/]' \| \
1664 X"$as_myself" : 'X\(//\)$' \| \
1665 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1666 $as_echo X"$as_myself" |
1667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1685 if test ! -r "$srcdir/$ac_unique_file"; then
1689 ac_srcdir_defaulted=no
1691 if test ! -r "$srcdir/$ac_unique_file"; then
1692 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1693 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1695 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1697 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1699 # When building in place, set srcdir=.
1700 if test "$ac_abs_confdir" = "$ac_pwd"; then
1703 # Remove unnecessary trailing slashes from srcdir.
1704 # Double slashes in file names in object file debugging info
1705 # mess up M-x gdb in Emacs.
1707 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1709 for ac_var in $ac_precious_vars; do
1710 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1711 eval ac_env_${ac_var}_value=\$${ac_var}
1712 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1713 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1717 # Report the --help message.
1719 if test "$ac_init_help" = "long"; then
1720 # Omit some internal or obsolete options to make the list less imposing.
1721 # This message is too long to be a string in the A/UX 3.1 sh.
1723 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1725 Usage: $0 [OPTION]... [VAR=VALUE]...
1727 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1728 VAR=VALUE. See below for descriptions of some of the useful variables.
1730 Defaults for the options are specified in brackets.
1733 -h, --help display this help and exit
1734 --help=short display options specific to this package
1735 --help=recursive display the short help of all the included packages
1736 -V, --version display version information and exit
1737 -q, --quiet, --silent do not print \`checking ...' messages
1738 --cache-file=FILE cache test results in FILE [disabled]
1739 -C, --config-cache alias for \`--cache-file=config.cache'
1740 -n, --no-create do not create output files
1741 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1743 Installation directories:
1744 --prefix=PREFIX install architecture-independent files in PREFIX
1745 [$ac_default_prefix]
1746 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1749 By default, \`make install' will install all the files in
1750 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1751 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1752 for instance \`--prefix=\$HOME'.
1754 For better control, use the options below.
1756 Fine tuning of the installation directories:
1757 --bindir=DIR user executables [EPREFIX/bin]
1758 --sbindir=DIR system admin executables [EPREFIX/sbin]
1759 --libexecdir=DIR program executables [EPREFIX/libexec]
1760 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1761 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1762 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1763 --libdir=DIR object code libraries [EPREFIX/lib]
1764 --includedir=DIR C header files [PREFIX/include]
1765 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1766 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1767 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1768 --infodir=DIR info documentation [DATAROOTDIR/info]
1769 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1770 --mandir=DIR man documentation [DATAROOTDIR/man]
1771 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1772 --htmldir=DIR html documentation [DOCDIR]
1773 --dvidir=DIR dvi documentation [DOCDIR]
1774 --pdfdir=DIR pdf documentation [DOCDIR]
1775 --psdir=DIR ps documentation [DOCDIR]
1781 --build=BUILD configure for building on BUILD [guessed]
1782 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1786 if test -n "$ac_init_help"; then
1787 case $ac_init_help in
1788 short | recursive ) echo "Configuration of asterisk trunk:";;
1793 --disable-option-checking ignore unrecognized --enable/--with options
1794 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1795 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1796 --enable-dev-mode Turn on developer mode
1797 --enable-coverage Turn on code coverage tracking (for gcov)
1798 --disable-xmldoc Explicity disable XML documentation
1799 --disable-largefile omit support for large files
1800 --enable-internal-poll Use Asterisk's poll implementation
1803 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1804 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1805 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1806 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1807 --with-bfd=PATH use Debug symbol decoding files in PATH
1808 --with-execinfo=PATH use Stack Backtrace files in PATH
1809 --with-bluetooth=PATH use Bluetooth files in PATH
1810 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1811 --with-curses=PATH use curses files in PATH
1812 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1813 --with-dahdi=PATH use DAHDI files in PATH
1814 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1815 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1817 --with-gtk2=PATH use gtk2 files in PATH
1818 --with-gmime=PATH use GMime files in PATH
1819 --with-h323=PATH use OpenH323 files in PATH
1820 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1821 --with-ical=PATH use iCal files in PATH
1822 --with-iconv=PATH use Iconv files in PATH
1823 --with-iksemel=PATH use Iksemel Jabber files in PATH
1824 --with-imap=PATH use UW IMAP Toolkit files in PATH
1825 --with-inotify=PATH use inotify support files in PATH
1826 --with-iodbc=PATH use iODBC files in PATH
1827 --with-isdnnet=PATH use ISDN4Linux files in PATH
1828 --with-jack=PATH use Jack Audio Connection Kit files in PATH
1829 --with-kqueue=PATH use kqueue support files in PATH
1830 --with-ldap=PATH use OpenLDAP files in PATH
1831 --with-libcurl=DIR look for the curl library in DIR
1832 --with-libxml2=PATH use LibXML2 files in PATH
1833 --with-ltdl=PATH use libtool files in PATH
1834 --with-lua=PATH use Lua files in PATH
1835 --with-misdn=PATH use mISDN user files in PATH
1836 --with-mysqlclient=PATH use MySQL client files in PATH
1837 --with-nbs=PATH use Network Broadcast Sound files in PATH
1838 --with-ncurses=PATH use ncurses files in PATH
1839 --with-neon=PATH use neon files in PATH
1840 --with-neon29=PATH use neon29 files in PATH
1841 --with-netsnmp=PATH use Net-SNMP files in PATH
1842 --with-newt=PATH use newt files in PATH
1843 --with-ogg=PATH use OGG files in PATH
1844 --with-openais=PATH use OpenAIS files in PATH
1845 --with-openr2=PATH use MFR2 files in PATH
1846 --with-osptk=PATH use OSP Toolkit files in PATH
1847 --with-oss=PATH use Open Sound System files in PATH
1848 --with-postgres=PATH use PostgreSQL files in PATH
1849 --with-popt=PATH use popt files in PATH
1850 --with-portaudio=PATH use PortAudio files in PATH
1851 --with-pri=PATH use ISDN PRI files in PATH
1852 --with-pwlib=PATH use PWlib files in PATH
1853 --with-radius=PATH use Radius Client files in PATH
1854 --with-resample=PATH use LIBRESAMPLE files in PATH
1855 --with-sdl=PATH use Sdl files in PATH
1856 --with-SDL_image=PATH use Sdl Image files in PATH
1857 --with-sounds-cache=PATH
1858 use cached sound tarfiles in PATH
1859 --with-spandsp=PATH use SPANDSP files in PATH
1860 --with-ss7=PATH use ISDN SS7 files in PATH
1861 --with-speex=PATH use Speex files in PATH
1862 --with-speex=PATH use Speex preprocess routines files in PATH
1863 --with-speexdsp=PATH use SpeexDSP files in PATH
1864 --with-sqlite=PATH use SQLite files in PATH
1865 --with-sqlite3=PATH use SQLite files in PATH
1866 --with-srtp=PATH use Secure RTP files in PATH
1867 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
1868 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
1869 --with-tds=PATH use FreeTDS files in PATH
1870 --with-termcap=PATH use Termcap files in PATH
1871 --with-timerfd=PATH use timerfd files in PATH
1872 --with-tinfo=PATH use Term Info files in PATH
1873 --with-tonezone=PATH use tonezone files in PATH
1874 --with-unixodbc=PATH use unixODBC files in PATH
1875 --with-usb=PATH use usb files in PATH
1876 --with-vorbis=PATH use Vorbis files in PATH
1877 --with-vpb=PATH use Voicetronix API files in PATH
1878 --with-x11=PATH use X11 files in PATH
1879 --with-z=PATH use zlib compression files in PATH
1881 Some influential environment variables:
1882 CC C compiler command
1883 CFLAGS C compiler flags
1884 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1885 nonstandard directory <lib dir>
1886 LIBS libraries to pass to the linker, e.g. -l<library>
1887 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1888 you have headers in a nonstandard directory <include dir>
1890 CXX C++ compiler command
1891 CXXFLAGS C++ compiler flags
1892 CXXCPP C++ preprocessor
1894 Use these variables to override the choices made by `configure' or to help
1895 it to find libraries and programs with nonstandard names/locations.
1897 Report bugs to <https://issues.asterisk.org>.
1902 if test "$ac_init_help" = "recursive"; then
1903 # If there are subdirs, report their specific --help.
1904 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1905 test -d "$ac_dir" ||
1906 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1911 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1914 # A ".." for each directory in $ac_dir_suffix.
1915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1916 case $ac_top_builddir_sub in
1917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1921 ac_abs_top_builddir=$ac_pwd
1922 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1923 # for backward compatibility:
1924 ac_top_builddir=$ac_top_build_prefix
1927 .) # We are building in place.
1929 ac_top_srcdir=$ac_top_builddir_sub
1930 ac_abs_top_srcdir=$ac_pwd ;;
1931 [\\/]* | ?:[\\/]* ) # Absolute name.
1932 ac_srcdir=$srcdir$ac_dir_suffix;
1933 ac_top_srcdir=$srcdir
1934 ac_abs_top_srcdir=$srcdir ;;
1936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1937 ac_top_srcdir=$ac_top_build_prefix$srcdir
1938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1940 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1942 cd "$ac_dir" || { ac_status=$?; continue; }
1943 # Check for guested configure.
1944 if test -f "$ac_srcdir/configure.gnu"; then
1946 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1947 elif test -f "$ac_srcdir/configure"; then
1949 $SHELL "$ac_srcdir/configure" --help=recursive
1951 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1953 cd "$ac_pwd" || { ac_status=$?; break; }
1957 test -n "$ac_init_help" && exit $ac_status
1958 if $ac_init_version; then
1960 asterisk configure trunk
1961 generated by GNU Autoconf 2.67
1963 Copyright (C) 2010 Free Software Foundation, Inc.
1964 This configure script is free software; the Free Software Foundation
1965 gives unlimited permission to copy, distribute and modify it.
1972 ## ------------------------ ##
1973 ## Autoconf initialization. ##
1974 ## ------------------------ ##
1976 # ac_fn_c_try_compile LINENO
1977 # --------------------------
1978 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_c_try_compile ()
1981 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982 rm -f conftest.$ac_objext
1983 if { { ac_try="$ac_compile"
1985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986 *) ac_try_echo=$ac_try;;
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990 (eval "$ac_compile") 2>conftest.err
1992 if test -s conftest.err; then
1993 grep -v '^ *+' conftest.err >conftest.er1
1994 cat conftest.er1 >&5
1995 mv -f conftest.er1 conftest.err
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; } && {
1999 test -z "$ac_c_werror_flag" ||
2000 test ! -s conftest.err
2001 } && test -s conftest.$ac_objext; then :
2004 $as_echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2010 as_fn_set_status $ac_retval
2012 } # ac_fn_c_try_compile
2014 # ac_fn_c_try_cpp LINENO
2015 # ----------------------
2016 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 if { { ac_try="$ac_cpp conftest.$ac_ext"
2022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2023 *) ac_try_echo=$ac_try;;
2025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2026 $as_echo "$ac_try_echo"; } >&5
2027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2029 if test -s conftest.err; then
2030 grep -v '^ *+' conftest.err >conftest.er1
2031 cat conftest.er1 >&5
2032 mv -f conftest.er1 conftest.err
2034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2035 test $ac_status = 0; } > conftest.i && {
2036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2037 test ! -s conftest.err
2041 $as_echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2046 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2047 as_fn_set_status $ac_retval
2051 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2052 # -------------------------------------------------------
2053 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2054 # the include files in INCLUDES and setting the cache variable VAR
2056 ac_fn_c_check_header_mongrel ()
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 if eval "test \"\${$3+set}\"" = set; then :
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval "test \"\${$3+set}\"" = set; then :
2063 $as_echo_n "(cached) " >&6
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2067 $as_echo "$ac_res" >&6; }
2069 # Is the header compilable?
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2071 $as_echo_n "checking $2 usability... " >&6; }
2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073 /* end confdefs.h. */
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 ac_header_compiler=yes
2080 ac_header_compiler=no
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2084 $as_echo "$ac_header_compiler" >&6; }
2086 # Is the header present?
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2088 $as_echo_n "checking $2 presence... " >&6; }
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 if ac_fn_c_try_cpp "$LINENO"; then :
2094 ac_header_preproc=yes
2096 ac_header_preproc=no
2098 rm -f conftest.err conftest.i conftest.$ac_ext
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2100 $as_echo "$ac_header_preproc" >&6; }
2102 # So? What about this header?
2103 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2106 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2108 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2112 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2114 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2116 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2118 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2121 ( $as_echo "## ------------------------------------------ ##
2122 ## Report this to https://issues.asterisk.org ##
2123 ## ------------------------------------------ ##"
2124 ) | sed "s/^/$as_me: WARNING: /" >&2
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2128 $as_echo_n "checking for $2... " >&6; }
2129 if eval "test \"\${$3+set}\"" = set; then :
2130 $as_echo_n "(cached) " >&6
2132 eval "$3=\$ac_header_compiler"
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2138 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2140 } # ac_fn_c_check_header_mongrel
2142 # ac_fn_c_try_run LINENO
2143 # ----------------------
2144 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2145 # that executables *can* be run.
2148 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2149 if { { ac_try="$ac_link"
2151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2152 *) ac_try_echo=$ac_try;;
2154 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2155 $as_echo "$ac_try_echo"; } >&5
2156 (eval "$ac_link") 2>&5
2158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2160 { { case "(($ac_try" in
2161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2162 *) ac_try_echo=$ac_try;;
2164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2165 $as_echo "$ac_try_echo"; } >&5
2166 (eval "$ac_try") 2>&5
2168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169 test $ac_status = 0; }; }; then :
2172 $as_echo "$as_me: program exited with status $ac_status" >&5
2173 $as_echo "$as_me: failed program was:" >&5
2174 sed 's/^/| /' conftest.$ac_ext >&5
2176 ac_retval=$ac_status
2178 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2179 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180 as_fn_set_status $ac_retval
2184 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2185 # -------------------------------------------------------
2186 # Tests whether HEADER exists and can be compiled using the include files in
2187 # INCLUDES, setting the cache variable VAR accordingly.
2188 ac_fn_c_check_header_compile ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if eval "test \"\${$3+set}\"" = set; then :
2194 $as_echo_n "(cached) " >&6
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2201 if ac_fn_c_try_compile "$LINENO"; then :
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210 $as_echo "$ac_res" >&6; }
2211 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213 } # ac_fn_c_check_header_compile
2215 # ac_fn_cxx_try_compile LINENO
2216 # ----------------------------
2217 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2218 ac_fn_cxx_try_compile ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 rm -f conftest.$ac_objext
2222 if { { ac_try="$ac_compile"
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228 $as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_compile") 2>conftest.err
2231 if test -s conftest.err; then
2232 grep -v '^ *+' conftest.err >conftest.er1
2233 cat conftest.er1 >&5
2234 mv -f conftest.er1 conftest.err
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; } && {
2238 test -z "$ac_cxx_werror_flag" ||
2239 test ! -s conftest.err
2240 } && test -s conftest.$ac_objext; then :
2243 $as_echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 as_fn_set_status $ac_retval
2251 } # ac_fn_cxx_try_compile
2253 # ac_fn_cxx_try_cpp LINENO
2254 # ------------------------
2255 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2256 ac_fn_cxx_try_cpp ()
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 if { { ac_try="$ac_cpp conftest.$ac_ext"
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2264 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265 $as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2268 if test -s conftest.err; then
2269 grep -v '^ *+' conftest.err >conftest.er1
2270 cat conftest.er1 >&5
2271 mv -f conftest.er1 conftest.err
2273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2274 test $ac_status = 0; } > conftest.i && {
2275 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2276 test ! -s conftest.err
2280 $as_echo "$as_me: failed program was:" >&5
2281 sed 's/^/| /' conftest.$ac_ext >&5
2285 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2286 as_fn_set_status $ac_retval
2288 } # ac_fn_cxx_try_cpp
2290 # ac_fn_c_try_link LINENO
2291 # -----------------------
2292 # Try to link conftest.$ac_ext, and return whether this succeeded.
2295 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2296 rm -f conftest.$ac_objext conftest$ac_exeext
2297 if { { ac_try="$ac_link"
2299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2300 *) ac_try_echo=$ac_try;;
2302 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2303 $as_echo "$ac_try_echo"; } >&5
2304 (eval "$ac_link") 2>conftest.err
2306 if test -s conftest.err; then
2307 grep -v '^ *+' conftest.err >conftest.er1
2308 cat conftest.er1 >&5
2309 mv -f conftest.er1 conftest.err
2311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2312 test $ac_status = 0; } && {
2313 test -z "$ac_c_werror_flag" ||
2314 test ! -s conftest.err
2315 } && test -s conftest$ac_exeext && {
2316 test "$cross_compiling" = yes ||
2317 $as_test_x conftest$ac_exeext
2321 $as_echo "$as_me: failed program was:" >&5
2322 sed 's/^/| /' conftest.$ac_ext >&5
2326 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2327 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2328 # interfere with the next link command; also delete a directory that is
2329 # left behind by Apple's compiler. We do this before executing the actions.
2330 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2331 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332 as_fn_set_status $ac_retval
2334 } # ac_fn_c_try_link
2336 # ac_fn_c_check_func LINENO FUNC VAR
2337 # ----------------------------------
2338 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2339 ac_fn_c_check_func ()
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2343 $as_echo_n "checking for $2... " >&6; }
2344 if eval "test \"\${$3+set}\"" = set; then :
2345 $as_echo_n "(cached) " >&6
2347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2348 /* end confdefs.h. */
2349 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2351 #define $2 innocuous_$2
2353 /* System header to define __stub macros and hopefully few prototypes,
2354 which can conflict with char $2 (); below.
2355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2356 <limits.h> exists even on freestanding compilers. */
2359 # include <limits.h>
2361 # include <assert.h>
2366 /* Override any GCC internal prototype to avoid an error.
2367 Use char because int might match the return type of a GCC
2368 builtin and then its argument prototype would still apply. */
2373 /* The GNU C library defines this for functions which it implements
2374 to always fail with ENOSYS. Some functions are actually named
2375 something starting with __ and the normal name is an alias. */
2376 #if defined __stub_$2 || defined __stub___$2
2388 if ac_fn_c_try_link "$LINENO"; then :
2393 rm -f core conftest.err conftest.$ac_objext \
2394 conftest$ac_exeext conftest.$ac_ext
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2398 $as_echo "$ac_res" >&6; }
2399 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2401 } # ac_fn_c_check_func
2403 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2404 # -------------------------------------------
2405 # Tests whether TYPE exists after having included INCLUDES, setting cache
2406 # variable VAR accordingly.
2407 ac_fn_c_check_type ()
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 $as_echo_n "checking for $2... " >&6; }
2412 if eval "test \"\${$3+set}\"" = set; then :
2413 $as_echo_n "(cached) " >&6
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2428 if ac_fn_c_try_compile "$LINENO"; then :
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2441 if ac_fn_c_try_compile "$LINENO"; then :
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 $as_echo "$ac_res" >&6; }
2453 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2455 } # ac_fn_c_check_type
2457 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2458 # ----------------------------------------------------
2459 # Tries to find if the field MEMBER exists in type AGGR, after including
2460 # INCLUDES, setting cache variable VAR accordingly.
2461 ac_fn_c_check_member ()
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2465 $as_echo_n "checking for $2.$3... " >&6; }
2466 if eval "test \"\${$4+set}\"" = set; then :
2467 $as_echo_n "(cached) " >&6
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2482 if ac_fn_c_try_compile "$LINENO"; then :
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2492 if (sizeof ac_aggr.$3)
2498 if ac_fn_c_try_compile "$LINENO"; then :
2503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509 $as_echo "$ac_res" >&6; }
2510 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2512 } # ac_fn_c_check_member
2514 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2515 # --------------------------------------------
2516 # Tries to find the compile-time value of EXPR in a program that includes
2517 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2519 ac_fn_c_compute_int ()
2521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2522 if test "$cross_compiling" = yes; then
2523 # Depending upon the size, compute the lo and hi bounds.
2524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2525 /* end confdefs.h. */
2530 static int test_array [1 - 2 * !(($2) >= 0)];
2537 if ac_fn_c_try_compile "$LINENO"; then :
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2546 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554 ac_hi=$ac_mid; break
2556 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2557 if test $ac_lo -le $ac_mid; then
2561 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567 /* end confdefs.h. */
2572 static int test_array [1 - 2 * !(($2) < 0)];
2579 if ac_fn_c_try_compile "$LINENO"; then :
2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583 /* end confdefs.h. */
2588 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2595 if ac_fn_c_try_compile "$LINENO"; then :
2596 ac_lo=$ac_mid; break
2598 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2599 if test $ac_mid -le $ac_hi; then
2603 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 # Binary search between lo and hi bounds.
2614 while test "x$ac_lo" != "x$ac_hi"; do
2615 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2617 /* end confdefs.h. */
2622 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2629 if ac_fn_c_try_compile "$LINENO"; then :
2632 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2642 /* end confdefs.h. */
2644 static long int longval () { return $2; }
2645 static unsigned long int ulongval () { return $2; }
2652 FILE *f = fopen ("conftest.val", "w");
2657 long int i = longval ();
2660 fprintf (f, "%ld", i);
2664 unsigned long int i = ulongval ();
2667 fprintf (f, "%lu", i);
2669 /* Do not output a trailing newline, as this causes \r\n confusion
2670 on some platforms. */
2671 return ferror (f) || fclose (f) != 0;
2677 if ac_fn_c_try_run "$LINENO"; then :
2678 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2683 conftest.$ac_objext conftest.beam conftest.$ac_ext
2687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2688 as_fn_set_status $ac_retval
2690 } # ac_fn_c_compute_int
2692 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2693 # ---------------------------------------------------------
2694 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2695 # the include files in INCLUDES and setting the cache variable VAR
2697 ac_fn_cxx_check_header_mongrel ()
2699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700 if eval "test \"\${$3+set}\"" = set; then :
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2702 $as_echo_n "checking for $2... " >&6; }
2703 if eval "test \"\${$3+set}\"" = set; then :
2704 $as_echo_n "(cached) " >&6
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2708 $as_echo "$ac_res" >&6; }
2710 # Is the header compilable?
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2712 $as_echo_n "checking $2 usability... " >&6; }
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714 /* end confdefs.h. */
2718 if ac_fn_cxx_try_compile "$LINENO"; then :
2719 ac_header_compiler=yes
2721 ac_header_compiler=no
2723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2725 $as_echo "$ac_header_compiler" >&6; }
2727 # Is the header present?
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2729 $as_echo_n "checking $2 presence... " >&6; }
2730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2731 /* end confdefs.h. */
2734 if ac_fn_cxx_try_cpp "$LINENO"; then :
2735 ac_header_preproc=yes
2737 ac_header_preproc=no
2739 rm -f conftest.err conftest.i conftest.$ac_ext
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2741 $as_echo "$ac_header_preproc" >&6; }
2743 # So? What about this header?
2744 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2747 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2749 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2753 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2755 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2757 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2759 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2761 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2762 ( $as_echo "## ------------------------------------------ ##
2763 ## Report this to https://issues.asterisk.org ##
2764 ## ------------------------------------------ ##"
2765 ) | sed "s/^/$as_me: WARNING: /" >&2
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2769 $as_echo_n "checking for $2... " >&6; }
2770 if eval "test \"\${$3+set}\"" = set; then :
2771 $as_echo_n "(cached) " >&6
2773 eval "$3=\$ac_header_compiler"
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2777 $as_echo "$ac_res" >&6; }
2779 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2781 } # ac_fn_cxx_check_header_mongrel
2783 # ac_fn_cxx_try_link LINENO
2784 # -------------------------
2785 # Try to link conftest.$ac_ext, and return whether this succeeded.
2786 ac_fn_cxx_try_link ()
2788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2789 rm -f conftest.$ac_objext conftest$ac_exeext
2790 if { { ac_try="$ac_link"
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796 $as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_link") 2>conftest.err
2799 if test -s conftest.err; then
2800 grep -v '^ *+' conftest.err >conftest.er1
2801 cat conftest.er1 >&5
2802 mv -f conftest.er1 conftest.err
2804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2805 test $ac_status = 0; } && {
2806 test -z "$ac_cxx_werror_flag" ||
2807 test ! -s conftest.err
2808 } && test -s conftest$ac_exeext && {
2809 test "$cross_compiling" = yes ||
2810 $as_test_x conftest$ac_exeext
2814 $as_echo "$as_me: failed program was:" >&5
2815 sed 's/^/| /' conftest.$ac_ext >&5
2819 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2820 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2821 # interfere with the next link command; also delete a directory that is
2822 # left behind by Apple's compiler. We do this before executing the actions.
2823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2825 as_fn_set_status $ac_retval
2827 } # ac_fn_cxx_try_link
2829 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2830 # ---------------------------------------------------------
2831 # Tests whether HEADER exists and can be compiled using the include files in
2832 # INCLUDES, setting the cache variable VAR accordingly.
2833 ac_fn_cxx_check_header_compile ()
2835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2837 $as_echo_n "checking for $2... " >&6; }
2838 if eval "test \"\${$3+set}\"" = set; then :
2839 $as_echo_n "(cached) " >&6
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h. */
2846 if ac_fn_cxx_try_compile "$LINENO"; then :
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2855 $as_echo "$ac_res" >&6; }
2856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2858 } # ac_fn_cxx_check_header_compile
2859 cat >config.log <<_ACEOF
2860 This file contains any messages produced by compilers while
2861 running configure, to aid debugging if configure makes a mistake.
2863 It was created by asterisk $as_me trunk, which was
2864 generated by GNU Autoconf 2.67. Invocation command line was
2876 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2877 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2878 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2879 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2880 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2882 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2883 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2885 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2886 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2887 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2888 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2889 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2890 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2891 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899 test -z "$as_dir" && as_dir=.
2900 $as_echo "PATH: $as_dir"
2916 # Keep a trace of the command line.
2917 # Strip out --no-create and --no-recursion so they do not pile up.
2918 # Strip out --silent because we don't want to record it for future runs.
2919 # Also quote any args containing shell meta-characters.
2920 # Make two passes to allow for proper duplicate-argument suppression.
2924 ac_must_keep_next=false
2930 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2931 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2932 | -silent | --silent | --silen | --sile | --sil)
2935 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2938 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2940 as_fn_append ac_configure_args1 " '$ac_arg'"
2941 if test $ac_must_keep_next = true; then
2942 ac_must_keep_next=false # Got value, back to normal.
2945 *=* | --config-cache | -C | -disable-* | --disable-* \
2946 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2947 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2948 | -with-* | --with-* | -without-* | --without-* | --x)
2949 case "$ac_configure_args0 " in
2950 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2953 -* ) ac_must_keep_next=true ;;
2956 as_fn_append ac_configure_args " '$ac_arg'"
2961 { ac_configure_args0=; unset ac_configure_args0;}
2962 { ac_configure_args1=; unset ac_configure_args1;}
2964 # When interrupted or exit'd, cleanup temporary files, and complete
2965 # config.log. We remove comments because anyway the quotes in there
2966 # would cause problems or look ugly.
2967 # WARNING: Use '\'' to represent an apostrophe within the trap.
2968 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2969 trap 'exit_status=$?
2970 # Save into config.log some information that might help in debugging.
2974 $as_echo "## ---------------- ##
2975 ## Cache variables. ##
2976 ## ---------------- ##"
2978 # The following way of writing the cache mishandles newlines in values,
2980 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2981 eval ac_val=\$$ac_var
2985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2986 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2989 _ | IFS | as_nl) ;; #(
2990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2991 *) { eval $ac_var=; unset $ac_var;} ;;
2996 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2997 *${as_nl}ac_space=\ *)
2999 "s/'\''/'\''\\\\'\'''\''/g;
3000 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3010 $as_echo "## ----------------- ##
3011 ## Output variables. ##
3012 ## ----------------- ##"
3014 for ac_var in $ac_subst_vars
3016 eval ac_val=\$$ac_var
3018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3020 $as_echo "$ac_var='\''$ac_val'\''"
3024 if test -n "$ac_subst_files"; then
3025 $as_echo "## ------------------- ##
3026 ## File substitutions. ##
3027 ## ------------------- ##"
3029 for ac_var in $ac_subst_files
3031 eval ac_val=\$$ac_var
3033 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3035 $as_echo "$ac_var='\''$ac_val'\''"
3040 if test -s confdefs.h; then
3041 $as_echo "## ----------- ##
3048 test "$ac_signal" != 0 &&
3049 $as_echo "$as_me: caught signal $ac_signal"
3050 $as_echo "$as_me: exit $exit_status"
3052 rm -f core *.core core.conftest.* &&
3053 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3056 for ac_signal in 1 2 13 15; do
3057 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3061 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3062 rm -f -r conftest* confdefs.h
3064 $as_echo "/* confdefs.h */" > confdefs.h
3066 # Predefined preprocessor variables.
3068 cat >>confdefs.h <<_ACEOF
3069 #define PACKAGE_NAME "$PACKAGE_NAME"
3072 cat >>confdefs.h <<_ACEOF
3073 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3076 cat >>confdefs.h <<_ACEOF
3077 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3080 cat >>confdefs.h <<_ACEOF
3081 #define PACKAGE_STRING "$PACKAGE_STRING"
3084 cat >>confdefs.h <<_ACEOF
3085 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3088 cat >>confdefs.h <<_ACEOF
3089 #define PACKAGE_URL "$PACKAGE_URL"
3093 # Let the site file select an alternate cache file if it wants to.
3094 # Prefer an explicitly selected file to automatically selected ones.
3097 if test -n "$CONFIG_SITE"; then
3098 # We do not want a PATH search for config.site.
3099 case $CONFIG_SITE in #((
3100 -*) ac_site_file1=./$CONFIG_SITE;;
3101 */*) ac_site_file1=$CONFIG_SITE;;
3102 *) ac_site_file1=./$CONFIG_SITE;;
3104 elif test "x$prefix" != xNONE; then
3105 ac_site_file1=$prefix/share/config.site
3106 ac_site_file2=$prefix/etc/config.site
3108 ac_site_file1=$ac_default_prefix/share/config.site
3109 ac_site_file2=$ac_default_prefix/etc/config.site
3111 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3113 test "x$ac_site_file" = xNONE && continue
3114 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3116 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3117 sed 's/^/| /' "$ac_site_file" >&5
3119 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error $? "failed to load site script $ac_site_file
3122 See \`config.log' for more details" "$LINENO" 5 ; }
3126 if test -r "$cache_file"; then
3127 # Some versions of bash will fail to source /dev/null (special files
3128 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3129 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3131 $as_echo "$as_me: loading cache $cache_file" >&6;}
3133 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3134 *) . "./$cache_file";;
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3139 $as_echo "$as_me: creating cache $cache_file" >&6;}
3143 as_fn_append ac_header_list " stdlib.h"
3144 as_fn_append ac_header_list " unistd.h"
3145 as_fn_append ac_header_list " sys/param.h"
3146 as_fn_append ac_header_list " utime.h"
3147 # Check that the precious variables saved in the cache have kept the same
3149 ac_cache_corrupted=false
3150 for ac_var in $ac_precious_vars; do
3151 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3152 eval ac_new_set=\$ac_env_${ac_var}_set
3153 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3154 eval ac_new_val=\$ac_env_${ac_var}_value
3155 case $ac_old_set,$ac_new_set in
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3158 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3159 ac_cache_corrupted=: ;;
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3162 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3163 ac_cache_corrupted=: ;;
3166 if test "x$ac_old_val" != "x$ac_new_val"; then
3167 # differences in whitespace do not lead to failure.
3168 ac_old_val_w=`echo x $ac_old_val`
3169 ac_new_val_w=`echo x $ac_new_val`
3170 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3172 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3173 ac_cache_corrupted=:
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3176 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3177 eval $ac_var=\$ac_old_val
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3180 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3182 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3185 # Pass precious variables to config.status.
3186 if test "$ac_new_set" = set; then
3188 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3189 *) ac_arg=$ac_var=$ac_new_val ;;
3191 case " $ac_configure_args " in
3192 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3193 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3197 if $ac_cache_corrupted; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3201 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3202 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3204 ## -------------------- ##
3205 ## Main body of script. ##
3206 ## -------------------- ##
3209 ac_cpp='$CPP $CPPFLAGS'
3210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3216 # cross-compile macros
3218 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3219 if test -f "$ac_dir/install-sh"; then
3221 ac_install_sh="$ac_aux_dir/install-sh -c"
3223 elif test -f "$ac_dir/install.sh"; then
3225 ac_install_sh="$ac_aux_dir/install.sh -c"
3227 elif test -f "$ac_dir/shtool"; then
3229 ac_install_sh="$ac_aux_dir/shtool install -c"
3233 if test -z "$ac_aux_dir"; then
3234 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3237 # These three variables are undocumented and unsupported,
3238 # and are intended to be withdrawn in a future Autoconf release.
3239 # They can cause serious problems if a builder's source tree is in a directory
3240 # whose full name contains unusual characters.
3241 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3242 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3243 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3246 # Make sure we can run config.sub.
3247 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3248 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3251 $as_echo_n "checking build system type... " >&6; }
3252 if test "${ac_cv_build+set}" = set; then :
3253 $as_echo_n "(cached) " >&6
3255 ac_build_alias=$build_alias
3256 test "x$ac_build_alias" = x &&
3257 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3258 test "x$ac_build_alias" = x &&
3259 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3260 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3261 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3265 $as_echo "$ac_cv_build" >&6; }
3266 case $ac_cv_build in
3268 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
3271 ac_save_IFS=$IFS; IFS='-'
3277 # Remember, the first character of IFS is used to create $*,
3278 # except with old shells:
3281 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3285 $as_echo_n "checking host system type... " >&6; }
3286 if test "${ac_cv_host+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3289 if test "x$host_alias" = x; then
3290 ac_cv_host=$ac_cv_build
3292 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3293 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3298 $as_echo "$ac_cv_host" >&6; }
3301 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
3304 ac_save_IFS=$IFS; IFS='-'
3310 # Remember, the first character of IFS is used to create $*,
3311 # except with old shells:
3314 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3318 # check existence of the package
3322 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3323 if test -f "$ac_dir/install-sh"; then
3325 ac_install_sh="$ac_aux_dir/install-sh -c"
3327 elif test -f "$ac_dir/install.sh"; then
3329 ac_install_sh="$ac_aux_dir/install.sh -c"
3331 elif test -f "$ac_dir/shtool"; then
3333 ac_install_sh="$ac_aux_dir/shtool install -c"
3337 if test -z "$ac_aux_dir"; then
3338 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3341 # These three variables are undocumented and unsupported,
3342 # and are intended to be withdrawn in a future Autoconf release.
3343 # They can cause serious problems if a builder's source tree is in a directory
3344 # whose full name contains unusual characters.
3345 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3346 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3347 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3354 # preserve any CFLAGS or LDFLAGS that may be set
3355 # NOTE: This must be done before calling any macros that end up
3356 # calling AC_PROG_CC or the like, since they will set a default
3357 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3358 # we don't want those default flags to be carried over into the
3359 # rest of the build system since we have other means of controlling
3360 # debugging symbol generation and optimization.
3361 CONFIG_CFLAGS="${CFLAGS}"
3362 CONFIG_LDFLAGS="${LDFLAGS}"
3366 # specify output header file
3367 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3370 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3371 # other macro that uses the C compiler, or the default order will be used.
3373 ac_cpp='$CPP $CPPFLAGS'
3374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3377 if test -n "$ac_tool_prefix"; then
3378 for ac_prog in gcc cc
3380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3381 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then :
3385 $as_echo_n "(cached) " >&6
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3417 test -n "$CC" && break
3420 if test -z "$CC"; then
3422 for ac_prog in gcc cc
3424 # Extract the first word of "$ac_prog", so it can be a program name with args.
3425 set dummy $ac_prog; ac_word=$2
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 $as_echo_n "checking for $ac_word... " >&6; }
3428 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3429 $as_echo_n "(cached) " >&6
3431 if test -n "$ac_ct_CC"; then
3432 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3441 ac_cv_prog_ac_ct_CC="$ac_prog"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3452 if test -n "$ac_ct_CC"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3454 $as_echo "$ac_ct_CC" >&6; }
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457 $as_echo "no" >&6; }
3461 test -n "$ac_ct_CC" && break
3464 if test "x$ac_ct_CC" = x; then
3467 case $cross_compiling:$ac_tool_warned in
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3471 ac_tool_warned=yes ;;
3478 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error $? "no acceptable C compiler found in \$PATH
3481 See \`config.log' for more details" "$LINENO" 5 ; }
3483 # Provide some information about the compiler.
3484 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3487 for ac_option in --version -v -V -qversion; do
3488 { { ac_try="$ac_compiler $ac_option >&5"
3490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3491 *) ac_try_echo=$ac_try;;
3493 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3494 $as_echo "$ac_try_echo"; } >&5
3495 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3497 if test -s conftest.err; then
3499 ... rest of stderr output deleted ...
3500 10q' conftest.err >conftest.er1
3501 cat conftest.er1 >&5
3503 rm -f conftest.er1 conftest.err
3504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 test $ac_status = 0; }
3508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3519 ac_clean_files_save=$ac_clean_files
3520 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3521 # Try to create an executable without -o first, disregard a.out.
3522 # It will help us diagnose broken compilers, and finding out an intuition
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3525 $as_echo_n "checking whether the C compiler works... " >&6; }
3526 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3528 # The possible output files:
3529 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3532 for ac_file in $ac_files
3535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3536 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3541 if { { ac_try="$ac_link_default"
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_link_default") 2>&5
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }; then :
3552 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3553 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3554 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3555 # so that the user can short-circuit this test for compilers unknown to
3557 for ac_file in $ac_files ''
3559 test -f "$ac_file" || continue
3561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3564 # We found the default executable, but exeext='' is most
3568 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3570 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3572 # We set ac_cv_exeext here because the later test for it is not
3573 # safe: cross compilers may not add the suffix if given an `-o'
3574 # argument, so we may need to know it at that point already.
3575 # Even if this section looks crufty: it has the advantage of
3582 test "$ac_cv_exeext" = no && ac_cv_exeext=
3587 if test -z "$ac_file"; then :
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 $as_echo "$as_me: failed program was:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error 77 "C compiler cannot create executables
3596 See \`config.log' for more details" "$LINENO" 5 ; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3599 $as_echo "yes" >&6; }
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3602 $as_echo_n "checking for C compiler default output file name... " >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3604 $as_echo "$ac_file" >&6; }
3605 ac_exeext=$ac_cv_exeext
3607 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3608 ac_clean_files=$ac_clean_files_save
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3610 $as_echo_n "checking for suffix of executables... " >&6; }
3611 if { { ac_try="$ac_link"
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_link") 2>&5
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }; then :
3622 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3623 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3624 # work properly (i.e., refer to `conftest.exe'), while it won't with
3626 for ac_file in conftest.exe conftest conftest.*; do
3627 test -f "$ac_file" || continue
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3630 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3639 See \`config.log' for more details" "$LINENO" 5 ; }
3641 rm -f conftest conftest$ac_cv_exeext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3643 $as_echo "$ac_cv_exeext" >&6; }
3645 rm -f conftest.$ac_ext
3646 EXEEXT=$ac_cv_exeext
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3654 FILE *f = fopen ("conftest.out", "w");
3655 return ferror (f) || fclose (f) != 0;
3661 ac_clean_files="$ac_clean_files conftest.out"
3662 # Check that the compiler produces executables we can run. If not, either
3663 # the compiler is broken, or we cross compile.
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3665 $as_echo_n "checking whether we are cross compiling... " >&6; }
3666 if test "$cross_compiling" != yes; then
3667 { { ac_try="$ac_link"
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3672 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3673 $as_echo "$ac_try_echo"; } >&5
3674 (eval "$ac_link") 2>&5
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3677 test $ac_status = 0; }
3678 if { ac_try='./conftest$ac_cv_exeext'
3679 { { case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684 $as_echo "$ac_try_echo"; } >&5
3685 (eval "$ac_try") 2>&5
3687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688 test $ac_status = 0; }; }; then
3691 if test "$cross_compiling" = maybe; then
3694 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3696 as_fn_error $? "cannot run C compiled programs.
3697 If you meant to cross compile, use \`--host'.
3698 See \`config.log' for more details" "$LINENO" 5 ; }
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3703 $as_echo "$cross_compiling" >&6; }
3705 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3706 ac_clean_files=$ac_clean_files_save
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3708 $as_echo_n "checking for suffix of object files... " >&6; }
3709 if test "${ac_cv_objext+set}" = set; then :
3710 $as_echo_n "(cached) " >&6
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3723 rm -f conftest.o conftest.obj
3724 if { { ac_try="$ac_compile"
3726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_compile") 2>&5
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 for ac_file in conftest.o conftest.obj conftest.*; do
3736 test -f "$ac_file" || continue;
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3739 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3744 $as_echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3749 as_fn_error $? "cannot compute suffix of object files: cannot compile
3750 See \`config.log' for more details" "$LINENO" 5 ; }
3752 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3755 $as_echo "$ac_cv_objext" >&6; }
3756 OBJEXT=$ac_cv_objext
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3759 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3760 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h. */
3777 if ac_fn_c_try_compile "$LINENO"; then :
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3787 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3788 if test $ac_compiler_gnu = yes; then
3793 ac_test_CFLAGS=${CFLAGS+set}
3794 ac_save_CFLAGS=$CFLAGS
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3796 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3797 if test "${ac_cv_prog_cc_g+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3800 ac_save_c_werror_flag=$ac_c_werror_flag
3801 ac_c_werror_flag=yes
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3815 if ac_fn_c_try_compile "$LINENO"; then :
3819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3820 /* end confdefs.h. */
3830 if ac_fn_c_try_compile "$LINENO"; then :
3833 ac_c_werror_flag=$ac_save_c_werror_flag
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3846 if ac_fn_c_try_compile "$LINENO"; then :
3849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_c_werror_flag=$ac_save_c_werror_flag
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3857 $as_echo "$ac_cv_prog_cc_g" >&6; }
3858 if test "$ac_test_CFLAGS" = set; then
3859 CFLAGS=$ac_save_CFLAGS
3860 elif test $ac_cv_prog_cc_g = yes; then
3861 if test "$GCC" = yes; then
3867 if test "$GCC" = yes; then
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3874 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3875 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3876 $as_echo_n "(cached) " >&6
3878 ac_cv_prog_cc_c89=no
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3884 #include <sys/types.h>
3885 #include <sys/stat.h>
3886 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3887 struct buf { int x; };
3888 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3889 static char *e (p, i)
3895 static char *f (char * (*g) (char **, int), char **p, ...)
3900 s = g (p, va_arg (v,int));
3905 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3906 function prototypes and stuff, but not '\xHH' hex character constants.
3907 These don't provoke an error unfortunately, instead are silently treated
3908 as 'x'. The following induces an error, until -std is added to get
3909 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3910 array size at least. It's necessary to write '\x00'==0 to get something
3911 that's true only with -std. */
3912 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3914 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3915 inside strings and character constants. */
3917 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3919 int test (int i, double x);
3920 struct s1 {int (*f) (int a);};
3921 struct s2 {int (*f) (double a);};
3922 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3928 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3933 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3934 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3936 CC="$ac_save_CC $ac_arg"
3937 if ac_fn_c_try_compile "$LINENO"; then :
3938 ac_cv_prog_cc_c89=$ac_arg
3940 rm -f core conftest.err conftest.$ac_objext
3941 test "x$ac_cv_prog_cc_c89" != "xno" && break
3943 rm -f conftest.$ac_ext
3948 case "x$ac_cv_prog_cc_c89" in
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3951 $as_echo "none needed" >&6; } ;;
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3954 $as_echo "unsupported" >&6; } ;;
3956 CC="$CC $ac_cv_prog_cc_c89"
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3958 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3960 if test "x$ac_cv_prog_cc_c89" != xno; then :
3965 ac_cpp='$CPP $CPPFLAGS'
3966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3973 ac_cpp='$CPP $CPPFLAGS'
3974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3978 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3979 # On Suns, sometimes $CPP names a directory.
3980 if test -n "$CPP" && test -d "$CPP"; then
3983 if test -z "$CPP"; then
3984 if test "${ac_cv_prog_CPP+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3987 # Double quotes because CPP needs to be expanded
3988 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3991 for ac_c_preproc_warn_flag in '' yes
3993 # Use a header file that comes with gcc, so configuring glibc
3994 # with a fresh cross-compiler works.
3995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3996 # <limits.h> exists even on freestanding compilers.
3997 # On the NeXT, cc -E runs the code through the compiler's parser,
3998 # not just through cpp. "Syntax error" is here to catch this case.
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4002 # include <limits.h>
4004 # include <assert.h>
4008 if ac_fn_c_try_cpp "$LINENO"; then :
4011 # Broken: fails on valid input.
4014 rm -f conftest.err conftest.i conftest.$ac_ext
4016 # OK, works on sane cases. Now check whether nonexistent headers
4017 # can be detected and how.
4018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4019 /* end confdefs.h. */
4020 #include <ac_nonexistent.h>
4022 if ac_fn_c_try_cpp "$LINENO"; then :
4023 # Broken: success on invalid input.
4026 # Passes both tests.
4030 rm -f conftest.err conftest.i conftest.$ac_ext
4033 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4034 rm -f conftest.i conftest.err conftest.$ac_ext
4035 if $ac_preproc_ok; then :
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4048 $as_echo "$CPP" >&6; }
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.i 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.i conftest.$ac_ext
4092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4093 rm -f conftest.i conftest.err conftest.$ac_ext
4094 if $ac_preproc_ok; then :
4097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4099 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4100 See \`config.log' for more details" "$LINENO" 5 ; }
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4111 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4112 if test "${ac_cv_path_GREP+set}" = set; then :
4113 $as_echo_n "(cached) " >&6
4115 if test -z "$GREP"; then
4116 ac_path_GREP_found=false
4117 # Loop through the user's path and test for each of PROGNAME-LIST
4118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122 test -z "$as_dir" && as_dir=.
4123 for ac_prog in grep ggrep; do
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4126 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4127 # Check for GNU ac_path_GREP and select it if it is found.
4128 # Check for GNU $ac_path_GREP
4129 case `"$ac_path_GREP" --version 2>&1` in
4131 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4134 $as_echo_n 0123456789 >"conftest.in"
4137 cat "conftest.in" "conftest.in" >"conftest.tmp"
4138 mv "conftest.tmp" "conftest.in"
4139 cp "conftest.in" "conftest.nl"
4140 $as_echo 'GREP' >> "conftest.nl"
4141 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4143 as_fn_arith $ac_count + 1 && ac_count=$as_val
4144 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4145 # Best one so far, save it but keep looking for a better one
4146 ac_cv_path_GREP="$ac_path_GREP"
4147 ac_path_GREP_max=$ac_count
4149 # 10*(2^10) chars as input seems more than enough
4150 test $ac_count -gt 10 && break
4152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155 $ac_path_GREP_found && break 3
4160 if test -z "$ac_cv_path_GREP"; then
4161 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4164 ac_cv_path_GREP=$GREP
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4169 $as_echo "$ac_cv_path_GREP" >&6; }
4170 GREP="$ac_cv_path_GREP"
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4174 $as_echo_n "checking for egrep... " >&6; }
4175 if test "${ac_cv_path_EGREP+set}" = set; then :
4176 $as_echo_n "(cached) " >&6
4178 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4179 then ac_cv_path_EGREP="$GREP -E"
4181 if test -z "$EGREP"; then
4182 ac_path_EGREP_found=false
4183 # Loop through the user's path and test for each of PROGNAME-LIST
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4188 test -z "$as_dir" && as_dir=.
4189 for ac_prog in egrep; do
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4192 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4193 # Check for GNU ac_path_EGREP and select it if it is found.
4194 # Check for GNU $ac_path_EGREP
4195 case `"$ac_path_EGREP" --version 2>&1` in
4197 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4200 $as_echo_n 0123456789 >"conftest.in"
4203 cat "conftest.in" "conftest.in" >"conftest.tmp"
4204 mv "conftest.tmp" "conftest.in"
4205 cp "conftest.in" "conftest.nl"
4206 $as_echo 'EGREP' >> "conftest.nl"
4207 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4208 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4209 as_fn_arith $ac_count + 1 && ac_count=$as_val
4210 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4211 # Best one so far, save it but keep looking for a better one
4212 ac_cv_path_EGREP="$ac_path_EGREP"
4213 ac_path_EGREP_max=$ac_count
4215 # 10*(2^10) chars as input seems more than enough
4216 test $ac_count -gt 10 && break
4218 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4221 $ac_path_EGREP_found && break 3
4226 if test -z "$ac_cv_path_EGREP"; then
4227 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4230 ac_cv_path_EGREP=$EGREP
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4236 $as_echo "$ac_cv_path_EGREP" >&6; }
4237 EGREP="$ac_cv_path_EGREP"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4241 $as_echo_n "checking for ANSI C header files... " >&6; }
4242 if test "${ac_cv_header_stdc+set}" = set; then :
4243 $as_echo_n "(cached) " >&6
4245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4246 /* end confdefs.h. */
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_cv_header_stdc=yes
4263 ac_cv_header_stdc=no
4265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267 if test $ac_cv_header_stdc = yes; then
4268 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4275 $EGREP "memchr" >/dev/null 2>&1; then :
4278 ac_cv_header_stdc=no
4284 if test $ac_cv_header_stdc = yes; then
4285 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4292 $EGREP "free" >/dev/null 2>&1; then :
4295 ac_cv_header_stdc=no
4301 if test $ac_cv_header_stdc = yes; then
4302 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4303 if test "$cross_compiling" = yes; then :
4306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h. */
4310 #if ((' ' & 0x0FF) == 0x020)
4311 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4312 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4314 # define ISLOWER(c) \
4315 (('a' <= (c) && (c) <= 'i') \
4316 || ('j' <= (c) && (c) <= 'r') \
4317 || ('s' <= (c) && (c) <= 'z'))
4318 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4321 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4326 for (i = 0; i < 256; i++)
4327 if (XOR (islower (i), ISLOWER (i))
4328 || toupper (i) != TOUPPER (i))
4333 if ac_fn_c_try_run "$LINENO"; then :
4336 ac_cv_header_stdc=no
4338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4339 conftest.$ac_objext conftest.beam conftest.$ac_ext
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4345 $as_echo "$ac_cv_header_stdc" >&6; }
4346 if test $ac_cv_header_stdc = yes; then
4348 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4352 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4353 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4354 inttypes.h stdint.h unistd.h
4356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4357 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4359 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4360 cat >>confdefs.h <<_ACEOF
4361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4370 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4371 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4378 if test "$MINIX" = yes; then
4380 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4383 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4386 $as_echo "#define _MINIX 1" >>confdefs.h
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4392 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4393 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4394 $as_echo_n "(cached) " >&6
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4399 # define __EXTENSIONS__ 1
4400 $ac_includes_default
4409 if ac_fn_c_try_compile "$LINENO"; then :
4410 ac_cv_safe_to_define___extensions__=yes
4412 ac_cv_safe_to_define___extensions__=no
4414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4417 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4418 test $ac_cv_safe_to_define___extensions__ = yes &&
4419 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4421 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4423 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4425 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4427 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4430 # System default paths
4431 astsbindir='${sbindir}'
4432 astetcdir='${sysconfdir}/asterisk'
4433 astheaderdir='${includedir}/asterisk'
4434 astlibdir='${libdir}/asterisk'
4435 astmandir='${mandir}'
4436 astvarlibdir='${localstatedir}/lib/asterisk'
4437 astdatadir='${astvarlibdir}'
4438 astdbdir='${astvarlibdir}'
4439 astkeydir='${astvarlibdir}'
4440 astspooldir='${localstatedir}/spool/asterisk'
4441 astlogdir='${localstatedir}/log/asterisk'
4442 astvarrundir='${localstatedir}/run/asterisk'
4444 case "${host_os}" in
4446 if test ${prefix} = 'NONE'; then
4447 astvarlibdir='${prefix}/share/asterisk'
4448 astdbdir='${localstatedir}/db/asterisk'
4452 if test ${prefix} = 'NONE'; then
4453 astvarrundir='/Library/Application Support/Asterisk/Run'
4458 case "${host_os}" in
4460 ac_default_prefix=/usr/local
4461 CPPFLAGS=-I/usr/local/include
4462 LDFLAGS=-L/usr/local/lib
4465 ac_default_prefix=/usr/local
4466 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4467 if test ${sysconfdir} = '${prefix}/etc'; then
4468 astetcdir=/etc/asterisk
4470 if test ${mandir} = '${prefix}/man'; then
4471 astmandir=/usr/share/man
4474 CPPFLAGS=-I/usr/local/include
4475 LDFLAGS=-L/usr/local/lib
4478 ac_default_prefix=/usr/local
4479 if test ${prefix} = 'NONE'; then
4480 astlibdir='/Library/Application Support/Asterisk/Modules'
4481 astvarlibdir='/Library/Application Support/Asterisk'
4482 astlogdir=/Library/Logs/Asterisk
4483 astvarrundir='/Library/Application Support/Asterisk/Run'
4486 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4489 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
4493 if test ${prefix} = 'NONE'; then
4494 astetcdir=/var/etc/asterisk
4495 astsbindir=/opt/asterisk/sbin
4496 astlibdir=/opt/asterisk/lib
4497 astheaderdir=/opt/asterisk/include
4498 astmandir=/opt/asterisk/man
4499 astvarlibdir=/var/opt/asterisk
4500 astspooldir=/var/spool/asterisk
4501 astlogdir=/var/log/asterisk
4502 astvarrundir=/var/run/asterisk
4506 ac_default_prefix=/usr
4507 if test ${prefix} = '/usr' || test ${prefix} = 'NONE'; then
4508 if test ${sysconfdir} = '${prefix}/etc'; then
4511 if test ${mandir} = '${prefix}/man'; then
4512 mandir=/usr/share/man
4518 if test ${prefix} = ${ac_default_prefix} || test ${prefix} = 'NONE'; then
4519 if test ${localstatedir} = '${prefix}/var'; then
4524 BUILD_PLATFORM=${build}
4525 BUILD_CPU=${build_cpu}
4526 BUILD_VENDOR=${build_vendor}
4527 BUILD_OS=${build_os}
4534 HOST_PLATFORM=${host}
4535 HOST_CPU=${host_cpu}
4536 HOST_VENDOR=${host_vendor}
4546 case "${host_os}" in
4582 if test -n "$ac_tool_prefix"; then
4583 # Extract the first word of "${ac_tool_prefix}uname", so it can be a program name with args.
4584 set dummy ${ac_tool_prefix}uname; ac_word=$2
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4586 $as_echo_n "checking for $ac_word... " >&6; }
4587 if test "${ac_cv_path_UNAME+set}" = set; then :
4588 $as_echo_n "(cached) " >&6
4592 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path.
4595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 test -z "$as_dir" && as_dir=.
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4602 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext"
4603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 UNAME=$ac_cv_path_UNAME
4614 if test -n "$UNAME"; then
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5
4616 $as_echo "$UNAME" >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4619 $as_echo "no" >&6; }
4624 if test -z "$ac_cv_path_UNAME"; then
4626 # Extract the first word of "uname", so it can be a program name with args.
4627 set dummy uname; ac_word=$2
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4629 $as_echo_n "checking for $ac_word... " >&6; }
4630 if test "${ac_cv_path_ac_pt_UNAME+set}" = set; then :
4631 $as_echo_n "(cached) " >&6
4633 case $ac_pt_UNAME in
4635 ac_cv_path_ac_pt_UNAME="$ac_pt_UNAME" # Let the user override the test with a path.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 ac_cv_path_ac_pt_UNAME="$as_dir/$ac_word$ac_exec_ext"
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 ac_pt_UNAME=$ac_cv_path_ac_pt_UNAME
4657 if test -n "$ac_pt_UNAME"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_UNAME" >&5
4659 $as_echo "$ac_pt_UNAME" >&6; }
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4665 if test "x$ac_pt_UNAME" = x; then
4668 case $cross_compiling:$ac_tool_warned in
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672 ac_tool_warned=yes ;;
4677 UNAME="$ac_cv_path_UNAME"
4680 if test ! x"${UNAME}" = xNo; then
4681 PBX_OSREV=$(${UNAME} -r)