2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for asterisk trunk.
5 # Report bugs to <https://issues.asterisk.org>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
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
23 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
27 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28 # is contrary to our usage. Disable this feature.
29 alias -g '${1+"$@"}'='"$@"'
32 case `(set -o) 2>/dev/null` in #(
42 # Reset variables that may have inherited troublesome values from
45 # IFS needs to be set, to space, tab, and newline, in precisely that order.
46 # (If _AS_PATH_WALK were called with IFS unset, it would have the
47 # side effect of setting IFS to empty, thus disabling word splitting.)
48 # Quoting is to prevent editors from complaining about space-tab.
58 # Ensure predictable behavior from utilities with locale-dependent output.
64 # We cannot yet rely on "unset" to work, but we need these variables
65 # to be unset--not just set to an empty or harmless value--now, to
66 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
67 # also avoids known problems related to "unset" and subshell syntax
68 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
69 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
70 do eval test \${$as_var+y} \
71 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
74 # Ensure that fds 0, 1, and 2 are open.
75 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
76 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
77 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
79 # The user is always right.
80 if ${PATH_SEPARATOR+false} :; then
82 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
83 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 *) as_dir=$as_dir/ ;;
102 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Use a proper internal environment variable to ensure we don't fall
120 # into an infinite loop, continuously re-executing ourselves.
121 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
122 _as_can_reexec=no; export _as_can_reexec;
123 # We cannot yet assume a decent shell, so we have to provide a
124 # neutralization value for shells without unset; and this also
125 # works around shells that cannot unset nonexistent variables.
126 # Preserve -v and -x to the replacement shell.
129 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
131 *v*x* | *x*v* ) as_opts=-vx ;;
136 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
137 # Admittedly, this is quite paranoid, since all the known shells bail
138 # out after a failed `exec'.
139 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
142 # We don't want this to propagate to other subprocesses.
143 { _as_can_reexec=; unset _as_can_reexec;}
144 if test "x$CONFIG_SHELL" = x; then
145 as_bourne_compatible="as_nop=:
146 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
150 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
151 # is contrary to our usage. Disable this feature.
152 alias -g '\${1+\"\$@\"}'='\"\$@\"'
155 case \`(set -o) 2>/dev/null\` in #(
163 as_required="as_fn_return () { (exit \$1); }
164 as_fn_success () { as_fn_return 0; }
165 as_fn_failure () { as_fn_return 1; }
166 as_fn_ret_success () { return 0; }
167 as_fn_ret_failure () { return 1; }
170 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
171 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
172 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
173 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
174 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
178 exitcode=1; echo positional parameters were not saved.
180 test x\$exitcode = x0 || exit 1
181 blah=\$(echo \$(echo blah))
182 test x\"\$blah\" = xblah || exit 1
184 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
185 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
186 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
187 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
188 test \$(( 1 + 1 )) = 2 || exit 1"
189 if (eval "$as_required") 2>/dev/null
195 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
201 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
207 *) as_dir=$as_dir/ ;;
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
218 CONFIG_SHELL=$as_shell as_have_required=yes
219 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
233 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
236 CONFIG_SHELL=$SHELL as_have_required=yes
241 if test "x$CONFIG_SHELL" != x
244 # We cannot yet assume a decent shell, so we have to provide a
245 # neutralization value for shells without unset; and this also
246 # works around shells that cannot unset nonexistent variables.
247 # Preserve -v and -x to the replacement shell.
250 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
252 *v*x* | *x*v* ) as_opts=-vx ;;
257 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
258 # Admittedly, this is quite paranoid, since all the known shells bail
259 # out after a failed `exec'.
260 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
264 if test x$as_have_required = xno
266 printf "%s\n" "$0: This script requires a shell more modern than all"
267 printf "%s\n" "$0: the shells that I found on your system."
268 if test ${ZSH_VERSION+y} ; then
269 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
270 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
272 printf "%s\n" "$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;}
301 # as_fn_set_status STATUS
302 # -----------------------
303 # Set $? to STATUS, without forking.
311 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
320 # Do nothing but, unlike ":", preserve the value of $?.
329 # Create "$as_dir" as a directory, including parents if necessary.
334 -*) as_dir=./$as_dir;;
336 test -d "$as_dir" || eval $as_mkdir_p || {
340 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
343 as_dirs="'$as_qdir' $as_dirs"
344 as_dir=`$as_dirname -- "$as_dir" ||
345 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
346 X"$as_dir" : 'X\(//\)[^/]' \| \
347 X"$as_dir" : 'X\(//\)$' \| \
348 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
349 printf "%s\n" X"$as_dir" |
350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
367 test -d "$as_dir" && break
369 test -z "$as_dirs" || eval "mkdir $as_dirs"
370 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
375 # as_fn_executable_p FILE
376 # -----------------------
377 # Test if FILE is an executable regular file.
378 as_fn_executable_p ()
380 test -f "$1" && test -x "$1"
381 } # as_fn_executable_p
382 # as_fn_append VAR VALUE
383 # ----------------------
384 # Append the text in VALUE to the end of the definition contained in VAR. Take
385 # advantage of any shell optimizations that allow amortized linear growth over
386 # repeated appends, instead of the typical quadratic growth present in naive
388 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
390 eval 'as_fn_append ()
403 # Perform arithmetic evaluation on the ARGs, and store the result in the
404 # global $as_val. Take advantage of shells that can avoid forks. The arguments
405 # must be portable across $(()) and expr.
406 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
415 as_val=`expr "$@" || test $? -eq 1`
421 # Do nothing but, unlike ":", preserve the value of $?.
428 # as_fn_error STATUS ERROR [LINENO LOG_FD]
429 # ----------------------------------------
430 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
431 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
432 # script with STATUS, using 1 if that was 0.
435 as_status=$1; test $as_status -eq 0 && as_status=1
437 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
440 printf "%s\n" "$as_me: error: $2" >&2
441 as_fn_exit $as_status
444 if expr a : '\(a\)' >/dev/null 2>&1 &&
445 test "X`expr 00001 : '.*\(...\)'`" = X001; then
451 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
457 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_me=`$as_basename -- "$0" ||
464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
465 X"$0" : 'X\(//\)$' \| \
466 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
467 printf "%s\n" X/"$0" |
468 sed '/^.*\/\([^/][^/]*\)\/*$/{
482 # Avoid depending upon Character Ranges.
483 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
484 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
485 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
486 as_cr_digits='0123456789'
487 as_cr_alnum=$as_cr_Letters$as_cr_digits
490 as_lineno_1=$LINENO as_lineno_1a=$LINENO
491 as_lineno_2=$LINENO as_lineno_2a=$LINENO
492 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
493 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
494 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
506 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
510 chmod +x "$as_me.lineno" ||
511 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
513 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
514 # already done that, so ensure we don't try to do so again and fall
515 # in an infinite loop. This has already happened in practice.
516 _as_can_reexec=no; export _as_can_reexec
517 # Don't try to exec as it changes $[0], causing all sort of problems
518 # (the dirname of $[0] is not the place where we might find the
519 # original and so on. Autoconf is especially sensitive to this).
521 # Exit status is that of the last command.
526 # Determine whether it's possible to make 'echo' print without a newline.
527 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
528 # for compatibility with existing Makefiles.
529 ECHO_C= ECHO_N= ECHO_T=
530 case `echo -n x` in #(((((
532 case `echo 'xy\c'` in
533 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
535 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
542 # For backward compatibility with old third-party macros, we provide
543 # the shell variables $as_echo and $as_echo_n. New code should use
544 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
545 as_echo='printf %s\n'
546 as_echo_n='printf %s'
549 rm -f conf$$ conf$$.exe conf$$.file
550 if test -d conf$$.dir; then
551 rm -f conf$$.dir/conf$$.file
554 mkdir conf$$.dir 2>/dev/null
556 if (echo >conf$$.file) 2>/dev/null; then
557 if ln -s conf$$.file conf$$ 2>/dev/null; then
559 # ... but there are two gotchas:
560 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
561 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
562 # In both cases, we have to default to `cp -pR'.
563 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
565 elif ln conf$$.file conf$$ 2>/dev/null; then
573 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
574 rmdir conf$$.dir 2>/dev/null
576 if mkdir -p . 2>/dev/null; then
577 as_mkdir_p='mkdir -p "$as_dir"'
579 test -d ./-p && rmdir ./-p
584 as_executable_p=as_fn_executable_p
586 # Sed expression to map a string onto a valid CPP name.
587 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
589 # Sed expression to map a string onto a valid variable name.
590 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
593 test -n "$DJDIR" || exec 7<&0 </dev/null
597 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
598 # so uname gets run too.
599 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
604 ac_default_prefix=/usr/local
606 ac_config_libobj_dir=.
613 # Identity of this package.
614 PACKAGE_NAME='asterisk'
615 PACKAGE_TARNAME='asterisk'
616 PACKAGE_VERSION='trunk'
617 PACKAGE_STRING='asterisk trunk'
618 PACKAGE_BUGREPORT='https://issues.asterisk.org'
621 ac_unique_file="main/asterisk.c"
622 # Factoring default headers for most tests.
623 ac_includes_default="\
634 #ifdef HAVE_INTTYPES_H
635 # include <inttypes.h>
640 #ifdef HAVE_STRINGS_H
641 # include <strings.h>
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
655 ac_subst_vars='LTLIBOBJS
657 PBX_SYSLOG_FACILITY_LOG_UUCP
658 PBX_SYSLOG_FACILITY_LOG_SYSLOG
659 PBX_SYSLOG_FACILITY_LOG_NEWS
660 PBX_SYSLOG_FACILITY_LOG_MAIL
661 PBX_SYSLOG_FACILITY_LOG_LPR
662 PBX_SYSLOG_FACILITY_LOG_KERN
663 PBX_SYSLOG_FACILITY_LOG_FTP
664 PBX_SYSLOG_FACILITY_LOG_DAEMON
665 PBX_SYSLOG_FACILITY_LOG_CRON
666 PBX_SYSLOG_FACILITY_LOG_AUTHPRIV
667 PBX_SYSLOG_FACILITY_LOG_AUTH
713 AST_NO_STRINGOP_TRUNCATION
714 AST_NO_FORMAT_TRUNCATION
715 AST_NO_STRICT_OVERFLOW
718 AST_DECLARATION_AFTER_STATEMENT
719 AST_UNDEFINED_SANITIZER
722 AST_ADDRESS_SANITIZER
723 PBX_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
724 PBX_PTHREAD_RWLOCK_INITIALIZER
781 SRTP_GET_VERSION_INCLUDE
785 SRTP_SHUTDOWN_INCLUDE
813 SPEEX_PREPROCESS_INCLUDE
851 PBX_PRI_REVERSE_CHARGE
852 PRI_REVERSE_CHARGE_DIR
853 PRI_REVERSE_CHARGE_INCLUDE
854 PRI_REVERSE_CHARGE_LIB
855 PBX_PRI_SERVICE_MESSAGES
856 PRI_SERVICE_MESSAGES_DIR
857 PRI_SERVICE_MESSAGES_INCLUDE
858 PRI_SERVICE_MESSAGES_LIB
861 PRI_PROG_W_CAUSE_INCLUDE
863 PBX_PRI_INBANDDISCONNECT
864 PRI_INBANDDISCONNECT_DIR
865 PRI_INBANDDISCONNECT_INCLUDE
866 PRI_INBANDDISCONNECT_LIB
869 PRI_SETUP_KEYPAD_INCLUDE
871 PBX_PRI_CALL_REROUTING
872 PRI_CALL_REROUTING_DIR
873 PRI_CALL_REROUTING_INCLUDE
874 PRI_CALL_REROUTING_LIB
877 PRI_CALL_HOLD_INCLUDE
885 PRI_HANGUP_FIX_INCLUDE
897 PRI_AOC_EVENTS_INCLUDE
901 PRI_CALL_WAITING_INCLUDE
913 PRI_DISPLAY_TEXT_INCLUDE
919 PBX_PRI_DATETIME_SEND
920 PRI_DATETIME_SEND_DIR
921 PRI_DATETIME_SEND_INCLUDE
922 PRI_DATETIME_SEND_LIB
923 PBX_PRI_L2_PERSISTENCE
924 PRI_L2_PERSISTENCE_DIR
925 PRI_L2_PERSISTENCE_INCLUDE
926 PRI_L2_PERSISTENCE_LIB
927 PBX_PRI_SETUP_ACK_INBAND
928 PRI_SETUP_ACK_INBAND_DIR
929 PRI_SETUP_ACK_INBAND_INCLUDE
930 PRI_SETUP_ACK_INBAND_LIB
943 PBX_PJSIP_OAUTH_AUTHENTICATION
944 PJSIP_OAUTH_AUTHENTICATION_DIR
945 PJSIP_OAUTH_AUTHENTICATION_INCLUDE
946 PJSIP_OAUTH_AUTHENTICATION_LIB
947 PBX_PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE
948 PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_DIR
949 PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_INCLUDE
950 PJSIP_TRANSPORT_DISABLE_CONNECTION_REUSE_LIB
951 PBX_PJSIP_ENDPOINT_COMPACT_FORM
952 PJSIP_ENDPOINT_COMPACT_FORM_DIR
953 PJSIP_ENDPOINT_COMPACT_FORM_INCLUDE
954 PJSIP_ENDPOINT_COMPACT_FORM_LIB
955 PBX_PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS
956 PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_DIR
957 PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_INCLUDE
958 PJSIP_INV_ACCEPT_MULTIPLE_SDP_ANSWERS_LIB
959 PBX_PJSIP_TSX_LAYER_FIND_TSX2
960 PJSIP_TSX_LAYER_FIND_TSX2_DIR
961 PJSIP_TSX_LAYER_FIND_TSX2_INCLUDE
962 PJSIP_TSX_LAYER_FIND_TSX2_LIB
963 PBX_PJSIP_AUTH_CLT_DEINIT
964 PJSIP_AUTH_CLT_DEINIT_DIR
965 PJSIP_AUTH_CLT_DEINIT_INCLUDE
966 PJSIP_AUTH_CLT_DEINIT_LIB
967 PBX_PJSIP_INV_SESSION_REF
968 PJSIP_INV_SESSION_REF_DIR
969 PJSIP_INV_SESSION_REF_INCLUDE
970 PJSIP_INV_SESSION_REF_LIB
971 PBX_PJSIP_EVSUB_GRP_LOCK
972 PJSIP_EVSUB_GRP_LOCK_DIR
973 PJSIP_EVSUB_GRP_LOCK_INCLUDE
974 PJSIP_EVSUB_GRP_LOCK_LIB
975 PBX_PJSIP_TLS_TRANSPORT_PROTO
976 PJSIP_TLS_TRANSPORT_PROTO_DIR
977 PJSIP_TLS_TRANSPORT_PROTO_INCLUDE
978 PJSIP_TLS_TRANSPORT_PROTO_LIB
979 PBX_PJSIP_EXTERNAL_RESOLVER
980 PJSIP_EXTERNAL_RESOLVER_DIR
981 PJSIP_EXTERNAL_RESOLVER_INCLUDE
982 PJSIP_EXTERNAL_RESOLVER_LIB
983 PBX_PJ_SSL_CERT_LOAD_FROM_FILES2
984 PJ_SSL_CERT_LOAD_FROM_FILES2_DIR
985 PJ_SSL_CERT_LOAD_FROM_FILES2_INCLUDE
986 PJ_SSL_CERT_LOAD_FROM_FILES2_LIB
987 PBX_PJSIP_GET_DEST_INFO
988 PJSIP_GET_DEST_INFO_DIR
989 PJSIP_GET_DEST_INFO_INCLUDE
990 PJSIP_GET_DEST_INFO_LIB
991 PBX_PJSIP_REPLACE_MEDIA_STREAM
992 PJSIP_REPLACE_MEDIA_STREAM_DIR
993 PJSIP_REPLACE_MEDIA_STREAM_INCLUDE
994 PJSIP_REPLACE_MEDIA_STREAM_LIB
995 PBX_PJ_TRANSACTION_GRP_LOCK
996 PJ_TRANSACTION_GRP_LOCK_DIR
997 PJ_TRANSACTION_GRP_LOCK_INCLUDE
998 PJ_TRANSACTION_GRP_LOCK_LIB
999 PBX_PJSIP_DLG_CREATE_UAS_AND_INC_LOCK
1000 PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_DIR
1001 PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_INCLUDE
1002 PJSIP_DLG_CREATE_UAS_AND_INC_LOCK_LIB
1058 LIBXSLT_CLEANUP_INCLUDE
1068 PBX_LIBEDIT_IS_UNICODE
1069 LIBEDIT_IS_UNICODE_DIR
1070 LIBEDIT_IS_UNICODE_INCLUDE
1071 LIBEDIT_IS_UNICODE_LIB
1153 PBX_COROSYNC_CFG_STATE_TRACK
1154 COROSYNC_CFG_STATE_TRACK_DIR
1155 COROSYNC_CFG_STATE_TRACK_INCLUDE
1156 COROSYNC_CFG_STATE_TRACK_LIB
1189 PJPROJECT_BUNDLED_OOT
1191 PJPROJECT_CONFIGURE_OPTS
1196 JANSSON_CONFIGURE_OPTS
1199 PBX_OPENSSL_BIO_METHOD
1200 OPENSSL_BIO_METHOD_DIR
1201 OPENSSL_BIO_METHOD_INCLUDE
1202 OPENSSL_BIO_METHOD_LIB
1211 AST_C_COMPILER_FAMILY
1213 AST_CLANG_BLOCKS_LIBS
1214 AST_NESTED_FUNCTIONS
1222 PBX_NO_BINARY_MODULES
1361 program_transform_name
1374 enable_option_checking
1376 enable_binary_modules
1380 with_externals_cache
1382 with_jansson_bundled
1383 with_pjproject_bundled
1454 enable_permanent_dlopen
1456 enable_internal_poll
1460 ac_precious_vars='build_alias
1478 JANSSON_CONFIGURE_OPTS
1479 PJPROJECT_CONFIGURE_OPTS
1505 # Initialize some variables set by options.
1507 ac_init_version=false
1508 ac_unrecognized_opts=
1509 ac_unrecognized_sep=
1510 # The variables have the same names as the options, with
1511 # dashes changed to underlines.
1512 cache_file=/dev/null
1519 program_transform_name=s,x,x,
1527 # Installation directory options.
1528 # These are left unexpanded so users can "make install exec_prefix=/foo"
1529 # and all the variables that are supposed to be based on exec_prefix
1530 # by default will actually change.
1531 # Use braces instead of parens because sh, perl, etc. also accept them.
1532 # (The list follows the same order as the GNU Coding Standards.)
1533 bindir='${exec_prefix}/bin'
1534 sbindir='${exec_prefix}/sbin'
1535 libexecdir='${exec_prefix}/libexec'
1536 datarootdir='${prefix}/share'
1537 datadir='${datarootdir}'
1538 sysconfdir='${prefix}/etc'
1539 sharedstatedir='${prefix}/com'
1540 localstatedir='${prefix}/var'
1541 runstatedir='${localstatedir}/run'
1542 includedir='${prefix}/include'
1543 oldincludedir='/usr/include'
1544 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1545 infodir='${datarootdir}/info'
1550 libdir='${exec_prefix}/lib'
1551 localedir='${datarootdir}/locale'
1552 mandir='${datarootdir}/man'
1558 # If the previous option needs an argument, assign it.
1559 if test -n "$ac_prev"; then
1560 eval $ac_prev=\$ac_option
1566 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1571 case $ac_dashdash$ac_option in
1575 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1577 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1578 bindir=$ac_optarg ;;
1580 -build | --build | --buil | --bui | --bu)
1581 ac_prev=build_alias ;;
1582 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1583 build_alias=$ac_optarg ;;
1585 -cache-file | --cache-file | --cache-fil | --cache-fi \
1586 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1587 ac_prev=cache_file ;;
1588 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1589 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1590 cache_file=$ac_optarg ;;
1592 --config-cache | -C)
1593 cache_file=config.cache ;;
1595 -datadir | --datadir | --datadi | --datad)
1597 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1598 datadir=$ac_optarg ;;
1600 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1601 | --dataroo | --dataro | --datar)
1602 ac_prev=datarootdir ;;
1603 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1604 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1605 datarootdir=$ac_optarg ;;
1607 -disable-* | --disable-*)
1608 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1609 # Reject names that are not valid shell variable names.
1610 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1611 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1612 ac_useropt_orig=$ac_useropt
1613 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1614 case $ac_user_opts in
1616 "enable_$ac_useropt"
1618 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1619 ac_unrecognized_sep=', ';;
1621 eval enable_$ac_useropt=no ;;
1623 -docdir | --docdir | --docdi | --doc | --do)
1625 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1626 docdir=$ac_optarg ;;
1628 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1630 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1631 dvidir=$ac_optarg ;;
1633 -enable-* | --enable-*)
1634 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1635 # Reject names that are not valid shell variable names.
1636 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1637 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1638 ac_useropt_orig=$ac_useropt
1639 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1640 case $ac_user_opts in
1642 "enable_$ac_useropt"
1644 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1645 ac_unrecognized_sep=', ';;
1647 eval enable_$ac_useropt=\$ac_optarg ;;
1649 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1650 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1651 | --exec | --exe | --ex)
1652 ac_prev=exec_prefix ;;
1653 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1654 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1655 | --exec=* | --exe=* | --ex=*)
1656 exec_prefix=$ac_optarg ;;
1658 -gas | --gas | --ga | --g)
1659 # Obsolete; use --with-gas.
1662 -help | --help | --hel | --he | -h)
1663 ac_init_help=long ;;
1664 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1665 ac_init_help=recursive ;;
1666 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1667 ac_init_help=short ;;
1669 -host | --host | --hos | --ho)
1670 ac_prev=host_alias ;;
1671 -host=* | --host=* | --hos=* | --ho=*)
1672 host_alias=$ac_optarg ;;
1674 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1676 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1678 htmldir=$ac_optarg ;;
1680 -includedir | --includedir | --includedi | --included | --include \
1681 | --includ | --inclu | --incl | --inc)
1682 ac_prev=includedir ;;
1683 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1684 | --includ=* | --inclu=* | --incl=* | --inc=*)
1685 includedir=$ac_optarg ;;
1687 -infodir | --infodir | --infodi | --infod | --info | --inf)
1689 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1690 infodir=$ac_optarg ;;
1692 -libdir | --libdir | --libdi | --libd)
1694 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1695 libdir=$ac_optarg ;;
1697 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1698 | --libexe | --libex | --libe)
1699 ac_prev=libexecdir ;;
1700 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1701 | --libexe=* | --libex=* | --libe=*)
1702 libexecdir=$ac_optarg ;;
1704 -localedir | --localedir | --localedi | --localed | --locale)
1705 ac_prev=localedir ;;
1706 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1707 localedir=$ac_optarg ;;
1709 -localstatedir | --localstatedir | --localstatedi | --localstated \
1710 | --localstate | --localstat | --localsta | --localst | --locals)
1711 ac_prev=localstatedir ;;
1712 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1713 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1714 localstatedir=$ac_optarg ;;
1716 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1718 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1719 mandir=$ac_optarg ;;
1721 -nfp | --nfp | --nf)
1722 # Obsolete; use --without-fp.
1725 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1726 | --no-cr | --no-c | -n)
1729 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1730 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1733 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1734 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1735 | --oldin | --oldi | --old | --ol | --o)
1736 ac_prev=oldincludedir ;;
1737 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1738 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1739 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1740 oldincludedir=$ac_optarg ;;
1742 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1744 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1745 prefix=$ac_optarg ;;
1747 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1748 | --program-pre | --program-pr | --program-p)
1749 ac_prev=program_prefix ;;
1750 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1751 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1752 program_prefix=$ac_optarg ;;
1754 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1755 | --program-suf | --program-su | --program-s)
1756 ac_prev=program_suffix ;;
1757 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1758 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1759 program_suffix=$ac_optarg ;;
1761 -program-transform-name | --program-transform-name \
1762 | --program-transform-nam | --program-transform-na \
1763 | --program-transform-n | --program-transform- \
1764 | --program-transform | --program-transfor \
1765 | --program-transfo | --program-transf \
1766 | --program-trans | --program-tran \
1767 | --progr-tra | --program-tr | --program-t)
1768 ac_prev=program_transform_name ;;
1769 -program-transform-name=* | --program-transform-name=* \
1770 | --program-transform-nam=* | --program-transform-na=* \
1771 | --program-transform-n=* | --program-transform-=* \
1772 | --program-transform=* | --program-transfor=* \
1773 | --program-transfo=* | --program-transf=* \
1774 | --program-trans=* | --program-tran=* \
1775 | --progr-tra=* | --program-tr=* | --program-t=*)
1776 program_transform_name=$ac_optarg ;;
1778 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1780 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1781 pdfdir=$ac_optarg ;;
1783 -psdir | --psdir | --psdi | --psd | --ps)
1785 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1789 | -silent | --silent | --silen | --sile | --sil)
1792 -runstatedir | --runstatedir | --runstatedi | --runstated \
1793 | --runstate | --runstat | --runsta | --runst | --runs \
1794 | --run | --ru | --r)
1795 ac_prev=runstatedir ;;
1796 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1797 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1798 | --run=* | --ru=* | --r=*)
1799 runstatedir=$ac_optarg ;;
1801 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1803 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1805 sbindir=$ac_optarg ;;
1807 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1808 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1809 | --sharedst | --shareds | --shared | --share | --shar \
1811 ac_prev=sharedstatedir ;;
1812 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1813 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1814 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1816 sharedstatedir=$ac_optarg ;;
1818 -site | --site | --sit)
1820 -site=* | --site=* | --sit=*)
1823 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1825 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1826 srcdir=$ac_optarg ;;
1828 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1829 | --syscon | --sysco | --sysc | --sys | --sy)
1830 ac_prev=sysconfdir ;;
1831 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1832 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1833 sysconfdir=$ac_optarg ;;
1835 -target | --target | --targe | --targ | --tar | --ta | --t)
1836 ac_prev=target_alias ;;
1837 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1838 target_alias=$ac_optarg ;;
1840 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1843 -version | --version | --versio | --versi | --vers | -V)
1844 ac_init_version=: ;;
1847 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1848 # Reject names that are not valid shell variable names.
1849 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1850 as_fn_error $? "invalid package name: \`$ac_useropt'"
1851 ac_useropt_orig=$ac_useropt
1852 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1853 case $ac_user_opts in
1857 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1858 ac_unrecognized_sep=', ';;
1860 eval with_$ac_useropt=\$ac_optarg ;;
1862 -without-* | --without-*)
1863 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1864 # Reject names that are not valid shell variable names.
1865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1866 as_fn_error $? "invalid package name: \`$ac_useropt'"
1867 ac_useropt_orig=$ac_useropt
1868 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1869 case $ac_user_opts in
1873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1874 ac_unrecognized_sep=', ';;
1876 eval with_$ac_useropt=no ;;
1879 # Obsolete; use --with-x.
1882 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1883 | --x-incl | --x-inc | --x-in | --x-i)
1884 ac_prev=x_includes ;;
1885 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1886 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1887 x_includes=$ac_optarg ;;
1889 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1890 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1891 ac_prev=x_libraries ;;
1892 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1893 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1894 x_libraries=$ac_optarg ;;
1896 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1897 Try \`$0 --help' for more information"
1901 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1902 # Reject names that are not valid shell variable names.
1903 case $ac_envvar in #(
1904 '' | [0-9]* | *[!_$as_cr_alnum]* )
1905 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1907 eval $ac_envvar=\$ac_optarg
1908 export $ac_envvar ;;
1911 # FIXME: should be removed in autoconf 3.0.
1912 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1913 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1914 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1915 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1921 if test -n "$ac_prev"; then
1922 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1923 as_fn_error $? "missing argument to $ac_option"
1926 if test -n "$ac_unrecognized_opts"; then
1927 case $enable_option_checking in
1929 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1930 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1934 # Check all directory arguments for consistency.
1935 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1936 datadir sysconfdir sharedstatedir localstatedir includedir \
1937 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1938 libdir localedir mandir runstatedir
1940 eval ac_val=\$$ac_var
1941 # Remove trailing slashes.
1944 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1945 eval $ac_var=\$ac_val;;
1947 # Be sure to have absolute directory names.
1949 [\\/$]* | ?:[\\/]* ) continue;;
1950 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1952 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1955 # There might be people who depend on the old broken behavior: `$host'
1956 # used to hold the argument of --host etc.
1957 # FIXME: To remove some day.
1960 target=$target_alias
1962 # FIXME: To remove some day.
1963 if test "x$host_alias" != x; then
1964 if test "x$build_alias" = x; then
1965 cross_compiling=maybe
1966 elif test "x$build_alias" != "x$host_alias"; then
1972 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1974 test "$silent" = yes && exec 6>/dev/null
1977 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1978 ac_ls_di=`ls -di .` &&
1979 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1980 as_fn_error $? "working directory cannot be determined"
1981 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1982 as_fn_error $? "pwd does not report name of working directory"
1985 # Find the source files, if location was not specified.
1986 if test -z "$srcdir"; then
1987 ac_srcdir_defaulted=yes
1988 # Try the directory containing this script, then the parent directory.
1989 ac_confdir=`$as_dirname -- "$as_myself" ||
1990 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1991 X"$as_myself" : 'X\(//\)[^/]' \| \
1992 X"$as_myself" : 'X\(//\)$' \| \
1993 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1994 printf "%s\n" X"$as_myself" |
1995 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2013 if test ! -r "$srcdir/$ac_unique_file"; then
2017 ac_srcdir_defaulted=no
2019 if test ! -r "$srcdir/$ac_unique_file"; then
2020 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2021 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2023 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2025 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2027 # When building in place, set srcdir=.
2028 if test "$ac_abs_confdir" = "$ac_pwd"; then
2031 # Remove unnecessary trailing slashes from srcdir.
2032 # Double slashes in file names in object file debugging info
2033 # mess up M-x gdb in Emacs.
2035 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2037 for ac_var in $ac_precious_vars; do
2038 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2039 eval ac_env_${ac_var}_value=\$${ac_var}
2040 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2041 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2045 # Report the --help message.
2047 if test "$ac_init_help" = "long"; then
2048 # Omit some internal or obsolete options to make the list less imposing.
2049 # This message is too long to be a string in the A/UX 3.1 sh.
2051 \`configure' configures asterisk trunk to adapt to many kinds of systems.
2053 Usage: $0 [OPTION]... [VAR=VALUE]...
2055 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2056 VAR=VALUE. See below for descriptions of some of the useful variables.
2058 Defaults for the options are specified in brackets.
2061 -h, --help display this help and exit
2062 --help=short display options specific to this package
2063 --help=recursive display the short help of all the included packages
2064 -V, --version display version information and exit
2065 -q, --quiet, --silent do not print \`checking ...' messages
2066 --cache-file=FILE cache test results in FILE [disabled]
2067 -C, --config-cache alias for \`--cache-file=config.cache'
2068 -n, --no-create do not create output files
2069 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2071 Installation directories:
2072 --prefix=PREFIX install architecture-independent files in PREFIX
2073 [$ac_default_prefix]
2074 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2077 By default, \`make install' will install all the files in
2078 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2079 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2080 for instance \`--prefix=\$HOME'.
2082 For better control, use the options below.
2084 Fine tuning of the installation directories:
2085 --bindir=DIR user executables [EPREFIX/bin]
2086 --sbindir=DIR system admin executables [EPREFIX/sbin]
2087 --libexecdir=DIR program executables [EPREFIX/libexec]
2088 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2089 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2090 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2091 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2092 --libdir=DIR object code libraries [EPREFIX/lib]
2093 --includedir=DIR C header files [PREFIX/include]
2094 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2095 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2096 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2097 --infodir=DIR info documentation [DATAROOTDIR/info]
2098 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2099 --mandir=DIR man documentation [DATAROOTDIR/man]
2100 --docdir=DIR documentation root [DATAROOTDIR/doc/asterisk]
2101 --htmldir=DIR html documentation [DOCDIR]
2102 --dvidir=DIR dvi documentation [DOCDIR]
2103 --pdfdir=DIR pdf documentation [DOCDIR]
2104 --psdir=DIR ps documentation [DOCDIR]
2110 --build=BUILD configure for building on BUILD [guessed]
2111 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2115 if test -n "$ac_init_help"; then
2116 case $ac_init_help in
2117 short | recursive ) echo "Configuration of asterisk trunk:";;
2122 --disable-option-checking ignore unrecognized --enable/--with options
2123 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2124 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2125 --disable-binary-modules
2126 Block installation of binary modules.
2127 --enable-dev-mode Turn on developer mode
2128 --enable-coverage Turn on code coverage tracking (for gcov)
2129 --disable-xmldoc Explicitly disable XML documentation
2130 --enable-permanent-dlopen
2131 Enable when your libc has a permanent dlopen like
2133 --disable-largefile omit support for large files
2134 --enable-internal-poll Use Asterisk's poll implementation
2135 --disable-asteriskssl Disable Asterisk's SSL wrapper library
2136 --disable-rpath Disables rpath linker option checking
2139 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2140 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2141 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2142 --with-download-cache=PATH
2143 use cached sound AND external module tarfiles in
2145 --with-sounds-cache=PATH
2146 use cached sound tarfiles in PATH
2147 --with-externals-cache=PATH
2148 use cached external module tarfiles in PATH
2149 --with-jansson-bundled Use bundled jansson library
2150 --with-pjproject-bundled
2151 Use bundled pjproject libraries (default)
2152 --with-crypto=PATH use OpenSSL Cryptography files in PATH
2153 --with-ssl=PATH use OpenSSL Secure Sockets Layer files in PATH
2154 --with-asound=PATH use Advanced Linux Sound Architecture files in PATH
2155 --with-bfd=PATH use Debug symbol decoding files in PATH
2156 --with-execinfo=PATH use Stack Backtrace files in PATH
2157 --with-bluetooth=PATH use Bluetooth files in PATH
2158 --with-cap=PATH use POSIX 1.e capabilities files in PATH
2159 --with-codec2=PATH use Codec 2 Audio Decoder/Encoder files in PATH
2160 --with-cpg=PATH use Corosync files in PATH
2161 --with-crypt=PATH use password and data encryption files in PATH
2162 --with-dahdi=PATH use DAHDI files in PATH
2163 --with-avcodec=PATH use Ffmpeg and avcodec files in PATH
2164 --with-gsm=PATH use External GSM files in PATH, use 'internal' GSM
2166 --with-ilbc=PATH use System iLBC files in PATH, use 'internal' iLBC
2168 --with-gtk2=PATH use gtk2 files in PATH
2169 --with-gmime=PATH use GMime files in PATH
2170 --with-hoard=PATH use Hoard Memory Allocator files in PATH
2171 --with-ical=PATH use iCal files in PATH
2172 --with-iconv=PATH use Iconv files in PATH
2173 --with-iksemel=PATH use Iksemel Jabber files in PATH
2174 --with-imap=PATH use UW IMAP Toolkit files in PATH
2175 --with-inotify=PATH use inotify support files in PATH
2176 --with-iodbc=PATH use iODBC files in PATH
2177 --with-jack=PATH use Jack Audio Connection Kit files in PATH
2178 --with-jansson=PATH use Jansson JSON library files in PATH
2179 --with-uriparser=PATH use uriparser library files in PATH
2180 --with-kqueue=PATH use kqueue support files in PATH
2181 --with-ldap=PATH use OpenLDAP files in PATH
2182 --with-libcurl=PREFIX look for the curl library in PREFIX/lib and headers
2184 --with-libedit=PATH use NetBSD Editline library files in PATH
2185 --with-libxml2=PATH use LibXML2 files in PATH
2186 --with-libxslt=PATH use LibXSLT files in PATH
2187 --with-lua=PATH use Lua files in PATH
2188 --with-mysqlclient=PATH use MySQL client files in PATH
2189 --with-neon=PATH use neon files in PATH
2190 --with-neon29=PATH use neon29 files in PATH
2191 --with-netsnmp=PATH use Net-SNMP files in PATH
2192 --with-newt=PATH use newt files in PATH
2193 --with-ogg=PATH use OGG files in PATH
2194 --with-openr2=PATH use MFR2 files in PATH
2195 --with-opus=PATH use Opus files in PATH
2196 --with-opusfile=PATH use Opusfile files in PATH
2197 --with-osptk=PATH use OSP Toolkit files in PATH
2198 --with-postgres=PATH use PostgreSQL files in PATH
2199 --with-beanstalk=PATH use Beanstalk Job Queue files in PATH
2200 --with-pjproject=PATH use PJPROJECT files in PATH
2201 --with-popt=PATH use popt files in PATH
2202 --with-portaudio=PATH use PortAudio files in PATH
2203 --with-pri=PATH use ISDN PRI files in PATH
2204 --with-radius=PATH use Radius Client files in PATH
2205 --with-fftw3=PATH use LIBFFTW3 files in PATH
2206 --with-resample=PATH use LIBRESAMPLE files in PATH
2207 --with-sndfile=PATH use libsndfile files in PATH
2208 --with-sdl=PATH use Sdl files in PATH
2209 --with-SDL_image=PATH use Sdl Image files in PATH
2210 --with-spandsp=PATH use SPANDSP files in PATH
2211 --with-ss7=PATH use ISDN SS7 files in PATH
2212 --with-speex=PATH use Speex files in PATH
2213 --with-speex=PATH use Speex preprocess routines files in PATH
2214 --with-speexdsp=PATH use SpeexDSP files in PATH
2215 --with-sqlite3=PATH use SQLite files in PATH
2216 --with-srtp=PATH use Secure RTP files in PATH
2217 --with-tds=PATH use FreeTDS files in PATH
2218 --with-timerfd=PATH use timerfd files in PATH
2219 --with-tonezone=PATH use tonezone files in PATH
2220 --with-unbound=PATH use unbound files in PATH
2221 --with-unixodbc=PATH use unixODBC files in PATH
2222 --with-vorbis=PATH use Vorbis files in PATH
2223 --with-x11=PATH use X11 files in PATH
2224 --with-z=PATH use zlib compression files in PATH
2226 Some influential environment variables:
2227 CC C compiler command
2228 CFLAGS C compiler flags
2229 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2230 nonstandard directory <lib dir>
2231 LIBS libraries to pass to the linker, e.g. -l<library>
2232 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2233 you have headers in a nonstandard directory <include dir>
2234 CXX C++ compiler command
2235 CXXFLAGS C++ compiler flags
2237 CXXCPP C++ preprocessor
2238 PKG_CONFIG path to pkg-config utility
2240 directories to add to pkg-config's search path
2242 path overriding pkg-config's built-in search path
2244 C compiler flags for OPENSSL, overriding pkg-config
2246 linker flags for OPENSSL, overriding pkg-config
2247 JANSSON_CONFIGURE_OPTS
2248 Additional configure options to pass to bundled jansson
2249 PJPROJECT_CONFIGURE_OPTS
2250 Additional configure options to pass to bundled pjproject
2252 A space separated list of target lua versions to test.
2254 C compiler flags for LIBEDIT, overriding pkg-config
2256 linker flags for LIBEDIT, overriding pkg-config
2258 C compiler flags for JANSSON, overriding pkg-config
2260 linker flags for JANSSON, overriding pkg-config
2262 C compiler flags for LIBXML2, overriding pkg-config
2264 linker flags for LIBXML2, overriding pkg-config
2265 ILBC_CFLAGS C compiler flags for ILBC, overriding pkg-config
2266 ILBC_LIBS linker flags for ILBC, overriding pkg-config
2268 C compiler flags for NETSNMP, overriding pkg-config
2270 linker flags for NETSNMP, overriding pkg-config
2272 C compiler flags for PJPROJECT, overriding pkg-config
2274 linker flags for PJPROJECT, overriding pkg-config
2276 C compiler flags for PYTHONDEV, overriding pkg-config
2278 linker flags for PYTHONDEV, overriding pkg-config
2280 C compiler flags for PORTAUDIO, overriding pkg-config
2282 linker flags for PORTAUDIO, overriding pkg-config
2284 C compiler flags for GMIME, overriding pkg-config
2285 GMIME_LIBS linker flags for GMIME, overriding pkg-config
2286 GTK2_CFLAGS C compiler flags for GTK2, overriding pkg-config
2287 GTK2_LIBS linker flags for GTK2, overriding pkg-config
2289 C compiler flags for SYSTEMD, overriding pkg-config
2291 linker flags for SYSTEMD, overriding pkg-config
2293 Use these variables to override the choices made by `configure' or to help
2294 it to find libraries and programs with nonstandard names/locations.
2296 Report bugs to <https://issues.asterisk.org>.
2301 if test "$ac_init_help" = "recursive"; then
2302 # If there are subdirs, report their specific --help.
2303 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2304 test -d "$ac_dir" ||
2305 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2310 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2312 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2313 # A ".." for each directory in $ac_dir_suffix.
2314 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2315 case $ac_top_builddir_sub in
2316 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2317 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2320 ac_abs_top_builddir=$ac_pwd
2321 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2322 # for backward compatibility:
2323 ac_top_builddir=$ac_top_build_prefix
2326 .) # We are building in place.
2328 ac_top_srcdir=$ac_top_builddir_sub
2329 ac_abs_top_srcdir=$ac_pwd ;;
2330 [\\/]* | ?:[\\/]* ) # Absolute name.
2331 ac_srcdir=$srcdir$ac_dir_suffix;
2332 ac_top_srcdir=$srcdir
2333 ac_abs_top_srcdir=$srcdir ;;
2335 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2336 ac_top_srcdir=$ac_top_build_prefix$srcdir
2337 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2339 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2341 cd "$ac_dir" || { ac_status=$?; continue; }
2342 # Check for configure.gnu first; this name is used for a wrapper for
2343 # Metaconfig's "Configure" on case-insensitive file systems.
2344 if test -f "$ac_srcdir/configure.gnu"; then
2346 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2347 elif test -f "$ac_srcdir/configure"; then
2349 $SHELL "$ac_srcdir/configure" --help=recursive
2351 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2353 cd "$ac_pwd" || { ac_status=$?; break; }
2357 test -n "$ac_init_help" && exit $ac_status
2358 if $ac_init_version; then
2360 asterisk configure trunk
2361 generated by GNU Autoconf 2.71
2363 Copyright (C) 2021 Free Software Foundation, Inc.
2364 This configure script is free software; the Free Software Foundation
2365 gives unlimited permission to copy, distribute and modify it.
2372 ## ------------------------ ##
2373 ## Autoconf initialization. ##
2374 ## ------------------------ ##
2376 # ac_fn_c_try_compile LINENO
2377 # --------------------------
2378 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2379 ac_fn_c_try_compile ()
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 rm -f conftest.$ac_objext conftest.beam
2383 if { { ac_try="$ac_compile"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389 printf "%s\n" "$ac_try_echo"; } >&5
2390 (eval "$ac_compile") 2>conftest.err
2392 if test -s conftest.err; then
2393 grep -v '^ *+' conftest.err >conftest.er1
2394 cat conftest.er1 >&5
2395 mv -f conftest.er1 conftest.err
2397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } && {
2399 test -z "$ac_c_werror_flag" ||
2400 test ! -s conftest.err
2401 } && test -s conftest.$ac_objext
2405 printf "%s\n" "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2410 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2411 as_fn_set_status $ac_retval
2413 } # ac_fn_c_try_compile
2415 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2416 # -------------------------------------------------------
2417 # Tests whether HEADER exists and can be compiled using the include files in
2418 # INCLUDES, setting the cache variable VAR accordingly.
2419 ac_fn_c_check_header_compile ()
2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2423 printf %s "checking for $2... " >&6; }
2424 if eval test \${$3+y}
2426 printf %s "(cached) " >&6
2428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2429 /* end confdefs.h. */
2433 if ac_fn_c_try_compile "$LINENO"
2439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2443 printf "%s\n" "$ac_res" >&6; }
2444 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2446 } # ac_fn_c_check_header_compile
2448 # ac_fn_cxx_try_compile LINENO
2449 # ----------------------------
2450 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2451 ac_fn_cxx_try_compile ()
2453 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2454 rm -f conftest.$ac_objext conftest.beam
2455 if { { ac_try="$ac_compile"
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2461 printf "%s\n" "$ac_try_echo"; } >&5
2462 (eval "$ac_compile") 2>conftest.err
2464 if test -s conftest.err; then
2465 grep -v '^ *+' conftest.err >conftest.er1
2466 cat conftest.er1 >&5
2467 mv -f conftest.er1 conftest.err
2469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2470 test $ac_status = 0; } && {
2471 test -z "$ac_cxx_werror_flag" ||
2472 test ! -s conftest.err
2473 } && test -s conftest.$ac_objext
2477 printf "%s\n" "$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_compile
2487 # ac_fn_c_try_cpp LINENO
2488 # ----------------------
2489 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 if { { ac_try="$ac_cpp conftest.$ac_ext"
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;;
2498 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2499 printf "%s\n" "$ac_try_echo"; } >&5
2500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2502 if test -s conftest.err; then
2503 grep -v '^ *+' conftest.err >conftest.er1
2504 cat conftest.er1 >&5
2505 mv -f conftest.er1 conftest.err
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; } > conftest.i && {
2509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2510 test ! -s conftest.err
2515 printf "%s\n" "$as_me: failed program was:" >&5
2516 sed 's/^/| /' conftest.$ac_ext >&5
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2521 as_fn_set_status $ac_retval
2525 # ac_fn_cxx_try_cpp LINENO
2526 # ------------------------
2527 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2528 ac_fn_cxx_try_cpp ()
2530 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2531 if { { ac_try="$ac_cpp conftest.$ac_ext"
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2537 printf "%s\n" "$ac_try_echo"; } >&5
2538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2540 if test -s conftest.err; then
2541 grep -v '^ *+' conftest.err >conftest.er1
2542 cat conftest.er1 >&5
2543 mv -f conftest.er1 conftest.err
2545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2546 test $ac_status = 0; } > conftest.i && {
2547 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2548 test ! -s conftest.err
2553 printf "%s\n" "$as_me: failed program was:" >&5
2554 sed 's/^/| /' conftest.$ac_ext >&5
2558 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2559 as_fn_set_status $ac_retval
2561 } # ac_fn_cxx_try_cpp
2563 # ac_fn_c_try_link LINENO
2564 # -----------------------
2565 # Try to link conftest.$ac_ext, and return whether this succeeded.
2568 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2569 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2570 if { { ac_try="$ac_link"
2572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2573 *) ac_try_echo=$ac_try;;
2575 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2576 printf "%s\n" "$ac_try_echo"; } >&5
2577 (eval "$ac_link") 2>conftest.err
2579 if test -s conftest.err; then
2580 grep -v '^ *+' conftest.err >conftest.er1
2581 cat conftest.er1 >&5
2582 mv -f conftest.er1 conftest.err
2584 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2585 test $ac_status = 0; } && {
2586 test -z "$ac_c_werror_flag" ||
2587 test ! -s conftest.err
2588 } && test -s conftest$ac_exeext && {
2589 test "$cross_compiling" = yes ||
2590 test -x conftest$ac_exeext
2595 printf "%s\n" "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2600 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2601 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2602 # interfere with the next link command; also delete a directory that is
2603 # left behind by Apple's compiler. We do this before executing the actions.
2604 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606 as_fn_set_status $ac_retval
2608 } # ac_fn_c_try_link
2610 # ac_fn_c_check_func LINENO FUNC VAR
2611 # ----------------------------------
2612 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2613 ac_fn_c_check_func ()
2615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2617 printf %s "checking for $2... " >&6; }
2618 if eval test \${$3+y}
2620 printf %s "(cached) " >&6
2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623 /* end confdefs.h. */
2624 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2625 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2626 #define $2 innocuous_$2
2628 /* System header to define __stub macros and hopefully few prototypes,
2629 which can conflict with char $2 (); below. */
2634 /* Override any GCC internal prototype to avoid an error.
2635 Use char because int might match the return type of a GCC
2636 builtin and then its argument prototype would still apply. */
2641 /* The GNU C library defines this for functions which it implements
2642 to always fail with ENOSYS. Some functions are actually named
2643 something starting with __ and the normal name is an alias. */
2644 #if defined __stub_$2 || defined __stub___$2
2656 if ac_fn_c_try_link "$LINENO"
2662 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2663 conftest$ac_exeext conftest.$ac_ext
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 printf "%s\n" "$ac_res" >&6; }
2668 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2670 } # ac_fn_c_check_func
2672 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2673 # -------------------------------------------
2674 # Tests whether TYPE exists after having included INCLUDES, setting cache
2675 # variable VAR accordingly.
2676 ac_fn_c_check_type ()
2678 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2680 printf %s "checking for $2... " >&6; }
2681 if eval test \${$3+y}
2683 printf %s "(cached) " >&6
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h. */
2698 if ac_fn_c_try_compile "$LINENO"
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2712 if ac_fn_c_try_compile "$LINENO"
2718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2724 printf "%s\n" "$ac_res" >&6; }
2725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2727 } # ac_fn_c_check_type
2729 # ac_fn_c_try_run LINENO
2730 # ----------------------
2731 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2732 # executables *can* be run.
2735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2736 if { { ac_try="$ac_link"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742 printf "%s\n" "$ac_try_echo"; } >&5
2743 (eval "$ac_link") 2>&5
2745 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2747 { { case "(($ac_try" in
2748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2749 *) ac_try_echo=$ac_try;;
2751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2752 printf "%s\n" "$ac_try_echo"; } >&5
2753 (eval "$ac_try") 2>&5
2755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2756 test $ac_status = 0; }; }
2760 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2761 printf "%s\n" "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2764 ac_retval=$ac_status
2766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2768 as_fn_set_status $ac_retval
2772 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2773 # ----------------------------------------------------
2774 # Tries to find if the field MEMBER exists in type AGGR, after including
2775 # INCLUDES, setting cache variable VAR accordingly.
2776 ac_fn_c_check_member ()
2778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2780 printf %s "checking for $2.$3... " >&6; }
2781 if eval test \${$4+y}
2783 printf %s "(cached) " >&6
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h. */
2798 if ac_fn_c_try_compile "$LINENO"
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2809 if (sizeof ac_aggr.$3)
2815 if ac_fn_c_try_compile "$LINENO"
2821 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2823 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2827 printf "%s\n" "$ac_res" >&6; }
2828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2830 } # ac_fn_c_check_member
2832 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2833 # ------------------------------------------------------------------
2834 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2835 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2839 as_decl_name=`echo $2|sed 's/ *(.*//'`
2840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2841 printf %s "checking whether $as_decl_name is declared... " >&6; }
2842 if eval test \${$3+y}
2844 printf %s "(cached) " >&6
2846 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2847 eval ac_save_FLAGS=\$$6
2848 as_fn_append $6 " $5"
2849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850 /* end confdefs.h. */
2855 #ifndef $as_decl_name
2857 (void) $as_decl_use;
2859 (void) $as_decl_name;
2867 if ac_fn_c_try_compile "$LINENO"
2873 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2874 eval $6=\$ac_save_FLAGS
2878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2879 printf "%s\n" "$ac_res" >&6; }
2880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2882 } # ac_fn_check_decl
2884 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2885 # --------------------------------------------
2886 # Tries to find the compile-time value of EXPR in a program that includes
2887 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2889 ac_fn_c_compute_int ()
2891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2892 if test "$cross_compiling" = yes; then
2893 # Depending upon the size, compute the lo and hi bounds.
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895 /* end confdefs.h. */
2900 static int test_array [1 - 2 * !(($2) >= 0)];
2902 return test_array [0];
2908 if ac_fn_c_try_compile "$LINENO"
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h. */
2918 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2920 return test_array [0];
2926 if ac_fn_c_try_compile "$LINENO"
2928 ac_hi=$ac_mid; break
2930 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2931 if test $ac_lo -le $ac_mid; then
2935 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2946 static int test_array [1 - 2 * !(($2) < 0)];
2948 return test_array [0];
2954 if ac_fn_c_try_compile "$LINENO"
2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959 /* end confdefs.h. */
2964 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2966 return test_array [0];
2972 if ac_fn_c_try_compile "$LINENO"
2974 ac_lo=$ac_mid; break
2976 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2977 if test $ac_mid -le $ac_hi; then
2981 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2983 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2991 # Binary search between lo and hi bounds.
2992 while test "x$ac_lo" != "x$ac_hi"; do
2993 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
3000 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
3002 return test_array [0];
3008 if ac_fn_c_try_compile "$LINENO"
3012 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
3014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3017 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3024 static long int longval (void) { return $2; }
3025 static unsigned long int ulongval (void) { return $2; }
3032 FILE *f = fopen ("conftest.val", "w");
3037 long int i = longval ();
3040 fprintf (f, "%ld", i);
3044 unsigned long int i = ulongval ();
3047 fprintf (f, "%lu", i);
3049 /* Do not output a trailing newline, as this causes \r\n confusion
3050 on some platforms. */
3051 return ferror (f) || fclose (f) != 0;
3057 if ac_fn_c_try_run "$LINENO"
3059 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3064 conftest.$ac_objext conftest.beam conftest.$ac_ext
3068 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3069 as_fn_set_status $ac_retval
3071 } # ac_fn_c_compute_int
3072 ac_configure_args_raw=
3077 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3079 as_fn_append ac_configure_args_raw " '$ac_arg'"
3082 case $ac_configure_args_raw in
3086 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3087 ac_unsafe_a="$ac_unsafe_z#~"
3088 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3089 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3092 cat >config.log <<_ACEOF
3093 This file contains any messages produced by compilers while
3094 running configure, to aid debugging if configure makes a mistake.
3096 It was created by asterisk $as_me trunk, which was
3097 generated by GNU Autoconf 2.71. Invocation command line was
3099 $ $0$ac_configure_args_raw
3109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3121 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132 case $as_dir in #(((
3135 *) as_dir=$as_dir/ ;;
3137 printf "%s\n" "PATH: $as_dir"
3153 # Keep a trace of the command line.
3154 # Strip out --no-create and --no-recursion so they do not pile up.
3155 # Strip out --silent because we don't want to record it for future runs.
3156 # Also quote any args containing shell meta-characters.
3157 # Make two passes to allow for proper duplicate-argument suppression.
3161 ac_must_keep_next=false
3167 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3169 | -silent | --silent | --silen | --sile | --sil)
3172 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3175 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3177 as_fn_append ac_configure_args1 " '$ac_arg'"
3178 if test $ac_must_keep_next = true; then
3179 ac_must_keep_next=false # Got value, back to normal.
3182 *=* | --config-cache | -C | -disable-* | --disable-* \
3183 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3184 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3185 | -with-* | --with-* | -without-* | --without-* | --x)
3186 case "$ac_configure_args0 " in
3187 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3190 -* ) ac_must_keep_next=true ;;
3193 as_fn_append ac_configure_args " '$ac_arg'"
3198 { ac_configure_args0=; unset ac_configure_args0;}
3199 { ac_configure_args1=; unset ac_configure_args1;}
3201 # When interrupted or exit'd, cleanup temporary files, and complete
3202 # config.log. We remove comments because anyway the quotes in there
3203 # would cause problems or look ugly.
3204 # WARNING: Use '\'' to represent an apostrophe within the trap.
3205 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3206 trap 'exit_status=$?
3209 # Save into config.log some information that might help in debugging.
3213 printf "%s\n" "## ---------------- ##
3214 ## Cache variables. ##
3215 ## ---------------- ##"
3217 # The following way of writing the cache mishandles newlines in values,
3219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3220 eval ac_val=\$$ac_var
3224 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3225 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3228 _ | IFS | as_nl) ;; #(
3229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3230 *) { eval $ac_var=; unset $ac_var;} ;;
3235 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3236 *${as_nl}ac_space=\ *)
3238 "s/'\''/'\''\\\\'\'''\''/g;
3239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3249 printf "%s\n" "## ----------------- ##
3250 ## Output variables. ##
3251 ## ----------------- ##"
3253 for ac_var in $ac_subst_vars
3255 eval ac_val=\$$ac_var
3257 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3259 printf "%s\n" "$ac_var='\''$ac_val'\''"
3263 if test -n "$ac_subst_files"; then
3264 printf "%s\n" "## ------------------- ##
3265 ## File substitutions. ##
3266 ## ------------------- ##"
3268 for ac_var in $ac_subst_files
3270 eval ac_val=\$$ac_var
3272 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3274 printf "%s\n" "$ac_var='\''$ac_val'\''"
3279 if test -s confdefs.h; then
3280 printf "%s\n" "## ----------- ##
3287 test "$ac_signal" != 0 &&
3288 printf "%s\n" "$as_me: caught signal $ac_signal"
3289 printf "%s\n" "$as_me: exit $exit_status"
3291 rm -f core *.core core.conftest.* &&
3292 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3295 for ac_signal in 1 2 13 15; do
3296 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3300 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3301 rm -f -r conftest* confdefs.h
3303 printf "%s\n" "/* confdefs.h */" > confdefs.h
3305 # Predefined preprocessor variables.
3307 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3309 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3311 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3313 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3315 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3317 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3320 # Let the site file select an alternate cache file if it wants to.
3321 # Prefer an explicitly selected file to automatically selected ones.
3322 if test -n "$CONFIG_SITE"; then
3323 ac_site_files="$CONFIG_SITE"
3324 elif test "x$prefix" != xNONE; then
3325 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3327 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3330 for ac_site_file in $ac_site_files
3332 case $ac_site_file in #(
3336 ac_site_file=./$ac_site_file ;;
3338 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3340 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3341 sed 's/^/| /' "$ac_site_file" >&5
3343 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3345 as_fn_error $? "failed to load site script $ac_site_file
3346 See \`config.log' for more details" "$LINENO" 5; }
3350 if test -r "$cache_file"; then
3351 # Some versions of bash will fail to source /dev/null (special files
3352 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3355 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3357 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3358 *) . "./$cache_file";;
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3363 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3367 # Test code for whether the C compiler supports C89 (global declarations)
3368 ac_c_conftest_c89_globals='
3369 /* Does the compiler advertise C89 conformance?
3370 Do not test the value of __STDC__, because some compilers set it to 0
3371 while being otherwise adequately conformant. */
3372 #if !defined __STDC__
3373 # error "Compiler does not advertise C89 conformance"
3379 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3380 struct buf { int x; };
3381 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3382 static char *e (p, i)
3388 static char *f (char * (*g) (char **, int), char **p, ...)
3393 s = g (p, va_arg (v,int));
3398 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3399 function prototypes and stuff, but not \xHH hex character constants.
3400 These do not provoke an error unfortunately, instead are silently treated
3401 as an "x". The following induces an error, until -std is added to get
3402 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3403 array size at least. It is necessary to write \x00 == 0 to get something
3404 that is true only with -std. */
3405 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3407 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408 inside strings and character constants. */
3409 #define FOO(x) '\''x'\''
3410 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3412 int test (int i, double x);
3413 struct s1 {int (*f) (int a);};
3414 struct s2 {int (*f) (double a);};
3415 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3418 # Test code for whether the C compiler supports C89 (body of main).
3419 ac_c_conftest_c89_main='
3420 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3423 # Test code for whether the C compiler supports C99 (global declarations)
3424 ac_c_conftest_c99_globals='
3425 // Does the compiler advertise C99 conformance?
3426 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3427 # error "Compiler does not advertise C99 conformance"
3430 #include <stdbool.h>
3431 extern int puts (const char *);
3432 extern int printf (const char *, ...);
3433 extern int dprintf (int, const char *, ...);
3434 extern void *malloc (size_t);
3436 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3437 // dprintf is used instead of fprintf to avoid needing to declare
3439 #define debug(...) dprintf (2, __VA_ARGS__)
3440 #define showlist(...) puts (#__VA_ARGS__)
3441 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3443 test_varargs_macros (void)
3448 debug ("X = %d\n", x);
3449 showlist (The first, second, and third items.);
3450 report (x>y, "x is %d but y is %d", x, y);
3453 // Check long long types.
3454 #define BIG64 18446744073709551615ull
3455 #define BIG32 4294967295ul
3456 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3458 #error "your preprocessor is broken"
3462 #error "your preprocessor is broken"
3464 static long long int bignum = -9223372036854775807LL;
3465 static unsigned long long int ubignum = BIG64;
3467 struct incomplete_array
3475 const wchar_t *name;
3479 typedef const char *ccp;
3482 test_restrict (ccp restrict text)
3484 // See if C++-style comments work.
3485 // Iterate through items via the restricted pointer.
3486 // Also check for declarations in for loops.
3487 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3492 // Check varargs and va_copy.
3494 test_varargs (const char *format, ...)
3497 va_start (args, format);
3499 va_copy (args_copy, args);
3501 const char *str = "";
3509 case '\''s'\'': // string
3510 str = va_arg (args_copy, const char *);
3512 case '\''d'\'': // int
3513 number = va_arg (args_copy, int);
3515 case '\''f'\'': // float
3516 fnumber = va_arg (args_copy, double);
3525 return *str && number && fnumber;
3529 # Test code for whether the C compiler supports C99 (body of main).
3530 ac_c_conftest_c99_main='
3532 _Bool success = false;
3533 success |= (argc != 0);
3536 if (test_restrict ("String literal") == 0)
3538 char *restrict newvar = "Another string";
3541 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3542 test_varargs_macros ();
3544 // Check flexible array members.
3545 struct incomplete_array *ia =
3546 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3548 for (int i = 0; i < ia->datasize; ++i)
3549 ia->data[i] = i * 1.234;
3551 // Check named initializers.
3552 struct named_init ni = {
3554 .name = L"Test wide string",
3555 .average = 543.34343,
3560 int dynamic_array[ni.number];
3561 dynamic_array[0] = argv[0][0];
3562 dynamic_array[ni.number - 1] = 543;
3564 // work around unused variable warnings
3565 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3566 || dynamic_array[ni.number - 1] != 543);
3569 # Test code for whether the C compiler supports C11 (global declarations)
3570 ac_c_conftest_c11_globals='
3571 // Does the compiler advertise C11 conformance?
3572 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3573 # error "Compiler does not advertise C11 conformance"
3577 char _Alignas (double) aligned_as_double;
3578 char _Alignas (0) no_special_alignment;
3579 extern char aligned_as_int;
3580 char _Alignas (0) _Alignas (int) aligned_as_int;
3585 int_alignment = _Alignof (int),
3586 int_array_alignment = _Alignof (int[100]),
3587 char_alignment = _Alignof (char)
3589 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3592 int _Noreturn does_not_return (void) { for (;;) continue; }
3594 // Check _Static_assert.
3595 struct test_static_assert
3598 _Static_assert (sizeof (int) <= sizeof (long int),
3599 "_Static_assert does not work in struct");
3603 // Check UTF-8 literals.
3604 #define u8 syntax error!
3605 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3607 // Check duplicate typedefs.
3608 typedef long *long_ptr;
3609 typedef long int *long_ptr;
3610 typedef long_ptr long_ptr;
3612 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3616 struct { int i; int j; };
3617 struct { int k; long int l; } w;
3623 # Test code for whether the C compiler supports C11 (body of main).
3624 ac_c_conftest_c11_main='
3625 _Static_assert ((offsetof (struct anonymous, i)
3626 == offsetof (struct anonymous, w.k)),
3627 "Anonymous union alignment botch");
3633 # Test code for whether the C compiler supports C11 (complete).
3634 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3635 ${ac_c_conftest_c99_globals}
3636 ${ac_c_conftest_c11_globals}
3639 main (int argc, char **argv)
3642 ${ac_c_conftest_c89_main}
3643 ${ac_c_conftest_c99_main}
3644 ${ac_c_conftest_c11_main}
3649 # Test code for whether the C compiler supports C99 (complete).
3650 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3651 ${ac_c_conftest_c99_globals}
3654 main (int argc, char **argv)
3657 ${ac_c_conftest_c89_main}
3658 ${ac_c_conftest_c99_main}
3663 # Test code for whether the C compiler supports C89 (complete).
3664 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3667 main (int argc, char **argv)
3670 ${ac_c_conftest_c89_main}
3675 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3676 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3677 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3678 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3679 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3680 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3681 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3682 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3683 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3684 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3685 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3686 # Test code for whether the C++ compiler supports C++98 (global declarations)
3687 ac_cxx_conftest_cxx98_globals='
3688 // Does the compiler advertise C++98 conformance?
3689 #if !defined __cplusplus || __cplusplus < 199711L
3690 # error "Compiler does not advertise C++98 conformance"
3693 // These inclusions are to reject old compilers that
3694 // lack the unsuffixed header files.
3696 #include <exception>
3698 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3699 extern void assert (int);
3701 extern int strcmp (const char *, const char *);
3704 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3705 using std::exception;
3710 void test_exception_syntax()
3714 } catch (const char *s) {
3715 // Extra parentheses suppress a warning when building autoconf itself,
3716 // due to lint rules shared with more typical C programs.
3717 assert (!(strcmp) (s, "test"));
3721 template <typename T> struct test_template
3724 explicit test_template(T t) : val(t) {}
3725 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3728 } // anonymous namespace
3731 # Test code for whether the C++ compiler supports C++98 (body of main)
3732 ac_cxx_conftest_cxx98_main='
3736 test_exception_syntax ();
3737 test_template<double> tt (2.0);
3738 assert (tt.add (4) == 6.0);
3739 assert (true && !false);
3743 # Test code for whether the C++ compiler supports C++11 (global declarations)
3744 ac_cxx_conftest_cxx11_globals='
3745 // Does the compiler advertise C++ 2011 conformance?
3746 #if !defined __cplusplus || __cplusplus < 201103L
3747 # error "Compiler does not advertise C++11 conformance"
3752 constexpr int get_val() { return 20; }
3763 delegate(int n) : n(n) {}
3764 delegate(): delegate(2354) {}
3766 virtual int getval() { return this->n; };
3771 class overridden : public delegate
3774 overridden(int n): delegate(n) {}
3775 virtual int getval() override final { return this->n * 2; }
3781 nocopy(int i): i(i) {}
3783 nocopy(const nocopy&) = delete;
3784 nocopy & operator=(const nocopy&) = delete;
3789 // for testing lambda expressions
3790 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3795 // for testing variadic templates and trailing return types
3796 template <typename V> auto sum(V first) -> V
3800 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3802 return first + sum(rest...);
3807 # Test code for whether the C++ compiler supports C++11 (body of main)
3808 ac_cxx_conftest_cxx11_main='
3810 // Test auto and decltype
3812 auto a2 = 48573953.4;
3813 auto a3 = "String literal";
3816 for (auto i = a3; *i; ++i) { total += *i; }
3818 decltype(a2) a4 = 34895.034;
3822 short sa[cxx11test::get_val()] = { 0 };
3825 // Test initializer lists
3826 cxx11test::testinit il = { 4323, 435234.23544 };
3829 // Test range-based for
3830 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3831 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3832 for (auto &x : array) { x += 23; }
3835 // Test lambda expressions
3836 using cxx11test::eval;
3837 assert (eval ([](int x) { return x*2; }, 21) == 42);
3839 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3841 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3845 // Test use of variadic templates
3846 using cxx11test::sum;
3849 auto c = sum(1.0, 2.0, 3.0);
3852 // Test constructor delegation
3853 cxx11test::delegate d1;
3854 cxx11test::delegate d2();
3855 cxx11test::delegate d3(45);
3858 // Test override and final
3859 cxx11test::overridden o1(55464);
3866 // Test template brackets
3867 test_template<::test_template<int>> v(test_template<int>(12));
3871 char const *utf8 = u8"UTF-8 string \u2500";
3872 char16_t const *utf16 = u"UTF-8 string \u2500";
3873 char32_t const *utf32 = U"UTF-32 string \u2500";
3877 # Test code for whether the C compiler supports C++11 (complete).
3878 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3879 ${ac_cxx_conftest_cxx11_globals}
3882 main (int argc, char **argv)
3885 ${ac_cxx_conftest_cxx98_main}
3886 ${ac_cxx_conftest_cxx11_main}
3891 # Test code for whether the C compiler supports C++98 (complete).
3892 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3894 main (int argc, char **argv)
3897 ${ac_cxx_conftest_cxx98_main}
3902 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3903 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3904 as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3905 as_fn_append ac_header_c_list " sys/select.h sys_select_h HAVE_SYS_SELECT_H"
3906 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3907 as_fn_append ac_header_c_list " utime.h utime_h HAVE_UTIME_H"
3908 as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3910 # Auxiliary files required by this configure script.
3911 ac_aux_files="install-sh config.guess config.sub"
3913 # Locations in which to look for auxiliary files.
3914 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3916 # Search for a directory containing all of the required auxiliary files,
3917 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3918 # If we don't find one directory that contains all the files we need,
3919 # we report the set of missing files from the *first* directory in
3920 # $ac_aux_dir_candidates and give up.
3921 ac_missing_aux_files=""
3922 ac_first_candidate=:
3923 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 for as_dir in $ac_aux_dir_candidates
3929 case $as_dir in #(((
3932 *) as_dir=$as_dir/ ;;
3936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3937 ac_aux_dir_found=yes
3939 for ac_aux in $ac_aux_files
3941 # As a special case, if "install-sh" is required, that requirement
3942 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3943 # and $ac_install_sh is set appropriately for whichever one is found.
3944 if test x"$ac_aux" = x"install-sh"
3946 if test -f "${as_dir}install-sh"; then
3947 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3948 ac_install_sh="${as_dir}install-sh -c"
3949 elif test -f "${as_dir}install.sh"; then
3950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3951 ac_install_sh="${as_dir}install.sh -c"
3952 elif test -f "${as_dir}shtool"; then
3953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3954 ac_install_sh="${as_dir}shtool install -c"
3957 if $ac_first_candidate; then
3958 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3964 if test -f "${as_dir}${ac_aux}"; then
3965 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3968 if $ac_first_candidate; then
3969 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3976 if test "$ac_aux_dir_found" = yes; then
3977 ac_aux_dir="$as_dir"
3980 ac_first_candidate=false
3989 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3993 # These three variables are undocumented and unsupported,
3994 # and are intended to be withdrawn in a future Autoconf release.
3995 # They can cause serious problems if a builder's source tree is in a directory
3996 # whose full name contains unusual characters.
3997 if test -f "${ac_aux_dir}config.guess"; then
3998 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
4000 if test -f "${ac_aux_dir}config.sub"; then
4001 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
4003 if test -f "$ac_aux_dir/configure"; then
4004 ac_configure="$SHELL ${ac_aux_dir}configure"
4007 # Check that the precious variables saved in the cache have kept the same
4009 ac_cache_corrupted=false
4010 for ac_var in $ac_precious_vars; do
4011 eval ac_old_set=\$ac_cv_env_${ac_var}_set
4012 eval ac_new_set=\$ac_env_${ac_var}_set
4013 eval ac_old_val=\$ac_cv_env_${ac_var}_value
4014 eval ac_new_val=\$ac_env_${ac_var}_value
4015 case $ac_old_set,$ac_new_set in
4017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
4018 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
4019 ac_cache_corrupted=: ;;
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
4022 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
4023 ac_cache_corrupted=: ;;
4026 if test "x$ac_old_val" != "x$ac_new_val"; then
4027 # differences in whitespace do not lead to failure.
4028 ac_old_val_w=`echo x $ac_old_val`
4029 ac_new_val_w=`echo x $ac_new_val`
4030 if test "$ac_old_val_w" != "$ac_new_val_w"; then
4031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
4032 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
4033 ac_cache_corrupted=:
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
4036 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
4037 eval $ac_var=\$ac_old_val
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
4040 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
4041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
4042 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
4045 # Pass precious variables to config.status.
4046 if test "$ac_new_set" = set; then
4048 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4049 *) ac_arg=$ac_var=$ac_new_val ;;
4051 case " $ac_configure_args " in
4052 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
4053 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4057 if $ac_cache_corrupted; then
4058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4059 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4061 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
4062 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
4063 and start over" "$LINENO" 5
4065 ## -------------------- ##
4066 ## Main body of script. ##
4067 ## -------------------- ##
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4077 # cross-compile macros
4081 # Make sure we can run config.sub.
4082 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4083 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4086 printf %s "checking build system type... " >&6; }
4087 if test ${ac_cv_build+y}
4089 printf %s "(cached) " >&6
4091 ac_build_alias=$build_alias
4092 test "x$ac_build_alias" = x &&
4093 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4094 test "x$ac_build_alias" = x &&
4095 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4096 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4097 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4101 printf "%s\n" "$ac_cv_build" >&6; }
4102 case $ac_cv_build in
4104 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4107 ac_save_IFS=$IFS; IFS='-'
4113 # Remember, the first character of IFS is used to create $*,
4114 # except with old shells:
4117 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4121 printf %s "checking host system type... " >&6; }
4122 if test ${ac_cv_host+y}
4124 printf %s "(cached) " >&6
4126 if test "x$host_alias" = x; then
4127 ac_cv_host=$ac_cv_build
4129 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4130 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4135 printf "%s\n" "$ac_cv_host" >&6; }
4138 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4141 ac_save_IFS=$IFS; IFS='-'
4147 # Remember, the first character of IFS is used to create $*,
4148 # except with old shells:
4151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4155 # check existence of the package
4160 # preserve any CFLAGS or LDFLAGS that may be set
4161 # NOTE: This must be done before calling any macros that end up
4162 # calling AC_PROG_CC or the like, since they will set a default
4163 # set of CFLAGS ("-g -O2") if the user did not supply any, and
4164 # we don't want those default flags to be carried over into the
4165 # rest of the build system since we have other means of controlling
4166 # debugging symbol generation and optimization.
4167 CONFIG_CFLAGS="${CFLAGS}"
4168 CONFIG_LDFLAGS="${LDFLAGS}"
4172 # specify output header file
4173 ac_config_headers="$ac_config_headers include/asterisk/autoconfig.h"
4176 # Note: AC_PROG_CC *must* be specified before AC_USE_SYSTEM_EXTENSIONS or any
4177 # other macro that uses the C compiler, or the default order will be used.
4188 ac_cpp='$CPP $CPPFLAGS'
4189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4192 if test -n "$ac_tool_prefix"; then
4193 for ac_prog in gcc cc
4195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 printf %s "checking for $ac_word... " >&6; }
4199 if test ${ac_cv_prog_CC+y}
4201 printf %s "(cached) " >&6
4203 if test -n "$CC"; then
4204 ac_cv_prog_CC="$CC" # Let the user override the test.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 case $as_dir in #(((
4213 *) as_dir=$as_dir/ ;;
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4217 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4218 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4228 if test -n "$CC"; then
4229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4230 printf "%s\n" "$CC" >&6; }
4232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 printf "%s\n" "no" >&6; }
4237 test -n "$CC" && break
4240 if test -z "$CC"; then
4242 for ac_prog in gcc cc
4244 # Extract the first word of "$ac_prog", so it can be a program name with args.
4245 set dummy $ac_prog; ac_word=$2
4246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4247 printf %s "checking for $ac_word... " >&6; }
4248 if test ${ac_cv_prog_ac_ct_CC+y}
4250 printf %s "(cached) " >&6
4252 if test -n "$ac_ct_CC"; then
4253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 case $as_dir in #(((
4262 *) as_dir=$as_dir/ ;;
4264 for ac_exec_ext in '' $ac_executable_extensions; do
4265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4266 ac_cv_prog_ac_ct_CC="$ac_prog"
4267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4277 if test -n "$ac_ct_CC"; then
4278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4279 printf "%s\n" "$ac_ct_CC" >&6; }
4281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 printf "%s\n" "no" >&6; }
4286 test -n "$ac_ct_CC" && break
4289 if test "x$ac_ct_CC" = x; then
4292 case $cross_compiling:$ac_tool_warned in
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4295 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4296 ac_tool_warned=yes ;;
4303 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4304 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4305 as_fn_error $? "no acceptable C compiler found in \$PATH
4306 See \`config.log' for more details" "$LINENO" 5; }
4308 # Provide some information about the compiler.
4309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4312 for ac_option in --version -v -V -qversion -version; do
4313 { { ac_try="$ac_compiler $ac_option >&5"
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4319 printf "%s\n" "$ac_try_echo"; } >&5
4320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4322 if test -s conftest.err; then
4324 ... rest of stderr output deleted ...
4325 10q' conftest.err >conftest.er1
4326 cat conftest.er1 >&5
4328 rm -f conftest.er1 conftest.err
4329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4330 test $ac_status = 0; }
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4344 ac_clean_files_save=$ac_clean_files
4345 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4346 # Try to create an executable without -o first, disregard a.out.
4347 # It will help us diagnose broken compilers, and finding out an intuition
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4350 printf %s "checking whether the C compiler works... " >&6; }
4351 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4353 # The possible output files:
4354 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4357 for ac_file in $ac_files
4360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4361 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4366 if { { ac_try="$ac_link_default"
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372 printf "%s\n" "$ac_try_echo"; } >&5
4373 (eval "$ac_link_default") 2>&5
4375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; }
4378 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4379 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4380 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4381 # so that the user can short-circuit this test for compilers unknown to
4383 for ac_file in $ac_files ''
4385 test -f "$ac_file" || continue
4387 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4390 # We found the default executable, but exeext='' is most
4394 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4396 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4398 # We set ac_cv_exeext here because the later test for it is not
4399 # safe: cross compilers may not add the suffix if given an `-o'
4400 # argument, so we may need to know it at that point already.
4401 # Even if this section looks crufty: it has the advantage of
4408 test "$ac_cv_exeext" = no && ac_cv_exeext=
4413 if test -z "$ac_file"
4415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4416 printf "%s\n" "no" >&6; }
4417 printf "%s\n" "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4422 as_fn_error 77 "C compiler cannot create executables
4423 See \`config.log' for more details" "$LINENO" 5; }
4425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4426 printf "%s\n" "yes" >&6; }
4428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4429 printf %s "checking for C compiler default output file name... " >&6; }
4430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4431 printf "%s\n" "$ac_file" >&6; }
4432 ac_exeext=$ac_cv_exeext
4434 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4435 ac_clean_files=$ac_clean_files_save
4436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4437 printf %s "checking for suffix of executables... " >&6; }
4438 if { { ac_try="$ac_link"
4440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4441 *) ac_try_echo=$ac_try;;
4443 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4444 printf "%s\n" "$ac_try_echo"; } >&5
4445 (eval "$ac_link") 2>&5
4447 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4448 test $ac_status = 0; }
4450 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4451 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4452 # work properly (i.e., refer to `conftest.exe'), while it won't with
4454 for ac_file in conftest.exe conftest conftest.*; do
4455 test -f "$ac_file" || continue
4457 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4458 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4464 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4465 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4466 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4467 See \`config.log' for more details" "$LINENO" 5; }
4469 rm -f conftest conftest$ac_cv_exeext
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4471 printf "%s\n" "$ac_cv_exeext" >&6; }
4473 rm -f conftest.$ac_ext
4474 EXEEXT=$ac_cv_exeext
4476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477 /* end confdefs.h. */
4482 FILE *f = fopen ("conftest.out", "w");
4483 return ferror (f) || fclose (f) != 0;
4489 ac_clean_files="$ac_clean_files conftest.out"
4490 # Check that the compiler produces executables we can run. If not, either
4491 # the compiler is broken, or we cross compile.
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4493 printf %s "checking whether we are cross compiling... " >&6; }
4494 if test "$cross_compiling" != yes; then
4495 { { ac_try="$ac_link"
4497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4498 *) ac_try_echo=$ac_try;;
4500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4501 printf "%s\n" "$ac_try_echo"; } >&5
4502 (eval "$ac_link") 2>&5
4504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4505 test $ac_status = 0; }
4506 if { ac_try='./conftest$ac_cv_exeext'
4507 { { case "(($ac_try" in
4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509 *) ac_try_echo=$ac_try;;
4511 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4512 printf "%s\n" "$ac_try_echo"; } >&5
4513 (eval "$ac_try") 2>&5
4515 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4516 test $ac_status = 0; }; }; then
4519 if test "$cross_compiling" = maybe; then
4522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4523 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4524 as_fn_error 77 "cannot run C compiled programs.
4525 If you meant to cross compile, use \`--host'.
4526 See \`config.log' for more details" "$LINENO" 5; }
4530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4531 printf "%s\n" "$cross_compiling" >&6; }
4533 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4534 ac_clean_files=$ac_clean_files_save
4535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4536 printf %s "checking for suffix of object files... " >&6; }
4537 if test ${ac_cv_objext+y}
4539 printf %s "(cached) " >&6
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4552 rm -f conftest.o conftest.obj
4553 if { { ac_try="$ac_compile"
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559 printf "%s\n" "$ac_try_echo"; } >&5
4560 (eval "$ac_compile") 2>&5
4562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }
4565 for ac_file in conftest.o conftest.obj conftest.*; do
4566 test -f "$ac_file" || continue;
4568 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4569 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4574 printf "%s\n" "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "cannot compute suffix of object files: cannot compile
4580 See \`config.log' for more details" "$LINENO" 5; }
4582 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4584 { printf "%s\n" "$as_me:${as_lineno-$LINENO