2 # From configure.ac Revision: 392970 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for asterisk trunk.
6 # Report bugs to <https://issues.asterisk.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
16 ## -------------------- ##
17 ## M4sh Initialization. ##
18 ## -------------------- ##
20 # Be more Bourne compatible
21 DUALCASE=1; export DUALCASE # for MKS sh
22 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
42 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 # Prefer a ksh shell builtin over an external printf program on Solaris,
47 # but without wasting forks for bash or zsh.
48 if test -z "$BASH_VERSION$ZSH_VERSION" \
49 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo_n='print -rn --'
52 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58 as_echo_n='/usr/ucb/echo -n'
60 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
65 expr "X$arg" : "X\\(.*\\)$as_nl";
66 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
68 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
71 as_echo_n='sh -c $as_echo_n_body as_echo'
74 as_echo='sh -c $as_echo_body as_echo'
77 # The user is always right.
78 if test "${PATH_SEPARATOR+set}" != set; then
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
88 # We need space, tab and new line, in precisely that order. Quoting is
89 # there to prevent editors from complaining about space-tab.
90 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91 # splitting by setting IFS to empty value.)
94 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\${$as_var+set} = xset \
125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
140 # Use a proper internal environment variable to ensure we don't fall
141 # into an infinite loop, continuously re-executing ourselves.
142 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
143 _as_can_reexec=no; export _as_can_reexec;
144 # We cannot yet assume a decent shell, so we have to provide a
145 # neutralization value for shells without unset; and this also
146 # works around shells that cannot unset nonexistent variables.
147 # Preserve -v and -x to the replacement shell.
150 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
152 *v*x* | *x*v* ) as_opts=-vx ;;
157 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
158 # Admittedly, this is quite paranoid, since all the known shells bail
159 # out after a failed `exec'.
160 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
163 # We don't want this to propagate to other subprocesses.
164 { _as_can_reexec=; unset _as_can_reexec;}
165 if test "x$CONFIG_SHELL" = x; then
166 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
169 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
170 # is contrary to our usage. Disable this feature.
171 alias -g '\${1+\"\$@\"}'='\"\$@\"'
174 case \`(set -o) 2>/dev/null\` in #(
182 as_required="as_fn_return () { (exit \$1); }
183 as_fn_success () { as_fn_return 0; }
184 as_fn_failure () { as_fn_return 1; }
185 as_fn_ret_success () { return 0; }
186 as_fn_ret_failure () { return 1; }
189 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
190 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
191 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
192 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
193 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
196 exitcode=1; echo positional parameters were not saved.
198 test x\$exitcode = x0 || exit 1
200 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
201 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
202 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
203 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
204 test \$(( 1 + 1 )) = 2 || exit 1"
205 if (eval "$as_required") 2>/dev/null; then :
210 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
215 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
218 test -z "$as_dir" && as_dir=.
222 for as_base in sh bash ksh sh5; do
223 # Try only shells that exist, to save several forks.
224 as_shell=$as_dir/$as_base
225 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
226 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
227 CONFIG_SHELL=$as_shell as_have_required=yes
228 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
236 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
237 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
238 CONFIG_SHELL=$SHELL as_have_required=yes
243 if test "x$CONFIG_SHELL" != x; then :
245 # We cannot yet assume a decent shell, so we have to provide a
246 # neutralization value for shells without unset; and this also
247 # works around shells that cannot unset nonexistent variables.
248 # Preserve -v and -x to the replacement shell.
251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
253 *v*x* | *x*v* ) as_opts=-vx ;;
258 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
259 # Admittedly, this is quite paranoid, since all the known shells bail
260 # out after a failed `exec'.
261 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 if test x$as_have_required = xno; then :
266 $as_echo "$0: This script requires a shell more modern than all"
267 $as_echo "$0: the shells that I found on your system."
268 if test x${ZSH_VERSION+set} = xset ; then
269 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
272 $as_echo "$0: Please tell bug-autoconf@gnu.org and
273 $0: https://issues.asterisk.org about your system,
274 $0: including any error possibly output before this
275 $0: message. Then install a modern shell, or manually run
276 $0: the script under such a shell if you do have one."
282 SHELL=${CONFIG_SHELL-/bin/sh}
284 # Unset more variables known to interfere with behavior of common tools.
285 CLICOLOR_FORCE= GREP_OPTIONS=
286 unset CLICOLOR_FORCE GREP_OPTIONS
288 ## --------------------- ##
289 ## M4sh Shell Functions. ##
290 ## --------------------- ##
293 # Portably unset VAR.
296 { eval $1=; unset $1;}
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
320 # Create "$as_dir" as a directory, including parents if necessary.
325 -*) as_dir=./$as_dir;;
327 test -d "$as_dir" || eval $as_mkdir_p || {
331 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 as_dirs="'$as_qdir' $as_dirs"
335 as_dir=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337 X"$as_dir" : 'X\(//\)[^/]' \| \
338 X"$as_dir" : 'X\(//\)$' \| \
339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 $as_echo X"$as_dir" |
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 test -d "$as_dir" && break
360 test -z "$as_dirs" || eval "mkdir $as_dirs"
361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p ()
371 test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
380 eval 'as_fn_append ()
393 # Perform arithmetic evaluation on the ARGs, and store the result in the
394 # global $as_val. Take advantage of shells that can avoid forks. The arguments
395 # must be portable across $(()) and expr.
396 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
404 as_val=`expr "$@" || test $? -eq 1`
409 # as_fn_error STATUS ERROR [LINENO LOG_FD]
410 # ----------------------------------------
411 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
412 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
413 # script with STATUS, using 1 if that was 0.
416 as_status=$1; test $as_status -eq 0 && as_status=1
418 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
419 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
421 $as_echo "$as_me: error: $2" >&2
422 as_fn_exit $as_status
425 if expr a : '\(a\)' >/dev/null 2>&1 &&
426 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_me=`$as_basename -- "$0" ||
445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
446 X"$0" : 'X\(//\)$' \| \
447 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
449 sed '/^.*\/\([^/][^/]*\)\/*$/{
463 # Avoid depending upon Character Ranges.
464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
467 as_cr_digits='0123456789'
468 as_cr_alnum=$as_cr_Letters$as_cr_digits
471 as_lineno_1=$LINENO as_lineno_1a=$LINENO
472 as_lineno_2=$LINENO as_lineno_2a=$LINENO
473 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
474 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
475 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
487 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
491 chmod +x "$as_me.lineno" ||
492 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
494 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
495 # already done that, so ensure we don't try to do so again and fall
496 # in an infinite loop. This has already happened in practice.
497 _as_can_reexec=no; export _as_can_reexec
498 # Don't try to exec as it changes $[0], causing all sort of problems
499 # (the dirname of $[0] is not the place where we might find the
500 # original and so on. Autoconf is especially sensitive to this).
502 # Exit status is that of the last command.
506 ECHO_C= ECHO_N= ECHO_T=
507 case `echo -n x` in #(((((
509 case `echo 'xy\c'` in
510 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
512 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 rm -f conf$$ conf$$.exe conf$$.file
520 if test -d conf$$.dir; then
521 rm -f conf$$.dir/conf$$.file
524 mkdir conf$$.dir 2>/dev/null
526 if (echo >conf$$.file) 2>/dev/null; then
527 if ln -s conf$$.file conf$$ 2>/dev/null; then
529 # ... but there are two gotchas:
530 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
531 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
532 # In both cases, we have to default to `cp -pR'.
533 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
535 elif ln conf$$.file conf$$ 2>/dev/null; then
543 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
544 rmdir conf$$.dir 2>/dev/null
546 if mkdir -p . 2>/dev/null; then
547 as_mkdir_p='mkdir -p "$as_dir"'
549 test -d ./-p && rmdir ./-p
554 as_executable_p=as_fn_executable_p
556 # Sed expression to map a string onto a valid CPP name.
557 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
559 # Sed expression to map a string onto a valid variable name.
560 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563 test -n "$DJDIR" || exec 7<&0 </dev/null
567 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
568 # so uname gets run too.
569 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574 ac_default_prefix=/usr/local
576 ac_config_libobj_dir=.
583 # Identity of this package.
584 PACKAGE_NAME='asterisk'
585 PACKAGE_TARNAME='asterisk'
586 PACKAGE_VERSION='trunk'
587 PACKAGE_STRING='asterisk trunk'
588 PACKAGE_BUGREPORT='https://issues.asterisk.org'
591 ac_unique_file="main/asterisk.c"
592 # Factoring default headers for most tests.
593 ac_includes_default="\
595 #ifdef HAVE_SYS_TYPES_H
596 # include <sys/types.h>
598 #ifdef HAVE_SYS_STAT_H
599 # include <sys/stat.h>
605 # ifdef HAVE_STDLIB_H
610 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #ifdef HAVE_STRINGS_H
616 # include <strings.h>
618 #ifdef HAVE_INTTYPES_H
619 # include <inttypes.h>
629 ac_subst_vars='LTLIBOBJS
631 PBX_SYSLOG_FACILITY_LOG_UUCP
632 PBX_SYSLOG_FACILITY_LOG_SYSLOG
633 PBX_SYSLOG_FACILITY_LOG_NEWS
634 PBX_SYSLOG_FACILITY_LOG_MAIL
635 PBX_SYSLOG_FACILITY_LOG_LPR
636 PBX_SYSLOG_FACILITY_LOG_KERN
637 PBX_SYSLOG_FACILITY_LOG_FTP
638 PBX_SYSLOG_FACILITY_LOG_DAEMON
639 PBX_SYSLOG_FACILITY_LOG_CRON
640 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
641 PBX_SYSLOG_FACILITY_LOG_AUTH
693 AST_NO_STRICT_OVERFLOW
696 AST_DECLARATION_AFTER_STATEMENT
700 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
701 PBX_PTHREAD_RWLOCK_INITIALIZER
763 SRTP_SHUTDOWN_INCLUDE
783 SPEEX_PREPROCESS_INCLUDE
818 PBX_PRI_REVERSE_CHARGE
819 PRI_REVERSE_CHARGE_DIR
820 PRI_REVERSE_CHARGE_INCLUDE
821 PRI_REVERSE_CHARGE_LIB
822 PBX_PRI_SERVICE_MESSAGES
823 PRI_SERVICE_MESSAGES_DIR
824 PRI_SERVICE_MESSAGES_INCLUDE
825 PRI_SERVICE_MESSAGES_LIB
828 PRI_PROG_W_CAUSE_INCLUDE
830 PBX_PRI_INBANDDISCONNECT
831 PRI_INBANDDISCONNECT_DIR
832 PRI_INBANDDISCONNECT_INCLUDE
833 PRI_INBANDDISCONNECT_LIB
836 PRI_SETUP_KEYPAD_INCLUDE
838 PBX_PRI_CALL_REROUTING
839 PRI_CALL_REROUTING_DIR
840 PRI_CALL_REROUTING_INCLUDE
841 PRI_CALL_REROUTING_LIB
844 PRI_CALL_HOLD_INCLUDE
852 PRI_HANGUP_FIX_INCLUDE
864 PRI_AOC_EVENTS_INCLUDE
868 PRI_CALL_WAITING_INCLUDE
880 PRI_DISPLAY_TEXT_INCLUDE
886 PBX_PRI_DATETIME_SEND
887 PRI_DATETIME_SEND_DIR
888 PRI_DATETIME_SEND_INCLUDE
889 PRI_DATETIME_SEND_LIB
890 PBX_PRI_L2_PERSISTENCE
891 PRI_L2_PERSISTENCE_DIR
892 PRI_L2_PERSISTENCE_INCLUDE
893 PRI_L2_PERSISTENCE_LIB
1060 OPENSSL_SRTP_INCLUDE
1074 PBX_COROSYNC_CFG_STATE_TRACK
1075 COROSYNC_CFG_STATE_TRACK_DIR
1076 COROSYNC_CFG_STATE_TRACK_INCLUDE
1077 COROSYNC_CFG_STATE_TRACK_LIB
1228 program_transform_name
1241 enable_option_checking
1322 enable_internal_poll
1326 ac_precious_vars='build_alias
1354 # Initialize some variables set by options.
1356 ac_init_version=false
1357 ac_unrecognized_opts=
1358 ac_unrecognized_sep=
1359 # The variables have the same names as the options, with
1360 # dashes changed to underlines.
1361 cache_file=/dev/null
1368 program_transform_name=s,x,x,
1376 # Installation directory options.
1377 # These are left unexpanded so users can "make install exec_prefix=/foo"
1378 # and all the variables that are supposed to be based on exec_prefix
1379 # by default will actually change.
1380 # Use braces instead of parens because sh, perl, etc. also accept them.
1381 # (The list follows the same order as the GNU Coding Standards.)
1382 bindir='${exec_prefix}/bin'
1383 sbindir='${exec_prefix}/sbin'
1384 libexecdir='${exec_prefix}/libexec'
1385 datarootdir='${prefix}/share'
1386 datadir='${datarootdir}'
1387 sysconfdir='${prefix}/etc'
1388 sharedstatedir='${prefix}/com'
1389 localstatedir='${prefix}/var'
1390 includedir='${prefix}/include'
1391 oldincludedir='/usr/include'
1392 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1393 infodir='${datarootdir}/info'
1398 libdir='${exec_prefix}/lib'
1399 localedir='${datarootdir}/locale'
1400 mandir='${datarootdir}/man'
1406 # If the previous option needs an argument, assign it.
1407 if test -n "$ac_prev"; then
1408 eval $ac_prev=\$ac_option
1414 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1419 # Accept the important Cygnus configure options, so we can diagnose typos.
1421 case $ac_dashdash$ac_option in
1425 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1427 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1428 bindir=$ac_optarg ;;
1430 -build | --build | --buil | --bui | --bu)
1431 ac_prev=build_alias ;;
1432 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1433 build_alias=$ac_optarg ;;
1435 -cache-file | --cache-file | --cache-fil | --cache-fi \
1436 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1437 ac_prev=cache_file ;;
1438 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1439 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1440 cache_file=$ac_optarg ;;
1442 --config-cache | -C)
1443 cache_file=config.cache ;;
1445 -datadir | --datadir | --datadi | --datad)
1447 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1448 datadir=$ac_optarg ;;
1450 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1451 | --dataroo | --dataro | --datar)
1452 ac_prev=datarootdir ;;
1453 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1454 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1455 datarootdir=$ac_optarg ;;
1457 -disable-* | --disable-*)
1458 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1459 # Reject names that are not valid shell variable names.
1460 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1461 as_fn_error $? "invalid feature name: $ac_useropt"
1462 ac_useropt_orig=$ac_useropt
1463 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1464 case $ac_user_opts in
1466 "enable_$ac_useropt"
1468 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1469 ac_unrecognized_sep=', ';;
1471 eval enable_$ac_useropt=no ;;
1473 -docdir | --docdir | --docdi | --doc | --do)
1475 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1476 docdir=$ac_optarg ;;
1478 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1480 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1481 dvidir=$ac_optarg ;;
1483 -enable-* | --enable-*)
1484 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1485 # Reject names that are not valid shell variable names.
1486 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1487 as_fn_error $? "invalid feature name: $ac_useropt"
1488 ac_useropt_orig=$ac_useropt
1489 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1490 case $ac_user_opts in
1492 "enable_$ac_useropt"
1494 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1495 ac_unrecognized_sep=', ';;
1497 eval enable_$ac_useropt=\$ac_optarg ;;
1499 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1500 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1501 | --exec | --exe | --ex)
1502 ac_prev=exec_prefix ;;
1503 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1504 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1505 | --exec=* | --exe=* | --ex=*)
1506 exec_prefix=$ac_optarg ;;
1508 -gas | --gas | --ga | --g)
1509 # Obsolete; use --with-gas.
1512 -help | --help | --hel | --he | -h)
1513 ac_init_help=long ;;
1514 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1515 ac_init_help=recursive ;;
1516 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1517 ac_init_help=short ;;
1519 -host | --host | --hos | --ho)
1520 ac_prev=host_alias ;;
1521 -host=* | --host=* | --hos=* | --ho=*)
1522 host_alias=$ac_optarg ;;
1524 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1526 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1528 htmldir=$ac_optarg ;;
1530 -includedir | --includedir | --includedi | --included | --include \
1531 | --includ | --inclu | --incl | --inc)
1532 ac_prev=includedir ;;
1533 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1534 | --includ=* | --inclu=* | --incl=* | --inc=*)
1535 includedir=$ac_optarg ;;
1537 -infodir | --infodir | --infodi | --infod | --info | --inf)
1539 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1540 infodir=$ac_optarg ;;
1542 -libdir | --libdir | --libdi | --libd)
1544 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1545 libdir=$ac_optarg ;;
1547 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1548 | --libexe | --libex | --libe)
1549 ac_prev=libexecdir ;;
1550 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1551 | --libexe=* | --libex=* | --libe=*)
1552 libexecdir=$ac_optarg ;;
1554 -localedir | --localedir | --localedi | --localed | --locale)
1555 ac_prev=localedir ;;
1556 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1557 localedir=$ac_optarg ;;
1559 -localstatedir | --localstatedir | --localstatedi | --localstated \
1560 | --localstate | --localstat | --localsta | --localst | --locals)
1561 ac_prev=localstatedir ;;
1562 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1563 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1564 localstatedir=$ac_optarg ;;
1566 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1568 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1569 mandir=$ac_optarg ;;
1571 -nfp | --nfp | --nf)
1572 # Obsolete; use --without-fp.
1575 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1576 | --no-cr | --no-c | -n)
1579 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1580 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1583 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1584 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1585 | --oldin | --oldi | --old | --ol | --o)
1586 ac_prev=oldincludedir ;;
1587 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1588 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1589 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1590 oldincludedir=$ac_optarg ;;
1592 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1594 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1595 prefix=$ac_optarg ;;
1597 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1598 | --program-pre | --program-pr | --program-p)
1599 ac_prev=program_prefix ;;
1600 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1601 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1602 program_prefix=$ac_optarg ;;
1604 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1605 | --program-suf | --program-su | --program-s)
1606 ac_prev=program_suffix ;;
1607 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1608 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1609 program_suffix=$ac_optarg ;;
1611 -program-transform-name | --program-transform-name \
1612 | --program-transform-nam | --program-transform-na \
1613 | --program-transform-n | --program-transform- \
1614 | --program-transform | --program-transfor \
1615 | --program-transfo | --program-transf \
1616 | --program-trans | --program-tran \
1617 | --progr-tra | --program-tr | --program-t)
1618 ac_prev=program_transform_name ;;
1619 -program-transform-name=* | --program-transform-name=* \
1620 | --program-transform-nam=* | --program-transform-na=* \
1621 | --program-transform-n=* | --program-transform-=* \
1622 | --program-transform=* | --program-transfor=* \
1623 | --program-transfo=* | --program-transf=* \
1624 | --program-trans=* | --program-tran=* \
1625 | --progr-tra=* | --program-tr=* | --program-t=*)
1626 program_transform_name=$ac_optarg ;;
1628 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1630 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1631 pdfdir=$ac_optarg ;;
1633 -psdir | --psdir | --psdi | --psd | --ps)
1635 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1638 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1639 | -silent | --silent | --silen | --sile | --sil)
1642 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1644 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1646 sbindir=$ac_optarg ;;
1648 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1649 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1650 | --sharedst | --shareds | --shared | --share | --shar \
1652 ac_prev=sharedstatedir ;;
1653 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1654 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1655 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1657 sharedstatedir=$ac_optarg ;;
1659 -site | --site | --sit)
1661 -site=* | --site=* | --sit=*)
1664 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1666 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1667 srcdir=$ac_optarg ;;
1669 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1670 | --syscon | --sysco | --sysc | --sys | --sy)
1671 ac_prev=sysconfdir ;;
1672 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1673 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1674 sysconfdir=$ac_optarg ;;
1676 -target | --target | --targe | --targ | --tar | --ta | --t)
1677 ac_prev=target_alias ;;
1678 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1679 target_alias=$ac_optarg ;;
1681 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1684 -version | --version | --versio | --versi | --vers | -V)
1685 ac_init_version=: ;;
1688 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1689 # Reject names that are not valid shell variable names.
1690 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1691 as_fn_error $? "invalid package name: $ac_useropt"
1692 ac_useropt_orig=$ac_useropt
1693 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1694 case $ac_user_opts in
1698 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1699 ac_unrecognized_sep=', ';;
1701 eval with_$ac_useropt=\$ac_optarg ;;
1703 -without-* | --without-*)
1704 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1705 # Reject names that are not valid shell variable names.
1706 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1707 as_fn_error $? "invalid package name: $ac_useropt"
1708 ac_useropt_orig=$ac_useropt
1709 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1710 case $ac_user_opts in
1714 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1715 ac_unrecognized_sep=', ';;
1717 eval with_$ac_useropt=no ;;
1720 # Obsolete; use --with-x.
1723 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1724 | --x-incl | --x-inc | --x-in | --x-i)
1725 ac_prev=x_includes ;;
1726 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1727 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1728 x_includes=$ac_optarg ;;
1730 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1731 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1732 ac_prev=x_libraries ;;
1733 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1734 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1735 x_libraries=$ac_optarg ;;
1737 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1738 Try \`$0 --help' for more information"
1742 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1743 # Reject names that are not valid shell variable names.
1744 case $ac_envvar in #(
1745 '' | [0-9]* | *[!_$as_cr_alnum]* )
1746 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1748 eval $ac_envvar=\$ac_optarg
1749 export $ac_envvar ;;
1752 # FIXME: should be removed in autoconf 3.0.
1753 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1754 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1755 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1756 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1762 if test -n "$ac_prev"; then
1763 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1764 as_fn_error $? "missing argument to $ac_option"
1767 if test -n "$ac_unrecognized_opts"; then
1768 case $enable_option_checking in
1770 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1771 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1775 # Check all directory arguments for consistency.
1776 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1777 datadir sysconfdir sharedstatedir localstatedir includedir \
1778 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1779 libdir localedir mandir
1781 eval ac_val=\$$ac_var
1782 # Remove trailing slashes.
1785 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1786 eval $ac_var=\$ac_val;;
1788 # Be sure to have absolute directory names.
1790 [\\/$]* | ?:[\\/]* ) continue;;
1791 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1793 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1796 # There might be people who depend on the old broken behavior: `$host'
1797 # used to hold the argument of --host etc.
1798 # FIXME: To remove some day.
1801 target=$target_alias
1803 # FIXME: To remove some day.
1804 if test "x$host_alias" != x; then
1805 if test "x$build_alias" = x; then
1806 cross_compiling=maybe
1807 elif test "x$build_alias" != "x$host_alias"; then
1813 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1815 test "$silent" = yes && exec 6>/dev/null
1818 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1819 ac_ls_di=`ls -di .` &&
1820 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1821 as_fn_error $? "working directory cannot be determined"
1822 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1823 as_fn_error $? "pwd does not report name of working directory"
1826 # Find the source files, if location was not specified.
1827 if test -z "$srcdir"; then
1828 ac_srcdir_defaulted=yes
1829 # Try the directory containing this script, then the parent directory.
1830 ac_confdir=`$as_dirname -- "$as_myself" ||
1831 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1832 X"$as_myself" : 'X\(//\)[^/]' \| \
1833 X"$as_myself" : 'X\(//\)$' \| \
1834 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1835 $as_echo X"$as_myself" |
1836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1854 if test ! -r "$srcdir/$ac_unique_file"; then
1858 ac_srcdir_defaulted=no
1860 if test ! -r "$srcdir/$ac_unique_file"; then
1861 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1862 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1864 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1866 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1868 # When building in place, set srcdir=.
1869 if test "$ac_abs_confdir" = "$ac_pwd"; then
1872 # Remove unnecessary trailing slashes from srcdir.
1873 # Double slashes in file names in object file debugging info
1874 # mess up M-x gdb in Emacs.
1876 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1878 for ac_var in $ac_precious_vars; do
1879 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1880 eval ac_env_${ac_var}_value=\$${ac_var}
1881 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1882 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1886 # Report the --help message.
1888 if test "$ac_init_help" = "long"; then
1889 # Omit some internal or obsolete options to make the list less imposing.
1890 # This message is too long to be a string in the A/UX 3.1 sh.
1892 \`configure' configures asterisk trunk to adapt to many kinds of systems.
1894 Usage: $0 [OPTION]... [VAR=VALUE]...
1896 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1897 VAR=VALUE. See below for descriptions of some of the useful variables.
1899 Defaults for the options are specified in brackets.
1902 -h, --help display this help and exit
1903 --help=short display options specific to this package
1904 --help=recursive display the short help of all the included packages
1905 -V, --version display version information and exit
1906 -q, --quiet, --silent do not print \`checking ...' messages
1907 --cache-file=FILE cache test results in FILE [disabled]
1908 -C, --config-cache alias for \`--cache-file=config.cache'
1909 -n, --no-create do not create output files
1910 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1912 Installation directories:
1913 --prefix=PREFIX install architecture-independent files in PREFIX
1914 [$ac_default_prefix]
1915 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1918 By default, \`make install' will install all the files in
1919 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1920 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1921 for instance \`--prefix=\$HOME'.
1923 For better control, use the options below.
1925 Fine tuning of the installation directories:
1926 --bindir=DIR user executables [EPREFIX/bin]
1927 --sbindir=DIR system admin executables [EPREFIX/sbin]
1928 --libexecdir=DIR program executables [EPREFIX/libexec]
1929 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1930 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1931 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1932 --libdir=DIR object code libraries [EPREFIX/lib]
1933 --includedir=DIR C header files [PREFIX/include]
1934 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1935 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1936 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1937 --infodir=DIR info documentation [DATAROOTDIR/info]
1938 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1939 --mandir=DIR man documentation [DATAROOTDIR/man]
1940 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
1941 --htmldir=DIR html documentation [DOCDIR]
1942 --dvidir=DIR dvi documentation [DOCDIR]
1943 --pdfdir=DIR pdf documentation [DOCDIR]
1944 --psdir=DIR ps documentation [DOCDIR]
1950 --build=BUILD configure for building on BUILD [guessed]
1951 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1955 if test -n "$ac_init_help"; then
1956 case $ac_init_help in
1957 short | recursive ) echo "Configuration of asterisk trunk:";;
1962 --disable-option-checking ignore unrecognized --enable/--with options
1963 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1964 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1965 --enable-dev-mode Turn on developer mode
1966 --enable-coverage Turn on code coverage tracking (for gcov)
1967 --disable-xmldoc Explicitly disable XML documentation
1968 --disable-largefile omit support for large files
1969 --enable-internal-poll Use Asterisk's poll implementation
1970 --disable-asteriskssl Disable Asterisk's SSL wrapper library
1971 --disable-rpath Disables rpath linker option checking
1974 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1975 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1976 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1977 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
1978 --with-bfd=PATH use Debug symbol decoding files in PATH
1979 --with-execinfo=PATH use Stack Backtrace files in PATH
1980 --with-bluetooth=PATH use Bluetooth files in PATH
1981 --with-cap=PATH use POSIX 1.e capabilities files in PATH
1982 --with-cpg=PATH use Corosync files in PATH
1983 --with-curses=PATH use curses files in PATH
1984 --with-crypt=PATH use password and data encryption files in PATH
1985 --with-crypto=PATH use OpenSSL Cryptography files in PATH
1986 --with-dahdi=PATH use DAHDI files in PATH
1987 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
1988 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
1990 --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
1992 --with-gtk2=PATH use gtk2 files in PATH
1993 --with-gmime=PATH use GMime files in PATH
1994 --with-h323=PATH use OpenH323 files in PATH
1995 --with-hoard=PATH use Hoard Memory Allocator files in PATH
1996 --with-ical=PATH use iCal files in PATH
1997 --with-iconv=PATH use Iconv files in PATH
1998 --with-iksemel=PATH use Iksemel Jabber files in PATH
1999 --with-imap=PATH use UW IMAP Toolkit files in PATH
2000 --with-inotify=PATH use inotify support files in PATH
2001 --with-iodbc=PATH use iODBC files in PATH
2002 --with-isdnnet=PATH use ISDN4Linux files in PATH
2003 --with-jack=PATH use Jack Audio Connection Kit files in PATH
2004 --with-jansson=PATH use Jansson JSON library files in PATH
2005 --with-kqueue=PATH use kqueue support files in PATH
2006 --with-ldap=PATH use OpenLDAP files in PATH
2007 --with-libcurl=DIR look for the curl library in DIR
2008 --with-libedit=PATH use NetBSD Editline library files in PATH, use
2009 'internal' Editline otherwise
2010 --with-libxml2=PATH use LibXML2 files in PATH
2011 --with-ltdl=PATH use libtool files in PATH
2012 --with-lua=PATH use Lua files in PATH
2013 --with-misdn=PATH use mISDN user files in PATH
2014 --with-mysqlclient=PATH use MySQL client files in PATH
2015 --with-nbs=PATH use Network Broadcast Sound files in PATH
2016 --with-ncurses=PATH use ncurses files in PATH
2017 --with-neon=PATH use neon files in PATH
2018 --with-neon29=PATH use neon29 files in PATH
2019 --with-netsnmp=PATH use Net-SNMP files in PATH
2020 --with-newt=PATH use newt files in PATH
2021 --with-ogg=PATH use OGG files in PATH
2022 --with-openr2=PATH use MFR2 files in PATH
2023 --with-osptk=PATH use OSP Toolkit files in PATH
2024 --with-oss=PATH use Open Sound System files in PATH
2025 --with-postgres=PATH use PostgreSQL files in PATH
2026 --with-pjproject=PATH use PJPROJECT files in PATH
2027 --with-popt=PATH use popt files in PATH
2028 --with-portaudio=PATH use PortAudio files in PATH
2029 --with-pri=PATH use ISDN PRI files in PATH
2030 --with-pwlib=PATH use PWlib files in PATH
2031 --with-radius=PATH use Radius Client files in PATH
2032 --with-resample=PATH use LIBRESAMPLE files in PATH
2033 --with-sdl=PATH use Sdl files in PATH
2034 --with-SDL_image=PATH use Sdl Image files in PATH
2035 --with-sounds-cache=PATH
2036 use cached sound tarfiles in PATH
2037 --with-spandsp=PATH use SPANDSP files in PATH
2038 --with-ss7=PATH use ISDN SS7 files in PATH
2039 --with-speex=PATH use Speex files in PATH
2040 --with-speex=PATH use Speex preprocess routines files in PATH
2041 --with-speexdsp=PATH use SpeexDSP files in PATH
2042 --with-sqlite=PATH use SQLite files in PATH
2043 --with-sqlite3=PATH use SQLite files in PATH
2044 --with-srtp=PATH use Secure RTP files in PATH
2045 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
2046 --with-suppserv=PATH use mISDN Supplemental Services files in PATH
2047 --with-tds=PATH use FreeTDS files in PATH
2048 --with-termcap=PATH use Termcap files in PATH
2049 --with-timerfd=PATH use timerfd files in PATH
2050 --with-tinfo=PATH use Term Info files in PATH
2051 --with-tonezone=PATH use tonezone files in PATH
2052 --with-unixodbc=PATH use unixODBC files in PATH
2053 --with-vorbis=PATH use Vorbis files in PATH
2054 --with-vpb=PATH use Voicetronix API files in PATH
2055 --with-x11=PATH use X11 files in PATH
2056 --with-z=PATH use zlib compression files in PATH
2058 Some influential environment variables:
2059 CC C compiler command
2060 CFLAGS C compiler flags
2061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2062 nonstandard directory <lib dir>
2063 LIBS libraries to pass to the linker, e.g. -l<library>
2064 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2065 you have headers in a nonstandard directory <include dir>
2067 CXX C++ compiler command
2068 CXXFLAGS C++ compiler flags
2069 CXXCPP C++ preprocessor
2070 PKG_CONFIG path to pkg-config utility
2072 directories to add to pkg-config's search path
2074 path overriding pkg-config's built-in search path
2075 ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
2076 ILBC_LIBS linker flags for ILBC, overriding pkg-config
2078 C compiler flags for LIBEDIT, overriding pkg-config
2080 linker flags for LIBEDIT, overriding pkg-config
2082 C compiler flags for PJPROJECT, overriding pkg-config
2084 linker flags for PJPROJECT, overriding pkg-config
2086 C compiler flags for GMIME, overriding pkg-config
2087 GMIME_LIBS linker flags for GMIME, overriding pkg-config
2088 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2089 GTK2_LIBS linker flags for GTK2, overriding pkg-config
2091 Use these variables to override the choices made by `configure' or to help
2092 it to find libraries and programs with nonstandard names/locations.
2094 Report bugs to <https://issues.asterisk.org>.
2099 if test "$ac_init_help" = "recursive"; then
2100 # If there are subdirs, report their specific --help.
2101 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2102 test -d "$ac_dir" ||
2103 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2108 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2110 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2111 # A ".." for each directory in $ac_dir_suffix.
2112 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2113 case $ac_top_builddir_sub in
2114 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2115 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2118 ac_abs_top_builddir=$ac_pwd
2119 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2120 # for backward compatibility:
2121 ac_top_builddir=$ac_top_build_prefix
2124 .) # We are building in place.
2126 ac_top_srcdir=$ac_top_builddir_sub
2127 ac_abs_top_srcdir=$ac_pwd ;;
2128 [\\/]* | ?:[\\/]* ) # Absolute name.
2129 ac_srcdir=$srcdir$ac_dir_suffix;
2130 ac_top_srcdir=$srcdir
2131 ac_abs_top_srcdir=$srcdir ;;
2133 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2134 ac_top_srcdir=$ac_top_build_prefix$srcdir
2135 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2137 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2139 cd "$ac_dir" || { ac_status=$?; continue; }
2140 # Check for guested configure.
2141 if test -f "$ac_srcdir/configure.gnu"; then
2143 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2144 elif test -f "$ac_srcdir/configure"; then
2146 $SHELL "$ac_srcdir/configure" --help=recursive
2148 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2150 cd "$ac_pwd" || { ac_status=$?; break; }
2154 test -n "$ac_init_help" && exit $ac_status
2155 if $ac_init_version; then
2157 asterisk configure trunk
2158 generated by GNU Autoconf 2.69
2160 Copyright (C) 2012 Free Software Foundation, Inc.
2161 This configure script is free software; the Free Software Foundation
2162 gives unlimited permission to copy, distribute and modify it.
2169 ## ------------------------ ##
2170 ## Autoconf initialization. ##
2171 ## ------------------------ ##
2173 # ac_fn_c_try_compile LINENO
2174 # --------------------------
2175 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2176 ac_fn_c_try_compile ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 rm -f conftest.$ac_objext
2180 if { { ac_try="$ac_compile"
2182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2183 *) ac_try_echo=$ac_try;;
2185 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2186 $as_echo "$ac_try_echo"; } >&5
2187 (eval "$ac_compile") 2>conftest.err
2189 if test -s conftest.err; then
2190 grep -v '^ *+' conftest.err >conftest.er1
2191 cat conftest.er1 >&5
2192 mv -f conftest.er1 conftest.err
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && {
2196 test -z "$ac_c_werror_flag" ||
2197 test ! -s conftest.err
2198 } && test -s conftest.$ac_objext; then :
2201 $as_echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2206 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2207 as_fn_set_status $ac_retval
2209 } # ac_fn_c_try_compile
2211 # ac_fn_c_try_cpp LINENO
2212 # ----------------------
2213 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 if { { ac_try="$ac_cpp conftest.$ac_ext"
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2223 $as_echo "$ac_try_echo"; } >&5
2224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2226 if test -s conftest.err; then
2227 grep -v '^ *+' conftest.err >conftest.er1
2228 cat conftest.er1 >&5
2229 mv -f conftest.er1 conftest.err
2231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2232 test $ac_status = 0; } > conftest.i && {
2233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2234 test ! -s conftest.err
2238 $as_echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2243 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2244 as_fn_set_status $ac_retval
2248 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2249 # -------------------------------------------------------
2250 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2251 # the include files in INCLUDES and setting the cache variable VAR
2253 ac_fn_c_check_header_mongrel ()
2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2256 if eval \${$3+:} false; then :
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2258 $as_echo_n "checking for $2... " >&6; }
2259 if eval \${$3+:} false; then :
2260 $as_echo_n "(cached) " >&6
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2264 $as_echo "$ac_res" >&6; }
2266 # Is the header compilable?
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2268 $as_echo_n "checking $2 usability... " >&6; }
2269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2270 /* end confdefs.h. */
2274 if ac_fn_c_try_compile "$LINENO"; then :
2275 ac_header_compiler=yes
2277 ac_header_compiler=no
2279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2281 $as_echo "$ac_header_compiler" >&6; }
2283 # Is the header present?
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2285 $as_echo_n "checking $2 presence... " >&6; }
2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2287 /* end confdefs.h. */
2290 if ac_fn_c_try_cpp "$LINENO"; then :
2291 ac_header_preproc=yes
2293 ac_header_preproc=no
2295 rm -f conftest.err conftest.i conftest.$ac_ext
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2297 $as_echo "$ac_header_preproc" >&6; }
2299 # So? What about this header?
2300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2303 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2305 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2309 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2311 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2313 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2315 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2317 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2318 ( $as_echo "## ------------------------------------------ ##
2319 ## Report this to https://issues.asterisk.org ##
2320 ## ------------------------------------------ ##"
2321 ) | sed "s/^/$as_me: WARNING: /" >&2
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2325 $as_echo_n "checking for $2... " >&6; }
2326 if eval \${$3+:} false; then :
2327 $as_echo_n "(cached) " >&6
2329 eval "$3=\$ac_header_compiler"
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2333 $as_echo "$ac_res" >&6; }
2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 } # ac_fn_c_check_header_mongrel
2339 # ac_fn_c_try_run LINENO
2340 # ----------------------
2341 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2342 # that executables *can* be run.
2345 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2346 if { { ac_try="$ac_link"
2348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2349 *) ac_try_echo=$ac_try;;
2351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2352 $as_echo "$ac_try_echo"; } >&5
2353 (eval "$ac_link") 2>&5
2355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2356 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2357 { { case "(($ac_try" in
2358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2359 *) ac_try_echo=$ac_try;;
2361 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2362 $as_echo "$ac_try_echo"; } >&5
2363 (eval "$ac_try") 2>&5
2365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2366 test $ac_status = 0; }; }; then :
2369 $as_echo "$as_me: program exited with status $ac_status" >&5
2370 $as_echo "$as_me: failed program was:" >&5
2371 sed 's/^/| /' conftest.$ac_ext >&5
2373 ac_retval=$ac_status
2375 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2376 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2377 as_fn_set_status $ac_retval
2381 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2382 # -------------------------------------------------------
2383 # Tests whether HEADER exists and can be compiled using the include files in
2384 # INCLUDES, setting the cache variable VAR accordingly.
2385 ac_fn_c_check_header_compile ()
2387 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2389 $as_echo_n "checking for $2... " >&6; }
2390 if eval \${$3+:} false; then :
2391 $as_echo_n "(cached) " >&6
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2398 if ac_fn_c_try_compile "$LINENO"; then :
2403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2407 $as_echo "$ac_res" >&6; }
2408 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 } # ac_fn_c_check_header_compile
2412 # ac_fn_cxx_try_compile LINENO
2413 # ----------------------------
2414 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2415 ac_fn_cxx_try_compile ()
2417 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2418 rm -f conftest.$ac_objext
2419 if { { ac_try="$ac_compile"
2421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2422 *) ac_try_echo=$ac_try;;
2424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2425 $as_echo "$ac_try_echo"; } >&5
2426 (eval "$ac_compile") 2>conftest.err
2428 if test -s conftest.err; then
2429 grep -v '^ *+' conftest.err >conftest.er1
2430 cat conftest.er1 >&5
2431 mv -f conftest.er1 conftest.err
2433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2434 test $ac_status = 0; } && {
2435 test -z "$ac_cxx_werror_flag" ||
2436 test ! -s conftest.err
2437 } && test -s conftest.$ac_objext; then :
2440 $as_echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2445 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446 as_fn_set_status $ac_retval
2448 } # ac_fn_cxx_try_compile
2450 # ac_fn_cxx_try_cpp LINENO
2451 # ------------------------
2452 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2453 ac_fn_cxx_try_cpp ()
2455 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2456 if { { ac_try="$ac_cpp conftest.$ac_ext"
2458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2459 *) ac_try_echo=$ac_try;;
2461 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2462 $as_echo "$ac_try_echo"; } >&5
2463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2465 if test -s conftest.err; then
2466 grep -v '^ *+' conftest.err >conftest.er1
2467 cat conftest.er1 >&5
2468 mv -f conftest.er1 conftest.err
2470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2471 test $ac_status = 0; } > conftest.i && {
2472 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2473 test ! -s conftest.err
2477 $as_echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2482 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2483 as_fn_set_status $ac_retval
2485 } # ac_fn_cxx_try_cpp
2487 # ac_fn_c_try_link LINENO
2488 # -----------------------
2489 # Try to link conftest.$ac_ext, and return whether this succeeded.
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 rm -f conftest.$ac_objext conftest$ac_exeext
2494 if { { ac_try="$ac_link"
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2500 $as_echo "$ac_try_echo"; } >&5
2501 (eval "$ac_link") 2>conftest.err
2503 if test -s conftest.err; then
2504 grep -v '^ *+' conftest.err >conftest.er1
2505 cat conftest.er1 >&5
2506 mv -f conftest.er1 conftest.err
2508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2509 test $ac_status = 0; } && {
2510 test -z "$ac_c_werror_flag" ||
2511 test ! -s conftest.err
2512 } && test -s conftest$ac_exeext && {
2513 test "$cross_compiling" = yes ||
2514 test -x conftest$ac_exeext
2518 $as_echo "$as_me: failed program was:" >&5
2519 sed 's/^/| /' conftest.$ac_ext >&5
2523 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2524 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2525 # interfere with the next link command; also delete a directory that is
2526 # left behind by Apple's compiler. We do this before executing the actions.
2527 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2528 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2529 as_fn_set_status $ac_retval
2531 } # ac_fn_c_try_link
2533 # ac_fn_c_check_func LINENO FUNC VAR
2534 # ----------------------------------
2535 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2536 ac_fn_c_check_func ()
2538 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2540 $as_echo_n "checking for $2... " >&6; }
2541 if eval \${$3+:} false; then :
2542 $as_echo_n "(cached) " >&6
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2546 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2548 #define $2 innocuous_$2
2550 /* System header to define __stub macros and hopefully few prototypes,
2551 which can conflict with char $2 (); below.
2552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2553 <limits.h> exists even on freestanding compilers. */
2556 # include <limits.h>
2558 # include <assert.h>
2563 /* Override any GCC internal prototype to avoid an error.
2564 Use char because int might match the return type of a GCC
2565 builtin and then its argument prototype would still apply. */
2570 /* The GNU C library defines this for functions which it implements
2571 to always fail with ENOSYS. Some functions are actually named
2572 something starting with __ and the normal name is an alias. */
2573 #if defined __stub_$2 || defined __stub___$2
2585 if ac_fn_c_try_link "$LINENO"; then :
2590 rm -f core conftest.err conftest.$ac_objext \
2591 conftest$ac_exeext conftest.$ac_ext
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2595 $as_echo "$ac_res" >&6; }
2596 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2598 } # ac_fn_c_check_func
2600 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2601 # -------------------------------------------
2602 # Tests whether TYPE exists after having included INCLUDES, setting cache
2603 # variable VAR accordingly.
2604 ac_fn_c_check_type ()
2606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2608 $as_echo_n "checking for $2... " >&6; }
2609 if eval \${$3+:} false; then :
2610 $as_echo_n "(cached) " >&6
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2625 if ac_fn_c_try_compile "$LINENO"; then :
2626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2627 /* end confdefs.h. */
2638 if ac_fn_c_try_compile "$LINENO"; then :
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2649 $as_echo "$ac_res" >&6; }
2650 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2652 } # ac_fn_c_check_type
2654 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2655 # ----------------------------------------------------
2656 # Tries to find if the field MEMBER exists in type AGGR, after including
2657 # INCLUDES, setting cache variable VAR accordingly.
2658 ac_fn_c_check_member ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2662 $as_echo_n "checking for $2.$3... " >&6; }
2663 if eval \${$4+:} false; then :
2664 $as_echo_n "(cached) " >&6
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2679 if ac_fn_c_try_compile "$LINENO"; then :
2682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2683 /* end confdefs.h. */
2689 if (sizeof ac_aggr.$3)
2695 if ac_fn_c_try_compile "$LINENO"; then :
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2706 $as_echo "$ac_res" >&6; }
2707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2709 } # ac_fn_c_check_member
2711 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2712 # --------------------------------------------
2713 # Tries to find the compile-time value of EXPR in a program that includes
2714 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2716 ac_fn_c_compute_int ()
2718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2719 if test "$cross_compiling" = yes; then
2720 # Depending upon the size, compute the lo and hi bounds.
2721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2722 /* end confdefs.h. */
2727 static int test_array [1 - 2 * !(($2) >= 0)];
2729 return test_array [0];
2735 if ac_fn_c_try_compile "$LINENO"; then :
2738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2739 /* end confdefs.h. */
2744 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2746 return test_array [0];
2752 if ac_fn_c_try_compile "$LINENO"; then :
2753 ac_hi=$ac_mid; break
2755 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2756 if test $ac_lo -le $ac_mid; then
2760 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2766 /* end confdefs.h. */
2771 static int test_array [1 - 2 * !(($2) < 0)];
2773 return test_array [0];
2779 if ac_fn_c_try_compile "$LINENO"; then :
2782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2783 /* end confdefs.h. */
2788 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2790 return test_array [0];
2796 if ac_fn_c_try_compile "$LINENO"; then :
2797 ac_lo=$ac_mid; break
2799 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2800 if test $ac_mid -le $ac_hi; then
2804 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 # Binary search between lo and hi bounds.
2815 while test "x$ac_lo" != "x$ac_hi"; do
2816 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2823 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2825 return test_array [0];
2831 if ac_fn_c_try_compile "$LINENO"; then :
2834 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h. */
2846 static long int longval () { return $2; }
2847 static unsigned long int ulongval () { return $2; }
2854 FILE *f = fopen ("conftest.val", "w");
2859 long int i = longval ();
2862 fprintf (f, "%ld", i);
2866 unsigned long int i = ulongval ();
2869 fprintf (f, "%lu", i);
2871 /* Do not output a trailing newline, as this causes \r\n confusion
2872 on some platforms. */
2873 return ferror (f) || fclose (f) != 0;
2879 if ac_fn_c_try_run "$LINENO"; then :
2880 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2885 conftest.$ac_objext conftest.beam conftest.$ac_ext
2889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2890 as_fn_set_status $ac_retval
2892 } # ac_fn_c_compute_int
2894 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2895 # ---------------------------------------------------------
2896 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2897 # the include files in INCLUDES and setting the cache variable VAR
2899 ac_fn_cxx_check_header_mongrel ()
2901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2902 if eval \${$3+:} false; then :
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2904 $as_echo_n "checking for $2... " >&6; }
2905 if eval \${$3+:} false; then :
2906 $as_echo_n "(cached) " >&6
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2910 $as_echo "$ac_res" >&6; }
2912 # Is the header compilable?
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2914 $as_echo_n "checking $2 usability... " >&6; }
2915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2916 /* end confdefs.h. */
2920 if ac_fn_cxx_try_compile "$LINENO"; then :
2921 ac_header_compiler=yes
2923 ac_header_compiler=no
2925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2927 $as_echo "$ac_header_compiler" >&6; }
2929 # Is the header present?
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2931 $as_echo_n "checking $2 presence... " >&6; }
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2936 if ac_fn_cxx_try_cpp "$LINENO"; then :
2937 ac_header_preproc=yes
2939 ac_header_preproc=no
2941 rm -f conftest.err conftest.i conftest.$ac_ext
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2943 $as_echo "$ac_header_preproc" >&6; }
2945 # So? What about this header?
2946 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2949 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2955 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2957 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2959 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2961 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2963 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2964 ( $as_echo "## ------------------------------------------ ##
2965 ## Report this to https://issues.asterisk.org ##
2966 ## ------------------------------------------ ##"
2967 ) | sed "s/^/$as_me: WARNING: /" >&2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2971 $as_echo_n "checking for $2... " >&6; }
2972 if eval \${$3+:} false; then :
2973 $as_echo_n "(cached) " >&6
2975 eval "$3=\$ac_header_compiler"
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2979 $as_echo "$ac_res" >&6; }
2981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2983 } # ac_fn_cxx_check_header_mongrel
2985 # ac_fn_cxx_try_link LINENO
2986 # -------------------------
2987 # Try to link conftest.$ac_ext, and return whether this succeeded.
2988 ac_fn_cxx_try_link ()
2990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2991 rm -f conftest.$ac_objext conftest$ac_exeext
2992 if { { ac_try="$ac_link"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998 $as_echo "$ac_try_echo"; } >&5
2999 (eval "$ac_link") 2>conftest.err
3001 if test -s conftest.err; then
3002 grep -v '^ *+' conftest.err >conftest.er1
3003 cat conftest.er1 >&5
3004 mv -f conftest.er1 conftest.err
3006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3007 test $ac_status = 0; } && {
3008 test -z "$ac_cxx_werror_flag" ||
3009 test ! -s conftest.err
3010 } && test -s conftest$ac_exeext && {
3011 test "$cross_compiling" = yes ||
3012 test -x conftest$ac_exeext
3016 $as_echo "$as_me: failed program was:" >&5
3017 sed 's/^/| /' conftest.$ac_ext >&5
3021 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
3022 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
3023 # interfere with the next link command; also delete a directory that is
3024 # left behind by Apple's compiler. We do this before executing the actions.
3025 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
3026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3027 as_fn_set_status $ac_retval
3029 } # ac_fn_cxx_try_link
3031 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
3032 # ---------------------------------------------------------
3033 # Tests whether HEADER exists and can be compiled using the include files in
3034 # INCLUDES, setting the cache variable VAR accordingly.
3035 ac_fn_cxx_check_header_compile ()
3037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3039 $as_echo_n "checking for $2... " >&6; }
3040 if eval \${$3+:} false; then :
3041 $as_echo_n "(cached) " >&6
3043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044 /* end confdefs.h. */
3048 if ac_fn_cxx_try_compile "$LINENO"; then :
3053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3057 $as_echo "$ac_res" >&6; }
3058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3060 } # ac_fn_cxx_check_header_compile
3061 cat >config.log <<_ACEOF
3062 This file contains any messages produced by compilers while
3063 running configure, to aid debugging if configure makes a mistake.
3065 It was created by asterisk $as_me trunk, which was
3066 generated by GNU Autoconf 2.69. Invocation command line was
3078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3085 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3087 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3088 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3090 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3091 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3092 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3093 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 $as_echo "PATH: $as_dir"
3118 # Keep a trace of the command line.
3119 # Strip out --no-create and --no-recursion so they do not pile up.
3120 # Strip out --silent because we don't want to record it for future runs.
3121 # Also quote any args containing shell meta-characters.
3122 # Make two passes to allow for proper duplicate-argument suppression.
3126 ac_must_keep_next=false
3132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3134 | -silent | --silent | --silen | --sile | --sil)
3137 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3140 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3142 as_fn_append ac_configure_args1 " '$ac_arg'"
3143 if test $ac_must_keep_next = true; then
3144 ac_must_keep_next=false # Got value, back to normal.
3147 *=* | --config-cache | -C | -disable-* | --disable-* \
3148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3150 | -with-* | --with-* | -without-* | --without-* | --x)
3151 case "$ac_configure_args0 " in
3152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3155 -* ) ac_must_keep_next=true ;;
3158 as_fn_append ac_configure_args " '$ac_arg'"
3163 { ac_configure_args0=; unset ac_configure_args0;}
3164 { ac_configure_args1=; unset ac_configure_args1;}
3166 # When interrupted or exit'd, cleanup temporary files, and complete
3167 # config.log. We remove comments because anyway the quotes in there
3168 # would cause problems or look ugly.
3169 # WARNING: Use '\'' to represent an apostrophe within the trap.
3170 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3171 trap 'exit_status=$?
3172 # Save into config.log some information that might help in debugging.
3176 $as_echo "## ---------------- ##
3177 ## Cache variables. ##
3178 ## ---------------- ##"
3180 # The following way of writing the cache mishandles newlines in values,
3182 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3183 eval ac_val=\$$ac_var
3187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3188 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3191 _ | IFS | as_nl) ;; #(
3192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3193 *) { eval $ac_var=; unset $ac_var;} ;;
3198 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3199 *${as_nl}ac_space=\ *)
3201 "s/'\''/'\''\\\\'\'''\''/g;
3202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3212 $as_echo "## ----------------- ##
3213 ## Output variables. ##
3214 ## ----------------- ##"
3216 for ac_var in $ac_subst_vars
3218 eval ac_val=\$$ac_var
3220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3222 $as_echo "$ac_var='\''$ac_val'\''"
3226 if test -n "$ac_subst_files"; then
3227 $as_echo "## ------------------- ##
3228 ## File substitutions. ##
3229 ## ------------------- ##"
3231 for ac_var in $ac_subst_files
3233 eval ac_val=\$$ac_var
3235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3237 $as_echo "$ac_var='\''$ac_val'\''"
3242 if test -s confdefs.h; then
3243 $as_echo "## ----------- ##
3250 test "$ac_signal" != 0 &&
3251 $as_echo "$as_me: caught signal $ac_signal"
3252 $as_echo "$as_me: exit $exit_status"
3254 rm -f core *.core core.conftest.* &&
3255 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3258 for ac_signal in 1 2 13 15; do
3259 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3263 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3264 rm -f -r conftest* confdefs.h
3266 $as_echo "/* confdefs.h */" > confdefs.h
3268 # Predefined preprocessor variables.
3270 cat >>confdefs.h <<_ACEOF
3271 #define PACKAGE_NAME "$PACKAGE_NAME"
3274 cat >>confdefs.h <<_ACEOF
3275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3278 cat >>confdefs.h <<_ACEOF
3279 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3282 cat >>confdefs.h <<_ACEOF
3283 #define PACKAGE_STRING "$PACKAGE_STRING"
3286 cat >>confdefs.h <<_ACEOF
3287 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3290 cat >>confdefs.h <<_ACEOF
3291 #define PACKAGE_URL "$PACKAGE_URL"
3295 # Let the site file select an alternate cache file if it wants to.
3296 # Prefer an explicitly selected file to automatically selected ones.
3299 if test -n "$CONFIG_SITE"; then
3300 # We do not want a PATH search for config.site.
3301 case $CONFIG_SITE in #((
3302 -*) ac_site_file1=./$CONFIG_SITE;;
3303 */*) ac_site_file1=$CONFIG_SITE;;
3304 *) ac_site_file1=./$CONFIG_SITE;;
3306 elif test "x$prefix" != xNONE; then
3307 ac_site_file1=$prefix/share/config.site
3308 ac_site_file2=$prefix/etc/config.site
3310 ac_site_file1=$ac_default_prefix/share/config.site
3311 ac_site_file2=$ac_default_prefix/etc/config.site
3313 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3315 test "x$ac_site_file" = xNONE && continue
3316 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3318 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3319 sed 's/^/| /' "$ac_site_file" >&5
3321 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323 as_fn_error $? "failed to load site script $ac_site_file
3324 See \`config.log' for more details" "$LINENO" 5; }
3328 if test -r "$cache_file"; then
3329 # Some versions of bash will fail to source /dev/null (special files
3330 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3331 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3333 $as_echo "$as_me: loading cache $cache_file" >&6;}
3335 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3336 *) . "./$cache_file";;
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3341 $as_echo "$as_me: creating cache $cache_file" >&6;}
3345 as_fn_append ac_header_list " stdlib.h"
3346 as_fn_append ac_header_list " unistd.h"
3347 as_fn_append ac_header_list " sys/param.h"
3348 as_fn_append ac_header_list " utime.h"
3349 # Check that the precious variables saved in the cache have kept the same
3351 ac_cache_corrupted=false
3352 for ac_var in $ac_precious_vars; do
3353 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3354 eval ac_new_set=\$ac_env_${ac_var}_set
3355 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3356 eval ac_new_val=\$ac_env_${ac_var}_value
3357 case $ac_old_set,$ac_new_set in
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3360 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3361 ac_cache_corrupted=: ;;
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3364 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3365 ac_cache_corrupted=: ;;
3368 if test "x$ac_old_val" != "x$ac_new_val"; then
3369 # differences in whitespace do not lead to failure.
3370 ac_old_val_w=`echo x $ac_old_val`
3371 ac_new_val_w=`echo x $ac_new_val`
3372 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3374 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3375 ac_cache_corrupted=:
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3378 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3379 eval $ac_var=\$ac_old_val
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3382 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3384 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3387 # Pass precious variables to config.status.
3388 if test "$ac_new_set" = set; then
3390 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3391 *) ac_arg=$ac_var=$ac_new_val ;;
3393 case " $ac_configure_args " in
3394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3395 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3399 if $ac_cache_corrupted; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3403 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3404 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3406 ## -------------------- ##
3407 ## Main body of script. ##
3408 ## -------------------- ##
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3418 # cross-compile macros
3420 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3421 if test -f "$ac_dir/install-sh"; then
3423 ac_install_sh="$ac_aux_dir/install-sh -c"
3425 elif test -f "$ac_dir/install.sh"; then
3427 ac_install_sh="$ac_aux_dir/install.sh -c"
3429 elif test -f "$ac_dir/shtool"; then
3431 ac_install_sh="$ac_aux_dir/shtool install -c"
3435 if test -z "$ac_aux_dir"; then
3436 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3439 # These three variables are undocumented and unsupported,
3440 # and are intended to be withdrawn in a future Autoconf release.
3441 # They can cause serious problems if a builder's source tree is in a directory
3442 # whose full name contains unusual characters.
3443 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3444 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3445 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3448 # Make sure we can run config.sub.
3449 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3450 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3453 $as_echo_n "checking build system type... " >&6; }
3454 if ${ac_cv_build+:} false; then :
3455 $as_echo_n "(cached) " >&6
3457 ac_build_alias=$build_alias
3458 test "x$ac_build_alias" = x &&
3459 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3460 test "x$ac_build_alias" = x &&
3461 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3462 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3463 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3467 $as_echo "$ac_cv_build" >&6; }
3468 case $ac_cv_build in
3470 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3473 ac_save_IFS=$IFS; IFS='-'
3479 # Remember, the first character of IFS is used to create $*,
3480 # except with old shells:
3483 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3487 $as_echo_n "checking host system type... " >&6; }
3488 if ${ac_cv_host+:} false; then :
3489 $as_echo_n "(cached) " >&6
3491 if test "x$host_alias" = x; then
3492 ac_cv_host=$ac_cv_build
3494 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3495 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3500 $as_echo "$ac_cv_host" >&6; }
3503 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3506 ac_save_IFS=$IFS; IFS='-'
3512 # Remember, the first character of IFS is used to create $*,
3513 # except with old shells:
3516 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3520 # check existence of the package
3524 for ac_dir in `pwd` "$srcdir"/`pwd`; do
3525 if test -f "$ac_dir/install-sh"; then
3527 ac_install_sh="$ac_aux_dir/install-sh -c"
3529 elif test -f "$ac_dir/install.sh"; then
3531 ac_install_sh="$ac_aux_dir/install.sh -c"
3533 elif test -f "$ac_dir/shtool"; then
3535 ac_install_sh="$ac_aux_dir/shtool install -c"
3539 if test -z "$ac_aux_dir"; then
3540 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \`pwd\` \"$srcdir\"/\`pwd\`" "$LINENO" 5
3543 # These three variables are undocumented and unsupported,
3544 # and are intended to be withdrawn in a future Autoconf release.
3545 # They can cause serious problems if a builder's source tree is in a directory
3546 # whose full name contains unusual characters.
3547 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3548 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3549 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3556 # preserve any CFLAGS or LDFLAGS that may be set
3557 # NOTE: This must be done before calling any macros that end up
3558 # calling AC_PROG_CC or the like, since they will set a default
3559 # set of CFLAGS ("-g -O2") if the user did not supply any, and
3560 # we don't want those default flags to be carried over into the
3561 # rest of the build system since we have other means of controlling
3562 # debugging symbol generation and optimization.
3563 CONFIG_CFLAGS="${CFLAGS}"
3564 CONFIG_LDFLAGS="${LDFLAGS}"
3568 # specify output header file
3569 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
3572 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
3573 # other macro that uses the C compiler, or the default order will be used.
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 if test -n "$ac_tool_prefix"; then
3580 for ac_prog in gcc cc
3582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_CC+:} false; then :
3587 $as_echo_n "(cached) " >&6
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test -n "$CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3619 test -n "$CC" && break
3622 if test -z "$CC"; then
3624 for ac_prog in gcc cc
3626 # Extract the first word of "$ac_prog", so it can be a program name with args.
3627 set dummy $ac_prog; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$ac_ct_CC"; then
3634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_prog_ac_ct_CC="$ac_prog"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3654 if test -n "$ac_ct_CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3656 $as_echo "$ac_ct_CC" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3663 test -n "$ac_ct_CC" && break
3666 if test "x$ac_ct_CC" = x; then
3669 case $cross_compiling:$ac_tool_warned in
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673 ac_tool_warned=yes ;;
3680 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3682 as_fn_error $? "no acceptable C compiler found in \$PATH
3683 See \`config.log' for more details" "$LINENO" 5; }
3685 # Provide some information about the compiler.
3686 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3689 for ac_option in --version -v -V -qversion; do
3690 { { ac_try="$ac_compiler $ac_option >&5"
3692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3693 *) ac_try_echo=$ac_try;;
3695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3696 $as_echo "$ac_try_echo"; } >&5
3697 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3699 if test -s conftest.err; then
3701 ... rest of stderr output deleted ...
3702 10q' conftest.err >conftest.er1
3703 cat conftest.er1 >&5
3705 rm -f conftest.er1 conftest.err
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }
3710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3711 /* end confdefs.h. */
3721 ac_clean_files_save=$ac_clean_files
3722 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3723 # Try to create an executable without -o first, disregard a.out.
3724 # It will help us diagnose broken compilers, and finding out an intuition
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3727 $as_echo_n "checking whether the C compiler works... " >&6; }
3728 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3730 # The possible output files:
3731 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3734 for ac_file in $ac_files
3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3738 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3743 if { { ac_try="$ac_link_default"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3749 $as_echo "$ac_try_echo"; } >&5
3750 (eval "$ac_link_default") 2>&5
3752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3753 test $ac_status = 0; }; then :
3754 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3755 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3756 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3757 # so that the user can short-circuit this test for compilers unknown to
3759 for ac_file in $ac_files ''
3761 test -f "$ac_file" || continue
3763 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3766 # We found the default executable, but exeext='' is most
3770 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3772 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3774 # We set ac_cv_exeext here because the later test for it is not
3775 # safe: cross compilers may not add the suffix if given an `-o'
3776 # argument, so we may need to know it at that point already.
3777 # Even if this section looks crufty: it has the advantage of
3784 test "$ac_cv_exeext" = no && ac_cv_exeext=
3789 if test -z "$ac_file"; then :
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3792 $as_echo "$as_me: failed program was:" >&5
3793 sed 's/^/| /' conftest.$ac_ext >&5
3795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3797 as_fn_error 77 "C compiler cannot create executables
3798 See \`config.log' for more details" "$LINENO" 5; }
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3801 $as_echo "yes" >&6; }
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3804 $as_echo_n "checking for C compiler default output file name... " >&6; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3806 $as_echo "$ac_file" >&6; }
3807 ac_exeext=$ac_cv_exeext
3809 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3810 ac_clean_files=$ac_clean_files_save
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3812 $as_echo_n "checking for suffix of executables... " >&6; }
3813 if { { ac_try="$ac_link"
3815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3816 *) ac_try_echo=$ac_try;;
3818 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3819 $as_echo "$ac_try_echo"; } >&5
3820 (eval "$ac_link") 2>&5
3822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3823 test $ac_status = 0; }; then :
3824 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3825 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3826 # work properly (i.e., refer to `conftest.exe'), while it won't with
3828 for ac_file in conftest.exe conftest conftest.*; do
3829 test -f "$ac_file" || continue
3831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3832 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3840 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3841 See \`config.log' for more details" "$LINENO" 5; }
3843 rm -f conftest conftest$ac_cv_exeext
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3845 $as_echo "$ac_cv_exeext" >&6; }
3847 rm -f conftest.$ac_ext
3848 EXEEXT=$ac_cv_exeext
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3856 FILE *f = fopen ("conftest.out", "w");
3857 return ferror (f) || fclose (f) != 0;
3863 ac_clean_files="$ac_clean_files conftest.out"
3864 # Check that the compiler produces executables we can run. If not, either
3865 # the compiler is broken, or we cross compile.
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3867 $as_echo_n "checking whether we are cross compiling... " >&6; }
3868 if test "$cross_compiling" != yes; then
3869 { { ac_try="$ac_link"
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875 $as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_link") 2>&5
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }
3880 if { ac_try='./conftest$ac_cv_exeext'
3881 { { case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_try") 2>&5
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }; }; then
3893 if test "$cross_compiling" = maybe; then
3896 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 as_fn_error $? "cannot run C compiled programs.
3899 If you meant to cross compile, use \`--host'.
3900 See \`config.log' for more details" "$LINENO" 5; }
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3905 $as_echo "$cross_compiling" >&6; }
3907 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3908 ac_clean_files=$ac_clean_files_save
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3910 $as_echo_n "checking for suffix of object files... " >&6; }
3911 if ${ac_cv_objext+:} false; then :
3912 $as_echo_n "(cached) " >&6
3914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3915 /* end confdefs.h. */
3925 rm -f conftest.o conftest.obj
3926 if { { ac_try="$ac_compile"
3928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929 *) ac_try_echo=$ac_try;;
3931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932 $as_echo "$ac_try_echo"; } >&5
3933 (eval "$ac_compile") 2>&5
3935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936 test $ac_status = 0; }; then :
3937 for ac_file in conftest.o conftest.obj conftest.*; do
3938 test -f "$ac_file" || continue;
3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3941 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3946 $as_echo "$as_me: failed program was:" >&5
3947 sed 's/^/| /' conftest.$ac_ext >&5
3949 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3951 as_fn_error $? "cannot compute suffix of object files: cannot compile
3952 See \`config.log' for more details" "$LINENO" 5; }
3954 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3957 $as_echo "$ac_cv_objext" >&6; }
3958 OBJEXT=$ac_cv_objext
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3961 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3962 if ${ac_cv_c_compiler_gnu+:} false; then :
3963 $as_echo_n "(cached) " >&6
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3979 if ac_fn_c_try_compile "$LINENO"; then :
3984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3989 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3990 if test $ac_compiler_gnu = yes; then
3995 ac_test_CFLAGS=${CFLAGS+set}
3996 ac_save_CFLAGS=$CFLAGS
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3998 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3999 if ${ac_cv_prog_cc_g+:} false; then :
4000 $as_echo_n "(cached) " >&6
4002 ac_save_c_werror_flag=$ac_c_werror_flag
4003 ac_c_werror_flag=yes
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4017 if ac_fn_c_try_compile "$LINENO"; then :
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h. */
4032 if ac_fn_c_try_compile "$LINENO"; then :
4035 ac_c_werror_flag=$ac_save_c_werror_flag
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4048 if ac_fn_c_try_compile "$LINENO"; then :
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_c_werror_flag=$ac_save_c_werror_flag
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4059 $as_echo "$ac_cv_prog_cc_g" >&6; }
4060 if test "$ac_test_CFLAGS" = set; then
4061 CFLAGS=$ac_save_CFLAGS
4062 elif test $ac_cv_prog_cc_g = yes; then
4063 if test "$GCC" = yes; then
4069 if test "$GCC" = yes; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4076 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4077 if ${ac_cv_prog_cc_c89+:} false; then :
4078 $as_echo_n "(cached) " >&6
4080 ac_cv_prog_cc_c89=no
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4087 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4088 struct buf { int x; };
4089 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4090 static char *e (p, i)
4096 static char *f (char * (*g) (char **, int), char **p, ...)
4101 s = g (p, va_arg (v,int));
4106 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4107 function prototypes and stuff, but not '\xHH' hex character constants.
4108 These don't provoke an error unfortunately, instead are silently treated
4109 as 'x'. The following induces an error, until -std is added to get
4110 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4111 array size at least. It's necessary to write '\x00'==0 to get something
4112 that's true only with -std. */
4113 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4115 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4116 inside strings and character constants. */
4118 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4120 int test (int i, double x);
4121 struct s1 {int (*f) (int a);};
4122 struct s2 {int (*f) (double a);};
4123 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4129 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4134 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4135 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4137 CC="$ac_save_CC $ac_arg"
4138 if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_prog_cc_c89=$ac_arg
4141 rm -f core conftest.err conftest.$ac_objext
4142 test "x$ac_cv_prog_cc_c89" != "xno" && break
4144 rm -f conftest.$ac_ext
4149 case "x$ac_cv_prog_cc_c89" in
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4152 $as_echo "none needed" >&6; } ;;
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4155 $as_echo "unsupported" >&6; } ;;
4157 CC="$CC $ac_cv_prog_cc_c89"
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4159 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4161 if test "x$ac_cv_prog_cc_c89" != xno; then :
4166 ac_cpp='$CPP $CPPFLAGS'
4167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174 ac_cpp='$CPP $CPPFLAGS'
4175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4179 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4180 # On Suns, sometimes $CPP names a directory.
4181 if test -n "$CPP" && test -d "$CPP"; then
4184 if test -z "$CPP"; then
4185 if ${ac_cv_prog_CPP+:} false; then :
4186 $as_echo_n "(cached) " >&6
4188 # Double quotes because CPP needs to be expanded
4189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4192 for ac_c_preproc_warn_flag in '' yes
4194 # Use a header file that comes with gcc, so configuring glibc
4195 # with a fresh cross-compiler works.
4196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4197 # <limits.h> exists even on freestanding compilers.
4198 # On the NeXT, cc -E runs the code through the compiler's parser,
4199 # not just through cpp. "Syntax error" is here to catch this case.
4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201 /* end confdefs.h. */
4203 # include <limits.h>
4205 # include <assert.h>
4209 if ac_fn_c_try_cpp "$LINENO"; then :
4212 # Broken: fails on valid input.
4215 rm -f conftest.err conftest.i conftest.$ac_ext
4217 # OK, works on sane cases. Now check whether nonexistent headers
4218 # can be detected and how.
4219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220 /* end confdefs.h. */
4221 #include <ac_nonexistent.h>
4223 if ac_fn_c_try_cpp "$LINENO"; then :
4224 # Broken: success on invalid input.
4227 # Passes both tests.
4231 rm -f conftest.err conftest.i conftest.$ac_ext
4234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4235 rm -f conftest.i conftest.err conftest.$ac_ext
4236 if $ac_preproc_ok; then :
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4249 $as_echo "$CPP" >&6; }
4251 for ac_c_preproc_warn_flag in '' yes
4253 # Use a header file that comes with gcc, so configuring glibc
4254 # with a fresh cross-compiler works.
4255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256 # <limits.h> exists even on freestanding compilers.
4257 # On the NeXT, cc -E runs the code through the compiler's parser,
4258 # not just through cpp. "Syntax error" is here to catch this case.
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4262 # include <limits.h>
4264 # include <assert.h>
4268 if ac_fn_c_try_cpp "$LINENO"; then :
4271 # Broken: fails on valid input.
4274 rm -f conftest.err conftest.i conftest.$ac_ext
4276 # OK, works on sane cases. Now check whether nonexistent headers
4277 # can be detected and how.
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4280 #include <ac_nonexistent.h>
4282 if ac_fn_c_try_cpp "$LINENO"; then :
4283 # Broken: success on invalid input.
4286 # Passes both tests.
4290 rm -f conftest.err conftest.i conftest.$ac_ext
4293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4294 rm -f conftest.i conftest.err conftest.$ac_ext
4295 if $ac_preproc_ok; then :
4298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4300 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4301 See \`config.log' for more details" "$LINENO" 5; }
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4312 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4313 if ${ac_cv_path_GREP+:} false; then :
4314 $as_echo_n "(cached) " >&6
4316 if test -z "$GREP"; then
4317 ac_path_GREP_found=false
4318 # Loop through the user's path and test for each of PROGNAME-LIST
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4323 test -z "$as_dir" && as_dir=.
4324 for ac_prog in grep ggrep; do
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4327 as_fn_executable_p "$ac_path_GREP" || continue
4328 # Check for GNU ac_path_GREP and select it if it is found.
4329 # Check for GNU $ac_path_GREP
4330 case `"$ac_path_GREP" --version 2>&1` in
4332 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4335 $as_echo_n 0123456789 >"conftest.in"
4338 cat "conftest.in" "conftest.in" >"conftest.tmp"
4339 mv "conftest.tmp" "conftest.in"
4340 cp "conftest.in" "conftest.nl"
4341 $as_echo 'GREP' >> "conftest.nl"
4342 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4344 as_fn_arith $ac_count + 1 && ac_count=$as_val
4345 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4346 # Best one so far, save it but keep looking for a better one
4347 ac_cv_path_GREP="$ac_path_GREP"
4348 ac_path_GREP_max=$ac_count
4350 # 10*(2^10) chars as input seems more than enough
4351 test $ac_count -gt 10 && break
4353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4356 $ac_path_GREP_found && break 3
4361 if test -z "$ac_cv_path_GREP"; then
4362 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4365 ac_cv_path_GREP=$GREP
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4370 $as_echo "$ac_cv_path_GREP" >&6; }
4371 GREP="$ac_cv_path_GREP"
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4375 $as_echo_n "checking for egrep... " >&6; }
4376 if ${ac_cv_path_EGREP+:} false; then :
4377 $as_echo_n "(cached) " >&6
4379 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4380 then ac_cv_path_EGREP="$GREP -E"
4382 if test -z "$EGREP"; then
4383 ac_path_EGREP_found=false
4384 # Loop through the user's path and test for each of PROGNAME-LIST
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4389 test -z "$as_dir" && as_dir=.
4390 for ac_prog in egrep; do
4391 for ac_exec_ext in '' $ac_executable_extensions; do
4392 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4393 as_fn_executable_p "$ac_path_EGREP" || continue
4394 # Check for GNU ac_path_EGREP and select it if it is found.
4395 # Check for GNU $ac_path_EGREP
4396 case `"$ac_path_EGREP" --version 2>&1` in
4398 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4401 $as_echo_n 0123456789 >"conftest.in"
4404 cat "conftest.in" "conftest.in" >"conftest.tmp"
4405 mv "conftest.tmp" "conftest.in"
4406 cp "conftest.in" "conftest.nl"
4407 $as_echo 'EGREP' >> "conftest.nl"
4408 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4410 as_fn_arith $ac_count + 1 && ac_count=$as_val
4411 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4412 # Best one so far, save it but keep looking for a better one
4413 ac_cv_path_EGREP="$ac_path_EGREP"
4414 ac_path_EGREP_max=$ac_count
4416 # 10*(2^10) chars as input seems more than enough
4417 test $ac_count -gt 10 && break
4419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4422 $ac_path_EGREP_found && break 3
4427 if test -z "$ac_cv_path_EGREP"; then
4428 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4431 ac_cv_path_EGREP=$EGREP
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4437 $as_echo "$ac_cv_path_EGREP" >&6; }
4438 EGREP="$ac_cv_path_EGREP"
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4442 $as_echo_n "checking for ANSI C header files... " >&6; }
4443 if ${ac_cv_header_stdc+:} false; then :
4444 $as_echo_n "(cached) " >&6
4446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4447 /* end confdefs.h. */
4461 if ac_fn_c_try_compile "$LINENO"; then :
4462 ac_cv_header_stdc=yes
4464 ac_cv_header_stdc=no
4466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4468 if test $ac_cv_header_stdc = yes; then
4469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h. */
4475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4476 $EGREP "memchr" >/dev/null 2>&1; then :
4479 ac_cv_header_stdc=no
4485 if test $ac_cv_header_stdc = yes; then
4486 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4493 $EGREP "free" >/dev/null 2>&1; then :
4496 ac_cv_header_stdc=no
4502 if test $ac_cv_header_stdc = yes; then
4503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4504 if test "$cross_compiling" = yes; then :
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4511 #if ((' ' & 0x0FF) == 0x020)
4512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4515 # define ISLOWER(c) \
4516 (('a' <= (c) && (c) <= 'i') \
4517 || ('j' <= (c) && (c) <= 'r') \
4518 || ('s' <= (c) && (c) <= 'z'))
4519 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4527 for (i = 0; i < 256; i++)
4528 if (XOR (islower (i), ISLOWER (i))
4529 || toupper (i) != TOUPPER (i))
4534 if ac_fn_c_try_run "$LINENO"; then :
4537 ac_cv_header_stdc=no
4539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4540 conftest.$ac_objext conftest.beam conftest.$ac_ext
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4546 $as_echo "$ac_cv_header_stdc" >&6; }
4547 if test $ac_cv_header_stdc = yes; then
4549 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4553 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4554 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4555 inttypes.h stdint.h unistd.h
4557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4558 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4561 cat >>confdefs.h <<_ACEOF
4562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4571 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4572 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4579 if test "$MINIX" = yes; then
4581 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4584 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4587 $as_echo "#define _MINIX 1" >>confdefs.h
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4593 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4594 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4600 # define __EXTENSIONS__ 1
4601 $ac_includes_default
4610 if ac_fn_c_try_compile "$LINENO"; then :
4611 ac_cv_safe_to_define___extensions__=yes
4613 ac_cv_safe_to_define___extensions__=no
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4618 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4619 test $ac_cv_safe_to_define___extensions__ = yes &&
4620 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4622 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4624 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4626 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4628 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4631 # System default paths
4632 astsbindir='${sbindir}'
4633 astetcdir='${sysconfdir}/asterisk'
4634 astheaderdir='${includedir}/asterisk'
4635 astlibdir='${libdir}'
4636 astmoddir='${libdir}/asterisk/modules'
4637 astmandir='${mandir}'
4638 astvarlibdir='${localstatedir}/lib/asterisk'
4639 astdatadir='${astvarlibdir}'
4640 astdbdir='${astvarlibdir}'
4641 astkeydir='${astvarlibdir}'
4642 astspooldir='${localstatedir}/spool/asterisk'
4643 astlogdir='${localstatedir}/log/asterisk'
4644 astvarrundir='${localstatedir}/run/asterisk'
4646 case "${host_os}" in
4648 if test ${prefix} = 'NONE'; then
4649 astvarlibdir='${prefix}/share/asterisk'
4650 astdbdir='${localstatedir}/db/asterisk'
4654 if test ${prefix} = 'NONE'; then
4655 astvarrundir='/Library/Application Support/Asterisk/Run'
4660 case "${host_os}" in
4662 ac_default_prefix=/usr/local
4663 CPPFLAGS=-I/usr/local/include
4664 LDFLAGS=-L/usr/local/lib
4667 ac_default_prefix=/usr/local
4668 if test ${prefix} = '/usr/local' || test ${prefix} = 'NONE'; then
4669 if test ${sysconfdir} = '${prefix}/etc'; then
4670 astetcdir=/etc/asterisk
4672 if test ${mandir} = '${prefix}/man'; then
4673 astmandir=/usr/share/man
4676 CPPFLAGS=-I/usr/local/include
4677 LDFLAGS=-L/usr/local/lib
4680 ac_default_prefix=/usr/local
4681 if test ${prefix} = 'NONE'; then
4682 astmoddir='/Library/Application Support/Asterisk/Modules'
4683 astvarlibdir='/Library/Application Support/Asterisk'
4684 astlogdir=/Library/Logs/Asterisk
4685 astvarrundir='/Library/Application Support/Asterisk/Run'
4688 $as_echo "#define AST_POLL_COMPAT 1" >>confdefs.h
4691 $as_echo "#define _DARWIN_UNLIMITED_SELECT 1" >>confdefs.h
4695 if test ${prefix} = 'NONE'; then
4696 astetcdir=/var/etc/asterisk
4697 astsbindir=/opt/asterisk/sbin
4698 astlibdir=/opt/asterisk/lib
4699 astmoddir=/opt/asterisk/lib/modules
4700 astheaderdir=/opt/asterisk/include
4701 astmandir=/opt/asterisk/man