2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for python 3.13.
5 # Report bugs to <https://github.com/python/cpython/issues/>.
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.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
30 case `(set -o) 2>/dev/null` in #(
40 # Reset variables that may have inherited troublesome values from
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
56 # Ensure predictable behavior from utilities with locale-dependent output.
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \
${$as_var+y} \
69 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
74 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
80 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
81 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
87 # Find who we are. Look in the path if we contain no directory separator.
90 *[\\/]* ) as_myself
=$0 ;;
91 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
100 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
120 _as_can_reexec
=no
; export _as_can_reexec
;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
127 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
129 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec
=; unset _as_can_reexec
;}
142 if test "x$CONFIG_SHELL" = x
; then
143 as_bourne_compatible
="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
153 case \`(set -o) 2>/dev/null\` in #(
161 as_required
="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
176 exitcode=1; echo positional parameters were not saved.
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
182 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev
/null
193 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
199 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
205 *) as_dir
=$as_dir/ ;;
210 for as_base
in sh bash ksh sh5
; do
211 # Try only shells that exist, to save several forks.
212 as_shell
=$as_dir$as_base
213 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
214 as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
216 CONFIG_SHELL
=$as_shell as_have_required
=yes
217 if as_run
=a
"$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev
/null
231 if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 as_run
=a
"$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev
/null
234 CONFIG_SHELL
=$SHELL as_have_required
=yes
239 if test "x$CONFIG_SHELL" != x
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
271 $0: https://github.com/python/cpython/issues/ about your
272 $0: system, including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
280 SHELL
=${CONFIG_SHELL-/bin/sh}
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE
= GREP_OPTIONS
=
284 unset CLICOLOR_FORCE GREP_OPTIONS
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
291 # Portably unset VAR.
294 { eval $1=; unset $1;}
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318 # Do nothing but, unlike ":", preserve the value of $?.
327 # Create "$as_dir" as a directory, including parents if necessary.
332 -*) as_dir
=.
/$as_dir;;
334 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
338 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
341 as_dirs
="'$as_qdir' $as_dirs"
342 as_dir
=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
365 test -d "$as_dir" && break
367 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
368 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p
()
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
388 eval 'as_fn_append ()
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
413 as_val
=`expr "$@" || test $? -eq 1`
419 # Do nothing but, unlike ":", preserve the value of $?.
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
433 as_status
=$1; test $as_status -eq 0 && as_status
=1
435 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit
$as_status
442 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
449 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
455 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
461 as_me
=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
480 # Avoid depending upon Character Ranges.
481 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits
='0123456789'
485 as_cr_alnum
=$as_cr_Letters$as_cr_digits
488 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
489 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
508 chmod +x
"$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec
=no
; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
519 # Exit status is that of the last command.
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C
= ECHO_N
= ECHO_T
=
528 case `echo -n x` in #(((((
530 case `echo 'xy\c'` in
531 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo
='printf %s\n'
544 as_echo_n
='printf %s'
547 rm -f conf$$ conf$$.exe conf$$.
file
548 if test -d conf$$.dir
; then
549 rm -f conf$$.dir
/conf$$.
file
552 mkdir conf$$.dir
2>/dev
/null
554 if (echo >conf$$.
file) 2>/dev
/null
; then
555 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
563 elif ln conf$$.
file conf$$
2>/dev
/null
; then
571 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
572 rmdir conf$$.dir
2>/dev
/null
574 if mkdir
-p .
2>/dev
/null
; then
575 as_mkdir_p
='mkdir -p "$as_dir"'
577 test -d .
/-p && rmdir .
/-p
582 as_executable_p
=as_fn_executable_p
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
591 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
602 ac_default_prefix
=/usr
/local
604 ac_config_libobj_dir
=.
611 # Identity of this package.
612 PACKAGE_NAME
='python'
613 PACKAGE_TARNAME
='python'
614 PACKAGE_VERSION
='3.13'
615 PACKAGE_STRING
='python 3.13'
616 PACKAGE_BUGREPORT
='https://github.com/python/cpython/issues/'
619 ac_unique_file
="Include/object.h"
620 # Factoring default headers for most tests.
621 ac_includes_default
="\
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
652 ac_subst_vars
='LTLIBOBJS
654 MODULE_XXLIMITED_35_FALSE
655 MODULE_XXLIMITED_35_TRUE
656 MODULE_XXLIMITED_FALSE
657 MODULE_XXLIMITED_TRUE
658 MODULE__CTYPES_TEST_FALSE
659 MODULE__CTYPES_TEST_TRUE
660 MODULE__XXTESTFUZZ_FALSE
661 MODULE__XXTESTFUZZ_TRUE
662 MODULE_XXSUBTYPE_FALSE
663 MODULE_XXSUBTYPE_TRUE
664 MODULE__TESTEXTERNALINSPECTION_FALSE
665 MODULE__TESTEXTERNALINSPECTION_TRUE
666 MODULE__TESTSINGLEPHASE_FALSE
667 MODULE__TESTSINGLEPHASE_TRUE
668 MODULE__TESTMULTIPHASE_FALSE
669 MODULE__TESTMULTIPHASE_TRUE
670 MODULE__TESTIMPORTMULTIPLE_FALSE
671 MODULE__TESTIMPORTMULTIPLE_TRUE
672 MODULE__TESTBUFFER_FALSE
673 MODULE__TESTBUFFER_TRUE
674 MODULE__TESTINTERNALCAPI_FALSE
675 MODULE__TESTINTERNALCAPI_TRUE
676 MODULE__TESTLIMITEDCAPI_FALSE
677 MODULE__TESTLIMITEDCAPI_TRUE
678 MODULE__TESTCLINIC_LIMITED_FALSE
679 MODULE__TESTCLINIC_LIMITED_TRUE
680 MODULE__TESTCLINIC_FALSE
681 MODULE__TESTCLINIC_TRUE
682 MODULE__TESTCAPI_FALSE
683 MODULE__TESTCAPI_TRUE
684 MODULE__HASHLIB_FALSE
692 MODULE_BINASCII_FALSE
698 MODULE__TKINTER_FALSE
700 MODULE__SQLITE3_FALSE
702 MODULE_READLINE_FALSE
708 MODULE__DECIMAL_FALSE
710 MODULE__CURSES_PANEL_FALSE
711 MODULE__CURSES_PANEL_TRUE
726 MODULE_UNICODEDATA_FALSE
727 MODULE_UNICODEDATA_TRUE
728 MODULE__MULTIBYTECODEC_FALSE
729 MODULE__MULTIBYTECODEC_TRUE
730 MODULE__CODECS_TW_FALSE
731 MODULE__CODECS_TW_TRUE
732 MODULE__CODECS_KR_FALSE
733 MODULE__CODECS_KR_TRUE
734 MODULE__CODECS_JP_FALSE
735 MODULE__CODECS_JP_TRUE
736 MODULE__CODECS_ISO2022_FALSE
737 MODULE__CODECS_ISO2022_TRUE
738 MODULE__CODECS_HK_FALSE
739 MODULE__CODECS_HK_TRUE
740 MODULE__CODECS_CN_FALSE
741 MODULE__CODECS_CN_TRUE
742 MODULE__ELEMENTTREE_FALSE
743 MODULE__ELEMENTTREE_TRUE
750 MODULE__SCPROXY_FALSE
752 MODULE_RESOURCE_FALSE
764 MODULE__DATETIME_FALSE
765 MODULE__DATETIME_TRUE
770 MODULE__STATISTICS_FALSE
771 MODULE__STATISTICS_TRUE
772 MODULE__POSIXSHMEM_FALSE
773 MODULE__POSIXSHMEM_TRUE
774 MODULE__MULTIPROCESSING_FALSE
775 MODULE__MULTIPROCESSING_TRUE
776 MODULE__ZONEINFO_FALSE
777 MODULE__ZONEINFO_TRUE
778 MODULE__INTERPQUEUES_FALSE
779 MODULE__INTERPQUEUES_TRUE
780 MODULE__INTERPCHANNELS_FALSE
781 MODULE__INTERPCHANNELS_TRUE
782 MODULE__INTERPRETERS_FALSE
783 MODULE__INTERPRETERS_TRUE
794 MODULE__POSIXSUBPROCESS_FALSE
795 MODULE__POSIXSUBPROCESS_TRUE
808 MODULE__CONTEXTVARS_FALSE
809 MODULE__CONTEXTVARS_TRUE
812 MODULE__ASYNCIO_FALSE
852 HAVE_GETHOSTBYNAME_R_3_ARG
853 HAVE_GETHOSTBYNAME_R_5_ARG
854 HAVE_GETHOSTBYNAME_R_6_ARG
885 MODULE__CTYPES_MALLOC_CLOSURE
914 BOLT_INSTRUMENT_FLAGS
980 IPHONEOS_DEPLOYMENT_TARGET
981 EXPORT_MACOSX_DEPLOYMENT_TARGET
982 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
983 _PYTHON_HOST_PLATFORM
985 FRAMEWORKINSTALLAPPSPREFIX
986 FRAMEWORKUNIXTOOLSPREFIX
988 FRAMEWORKALTINSTALLLAST
989 FRAMEWORKALTINSTALLFIRST
991 FRAMEWORKINSTALLFIRST
993 PYTHONFRAMEWORKINSTALLNAMEPREFIX
994 PYTHONFRAMEWORKINSTALLDIR
995 PYTHONFRAMEWORKPREFIX
997 PYTHONFRAMEWORKIDENTIFIER
1011 PYTHON_FOR_BUILD_DEPS
1014 FREEZE_MODULE_BOOTSTRAP_DEPS
1015 FREEZE_MODULE_BOOTSTRAP
1059 program_transform_name
1072 enable_option_checking
1076 with_universal_archs
1079 with_emscripten_target
1080 enable_wasm_dynamic_linking
1081 enable_wasm_pthreads
1084 with_static_libpython
1091 enable_experimental_jit
1092 enable_optimizations
1095 with_strict_overflow
1097 with_address_sanitizer
1098 with_memory_sanitizer
1099 with_undefined_behavior_sanitizer
1100 with_thread_sanitizer
1105 with_system_libmpdec
1106 with_decimal_contextvar
1107 enable_loadable_sqlite_extensions
1114 with_c_locale_coercion
1127 with_ssl_default_suites
1128 with_builtin_hashlib_hashes
1131 ac_precious_vars
='build_alias
1146 BOLT_INSTRUMENT_FLAGS
1180 # Initialize some variables set by options.
1182 ac_init_version
=false
1183 ac_unrecognized_opts
=
1184 ac_unrecognized_sep
=
1185 # The variables have the same names as the options, with
1186 # dashes changed to underlines.
1187 cache_file
=/dev
/null
1194 program_transform_name
=s
,x
,x
,
1202 # Installation directory options.
1203 # These are left unexpanded so users can "make install exec_prefix=/foo"
1204 # and all the variables that are supposed to be based on exec_prefix
1205 # by default will actually change.
1206 # Use braces instead of parens because sh, perl, etc. also accept them.
1207 # (The list follows the same order as the GNU Coding Standards.)
1208 bindir
='${exec_prefix}/bin'
1209 sbindir
='${exec_prefix}/sbin'
1210 libexecdir
='${exec_prefix}/libexec'
1211 datarootdir
='${prefix}/share'
1212 datadir
='${datarootdir}'
1213 sysconfdir
='${prefix}/etc'
1214 sharedstatedir
='${prefix}/com'
1215 localstatedir
='${prefix}/var'
1216 runstatedir
='${localstatedir}/run'
1217 includedir
='${prefix}/include'
1218 oldincludedir
='/usr/include'
1219 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1220 infodir
='${datarootdir}/info'
1225 libdir
='${exec_prefix}/lib'
1226 localedir
='${datarootdir}/locale'
1227 mandir
='${datarootdir}/man'
1233 # If the previous option needs an argument, assign it.
1234 if test -n "$ac_prev"; then
1235 eval $ac_prev=\
$ac_option
1241 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1246 case $ac_dashdash$ac_option in
1250 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1252 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1253 bindir
=$ac_optarg ;;
1255 -build |
--build |
--buil |
--bui |
--bu)
1256 ac_prev
=build_alias
;;
1257 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1258 build_alias
=$ac_optarg ;;
1260 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1261 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1262 ac_prev
=cache_file
;;
1263 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1264 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1265 cache_file
=$ac_optarg ;;
1267 --config-cache |
-C)
1268 cache_file
=config.cache
;;
1270 -datadir |
--datadir |
--datadi |
--datad)
1272 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1273 datadir
=$ac_optarg ;;
1275 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1276 |
--dataroo |
--dataro |
--datar)
1277 ac_prev
=datarootdir
;;
1278 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1279 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1280 datarootdir
=$ac_optarg ;;
1282 -disable-* |
--disable-*)
1283 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1286 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
1287 ac_useropt_orig
=$ac_useropt
1288 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1291 "enable_
$ac_useropt"
1293 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1294 ac_unrecognized_sep
=', ';;
1296 eval enable_
$ac_useropt=no
;;
1298 -docdir |
--docdir |
--docdi |
--doc |
--do)
1300 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1301 docdir
=$ac_optarg ;;
1303 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1305 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1306 dvidir
=$ac_optarg ;;
1308 -enable-* |
--enable-*)
1309 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1312 as_fn_error $?
"invalid feature name: \`$ac_useropt'"
1313 ac_useropt_orig
=$ac_useropt
1314 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1317 "enable_
$ac_useropt"
1319 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1320 ac_unrecognized_sep
=', ';;
1322 eval enable_
$ac_useropt=\
$ac_optarg ;;
1324 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1325 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1326 |
--exec |
--exe |
--ex)
1327 ac_prev
=exec_prefix
;;
1328 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1329 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1330 |
--exec=* |
--exe=* |
--ex=*)
1331 exec_prefix
=$ac_optarg ;;
1333 -gas |
--gas |
--ga |
--g)
1334 # Obsolete; use --with-gas.
1337 -help |
--help |
--hel |
--he |
-h)
1338 ac_init_help
=long
;;
1339 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1340 ac_init_help
=recursive
;;
1341 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1342 ac_init_help
=short
;;
1344 -host |
--host |
--hos |
--ho)
1345 ac_prev
=host_alias
;;
1346 -host=* |
--host=* |
--hos=* |
--ho=*)
1347 host_alias
=$ac_optarg ;;
1349 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1351 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1353 htmldir
=$ac_optarg ;;
1355 -includedir |
--includedir |
--includedi |
--included |
--include \
1356 |
--includ |
--inclu |
--incl |
--inc)
1357 ac_prev
=includedir
;;
1358 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1359 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1360 includedir
=$ac_optarg ;;
1362 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1364 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1365 infodir
=$ac_optarg ;;
1367 -libdir |
--libdir |
--libdi |
--libd)
1369 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1370 libdir
=$ac_optarg ;;
1372 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1373 |
--libexe |
--libex |
--libe)
1374 ac_prev
=libexecdir
;;
1375 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1376 |
--libexe=* |
--libex=* |
--libe=*)
1377 libexecdir
=$ac_optarg ;;
1379 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1380 ac_prev
=localedir
;;
1381 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1382 localedir
=$ac_optarg ;;
1384 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1385 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1386 ac_prev
=localstatedir
;;
1387 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1388 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1389 localstatedir
=$ac_optarg ;;
1391 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1393 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1394 mandir
=$ac_optarg ;;
1396 -nfp |
--nfp |
--nf)
1397 # Obsolete; use --without-fp.
1400 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1401 |
--no-cr |
--no-c |
-n)
1404 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1405 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1408 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1409 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1410 |
--oldin |
--oldi |
--old |
--ol |
--o)
1411 ac_prev
=oldincludedir
;;
1412 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1413 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1414 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1415 oldincludedir
=$ac_optarg ;;
1417 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1419 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1420 prefix
=$ac_optarg ;;
1422 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1423 |
--program-pre |
--program-pr |
--program-p)
1424 ac_prev
=program_prefix
;;
1425 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1426 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1427 program_prefix
=$ac_optarg ;;
1429 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1430 |
--program-suf |
--program-su |
--program-s)
1431 ac_prev
=program_suffix
;;
1432 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1433 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1434 program_suffix
=$ac_optarg ;;
1436 -program-transform-name |
--program-transform-name \
1437 |
--program-transform-nam |
--program-transform-na \
1438 |
--program-transform-n |
--program-transform- \
1439 |
--program-transform |
--program-transfor \
1440 |
--program-transfo |
--program-transf \
1441 |
--program-trans |
--program-tran \
1442 |
--progr-tra |
--program-tr |
--program-t)
1443 ac_prev
=program_transform_name
;;
1444 -program-transform-name=* |
--program-transform-name=* \
1445 |
--program-transform-nam=* |
--program-transform-na=* \
1446 |
--program-transform-n=* |
--program-transform-=* \
1447 |
--program-transform=* |
--program-transfor=* \
1448 |
--program-transfo=* |
--program-transf=* \
1449 |
--program-trans=* |
--program-tran=* \
1450 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1451 program_transform_name
=$ac_optarg ;;
1453 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1455 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1456 pdfdir
=$ac_optarg ;;
1458 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1460 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1463 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1464 |
-silent |
--silent |
--silen |
--sile |
--sil)
1467 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1468 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1469 |
--run |
--ru |
--r)
1470 ac_prev
=runstatedir
;;
1471 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1472 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1473 |
--run=* |
--ru=* |
--r=*)
1474 runstatedir
=$ac_optarg ;;
1476 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1478 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1480 sbindir
=$ac_optarg ;;
1482 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1483 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1484 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1486 ac_prev
=sharedstatedir
;;
1487 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1488 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1489 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1491 sharedstatedir
=$ac_optarg ;;
1493 -site |
--site |
--sit)
1495 -site=* |
--site=* |
--sit=*)
1498 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1500 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1501 srcdir
=$ac_optarg ;;
1503 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1504 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1505 ac_prev
=sysconfdir
;;
1506 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1507 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1508 sysconfdir
=$ac_optarg ;;
1510 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1511 ac_prev
=target_alias
;;
1512 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1513 target_alias
=$ac_optarg ;;
1515 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1518 -version |
--version |
--versio |
--versi |
--vers |
-V)
1519 ac_init_version
=: ;;
1522 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1523 # Reject names that are not valid shell variable names.
1524 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1525 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1526 ac_useropt_orig
=$ac_useropt
1527 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1528 case $ac_user_opts in
1532 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1533 ac_unrecognized_sep
=', ';;
1535 eval with_
$ac_useropt=\
$ac_optarg ;;
1537 -without-* |
--without-*)
1538 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1539 # Reject names that are not valid shell variable names.
1540 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1541 as_fn_error $?
"invalid package name: \`$ac_useropt'"
1542 ac_useropt_orig
=$ac_useropt
1543 ac_useropt
=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1544 case $ac_user_opts in
1548 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1549 ac_unrecognized_sep
=', ';;
1551 eval with_
$ac_useropt=no
;;
1554 # Obsolete; use --with-x.
1557 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1558 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1559 ac_prev
=x_includes
;;
1560 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1561 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1562 x_includes
=$ac_optarg ;;
1564 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1565 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1566 ac_prev
=x_libraries
;;
1567 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1568 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1569 x_libraries
=$ac_optarg ;;
1571 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1572 Try \`$0 --help' for more information"
1576 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1577 # Reject names that are not valid shell variable names.
1578 case $ac_envvar in #(
1579 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1580 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1582 eval $ac_envvar=\
$ac_optarg
1583 export $ac_envvar ;;
1586 # FIXME: should be removed in autoconf 3.0.
1587 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1588 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1589 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1590 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1596 if test -n "$ac_prev"; then
1597 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1598 as_fn_error $?
"missing argument to $ac_option"
1601 if test -n "$ac_unrecognized_opts"; then
1602 case $enable_option_checking in
1604 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1605 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1609 # Check all directory arguments for consistency.
1610 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1611 datadir sysconfdir sharedstatedir localstatedir includedir \
1612 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1613 libdir localedir mandir runstatedir
1615 eval ac_val
=\$
$ac_var
1616 # Remove trailing slashes.
1619 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1620 eval $ac_var=\
$ac_val;;
1622 # Be sure to have absolute directory names.
1624 [\\/$
]* | ?
:[\\/]* ) continue;;
1625 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1627 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1630 # There might be people who depend on the old broken behavior: `$host'
1631 # used to hold the argument of --host etc.
1632 # FIXME: To remove some day.
1635 target
=$target_alias
1637 # FIXME: To remove some day.
1638 if test "x$host_alias" != x
; then
1639 if test "x$build_alias" = x
; then
1640 cross_compiling
=maybe
1641 elif test "x$build_alias" != "x$host_alias"; then
1647 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1649 test "$silent" = yes && exec 6>/dev
/null
1652 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1653 ac_ls_di
=`ls -di .` &&
1654 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1655 as_fn_error $?
"working directory cannot be determined"
1656 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1657 as_fn_error $?
"pwd does not report name of working directory"
1660 # Find the source files, if location was not specified.
1661 if test -z "$srcdir"; then
1662 ac_srcdir_defaulted
=yes
1663 # Try the directory containing this script, then the parent directory.
1664 ac_confdir
=`$as_dirname -- "$as_myself" ||
1665 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1666 X"$as_myself" : 'X\(//\)[^/]' \| \
1667 X"$as_myself" : 'X\(//\)$' \| \
1668 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1669 printf "%s\n" X"$as_myself" |
1670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1688 if test ! -r "$srcdir/$ac_unique_file"; then
1692 ac_srcdir_defaulted
=no
1694 if test ! -r "$srcdir/$ac_unique_file"; then
1695 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1696 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1698 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1700 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1702 # When building in place, set srcdir=.
1703 if test "$ac_abs_confdir" = "$ac_pwd"; then
1706 # Remove unnecessary trailing slashes from srcdir.
1707 # Double slashes in file names in object file debugging info
1708 # mess up M-x gdb in Emacs.
1710 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1712 for ac_var
in $ac_precious_vars; do
1713 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1714 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1715 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1716 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1720 # Report the --help message.
1722 if test "$ac_init_help" = "long"; then
1723 # Omit some internal or obsolete options to make the list less imposing.
1724 # This message is too long to be a string in the A/UX 3.1 sh.
1726 \`configure' configures python 3.13 to adapt to many kinds of systems.
1728 Usage: $0 [OPTION]... [VAR=VALUE]...
1730 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1731 VAR=VALUE. See below for descriptions of some of the useful variables.
1733 Defaults for the options are specified in brackets.
1736 -h, --help display this help and exit
1737 --help=short display options specific to this package
1738 --help=recursive display the short help of all the included packages
1739 -V, --version display version information and exit
1740 -q, --quiet, --silent do not print \`checking ...' messages
1741 --cache-file=FILE cache test results in FILE [disabled]
1742 -C, --config-cache alias for \`--cache-file=config.cache'
1743 -n, --no-create do not create output files
1744 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1746 Installation directories:
1747 --prefix=PREFIX install architecture-independent files in PREFIX
1748 [$ac_default_prefix]
1749 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1752 By default, \`make install' will install all the files in
1753 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1754 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1755 for instance \`--prefix=\$HOME'.
1757 For better control, use the options below.
1759 Fine tuning of the installation directories:
1760 --bindir=DIR user executables [EPREFIX/bin]
1761 --sbindir=DIR system admin executables [EPREFIX/sbin]
1762 --libexecdir=DIR program executables [EPREFIX/libexec]
1763 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1764 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1765 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1766 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1767 --libdir=DIR object code libraries [EPREFIX/lib]
1768 --includedir=DIR C header files [PREFIX/include]
1769 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1770 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1771 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1772 --infodir=DIR info documentation [DATAROOTDIR/info]
1773 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1774 --mandir=DIR man documentation [DATAROOTDIR/man]
1775 --docdir=DIR documentation root [DATAROOTDIR/doc/python]
1776 --htmldir=DIR html documentation [DOCDIR]
1777 --dvidir=DIR dvi documentation [DOCDIR]
1778 --pdfdir=DIR pdf documentation [DOCDIR]
1779 --psdir=DIR ps documentation [DOCDIR]
1785 --build=BUILD configure
for building on BUILD
[guessed
]
1786 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1790 if test -n "$ac_init_help"; then
1791 case $ac_init_help in
1792 short | recursive
) echo "Configuration of python 3.13:";;
1797 --disable-option-checking ignore unrecognized
--enable/--with options
1798 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1799 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1800 --enable-universalsdk[=SDKDIR
]
1801 create a universal binary build. SDKDIR specifies
1802 which macOS SDK should be used to perform the build
,
1803 see Mac
/README.rst.
(default is no
)
1804 --enable-framework[=INSTALLDIR
]
1805 create a Python.framework rather than a traditional
1806 Unix
install. optional INSTALLDIR specifies the
1807 installation path. see Mac
/README.rst
(default is
1809 --enable-wasm-dynamic-linking
1810 Enable dynamic linking support
for WebAssembly
1812 --enable-wasm-pthreads Enable pthread emulation
for WebAssembly
(default is
1814 --enable-shared enable building a shared Python library
(default is
1816 --enable-profiling enable C-level code profiling with gprof
(default is
1818 --disable-gil enable experimental support
for running without the
1820 --enable-pystats enable internal statistics gathering
(default is no
)
1821 --enable-experimental-jit[=no|
yes|yes-off|interpreter
]
1822 build the experimental just-in-time compiler
1824 --enable-optimizations enable expensive
, stable optimizations
(PGO
, etc.
)
1826 --enable-bolt enable usage of the llvm-bolt post-link optimizer
1828 --enable-loadable-sqlite-extensions
1829 support loadable extensions
in the sqlite3 module
,
1830 see Doc
/library
/sqlite3.rst
(default is no
)
1831 --enable-ipv6 enable ipv6
(with ipv4
) support
, see
1832 Doc
/library
/socket.rst
(default is
yes if supported
)
1833 --enable-big-digits[=15|
30]
1834 use big digits
(30 or
15 bits
) for Python longs
1836 --disable-test-modules don
't build nor install test modules
1839 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1840 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1841 --with-build-python=python3.13
1842 path to build python binary for cross compiling
1843 (default: _bootstrap_python or python3.13)
1844 --with-pkg-config=[yes|no|check]
1845 use pkg-config to detect build options (default is
1847 --with-universal-archs=ARCH
1848 specify the kind of macOS universal binary that
1849 should be created. This option is only valid when
1850 --enable-universalsdk is set; options are:
1851 ("universal2", "intel-64", "intel-32", "intel",
1852 "32-bit", "64-bit", "3-way", or "all") see
1854 --with-framework-name=FRAMEWORK
1855 specify the name for the python framework on macOS
1856 only valid when --enable-framework is set. see
1857 Mac/README.rst (default is 'Python
')
1858 --with-emscripten-target=[browser|node]
1860 --with-suffix=SUFFIX set executable suffix to SUFFIX (default is empty,
1861 yes is mapped to '.exe
')
1862 --without-static-libpython
1863 do not build libpythonMAJOR.MINOR.a and do not
1864 install python.o (default is yes)
1865 --with-pydebug build with Py_DEBUG defined (default is no)
1866 --with-trace-refs enable tracing references for debugging purpose
1868 --with-assertions build with C assertions enabled (default is no)
1869 --with-lto=[full|thin|no|yes]
1870 enable Link-Time-Optimization in any build (default
1872 --with-strict-overflow if 'yes', add -fstrict-overflow to CFLAGS, else add
1873 -fno-strict-overflow (default is no)
1874 --with-dsymutil link debug information into final executable with
1875 dsymutil in macOS (default is no)
1876 --with-address-sanitizer
1877 enable AddressSanitizer memory error detector,
1878 'asan
' (default is no)
1879 --with-memory-sanitizer enable MemorySanitizer allocation error detector,
1880 'msan
' (default is no)
1881 --with-undefined-behavior-sanitizer
1882 enable UndefinedBehaviorSanitizer undefined
1883 behaviour detector, 'ubsan
' (default is no)
1884 --with-thread-sanitizer enable ThreadSanitizer data race detector, 'tsan
'
1886 --with-hash-algorithm=[fnv|siphash13|siphash24]
1887 select hash algorithm for use in Python/pyhash.c
1888 (default is SipHash13)
1889 --with-tzpath=<list of absolute paths separated by pathsep>
1890 Select the default time zone search path for
1892 --with-libs='lib1 ...
' link against additional libs (default is no)
1893 --with-system-expat build pyexpat module using an installed expat
1894 library, see Doc/library/pyexpat.rst (default is no)
1895 --with-system-libmpdec build _decimal module using an installed libmpdec
1896 library, see Doc/library/decimal.rst (default is no)
1897 --with-decimal-contextvar
1898 build _decimal module using a coroutine-local rather
1899 than a thread-local context (default is yes)
1900 --with-dbmliborder=db1:db2:...
1901 override order to check db backends for dbm; a valid
1902 value is a colon separated string with the backend
1903 names `ndbm', `gdbm' and `bdb
'.
1904 --with-doc-strings enable documentation strings (default is yes)
1905 --with-mimalloc build with mimalloc memory allocator (default is yes
1906 if C11 stdatomic.h is available.)
1907 --with-pymalloc enable specialized mallocs (default is yes)
1908 --with-freelists enable object freelists (default is yes)
1909 --with-c-locale-coercion
1910 enable C locale coercion to a UTF-8 based locale
1912 --with-valgrind enable Valgrind support (default is no)
1913 --with-dtrace enable DTrace support (default is no)
1914 --with-libm=STRING override libm math library to STRING (default is
1916 --with-libc=STRING override libc C library to STRING (default is
1918 --with-platlibdir=DIRNAME
1919 Python library directory name (default is "lib")
1920 --with-wheel-pkg-dir=PATH
1921 Directory of wheel packages used by ensurepip
1923 --with(out)-readline[=editline|readline|no]
1924 use libedit for backend or disable readline module
1925 --with-computed-gotos enable computed gotos in evaluation loop (enabled by
1926 default on supported compilers)
1927 --with-ensurepip[=install|upgrade|no]
1928 "install" or "upgrade" using bundled pip (default is
1930 --with-openssl=DIR root of the OpenSSL directory
1931 --with-openssl-rpath=[DIR|auto|no]
1932 Set runtime library directory (rpath) for OpenSSL
1933 libraries, no (default): don't
set rpath
, auto
:
1934 auto-detect rpath from
--with-openssl and
1935 pkg-config
, DIR
: set an explicit rpath
1936 --with-ssl-default-suites=[python|openssl|STRING
]
1937 override default cipher suites string
, python
: use
1938 Python
's preferred selection (default), openssl:
1939 leave OpenSSL's defaults untouched
, STRING
: use a
1940 custom string
, python and STRING also
set TLS
1.2 as
1942 --with-builtin-hashlib-hashes=md5
,sha1
,sha2
,sha3
,blake2
1943 builtin hash modules
, md5
, sha1
, sha2
, sha3
(with
1946 Some influential environment variables
:
1947 PKG_CONFIG path to pkg-config utility
1949 directories to add to pkg-config
's search path
1951 path overriding pkg-config's built-in search path
1952 MACHDEP name
for machine-dependent library files
1953 CC C compiler
command
1954 CFLAGS C compiler flags
1955 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1956 nonstandard directory
<lib dir
>
1957 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1958 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1959 you have headers
in a nonstandard directory
<include dir
>
1961 HOSTRUNNER Program to run CPython
for the
host platform
1963 Python args
for PGO generation task
1964 BOLT_INSTRUMENT_FLAGS
1965 Arguments to llvm-bolt when instrumenting binaries
1967 Arguments to llvm-bolt when creating a BOLT optimized binary
1969 C compiler flags
for LIBUUID
, overriding pkg-config
1971 linker flags
for LIBUUID
, overriding pkg-config
1973 C compiler flags
for LIBFFI
, overriding pkg-config
1974 LIBFFI_LIBS linker flags
for LIBFFI
, overriding pkg-config
1976 C compiler flags
for LIBMPDEC
, overriding pkg-config
1978 linker flags
for LIBMPDEC
, overriding pkg-config
1980 C compiler flags
for LIBSQLITE3
, overriding pkg-config
1982 linker flags
for LIBSQLITE3
, overriding pkg-config
1984 C compiler flags
for TCLTK
, overriding pkg-config
1985 TCLTK_LIBS linker flags
for TCLTK
, overriding pkg-config
1986 X11_CFLAGS C compiler flags
for X11
, overriding pkg-config
1987 X11_LIBS linker flags
for X11
, overriding pkg-config
1988 GDBM_CFLAGS C compiler flags
for gdbm
1989 GDBM_LIBS additional linker flags
for gdbm
1990 ZLIB_CFLAGS C compiler flags
for ZLIB
, overriding pkg-config
1991 ZLIB_LIBS linker flags
for ZLIB
, overriding pkg-config
1993 C compiler flags
for BZIP2
, overriding pkg-config
1994 BZIP2_LIBS linker flags
for BZIP2
, overriding pkg-config
1996 C compiler flags
for LIBLZMA
, overriding pkg-config
1998 linker flags
for LIBLZMA
, overriding pkg-config
2000 C compiler flags
for LIBREADLINE
, overriding pkg-config
2002 linker flags
for LIBREADLINE
, overriding pkg-config
2004 C compiler flags
for LIBEDIT
, overriding pkg-config
2006 linker flags
for LIBEDIT
, overriding pkg-config
2008 C compiler flags
for CURSES
, overriding pkg-config
2009 CURSES_LIBS linker flags
for CURSES
, overriding pkg-config
2011 C compiler flags
for PANEL
, overriding pkg-config
2012 PANEL_LIBS linker flags
for PANEL
, overriding pkg-config
2014 C compiler flags
for LIBB2
, overriding pkg-config
2015 LIBB2_LIBS linker flags
for LIBB2
, overriding pkg-config
2017 Use these variables to override the choices made by
`configure' or to help
2018 it to find libraries and programs with nonstandard names/locations.
2020 Report bugs to <https://github.com/python/cpython/issues/>.
2025 if test "$ac_init_help" = "recursive"; then
2026 # If there are subdirs, report their specific --help.
2027 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2028 test -d "$ac_dir" ||
2029 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2034 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2036 ac_dir_suffix=/`printf "%s\n" "$ac_dir" |
sed 's|^\.[\\/]||'`
2037 # A ".." for each directory in $ac_dir_suffix.
2038 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
2039 case $ac_top_builddir_sub in
2040 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2041 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2044 ac_abs_top_builddir=$ac_pwd
2045 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2046 # for backward compatibility:
2047 ac_top_builddir=$ac_top_build_prefix
2050 .) # We are building in place.
2052 ac_top_srcdir=$ac_top_builddir_sub
2053 ac_abs_top_srcdir=$ac_pwd ;;
2054 [\\/]* | ?:[\\/]* ) # Absolute name.
2055 ac_srcdir=$srcdir$ac_dir_suffix;
2056 ac_top_srcdir=$srcdir
2057 ac_abs_top_srcdir=$srcdir ;;
2059 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2060 ac_top_srcdir=$ac_top_build_prefix$srcdir
2061 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2063 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2065 cd "$ac_dir" || { ac_status=$?; continue; }
2066 # Check for configure.gnu first; this name is used for a wrapper for
2067 # Metaconfig's "Configure" on case-insensitive file systems.
2068 if test -f "$ac_srcdir/configure.gnu"; then
2070 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2071 elif test -f "$ac_srcdir/configure"; then
2073 $SHELL "$ac_srcdir/configure" --help=recursive
2075 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2077 cd "$ac_pwd" || { ac_status=$?; break; }
2081 test -n "$ac_init_help" && exit $ac_status
2082 if $ac_init_version; then
2084 python configure 3.13
2085 generated by GNU Autoconf 2.71
2087 Copyright (C) 2021 Free Software Foundation, Inc.
2088 This configure script is free software; the Free Software Foundation
2089 gives unlimited permission to copy, distribute and modify it.
2094 ## ------------------------ ##
2095 ## Autoconf initialization. ##
2096 ## ------------------------ ##
2098 # ac_fn_c_try_compile LINENO
2099 # --------------------------
2100 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2101 ac_fn_c_try_compile ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 rm -f conftest.$ac_objext conftest.beam
2105 if { { ac_try="$ac_compile"
2107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2108 *) ac_try_echo
=$ac_try;;
2110 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2111 printf "%s\n" "$ac_try_echo"; } >&5
2112 (eval "$ac_compile") 2>conftest.err
2114 if test -s conftest.err
; then
2115 grep -v '^ *+' conftest.err
>conftest.er1
2116 cat conftest.er1
>&5
2117 mv -f conftest.er1 conftest.err
2119 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2120 test $ac_status = 0; } && {
2121 test -z "$ac_c_werror_flag" ||
2122 test ! -s conftest.err
2123 } && test -s conftest.
$ac_objext
2127 printf "%s\n" "$as_me: failed program was:" >&5
2128 sed 's/^/| /' conftest.
$ac_ext >&5
2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 as_fn_set_status
$ac_retval
2135 } # ac_fn_c_try_compile
2137 # ac_fn_c_try_cpp LINENO
2138 # ----------------------
2139 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2142 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2143 if { { ac_try
="$ac_cpp conftest.$ac_ext"
2145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2146 *) ac_try_echo=$ac_try;;
2148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2149 printf "%s\n" "$ac_try_echo"; } >&5
2150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2152 if test -s conftest.err; then
2153 grep -v '^ *+' conftest.err >conftest.er1
2154 cat conftest.er1 >&5
2155 mv -f conftest.er1 conftest.err
2157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2158 test $ac_status = 0; } > conftest.i && {
2159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2160 test ! -s conftest.err
2165 printf "%s\n" "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2170 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 as_fn_set_status $ac_retval
2175 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2176 # -------------------------------------------------------
2177 # Tests whether HEADER exists and can be compiled using the include files in
2178 # INCLUDES, setting the cache variable VAR accordingly.
2179 ac_fn_c_check_header_compile ()
2181 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2183 printf %s "checking for $2... " >&6; }
2184 if eval test \${$3+y}
2186 printf %s "(cached) " >&6
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2193 if ac_fn_c_try_compile "$LINENO"
2199 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 printf "%s\n" "$ac_res" >&6; }
2204 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 } # ac_fn_c_check_header_compile
2208 # ac_fn_c_try_link LINENO
2209 # -----------------------
2210 # Try to link conftest.$ac_ext, and return whether this succeeded.
2213 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2214 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2215 if { { ac_try="$ac_link"
2217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2218 *) ac_try_echo
=$ac_try;;
2220 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2221 printf "%s\n" "$ac_try_echo"; } >&5
2222 (eval "$ac_link") 2>conftest.err
2224 if test -s conftest.err
; then
2225 grep -v '^ *+' conftest.err
>conftest.er1
2226 cat conftest.er1
>&5
2227 mv -f conftest.er1 conftest.err
2229 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2230 test $ac_status = 0; } && {
2231 test -z "$ac_c_werror_flag" ||
2232 test ! -s conftest.err
2233 } && test -s conftest
$ac_exeext && {
2234 test "$cross_compiling" = yes ||
2235 test -x conftest
$ac_exeext
2240 printf "%s\n" "$as_me: failed program was:" >&5
2241 sed 's/^/| /' conftest.
$ac_ext >&5
2245 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2246 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2247 # interfere with the next link command; also delete a directory that is
2248 # left behind by Apple's compiler. We do this before executing the actions.
2249 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2251 as_fn_set_status
$ac_retval
2253 } # ac_fn_c_try_link
2255 # ac_fn_c_try_run LINENO
2256 # ----------------------
2257 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2258 # executables *can* be run.
2261 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2262 if { { ac_try
="$ac_link"
2264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268 printf "%s\n" "$ac_try_echo"; } >&5
2269 (eval "$ac_link") 2>&5
2271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2273 { { case "(($ac_try" in
2274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2275 *) ac_try_echo
=$ac_try;;
2277 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2278 printf "%s\n" "$ac_try_echo"; } >&5
2279 (eval "$ac_try") 2>&5
2281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; }; }
2286 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2287 printf "%s\n" "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.
$ac_ext >&5
2290 ac_retval
=$ac_status
2292 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2293 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294 as_fn_set_status
$ac_retval
2298 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2299 # -------------------------------------------
2300 # Tests whether TYPE exists after having included INCLUDES, setting cache
2301 # variable VAR accordingly.
2302 ac_fn_c_check_type
()
2304 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 printf %s
"checking for $2... " >&6; }
2307 if eval test \
${$3+y}
2309 printf %s
"(cached) " >&6
2312 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2324 if ac_fn_c_try_compile
"$LINENO"
2326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2338 if ac_fn_c_try_compile
"$LINENO"
2344 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2346 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 printf "%s\n" "$ac_res" >&6; }
2351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2353 } # ac_fn_c_check_type
2355 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2356 # --------------------------------------------
2357 # Tries to find the compile-time value of EXPR in a program that includes
2358 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2360 ac_fn_c_compute_int
()
2362 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2363 if test "$cross_compiling" = yes; then
2364 # Depending upon the size, compute the lo and hi bounds.
2365 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2366 /* end confdefs.h. */
2371 static int test_array [1 - 2 * !(($2) >= 0)];
2373 return test_array [0];
2379 if ac_fn_c_try_compile
"$LINENO"
2383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h. */
2389 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2391 return test_array [0];
2397 if ac_fn_c_try_compile
"$LINENO"
2399 ac_hi
=$ac_mid; break
2401 as_fn_arith
$ac_mid + 1 && ac_lo
=$as_val
2402 if test $ac_lo -le $ac_mid; then
2406 as_fn_arith
2 '*' $ac_mid + 1 && ac_mid
=$as_val
2408 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2412 /* end confdefs.h. */
2417 static int test_array [1 - 2 * !(($2) < 0)];
2419 return test_array [0];
2425 if ac_fn_c_try_compile
"$LINENO"
2429 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2435 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2437 return test_array [0];
2443 if ac_fn_c_try_compile
"$LINENO"
2445 ac_lo
=$ac_mid; break
2447 as_fn_arith
'(' $ac_mid ')' - 1 && ac_hi
=$as_val
2448 if test $ac_mid -le $ac_hi; then
2452 as_fn_arith
2 '*' $ac_mid && ac_mid
=$as_val
2454 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2459 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2461 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2462 # Binary search between lo and hi bounds.
2463 while test "x$ac_lo" != "x$ac_hi"; do
2464 as_fn_arith
'(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid
=$as_val
2465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h. */
2471 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2473 return test_array [0];
2479 if ac_fn_c_try_compile
"$LINENO"
2483 as_fn_arith
'(' $ac_mid ')' + 1 && ac_lo
=$as_val
2485 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2488 ?
*) eval "$3=\$ac_lo"; ac_retval
=0 ;;
2492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h. */
2495 static long int longval (void) { return $2; }
2496 static unsigned long int ulongval (void) { return $2; }
2503 FILE *f = fopen ("conftest.val", "w");
2508 long int i = longval ();
2511 fprintf (f, "%ld", i);
2515 unsigned long int i = ulongval ();
2518 fprintf (f, "%lu", i);
2520 /* Do not output a trailing newline, as this causes \r\n confusion
2521 on some platforms. */
2522 return ferror (f) || fclose (f) != 0;
2528 if ac_fn_c_try_run
"$LINENO"
2530 echo >>conftest.val
; read $3 <conftest.val
; ac_retval
=0
2534 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
2535 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2540 as_fn_set_status
$ac_retval
2542 } # ac_fn_c_compute_int
2544 # ac_fn_c_check_func LINENO FUNC VAR
2545 # ----------------------------------
2546 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2547 ac_fn_c_check_func
()
2549 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2551 printf %s
"checking for $2... " >&6; }
2552 if eval test \
${$3+y}
2554 printf %s
"(cached) " >&6
2556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2557 /* end confdefs.h. */
2558 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2560 #define $2 innocuous_$2
2562 /* System header to define __stub macros and hopefully few prototypes,
2563 which can conflict with char $2 (); below. */
2568 /* Override any GCC internal prototype to avoid an error.
2569 Use char because int might match the return type of a GCC
2570 builtin and then its argument prototype would still apply. */
2575 /* The GNU C library defines this for functions which it implements
2576 to always fail with ENOSYS. Some functions are actually named
2577 something starting with __ and the normal name is an alias. */
2578 #if defined __stub_$2 || defined __stub___$2
2590 if ac_fn_c_try_link
"$LINENO"
2596 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
2597 conftest
$ac_exeext conftest.
$ac_ext
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 printf "%s\n" "$ac_res" >&6; }
2602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2604 } # ac_fn_c_check_func
2606 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2607 # ------------------------------------------------------------------
2608 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2609 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2612 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2613 as_decl_name
=`echo $2|sed 's/ *(.*//'`
2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2615 printf %s
"checking whether $as_decl_name is declared... " >&6; }
2616 if eval test \
${$3+y}
2618 printf %s
"(cached) " >&6
2620 as_decl_use
=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2621 eval ac_save_FLAGS
=\$
$6
2622 as_fn_append
$6 " $5"
2623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2624 /* end confdefs.h. */
2629 #ifndef $as_decl_name
2631 (void) $as_decl_use;
2633 (void) $as_decl_name;
2641 if ac_fn_c_try_compile
"$LINENO"
2647 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2648 eval $6=\
$ac_save_FLAGS
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2653 printf "%s\n" "$ac_res" >&6; }
2654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2656 } # ac_fn_check_decl
2658 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2659 # ----------------------------------------------------
2660 # Tries to find if the field MEMBER exists in type AGGR, after including
2661 # INCLUDES, setting cache variable VAR accordingly.
2662 ac_fn_c_check_member
()
2664 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2666 printf %s
"checking for $2.$3... " >&6; }
2667 if eval test \
${$4+y}
2669 printf %s
"(cached) " >&6
2671 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h. */
2684 if ac_fn_c_try_compile
"$LINENO"
2688 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2689 /* end confdefs.h. */
2695 if (sizeof ac_aggr.$3)
2701 if ac_fn_c_try_compile
"$LINENO"
2707 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2709 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2713 printf "%s\n" "$ac_res" >&6; }
2714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2716 } # ac_fn_c_check_member
2717 ac_configure_args_raw
=
2722 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2724 as_fn_append ac_configure_args_raw
" '$ac_arg'"
2727 case $ac_configure_args_raw in
2731 ac_unsafe_z
='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2732 ac_unsafe_a
="$ac_unsafe_z#~"
2733 ac_safe_unquote
="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2734 ac_configure_args_raw
=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2737 cat >config.log
<<_ACEOF
2738 This file contains any messages produced by compilers while
2739 running configure, to aid debugging if configure makes a mistake.
2741 It was created by python $as_me 3.13, which was
2742 generated by GNU Autoconf 2.71. Invocation command line was
2744 $ $0$ac_configure_args_raw
2754 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2755 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2756 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2757 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2758 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2760 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2761 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2763 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2764 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2765 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2766 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2767 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2768 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2769 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2777 case $as_dir in #(((
2780 *) as_dir
=$as_dir/ ;;
2782 printf "%s\n" "PATH: $as_dir"
2798 # Keep a trace of the command line.
2799 # Strip out --no-create and --no-recursion so they do not pile up.
2800 # Strip out --silent because we don't want to record it for future runs.
2801 # Also quote any args containing shell meta-characters.
2802 # Make two passes to allow for proper duplicate-argument suppression.
2806 ac_must_keep_next
=false
2812 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2813 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2814 |
-silent |
--silent |
--silen |
--sile |
--sil)
2817 ac_arg
=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2820 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2822 as_fn_append ac_configure_args1
" '$ac_arg'"
2823 if test $ac_must_keep_next = true
; then
2824 ac_must_keep_next
=false
# Got value, back to normal.
2827 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2828 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2829 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2830 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2831 case "$ac_configure_args0 " in
2832 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2835 -* ) ac_must_keep_next
=true
;;
2838 as_fn_append ac_configure_args
" '$ac_arg'"
2843 { ac_configure_args0
=; unset ac_configure_args0
;}
2844 { ac_configure_args1
=; unset ac_configure_args1
;}
2846 # When interrupted or exit'd, cleanup temporary files, and complete
2847 # config.log. We remove comments because anyway the quotes in there
2848 # would cause problems or look ugly.
2849 # WARNING: Use '\'' to represent an apostrophe within the trap.
2850 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2851 trap 'exit_status=$?
2854 # Save into config.log some information that might help in debugging.
2858 printf "%s\n" "## ---------------- ##
2859 ## Cache variables. ##
2860 ## ---------------- ##"
2862 # The following way of writing the cache mishandles newlines in values,
2864 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2865 eval ac_val=\$$ac_var
2869 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2870 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2873 _ | IFS | as_nl) ;; #(
2874 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2875 *) { eval $ac_var=; unset $ac_var;} ;;
2880 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2881 *${as_nl}ac_space=\ *)
2883 "s/'\''/'\''\\\\'\'''\''/g;
2884 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2887 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2894 printf "%s\n" "## ----------------- ##
2895 ## Output variables. ##
2896 ## ----------------- ##"
2898 for ac_var in $ac_subst_vars
2900 eval ac_val=\$$ac_var
2902 *\'\''*) ac_val
=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2904 printf "%s\n" "$ac_var='\''$ac_val'\''"
2908 if test -n "$ac_subst_files"; then
2909 printf "%s\n" "## ------------------- ##
2910 ## File substitutions. ##
2911 ## ------------------- ##"
2913 for ac_var
in $ac_subst_files
2915 eval ac_val
=\$
$ac_var
2917 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2919 printf "%s\n" "$ac_var='\''$ac_val'\''"
2924 if test -s confdefs.h; then
2925 printf "%s\n" "## ----------- ##
2932 test "$ac_signal" != 0 &&
2933 printf "%s\n" "$as_me: caught signal $ac_signal"
2934 printf "%s\n" "$as_me: exit $exit_status"
2936 rm -f core *.core core.conftest.* &&
2937 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2940 for ac_signal
in 1 2 13 15; do
2941 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2945 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2946 rm -f -r conftest
* confdefs.h
2948 printf "%s\n" "/* confdefs.h */" > confdefs.h
2950 # Predefined preprocessor variables.
2952 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2954 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2956 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2958 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2960 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2962 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2965 # Let the site file select an alternate cache file if it wants to.
2966 # Prefer an explicitly selected file to automatically selected ones.
2967 if test -n "$CONFIG_SITE"; then
2968 ac_site_files
="$CONFIG_SITE"
2969 elif test "x$prefix" != xNONE
; then
2970 ac_site_files
="$prefix/share/config.site $prefix/etc/config.site"
2972 ac_site_files
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2975 for ac_site_file
in $ac_site_files
2977 case $ac_site_file in #(
2981 ac_site_file
=.
/$ac_site_file ;;
2983 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2985 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2986 sed 's/^/| /' "$ac_site_file" >&5
2988 ||
{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2990 as_fn_error $?
"failed to load site script $ac_site_file
2991 See \`config.log' for more details" "$LINENO" 5; }
2995 if test -r "$cache_file"; then
2996 # Some versions of bash will fail to source /dev/null (special files
2997 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2998 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3000 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3002 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
3003 *) .
"./$cache_file";;
3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3008 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3012 # Test code for whether the C compiler supports C89 (global declarations)
3013 ac_c_conftest_c89_globals
='
3014 /* Does the compiler advertise C89 conformance?
3015 Do not test the value of __STDC__, because some compilers set it to 0
3016 while being otherwise adequately conformant. */
3017 #if !defined __STDC__
3018 # error "Compiler does not advertise C89 conformance"
3024 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3025 struct buf { int x; };
3026 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3027 static char *e (p, i)
3033 static char *f (char * (*g) (char **, int), char **p, ...)
3038 s = g (p, va_arg (v,int));
3043 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3044 function prototypes and stuff, but not \xHH hex character constants.
3045 These do not provoke an error unfortunately, instead are silently treated
3046 as an "x". The following induces an error, until -std is added to get
3047 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3048 array size at least. It is necessary to write \x00 == 0 to get something
3049 that is true only with -std. */
3050 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3052 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3053 inside strings and character constants. */
3054 #define FOO(x) '\''x'\''
3055 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3057 int test (int i, double x);
3058 struct s1 {int (*f) (int a);};
3059 struct s2 {int (*f) (double a);};
3060 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3063 # Test code for whether the C compiler supports C89 (body of main).
3064 ac_c_conftest_c89_main
='
3065 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3068 # Test code for whether the C compiler supports C99 (global declarations)
3069 ac_c_conftest_c99_globals
='
3070 // Does the compiler advertise C99 conformance?
3071 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3072 # error "Compiler does not advertise C99 conformance"
3075 #include <stdbool.h>
3076 extern int puts (const char *);
3077 extern int printf (const char *, ...);
3078 extern int dprintf (int, const char *, ...);
3079 extern void *malloc (size_t);
3081 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3082 // dprintf is used instead of fprintf to avoid needing to declare
3084 #define debug(...) dprintf (2, __VA_ARGS__)
3085 #define showlist(...) puts (#__VA_ARGS__)
3086 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3088 test_varargs_macros (void)
3093 debug ("X = %d\n", x);
3094 showlist (The first, second, and third items.);
3095 report (x>y, "x is %d but y is %d", x, y);
3098 // Check long long types.
3099 #define BIG64 18446744073709551615ull
3100 #define BIG32 4294967295ul
3101 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3103 #error "your preprocessor is broken"
3107 #error "your preprocessor is broken"
3109 static long long int bignum = -9223372036854775807LL;
3110 static unsigned long long int ubignum = BIG64;
3112 struct incomplete_array
3120 const wchar_t *name;
3124 typedef const char *ccp;
3127 test_restrict (ccp restrict text)
3129 // See if C++-style comments work.
3130 // Iterate through items via the restricted pointer.
3131 // Also check for declarations in for loops.
3132 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3137 // Check varargs and va_copy.
3139 test_varargs (const char *format, ...)
3142 va_start (args, format);
3144 va_copy (args_copy, args);
3146 const char *str = "";
3154 case '\''s'\'': // string
3155 str = va_arg (args_copy, const char *);
3157 case '\''d'\'': // int
3158 number = va_arg (args_copy, int);
3160 case '\''f'\'': // float
3161 fnumber = va_arg (args_copy, double);
3170 return *str && number && fnumber;
3174 # Test code for whether the C compiler supports C99 (body of main).
3175 ac_c_conftest_c99_main
='
3177 _Bool success = false;
3178 success |= (argc != 0);
3181 if (test_restrict ("String literal") == 0)
3183 char *restrict newvar = "Another string";
3186 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3187 test_varargs_macros ();
3189 // Check flexible array members.
3190 struct incomplete_array *ia =
3191 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3193 for (int i = 0; i < ia->datasize; ++i)
3194 ia->data[i] = i * 1.234;
3196 // Check named initializers.
3197 struct named_init ni = {
3199 .name = L"Test wide string",
3200 .average = 543.34343,
3205 int dynamic_array[ni.number];
3206 dynamic_array[0] = argv[0][0];
3207 dynamic_array[ni.number - 1] = 543;
3209 // work around unused variable warnings
3210 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3211 || dynamic_array[ni.number - 1] != 543);
3214 # Test code for whether the C compiler supports C11 (global declarations)
3215 ac_c_conftest_c11_globals
='
3216 // Does the compiler advertise C11 conformance?
3217 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3218 # error "Compiler does not advertise C11 conformance"
3222 char _Alignas (double) aligned_as_double;
3223 char _Alignas (0) no_special_alignment;
3224 extern char aligned_as_int;
3225 char _Alignas (0) _Alignas (int) aligned_as_int;
3230 int_alignment = _Alignof (int),
3231 int_array_alignment = _Alignof (int[100]),
3232 char_alignment = _Alignof (char)
3234 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3237 int _Noreturn does_not_return (void) { for (;;) continue; }
3239 // Check _Static_assert.
3240 struct test_static_assert
3243 _Static_assert (sizeof (int) <= sizeof (long int),
3244 "_Static_assert does not work in struct");
3248 // Check UTF-8 literals.
3249 #define u8 syntax error!
3250 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3252 // Check duplicate typedefs.
3253 typedef long *long_ptr;
3254 typedef long int *long_ptr;
3255 typedef long_ptr long_ptr;
3257 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3261 struct { int i; int j; };
3262 struct { int k; long int l; } w;
3268 # Test code for whether the C compiler supports C11 (body of main).
3269 ac_c_conftest_c11_main
='
3270 _Static_assert ((offsetof (struct anonymous, i)
3271 == offsetof (struct anonymous, w.k)),
3272 "Anonymous union alignment botch");
3278 # Test code for whether the C compiler supports C11 (complete).
3279 ac_c_conftest_c11_program
="${ac_c_conftest_c89_globals}
3280 ${ac_c_conftest_c99_globals}
3281 ${ac_c_conftest_c11_globals}
3284 main (int argc, char **argv)
3287 ${ac_c_conftest_c89_main}
3288 ${ac_c_conftest_c99_main}
3289 ${ac_c_conftest_c11_main}
3294 # Test code for whether the C compiler supports C99 (complete).
3295 ac_c_conftest_c99_program
="${ac_c_conftest_c89_globals}
3296 ${ac_c_conftest_c99_globals}
3299 main (int argc, char **argv)
3302 ${ac_c_conftest_c89_main}
3303 ${ac_c_conftest_c99_main}
3308 # Test code for whether the C compiler supports C89 (complete).
3309 ac_c_conftest_c89_program
="${ac_c_conftest_c89_globals}
3312 main (int argc, char **argv)
3315 ${ac_c_conftest_c89_main}
3320 as_fn_append ac_header_c_list
" stdio.h stdio_h HAVE_STDIO_H"
3321 as_fn_append ac_header_c_list
" stdlib.h stdlib_h HAVE_STDLIB_H"
3322 as_fn_append ac_header_c_list
" string.h string_h HAVE_STRING_H"
3323 as_fn_append ac_header_c_list
" inttypes.h inttypes_h HAVE_INTTYPES_H"
3324 as_fn_append ac_header_c_list
" stdint.h stdint_h HAVE_STDINT_H"
3325 as_fn_append ac_header_c_list
" strings.h strings_h HAVE_STRINGS_H"
3326 as_fn_append ac_header_c_list
" sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3327 as_fn_append ac_header_c_list
" sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3328 as_fn_append ac_header_c_list
" unistd.h unistd_h HAVE_UNISTD_H"
3329 as_fn_append ac_header_c_list
" wchar.h wchar_h HAVE_WCHAR_H"
3330 as_fn_append ac_header_c_list
" minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3332 # Auxiliary files required by this configure script.
3333 ac_aux_files
="install-sh config.guess config.sub"
3335 # Locations in which to look for auxiliary files.
3336 ac_aux_dir_candidates
="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3338 # Search for a directory containing all of the required auxiliary files,
3339 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3340 # If we don't find one directory that contains all the files we need,
3341 # we report the set of missing files from the *first* directory in
3342 # $ac_aux_dir_candidates and give up.
3343 ac_missing_aux_files
=""
3344 ac_first_candidate
=:
3345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3348 for as_dir
in $ac_aux_dir_candidates
3351 case $as_dir in #(((
3354 *) as_dir
=$as_dir/ ;;
3358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3359 ac_aux_dir_found
=yes
3361 for ac_aux
in $ac_aux_files
3363 # As a special case, if "install-sh" is required, that requirement
3364 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3365 # and $ac_install_sh is set appropriately for whichever one is found.
3366 if test x
"$ac_aux" = x
"install-sh"
3368 if test -f "${as_dir}install-sh"; then
3369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3370 ac_install_sh
="${as_dir}install-sh -c"
3371 elif test -f "${as_dir}install.sh"; then
3372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3373 ac_install_sh
="${as_dir}install.sh -c"
3374 elif test -f "${as_dir}shtool"; then
3375 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3376 ac_install_sh
="${as_dir}shtool install -c"
3379 if $ac_first_candidate; then
3380 ac_missing_aux_files
="${ac_missing_aux_files} install-sh"
3386 if test -f "${as_dir}${ac_aux}"; then
3387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3390 if $ac_first_candidate; then
3391 ac_missing_aux_files
="${ac_missing_aux_files} ${ac_aux}"
3398 if test "$ac_aux_dir_found" = yes; then
3399 ac_aux_dir
="$as_dir"
3402 ac_first_candidate
=false
3411 as_fn_error $?
"cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3415 # These three variables are undocumented and unsupported,
3416 # and are intended to be withdrawn in a future Autoconf release.
3417 # They can cause serious problems if a builder's source tree is in a directory
3418 # whose full name contains unusual characters.
3419 if test -f "${ac_aux_dir}config.guess"; then
3420 ac_config_guess
="$SHELL ${ac_aux_dir}config.guess"
3422 if test -f "${ac_aux_dir}config.sub"; then
3423 ac_config_sub
="$SHELL ${ac_aux_dir}config.sub"
3425 if test -f "$ac_aux_dir/configure"; then
3426 ac_configure
="$SHELL ${ac_aux_dir}configure"
3429 # Check that the precious variables saved in the cache have kept the same
3431 ac_cache_corrupted
=false
3432 for ac_var
in $ac_precious_vars; do
3433 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
3434 eval ac_new_set
=\
$ac_env_${ac_var}_set
3435 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
3436 eval ac_new_val
=\
$ac_env_${ac_var}_value
3437 case $ac_old_set,$ac_new_set in
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3440 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3441 ac_cache_corrupted
=: ;;
3443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3444 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3445 ac_cache_corrupted
=: ;;
3448 if test "x$ac_old_val" != "x$ac_new_val"; then
3449 # differences in whitespace do not lead to failure.
3450 ac_old_val_w
=`echo x $ac_old_val`
3451 ac_new_val_w
=`echo x $ac_new_val`
3452 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3454 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3455 ac_cache_corrupted
=:
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3458 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3459 eval $ac_var=\
$ac_old_val
3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3462 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3464 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3467 # Pass precious variables to config.status.
3468 if test "$ac_new_set" = set; then
3470 *\'*) ac_arg
=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3471 *) ac_arg
=$ac_var=$ac_new_val ;;
3473 case " $ac_configure_args " in
3474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3475 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
3479 if $ac_cache_corrupted; then
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3481 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3483 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3484 as_fn_error $?
"run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3485 and start over" "$LINENO" 5
3487 ## -------------------- ##
3488 ## Main body of script. ##
3489 ## -------------------- ##
3492 ac_cpp
='$CPP $CPPFLAGS'
3493 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3508 if test "$srcdir" != .
-a "$srcdir" != "$(pwd)"; then
3509 # If we're building out-of-tree, we need to make sure the following
3510 # resources get picked up before their $srcdir counterparts.
3511 # Objects/ -> typeslots.inc
3512 # Include/ -> Python.h
3513 # (A side effect of this is that these resources will automatically be
3514 # regenerated when building out-of-tree, regardless of whether or not
3515 # the $srcdir counterpart is up-to-date. This is an acceptable trade
3517 BASECPPFLAGS
="-IObjects -IInclude -IPython"
3526 if test -e $srcdir/.git
3528 # Extract the first word of "git", so it can be a program name with args.
3529 set dummy git
; ac_word
=$2
3530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 printf %s
"checking for $ac_word... " >&6; }
3532 if test ${ac_cv_prog_HAS_GIT+y}
3534 printf %s
"(cached) " >&6
3536 if test -n "$HAS_GIT"; then
3537 ac_cv_prog_HAS_GIT
="$HAS_GIT" # Let the user override the test.
3539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3543 case $as_dir in #(((
3546 *) as_dir
=$as_dir/ ;;
3548 for ac_exec_ext
in '' $ac_executable_extensions; do
3549 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3550 ac_cv_prog_HAS_GIT
="found"
3551 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3558 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT
="not-found"
3561 HAS_GIT
=$ac_cv_prog_HAS_GIT
3562 if test -n "$HAS_GIT"; then
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5
3564 printf "%s\n" "$HAS_GIT" >&6; }
3566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 printf "%s\n" "no" >&6; }
3572 HAS_GIT
=no-repository
3574 if test $HAS_GIT = found
3576 GITVERSION
="git --git-dir \$(srcdir)/.git rev-parse --short HEAD"
3577 GITTAG
="git --git-dir \$(srcdir)/.git describe --all --always --dirty"
3578 GITBRANCH
="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD"
3586 ac_config_headers
="$ac_config_headers pyconfig.h"
3592 # Make sure we can run config.sub.
3593 $SHELL "${ac_aux_dir}config.sub" sun4
>/dev
/null
2>&1 ||
3594 as_fn_error $?
"cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3597 printf %s
"checking build system type... " >&6; }
3598 if test ${ac_cv_build+y}
3600 printf %s
"(cached) " >&6
3602 ac_build_alias
=$build_alias
3603 test "x$ac_build_alias" = x
&&
3604 ac_build_alias
=`$SHELL "${ac_aux_dir}config.guess"`
3605 test "x$ac_build_alias" = x
&&
3606 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
3607 ac_cv_build
=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3608 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3612 printf "%s\n" "$ac_cv_build" >&6; }
3613 case $ac_cv_build in
3615 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
3618 ac_save_IFS
=$IFS; IFS
='-'
3624 # Remember, the first character of IFS is used to create $*,
3625 # except with old shells:
3628 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
3631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3632 printf %s
"checking host system type... " >&6; }
3633 if test ${ac_cv_host+y}
3635 printf %s
"(cached) " >&6
3637 if test "x$host_alias" = x
; then
3638 ac_cv_host
=$ac_cv_build
3640 ac_cv_host
=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3641 as_fn_error $?
"$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3646 printf "%s\n" "$ac_cv_host" >&6; }
3649 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
3652 ac_save_IFS
=$IFS; IFS
='-'
3658 # Remember, the first character of IFS is used to create $*,
3659 # except with old shells:
3662 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
3668 if test "x$cross_compiling" = xmaybe
3670 as_fn_error $?
"Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5
3674 # pybuilddir.txt will be created by --generate-posix-vars in the Makefile
3675 rm -f pybuilddir.txt
3678 # Check whether --with-build-python was given.
3679 if test ${with_build_python+y}
3681 withval
=$with_build_python;
3682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-build-python" >&5
3683 printf %s
"checking for --with-build-python... " >&6; }
3685 if test "x$with_build_python" = xyes
3687 with_build_python
=python
$PACKAGE_VERSION
3689 if test "x$with_build_python" = xno
3691 as_fn_error $?
"invalid --with-build-python option: expected path or \"yes\", not \"no\"" "$LINENO" 5
3694 if ! $
(command -v "$with_build_python" >/dev
/null
2>&1); then
3695 as_fn_error $?
"invalid or missing build python binary \"$with_build_python\"" "$LINENO" 5
3697 build_python_ver
=$
($with_build_python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')")
3698 if test "$build_python_ver" != "$PACKAGE_VERSION"; then
3699 as_fn_error $?
"\"$with_build_python\" has incompatible version $build_python_ver (expected: $PACKAGE_VERSION)" "$LINENO" 5
3701 ac_cv_prog_PYTHON_FOR_REGEN
=$with_build_python
3702 PYTHON_FOR_FREEZE
="$with_build_python"
3703 PYTHON_FOR_BUILD
='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$with_build_python
3704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_build_python" >&5
3705 printf "%s\n" "$with_build_python" >&6; }
3709 if test "x$cross_compiling" = xyes
3711 as_fn_error $?
"Cross compiling requires --with-build-python" "$LINENO" 5
3714 PYTHON_FOR_BUILD
='./$(BUILDPYTHON) -E'
3715 PYTHON_FOR_FREEZE
="./_bootstrap_python"
3722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python interpreter freezing" >&5
3723 printf %s
"checking for Python interpreter freezing... " >&6; }
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_FREEZE" >&5
3725 printf "%s\n" "$PYTHON_FOR_FREEZE" >&6; }
3728 if test "x$cross_compiling" = xyes
3731 FREEZE_MODULE_BOOTSTRAP
='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py'
3732 FREEZE_MODULE_BOOTSTRAP_DEPS
='$(srcdir)/Programs/_freeze_module.py'
3733 FREEZE_MODULE
='$(FREEZE_MODULE_BOOTSTRAP)'
3734 FREEZE_MODULE_DEPS
='$(FREEZE_MODULE_BOOTSTRAP_DEPS)'
3735 PYTHON_FOR_BUILD_DEPS
=''
3739 FREEZE_MODULE_BOOTSTRAP
='./Programs/_freeze_module'
3740 FREEZE_MODULE_BOOTSTRAP_DEPS
="Programs/_freeze_module"
3741 FREEZE_MODULE
='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py'
3742 FREEZE_MODULE_DEPS
="_bootstrap_python \$(srcdir)/Programs/_freeze_module.py"
3743 PYTHON_FOR_BUILD_DEPS
='$(BUILDPYTHON)'
3753 for ac_prog
in python
$PACKAGE_VERSION python3.13 python3.12 python3.11 python3.10 python3 python
3755 # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy
$ac_prog; ac_word
=$2
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 printf %s
"checking for $ac_word... " >&6; }
3759 if test ${ac_cv_prog_PYTHON_FOR_REGEN+y}
3761 printf %s
"(cached) " >&6
3763 if test -n "$PYTHON_FOR_REGEN"; then
3764 ac_cv_prog_PYTHON_FOR_REGEN
="$PYTHON_FOR_REGEN" # Let the user override the test.
3766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3770 case $as_dir in #(((
3773 *) as_dir
=$as_dir/ ;;
3775 for ac_exec_ext
in '' $ac_executable_extensions; do
3776 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3777 ac_cv_prog_PYTHON_FOR_REGEN
="$ac_prog"
3778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3787 PYTHON_FOR_REGEN
=$ac_cv_prog_PYTHON_FOR_REGEN
3788 if test -n "$PYTHON_FOR_REGEN"; then
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5
3790 printf "%s\n" "$PYTHON_FOR_REGEN" >&6; }
3792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 printf "%s\n" "no" >&6; }
3797 test -n "$PYTHON_FOR_REGEN" && break
3799 test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN
="python3"
3803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python for regen version" >&5
3804 printf %s
"checking Python for regen version... " >&6; }
3805 if command -v "$PYTHON_FOR_REGEN" >/dev
/null
2>&1; then
3806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $($PYTHON_FOR_REGEN -V 2>/dev/null)" >&5
3807 printf "%s\n" "$($PYTHON_FOR_REGEN -V 2>/dev/null)" >&6; }
3809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5
3810 printf "%s\n" "missing" >&6; }
3814 if test "$prefix" != "/"; then
3815 prefix
=`echo "$prefix" | sed -e 's/\/$//g'`
3821 # We don't use PACKAGE_ variables, and they cause conflicts
3822 # with other autoconf-based packages that include Python.h
3823 grep -v 'define PACKAGE_' <confdefs.h
>confdefs.h.new
3825 mv confdefs.h.new confdefs.h
3830 # Version number of Python's own shared library file.
3834 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3835 # certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
3838 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3841 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3842 # certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable
3845 printf "%s\n" "#define __BSD_VISIBLE 1" >>confdefs.h
3848 # The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
3849 # certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable
3852 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3856 define_xopen_source
=yes
3858 # Arguments passed to configure.
3860 CONFIG_ARGS
="$ac_configure_args"
3863 # Check whether --with-pkg-config was given.
3864 if test ${with_pkg_config+y}
3866 withval
=$with_pkg_config;
3868 with_pkg_config
=check
3872 case $with_pkg_config in #(
3875 if test -z "$PKG_CONFIG"; then
3876 { PKG_CONFIG
=; unset PKG_CONFIG
;}
3877 { ac_cv_path_ac_pt_PKG_CONFIG
=; unset ac_cv_path_ac_pt_PKG_CONFIG
;}
3878 { ac_cv_prog_ac_ct_PKG_CONFIG
=; unset ac_cv_prog_ac_ct_PKG_CONFIG
;}
3887 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3890 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
3891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892 printf %s
"checking for $ac_word... " >&6; }
3893 if test ${ac_cv_path_PKG_CONFIG+y}
3895 printf %s
"(cached) " >&6
3899 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
3902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3906 case $as_dir in #(((
3909 *) as_dir
=$as_dir/ ;;
3911 for ac_exec_ext
in '' $ac_executable_extensions; do
3912 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3913 ac_cv_path_PKG_CONFIG
="$as_dir$ac_word$ac_exec_ext"
3914 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3924 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
3925 if test -n "$PKG_CONFIG"; then
3926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3927 printf "%s\n" "$PKG_CONFIG" >&6; }
3929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 printf "%s\n" "no" >&6; }
3935 if test -z "$ac_cv_path_PKG_CONFIG"; then
3936 ac_pt_PKG_CONFIG
=$PKG_CONFIG
3937 # Extract the first word of "pkg-config", so it can be a program name with args.
3938 set dummy pkg-config
; ac_word
=$2
3939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 printf %s
"checking for $ac_word... " >&6; }
3941 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
3943 printf %s
"(cached) " >&6
3945 case $ac_pt_PKG_CONFIG in
3947 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3954 case $as_dir in #(((
3957 *) as_dir
=$as_dir/ ;;
3959 for ac_exec_ext
in '' $ac_executable_extensions; do
3960 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
3961 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir$ac_word$ac_exec_ext"
3962 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3972 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
3973 if test -n "$ac_pt_PKG_CONFIG"; then
3974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3975 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
3977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 printf "%s\n" "no" >&6; }
3981 if test "x$ac_pt_PKG_CONFIG" = x
; then
3984 case $cross_compiling:$ac_tool_warned in
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3987 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3988 ac_tool_warned
=yes ;;
3990 PKG_CONFIG
=$ac_pt_PKG_CONFIG
3993 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
3997 if test -n "$PKG_CONFIG"; then
3998 _pkg_min_version
=0.9.0
3999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4000 printf %s
"checking pkg-config is at least version $_pkg_min_version... " >&6; }
4001 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4003 printf "%s\n" "yes" >&6; }
4005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 printf "%s\n" "no" >&6; }
4014 ac_cv_path_ac_pt_PKG_CONFIG
=''
4015 ac_cv_prog_ac_ct_PKG_CONFIG
=''
4018 as_fn_error $?
"invalid argument --with-pkg-config=$with_pkg_config" "$LINENO" 5
4021 if test "$with_pkg_config" = yes -a -z "$PKG_CONFIG"; then
4022 as_fn_error $?
"pkg-config is required" "$LINENO" 5]
4025 # Set name for machine-dependent library files
4027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5
4028 printf %s
"checking MACHDEP... " >&6; }
4029 if test -z "$MACHDEP"
4031 # avoid using uname for cross builds
4032 if test "$cross_compiling" = yes; then
4033 # ac_sys_system and ac_sys_release are used for setting
4034 # a lot of different things including 'define_xopen_source'
4035 # in the case statement below.
4038 ac_sys_system
=Linux-android
4044 ac_sys_system
=Cygwin
4050 ac_sys_system
=VxWorks
4053 ac_sys_system
=Emscripten
4059 # for now, limit cross builds to known configurations
4061 as_fn_error $?
"cross build not supported for $host" "$LINENO" 5
4065 ac_sys_system
=`uname -s`
4066 if test "$ac_sys_system" = "AIX" \
4067 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then
4068 ac_sys_release
=`uname -v`
4070 ac_sys_release
=`uname -r`
4073 ac_md_system
=`echo $ac_sys_system |
4074 tr -d '/ ' | tr '[A-Z]' '[a-z]'`
4075 ac_md_release
=`echo $ac_sys_release |
4076 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'`
4077 MACHDEP
="$ac_md_system$ac_md_release"
4080 aix
*) MACHDEP
="aix";;
4081 linux-android
*) MACHDEP
="android";;
4082 linux
*) MACHDEP
="linux";;
4083 cygwin
*) MACHDEP
="cygwin";;
4084 darwin
*) MACHDEP
="darwin";;
4085 '') MACHDEP
="unknown";;
4088 if test "$ac_sys_system" = "SunOS"; then
4089 # For Solaris, there isn't an OS version specific macro defined
4090 # in most compilers, so we define one here.
4091 SUNOS_VERSION
=`echo $ac_sys_release | sed -e 's!\.\(0-9\)$!.0\1!g' | tr -d '.'`
4093 printf "%s\n" "#define Py_SUNOS_VERSION $SUNOS_VERSION" >>confdefs.h
4097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5
4098 printf "%s\n" "\"$MACHDEP\"" >&6; }
4100 # On cross-compile builds, configure will look for a host-specific compiler by
4101 # prepending the user-provided host triple to the required binary name.
4103 # On iOS, this results in binaries like "arm64-apple-ios12.0-simulator-gcc",
4104 # which isn't a binary that exists, and isn't very convenient, as it contains the
4105 # iOS version. As the default cross-compiler name won't exist, configure falls
4106 # back to gcc, which *definitely* won't work. We're providing wrapper scripts for
4107 # these tools; the binary names of these scripts are better defaults than "gcc".
4108 # This only requires that the user put the platform scripts folder (e.g.,
4109 # "iOS/Resources/bin") in their path, rather than defining platform-specific
4110 # names/paths for AR, CC, CPP, and CXX explicitly; and if the user forgets to
4111 # either put the platform scripts folder in the path, or specify CC etc,
4112 # configure will fail.
4113 if test -z "$AR"; then
4115 aarch64-apple-ios
*-simulator) AR
=arm64-apple-ios-simulator-ar
;;
4116 aarch64-apple-ios
*) AR
=arm64-apple-ios-ar
;;
4117 x86_64-apple-ios
*-simulator) AR
=x86_64-apple-ios-simulator-ar
;;
4121 if test -z "$CC"; then
4123 aarch64-apple-ios
*-simulator) CC
=arm64-apple-ios-simulator-clang
;;
4124 aarch64-apple-ios
*) CC
=arm64-apple-ios-clang
;;
4125 x86_64-apple-ios
*-simulator) CC
=x86_64-apple-ios-simulator-clang
;;
4129 if test -z "$CPP"; then
4131 aarch64-apple-ios
*-simulator) CPP
=arm64-apple-ios-simulator-cpp
;;
4132 aarch64-apple-ios
*) CPP
=arm64-apple-ios-cpp
;;
4133 x86_64-apple-ios
*-simulator) CPP
=x86_64-apple-ios-simulator-cpp
;;
4137 if test -z "$CXX"; then
4139 aarch64-apple-ios
*-simulator) CXX
=arm64-apple-ios-simulator-clang
;;
4140 aarch64-apple-ios
*) CXX
=arm64-apple-ios-clang
;;
4141 x86_64-apple-ios
*-simulator) CXX
=x86_64-apple-ios-simulator-clang
;;
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5
4147 printf %s
"checking for --enable-universalsdk... " >&6; }
4148 # Check whether --enable-universalsdk was given.
4149 if test ${enable_universalsdk+y}
4151 enableval
=$enable_universalsdk;
4154 # Locate the best usable SDK, see Mac/README for more
4156 enableval
="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`"
4157 if ! ( echo $enableval |
grep -E '\.sdk' 1>/dev
/null
)
4159 enableval
=/Developer
/SDKs
/MacOSX10.4u.sdk
4160 if test ! -d "${enableval}"
4170 enable_universalsdk
=
4173 UNIVERSALSDK
=$enableval
4174 if test ! -d "${UNIVERSALSDK}"
4176 as_fn_error $?
"--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5
4185 enable_universalsdk
=
4189 if test -n "${UNIVERSALSDK}"
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5
4192 printf "%s\n" "${UNIVERSALSDK}" >&6; }
4194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 printf "%s\n" "no" >&6; }
4202 # For backward compatibility reasons we prefer to select '32-bit' if available,
4203 # otherwise use 'intel'
4204 UNIVERSAL_ARCHS
="32-bit"
4205 if test "`uname -s`" = "Darwin"
4207 if test -n "${UNIVERSALSDK}"
4209 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr
/lib
/libSystem.dylib
" | grep ppc`"
4211 UNIVERSAL_ARCHS
="intel"
4218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5
4219 printf %s
"checking for --with-universal-archs... " >&6; }
4221 # Check whether --with-universal-archs was given.
4222 if test ${with_universal_archs+y}
4224 withval
=$with_universal_archs;
4225 UNIVERSAL_ARCHS
="$withval"
4229 if test -n "${UNIVERSALSDK}"
4231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5
4232 printf "%s\n" "${UNIVERSAL_ARCHS}" >&6; }
4234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 printf "%s\n" "no" >&6; }
4239 # Check whether --with-framework-name was given.
4240 if test ${with_framework_name+y}
4242 withval
=$with_framework_name;
4243 PYTHONFRAMEWORK
=${withval}
4244 PYTHONFRAMEWORKDIR
=${withval}.framework
4245 PYTHONFRAMEWORKIDENTIFIER
=org.python.
`echo $withval | tr 'A-Z' 'a-z'`
4249 PYTHONFRAMEWORK
=Python
4250 PYTHONFRAMEWORKDIR
=Python.framework
4251 PYTHONFRAMEWORKIDENTIFIER
=org.python.python
4255 # Check whether --enable-framework was given.
4256 if test ${enable_framework+y}
4258 enableval
=$enable_framework;
4261 case $ac_sys_system in
4262 Darwin
) enableval
=/Library
/Frameworks
;;
4263 iOS
) enableval
=iOS
/Frameworks
/\$\
(MULTIARCH\
) ;;
4264 *) as_fn_error $?
"Unknown platform for framework build" "$LINENO" 5
4270 case $ac_sys_system in
4271 iOS
) as_fn_error $?
"iOS builds must use --enable-framework" "$LINENO" 5 ;;
4274 PYTHONFRAMEWORKDIR
=no-framework
4275 PYTHONFRAMEWORKPREFIX
=
4276 PYTHONFRAMEWORKINSTALLDIR
=
4277 PYTHONFRAMEWORKINSTALLNAMEPREFIX
=
4279 FRAMEWORKINSTALLFIRST
=
4280 FRAMEWORKINSTALLLAST
=
4281 FRAMEWORKALTINSTALLFIRST
=
4282 FRAMEWORKALTINSTALLLAST
=
4284 INSTALLTARGETS
="commoninstall bininstall maninstall"
4286 if test "x${prefix}" = "xNONE"; then
4287 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
4289 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
4295 PYTHONFRAMEWORKPREFIX
="${enableval}"
4296 PYTHONFRAMEWORKINSTALLDIR
=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR
4298 case $ac_sys_system in #(
4300 FRAMEWORKINSTALLFIRST
="frameworkinstallversionedstructure"
4301 FRAMEWORKALTINSTALLFIRST
="frameworkinstallversionedstructure "
4302 FRAMEWORKINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools"
4303 FRAMEWORKALTINSTALLLAST
="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools"
4304 FRAMEWORKPYTHONW
="frameworkpythonw"
4305 FRAMEWORKINSTALLAPPSPREFIX
="/Applications"
4306 INSTALLTARGETS
="commoninstall bininstall maninstall"
4308 if test "x${prefix}" = "xNONE" ; then
4309 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
4312 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
4315 case "${enableval}" in
4317 FRAMEWORKINSTALLAPPSPREFIX
="/Applications"
4318 if test "${prefix}" = "NONE" ; then
4320 FRAMEWORKUNIXTOOLSPREFIX
="/usr"
4325 FRAMEWORKINSTALLAPPSPREFIX
="/Applications"
4328 */Library
/Frameworks
)
4329 MDIR
="`dirname "${enableval}"`"
4330 MDIR
="`dirname "${MDIR}"`"
4331 FRAMEWORKINSTALLAPPSPREFIX
="${MDIR}/Applications"
4333 if test "${prefix}" = "NONE"; then
4334 # User hasn't specified the
4335 # --prefix option, but wants to install
4336 # the framework in a non-default location,
4337 # ensure that the compatibility links get
4338 # installed relative to that prefix as well
4339 # instead of in /usr/local.
4340 FRAMEWORKUNIXTOOLSPREFIX
="${MDIR}"
4345 FRAMEWORKINSTALLAPPSPREFIX
="/Applications"
4349 prefix
=$PYTHONFRAMEWORKINSTALLDIR/Versions
/$VERSION
4350 PYTHONFRAMEWORKINSTALLNAMEPREFIX
=${prefix}
4351 RESSRCDIR
=Mac
/Resources
/framework
4353 # Add files for Mac specific code to the list of output
4355 ac_config_files
="$ac_config_files Mac/Makefile"
4357 ac_config_files
="$ac_config_files Mac/PythonLauncher/Makefile"
4359 ac_config_files
="$ac_config_files Mac/Resources/framework/Info.plist"
4361 ac_config_files
="$ac_config_files Mac/Resources/app/Info.plist"
4365 FRAMEWORKINSTALLFIRST
="frameworkinstallunversionedstructure"
4366 FRAMEWORKALTINSTALLFIRST
="frameworkinstallunversionedstructure "
4367 FRAMEWORKINSTALLLAST
="frameworkinstallmobileheaders"
4368 FRAMEWORKALTINSTALLLAST
="frameworkinstallmobileheaders"
4370 INSTALLTARGETS
="libinstall inclinstall sharedinstall"
4372 prefix
=$PYTHONFRAMEWORKPREFIX
4373 PYTHONFRAMEWORKINSTALLNAMEPREFIX
="@rpath/$PYTHONFRAMEWORKDIR"
4374 RESSRCDIR
=iOS
/Resources
4376 ac_config_files
="$ac_config_files iOS/Resources/Info.plist"
4380 as_fn_error $?
"Unknown platform for framework build" "$LINENO" 5
4387 case $ac_sys_system in
4388 iOS
) as_fn_error $?
"iOS builds must use --enable-framework" "$LINENO" 5 ;;
4391 PYTHONFRAMEWORKDIR
=no-framework
4392 PYTHONFRAMEWORKPREFIX
=
4393 PYTHONFRAMEWORKINSTALLDIR
=
4394 PYTHONFRAMEWORKINSTALLNAMEPREFIX
=
4396 FRAMEWORKINSTALLFIRST
=
4397 FRAMEWORKINSTALLLAST
=
4398 FRAMEWORKALTINSTALLFIRST
=
4399 FRAMEWORKALTINSTALLLAST
=
4401 INSTALLTARGETS
="commoninstall bininstall maninstall"
4402 if test "x${prefix}" = "xNONE" ; then
4403 FRAMEWORKUNIXTOOLSPREFIX
="${ac_default_prefix}"
4405 FRAMEWORKUNIXTOOLSPREFIX
="${prefix}"
4429 printf "%s\n" "#define _PYTHONFRAMEWORK \"${PYTHONFRAMEWORK}\"" >>confdefs.h
4433 if test "$cross_compiling" = yes; then
4441 _host_ident
=$host_cpu
4448 _host_os
=`echo $host | cut -d '-' -f3`
4449 _host_device
=`echo $host | cut -d '-' -f4`
4450 _host_device
=${_host_device:=os}
4452 # IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version
4453 IPHONEOS_DEPLOYMENT_TARGET
=${_host_os:3}
4454 IPHONEOS_DEPLOYMENT_TARGET
=${IPHONEOS_DEPLOYMENT_TARGET:=12.0}
4458 _host_ident
=${IPHONEOS_DEPLOYMENT_TARGET}-arm64-iphone${_host_device}
4461 _host_ident
=${IPHONEOS_DEPLOYMENT_TARGET}-$host_cpu-iphone${_host_device}
4466 _host_ident
=$host_cpu
4468 wasm32-
*-* | wasm64-
*-*)
4469 _host_ident
=$host_cpu
4472 # for now, limit cross builds to known configurations
4474 as_fn_error $?
"cross build not supported for $host" "$LINENO" 5
4476 _PYTHON_HOST_PLATFORM
="$MACHDEP${_host_ident:+-$_host_ident}"
4479 # Some systems cannot stand _XOPEN_SOURCE being defined at all; they
4480 # disable features if it is defined, without any means to access these
4481 # features as extensions. For these systems, we skip the definition of
4482 # _XOPEN_SOURCE. Before adding a system to the list to gain access to
4483 # some feature, make sure there is no alternative way to access this
4484 # feature. Also, when using wildcards, make sure you have verified the
4485 # need for not defining _XOPEN_SOURCE on all systems matching the
4486 # wildcard, and that the wildcard does not include future systems
4487 # (which may remove their limitations).
4488 case $ac_sys_system/$ac_sys_release in
4489 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined,
4490 # even though select is a POSIX function. Reported by J. Ribbens.
4491 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
4492 # In addition, Stefan Krah confirms that issue #1244610 exists through
4493 # OpenBSD 4.6, but is fixed in 4.7.
4494 OpenBSD
/2.
* | OpenBSD
/3.
* | OpenBSD
/4.
[0123456])
4495 define_xopen_source
=no
4496 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
4497 # also defined. This can be overridden by defining _BSD_SOURCE
4498 # As this has a different meaning on Linux, only define it on OpenBSD
4500 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
4504 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
4505 # also defined. This can be overridden by defining _BSD_SOURCE
4506 # As this has a different meaning on Linux, only define it on OpenBSD
4508 printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h
4511 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
4512 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
4514 NetBSD
/1.5 | NetBSD
/1.5.
* | NetBSD
/1.6 | NetBSD
/1.6.
* | NetBSD
/1.6[A-S
])
4515 define_xopen_source
=no
;;
4516 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a
4517 # request to enable features supported by the standard as a request
4518 # to disable features not supported by the standard. The best way
4519 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out
4520 # entirely and define __EXTENSIONS__ instead.
4522 define_xopen_source
=no
;;
4523 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE,
4524 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice.
4525 # Reconfirmed for 7.1.4 by Martin v. Loewis.
4526 OpenUNIX
/8.0.0| UnixWare
/7.1.
[0-4])
4527 define_xopen_source
=no
;;
4528 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE,
4529 # but used in struct sockaddr.sa_family. Reported by Tim Rice.
4531 define_xopen_source
=no
;;
4532 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if
4533 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which
4534 # identifies itself as Darwin/7.*
4535 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
4536 # disables platform specific features beyond repair.
4537 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE
4538 # has no effect, don't bother defining them
4540 define_xopen_source
=no
;;
4542 define_xopen_source
=no
;;
4543 # On iOS, defining _POSIX_C_SOURCE also disables platform specific features.
4545 define_xopen_source
=no
;;
4546 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from
4547 # defining NI_NUMERICHOST.
4549 define_xopen_source
=no
4551 # On VxWorks, defining _XOPEN_SOURCE causes compile failures
4552 # in network headers still using system V types.
4554 define_xopen_source
=no
4557 # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides
4558 # chroot() and other functions
4560 define_xopen_source
=no
4565 if test $define_xopen_source = yes
4567 # X/Open 7, incorporating POSIX.1-2008
4569 printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h
4572 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
4573 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else
4574 # several APIs are not declared. Since this is also needed in some
4575 # cases for HP-UX, we define it globally.
4577 printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
4581 printf "%s\n" "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
4585 # On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
4586 case $ac_sys_system in
4588 define_stdc_a1
=yes;;
4593 if test $define_stdc_a1 = yes
4596 printf "%s\n" "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
4600 # Record the configure-time value of MACOSX_DEPLOYMENT_TARGET,
4601 # it may influence the way we can build extensions, so distutils
4605 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=
4606 EXPORT_MACOSX_DEPLOYMENT_TARGET
='#'
4608 # Record the value of IPHONEOS_DEPLOYMENT_TARGET enforced by the selected host triple.
4611 # checks for alternative programs
4613 # compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just
4614 # for debug/optimization stuff. BASECFLAGS is for flags that are required
4615 # just to get things to compile and link. Users are free to override OPT
4616 # when running configure or make. The build should not break if they do.
4617 # BASECFLAGS should generally not be messed with, however.
4619 # If the user switches compilers, we can't believe the cache
4620 if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
4622 as_fn_error $?
"cached CC is different -- throw away $cache_file
4623 (it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5
4626 # Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2
4627 # when the compiler supports them, but we don't always want -O2, and
4629 if test -z "$CFLAGS"; then
4634 wasm64-
*-emscripten) :
4636 as_fn_append CFLAGS
" -sMEMORY64=1"
4637 as_fn_append LDFLAGS
" -sMEMORY64=1"
4643 case $ac_sys_system in #(
4646 as_fn_append CFLAGS
" -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
4647 as_fn_append LDFLAGS
" -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}"
4653 if test "$ac_sys_system" = "Darwin"
4655 # Extract the first word of "xcrun", so it can be a program name with args.
4656 set dummy xcrun
; ac_word
=$2
4657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 printf %s
"checking for $ac_word... " >&6; }
4659 if test ${ac_cv_prog_HAS_XCRUN+y}
4661 printf %s
"(cached) " >&6
4663 if test -n "$HAS_XCRUN"; then
4664 ac_cv_prog_HAS_XCRUN
="$HAS_XCRUN" # Let the user override the test.
4666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4670 case $as_dir in #(((
4673 *) as_dir
=$as_dir/ ;;
4675 for ac_exec_ext
in '' $ac_executable_extensions; do
4676 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4677 ac_cv_prog_HAS_XCRUN
="yes"
4678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4685 test -z "$ac_cv_prog_HAS_XCRUN" && ac_cv_prog_HAS_XCRUN
="missing"
4688 HAS_XCRUN
=$ac_cv_prog_HAS_XCRUN
4689 if test -n "$HAS_XCRUN"; then
4690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_XCRUN" >&5
4691 printf "%s\n" "$HAS_XCRUN" >&6; }
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 printf "%s\n" "no" >&6; }
4698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking macOS SDKROOT" >&5
4699 printf %s
"checking macOS SDKROOT... " >&6; }
4700 if test -z "$SDKROOT"; then
4701 if test "$HAS_XCRUN" = "yes"; then
4702 SDKROOT
=$
(xcrun
--show-sdk-path)
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDKROOT" >&5
4708 printf "%s\n" "$SDKROOT" >&6; }
4710 # Compiler selection on MacOSX is more complicated than
4711 # AC_PROG_CC can handle, see Mac/README for more
4717 as_save_IFS
=$IFS; IFS
=:
4721 if test -x "${as_dir}/gcc"; then
4722 if test -z "${found_gcc}"; then
4723 found_gcc
="${as_dir}/gcc"
4726 if test -x "${as_dir}/clang"; then
4727 if test -z "${found_clang}"; then
4728 found_clang
="${as_dir}/clang"
4734 if test -n "$found_gcc" -a -n "$found_clang"
4736 if test -n "`"$found_gcc" --version | grep llvm-gcc`"
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5
4739 printf "%s\n" "$as_me: Detected llvm-gcc, falling back to clang" >&6;}
4741 CXX
="$found_clang++"
4745 elif test -z "$found_gcc" -a -n "$found_clang"
4747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5
4748 printf "%s\n" "$as_me: No GCC found, use CLANG" >&6;}
4750 CXX
="$found_clang++"
4752 elif test -z "$found_gcc" -a -z "$found_clang"
4754 found_clang
=`/usr/bin/xcrun -find clang 2>/dev/null`
4755 if test -n "${found_clang}"
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5
4758 printf "%s\n" "$as_me: Using clang from Xcode.app" >&6;}
4760 CXX
="`/usr/bin/xcrun -find clang++`"
4762 # else: use default behaviour
4777 ac_cpp
='$CPP $CPPFLAGS'
4778 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4781 if test -n "$ac_tool_prefix"; then
4782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4783 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4785 printf %s
"checking for $ac_word... " >&6; }
4786 if test ${ac_cv_prog_CC+y}
4788 printf %s
"(cached) " >&6
4790 if test -n "$CC"; then
4791 ac_cv_prog_CC
="$CC" # Let the user override the test.
4793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4797 case $as_dir in #(((
4800 *) as_dir
=$as_dir/ ;;
4802 for ac_exec_ext
in '' $ac_executable_extensions; do
4803 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4804 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4815 if test -n "$CC"; then
4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4817 printf "%s\n" "$CC" >&6; }
4819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4820 printf "%s\n" "no" >&6; }
4825 if test -z "$ac_cv_prog_CC"; then
4827 # Extract the first word of "gcc", so it can be a program name with args.
4828 set dummy gcc
; ac_word
=$2
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4830 printf %s
"checking for $ac_word... " >&6; }
4831 if test ${ac_cv_prog_ac_ct_CC+y}
4833 printf %s
"(cached) " >&6
4835 if test -n "$ac_ct_CC"; then
4836 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4838 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4842 case $as_dir in #(((
4845 *) as_dir
=$as_dir/ ;;
4847 for ac_exec_ext
in '' $ac_executable_extensions; do
4848 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_ac_ct_CC
="gcc"
4850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4859 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4860 if test -n "$ac_ct_CC"; then
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4862 printf "%s\n" "$ac_ct_CC" >&6; }
4864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4865 printf "%s\n" "no" >&6; }
4868 if test "x$ac_ct_CC" = x
; then
4871 case $cross_compiling:$ac_tool_warned in
4873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4875 ac_tool_warned
=yes ;;
4883 if test -z "$CC"; then
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4886 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 printf %s
"checking for $ac_word... " >&6; }
4889 if test ${ac_cv_prog_CC+y}
4891 printf %s
"(cached) " >&6
4893 if test -n "$CC"; then
4894 ac_cv_prog_CC
="$CC" # Let the user override the test.
4896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4900 case $as_dir in #(((
4903 *) as_dir
=$as_dir/ ;;
4905 for ac_exec_ext
in '' $ac_executable_extensions; do
4906 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4907 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4908 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4918 if test -n "$CC"; then
4919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4920 printf "%s\n" "$CC" >&6; }
4922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4923 printf "%s\n" "no" >&6; }
4929 if test -z "$CC"; then
4930 # Extract the first word of "cc", so it can be a program name with args.
4931 set dummy cc
; ac_word
=$2
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933 printf %s
"checking for $ac_word... " >&6; }
4934 if test ${ac_cv_prog_CC+y}
4936 printf %s
"(cached) " >&6
4938 if test -n "$CC"; then
4939 ac_cv_prog_CC
="$CC" # Let the user override the test.
4942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4946 case $as_dir in #(((
4949 *) as_dir
=$as_dir/ ;;
4951 for ac_exec_ext
in '' $ac_executable_extensions; do
4952 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
4953 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4954 ac_prog_rejected
=yes
4958 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4965 if test $ac_prog_rejected = yes; then
4966 # We found a bogon in the path, so make sure we never use it.
4967 set dummy
$ac_cv_prog_CC
4969 if test $# != 0; then
4970 # We chose a different compiler from the bogus one.
4971 # However, it has the same basename, so the bogon will be chosen
4972 # first if we set CC to just the basename; use the full file name.
4974 ac_cv_prog_CC
="$as_dir$ac_word${1+' '}$@"
4980 if test -n "$CC"; then
4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4982 printf "%s\n" "$CC" >&6; }
4984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 printf "%s\n" "no" >&6; }
4990 if test -z "$CC"; then
4991 if test -n "$ac_tool_prefix"; then
4992 for ac_prog
in cl.exe
4994 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4995 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 printf %s
"checking for $ac_word... " >&6; }
4998 if test ${ac_cv_prog_CC+y}
5000 printf %s
"(cached) " >&6
5002 if test -n "$CC"; then
5003 ac_cv_prog_CC
="$CC" # Let the user override the test.
5005 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5009 case $as_dir in #(((
5012 *) as_dir
=$as_dir/ ;;
5014 for ac_exec_ext
in '' $ac_executable_extensions; do
5015 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5016 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5027 if test -n "$CC"; then
5028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5029 printf "%s\n" "$CC" >&6; }
5031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5032 printf "%s\n" "no" >&6; }
5036 test -n "$CC" && break
5039 if test -z "$CC"; then
5041 for ac_prog
in cl.exe
5043 # Extract the first word of "$ac_prog", so it can be a program name with args.
5044 set dummy
$ac_prog; ac_word
=$2
5045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 printf %s
"checking for $ac_word... " >&6; }
5047 if test ${ac_cv_prog_ac_ct_CC+y}
5049 printf %s
"(cached) " >&6
5051 if test -n "$ac_ct_CC"; then
5052 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5054 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5058 case $as_dir in #(((
5061 *) as_dir
=$as_dir/ ;;
5063 for ac_exec_ext
in '' $ac_executable_extensions; do
5064 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5065 ac_cv_prog_ac_ct_CC
="$ac_prog"
5066 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5075 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5076 if test -n "$ac_ct_CC"; then
5077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5078 printf "%s\n" "$ac_ct_CC" >&6; }
5080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081 printf "%s\n" "no" >&6; }
5085 test -n "$ac_ct_CC" && break
5088 if test "x$ac_ct_CC" = x
; then
5091 case $cross_compiling:$ac_tool_warned in
5093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5094 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5095 ac_tool_warned
=yes ;;
5102 if test -z "$CC"; then
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5105 set dummy
${ac_tool_prefix}clang
; ac_word
=$2
5106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 printf %s
"checking for $ac_word... " >&6; }
5108 if test ${ac_cv_prog_CC+y}
5110 printf %s
"(cached) " >&6
5112 if test -n "$CC"; then
5113 ac_cv_prog_CC
="$CC" # Let the user override the test.
5115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5119 case $as_dir in #(((
5122 *) as_dir
=$as_dir/ ;;
5124 for ac_exec_ext
in '' $ac_executable_extensions; do
5125 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5126 ac_cv_prog_CC
="${ac_tool_prefix}clang"
5127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5137 if test -n "$CC"; then
5138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5139 printf "%s\n" "$CC" >&6; }
5141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142 printf "%s\n" "no" >&6; }
5147 if test -z "$ac_cv_prog_CC"; then
5149 # Extract the first word of "clang", so it can be a program name with args.
5150 set dummy clang
; ac_word
=$2
5151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5152 printf %s
"checking for $ac_word... " >&6; }
5153 if test ${ac_cv_prog_ac_ct_CC+y}
5155 printf %s
"(cached) " >&6
5157 if test -n "$ac_ct_CC"; then
5158 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5164 case $as_dir in #(((
5167 *) as_dir
=$as_dir/ ;;
5169 for ac_exec_ext
in '' $ac_executable_extensions; do
5170 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
5171 ac_cv_prog_ac_ct_CC
="clang"
5172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5181 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5182 if test -n "$ac_ct_CC"; then
5183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5184 printf "%s\n" "$ac_ct_CC" >&6; }
5186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 printf "%s\n" "no" >&6; }
5190 if test "x$ac_ct_CC" = x
; then
5193 case $cross_compiling:$ac_tool_warned in
5195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197 ac_tool_warned
=yes ;;
5208 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5209 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5210 as_fn_error $?
"no acceptable C compiler found in \$PATH
5211 See \`config.log' for more details" "$LINENO" 5; }
5213 # Provide some information about the compiler.
5214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5217 for ac_option
in --version -v -V -qversion -version; do
5218 { { ac_try
="$ac_compiler $ac_option >&5"
5220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5221 *) ac_try_echo=$ac_try;;
5223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5224 printf "%s\n" "$ac_try_echo"; } >&5
5225 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5227 if test -s conftest.err; then
5229 ... rest of stderr output deleted ...
5230 10q' conftest.err >conftest.er1
5231 cat conftest.er1 >&5
5233 rm -f conftest.er1 conftest.err
5234 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5235 test $ac_status = 0; }
5238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5249 ac_clean_files_save=$ac_clean_files
5250 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5251 # Try to create an executable without -o first, disregard a.out.
5252 # It will help us diagnose broken compilers, and finding out an intuition
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5255 printf %s "checking whether the C compiler works... " >&6; }
5256 ac_link_default=`printf "%s\n" "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
5258 # The possible output files:
5259 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5262 for ac_file in $ac_files
5265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5266 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5271 if { { ac_try="$ac_link_default"
5273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5274 *) ac_try_echo
=$ac_try;;
5276 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5277 printf "%s\n" "$ac_try_echo"; } >&5
5278 (eval "$ac_link_default") 2>&5
5280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5281 test $ac_status = 0; }
5283 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5284 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5285 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5286 # so that the user can short-circuit this test for compilers unknown to
5288 for ac_file
in $ac_files ''
5290 test -f "$ac_file" ||
continue
5292 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
5295 # We found the default executable, but exeext='' is most
5299 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no
;
5301 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5303 # We set ac_cv_exeext here because the later test for it is not
5304 # safe: cross compilers may not add the suffix if given an `-o'
5305 # argument, so we may need to know it at that point already.
5306 # Even if this section looks crufty: it has the advantage of
5313 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
5318 if test -z "$ac_file"
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 printf "%s\n" "no" >&6; }
5322 printf "%s\n" "$as_me: failed program was:" >&5
5323 sed 's/^/| /' conftest.
$ac_ext >&5
5325 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5326 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5327 as_fn_error
77 "C compiler cannot create executables
5328 See \`config.log' for more details" "$LINENO" 5; }
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5331 printf "%s\n" "yes" >&6; }
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5334 printf %s
"checking for C compiler default output file name... " >&6; }
5335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5336 printf "%s\n" "$ac_file" >&6; }
5337 ac_exeext
=$ac_cv_exeext
5339 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
5340 ac_clean_files
=$ac_clean_files_save
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5342 printf %s
"checking for suffix of executables... " >&6; }
5343 if { { ac_try
="$ac_link"
5345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5349 printf "%s\n" "$ac_try_echo"; } >&5
5350 (eval "$ac_link") 2>&5
5352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5353 test $ac_status = 0; }
5355 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
5356 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
5357 # work properly (i.e., refer to `conftest.exe'), while it won't with
5359 for ac_file
in conftest.exe conftest conftest.
*; do
5360 test -f "$ac_file" ||
continue
5362 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
5363 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
5369 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5370 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5371 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
5372 See \`config.log' for more details" "$LINENO" 5; }
5374 rm -f conftest conftest
$ac_cv_exeext
5375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5376 printf "%s\n" "$ac_cv_exeext" >&6; }
5378 rm -f conftest.
$ac_ext
5379 EXEEXT
=$ac_cv_exeext
5381 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5382 /* end confdefs.h. */
5387 FILE *f = fopen ("conftest.out", "w");
5388 return ferror (f) || fclose (f) != 0;
5394 ac_clean_files
="$ac_clean_files conftest.out"
5395 # Check that the compiler produces executables we can run. If not, either
5396 # the compiler is broken, or we cross compile.
5397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5398 printf %s
"checking whether we are cross compiling... " >&6; }
5399 if test "$cross_compiling" != yes; then
5400 { { ac_try
="$ac_link"
5402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5403 *) ac_try_echo=$ac_try;;
5405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5406 printf "%s\n" "$ac_try_echo"; } >&5
5407 (eval "$ac_link") 2>&5
5409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5410 test $ac_status = 0; }
5411 if { ac_try='./conftest$ac_cv_exeext'
5412 { { case "(($ac_try" in
5413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5414 *) ac_try_echo
=$ac_try;;
5416 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5417 printf "%s\n" "$ac_try_echo"; } >&5
5418 (eval "$ac_try") 2>&5
5420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5421 test $ac_status = 0; }; }; then
5424 if test "$cross_compiling" = maybe
; then
5427 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5428 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5429 as_fn_error
77 "cannot run C compiled programs.
5430 If you meant to cross compile, use \`--host'.
5431 See \`config.log' for more details" "$LINENO" 5; }
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5436 printf "%s\n" "$cross_compiling" >&6; }
5438 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
5439 ac_clean_files
=$ac_clean_files_save
5440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5441 printf %s
"checking for suffix of object files... " >&6; }
5442 if test ${ac_cv_objext+y}
5444 printf %s
"(cached) " >&6
5446 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5457 rm -f conftest.o conftest.obj
5458 if { { ac_try
="$ac_compile"
5460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5464 printf "%s\n" "$ac_try_echo"; } >&5
5465 (eval "$ac_compile") 2>&5
5467 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468 test $ac_status = 0; }
5470 for ac_file in conftest.o conftest.obj conftest.*; do
5471 test -f "$ac_file" || continue;
5473 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5474 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5479 printf "%s\n" "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5483 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5484 as_fn_error $? "cannot compute suffix of object files
: cannot compile
5485 See \
`config.log' for more details" "$LINENO" 5; }
5487 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5490 printf "%s\n" "$ac_cv_objext" >&6; }
5491 OBJEXT=$ac_cv_objext
5493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5494 printf %s "checking whether the compiler supports GNU C... " >&6; }
5495 if test ${ac_cv_c_compiler_gnu+y}
5497 printf %s "(cached) " >&6
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5513 if ac_fn_c_try_compile "$LINENO"
5519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5520 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5524 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5527 if test $ac_compiler_gnu = yes; then
5532 ac_test_CFLAGS=${CFLAGS+y}
5533 ac_save_CFLAGS=$CFLAGS
5534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5535 printf %s "checking whether $CC accepts -g... " >&6; }
5536 if test ${ac_cv_prog_cc_g+y}
5538 printf %s "(cached) " >&6
5540 ac_save_c_werror_flag=$ac_c_werror_flag
5541 ac_c_werror_flag=yes
5544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5545 /* end confdefs.h. */
5555 if ac_fn_c_try_compile "$LINENO"
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5571 if ac_fn_c_try_compile "$LINENO"
5575 ac_c_werror_flag=$ac_save_c_werror_flag
5577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5578 /* end confdefs.h. */
5588 if ac_fn_c_try_compile "$LINENO"
5592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5597 ac_c_werror_flag=$ac_save_c_werror_flag
5599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5600 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5601 if test $ac_test_CFLAGS; then
5602 CFLAGS=$ac_save_CFLAGS
5603 elif test $ac_cv_prog_cc_g = yes; then
5604 if test "$GCC" = yes; then
5610 if test "$GCC" = yes; then
5617 if test x$ac_prog_cc_stdc = xno
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5620 printf %s "checking for $CC option to enable C11 features... " >&6; }
5621 if test ${ac_cv_prog_cc_c11+y}
5623 printf %s "(cached) " >&6
5625 ac_cv_prog_cc_c11=no
5627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5628 /* end confdefs.h. */
5629 $ac_c_conftest_c11_program
5631 for ac_arg in '' -std=gnu11
5633 CC="$ac_save_CC $ac_arg"
5634 if ac_fn_c_try_compile "$LINENO"
5636 ac_cv_prog_cc_c11=$ac_arg
5638 rm -f core conftest.err conftest.$ac_objext conftest.beam
5639 test "x$ac_cv_prog_cc_c11" != "xno" && break
5641 rm -f conftest.$ac_ext
5645 if test "x$ac_cv_prog_cc_c11" = xno
5647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5648 printf "%s\n" "unsupported" >&6; }
5650 if test "x$ac_cv_prog_cc_c11" = x
5652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5653 printf "%s\n" "none needed" >&6; }
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5656 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5657 CC="$CC $ac_cv_prog_cc_c11"
5659 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5663 if test x$ac_prog_cc_stdc = xno
5665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5666 printf %s "checking for $CC option to enable C99 features... " >&6; }
5667 if test ${ac_cv_prog_cc_c99+y}
5669 printf %s "(cached) " >&6
5671 ac_cv_prog_cc_c99=no
5673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5674 /* end confdefs.h. */
5675 $ac_c_conftest_c99_program
5677 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5679 CC="$ac_save_CC $ac_arg"
5680 if ac_fn_c_try_compile "$LINENO"
5682 ac_cv_prog_cc_c99=$ac_arg
5684 rm -f core conftest.err conftest.$ac_objext conftest.beam
5685 test "x$ac_cv_prog_cc_c99" != "xno" && break
5687 rm -f conftest.$ac_ext
5691 if test "x$ac_cv_prog_cc_c99" = xno
5693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5694 printf "%s\n" "unsupported" >&6; }
5696 if test "x$ac_cv_prog_cc_c99" = x
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5699 printf "%s\n" "none needed" >&6; }
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5702 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5703 CC="$CC $ac_cv_prog_cc_c99"
5705 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5709 if test x$ac_prog_cc_stdc = xno
5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5712 printf %s "checking for $CC option to enable C89 features... " >&6; }
5713 if test ${ac_cv_prog_cc_c89+y}
5715 printf %s "(cached) " >&6
5717 ac_cv_prog_cc_c89=no
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 $ac_c_conftest_c89_program
5723 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5725 CC="$ac_save_CC $ac_arg"
5726 if ac_fn_c_try_compile "$LINENO"
5728 ac_cv_prog_cc_c89=$ac_arg
5730 rm -f core conftest.err conftest.$ac_objext conftest.beam
5731 test "x$ac_cv_prog_cc_c89" != "xno" && break
5733 rm -f conftest.$ac_ext
5737 if test "x$ac_cv_prog_cc_c89" = xno
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5740 printf "%s\n" "unsupported" >&6; }
5742 if test "x$ac_cv_prog_cc_c89" = x
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5745 printf "%s\n" "none needed" >&6; }
5747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5748 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5749 CC="$CC $ac_cv_prog_cc_c89"
5751 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5757 ac_cpp='$CPP $CPPFLAGS'
5758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5763 ac_cpp='$CPP $CPPFLAGS'
5764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5768 printf %s "checking how to run the C preprocessor... " >&6; }
5769 # On Suns, sometimes $CPP names a directory.
5770 if test -n "$CPP" && test -d "$CPP"; then
5773 if test -z "$CPP"; then
5774 if test ${ac_cv_prog_CPP+y}
5776 printf %s "(cached) " >&6
5778 # Double quotes because $CC needs to be expanded
5779 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5782 for ac_c_preproc_warn_flag in '' yes
5784 # Use a header file that comes with gcc, so configuring glibc
5785 # with a fresh cross-compiler works.
5786 # On the NeXT, cc -E runs the code through the compiler's parser,
5787 # not just through cpp. "Syntax error" is here to catch this case.
5788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789 /* end confdefs.h. */
5793 if ac_fn_c_try_cpp "$LINENO"
5797 # Broken: fails on valid input.
5800 rm -f conftest.err conftest.i conftest.$ac_ext
5802 # OK, works on sane cases. Now check whether nonexistent headers
5803 # can be detected and how.
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5806 #include <ac_nonexistent.h>
5808 if ac_fn_c_try_cpp "$LINENO"
5810 # Broken: success on invalid input.
5813 # Passes both tests.
5817 rm -f conftest.err conftest.i conftest.$ac_ext
5820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5821 rm -f conftest.i conftest.err conftest.
$ac_ext
5835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5836 printf "%s\n" "$CPP" >&6; }
5838 for ac_c_preproc_warn_flag
in '' yes
5840 # Use a header file that comes with gcc, so configuring glibc
5841 # with a fresh cross-compiler works.
5842 # On the NeXT, cc -E runs the code through the compiler's parser,
5843 # not just through cpp. "Syntax error" is here to catch this case.
5844 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5845 /* end confdefs.h. */
5849 if ac_fn_c_try_cpp
"$LINENO"
5853 # Broken: fails on valid input.
5856 rm -f conftest.err conftest.i conftest.
$ac_ext
5858 # OK, works on sane cases. Now check whether nonexistent headers
5859 # can be detected and how.
5860 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5862 #include <ac_nonexistent.h>
5864 if ac_fn_c_try_cpp
"$LINENO"
5866 # Broken: success on invalid input.
5869 # Passes both tests.
5873 rm -f conftest.err conftest.i conftest.
$ac_ext
5876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5877 rm -f conftest.i conftest.err conftest.
$ac_ext
5882 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5883 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5884 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5885 See \`config.log' for more details" "$LINENO" 5; }
5889 ac_cpp
='$CPP $CPPFLAGS'
5890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5895 printf %s
"checking for grep that handles long lines and -e... " >&6; }
5896 if test ${ac_cv_path_GREP+y}
5898 printf %s
"(cached) " >&6
5900 if test -z "$GREP"; then
5901 ac_path_GREP_found
=false
5902 # Loop through the user's path and test for each of PROGNAME-LIST
5903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5904 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5907 case $as_dir in #(((
5910 *) as_dir
=$as_dir/ ;;
5912 for ac_prog
in grep ggrep
5914 for ac_exec_ext
in '' $ac_executable_extensions; do
5915 ac_path_GREP
="$as_dir$ac_prog$ac_exec_ext"
5916 as_fn_executable_p
"$ac_path_GREP" ||
continue
5917 # Check for GNU ac_path_GREP and select it if it is found.
5918 # Check for GNU $ac_path_GREP
5919 case `"$ac_path_GREP" --version 2>&1` in
5921 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
5924 printf %s
0123456789 >"conftest.in"
5927 cat "conftest.in" "conftest.in" >"conftest.tmp"
5928 mv "conftest.tmp" "conftest.in"
5929 cp "conftest.in" "conftest.nl"
5930 printf "%s\n" 'GREP' >> "conftest.nl"
5931 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
5932 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
5933 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5934 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5935 # Best one so far, save it but keep looking for a better one
5936 ac_cv_path_GREP
="$ac_path_GREP"
5937 ac_path_GREP_max
=$ac_count
5939 # 10*(2^10) chars as input seems more than enough
5940 test $ac_count -gt 10 && break
5942 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5945 $ac_path_GREP_found && break 3
5950 if test -z "$ac_cv_path_GREP"; then
5951 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5954 ac_cv_path_GREP
=$GREP
5958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5959 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5960 GREP
="$ac_cv_path_GREP"
5963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5964 printf %s
"checking for a sed that does not truncate output... " >&6; }
5965 if test ${ac_cv_path_SED+y}
5967 printf %s
"(cached) " >&6
5969 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
5970 for ac_i
in 1 2 3 4 5 6 7; do
5971 ac_script
="$ac_script$as_nl$ac_script"
5973 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
5974 { ac_script
=; unset ac_script
;}
5975 if test -z "$SED"; then
5976 ac_path_SED_found
=false
5977 # Loop through the user's path and test for each of PROGNAME-LIST
5978 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5982 case $as_dir in #(((
5985 *) as_dir
=$as_dir/ ;;
5987 for ac_prog
in sed gsed
5989 for ac_exec_ext
in '' $ac_executable_extensions; do
5990 ac_path_SED
="$as_dir$ac_prog$ac_exec_ext"
5991 as_fn_executable_p
"$ac_path_SED" ||
continue
5992 # Check for GNU ac_path_SED and select it if it is found.
5993 # Check for GNU $ac_path_SED
5994 case `"$ac_path_SED" --version 2>&1` in
5996 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5999 printf %s
0123456789 >"conftest.in"
6002 cat "conftest.in" "conftest.in" >"conftest.tmp"
6003 mv "conftest.tmp" "conftest.in"
6004 cp "conftest.in" "conftest.nl"
6005 printf "%s\n" '' >> "conftest.nl"
6006 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6007 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6008 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6009 if test $ac_count -gt ${ac_path_SED_max-0}; then
6010 # Best one so far, save it but keep looking for a better one
6011 ac_cv_path_SED
="$ac_path_SED"
6012 ac_path_SED_max
=$ac_count
6014 # 10*(2^10) chars as input seems more than enough
6015 test $ac_count -gt 10 && break
6017 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6020 $ac_path_SED_found && break 3
6025 if test -z "$ac_cv_path_SED"; then
6026 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6034 printf "%s\n" "$ac_cv_path_SED" >&6; }
6035 SED
="$ac_cv_path_SED"
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6039 printf %s
"checking for egrep... " >&6; }
6040 if test ${ac_cv_path_EGREP+y}
6042 printf %s
"(cached) " >&6
6044 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
6045 then ac_cv_path_EGREP
="$GREP -E"
6047 if test -z "$EGREP"; then
6048 ac_path_EGREP_found
=false
6049 # Loop through the user's path and test for each of PROGNAME-LIST
6050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6051 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
6054 case $as_dir in #(((
6057 *) as_dir
=$as_dir/ ;;
6059 for ac_prog
in egrep
6061 for ac_exec_ext
in '' $ac_executable_extensions; do
6062 ac_path_EGREP
="$as_dir$ac_prog$ac_exec_ext"
6063 as_fn_executable_p
"$ac_path_EGREP" ||
continue
6064 # Check for GNU ac_path_EGREP and select it if it is found.
6065 # Check for GNU $ac_path_EGREP
6066 case `"$ac_path_EGREP" --version 2>&1` in
6068 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
6071 printf %s
0123456789 >"conftest.in"
6074 cat "conftest.in" "conftest.in" >"conftest.tmp"
6075 mv "conftest.tmp" "conftest.in"
6076 cp "conftest.in" "conftest.nl"
6077 printf "%s\n" 'EGREP' >> "conftest.nl"
6078 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
6079 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
6080 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
6081 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6082 # Best one so far, save it but keep looking for a better one
6083 ac_cv_path_EGREP
="$ac_path_EGREP"
6084 ac_path_EGREP_max
=$ac_count
6086 # 10*(2^10) chars as input seems more than enough
6087 test $ac_count -gt 10 && break
6089 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
6092 $ac_path_EGREP_found && break 3
6097 if test -z "$ac_cv_path_EGREP"; then
6098 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6101 ac_cv_path_EGREP
=$EGREP
6106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6107 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6108 EGREP
="$ac_cv_path_EGREP"
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC compiler name" >&5
6113 printf %s
"checking for CC compiler name... " >&6; }
6114 if test ${ac_cv_cc_name+y}
6116 printf %s
"(cached) " >&6
6119 cat > conftest.c
<<EOF
6120 #if defined(__EMSCRIPTEN__)
6122 #elif defined(__INTEL_COMPILER) || defined(__ICC)
6124 #elif defined(__ibmxl__) || defined(__xlc__) || defined(__xlC__)
6126 #elif defined(_MSC_VER)
6128 #elif defined(__clang__)
6130 #elif defined(__GNUC__)
6133 # error unknown compiler
6137 if $CPP $CPPFLAGS conftest.c
>conftest.out
2>/dev
/null
; then
6138 ac_cv_cc_name
=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '`
6139 if test $
(expr "//$CC" : '.*/\(.*\)') = "mpicc"; then
6140 ac_cv_cc_name
="mpicc"
6143 ac_cv_cc_name
="unknown"
6145 rm -f conftest.c conftest.out
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_name" >&5
6149 printf "%s\n" "$ac_cv_cc_name" >&6; }
6151 # checks for UNIX variants that set C preprocessor variables
6152 # may set _GNU_SOURCE, __EXTENSIONS__, _POSIX_PTHREAD_SEMANTICS,
6153 # _POSIX_SOURCE, _POSIX_1_SOURCE, and more
6155 ac_header
= ac_cache
=
6156 for ac_item
in $ac_header_c_list
6158 if test $ac_cache; then
6159 ac_fn_c_check_header_compile
"$LINENO" $ac_header ac_cv_header_
$ac_cache "$ac_includes_default"
6160 if eval test \"x\
$ac_cv_header_$ac_cache\" = xyes
; then
6161 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6163 ac_header
= ac_cache
=
6164 elif test $ac_header; then
6178 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6181 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6191 printf %s
"checking whether it is safe to define __EXTENSIONS__... " >&6; }
6192 if test ${ac_cv_safe_to_define___extensions__+y}
6194 printf %s
"(cached) " >&6
6196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6199 # define __EXTENSIONS__ 1
6200 $ac_includes_default
6209 if ac_fn_c_try_compile
"$LINENO"
6211 ac_cv_safe_to_define___extensions__
=yes
6213 ac_cv_safe_to_define___extensions__
=no
6215 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6218 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6221 printf %s
"checking whether _XOPEN_SOURCE should be defined... " >&6; }
6222 if test ${ac_cv_should_define__xopen_source+y}
6224 printf %s
"(cached) " >&6
6226 ac_cv_should_define__xopen_source
=no
6227 if test $ac_cv_header_wchar_h = yes
6229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6230 /* end confdefs.h. */
6242 if ac_fn_c_try_compile
"$LINENO"
6246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6247 /* end confdefs.h. */
6249 #define _XOPEN_SOURCE 500
6260 if ac_fn_c_try_compile
"$LINENO"
6262 ac_cv_should_define__xopen_source
=yes
6264 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6266 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
6269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6270 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6272 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6274 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6276 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6278 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6280 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6282 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6284 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6286 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6288 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6290 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6292 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6294 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6296 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6298 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6300 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6302 if test $ac_cv_header_minix_config_h = yes
6305 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6307 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6309 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6314 if test $ac_cv_safe_to_define___extensions__ = yes
6316 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6319 if test $ac_cv_should_define__xopen_source = yes
6321 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC compatible compiler" >&5
6328 printf %s
"checking for GCC compatible compiler... " >&6; }
6329 if test ${ac_cv_gcc_compat+y}
6331 printf %s
"(cached) " >&6
6333 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6336 #if !defined(__GNUC__)
6337 #error "not GCC compatible"
6339 /* GCC compatible! */
6343 if ac_fn_c_try_cpp
"$LINENO"
6345 ac_cv_gcc_compat
=yes
6349 rm -f conftest.err conftest.i conftest.
$ac_ext
6351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_compat" >&5
6352 printf "%s\n" "$ac_cv_gcc_compat" >&6; }
6360 gcc
) if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args.
6362 set dummy
${ac_tool_prefix}g
++; ac_word
=$2
6363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 printf %s
"checking for $ac_word... " >&6; }
6365 if test ${ac_cv_path_CXX+y}
6367 printf %s
"(cached) " >&6
6371 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
6374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6375 for as_dir
in notfound
6378 case $as_dir in #(((
6381 *) as_dir
=$as_dir/ ;;
6383 for ac_exec_ext
in '' $ac_executable_extensions; do
6384 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6385 ac_cv_path_CXX
="$as_dir$ac_word$ac_exec_ext"
6386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6397 if test -n "$CXX"; then
6398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6399 printf "%s\n" "$CXX" >&6; }
6401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6402 printf "%s\n" "no" >&6; }
6407 if test -z "$ac_cv_path_CXX"; then
6409 # Extract the first word of "g++", so it can be a program name with args.
6410 set dummy g
++; ac_word
=$2
6411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6412 printf %s
"checking for $ac_word... " >&6; }
6413 if test ${ac_cv_path_ac_pt_CXX+y}
6415 printf %s
"(cached) " >&6
6419 ac_cv_path_ac_pt_CXX
="$ac_pt_CXX" # Let the user override the test with a path.
6422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6423 for as_dir
in notfound
6426 case $as_dir in #(((
6429 *) as_dir
=$as_dir/ ;;
6431 for ac_exec_ext
in '' $ac_executable_extensions; do
6432 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6433 ac_cv_path_ac_pt_CXX
="$as_dir$ac_word$ac_exec_ext"
6434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6444 ac_pt_CXX
=$ac_cv_path_ac_pt_CXX
6445 if test -n "$ac_pt_CXX"; then
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6447 printf "%s\n" "$ac_pt_CXX" >&6; }
6449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 printf "%s\n" "no" >&6; }
6453 if test "x$ac_pt_CXX" = x
; then
6456 case $cross_compiling:$ac_tool_warned in
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6459 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6460 ac_tool_warned
=yes ;;
6465 CXX
="$ac_cv_path_CXX"
6468 cc
) if test -n "$ac_tool_prefix"; then
6469 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args.
6470 set dummy
${ac_tool_prefix}c
++; ac_word
=$2
6471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6472 printf %s
"checking for $ac_word... " >&6; }
6473 if test ${ac_cv_path_CXX+y}
6475 printf %s
"(cached) " >&6
6479 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
6482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6483 for as_dir
in notfound
6486 case $as_dir in #(((
6489 *) as_dir
=$as_dir/ ;;
6491 for ac_exec_ext
in '' $ac_executable_extensions; do
6492 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6493 ac_cv_path_CXX
="$as_dir$ac_word$ac_exec_ext"
6494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6505 if test -n "$CXX"; then
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6507 printf "%s\n" "$CXX" >&6; }
6509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 printf "%s\n" "no" >&6; }
6515 if test -z "$ac_cv_path_CXX"; then
6517 # Extract the first word of "c++", so it can be a program name with args.
6518 set dummy c
++; ac_word
=$2
6519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520 printf %s
"checking for $ac_word... " >&6; }
6521 if test ${ac_cv_path_ac_pt_CXX+y}
6523 printf %s
"(cached) " >&6
6527 ac_cv_path_ac_pt_CXX
="$ac_pt_CXX" # Let the user override the test with a path.
6530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6531 for as_dir
in notfound
6534 case $as_dir in #(((
6537 *) as_dir
=$as_dir/ ;;
6539 for ac_exec_ext
in '' $ac_executable_extensions; do
6540 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6541 ac_cv_path_ac_pt_CXX
="$as_dir$ac_word$ac_exec_ext"
6542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6552 ac_pt_CXX
=$ac_cv_path_ac_pt_CXX
6553 if test -n "$ac_pt_CXX"; then
6554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6555 printf "%s\n" "$ac_pt_CXX" >&6; }
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6558 printf "%s\n" "no" >&6; }
6561 if test "x$ac_pt_CXX" = x
; then
6564 case $cross_compiling:$ac_tool_warned in
6566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6567 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6568 ac_tool_warned
=yes ;;
6573 CXX
="$ac_cv_path_CXX"
6576 clang|
*/clang
) if test -n "$ac_tool_prefix"; then
6577 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args.
6578 set dummy
${ac_tool_prefix}clang
++; ac_word
=$2
6579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 printf %s
"checking for $ac_word... " >&6; }
6581 if test ${ac_cv_path_CXX+y}
6583 printf %s
"(cached) " >&6
6587 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
6590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6591 for as_dir
in notfound
6594 case $as_dir in #(((
6597 *) as_dir
=$as_dir/ ;;
6599 for ac_exec_ext
in '' $ac_executable_extensions; do
6600 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6601 ac_cv_path_CXX
="$as_dir$ac_word$ac_exec_ext"
6602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6613 if test -n "$CXX"; then
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6615 printf "%s\n" "$CXX" >&6; }
6617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618 printf "%s\n" "no" >&6; }
6623 if test -z "$ac_cv_path_CXX"; then
6625 # Extract the first word of "clang++", so it can be a program name with args.
6626 set dummy clang
++; ac_word
=$2
6627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 printf %s
"checking for $ac_word... " >&6; }
6629 if test ${ac_cv_path_ac_pt_CXX+y}
6631 printf %s
"(cached) " >&6
6635 ac_cv_path_ac_pt_CXX
="$ac_pt_CXX" # Let the user override the test with a path.
6638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6639 for as_dir
in notfound
6642 case $as_dir in #(((
6645 *) as_dir
=$as_dir/ ;;
6647 for ac_exec_ext
in '' $ac_executable_extensions; do
6648 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6649 ac_cv_path_ac_pt_CXX
="$as_dir$ac_word$ac_exec_ext"
6650 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6660 ac_pt_CXX
=$ac_cv_path_ac_pt_CXX
6661 if test -n "$ac_pt_CXX"; then
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6663 printf "%s\n" "$ac_pt_CXX" >&6; }
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 printf "%s\n" "no" >&6; }
6669 if test "x$ac_pt_CXX" = x
; then
6672 case $cross_compiling:$ac_tool_warned in
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6675 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6676 ac_tool_warned
=yes ;;
6681 CXX
="$ac_cv_path_CXX"
6684 icc|
*/icc
) if test -n "$ac_tool_prefix"; then
6685 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args.
6686 set dummy
${ac_tool_prefix}icpc
; ac_word
=$2
6687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6688 printf %s
"checking for $ac_word... " >&6; }
6689 if test ${ac_cv_path_CXX+y}
6691 printf %s
"(cached) " >&6
6695 ac_cv_path_CXX
="$CXX" # Let the user override the test with a path.
6698 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6699 for as_dir
in notfound
6702 case $as_dir in #(((
6705 *) as_dir
=$as_dir/ ;;
6707 for ac_exec_ext
in '' $ac_executable_extensions; do
6708 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6709 ac_cv_path_CXX
="$as_dir$ac_word$ac_exec_ext"
6710 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6721 if test -n "$CXX"; then
6722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6723 printf "%s\n" "$CXX" >&6; }
6725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 printf "%s\n" "no" >&6; }
6731 if test -z "$ac_cv_path_CXX"; then
6733 # Extract the first word of "icpc", so it can be a program name with args.
6734 set dummy icpc
; ac_word
=$2
6735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6736 printf %s
"checking for $ac_word... " >&6; }
6737 if test ${ac_cv_path_ac_pt_CXX+y}
6739 printf %s
"(cached) " >&6
6743 ac_cv_path_ac_pt_CXX
="$ac_pt_CXX" # Let the user override the test with a path.
6746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6747 for as_dir
in notfound
6750 case $as_dir in #(((
6753 *) as_dir
=$as_dir/ ;;
6755 for ac_exec_ext
in '' $ac_executable_extensions; do
6756 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6757 ac_cv_path_ac_pt_CXX
="$as_dir$ac_word$ac_exec_ext"
6758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6768 ac_pt_CXX
=$ac_cv_path_ac_pt_CXX
6769 if test -n "$ac_pt_CXX"; then
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5
6771 printf "%s\n" "$ac_pt_CXX" >&6; }
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774 printf "%s\n" "no" >&6; }
6777 if test "x$ac_pt_CXX" = x
; then
6780 case $cross_compiling:$ac_tool_warned in
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6783 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6784 ac_tool_warned
=yes ;;
6789 CXX
="$ac_cv_path_CXX"
6793 if test "$CXX" = "notfound"
6800 if test -n "$ac_tool_prefix"; then
6801 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
6803 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6804 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 printf %s
"checking for $ac_word... " >&6; }
6807 if test ${ac_cv_prog_CXX+y}
6809 printf %s
"(cached) " >&6
6811 if test -n "$CXX"; then
6812 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6814 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6818 case $as_dir in #(((
6821 *) as_dir
=$as_dir/ ;;
6823 for ac_exec_ext
in '' $ac_executable_extensions; do
6824 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6825 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6836 if test -n "$CXX"; then
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6838 printf "%s\n" "$CXX" >&6; }
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 printf "%s\n" "no" >&6; }
6845 test -n "$CXX" && break
6848 if test -z "$CXX"; then
6850 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
6852 # Extract the first word of "$ac_prog", so it can be a program name with args.
6853 set dummy
$ac_prog; ac_word
=$2
6854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 printf %s
"checking for $ac_word... " >&6; }
6856 if test ${ac_cv_prog_ac_ct_CXX+y}
6858 printf %s
"(cached) " >&6
6860 if test -n "$ac_ct_CXX"; then
6861 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6867 case $as_dir in #(((
6870 *) as_dir
=$as_dir/ ;;
6872 for ac_exec_ext
in '' $ac_executable_extensions; do
6873 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
6874 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6875 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6884 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6885 if test -n "$ac_ct_CXX"; then
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6887 printf "%s\n" "$ac_ct_CXX" >&6; }
6889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 printf "%s\n" "no" >&6; }
6894 test -n "$ac_ct_CXX" && break
6897 if test "x$ac_ct_CXX" = x
; then
6900 case $cross_compiling:$ac_tool_warned in
6902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned
=yes ;;
6910 if test "$CXX" = "notfound"
6915 if test "$preset_cxx" != "$CXX"
6917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
6919 By default, distutils will build C++ extension modules with \"$CXX\".
6920 If this is not intended, then set CXX on the configure command line.
6922 printf "%s\n" "$as_me:
6924 By default, distutils will build C++ extension modules with \"$CXX\".
6925 If this is not intended, then set CXX on the configure command line.
6930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5
6931 printf %s
"checking for the platform triplet based on compiler characteristics... " >&6; }
6932 if $CPP $CPPFLAGS $srcdir/Misc
/platform_triplet.c
>conftest.out
2>/dev
/null
; then
6933 PLATFORM_TRIPLET
=`grep '^PLATFORM_TRIPLET=' conftest.out | tr -d ' '`
6934 PLATFORM_TRIPLET
="${PLATFORM_TRIPLET#PLATFORM_TRIPLET=}"
6935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5
6936 printf "%s\n" "$PLATFORM_TRIPLET" >&6; }
6938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6939 printf "%s\n" "none" >&6; }
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5
6944 printf %s
"checking for multiarch... " >&6; }
6945 case $ac_sys_system in #(
6953 MULTIARCH
=$
($CC --print-multiarch 2>/dev
/null
)
6958 if test x
$PLATFORM_TRIPLET != x
&& test x
$MULTIARCH != x
; then
6959 if test x
$PLATFORM_TRIPLET != x
$MULTIARCH; then
6960 as_fn_error $?
"internal configure error for the platform triplet, please file a bug report" "$LINENO" 5
6962 elif test x
$PLATFORM_TRIPLET != x
&& test x
$MULTIARCH = x
; then
6963 MULTIARCH
=$PLATFORM_TRIPLET
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MULTIARCH" >&5
6967 printf "%s\n" "$MULTIARCH" >&6; }
6969 case $ac_sys_system in #(
6971 SOABI_PLATFORM
=`echo "$PLATFORM_TRIPLET" | cut -d '-' -f2` ;; #(
6973 SOABI_PLATFORM
=$PLATFORM_TRIPLET
6977 if test x
$MULTIARCH != x
; then
6978 MULTIARCH_CPPFLAGS
="-DMULTIARCH=\\\"$MULTIARCH\\\""
6982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PEP 11 support tier" >&5
6983 printf %s
"checking for PEP 11 support tier... " >&6; }
6984 case $host/$ac_cv_cc_name in #(
6985 x86_64-
*-linux-gnu/gcc
) :
6986 PY_SUPPORT_TIER
=1 ;; #(
6987 x86_64-apple-darwin
*/clang
) :
6988 PY_SUPPORT_TIER
=1 ;; #(
6989 aarch64-apple-darwin
*/clang
) :
6990 PY_SUPPORT_TIER
=1 ;; #(
6991 i686-pc-windows-msvc
/msvc
) :
6992 PY_SUPPORT_TIER
=1 ;; #(
6993 x86_64-pc-windows-msvc
/msvc
) :
6994 PY_SUPPORT_TIER
=1 ;; #(
6996 aarch64-
*-linux-gnu/gcc
) :
6997 PY_SUPPORT_TIER
=2 ;; #(
6998 aarch64-
*-linux-gnu/clang
) :
6999 PY_SUPPORT_TIER
=2 ;; #(
7000 powerpc64le-
*-linux-gnu/gcc
) :
7001 PY_SUPPORT_TIER
=2 ;; #(
7002 wasm32-unknown-wasi
/clang
) :
7003 PY_SUPPORT_TIER
=2 ;; #(
7004 x86_64-
*-linux-gnu/clang
) :
7005 PY_SUPPORT_TIER
=2 ;; #(
7007 aarch64-pc-windows-msvc
/msvc
) :
7008 PY_SUPPORT_TIER
=3 ;; #(
7009 armv7l-
*-linux-gnueabihf/gcc
) :
7010 PY_SUPPORT_TIER
=3 ;; #(
7011 powerpc64le-
*-linux-gnu/clang
) :
7012 PY_SUPPORT_TIER
=3 ;; #(
7013 s390x-
*-linux-gnu/gcc
) :
7014 PY_SUPPORT_TIER
=3 ;; #(
7015 x86_64-
*-freebsd*/clang
) :
7016 PY_SUPPORT_TIER
=3 ;; #(
7017 aarch64-apple-ios
*-simulator/clang
) :
7018 PY_SUPPORT_TIER
=3 ;; #(
7019 aarch64-apple-ios
*/clang
) :
7020 PY_SUPPORT_TIER
=3 ;; #(
7021 aarch64-
*-linux-android/clang
) :
7022 PY_SUPPORT_TIER
=3 ;; #(
7023 x86_64-
*-linux-android/clang
) :
7024 PY_SUPPORT_TIER
=3 ;; #(
7031 case $PY_SUPPORT_TIER in #(
7033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 1 (supported)" >&5
7034 printf "%s\n" "$host/$ac_cv_cc_name has tier 1 (supported)" >&6; } ;; #(
7036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 2 (supported)" >&5
7037 printf "%s\n" "$host/$ac_cv_cc_name has tier 2 (supported)" >&6; } ;; #(
7039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 3 (partially supported)" >&5
7040 printf "%s\n" "$host/$ac_cv_cc_name has tier 3 (partially supported)" >&6; } ;; #(
7042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $host/$ac_cv_cc_name is not supported" >&5
7043 printf "%s\n" "$as_me: WARNING: $host/$ac_cv_cc_name is not supported" >&2;}
7048 printf "%s\n" "#define PY_SUPPORT_TIER $PY_SUPPORT_TIER" >>confdefs.h
7051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5
7052 printf %s
"checking for -Wl,--no-as-needed... " >&6; }
7053 if test ${ac_cv_wl_no_as_needed+y}
7055 printf %s
"(cached) " >&6
7058 save_LDFLAGS
="$LDFLAGS"
7059 as_fn_append LDFLAGS
" -Wl,--no-as-needed"
7060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7061 /* end confdefs.h. */
7071 if ac_fn_c_try_link
"$LINENO"
7073 NO_AS_NEEDED
="-Wl,--no-as-needed"
7074 ac_cv_wl_no_as_needed
=yes
7077 ac_cv_wl_no_as_needed
=no
7079 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7080 conftest
$ac_exeext conftest.
$ac_ext
7081 LDFLAGS
="$save_LDFLAGS"
7084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wl_no_as_needed" >&5
7085 printf "%s\n" "$ac_cv_wl_no_as_needed" >&6; }
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5
7089 printf %s
"checking for the Android API level... " >&6; }
7090 cat > conftest.c
<<EOF
7092 android_api = __ANDROID_API__
7093 arm_arch = __ARM_ARCH
7099 if $CPP $CPPFLAGS conftest.c
>conftest.out
2>/dev
/null
; then
7100 ANDROID_API_LEVEL
=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out`
7101 _arm_arch
=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out`
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5
7103 printf "%s\n" "$ANDROID_API_LEVEL" >&6; }
7104 if test -z "$ANDROID_API_LEVEL"; then
7105 as_fn_error $?
"Fatal: you must define __ANDROID_API__" "$LINENO" 5
7108 printf "%s\n" "#define ANDROID_API_LEVEL $ANDROID_API_LEVEL" >>confdefs.h
7111 # For __android_log_write() in Python/pylifecycle.c.
7114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5
7115 printf %s
"checking for the Android arm ABI... " >&6; }
7116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5
7117 printf "%s\n" "$_arm_arch" >&6; }
7118 if test "$_arm_arch" = 7; then
7119 BASECFLAGS
="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16"
7120 LDFLAGS
="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8"
7123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not Android" >&5
7124 printf "%s\n" "not Android" >&6; }
7126 rm -f conftest.c conftest.out
7128 # Check for unsupported systems
7129 case $ac_sys_system/$ac_sys_release in #(
7130 atheos
*|Linux
*/1*) :
7132 as_fn_error $?
"This system \($ac_sys_system/$ac_sys_release\) is no longer supported. See README for details." "$LINENO" 5
7139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-emscripten-target" >&5
7140 printf %s
"checking for --with-emscripten-target... " >&6; }
7142 # Check whether --with-emscripten-target was given.
7143 if test ${with_emscripten_target+y}
7145 withval
=$with_emscripten_target;
7146 if test "x$ac_sys_system" = xEmscripten
7149 case $with_emscripten_target in #(
7151 ac_sys_emscripten_target
=browser
;; #(
7153 ac_sys_emscripten_target
=node
;; #(
7155 ac_sys_emscripten_target
=browser-debug
;; #(
7157 ac_sys_emscripten_target
=node-debug
;; #(
7159 as_fn_error $?
"Invalid argument: --with-emscripten-target=browser|node" "$LINENO" 5
7165 as_fn_error $?
"--with-emscripten-target only applies to Emscripten" "$LINENO" 5
7171 if test "x$ac_sys_system" = xEmscripten
7173 ac_sys_emscripten_target
=browser
7178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_sys_emscripten_target" >&5
7179 printf "%s\n" "$ac_sys_emscripten_target" >&6; }
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-dynamic-linking" >&5
7182 printf %s
"checking for --enable-wasm-dynamic-linking... " >&6; }
7183 # Check whether --enable-wasm-dynamic-linking was given.
7184 if test ${enable_wasm_dynamic_linking+y}
7186 enableval
=$enable_wasm_dynamic_linking;
7187 case $ac_sys_system in #(
7191 as_fn_error $?
"WASI dynamic linking is not implemented yet." "$LINENO" 5 ;; #(
7193 as_fn_error $?
"--enable-wasm-dynamic-linking only applies to Emscripten and WASI" "$LINENO" 5
7199 enable_wasm_dynamic_linking
=missing
7203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_dynamic_linking" >&5
7204 printf "%s\n" "$enable_wasm_dynamic_linking" >&6; }
7206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-pthreads" >&5
7207 printf %s
"checking for --enable-wasm-pthreads... " >&6; }
7208 # Check whether --enable-wasm-pthreads was given.
7209 if test ${enable_wasm_pthreads+y}
7211 enableval
=$enable_wasm_pthreads;
7212 case $ac_sys_system in #(
7218 as_fn_error $?
"--enable-wasm-pthreads only applies to Emscripten and WASI" "$LINENO" 5
7224 enable_wasm_pthreads
=missing
7228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_pthreads" >&5
7229 printf "%s\n" "$enable_wasm_pthreads" >&6; }
7231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5
7232 printf %s
"checking for --with-suffix... " >&6; }
7234 # Check whether --with-suffix was given.
7235 if test ${with_suffix+y}
7237 withval
=$with_suffix;
7238 case $with_suffix in #(
7250 case $ac_sys_system/$ac_sys_emscripten_target in #(
7251 Emscripten
/browser
*) :
7264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5
7265 printf "%s\n" "$EXEEXT" >&6; }
7267 # Test whether we're running on a non-case-sensitive system, in which
7268 # case we give a warning if no ext is given
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5
7271 printf %s
"checking for case-insensitive build directory... " >&6; }
7272 if test ! -d CaseSensitiveTestDir
; then
7273 mkdir CaseSensitiveTestDir
7276 if test -d casesensitivetestdir
&& test -z "$EXEEXT"
7278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7279 printf "%s\n" "yes" >&6; }
7282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 printf "%s\n" "no" >&6; }
7286 rmdir CaseSensitiveTestDir
7288 case $ac_sys_system in
7291 cc|
*/cc
) CC
="$CC -Ae";;
7296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5
7297 printf %s
"checking LIBRARY... " >&6; }
7298 if test -z "$LIBRARY"
7300 LIBRARY
='libpython$(VERSION)$(ABIFLAGS).a'
7302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5
7303 printf "%s\n" "$LIBRARY" >&6; }
7305 # LDLIBRARY is the name of the library to link against (as opposed to the
7306 # name of the library into which to insert object files). BLDLIBRARY is also
7307 # the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY
7308 # is blank as the main program is not linked directly against LDLIBRARY.
7309 # LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On
7310 # systems without shared libraries, LDLIBRARY is the same as LIBRARY
7311 # (defined in the Makefiles). On Cygwin LDLIBRARY is the import library,
7312 # DLLLIBRARY is the shared (i.e., DLL) library.
7314 # RUNSHARED is used to run shared python without installed libraries
7316 # INSTSONAME is the name of the shared library that will be use to install
7317 # on the system - some systems like version suffix, others don't
7319 # LDVERSION is the shared library version number, normally the Python version
7320 # with the ABI build flags appended.
7329 LDLIBRARY
="$LIBRARY"
7330 BLDLIBRARY
='$(LDLIBRARY)'
7331 INSTSONAME
='$(LDLIBRARY)'
7335 LDVERSION
="$VERSION"
7337 # LINKCC is the command that links the python executable -- default is $(CC).
7338 # If CXX is set, and if it is needed to link a main function that was
7339 # compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable:
7340 # python might then depend on the C++ runtime
7342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5
7343 printf %s
"checking LINKCC... " >&6; }
7344 if test -z "$LINKCC"
7346 LINKCC
='$(PURIFY) $(CC)'
7347 case $ac_sys_system in
7349 # qcc must be used because the other compilers do not
7354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5
7355 printf "%s\n" "$LINKCC" >&6; }
7357 # EXPORTSYMS holds the list of exported symbols for AIX.
7358 # EXPORTSFROM holds the module name exporting symbols on AIX.
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5
7364 printf %s
"checking EXPORTSYMS... " >&6; }
7365 case $ac_sys_system in
7367 EXPORTSYMS
="Modules/python.exp"
7368 EXPORTSFROM
=.
# the main executable
7371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5
7372 printf "%s\n" "$EXPORTSYMS" >&6; }
7374 # GNULD is set to "yes" if the GNU linker is used. If this goes wrong
7375 # make sure we default having it set to "no": this is used by
7376 # distutils.unixccompiler to know if it should add --enable-new-dtags
7377 # to linker command lines, and failing to detect GNU ld simply results
7378 # in the same behaviour as before.
7380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7381 printf %s
"checking for GNU ld... " >&6; }
7383 if test "$GCC" = yes; then
7384 ac_prog
=`$CC -print-prog-name=ld`
7386 case `"$ac_prog" -V 2>&1 < /dev/null` in
7392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5
7393 printf "%s\n" "$GNULD" >&6; }
7395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5
7396 printf %s
"checking for --enable-shared... " >&6; }
7397 # Check whether --enable-shared was given.
7398 if test ${enable_shared+y}
7400 enableval
=$enable_shared;
7404 if test -z "$enable_shared"
7406 case $ac_sys_system in
7408 enable_shared
="yes";;
7410 enable_shared
="no";;
7413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
7414 printf "%s\n" "$enable_shared" >&6; }
7416 # --with-static-libpython
7418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5
7419 printf %s
"checking for --with-static-libpython... " >&6; }
7421 # Check whether --with-static-libpython was given.
7422 if test ${with_static_libpython+y}
7424 withval
=$with_static_libpython;
7425 if test "$withval" = no
7427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428 printf "%s\n" "no" >&6; };
7431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7432 printf "%s\n" "yes" >&6; };
7435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7436 printf "%s\n" "yes" >&6; }
7441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5
7442 printf %s
"checking for --enable-profiling... " >&6; }
7443 # Check whether --enable-profiling was given.
7444 if test ${enable_profiling+y}
7446 enableval
=$enable_profiling;
7449 if test "x$enable_profiling" = xyes
; then
7452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 int main(void) { return 0; }
7456 if ac_fn_c_try_link
"$LINENO"
7462 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
7463 conftest
$ac_exeext conftest.
$ac_ext
7468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5
7469 printf "%s\n" "$enable_profiling" >&6; }
7471 if test "x$enable_profiling" = xyes
; then
7472 BASECFLAGS
="-pg $BASECFLAGS"
7473 LDFLAGS
="-pg $LDFLAGS"
7476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5
7477 printf %s
"checking LDLIBRARY... " >&6; }
7479 # Apple framework builds need more magic. LDLIBRARY is the dynamic
7480 # library that we build, but we do not want to link against it (we
7481 # will find it with a -framework option). For this reason there is an
7482 # extra variable BLDLIBRARY against which Python and the extension
7483 # modules are linked, BLDLIBRARY. This is normally the same as
7484 # LDLIBRARY, but empty for MacOSX framework builds. iOS does the same,
7485 # but uses a non-versioned framework layout.
7486 if test "$enable_framework"
7488 case $ac_sys_system in
7490 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)';;
7492 LDLIBRARY
='$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)';;
7494 as_fn_error $?
"Unknown platform for framework build" "$LINENO" 5;;
7497 RUNSHARED
=DYLD_FRAMEWORK_PATH
=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}}
7499 BLDLIBRARY
='$(LDLIBRARY)'
7502 # Other platforms follow
7503 if test $enable_shared = "yes"; then
7506 printf "%s\n" "#define Py_ENABLE_SHARED 1" >>confdefs.h
7508 case $ac_sys_system in
7510 LDLIBRARY
='libpython$(LDVERSION).dll.a'
7511 BLDLIBRARY
='-L. -lpython$(LDVERSION)'
7512 DLLLIBRARY
='libpython$(LDVERSION).dll'
7515 LDLIBRARY
='libpython$(LDVERSION).so'
7516 BLDLIBRARY
='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)'
7517 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
7518 INSTSONAME
="$LDLIBRARY".
$SOVERSION
7519 if test "$with_pydebug" != yes
7521 PY3LIBRARY
=libpython3.so
7524 Linux
*|GNU
*|NetBSD
*|FreeBSD
*|DragonFly
*|OpenBSD
*|VxWorks
*)
7525 LDLIBRARY
='libpython$(LDVERSION).so'
7526 BLDLIBRARY
='-L. -lpython$(LDVERSION)'
7527 RUNSHARED
=LD_LIBRARY_PATH
=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
7529 # The Android Gradle plugin will only package libraries whose names end
7531 if test "$ac_sys_system" != "Linux-android"; then
7532 INSTSONAME
="$LDLIBRARY".
$SOVERSION
7535 if test "$with_pydebug" != yes
7537 PY3LIBRARY
=libpython3.so
7543 LDLIBRARY
='libpython$(LDVERSION).so'
7546 LDLIBRARY
='libpython$(LDVERSION).sl'
7549 BLDLIBRARY
='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)'
7550 RUNSHARED
=SHLIB_PATH
=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}}
7553 LDLIBRARY
='libpython$(LDVERSION).dylib'
7554 BLDLIBRARY
='-L. -lpython$(LDVERSION)'
7555 RUNSHARED
=DYLD_LIBRARY_PATH
=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}}
7558 LDLIBRARY
='libpython$(LDVERSION).dylib'
7561 LDLIBRARY
='libpython$(LDVERSION).so'
7562 RUNSHARED
=LIBPATH
=`pwd`${LIBPATH:+:${LIBPATH}}
7566 else # shared is disabled
7568 case $ac_sys_system in
7570 BLDLIBRARY
='$(LIBRARY)'
7571 LDLIBRARY
='libpython$(LDVERSION).dll.a'
7575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5
7576 printf "%s\n" "$LDLIBRARY" >&6; }
7578 if test "$cross_compiling" = yes; then
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HOSTRUNNER" >&5
7583 printf %s
"checking HOSTRUNNER... " >&6; }
7585 if test -z "$HOSTRUNNER"
7587 case $ac_sys_system/$ac_sys_emscripten_target in #(
7590 if test -n "$ac_tool_prefix"; then
7591 # Extract the first word of "${ac_tool_prefix}node", so it can be a program name with args.
7592 set dummy
${ac_tool_prefix}node
; ac_word
=$2
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 printf %s
"checking for $ac_word... " >&6; }
7595 if test ${ac_cv_path_NODE+y}
7597 printf %s
"(cached) " >&6
7601 ac_cv_path_NODE
="$NODE" # Let the user override the test with a path.
7604 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7608 case $as_dir in #(((
7611 *) as_dir
=$as_dir/ ;;
7613 for ac_exec_ext
in '' $ac_executable_extensions; do
7614 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
7615 ac_cv_path_NODE
="$as_dir$ac_word$ac_exec_ext"
7616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7626 NODE
=$ac_cv_path_NODE
7627 if test -n "$NODE"; then
7628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NODE" >&5
7629 printf "%s\n" "$NODE" >&6; }
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 printf "%s\n" "no" >&6; }
7637 if test -z "$ac_cv_path_NODE"; then
7639 # Extract the first word of "node", so it can be a program name with args.
7640 set dummy node
; ac_word
=$2
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 printf %s
"checking for $ac_word... " >&6; }
7643 if test ${ac_cv_path_ac_pt_NODE+y}
7645 printf %s
"(cached) " >&6
7649 ac_cv_path_ac_pt_NODE
="$ac_pt_NODE" # Let the user override the test with a path.
7652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7656 case $as_dir in #(((
7659 *) as_dir
=$as_dir/ ;;
7661 for ac_exec_ext
in '' $ac_executable_extensions; do
7662 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
7663 ac_cv_path_ac_pt_NODE
="$as_dir$ac_word$ac_exec_ext"
7664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7674 ac_pt_NODE
=$ac_cv_path_ac_pt_NODE
7675 if test -n "$ac_pt_NODE"; then
7676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NODE" >&5
7677 printf "%s\n" "$ac_pt_NODE" >&6; }
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7680 printf "%s\n" "no" >&6; }
7683 if test "x$ac_pt_NODE" = x
; then
7686 case $cross_compiling:$ac_tool_warned in
7688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7689 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7690 ac_tool_warned
=yes ;;
7695 NODE
="$ac_cv_path_NODE"
7699 # bigint for ctypes c_longlong, c_longdouble
7700 # no longer available in Node 16
7701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for node --experimental-wasm-bigint" >&5
7702 printf %s
"checking for node --experimental-wasm-bigint... " >&6; }
7703 if test ${ac_cv_tool_node_wasm_bigint+y}
7705 printf %s
"(cached) " >&6
7708 if $NODE -v --experimental-wasm-bigint > /dev
/null
2>&1; then
7709 ac_cv_tool_node_wasm_bigint
=yes
7711 ac_cv_tool_node_wasm_bigint
=no
7715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tool_node_wasm_bigint" >&5
7716 printf "%s\n" "$ac_cv_tool_node_wasm_bigint" >&6; }
7717 if test "x$ac_cv_tool_node_wasm_bigint" = xyes
7720 as_fn_append HOSTRUNNER
" --experimental-wasm-bigint"
7724 if test "x$enable_wasm_pthreads" = xyes
7727 as_fn_append HOSTRUNNER
" --experimental-wasm-threads"
7728 # no longer available in Node 16
7729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for node --experimental-wasm-bulk-memory" >&5
7730 printf %s
"checking for node --experimental-wasm-bulk-memory... " >&6; }
7731 if test ${ac_cv_tool_node_wasm_bulk_memory+y}
7733 printf %s
"(cached) " >&6
7736 if $NODE -v --experimental-wasm-bulk-memory > /dev
/null
2>&1; then
7737 ac_cv_tool_node_wasm_bulk_memory
=yes
7739 ac_cv_tool_node_wasm_bulk_memory
=no
7743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tool_node_wasm_bulk_memory" >&5
7744 printf "%s\n" "$ac_cv_tool_node_wasm_bulk_memory" >&6; }
7745 if test "x$ac_cv_tool_node_wasm_bulk_memory" = xyes
7748 as_fn_append HOSTRUNNER
" --experimental-wasm-bulk-memory"
7754 if test "x$host_cpu" = xwasm64
7756 as_fn_append HOSTRUNNER
" --experimental-wasm-memory64"
7760 HOSTRUNNER
='wasmtime run --wasm max-wasm-stack=8388608 --wasi preview2 --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --dir $(srcdir)::/' ;; #(
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOSTRUNNER" >&5
7768 printf "%s\n" "$HOSTRUNNER" >&6; }
7770 if test -n "$HOSTRUNNER"; then
7771 PYTHON_FOR_BUILD
="_PYTHON_HOSTRUNNER='$HOSTRUNNER' $PYTHON_FOR_BUILD"
7774 # LIBRARY_DEPS, LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variable
7775 case $ac_sys_system/$ac_sys_emscripten_target in #(
7776 Emscripten
/browser
*) :
7777 LIBRARY_DEPS
='$(PY3LIBRARY) $(WASM_STDLIB) python.html python.worker.js' ;; #(
7779 LIBRARY_DEPS
='$(PY3LIBRARY) $(EXPORTSYMS)'
7782 LINK_PYTHON_DEPS
='$(LIBRARY_DEPS)'
7783 if test "$PY_ENABLE_SHARED" = 1 ||
test "$enable_framework" ; then
7784 LIBRARY_DEPS
="\$(LDLIBRARY) $LIBRARY_DEPS"
7785 if test "$STATIC_LIBPYTHON" = 1; then
7786 LIBRARY_DEPS
="\$(LIBRARY) $LIBRARY_DEPS"
7788 # Link Python program to the shared library
7789 LINK_PYTHON_OBJS
='$(BLDLIBRARY)'
7791 if test "$STATIC_LIBPYTHON" = 0; then
7792 # Build Python needs object files but don't need to build
7793 # Python static library
7794 LINK_PYTHON_DEPS
="$LIBRARY_DEPS \$(LIBRARY_OBJS)"
7796 LIBRARY_DEPS
="\$(LIBRARY) $LIBRARY_DEPS"
7797 # Link Python program to object files
7798 LINK_PYTHON_OBJS
='$(LIBRARY_OBJS)'
7806 if test -n "$ac_tool_prefix"; then
7807 for ac_prog
in ar aal
7809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7810 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 printf %s
"checking for $ac_word... " >&6; }
7813 if test ${ac_cv_prog_AR+y}
7815 printf %s
"(cached) " >&6
7817 if test -n "$AR"; then
7818 ac_cv_prog_AR
="$AR" # Let the user override the test.
7820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7824 case $as_dir in #(((
7827 *) as_dir
=$as_dir/ ;;
7829 for ac_exec_ext
in '' $ac_executable_extensions; do
7830 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
7832 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7842 if test -n "$AR"; then
7843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7844 printf "%s\n" "$AR" >&6; }
7846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 printf "%s\n" "no" >&6; }
7851 test -n "$AR" && break
7854 if test -z "$AR"; then
7856 for ac_prog
in ar aal
7858 # Extract the first word of "$ac_prog", so it can be a program name with args.
7859 set dummy
$ac_prog; ac_word
=$2
7860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 printf %s
"checking for $ac_word... " >&6; }
7862 if test ${ac_cv_prog_ac_ct_AR+y}
7864 printf %s
"(cached) " >&6
7866 if test -n "$ac_ct_AR"; then
7867 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7873 case $as_dir in #(((
7876 *) as_dir
=$as_dir/ ;;
7878 for ac_exec_ext
in '' $ac_executable_extensions; do
7879 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
7880 ac_cv_prog_ac_ct_AR
="$ac_prog"
7881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7890 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7891 if test -n "$ac_ct_AR"; then
7892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7893 printf "%s\n" "$ac_ct_AR" >&6; }
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 printf "%s\n" "no" >&6; }
7900 test -n "$ac_ct_AR" && break
7903 if test "x$ac_ct_AR" = x
; then
7906 case $cross_compiling:$ac_tool_warned in
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910 ac_tool_warned
=yes ;;
7917 # tweak ARFLAGS only if the user didn't set it on the command line
7919 if test -z "$ARFLAGS"
7926 # install -d does not work on HP-UX
7927 if test -z "$INSTALL"
7929 INSTALL
="${srcdir}/install-sh -c"
7933 # Find a good install program. We prefer a C program (faster),
7934 # so one script is as good as another. But avoid the broken or
7935 # incompatible versions:
7936 # SysV /etc/install, /usr/sbin/install
7937 # SunOS /usr/etc/install
7938 # IRIX /sbin/install
7940 # AmigaOS /C/install, which installs bootblocks on floppy discs
7941 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7942 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7943 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7944 # OS/2's system install, which has a completely different semantic
7945 # ./install, which can be erroneously created by make from ./install.sh.
7946 # Reject install programs that cannot install multiple files.
7947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7948 printf %s
"checking for a BSD-compatible install... " >&6; }
7949 if test -z "$INSTALL"; then
7950 if test ${ac_cv_path_install+y}
7952 printf %s
"(cached) " >&6
7954 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7958 case $as_dir in #(((
7961 *) as_dir
=$as_dir/ ;;
7963 # Account for fact that we put trailing slashes in our PATH walk.
7966 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7967 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7970 # OSF1 and SCO ODT 3.0 have their own names for install.
7971 # Don't use installbsd from OSF since it installs stuff as root
7973 for ac_prog
in ginstall scoinst
install; do
7974 for ac_exec_ext
in '' $ac_executable_extensions; do
7975 if as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext"; then
7976 if test $ac_prog = install &&
7977 grep dspmsg
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7978 # AIX install. It has an incompatible calling convention.
7980 elif test $ac_prog = install &&
7981 grep pwplus
"$as_dir$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7982 # program-specific install script used by HP pwplus--don't use.
7985 rm -rf conftest.one conftest.two conftest.dir
7986 echo one
> conftest.one
7987 echo two
> conftest.two
7989 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir/" &&
7990 test -s conftest.one
&& test -s conftest.two
&&
7991 test -s conftest.dir
/conftest.one
&&
7992 test -s conftest.dir
/conftest.two
7994 ac_cv_path_install
="$as_dir$ac_prog$ac_exec_ext -c"
8007 rm -rf conftest.one conftest.two conftest.dir
8010 if test ${ac_cv_path_install+y}; then
8011 INSTALL
=$ac_cv_path_install
8013 # As a last resort, use the slow shell script. Don't cache a
8014 # value for INSTALL within a source directory, because that will
8015 # break other packages using the cache if that directory is
8016 # removed, or if the value is a relative name.
8017 INSTALL
=$ac_install_sh
8020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8021 printf "%s\n" "$INSTALL" >&6; }
8023 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8024 # It thinks the first close brace ends the variable substitution.
8025 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8027 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8029 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8033 printf %s
"checking for a race-free mkdir -p... " >&6; }
8034 if test -z "$MKDIR_P"; then
8035 if test ${ac_cv_path_mkdir+y}
8037 printf %s
"(cached) " >&6
8039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8040 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
8043 case $as_dir in #(((
8046 *) as_dir
=$as_dir/ ;;
8048 for ac_prog
in mkdir gmkdir
; do
8049 for ac_exec_ext
in '' $ac_executable_extensions; do
8050 as_fn_executable_p
"$as_dir$ac_prog$ac_exec_ext" ||
continue
8051 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8052 'mkdir ('*'coreutils) '* | \
8054 'mkdir (fileutils) '4.1*)
8055 ac_cv_path_mkdir
=$as_dir$ac_prog$ac_exec_ext
8065 test -d .
/--version && rmdir .
/--version
8066 if test ${ac_cv_path_mkdir+y}; then
8067 MKDIR_P
="$ac_cv_path_mkdir -p"
8069 # As a last resort, use the slow shell script. Don't cache a
8070 # value for MKDIR_P within a source directory, because that will
8071 # break other packages using the cache if that directory is
8072 # removed, or if the value is a relative name.
8073 MKDIR_P
="$ac_install_sh -d"
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8077 printf "%s\n" "$MKDIR_P" >&6; }
8080 # Not every filesystem supports hard links
8082 if test -z "$LN" ; then
8083 case $ac_sys_system in
8084 CYGWIN
*) LN
="ln -s";;
8089 # For calculating the .so ABI tag.
8093 # Check for --disable-gil
8095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-gil" >&5
8096 printf %s
"checking for --disable-gil... " >&6; }
8097 # Check whether --enable-gil was given.
8098 if test ${enable_gil+y}
8100 enableval
=$enable_gil; if test "x$enable_gil" = xyes
8111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $disable_gil" >&5
8112 printf "%s\n" "$disable_gil" >&6; }
8114 if test "$disable_gil" = "yes"
8117 printf "%s\n" "#define Py_GIL_DISABLED 1" >>confdefs.h
8119 # Add "t" for "threaded"
8120 ABIFLAGS
="${ABIFLAGS}t"
8123 # Check for --with-pydebug
8124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5
8125 printf %s
"checking for --with-pydebug... " >&6; }
8127 # Check whether --with-pydebug was given.
8128 if test ${with_pydebug+y}
8130 withval
=$with_pydebug;
8131 if test "$withval" != no
8134 printf "%s\n" "#define Py_DEBUG 1" >>confdefs.h
8136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137 printf "%s\n" "yes" >&6; };
8139 ABIFLAGS
="${ABIFLAGS}d"
8140 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8141 printf "%s\n" "no" >&6; }; Py_DEBUG
='false'
8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 printf "%s\n" "no" >&6; }
8149 # Check for --with-trace-refs
8151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5
8152 printf %s
"checking for --with-trace-refs... " >&6; }
8154 # Check whether --with-trace-refs was given.
8155 if test ${with_trace_refs+y}
8157 withval
=$with_trace_refs;
8163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5
8164 printf "%s\n" "$with_trace_refs" >&6; }
8166 if test "$with_trace_refs" = "yes"
8169 printf "%s\n" "#define Py_TRACE_REFS 1" >>confdefs.h
8174 # Check for --enable-pystats
8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-pystats" >&5
8176 printf %s
"checking for --enable-pystats... " >&6; }
8177 # Check whether --enable-pystats was given.
8178 if test ${enable_pystats+y}
8180 enableval
=$enable_pystats;
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pystats" >&5
8187 printf "%s\n" "$enable_pystats" >&6; }
8189 if test "x$enable_pystats" = xyes
8193 printf "%s\n" "#define Py_STATS 1" >>confdefs.h
8198 # Check for --with-assertions.
8199 # This allows enabling assertions without Py_DEBUG.
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5
8202 printf %s
"checking for --with-assertions... " >&6; }
8204 # Check whether --with-assertions was given.
8205 if test ${with_assertions+y}
8207 withval
=$with_assertions;
8208 if test "$withval" != no
8214 if test "$assertions" = 'true'; then
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8216 printf "%s\n" "yes" >&6; }
8217 elif test "$Py_DEBUG" = 'true'; then
8219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5
8220 printf "%s\n" "implied by --with-pydebug" >&6; }
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8223 printf "%s\n" "no" >&6; }
8226 # Check for --enable-experimental-jit:
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-experimental-jit" >&5
8228 printf %s
"checking for --enable-experimental-jit... " >&6; }
8229 # Check whether --enable-experimental-jit was given.
8230 if test ${enable_experimental_jit+y}
8232 enableval
=$enable_experimental_jit;
8234 enable_experimental_jit
=no
8237 case $enable_experimental_jit in
8238 no
) jit_flags
=""; tier2_flags
="" ;;
8239 yes) jit_flags
="-D_Py_JIT"; tier2_flags
="-D_Py_TIER2=1" ;;
8240 yes-off
) jit_flags
="-D_Py_JIT"; tier2_flags
="-D_Py_TIER2=3" ;;
8241 interpreter
) jit_flags
=""; tier2_flags
="-D_Py_TIER2=4" ;;
8242 interpreter-off
) jit_flags
=""; tier2_flags
="-D_Py_TIER2=6" ;; # Secret option
8243 *) as_fn_error $?
"invalid argument: --enable-experimental-jit=$enable_experimental_jit; expected no|yes|yes-off|interpreter" "$LINENO" 5 ;;
8245 if ${tier2_flags:+false} :
8249 as_fn_append CFLAGS_NODIST
" $tier2_flags"
8251 if ${jit_flags:+false} :
8255 as_fn_append CFLAGS_NODIST
" $jit_flags"
8256 REGEN_JIT_COMMAND
="\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py $host"
8257 JIT_STENCILS_H
="jit_stencils.h"
8258 if test "x$Py_DEBUG" = xtrue
8260 as_fn_append REGEN_JIT_COMMAND
" --debug"
8265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tier2_flags $jit_flags" >&5
8266 printf "%s\n" "$tier2_flags $jit_flags" >&6; }
8268 # Enable optimization flags
8272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5
8273 printf %s
"checking for --enable-optimizations... " >&6; }
8274 # Check whether --enable-optimizations was given.
8275 if test ${enable_optimizations+y}
8277 enableval
=$enable_optimizations;
8278 if test "$enableval" != no
8281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8282 printf "%s\n" "yes" >&6; };
8285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8286 printf "%s\n" "no" >&6; };
8289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8290 printf "%s\n" "no" >&6; }
8294 if test "$Py_OPT" = 'true' ; then
8295 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not
8296 # compile working code using it and both test_distutils and test_gdb are
8297 # broken when you do manage to get a toolchain that works with it. People
8298 # who want LTO need to use --with-lto themselves.
8299 DEF_MAKE_ALL_RULE
="profile-opt"
8301 DEF_MAKE_RULE
="build_all"
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5
8305 printf %s
"checking whether C compiler accepts -fno-semantic-interposition... " >&6; }
8306 if test ${ax_cv_check_cflags__Werror__fno_semantic_interposition+y}
8308 printf %s
"(cached) " >&6
8311 ax_check_save_flags
=$CFLAGS
8312 CFLAGS
="$CFLAGS -Werror -fno-semantic-interposition"
8313 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8314 /* end confdefs.h. */
8324 if ac_fn_c_try_compile
"$LINENO"
8326 ax_cv_check_cflags__Werror__fno_semantic_interposition
=yes
8328 ax_cv_check_cflags__Werror__fno_semantic_interposition
=no
8330 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8331 CFLAGS
=$ax_check_save_flags
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fno_semantic_interposition" >&5
8334 printf "%s\n" "$ax_cv_check_cflags__Werror__fno_semantic_interposition" >&6; }
8335 if test "x$ax_cv_check_cflags__Werror__fno_semantic_interposition" = xyes
8338 CFLAGS_NODIST
="$CFLAGS_NODIST -fno-semantic-interposition"
8339 LDFLAGS_NODIST
="$LDFLAGS_NODIST -fno-semantic-interposition"
8347 elif test "$ac_sys_system" = "Emscripten" -o "$ac_sys_system" = "WASI"; then
8348 DEF_MAKE_ALL_RULE
="build_wasm"
8352 DEF_MAKE_ALL_RULE
="build_all"
8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5
8359 printf %s
"checking PROFILE_TASK... " >&6; }
8360 if test -z "$PROFILE_TASK"
8362 PROFILE_TASK
='-m test --pgo --timeout=$(TESTTIMEOUT)'
8364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5
8365 printf "%s\n" "$PROFILE_TASK" >&6; }
8367 # Make llvm-related checks work on systems where llvm tools are not installed with their
8368 # normal names in the default $PATH (ie: Ubuntu). They exist under the
8369 # non-suffixed name in their versioned llvm directory.
8373 if test "${CC}" = "clang"
8375 clang_bin
=`which clang`
8376 # Some systems install clang elsewhere as a symlink to the real path
8377 # which is where the related llvm tools are located.
8378 if test -L "${clang_bin}"
8380 clang_dir
=`dirname "${clang_bin}"`
8381 clang_bin
=`readlink "${clang_bin}"`
8382 llvm_bin_dir
="${clang_dir}/"`dirname "${clang_bin}"`
8383 llvm_path
="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}"
8388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5
8389 printf %s
"checking for --with-lto... " >&6; }
8391 # Check whether --with-lto was given.
8392 if test ${with_lto+y}
8398 Py_LTO_POLICY
='full'
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8400 printf "%s\n" "yes" >&6; }
8404 Py_LTO_POLICY
='thin'
8405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8406 printf "%s\n" "yes" >&6; }
8410 Py_LTO_POLICY
='default'
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8412 printf "%s\n" "yes" >&6; }
8416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 printf "%s\n" "no" >&6; }
8421 as_fn_error $?
"unknown lto option: '$withval'" "$LINENO" 5
8426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 printf "%s\n" "no" >&6; }
8430 if test "$Py_LTO" = 'true' ; then
8433 LDFLAGS_NOLTO
="-fno-lto"
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8435 printf %s
"checking whether C compiler accepts -flto=thin... " >&6; }
8436 if test ${ax_cv_check_cflags___flto_thin+y}
8438 printf %s
"(cached) " >&6
8441 ax_check_save_flags
=$CFLAGS
8442 CFLAGS
="$CFLAGS -flto=thin"
8443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8444 /* end confdefs.h. */
8454 if ac_fn_c_try_compile
"$LINENO"
8456 ax_cv_check_cflags___flto_thin
=yes
8458 ax_cv_check_cflags___flto_thin
=no
8460 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8461 CFLAGS
=$ax_check_save_flags
8463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8464 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8465 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8467 LDFLAGS_NOLTO
="-flto=thin"
8469 LDFLAGS_NOLTO
="-flto"
8473 if test -n "$ac_tool_prefix"; then
8474 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args.
8475 set dummy
${ac_tool_prefix}llvm-ar
; ac_word
=$2
8476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477 printf %s
"checking for $ac_word... " >&6; }
8478 if test ${ac_cv_path_LLVM_AR+y}
8480 printf %s
"(cached) " >&6
8484 ac_cv_path_LLVM_AR
="$LLVM_AR" # Let the user override the test with a path.
8487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8488 for as_dir
in ${llvm_path}
8491 case $as_dir in #(((
8494 *) as_dir
=$as_dir/ ;;
8496 for ac_exec_ext
in '' $ac_executable_extensions; do
8497 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
8498 ac_cv_path_LLVM_AR
="$as_dir$ac_word$ac_exec_ext"
8499 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8509 LLVM_AR
=$ac_cv_path_LLVM_AR
8510 if test -n "$LLVM_AR"; then
8511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5
8512 printf "%s\n" "$LLVM_AR" >&6; }
8514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515 printf "%s\n" "no" >&6; }
8520 if test -z "$ac_cv_path_LLVM_AR"; then
8521 ac_pt_LLVM_AR
=$LLVM_AR
8522 # Extract the first word of "llvm-ar", so it can be a program name with args.
8523 set dummy llvm-ar
; ac_word
=$2
8524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525 printf %s
"checking for $ac_word... " >&6; }
8526 if test ${ac_cv_path_ac_pt_LLVM_AR+y}
8528 printf %s
"(cached) " >&6
8530 case $ac_pt_LLVM_AR in
8532 ac_cv_path_ac_pt_LLVM_AR
="$ac_pt_LLVM_AR" # Let the user override the test with a path.
8535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8536 for as_dir
in ${llvm_path}
8539 case $as_dir in #(((
8542 *) as_dir
=$as_dir/ ;;
8544 for ac_exec_ext
in '' $ac_executable_extensions; do
8545 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
8546 ac_cv_path_ac_pt_LLVM_AR
="$as_dir$ac_word$ac_exec_ext"
8547 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8557 ac_pt_LLVM_AR
=$ac_cv_path_ac_pt_LLVM_AR
8558 if test -n "$ac_pt_LLVM_AR"; then
8559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5
8560 printf "%s\n" "$ac_pt_LLVM_AR" >&6; }
8562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8563 printf "%s\n" "no" >&6; }
8566 if test "x$ac_pt_LLVM_AR" = x
; then
8569 case $cross_compiling:$ac_tool_warned in
8571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8572 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8573 ac_tool_warned
=yes ;;
8575 LLVM_AR
=$ac_pt_LLVM_AR
8578 LLVM_AR
="$ac_cv_path_LLVM_AR"
8582 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}"
8584 LLVM_AR_FOUND
="found"
8586 LLVM_AR_FOUND
="not-found"
8588 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found"
8590 # The Apple-supplied ar in Xcode or the Command Line Tools is apparently sufficient
8591 found_llvm_ar
=`/usr/bin/xcrun -find ar 2>/dev/null`
8592 if test -n "${found_llvm_ar}"
8594 LLVM_AR
='/usr/bin/xcrun ar'
8596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5
8597 printf "%s\n" "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;}
8600 if test $LLVM_AR_FOUND = not-found
8603 as_fn_error $?
"llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5
8608 case $ac_sys_system in
8610 # Any changes made here should be reflected in the GCC+Darwin case below
8611 if test $Py_LTO_POLICY = default
8613 # Check that ThinLTO is accepted.
8614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8615 printf %s
"checking whether C compiler accepts -flto=thin... " >&6; }
8616 if test ${ax_cv_check_cflags___flto_thin+y}
8618 printf %s
"(cached) " >&6
8621 ax_check_save_flags
=$CFLAGS
8622 CFLAGS
="$CFLAGS -flto=thin"
8623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8634 if ac_fn_c_try_compile
"$LINENO"
8636 ax_cv_check_cflags___flto_thin
=yes
8638 ax_cv_check_cflags___flto_thin
=no
8640 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8641 CFLAGS
=$ax_check_save_flags
8643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8644 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8645 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8648 LTOFLAGS
="-flto=thin -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8649 LTOCFLAGS
="-flto=thin"
8653 LTOFLAGS
="-flto -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8660 LTOFLAGS
="-flto=${Py_LTO_POLICY} -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8661 LTOCFLAGS
="-flto=${Py_LTO_POLICY}"
8665 if test $Py_LTO_POLICY = default
8667 # Check that ThinLTO is accepted
8668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5
8669 printf %s
"checking whether C compiler accepts -flto=thin... " >&6; }
8670 if test ${ax_cv_check_cflags___flto_thin+y}
8672 printf %s
"(cached) " >&6
8675 ax_check_save_flags
=$CFLAGS
8676 CFLAGS
="$CFLAGS -flto=thin"
8677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8678 /* end confdefs.h. */
8688 if ac_fn_c_try_compile
"$LINENO"
8690 ax_cv_check_cflags___flto_thin
=yes
8692 ax_cv_check_cflags___flto_thin
=no
8694 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8695 CFLAGS
=$ax_check_save_flags
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5
8698 printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; }
8699 if test "x$ax_cv_check_cflags___flto_thin" = xyes
8701 LTOFLAGS
="-flto=thin"
8707 LTOFLAGS
="-flto=${Py_LTO_POLICY}"
8713 if test "$Py_LTO_POLICY" != "default"; then
8714 as_fn_error $?
"emcc supports only default lto." "$LINENO" 5
8720 if test $Py_LTO_POLICY = thin
8722 as_fn_error $?
"thin lto is not supported under gcc compiler." "$LINENO" 5
8724 LDFLAGS_NOLTO
="-fno-lto"
8725 case $ac_sys_system in
8727 LTOFLAGS
="-flto -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto"
8731 LTOFLAGS
="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none"
8737 if test "$ac_cv_prog_cc_g" = "yes"
8739 # bpo-30345: Add -g to LDFLAGS when compiling with LTO
8740 # to get debug symbols.
8741 LTOFLAGS
="$LTOFLAGS -g"
8744 CFLAGS_NODIST
="$CFLAGS_NODIST ${LTOCFLAGS-$LTOFLAGS}"
8745 LDFLAGS_NODIST
="$LDFLAGS_NODIST $LTOFLAGS"
8755 if test -n "$ac_tool_prefix"; then
8756 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args.
8757 set dummy
${ac_tool_prefix}llvm-profdata
; ac_word
=$2
8758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 printf %s
"checking for $ac_word... " >&6; }
8760 if test ${ac_cv_path_LLVM_PROFDATA+y}
8762 printf %s
"(cached) " >&6
8764 case $LLVM_PROFDATA in
8766 ac_cv_path_LLVM_PROFDATA
="$LLVM_PROFDATA" # Let the user override the test with a path.
8769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8770 for as_dir
in ${llvm_path}
8773 case $as_dir in #(((
8776 *) as_dir
=$as_dir/ ;;
8778 for ac_exec_ext
in '' $ac_executable_extensions; do
8779 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
8780 ac_cv_path_LLVM_PROFDATA
="$as_dir$ac_word$ac_exec_ext"
8781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8791 LLVM_PROFDATA
=$ac_cv_path_LLVM_PROFDATA
8792 if test -n "$LLVM_PROFDATA"; then
8793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5
8794 printf "%s\n" "$LLVM_PROFDATA" >&6; }
8796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 printf "%s\n" "no" >&6; }
8802 if test -z "$ac_cv_path_LLVM_PROFDATA"; then
8803 ac_pt_LLVM_PROFDATA
=$LLVM_PROFDATA
8804 # Extract the first word of "llvm-profdata", so it can be a program name with args.
8805 set dummy llvm-profdata
; ac_word
=$2
8806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 printf %s
"checking for $ac_word... " >&6; }
8808 if test ${ac_cv_path_ac_pt_LLVM_PROFDATA+y}
8810 printf %s
"(cached) " >&6
8812 case $ac_pt_LLVM_PROFDATA in
8814 ac_cv_path_ac_pt_LLVM_PROFDATA
="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path.
8817 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8818 for as_dir
in ${llvm_path}
8821 case $as_dir in #(((
8824 *) as_dir
=$as_dir/ ;;
8826 for ac_exec_ext
in '' $ac_executable_extensions; do
8827 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
8828 ac_cv_path_ac_pt_LLVM_PROFDATA
="$as_dir$ac_word$ac_exec_ext"
8829 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8839 ac_pt_LLVM_PROFDATA
=$ac_cv_path_ac_pt_LLVM_PROFDATA
8840 if test -n "$ac_pt_LLVM_PROFDATA"; then
8841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5
8842 printf "%s\n" "$ac_pt_LLVM_PROFDATA" >&6; }
8844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 printf "%s\n" "no" >&6; }
8848 if test "x$ac_pt_LLVM_PROFDATA" = x
; then
8851 case $cross_compiling:$ac_tool_warned in
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8854 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8855 ac_tool_warned
=yes ;;
8857 LLVM_PROFDATA
=$ac_pt_LLVM_PROFDATA
8860 LLVM_PROFDATA
="$ac_cv_path_LLVM_PROFDATA"
8864 if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}"
8866 LLVM_PROF_FOUND
="found"
8868 LLVM_PROF_FOUND
="not-found"
8870 if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found"
8872 found_llvm_profdata
=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null`
8873 if test -n "${found_llvm_profdata}"
8875 # llvm-profdata isn't directly in $PATH in some cases.
8876 # https://apple.stackexchange.com/questions/197053/
8877 LLVM_PROFDATA
='/usr/bin/xcrun llvm-profdata'
8878 LLVM_PROF_FOUND
=found
8879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5
8880 printf "%s\n" "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
8885 # GNU Autoconf recommends the use of expr instead of basename.
8886 CC_BASENAME
=$
(expr "//$CC" : '.*/\(.*\)')
8887 case "$CC_BASENAME" in
8889 # Any changes made here should be reflected in the GCC+Darwin case below
8890 PGO_PROF_GEN_FLAG
="-fprofile-instr-generate"
8891 PGO_PROF_USE_FLAG
="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
8892 LLVM_PROF_MERGER
=" ${LLVM_PROFDATA} merge -output=\"\$(shell pwd)/code.profclangd\" \"\$(shell pwd)\"/*.profclangr "
8893 LLVM_PROF_FILE
="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
8894 if test $LLVM_PROF_FOUND = not-found
8897 if test "${REQUIRE_PGO}" = "yes"
8899 as_fn_error $?
"llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
8904 case $ac_sys_system in
8906 PGO_PROF_GEN_FLAG
="-fprofile-instr-generate"
8907 PGO_PROF_USE_FLAG
="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\""
8908 LLVM_PROF_MERGER
=" ${LLVM_PROFDATA} merge -output=\"\$(shell pwd)/code.profclangd\" \"\$(shell pwd)\"/*.profclangr "
8909 LLVM_PROF_FILE
="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\""
8910 if test "${LLVM_PROF_FOUND}" = "not-found"
8913 if test "${REQUIRE_PGO}" = "yes"
8915 as_fn_error $?
"llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5
8920 PGO_PROF_GEN_FLAG
="-fprofile-generate"
8921 PGO_PROF_USE_FLAG
="-fprofile-use -fprofile-correction"
8922 LLVM_PROF_MERGER
="true"
8928 PGO_PROF_GEN_FLAG
="-prof-gen"
8929 PGO_PROF_USE_FLAG
="-prof-use"
8930 LLVM_PROF_MERGER
="true"
8935 # BOLT optimization. Always configured after PGO since it always runs after PGO.
8937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-bolt" >&5
8938 printf %s
"checking for --enable-bolt... " >&6; }
8939 # Check whether --enable-bolt was given.
8940 if test ${enable_bolt+y}
8942 enableval
=$enable_bolt;
8943 if test "$enableval" != no
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8947 printf "%s\n" "yes" >&6; };
8950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8951 printf "%s\n" "no" >&6; };
8954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 printf "%s\n" "no" >&6; }
8960 if test "$Py_BOLT" = 'true' ; then
8961 PREBOLT_RULE
="${DEF_MAKE_ALL_RULE}"
8962 DEF_MAKE_ALL_RULE
="bolt-opt"
8963 DEF_MAKE_RULE
="build_all"
8965 # -fno-reorder-blocks-and-partition is required for bolt to work.
8966 # Possibly GCC only.
8967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-reorder-blocks-and-partition" >&5
8968 printf %s
"checking whether C compiler accepts -fno-reorder-blocks-and-partition... " >&6; }
8969 if test ${ax_cv_check_cflags___fno_reorder_blocks_and_partition+y}
8971 printf %s
"(cached) " >&6
8974 ax_check_save_flags
=$CFLAGS
8975 CFLAGS
="$CFLAGS -fno-reorder-blocks-and-partition"
8976 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8987 if ac_fn_c_try_compile
"$LINENO"
8989 ax_cv_check_cflags___fno_reorder_blocks_and_partition
=yes
8991 ax_cv_check_cflags___fno_reorder_blocks_and_partition
=no
8993 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
8994 CFLAGS
=$ax_check_save_flags
8996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&5
8997 printf "%s\n" "$ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&6; }
8998 if test "x$ax_cv_check_cflags___fno_reorder_blocks_and_partition" = xyes
9001 CFLAGS_NODIST
="$CFLAGS_NODIST -fno-reorder-blocks-and-partition"
9008 # These flags are required for bolt to work:
9009 LDFLAGS_NODIST
="$LDFLAGS_NODIST -Wl,--emit-relocs"
9011 # These flags are required to get good performance from bolt:
9012 CFLAGS_NODIST
="$CFLAGS_NODIST -fno-pie"
9013 # We want to add these no-pie flags to linking executables but not shared libraries:
9014 LINKCC
="$LINKCC -fno-pie -no-pie"
9016 if test -n "$ac_tool_prefix"; then
9017 # Extract the first word of "${ac_tool_prefix}llvm-bolt", so it can be a program name with args.
9018 set dummy
${ac_tool_prefix}llvm-bolt
; ac_word
=$2
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9020 printf %s
"checking for $ac_word... " >&6; }
9021 if test ${ac_cv_path_LLVM_BOLT+y}
9023 printf %s
"(cached) " >&6
9027 ac_cv_path_LLVM_BOLT
="$LLVM_BOLT" # Let the user override the test with a path.
9030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9031 for as_dir
in ${llvm_path}
9034 case $as_dir in #(((
9037 *) as_dir
=$as_dir/ ;;
9039 for ac_exec_ext
in '' $ac_executable_extensions; do
9040 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9041 ac_cv_path_LLVM_BOLT
="$as_dir$ac_word$ac_exec_ext"
9042 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9052 LLVM_BOLT
=$ac_cv_path_LLVM_BOLT
9053 if test -n "$LLVM_BOLT"; then
9054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_BOLT" >&5
9055 printf "%s\n" "$LLVM_BOLT" >&6; }
9057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9058 printf "%s\n" "no" >&6; }
9063 if test -z "$ac_cv_path_LLVM_BOLT"; then
9064 ac_pt_LLVM_BOLT
=$LLVM_BOLT
9065 # Extract the first word of "llvm-bolt", so it can be a program name with args.
9066 set dummy llvm-bolt
; ac_word
=$2
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9068 printf %s
"checking for $ac_word... " >&6; }
9069 if test ${ac_cv_path_ac_pt_LLVM_BOLT+y}
9071 printf %s
"(cached) " >&6
9073 case $ac_pt_LLVM_BOLT in
9075 ac_cv_path_ac_pt_LLVM_BOLT
="$ac_pt_LLVM_BOLT" # Let the user override the test with a path.
9078 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9079 for as_dir
in ${llvm_path}
9082 case $as_dir in #(((
9085 *) as_dir
=$as_dir/ ;;
9087 for ac_exec_ext
in '' $ac_executable_extensions; do
9088 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9089 ac_cv_path_ac_pt_LLVM_BOLT
="$as_dir$ac_word$ac_exec_ext"
9090 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9100 ac_pt_LLVM_BOLT
=$ac_cv_path_ac_pt_LLVM_BOLT
9101 if test -n "$ac_pt_LLVM_BOLT"; then
9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_BOLT" >&5
9103 printf "%s\n" "$ac_pt_LLVM_BOLT" >&6; }
9105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9106 printf "%s\n" "no" >&6; }
9109 if test "x$ac_pt_LLVM_BOLT" = x
; then
9112 case $cross_compiling:$ac_tool_warned in
9114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9115 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9116 ac_tool_warned
=yes ;;
9118 LLVM_BOLT
=$ac_pt_LLVM_BOLT
9121 LLVM_BOLT
="$ac_cv_path_LLVM_BOLT"
9124 if test -n "${LLVM_BOLT}" -a -x "${LLVM_BOLT}"
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found llvm-bolt\"" >&5
9127 printf "%s\n" "\"Found llvm-bolt\"" >&6; }
9129 as_fn_error $?
"llvm-bolt is required for a --enable-bolt build but could not be found." "$LINENO" 5
9133 if test -n "$ac_tool_prefix"; then
9134 # Extract the first word of "${ac_tool_prefix}merge-fdata", so it can be a program name with args.
9135 set dummy
${ac_tool_prefix}merge-fdata
; ac_word
=$2
9136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9137 printf %s
"checking for $ac_word... " >&6; }
9138 if test ${ac_cv_path_MERGE_FDATA+y}
9140 printf %s
"(cached) " >&6
9142 case $MERGE_FDATA in
9144 ac_cv_path_MERGE_FDATA
="$MERGE_FDATA" # Let the user override the test with a path.
9147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9148 for as_dir
in ${llvm_path}
9151 case $as_dir in #(((
9154 *) as_dir
=$as_dir/ ;;
9156 for ac_exec_ext
in '' $ac_executable_extensions; do
9157 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9158 ac_cv_path_MERGE_FDATA
="$as_dir$ac_word$ac_exec_ext"
9159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9169 MERGE_FDATA
=$ac_cv_path_MERGE_FDATA
9170 if test -n "$MERGE_FDATA"; then
9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MERGE_FDATA" >&5
9172 printf "%s\n" "$MERGE_FDATA" >&6; }
9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9175 printf "%s\n" "no" >&6; }
9180 if test -z "$ac_cv_path_MERGE_FDATA"; then
9181 ac_pt_MERGE_FDATA
=$MERGE_FDATA
9182 # Extract the first word of "merge-fdata", so it can be a program name with args.
9183 set dummy merge-fdata
; ac_word
=$2
9184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9185 printf %s
"checking for $ac_word... " >&6; }
9186 if test ${ac_cv_path_ac_pt_MERGE_FDATA+y}
9188 printf %s
"(cached) " >&6
9190 case $ac_pt_MERGE_FDATA in
9192 ac_cv_path_ac_pt_MERGE_FDATA
="$ac_pt_MERGE_FDATA" # Let the user override the test with a path.
9195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9196 for as_dir
in ${llvm_path}
9199 case $as_dir in #(((
9202 *) as_dir
=$as_dir/ ;;
9204 for ac_exec_ext
in '' $ac_executable_extensions; do
9205 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
9206 ac_cv_path_ac_pt_MERGE_FDATA
="$as_dir$ac_word$ac_exec_ext"
9207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9217 ac_pt_MERGE_FDATA
=$ac_cv_path_ac_pt_MERGE_FDATA
9218 if test -n "$ac_pt_MERGE_FDATA"; then
9219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MERGE_FDATA" >&5
9220 printf "%s\n" "$ac_pt_MERGE_FDATA" >&6; }
9222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9223 printf "%s\n" "no" >&6; }
9226 if test "x$ac_pt_MERGE_FDATA" = x
; then
9229 case $cross_compiling:$ac_tool_warned in
9231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9232 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9233 ac_tool_warned
=yes ;;
9235 MERGE_FDATA
=$ac_pt_MERGE_FDATA
9238 MERGE_FDATA
="$ac_cv_path_MERGE_FDATA"
9241 if test -n "${MERGE_FDATA}" -a -x "${MERGE_FDATA}"
9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found merge-fdata\"" >&5
9244 printf "%s\n" "\"Found merge-fdata\"" >&6; }
9246 as_fn_error $?
"merge-fdata is required for a --enable-bolt build but could not be found." "$LINENO" 5
9251 BOLT_BINARIES
='$(BUILDPYTHON)'
9252 if test "x$enable_shared" = xyes
9255 BOLT_BINARIES
="${BOLT_BINARIES} \$(INSTSONAME)"
9260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_INSTRUMENT_FLAGS" >&5
9261 printf %s
"checking BOLT_INSTRUMENT_FLAGS... " >&6; }
9262 if test -z "${BOLT_INSTRUMENT_FLAGS}"
9264 BOLT_INSTRUMENT_FLAGS
=
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_INSTRUMENT_FLAGS" >&5
9267 printf "%s\n" "$BOLT_INSTRUMENT_FLAGS" >&6; }
9270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_APPLY_FLAGS" >&5
9271 printf %s
"checking BOLT_APPLY_FLAGS... " >&6; }
9272 if test -z "${BOLT_APPLY_FLAGS}"
9274 BOLT_APPLY_FLAGS
=" -update-debug-sections -reorder-blocks=ext-tsp -reorder-functions=hfsort+ -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=none -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot "
9277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_APPLY_FLAGS" >&5
9278 printf "%s\n" "$BOLT_APPLY_FLAGS" >&6; }
9280 # XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be
9281 # merged with this chunk of code?
9283 # Optimizer/debugger flags
9284 # ------------------------
9285 # (The following bit of code is complicated enough - please keep things
9286 # indented properly. Just pretend you're editing Python code. ;-)
9288 # There are two parallel sets of case statements below, one that checks to
9289 # see if OPT was set and one that does BASECFLAGS setting based upon
9290 # compiler and platform. BASECFLAGS tweaks need to be made even if the
9298 if $CC --version 2>&1 |
grep -q clang
9307 CFLAGS
="-fstrict-overflow -fno-strict-overflow"
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow and -fno-strict-overflow" >&5
9309 printf %s
"checking if $CC supports -fstrict-overflow and -fno-strict-overflow... " >&6; }
9310 if test ${ac_cv_cc_supports_fstrict_overflow+y}
9312 printf %s
"(cached) " >&6
9314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9315 /* end confdefs.h. */
9325 if ac_fn_c_try_compile
"$LINENO"
9327 ac_cv_cc_supports_fstrict_overflow
=yes
9329 ac_cv_cc_supports_fstrict_overflow
=no
9332 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_fstrict_overflow" >&5
9336 printf "%s\n" "$ac_cv_cc_supports_fstrict_overflow" >&6; }
9339 if test "x$ac_cv_cc_supports_fstrict_overflow" = xyes
9341 STRICT_OVERFLOW_CFLAGS
="-fstrict-overflow"
9342 NO_STRICT_OVERFLOW_CFLAGS
="-fno-strict-overflow"
9344 STRICT_OVERFLOW_CFLAGS
=""
9345 NO_STRICT_OVERFLOW_CFLAGS
=""
9348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-strict-overflow" >&5
9349 printf %s
"checking for --with-strict-overflow... " >&6; }
9351 # Check whether --with-strict-overflow was given.
9352 if test ${with_strict_overflow+y}
9354 withval
=$with_strict_overflow;
9355 if test "x$ac_cv_cc_supports_fstrict_overflow" = xno
9357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&5
9358 printf "%s\n" "$as_me: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&2;}
9362 with_strict_overflow
=no
9366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_strict_overflow" >&5
9367 printf "%s\n" "$with_strict_overflow" >&6; }
9369 # Check if CC supports -Og optimization level
9372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Og optimization level" >&5
9373 printf %s
"checking if $CC supports -Og optimization level... " >&6; }
9374 if test ${ac_cv_cc_supports_og+y}
9376 printf %s
"(cached) " >&6
9378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9391 if ac_fn_c_try_compile
"$LINENO"
9394 ac_cv_cc_supports_og
=yes
9398 ac_cv_cc_supports_og
=no
9401 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_og" >&5
9405 printf "%s\n" "$ac_cv_cc_supports_og" >&6; }
9408 # Optimization messes up debuggers, so turn it off for
9410 PYDEBUG_CFLAGS
="-O0"
9411 if test "x$ac_cv_cc_supports_og" = xyes
9413 PYDEBUG_CFLAGS
="-Og"
9416 # tweak OPT based on compiler and platform, only if the user didn't set
9417 # it on the command line
9420 if test "${OPT-unset}" = "unset"
9424 if test -n "${cc_is_clang}"
9426 # bpo-30104: disable strict aliasing to compile correctly dtoa.c,
9427 # see Makefile.pre.in for more information
9428 CFLAGS_ALIASING
="-fno-strict-aliasing"
9431 case $ac_cv_prog_cc_g in
9433 if test "$Py_DEBUG" = 'true' ; then
9434 OPT
="-g $PYDEBUG_CFLAGS -Wall"
9444 case $ac_sys_system in
9445 SCO_SV
*) OPT
="$OPT -m486 -DSCO5"
9457 case $ac_sys_system in #(
9460 if test "x$Py_DEBUG" = xyes
9467 as_fn_append LDFLAGS_NODIST
" -sALLOW_MEMORY_GROWTH -sTOTAL_MEMORY=20971520"
9469 as_fn_append LDFLAGS_NODIST
" -sWASM_BIGINT"
9471 as_fn_append LDFLAGS_NODIST
" -sFORCE_FILESYSTEM -lidbfs.js -lnodefs.js -lproxyfs.js -lworkerfs.js"
9473 if test "x$enable_wasm_dynamic_linking" = xyes
9476 as_fn_append LINKFORSHARED
" -sMAIN_MODULE"
9480 if test "x$enable_wasm_pthreads" = xyes
9483 as_fn_append CFLAGS_NODIST
" -pthread"
9484 as_fn_append LDFLAGS_NODIST
" -sUSE_PTHREADS"
9485 as_fn_append LINKFORSHARED
" -sPROXY_TO_PTHREAD"
9489 case $ac_sys_emscripten_target in #(
9492 if test "x$ac_sys_emscripten_target" = xbrowser-debug
9496 as_fn_append LINKFORSHARED
" --preload-file=\$(WASM_ASSETS_DIR)"
9497 WASM_ASSETS_DIR
=".\$(prefix)"
9498 WASM_STDLIB
="\$(WASM_ASSETS_DIR)/local/lib/python\$(VERSION)/os.py"
9499 WASM_LINKFORSHARED_DEBUG
="-gsource-map --emit-symbol-map"
9503 if test "x$ac_sys_emscripten_target" = xnode-debug
9507 as_fn_append LDFLAGS_NODIST
" -sALLOW_MEMORY_GROWTH -sNODERAWFS"
9508 as_fn_append LINKFORSHARED
" -sEXIT_RUNTIME"
9509 WASM_LINKFORSHARED_DEBUG
="-gseparate-dwarf --emit-symbol-map"
9516 if test "x$wasm_debug" = xyes
9519 as_fn_append LDFLAGS_NODIST
" -sASSERTIONS"
9520 as_fn_append LINKFORSHARED
" $WASM_LINKFORSHARED_DEBUG"
9524 as_fn_append LINKFORSHARED
" -O2 -g0"
9531 printf "%s\n" "#define _WASI_EMULATED_SIGNAL 1" >>confdefs.h
9534 printf "%s\n" "#define _WASI_EMULATED_GETPID 1" >>confdefs.h
9537 printf "%s\n" "#define _WASI_EMULATED_PROCESS_CLOCKS 1" >>confdefs.h
9539 LIBS
="$LIBS -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks"
9540 echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h
9542 if test "x$enable_wasm_pthreads" = xyes
9545 # Note: update CFLAGS because ac_compile/ac_link needs this too.
9546 # without this, configure fails to find pthread_create, sem_init,
9547 # etc because they are only available in the sysroot for
9548 # wasm32-wasi-threads.
9549 # Note: wasi-threads requires --import-memory.
9550 # Note: wasi requires --export-memory.
9551 # Note: --export-memory is implicit unless --import-memory is given
9552 # Note: this requires LLVM >= 16.
9553 as_fn_append CFLAGS
" -target wasm32-wasi-threads -pthread"
9554 as_fn_append CFLAGS_NODIST
" -target wasm32-wasi-threads -pthread"
9555 as_fn_append LDFLAGS_NODIST
" -target wasm32-wasi-threads -pthread"
9556 as_fn_append LDFLAGS_NODIST
" -Wl,--import-memory"
9557 as_fn_append LDFLAGS_NODIST
" -Wl,--export-memory"
9558 as_fn_append LDFLAGS_NODIST
" -Wl,--max-memory=10485760"
9562 as_fn_append LDFLAGS_NODIST
" -z stack-size=8388608 -Wl,--stack-first -Wl,--initial-memory=20971520"
9569 case $enable_wasm_dynamic_linking in #(
9571 ac_cv_func_dlopen
=yes ;; #(
9573 ac_cv_func_dlopen
=no
;; #(
9588 # The -arch flags for universal builds on macOS
9589 UNIVERSAL_ARCH_FLAGS
=
9594 # tweak BASECFLAGS based on compiler and platform
9595 if test "x$with_strict_overflow" = xyes
9597 BASECFLAGS
="$BASECFLAGS $STRICT_OVERFLOW_CFLAGS"
9599 BASECFLAGS
="$BASECFLAGS $NO_STRICT_OVERFLOW_CFLAGS"
9604 CFLAGS_NODIST
="$CFLAGS_NODIST -std=c11"
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can add -Wextra" >&5
9609 printf %s
"checking if we can add -Wextra... " >&6; }
9610 if test ${ac_cv_enable_extra_warning+y}
9612 printf %s
"(cached) " >&6
9616 as_fn_append CFLAGS
"-Wextra -Werror"
9617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9618 /* end confdefs.h. */
9628 if ac_fn_c_try_compile
"$LINENO"
9630 ac_cv_enable_extra_warning
=yes
9632 ac_cv_enable_extra_warning
=no
9634 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_extra_warning" >&5
9639 printf "%s\n" "$ac_cv_enable_extra_warning" >&6; }
9642 if test "x$ac_cv_enable_extra_warning" = xyes
9644 CFLAGS_NODIST
="$CFLAGS_NODIST -Wextra"
9647 # Python doesn't violate C99 aliasing rules, but older versions of
9648 # GCC produce warnings for legal Python code. Enable
9649 # -fno-strict-aliasing on versions of GCC that support but produce
9650 # warnings. See Issue3326
9652 CC
="$CC -fno-strict-aliasing"
9653 save_CFLAGS
="$CFLAGS"
9654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5
9655 printf %s
"checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; }
9656 if test ${ac_cv_no_strict_aliasing+y}
9658 printf %s
"(cached) " >&6
9660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9661 /* end confdefs.h. */
9673 if ac_fn_c_try_compile
"$LINENO"
9676 CC
="$ac_save_cc -fstrict-aliasing"
9677 CFLAGS
="$CFLAGS -Werror -Wstrict-aliasing"
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9685 double *x; f((int **) &x);
9691 if ac_fn_c_try_compile
"$LINENO"
9694 ac_cv_no_strict_aliasing
=no
9698 ac_cv_no_strict_aliasing
=yes
9701 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9705 ac_cv_no_strict_aliasing
=no
9708 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5
9711 printf "%s\n" "$ac_cv_no_strict_aliasing" >&6; }
9712 CFLAGS
="$save_CFLAGS"
9714 if test "x$ac_cv_no_strict_aliasing" = xyes
9716 BASECFLAGS
="$BASECFLAGS -fno-strict-aliasing"
9719 # ICC doesn't recognize the option, but only emits a warning
9720 ## XXX does it emit an unused result warning and can it be disabled?
9721 case "$CC_BASENAME" in #(
9723 ac_cv_disable_unused_result_warning
=no
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-result warning" >&5
9727 printf %s
"checking if we can disable $CC unused-result warning... " >&6; }
9728 if test ${ac_cv_disable_unused_result_warning+y}
9730 printf %s
"(cached) " >&6
9734 as_fn_append CFLAGS
"-Wunused-result -Werror"
9735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9746 if ac_fn_c_try_compile
"$LINENO"
9748 ac_cv_disable_unused_result_warning
=yes
9750 ac_cv_disable_unused_result_warning
=no
9752 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5
9757 printf "%s\n" "$ac_cv_disable_unused_result_warning" >&6; }
9763 if test "x$ac_cv_disable_unused_result_warning" = xyes
9765 BASECFLAGS
="$BASECFLAGS -Wno-unused-result"
9766 CFLAGS_NODIST
="$CFLAGS_NODIST -Wno-unused-result"
9771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-parameter warning" >&5
9772 printf %s
"checking if we can disable $CC unused-parameter warning... " >&6; }
9773 if test ${ac_cv_disable_unused_parameter_warning+y}
9775 printf %s
"(cached) " >&6
9779 as_fn_append CFLAGS
"-Wunused-parameter -Werror"
9780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9781 /* end confdefs.h. */
9791 if ac_fn_c_try_compile
"$LINENO"
9793 ac_cv_disable_unused_parameter_warning
=yes
9795 ac_cv_disable_unused_parameter_warning
=no
9797 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5
9802 printf "%s\n" "$ac_cv_disable_unused_parameter_warning" >&6; }
9805 if test "x$ac_cv_disable_unused_parameter_warning" = xyes
9807 CFLAGS_NODIST
="$CFLAGS_NODIST -Wno-unused-parameter"
9812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC int-conversion warning" >&5
9813 printf %s
"checking if we can disable $CC int-conversion warning... " >&6; }
9814 if test ${ac_cv_disable_int_conversion_warning+y}
9816 printf %s
"(cached) " >&6
9820 as_fn_append CFLAGS
"-Wint-conversion -Werror"
9821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9822 /* end confdefs.h. */
9832 if ac_fn_c_try_compile
"$LINENO"
9834 ac_cv_disable_int_conversion_warning
=yes
9836 ac_cv_disable_int_conversion_warning
=no
9838 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_int_conversion_warning" >&5
9843 printf "%s\n" "$ac_cv_disable_int_conversion_warning" >&6; }
9846 if test "x$ac_cv_disable_int_conversion" = xyes
9848 CFLAGS_NODIST
="$CFLAGS_NODIST -Wno-int-conversion"
9853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC missing-field-initializers warning" >&5
9854 printf %s
"checking if we can disable $CC missing-field-initializers warning... " >&6; }
9855 if test ${ac_cv_disable_missing_field_initializers_warning+y}
9857 printf %s
"(cached) " >&6
9861 as_fn_append CFLAGS
"-Wmissing-field-initializers -Werror"
9862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9863 /* end confdefs.h. */
9873 if ac_fn_c_try_compile
"$LINENO"
9875 ac_cv_disable_missing_field_initializers_warning
=yes
9877 ac_cv_disable_missing_field_initializers_warning
=no
9879 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers_warning" >&5
9884 printf "%s\n" "$ac_cv_disable_missing_field_initializers_warning" >&6; }
9887 if test "x$ac_cv_disable_missing_field_initializers_warning" = xyes
9889 CFLAGS_NODIST
="$CFLAGS_NODIST -Wno-missing-field-initializers"
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC sign-compare warning" >&5
9895 printf %s
"checking if we can enable $CC sign-compare warning... " >&6; }
9896 if test ${ac_cv_enable_sign_compare_warning+y}
9898 printf %s
"(cached) " >&6
9902 as_fn_append CFLAGS
"-Wsign-compare -Werror"
9903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9914 if ac_fn_c_try_compile
"$LINENO"
9916 ac_cv_enable_sign_compare_warning
=yes
9918 ac_cv_enable_sign_compare_warning
=no
9920 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5
9925 printf "%s\n" "$ac_cv_enable_sign_compare_warning" >&6; }
9928 if test "x$ac_cv_enable_sign_compare_warning" = xyes
9930 BASECFLAGS
="$BASECFLAGS -Wsign-compare"
9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC unreachable-code warning" >&5
9936 printf %s
"checking if we can enable $CC unreachable-code warning... " >&6; }
9937 if test ${ac_cv_enable_unreachable_code_warning+y}
9939 printf %s
"(cached) " >&6
9943 as_fn_append CFLAGS
"-Wunreachable-code -Werror"
9944 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9945 /* end confdefs.h. */
9955 if ac_fn_c_try_compile
"$LINENO"
9957 ac_cv_enable_unreachable_code_warning
=yes
9959 ac_cv_enable_unreachable_code_warning
=no
9961 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5
9966 printf "%s\n" "$ac_cv_enable_unreachable_code_warning" >&6; }
9969 # Don't enable unreachable code warning in debug mode, since it usually
9970 # results in non-standard code paths.
9971 # Issue #24324: Unfortunately, the unreachable code warning does not work
9972 # correctly on gcc and has been silently removed from the compiler.
9973 # It is supported on clang but on OS X systems gcc may be an alias
9974 # for clang. Try to determine if the compiler is not really gcc and,
9975 # if so, only then enable the warning.
9976 if test $ac_cv_enable_unreachable_code_warning = yes && \
9977 test "$Py_DEBUG" != "true" && \
9978 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`"
9980 BASECFLAGS
="$BASECFLAGS -Wunreachable-code"
9982 ac_cv_enable_unreachable_code_warning
=no
9987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC strict-prototypes warning" >&5
9988 printf %s
"checking if we can enable $CC strict-prototypes warning... " >&6; }
9989 if test ${ac_cv_enable_strict_prototypes_warning+y}
9991 printf %s
"(cached) " >&6
9995 as_fn_append CFLAGS
"-Wstrict-prototypes -Werror"
9996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9997 /* end confdefs.h. */
10007 if ac_fn_c_try_compile
"$LINENO"
10009 ac_cv_enable_strict_prototypes_warning
=yes
10011 ac_cv_enable_strict_prototypes_warning
=no
10013 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5
10018 printf "%s\n" "$ac_cv_enable_strict_prototypes_warning" >&6; }
10021 if test "x$ac_cv_enable_strict_prototypes_warning" = xyes
10023 CFLAGS_NODIST
="$CFLAGS_NODIST -Wstrict-prototypes"
10027 CC
="$CC -Werror=implicit-function-declaration"
10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5
10029 printf %s
"checking if we can make implicit function declaration an error in $CC... " >&6; }
10030 if test ${ac_cv_enable_implicit_function_declaration_error+y}
10032 printf %s
"(cached) " >&6
10034 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10035 /* end confdefs.h. */
10047 if ac_fn_c_try_compile
"$LINENO"
10050 ac_cv_enable_implicit_function_declaration_error
=yes
10054 ac_cv_enable_implicit_function_declaration_error
=no
10057 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5
10060 printf "%s\n" "$ac_cv_enable_implicit_function_declaration_error" >&6; }
10063 if test "x$ac_cv_enable_implicit_function_declaration_error" = xyes
10065 CFLAGS_NODIST
="$CFLAGS_NODIST -Werror=implicit-function-declaration"
10069 CC
="$CC -fvisibility=hidden"
10070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5
10071 printf %s
"checking if we can use visibility in $CC... " >&6; }
10072 if test ${ac_cv_enable_visibility+y}
10074 printf %s
"(cached) " >&6
10076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10077 /* end confdefs.h. */
10089 if ac_fn_c_try_compile
"$LINENO"
10092 ac_cv_enable_visibility
=yes
10096 ac_cv_enable_visibility
=no
10099 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5
10102 printf "%s\n" "$ac_cv_enable_visibility" >&6; }
10105 if test "x$ac_cv_enable_visibility" = xyes
10107 CFLAGS_NODIST
="$CFLAGS_NODIST -fvisibility=hidden"
10110 # if using gcc on alpha, use -mieee to get (near) full IEEE 754
10111 # support. Without this, treatment of subnormals doesn't follow
10115 BASECFLAGS
="$BASECFLAGS -mieee"
10119 case $ac_sys_system in
10121 BASECFLAGS
="$BASECFLAGS -m486 -DSCO5"
10125 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd
10126 # used to be here, but non-Apple gcc doesn't accept them.
10127 if test "${CC}" = gcc
10129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5
10130 printf %s
"checking which compiler should be used... " >&6; }
10131 case "${UNIVERSALSDK}" in
10133 # Build using 10.4 SDK, force usage of gcc when the
10134 # compiler is gcc, otherwise the user will get very
10135 # confusing error messages when building on OSX 10.6
10140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10141 printf "%s\n" "$CC" >&6; }
10144 LIPO_INTEL64_FLAGS
=""
10145 if test "${enable_universalsdk}"
10147 case "$UNIVERSAL_ARCHS" in
10149 UNIVERSAL_ARCH_FLAGS
="-arch ppc -arch i386"
10150 LIPO_32BIT_FLAGS
=""
10154 UNIVERSAL_ARCH_FLAGS
="-arch ppc64 -arch x86_64"
10155 LIPO_32BIT_FLAGS
=""
10156 ARCH_RUN_32BIT
="true"
10159 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch ppc64 -arch x86_64"
10160 LIPO_32BIT_FLAGS
="-extract ppc7400 -extract i386"
10161 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
10164 UNIVERSAL_ARCH_FLAGS
="-arch arm64 -arch x86_64"
10165 LIPO_32BIT_FLAGS
=""
10166 LIPO_INTEL64_FLAGS
="-extract x86_64"
10167 ARCH_RUN_32BIT
="true"
10170 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch x86_64"
10171 LIPO_32BIT_FLAGS
="-extract i386"
10172 ARCH_RUN_32BIT
="/usr/bin/arch -i386"
10175 UNIVERSAL_ARCH_FLAGS
="-arch i386"
10176 LIPO_32BIT_FLAGS
=""
10180 UNIVERSAL_ARCH_FLAGS
="-arch x86_64"
10181 LIPO_32BIT_FLAGS
=""
10182 ARCH_RUN_32BIT
="true"
10185 UNIVERSAL_ARCH_FLAGS
="-arch i386 -arch ppc -arch x86_64"
10186 LIPO_32BIT_FLAGS
="-extract ppc7400 -extract i386"
10187 ARCH_RUN_32BIT
="/usr/bin/arch -i386 -ppc"
10190 as_fn_error $?
"proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5
10194 if test "${UNIVERSALSDK}" != "/"
10196 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}"
10197 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
10198 CPPFLAGS
="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}"
10200 CFLAGS
="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}"
10201 LDFLAGS
="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}"
10205 # Calculate an appropriate deployment target for this build:
10206 # The deployment target value is used explicitly to enable certain
10207 # features are enabled (such as builtin libedit support for readline)
10208 # through the use of Apple's Availability Macros and is used as a
10209 # component of the string returned by distutils.get_platform().
10211 # Use the value from:
10212 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified
10213 # 2. the operating system version of the build machine if >= 10.6
10214 # 3. If running on OS X 10.3 through 10.5, use the legacy tests
10215 # below to pick either 10.3, 10.4, or 10.5 as the target.
10216 # 4. If we are running on OS X 10.2 or earlier, good luck!
10218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5
10219 printf %s
"checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; }
10220 cur_target_major
=`sw_vers -productVersion | \
10221 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
10222 cur_target_minor
=`sw_vers -productVersion | \
10223 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
10224 cur_target
="${cur_target_major}.${cur_target_minor}"
10225 if test ${cur_target_major} -eq 10 && \
10226 test ${cur_target_minor} -ge 3 && \
10227 test ${cur_target_minor} -le 5
10229 # OS X 10.3 through 10.5
10231 if test ${enable_universalsdk}
10233 case "$UNIVERSAL_ARCHS" in
10234 all|
3-way|intel|
64-bit)
10235 # These configurations were first supported in 10.5
10240 if test `/usr/bin/arch` = "i386"
10242 # 10.4 was the first release to support Intel archs
10247 CONFIGURE_MACOSX_DEPLOYMENT_TARGET
=${MACOSX_DEPLOYMENT_TARGET-${cur_target}}
10249 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the
10250 # environment with a value that is the same as what we'll use
10251 # in the Makefile to ensure that we'll get the same compiler
10252 # environment during configure and build time.
10253 MACOSX_DEPLOYMENT_TARGET
="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET"
10254 export MACOSX_DEPLOYMENT_TARGET
10255 EXPORT_MACOSX_DEPLOYMENT_TARGET
=''
10256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5
10257 printf "%s\n" "$MACOSX_DEPLOYMENT_TARGET" >&6; }
10259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5
10260 printf %s
"checking if specified universal architectures work... " >&6; }
10261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10262 /* end confdefs.h. */
10272 if ac_fn_c_try_link
"$LINENO"
10274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10275 printf "%s\n" "yes" >&6; }
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10278 printf "%s\n" "no" >&6; }
10279 as_fn_error $?
"check config.log and use the '--with-universal-archs' option" "$LINENO" 5
10282 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
10283 conftest
$ac_exeext conftest.
$ac_ext
10285 # end of Darwin* tests
10291 case $ac_sys_system in
10292 OpenUNIX
*|UnixWare
*)
10293 BASECFLAGS
="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca "
10296 BASECFLAGS
="$BASECFLAGS -belf -Ki486 -DSCO5"
10302 case "$CC_BASENAME" in
10304 CFLAGS_NODIST
="$CFLAGS_NODIST"
10307 # ICC needs -fp-model strict or floats behave badly
10308 CFLAGS_NODIST
="$CFLAGS_NODIST -fp-model strict"
10311 CFLAGS_NODIST
="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1"
10315 if test "$assertions" = 'true'; then
10318 OPT
="-DNDEBUG $OPT"
10321 if test "$ac_arch_flags"
10323 BASECFLAGS
="$BASECFLAGS $ac_arch_flags"
10326 # On some compilers, pthreads are available without further options
10327 # (e.g. MacOS X). On some of these systems, the compiler will not
10328 # complain if unaccepted options are passed (e.g. gcc on Mac OS X).
10329 # So we have to see first whether pthreads are available without
10330 # options before we can check whether -Kpthread improves anything.
10331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5
10332 printf %s
"checking whether pthreads are available without options... " >&6; }
10333 if test ${ac_cv_pthread_is_default+y}
10335 printf %s
"(cached) " >&6
10337 if test "$cross_compiling" = yes
10339 ac_cv_pthread_is_default
=no
10341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10342 /* end confdefs.h. */
10345 #include <pthread.h>
10347 void* routine(void* p){return NULL;}
10351 if(pthread_create(&p,NULL,routine,NULL)!=0)
10353 (void)pthread_detach(p);
10358 if ac_fn_c_try_run
"$LINENO"
10361 ac_cv_pthread_is_default
=yes
10366 ac_cv_pthread_is_default
=no
10368 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10369 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5
10375 printf "%s\n" "$ac_cv_pthread_is_default" >&6; }
10378 if test $ac_cv_pthread_is_default = yes
10382 # -Kpthread, if available, provides the right #defines
10383 # and linker options to make pthread_create available
10384 # Some compilers won't report that they do not support -Kpthread,
10385 # so we need to run a program to see whether it really made the
10386 # function available.
10387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5
10388 printf %s
"checking whether $CC accepts -Kpthread... " >&6; }
10389 if test ${ac_cv_kpthread+y}
10391 printf %s
"(cached) " >&6
10395 if test "$cross_compiling" = yes
10399 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10400 /* end confdefs.h. */
10403 #include <pthread.h>
10405 void* routine(void* p){return NULL;}
10409 if(pthread_create(&p,NULL,routine,NULL)!=0)
10411 (void)pthread_detach(p);
10416 if ac_fn_c_try_run
"$LINENO"
10422 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10423 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5
10429 printf "%s\n" "$ac_cv_kpthread" >&6; }
10432 if test $ac_cv_kpthread = no
-a $ac_cv_pthread_is_default = no
10434 # -Kthread, if available, provides the right #defines
10435 # and linker options to make pthread_create available
10436 # Some compilers won't report that they do not support -Kthread,
10437 # so we need to run a program to see whether it really made the
10438 # function available.
10439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5
10440 printf %s
"checking whether $CC accepts -Kthread... " >&6; }
10441 if test ${ac_cv_kthread+y}
10443 printf %s
"(cached) " >&6
10447 if test "$cross_compiling" = yes
10451 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10452 /* end confdefs.h. */
10455 #include <pthread.h>
10457 void* routine(void* p){return NULL;}
10461 if(pthread_create(&p,NULL,routine,NULL)!=0)
10463 (void)pthread_detach(p);
10468 if ac_fn_c_try_run
"$LINENO"
10474 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10475 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5
10481 printf "%s\n" "$ac_cv_kthread" >&6; }
10484 if test $ac_cv_kthread = no
-a $ac_cv_pthread_is_default = no
10486 # -pthread, if available, provides the right #defines
10487 # and linker options to make pthread_create available
10488 # Some compilers won't report that they do not support -pthread,
10489 # so we need to run a program to see whether it really made the
10490 # function available.
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5
10492 printf %s
"checking whether $CC accepts -pthread... " >&6; }
10493 if test ${ac_cv_pthread+y}
10495 printf %s
"(cached) " >&6
10499 if test "$cross_compiling" = yes
10503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10504 /* end confdefs.h. */
10507 #include <pthread.h>
10509 void* routine(void* p){return NULL;}
10513 if(pthread_create(&p,NULL,routine,NULL)!=0)
10515 (void)pthread_detach(p);
10520 if ac_fn_c_try_run
"$LINENO"
10526 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10527 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5
10533 printf "%s\n" "$ac_cv_pthread" >&6; }
10536 # If we have set a CC compiler flag for thread support then
10537 # check if it works for CXX, too.
10538 if test ! -z "$CXX"
10540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5
10541 printf %s
"checking whether $CXX also accepts flags for thread support... " >&6; }
10542 if test ${ac_cv_cxx_thread+y}
10544 printf %s
"(cached) " >&6
10548 if test "$ac_cv_kpthread" = "yes"
10550 CXX
="$CXX -Kpthread"
10551 ac_cv_cxx_thread
=yes
10552 elif test "$ac_cv_kthread" = "yes"
10554 CXX
="$CXX -Kthread"
10555 ac_cv_cxx_thread
=yes
10556 elif test "$ac_cv_pthread" = "yes"
10558 CXX
="$CXX -pthread"
10559 ac_cv_cxx_thread
=yes
10561 ac_cv_cxx_thread
=no
10564 if test $ac_cv_cxx_thread = yes
10566 echo 'void foo();int main(){foo();}void foo(){}' > conftest.
$ac_ext
10567 $CXX -c conftest.
$ac_ext 2>&5
10568 if $CXX -o conftest
$ac_exeext conftest.
$ac_objext 2>&5 \
10569 && test -s conftest
$ac_exeext && .
/conftest
$ac_exeext
10571 ac_cv_cxx_thread
=yes
10573 ac_cv_cxx_thread
=no
10579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5
10580 printf "%s\n" "$ac_cv_cxx_thread" >&6; }
10582 ac_cv_cxx_thread
=no
10587 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
10590 # checks for header files
10591 ac_fn_c_check_header_compile
"$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
10592 if test "x$ac_cv_header_alloca_h" = xyes
10594 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
10597 ac_fn_c_check_header_compile
"$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default"
10598 if test "x$ac_cv_header_asm_types_h" = xyes
10600 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h
10603 ac_fn_c_check_header_compile
"$LINENO" "bluetooth.h" "ac_cv_header_bluetooth_h" "$ac_includes_default"
10604 if test "x$ac_cv_header_bluetooth_h" = xyes
10606 printf "%s\n" "#define HAVE_BLUETOOTH_H 1" >>confdefs.h
10609 ac_fn_c_check_header_compile
"$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default"
10610 if test "x$ac_cv_header_conio_h" = xyes
10612 printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h
10615 ac_fn_c_check_header_compile
"$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default"
10616 if test "x$ac_cv_header_direct_h" = xyes
10618 printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h
10621 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
10622 if test "x$ac_cv_header_dlfcn_h" = xyes
10624 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
10627 ac_fn_c_check_header_compile
"$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
10628 if test "x$ac_cv_header_endian_h" = xyes
10630 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
10633 ac_fn_c_check_header_compile
"$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
10634 if test "x$ac_cv_header_errno_h" = xyes
10636 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
10639 ac_fn_c_check_header_compile
"$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
10640 if test "x$ac_cv_header_fcntl_h" = xyes
10642 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
10645 ac_fn_c_check_header_compile
"$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
10646 if test "x$ac_cv_header_grp_h" = xyes
10648 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h
10651 ac_fn_c_check_header_compile
"$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default"
10652 if test "x$ac_cv_header_io_h" = xyes
10654 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
10657 ac_fn_c_check_header_compile
"$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
10658 if test "x$ac_cv_header_langinfo_h" = xyes
10660 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
10663 ac_fn_c_check_header_compile
"$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
10664 if test "x$ac_cv_header_libintl_h" = xyes
10666 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
10669 ac_fn_c_check_header_compile
"$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
10670 if test "x$ac_cv_header_libutil_h" = xyes
10672 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h
10675 ac_fn_c_check_header_compile
"$LINENO" "linux/auxvec.h" "ac_cv_header_linux_auxvec_h" "$ac_includes_default"
10676 if test "x$ac_cv_header_linux_auxvec_h" = xyes
10678 printf "%s\n" "#define HAVE_LINUX_AUXVEC_H 1" >>confdefs.h
10681 ac_fn_c_check_header_compile
"$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
10682 if test "x$ac_cv_header_sys_auxv_h" = xyes
10684 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
10687 ac_fn_c_check_header_compile
"$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default"
10688 if test "x$ac_cv_header_linux_fs_h" = xyes
10690 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h
10693 ac_fn_c_check_header_compile
"$LINENO" "linux/limits.h" "ac_cv_header_linux_limits_h" "$ac_includes_default"
10694 if test "x$ac_cv_header_linux_limits_h" = xyes
10696 printf "%s\n" "#define HAVE_LINUX_LIMITS_H 1" >>confdefs.h
10699 ac_fn_c_check_header_compile
"$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default"
10700 if test "x$ac_cv_header_linux_memfd_h" = xyes
10702 printf "%s\n" "#define HAVE_LINUX_MEMFD_H 1" >>confdefs.h
10705 ac_fn_c_check_header_compile
"$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default"
10706 if test "x$ac_cv_header_linux_random_h" = xyes
10708 printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h
10711 ac_fn_c_check_header_compile
"$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default"
10712 if test "x$ac_cv_header_linux_soundcard_h" = xyes
10714 printf "%s\n" "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h
10717 ac_fn_c_check_header_compile
"$LINENO" "linux/tipc.h" "ac_cv_header_linux_tipc_h" "$ac_includes_default"
10718 if test "x$ac_cv_header_linux_tipc_h" = xyes
10720 printf "%s\n" "#define HAVE_LINUX_TIPC_H 1" >>confdefs.h
10723 ac_fn_c_check_header_compile
"$LINENO" "linux/wait.h" "ac_cv_header_linux_wait_h" "$ac_includes_default"
10724 if test "x$ac_cv_header_linux_wait_h" = xyes
10726 printf "%s\n" "#define HAVE_LINUX_WAIT_H 1" >>confdefs.h
10729 ac_fn_c_check_header_compile
"$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
10730 if test "x$ac_cv_header_netdb_h" = xyes
10732 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
10735 ac_fn_c_check_header_compile
"$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default"
10736 if test "x$ac_cv_header_net_ethernet_h" = xyes
10738 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h
10741 ac_fn_c_check_header_compile
"$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
10742 if test "x$ac_cv_header_netinet_in_h" = xyes
10744 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
10747 ac_fn_c_check_header_compile
"$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default"
10748 if test "x$ac_cv_header_netpacket_packet_h" = xyes
10750 printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h
10753 ac_fn_c_check_header_compile
"$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
10754 if test "x$ac_cv_header_poll_h" = xyes
10756 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
10759 ac_fn_c_check_header_compile
"$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default"
10760 if test "x$ac_cv_header_process_h" = xyes
10762 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h
10765 ac_fn_c_check_header_compile
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
10766 if test "x$ac_cv_header_pthread_h" = xyes
10768 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
10771 ac_fn_c_check_header_compile
"$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default"
10772 if test "x$ac_cv_header_pty_h" = xyes
10774 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h
10777 ac_fn_c_check_header_compile
"$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
10778 if test "x$ac_cv_header_sched_h" = xyes
10780 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h
10783 ac_fn_c_check_header_compile
"$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
10784 if test "x$ac_cv_header_setjmp_h" = xyes
10786 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
10789 ac_fn_c_check_header_compile
"$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
10790 if test "x$ac_cv_header_shadow_h" = xyes
10792 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h
10795 ac_fn_c_check_header_compile
"$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
10796 if test "x$ac_cv_header_signal_h" = xyes
10798 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
10801 ac_fn_c_check_header_compile
"$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default"
10802 if test "x$ac_cv_header_spawn_h" = xyes
10804 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h
10807 ac_fn_c_check_header_compile
"$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default"
10808 if test "x$ac_cv_header_stropts_h" = xyes
10810 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
10813 ac_fn_c_check_header_compile
"$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
10814 if test "x$ac_cv_header_sys_audioio_h" = xyes
10816 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h
10819 ac_fn_c_check_header_compile
"$LINENO" "sys/bsdtty.h" "ac_cv_header_sys_bsdtty_h" "$ac_includes_default"
10820 if test "x$ac_cv_header_sys_bsdtty_h" = xyes
10822 printf "%s\n" "#define HAVE_SYS_BSDTTY_H 1" >>confdefs.h
10825 ac_fn_c_check_header_compile
"$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default"
10826 if test "x$ac_cv_header_sys_devpoll_h" = xyes
10828 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
10831 ac_fn_c_check_header_compile
"$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default"
10832 if test "x$ac_cv_header_sys_endian_h" = xyes
10834 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
10837 ac_fn_c_check_header_compile
"$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
10838 if test "x$ac_cv_header_sys_epoll_h" = xyes
10840 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h
10843 ac_fn_c_check_header_compile
"$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
10844 if test "x$ac_cv_header_sys_event_h" = xyes
10846 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h
10849 ac_fn_c_check_header_compile
"$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default"
10850 if test "x$ac_cv_header_sys_eventfd_h" = xyes
10852 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h
10855 ac_fn_c_check_header_compile
"$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
10856 if test "x$ac_cv_header_sys_file_h" = xyes
10858 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
10861 ac_fn_c_check_header_compile
"$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
10862 if test "x$ac_cv_header_sys_ioctl_h" = xyes
10864 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
10867 ac_fn_c_check_header_compile
"$LINENO" "sys/kern_control.h" "ac_cv_header_sys_kern_control_h" "$ac_includes_default"
10868 if test "x$ac_cv_header_sys_kern_control_h" = xyes
10870 printf "%s\n" "#define HAVE_SYS_KERN_CONTROL_H 1" >>confdefs.h
10873 ac_fn_c_check_header_compile
"$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default"
10874 if test "x$ac_cv_header_sys_loadavg_h" = xyes
10876 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h
10879 ac_fn_c_check_header_compile
"$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default"
10880 if test "x$ac_cv_header_sys_lock_h" = xyes
10882 printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h
10885 ac_fn_c_check_header_compile
"$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default"
10886 if test "x$ac_cv_header_sys_memfd_h" = xyes
10888 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h
10891 ac_fn_c_check_header_compile
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
10892 if test "x$ac_cv_header_sys_mkdev_h" = xyes
10894 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
10897 ac_fn_c_check_header_compile
"$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
10898 if test "x$ac_cv_header_sys_mman_h" = xyes
10900 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
10903 ac_fn_c_check_header_compile
"$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
10904 if test "x$ac_cv_header_sys_modem_h" = xyes
10906 printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
10909 ac_fn_c_check_header_compile
"$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
10910 if test "x$ac_cv_header_sys_param_h" = xyes
10912 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
10915 ac_fn_c_check_header_compile
"$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
10916 if test "x$ac_cv_header_sys_poll_h" = xyes
10918 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
10921 ac_fn_c_check_header_compile
"$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
10922 if test "x$ac_cv_header_sys_random_h" = xyes
10924 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
10927 ac_fn_c_check_header_compile
"$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
10928 if test "x$ac_cv_header_sys_resource_h" = xyes
10930 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
10933 ac_fn_c_check_header_compile
"$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
10934 if test "x$ac_cv_header_sys_select_h" = xyes
10936 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
10939 ac_fn_c_check_header_compile
"$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default"
10940 if test "x$ac_cv_header_sys_sendfile_h" = xyes
10942 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h
10945 ac_fn_c_check_header_compile
"$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
10946 if test "x$ac_cv_header_sys_socket_h" = xyes
10948 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
10951 ac_fn_c_check_header_compile
"$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10952 if test "x$ac_cv_header_sys_soundcard_h" = xyes
10954 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h
10957 ac_fn_c_check_header_compile
"$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
10958 if test "x$ac_cv_header_sys_stat_h" = xyes
10960 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
10963 ac_fn_c_check_header_compile
"$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
10964 if test "x$ac_cv_header_sys_statvfs_h" = xyes
10966 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
10969 ac_fn_c_check_header_compile
"$LINENO" "sys/sys_domain.h" "ac_cv_header_sys_sys_domain_h" "$ac_includes_default"
10970 if test "x$ac_cv_header_sys_sys_domain_h" = xyes
10972 printf "%s\n" "#define HAVE_SYS_SYS_DOMAIN_H 1" >>confdefs.h
10975 ac_fn_c_check_header_compile
"$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
10976 if test "x$ac_cv_header_sys_syscall_h" = xyes
10978 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
10981 ac_fn_c_check_header_compile
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
10982 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
10984 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
10987 ac_fn_c_check_header_compile
"$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default"
10988 if test "x$ac_cv_header_sys_termio_h" = xyes
10990 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h
10993 ac_fn_c_check_header_compile
"$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
10994 if test "x$ac_cv_header_sys_time_h" = xyes
10996 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
10999 ac_fn_c_check_header_compile
"$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default"
11000 if test "x$ac_cv_header_sys_times_h" = xyes
11002 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h
11005 ac_fn_c_check_header_compile
"$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
11006 if test "x$ac_cv_header_sys_timerfd_h" = xyes
11008 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
11011 ac_fn_c_check_header_compile
"$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
11012 if test "x$ac_cv_header_sys_types_h" = xyes
11014 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
11017 ac_fn_c_check_header_compile
"$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
11018 if test "x$ac_cv_header_sys_uio_h" = xyes
11020 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
11023 ac_fn_c_check_header_compile
"$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
11024 if test "x$ac_cv_header_sys_un_h" = xyes
11026 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
11029 ac_fn_c_check_header_compile
"$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
11030 if test "x$ac_cv_header_sys_utsname_h" = xyes
11032 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
11035 ac_fn_c_check_header_compile
"$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
11036 if test "x$ac_cv_header_sys_wait_h" = xyes
11038 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11041 ac_fn_c_check_header_compile
"$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
11042 if test "x$ac_cv_header_sys_xattr_h" = xyes
11044 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
11047 ac_fn_c_check_header_compile
"$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
11048 if test "x$ac_cv_header_sysexits_h" = xyes
11050 printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h
11053 ac_fn_c_check_header_compile
"$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default"
11054 if test "x$ac_cv_header_syslog_h" = xyes
11056 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h
11059 ac_fn_c_check_header_compile
"$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11060 if test "x$ac_cv_header_termios_h" = xyes
11062 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11065 ac_fn_c_check_header_compile
"$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default"
11066 if test "x$ac_cv_header_util_h" = xyes
11068 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h
11071 ac_fn_c_check_header_compile
"$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11072 if test "x$ac_cv_header_utime_h" = xyes
11074 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11077 ac_fn_c_check_header_compile
"$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
11078 if test "x$ac_cv_header_utmp_h" = xyes
11080 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h
11084 ac_header_dirent
=no
11085 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11086 as_ac_Header
=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11088 printf %s
"checking for $ac_hdr that defines DIR... " >&6; }
11089 if eval test \
${$as_ac_Header+y}
11091 printf %s
"(cached) " >&6
11093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11094 /* end confdefs.h. */
11095 #include <sys/types.h>
11107 if ac_fn_c_try_compile
"$LINENO"
11109 eval "$as_ac_Header=yes"
11111 eval "$as_ac_Header=no"
11113 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11115 eval ac_res
=\$
$as_ac_Header
11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11117 printf "%s\n" "$ac_res" >&6; }
11118 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"
11120 cat >>confdefs.h
<<_ACEOF
11121 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
11124 ac_header_dirent
=$ac_hdr; break
11128 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11129 if test $ac_header_dirent = dirent.h
; then
11130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11131 printf %s
"checking for library containing opendir... " >&6; }
11132 if test ${ac_cv_search_opendir+y}
11134 printf %s
"(cached) " >&6
11136 ac_func_search_save_LIBS
=$LIBS
11137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11138 /* end confdefs.h. */
11140 /* Override any GCC internal prototype to avoid an error.
11141 Use char because int might match the return type of a GCC
11142 builtin and then its argument prototype would still apply. */
11152 for ac_lib
in '' dir
11154 if test -z "$ac_lib"; then
11155 ac_res
="none required"
11158 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11160 if ac_fn_c_try_link
"$LINENO"
11162 ac_cv_search_opendir
=$ac_res
11164 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
11166 if test ${ac_cv_search_opendir+y}
11171 if test ${ac_cv_search_opendir+y}
11175 ac_cv_search_opendir
=no
11177 rm conftest.
$ac_ext
11178 LIBS
=$ac_func_search_save_LIBS
11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11181 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11182 ac_res
=$ac_cv_search_opendir
11183 if test "$ac_res" != no
11185 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11191 printf %s
"checking for library containing opendir... " >&6; }
11192 if test ${ac_cv_search_opendir+y}
11194 printf %s
"(cached) " >&6
11196 ac_func_search_save_LIBS
=$LIBS
11197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11214 if test -z "$ac_lib"; then
11215 ac_res
="none required"
11218 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11220 if ac_fn_c_try_link
"$LINENO"
11222 ac_cv_search_opendir
=$ac_res
11224 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
11226 if test ${ac_cv_search_opendir+y}
11231 if test ${ac_cv_search_opendir+y}
11235 ac_cv_search_opendir
=no
11237 rm conftest.
$ac_ext
11238 LIBS
=$ac_func_search_save_LIBS
11240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11241 printf "%s\n" "$ac_cv_search_opendir" >&6; }
11242 ac_res
=$ac_cv_search_opendir
11243 if test "$ac_res" != no
11245 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11252 ac_fn_c_check_header_compile
"$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
11253 if test "x$ac_cv_header_sys_mkdev_h" = xyes
11256 printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
11260 if test $ac_cv_header_sys_mkdev_h = no
; then
11261 ac_fn_c_check_header_compile
"$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
11262 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
11265 printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
11272 # bluetooth/bluetooth.h has been known to not compile with -std=c99.
11273 # http://permalink.gmane.org/gmane.linux.bluez.kernel/22294
11274 SAVE_CFLAGS
=$CFLAGS
11275 CFLAGS
="-std=c99 $CFLAGS"
11276 ac_fn_c_check_header_compile
"$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default"
11277 if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes
11279 printf "%s\n" "#define HAVE_BLUETOOTH_BLUETOOTH_H 1" >>confdefs.h
11283 CFLAGS
=$SAVE_CFLAGS
11285 # On Darwin (OS X) net/if.h requires sys/socket.h to be imported first.
11286 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h>
11287 #include <stdlib.h>
11288 #include <stddef.h>
11289 #ifdef HAVE_SYS_SOCKET_H
11290 # include <sys/socket.h>
11294 if test "x$ac_cv_header_net_if_h" = xyes
11296 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
11301 # On Linux, netlink.h requires asm/types.h
11302 # On FreeBSD, netlink.h is located in netlink/netlink.h
11303 ac_fn_c_check_header_compile
"$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
11304 #ifdef HAVE_ASM_TYPES_H
11305 #include <asm/types.h>
11307 #ifdef HAVE_SYS_SOCKET_H
11308 #include <sys/socket.h>
11312 if test "x$ac_cv_header_linux_netlink_h" = xyes
11314 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h
11317 ac_fn_c_check_header_compile
"$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" "
11318 #ifdef HAVE_ASM_TYPES_H
11319 #include <asm/types.h>
11321 #ifdef HAVE_SYS_SOCKET_H
11322 #include <sys/socket.h>
11326 if test "x$ac_cv_header_netlink_netlink_h" = xyes
11328 printf "%s\n" "#define HAVE_NETLINK_NETLINK_H 1" >>confdefs.h
11333 # On Linux, qrtr.h requires asm/types.h
11334 ac_fn_c_check_header_compile
"$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" "
11335 #ifdef HAVE_ASM_TYPES_H
11336 #include <asm/types.h>
11338 #ifdef HAVE_SYS_SOCKET_H
11339 #include <sys/socket.h>
11343 if test "x$ac_cv_header_linux_qrtr_h" = xyes
11345 printf "%s\n" "#define HAVE_LINUX_QRTR_H 1" >>confdefs.h
11350 ac_fn_c_check_header_compile
"$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" "
11351 #ifdef HAVE_SYS_SOCKET_H
11352 #include <sys/socket.h>
11356 if test "x$ac_cv_header_linux_vm_sockets_h" = xyes
11358 printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h
11363 # On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h
11364 # On NetBSD, netcan/can.h requires sys/socket.h
11365 ac_fn_c_check_header_compile
"$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" "
11366 #ifdef HAVE_SYS_SOCKET_H
11367 #include <sys/socket.h>
11371 if test "x$ac_cv_header_linux_can_h" = xyes
11373 printf "%s\n" "#define HAVE_LINUX_CAN_H 1" >>confdefs.h
11376 ac_fn_c_check_header_compile
"$LINENO" "linux/can/bcm.h" "ac_cv_header_linux_can_bcm_h" "
11377 #ifdef HAVE_SYS_SOCKET_H
11378 #include <sys/socket.h>
11382 if test "x$ac_cv_header_linux_can_bcm_h" = xyes
11384 printf "%s\n" "#define HAVE_LINUX_CAN_BCM_H 1" >>confdefs.h
11387 ac_fn_c_check_header_compile
"$LINENO" "linux/can/j1939.h" "ac_cv_header_linux_can_j1939_h" "
11388 #ifdef HAVE_SYS_SOCKET_H
11389 #include <sys/socket.h>
11393 if test "x$ac_cv_header_linux_can_j1939_h" = xyes
11395 printf "%s\n" "#define HAVE_LINUX_CAN_J1939_H 1" >>confdefs.h
11398 ac_fn_c_check_header_compile
"$LINENO" "linux/can/raw.h" "ac_cv_header_linux_can_raw_h" "
11399 #ifdef HAVE_SYS_SOCKET_H
11400 #include <sys/socket.h>
11404 if test "x$ac_cv_header_linux_can_raw_h" = xyes
11406 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_H 1" >>confdefs.h
11409 ac_fn_c_check_header_compile
"$LINENO" "netcan/can.h" "ac_cv_header_netcan_can_h" "
11410 #ifdef HAVE_SYS_SOCKET_H
11411 #include <sys/socket.h>
11415 if test "x$ac_cv_header_netcan_can_h" = xyes
11417 printf "%s\n" "#define HAVE_NETCAN_CAN_H 1" >>confdefs.h
11422 # Check for clock_t in time.h.
11423 ac_fn_c_check_type
"$LINENO" "clock_t" "ac_cv_type_clock_t" "#include <time.h>
11425 if test "x$ac_cv_type_clock_t" = xyes
11428 printf "%s\n" "#define HAVE_CLOCK_T 1" >>confdefs.h
11433 printf "%s\n" "#define clock_t long" >>confdefs.h
11438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5
11439 printf %s
"checking for makedev... " >&6; }
11440 if test ${ac_cv_func_makedev+y}
11442 printf %s
"(cached) " >&6
11445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11448 #if defined(MAJOR_IN_MKDEV)
11449 #include <sys/mkdev.h>
11450 #elif defined(MAJOR_IN_SYSMACROS)
11451 #include <sys/sysmacros.h>
11453 #include <sys/types.h>
11466 if ac_fn_c_try_link
"$LINENO"
11468 ac_cv_func_makedev
=yes
11470 ac_cv_func_makedev
=no
11472 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
11473 conftest
$ac_exeext conftest.
$ac_ext
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_makedev" >&5
11477 printf "%s\n" "$ac_cv_func_makedev" >&6; }
11479 if test "x$ac_cv_func_makedev" = xyes
11483 printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h
11489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5
11490 printf %s
"checking for le64toh... " >&6; }
11491 if test ${ac_cv_func_le64toh+y}
11493 printf %s
"(cached) " >&6
11496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11497 /* end confdefs.h. */
11499 #ifdef HAVE_ENDIAN_H
11500 #include <endian.h>
11501 #elif defined(HAVE_SYS_ENDIAN_H)
11502 #include <sys/endian.h>
11515 if ac_fn_c_try_link
"$LINENO"
11517 ac_cv_func_le64toh
=yes
11519 ac_cv_func_le64toh
=no
11521 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
11522 conftest
$ac_exeext conftest.
$ac_ext
11525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_le64toh" >&5
11526 printf "%s\n" "$ac_cv_func_le64toh" >&6; }
11528 if test "x$ac_cv_func_le64toh" = xyes
11532 printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h
11538 # Don't use largefile support for GNU/Hurd
11539 case $ac_sys_system in GNU
*)
11543 if test "$use_lfs" = "yes"; then
11544 # Two defines needed to enable largefile support on various platforms
11545 # These may affect some typedefs
11546 case $ac_sys_system/$ac_sys_release in
11549 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
11554 printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h
11557 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
11561 # Add some code to confdefs.h so that the test for off_t works on SCO
11562 cat >> confdefs.h
<<\EOF
11563 #if defined(SCO_DS)
11568 # Type availability checks
11569 ac_fn_c_check_type
"$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
11570 if test "x$ac_cv_type_mode_t" = xyes
11575 printf "%s\n" "#define mode_t int" >>confdefs.h
11579 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
11580 if test "x$ac_cv_type_off_t" = xyes
11585 printf "%s\n" "#define off_t long int" >>confdefs.h
11590 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
11592 if test "x$ac_cv_type_pid_t" = xyes
11596 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11597 /* end confdefs.h. */
11599 #if defined _WIN64 && !defined __CYGWIN__
11612 if ac_fn_c_try_compile
"$LINENO"
11616 ac_pid_type
='__int64'
11618 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11620 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
11627 printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h
11629 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11630 if test "x$ac_cv_type_size_t" = xyes
11635 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
11639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
11640 printf %s
"checking for uid_t in sys/types.h... " >&6; }
11641 if test ${ac_cv_type_uid_t+y}
11643 printf %s
"(cached) " >&6
11645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11647 #include <sys/types.h>
11650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11651 $EGREP "uid_t" >/dev
/null
2>&1
11653 ac_cv_type_uid_t
=yes
11655 ac_cv_type_uid_t
=no
11660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
11661 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
11662 if test $ac_cv_type_uid_t = no
; then
11664 printf "%s\n" "#define uid_t int" >>confdefs.h
11667 printf "%s\n" "#define gid_t int" >>confdefs.h
11672 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
11673 if test "x$ac_cv_type_ssize_t" = xyes
11676 printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h
11681 ac_fn_c_check_type
"$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default"
11682 if test "x$ac_cv_type___uint128_t" = xyes
11685 printf "%s\n" "#define HAVE___UINT128_T 1" >>confdefs.h
11688 printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h
11693 # Sizes and alignments of various common basic types
11694 # ANSI C requires sizeof(char) == 1, so no need to check it
11695 # The cast to long int works around a bug in the HP C Compiler
11696 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11697 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11698 # This bug is HP SR number 8606223364.
11699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
11700 printf %s
"checking size of int... " >&6; }
11701 if test ${ac_cv_sizeof_int+y}
11703 printf %s
"(cached) " >&6
11705 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
11709 if test "$ac_cv_type_int" = yes; then
11710 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11711 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11712 as_fn_error
77 "cannot compute sizeof (int)
11713 See \`config.log' for more details" "$LINENO" 5; }
11720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
11721 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
11725 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
11728 # The cast to long int works around a bug in the HP C Compiler
11729 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11730 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11731 # This bug is HP SR number 8606223364.
11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11733 printf %s
"checking size of long... " >&6; }
11734 if test ${ac_cv_sizeof_long+y}
11736 printf %s
"(cached) " >&6
11738 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
11742 if test "$ac_cv_type_long" = yes; then
11743 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11744 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11745 as_fn_error
77 "cannot compute sizeof (long)
11746 See \`config.log' for more details" "$LINENO" 5; }
11748 ac_cv_sizeof_long
=0
11753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11754 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
11758 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
11761 # The cast to long int works around a bug in the HP C Compiler,
11762 # see AC_CHECK_SIZEOF for more information.
11763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5
11764 printf %s
"checking alignment of long... " >&6; }
11765 if test ${ac_cv_alignof_long+y}
11767 printf %s
"(cached) " >&6
11769 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default
11770 typedef struct { char x; long y; } ac__type_alignof_;"
11774 if test "$ac_cv_type_long" = yes; then
11775 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11776 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11777 as_fn_error
77 "cannot compute alignment of long
11778 See \`config.log' for more details" "$LINENO" 5; }
11780 ac_cv_alignof_long
=0
11785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5
11786 printf "%s\n" "$ac_cv_alignof_long" >&6; }
11790 printf "%s\n" "#define ALIGNOF_LONG $ac_cv_alignof_long" >>confdefs.h
11793 # The cast to long int works around a bug in the HP C Compiler
11794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11796 # This bug is HP SR number 8606223364.
11797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
11798 printf %s
"checking size of long long... " >&6; }
11799 if test ${ac_cv_sizeof_long_long+y}
11801 printf %s
"(cached) " >&6
11803 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
11807 if test "$ac_cv_type_long_long" = yes; then
11808 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11809 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11810 as_fn_error
77 "cannot compute sizeof (long long)
11811 See \`config.log' for more details" "$LINENO" 5; }
11813 ac_cv_sizeof_long_long
=0
11818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
11819 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
11823 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
11826 # The cast to long int works around a bug in the HP C Compiler
11827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11829 # This bug is HP SR number 8606223364.
11830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
11831 printf %s
"checking size of void *... " >&6; }
11832 if test ${ac_cv_sizeof_void_p+y}
11834 printf %s
"(cached) " >&6
11836 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"
11840 if test "$ac_cv_type_void_p" = yes; then
11841 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11842 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11843 as_fn_error
77 "cannot compute sizeof (void *)
11844 See \`config.log' for more details" "$LINENO" 5; }
11846 ac_cv_sizeof_void_p
=0
11851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
11852 printf "%s\n" "$ac_cv_sizeof_void_p" >&6; }
11856 printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h
11859 # The cast to long int works around a bug in the HP C Compiler
11860 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11861 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11862 # This bug is HP SR number 8606223364.
11863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
11864 printf %s
"checking size of short... " >&6; }
11865 if test ${ac_cv_sizeof_short+y}
11867 printf %s
"(cached) " >&6
11869 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
11873 if test "$ac_cv_type_short" = yes; then
11874 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11875 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11876 as_fn_error
77 "cannot compute sizeof (short)
11877 See \`config.log' for more details" "$LINENO" 5; }
11879 ac_cv_sizeof_short
=0
11884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
11885 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
11889 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
11892 # The cast to long int works around a bug in the HP C Compiler
11893 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11894 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11895 # This bug is HP SR number 8606223364.
11896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
11897 printf %s
"checking size of float... " >&6; }
11898 if test ${ac_cv_sizeof_float+y}
11900 printf %s
"(cached) " >&6
11902 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"
11906 if test "$ac_cv_type_float" = yes; then
11907 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11908 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11909 as_fn_error
77 "cannot compute sizeof (float)
11910 See \`config.log' for more details" "$LINENO" 5; }
11912 ac_cv_sizeof_float
=0
11917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
11918 printf "%s\n" "$ac_cv_sizeof_float" >&6; }
11922 printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h
11925 # The cast to long int works around a bug in the HP C Compiler
11926 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11927 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11928 # This bug is HP SR number 8606223364.
11929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
11930 printf %s
"checking size of double... " >&6; }
11931 if test ${ac_cv_sizeof_double+y}
11933 printf %s
"(cached) " >&6
11935 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"
11939 if test "$ac_cv_type_double" = yes; then
11940 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11941 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11942 as_fn_error
77 "cannot compute sizeof (double)
11943 See \`config.log' for more details" "$LINENO" 5; }
11945 ac_cv_sizeof_double
=0
11950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
11951 printf "%s\n" "$ac_cv_sizeof_double" >&6; }
11955 printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h
11958 # The cast to long int works around a bug in the HP C Compiler
11959 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11960 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11961 # This bug is HP SR number 8606223364.
11962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5
11963 printf %s
"checking size of fpos_t... " >&6; }
11964 if test ${ac_cv_sizeof_fpos_t+y}
11966 printf %s
"(cached) " >&6
11968 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"
11972 if test "$ac_cv_type_fpos_t" = yes; then
11973 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11974 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
11975 as_fn_error
77 "cannot compute sizeof (fpos_t)
11976 See \`config.log' for more details" "$LINENO" 5; }
11978 ac_cv_sizeof_fpos_t
=0
11983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5
11984 printf "%s\n" "$ac_cv_sizeof_fpos_t" >&6; }
11988 printf "%s\n" "#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t" >>confdefs.h
11991 # The cast to long int works around a bug in the HP C Compiler
11992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11994 # This bug is HP SR number 8606223364.
11995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
11996 printf %s
"checking size of size_t... " >&6; }
11997 if test ${ac_cv_sizeof_size_t+y}
11999 printf %s
"(cached) " >&6
12001 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"
12005 if test "$ac_cv_type_size_t" = yes; then
12006 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12007 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12008 as_fn_error
77 "cannot compute sizeof (size_t)
12009 See \`config.log' for more details" "$LINENO" 5; }
12011 ac_cv_sizeof_size_t
=0
12016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
12017 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
12021 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
12024 # The cast to long int works around a bug in the HP C Compiler,
12025 # see AC_CHECK_SIZEOF for more information.
12026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5
12027 printf %s
"checking alignment of size_t... " >&6; }
12028 if test ${ac_cv_alignof_size_t+y}
12030 printf %s
"(cached) " >&6
12032 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default
12033 typedef struct { char x; size_t y; } ac__type_alignof_;"
12037 if test "$ac_cv_type_size_t" = yes; then
12038 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12039 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12040 as_fn_error
77 "cannot compute alignment of size_t
12041 See \`config.log' for more details" "$LINENO" 5; }
12043 ac_cv_alignof_size_t
=0
12048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5
12049 printf "%s\n" "$ac_cv_alignof_size_t" >&6; }
12053 printf "%s\n" "#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t" >>confdefs.h
12056 # The cast to long int works around a bug in the HP C Compiler
12057 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12058 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12059 # This bug is HP SR number 8606223364.
12060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5
12061 printf %s
"checking size of pid_t... " >&6; }
12062 if test ${ac_cv_sizeof_pid_t+y}
12064 printf %s
"(cached) " >&6
12066 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"
12070 if test "$ac_cv_type_pid_t" = yes; then
12071 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12072 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12073 as_fn_error
77 "cannot compute sizeof (pid_t)
12074 See \`config.log' for more details" "$LINENO" 5; }
12076 ac_cv_sizeof_pid_t
=0
12081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5
12082 printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; }
12086 printf "%s\n" "#define SIZEOF_PID_T $ac_cv_sizeof_pid_t" >>confdefs.h
12089 # The cast to long int works around a bug in the HP C Compiler
12090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12092 # This bug is HP SR number 8606223364.
12093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5
12094 printf %s
"checking size of uintptr_t... " >&6; }
12095 if test ${ac_cv_sizeof_uintptr_t+y}
12097 printf %s
"(cached) " >&6
12099 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"
12103 if test "$ac_cv_type_uintptr_t" = yes; then
12104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12105 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12106 as_fn_error
77 "cannot compute sizeof (uintptr_t)
12107 See \`config.log' for more details" "$LINENO" 5; }
12109 ac_cv_sizeof_uintptr_t
=0
12114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5
12115 printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; }
12119 printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h
12122 # The cast to long int works around a bug in the HP C Compiler,
12123 # see AC_CHECK_SIZEOF for more information.
12124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of max_align_t" >&5
12125 printf %s
"checking alignment of max_align_t... " >&6; }
12126 if test ${ac_cv_alignof_max_align_t+y}
12128 printf %s
"(cached) " >&6
12130 if ac_fn_c_compute_int
"$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_max_align_t" "$ac_includes_default
12131 typedef struct { char x; max_align_t y; } ac__type_alignof_;"
12135 if test "$ac_cv_type_max_align_t" = yes; then
12136 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12137 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12138 as_fn_error
77 "cannot compute alignment of max_align_t
12139 See \`config.log' for more details" "$LINENO" 5; }
12141 ac_cv_alignof_max_align_t
=0
12146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_max_align_t" >&5
12147 printf "%s\n" "$ac_cv_alignof_max_align_t" >&6; }
12151 printf "%s\n" "#define ALIGNOF_MAX_ALIGN_T $ac_cv_alignof_max_align_t" >>confdefs.h
12156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
12157 printf %s
"checking for long double... " >&6; }
12158 if test ${ac_cv_type_long_double+y}
12160 printf %s
"(cached) " >&6
12162 if test "$GCC" = yes; then
12163 ac_cv_type_long_double
=yes
12165 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12166 /* end confdefs.h. */
12167 /* The Stardent Vistra knows sizeof (long double), but does
12169 long double foo = 0.0L;
12173 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
12174 sizeof (double) <= sizeof (long double))];
12175 test_array [0] = 0;
12176 return test_array [0];
12182 if ac_fn_c_try_compile
"$LINENO"
12184 ac_cv_type_long_double
=yes
12186 ac_cv_type_long_double
=no
12188 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
12192 printf "%s\n" "$ac_cv_type_long_double" >&6; }
12193 if test $ac_cv_type_long_double = yes; then
12195 printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
12199 # The cast to long int works around a bug in the HP C Compiler
12200 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12201 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12202 # This bug is HP SR number 8606223364.
12203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
12204 printf %s
"checking size of long double... " >&6; }
12205 if test ${ac_cv_sizeof_long_double+y}
12207 printf %s
"(cached) " >&6
12209 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"
12213 if test "$ac_cv_type_long_double" = yes; then
12214 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12215 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12216 as_fn_error
77 "cannot compute sizeof (long double)
12217 See \`config.log' for more details" "$LINENO" 5; }
12219 ac_cv_sizeof_long_double
=0
12224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
12225 printf "%s\n" "$ac_cv_sizeof_long_double" >&6; }
12229 printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h
12233 # The cast to long int works around a bug in the HP C Compiler
12234 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12235 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12236 # This bug is HP SR number 8606223364.
12237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5
12238 printf %s
"checking size of _Bool... " >&6; }
12239 if test ${ac_cv_sizeof__Bool+y}
12241 printf %s
"(cached) " >&6
12243 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"
12247 if test "$ac_cv_type__Bool" = yes; then
12248 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12249 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12250 as_fn_error
77 "cannot compute sizeof (_Bool)
12251 See \`config.log' for more details" "$LINENO" 5; }
12253 ac_cv_sizeof__Bool
=0
12258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5
12259 printf "%s\n" "$ac_cv_sizeof__Bool" >&6; }
12263 printf "%s\n" "#define SIZEOF__BOOL $ac_cv_sizeof__Bool" >>confdefs.h
12267 # The cast to long int works around a bug in the HP C Compiler
12268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12270 # This bug is HP SR number 8606223364.
12271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12272 printf %s
"checking size of off_t... " >&6; }
12273 if test ${ac_cv_sizeof_off_t+y}
12275 printf %s
"(cached) " >&6
12277 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "
12278 #ifdef HAVE_SYS_TYPES_H
12279 #include <sys/types.h>
12286 if test "$ac_cv_type_off_t" = yes; then
12287 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12288 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12289 as_fn_error
77 "cannot compute sizeof (off_t)
12290 See \`config.log' for more details" "$LINENO" 5; }
12292 ac_cv_sizeof_off_t
=0
12297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12298 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
12302 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
12306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5
12307 printf %s
"checking whether to enable large file support... " >&6; }
12308 if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \
12309 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then
12310 have_largefile_support
="yes"
12312 have_largefile_support
="no"
12314 case $ac_sys_system in #(
12316 have_largefile_support
="no"
12321 if test "x$have_largefile_support" = xyes
12325 printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h
12327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12328 printf "%s\n" "yes" >&6; }
12332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12333 printf "%s\n" "no" >&6; }
12337 # The cast to long int works around a bug in the HP C Compiler
12338 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12339 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12340 # This bug is HP SR number 8606223364.
12341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12342 printf %s
"checking size of time_t... " >&6; }
12343 if test ${ac_cv_sizeof_time_t+y}
12345 printf %s
"(cached) " >&6
12347 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "
12348 #ifdef HAVE_SYS_TYPES_H
12349 #include <sys/types.h>
12359 if test "$ac_cv_type_time_t" = yes; then
12360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12361 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12362 as_fn_error
77 "cannot compute sizeof (time_t)
12363 See \`config.log' for more details" "$LINENO" 5; }
12365 ac_cv_sizeof_time_t
=0
12370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12371 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
12375 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
12379 # if have pthread_t then define SIZEOF_PTHREAD_T
12381 if test "$ac_cv_kpthread" = "yes"
12382 then CC
="$CC -Kpthread"
12383 elif test "$ac_cv_kthread" = "yes"
12384 then CC
="$CC -Kthread"
12385 elif test "$ac_cv_pthread" = "yes"
12386 then CC
="$CC -pthread"
12389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5
12390 printf %s
"checking for pthread_t... " >&6; }
12391 if test ${ac_cv_have_pthread_t+y}
12393 printf %s
"(cached) " >&6
12396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12397 /* end confdefs.h. */
12399 #include <pthread.h>
12403 pthread_t x; x = *(pthread_t*)0;
12409 if ac_fn_c_try_compile
"$LINENO"
12411 ac_cv_have_pthread_t
=yes
12413 ac_cv_have_pthread_t
=no
12415 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pthread_t" >&5
12419 printf "%s\n" "$ac_cv_have_pthread_t" >&6; }
12420 if test "x$ac_cv_have_pthread_t" = xyes
12423 # The cast to long int works around a bug in the HP C Compiler
12424 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12425 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12426 # This bug is HP SR number 8606223364.
12427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5
12428 printf %s
"checking size of pthread_t... " >&6; }
12429 if test ${ac_cv_sizeof_pthread_t+y}
12431 printf %s
"(cached) " >&6
12433 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" "
12434 #ifdef HAVE_PTHREAD_H
12435 #include <pthread.h>
12442 if test "$ac_cv_type_pthread_t" = yes; then
12443 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12444 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12445 as_fn_error
77 "cannot compute sizeof (pthread_t)
12446 See \`config.log' for more details" "$LINENO" 5; }
12448 ac_cv_sizeof_pthread_t
=0
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5
12454 printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; }
12458 printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h
12464 # Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int.
12465 # This checking will be unnecessary after removing deprecated TLS API.
12466 # The cast to long int works around a bug in the HP C Compiler
12467 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12468 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12469 # This bug is HP SR number 8606223364.
12470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5
12471 printf %s
"checking size of pthread_key_t... " >&6; }
12472 if test ${ac_cv_sizeof_pthread_key_t+y}
12474 printf %s
"(cached) " >&6
12476 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h>
12481 if test "$ac_cv_type_pthread_key_t" = yes; then
12482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12483 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12484 as_fn_error
77 "cannot compute sizeof (pthread_key_t)
12485 See \`config.log' for more details" "$LINENO" 5; }
12487 ac_cv_sizeof_pthread_key_t
=0
12492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5
12493 printf "%s\n" "$ac_cv_sizeof_pthread_key_t" >&6; }
12497 printf "%s\n" "#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t" >>confdefs.h
12500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5
12501 printf %s
"checking whether pthread_key_t is compatible with int... " >&6; }
12502 if test ${ac_cv_pthread_key_t_is_arithmetic_type+y}
12504 printf %s
"(cached) " >&6
12507 if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then
12508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12509 /* end confdefs.h. */
12510 #include <pthread.h>
12514 pthread_key_t k; k * 1;
12519 if ac_fn_c_try_compile
"$LINENO"
12521 ac_cv_pthread_key_t_is_arithmetic_type
=yes
12523 ac_cv_pthread_key_t_is_arithmetic_type
=no
12526 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12528 ac_cv_pthread_key_t_is_arithmetic_type
=no
12532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_key_t_is_arithmetic_type" >&5
12533 printf "%s\n" "$ac_cv_pthread_key_t_is_arithmetic_type" >&6; }
12534 if test "x$ac_cv_pthread_key_t_is_arithmetic_type" = xyes
12538 printf "%s\n" "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h
12545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5
12546 printf %s
"checking for --enable-framework... " >&6; }
12547 if test "$enable_framework"
12549 BASECFLAGS
="$BASECFLAGS -fno-common -dynamic"
12550 # -F. is needed to allow linking to the framework while
12551 # in the build location.
12553 printf "%s\n" "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h
12555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12556 printf "%s\n" "yes" >&6; }
12557 if test $enable_shared = "yes"
12559 as_fn_error $?
"Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5
12562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12563 printf "%s\n" "no" >&6; }
12566 # Check for --with-dsymutil
12571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dsymutil" >&5
12572 printf %s
"checking for --with-dsymutil... " >&6; }
12574 # Check whether --with-dsymutil was given.
12575 if test ${with_dsymutil+y}
12577 withval
=$with_dsymutil;
12578 if test "$withval" != no
12580 if test "$MACHDEP" != "darwin"; then
12581 as_fn_error $?
"dsymutil debug linking is only available in macOS." "$LINENO" 5
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584 printf "%s\n" "yes" >&6; };
12586 else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 printf "%s\n" "no" >&6; }; DSYMUTIL
=
12590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12591 printf "%s\n" "no" >&6; }
12595 if test "$DSYMUTIL"; then
12596 # Extract the first word of "dsymutil", so it can be a program name with args.
12597 set dummy dsymutil
; ac_word
=$2
12598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12599 printf %s
"checking for $ac_word... " >&6; }
12600 if test ${ac_cv_path_DSYMUTIL_PATH+y}
12602 printf %s
"(cached) " >&6
12604 case $DSYMUTIL_PATH in
12606 ac_cv_path_DSYMUTIL_PATH
="$DSYMUTIL_PATH" # Let the user override the test with a path.
12609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12610 for as_dir
in $PATH
12613 case $as_dir in #(((
12616 *) as_dir
=$as_dir/ ;;
12618 for ac_exec_ext
in '' $ac_executable_extensions; do
12619 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
12620 ac_cv_path_DSYMUTIL_PATH
="$as_dir$ac_word$ac_exec_ext"
12621 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12628 test -z "$ac_cv_path_DSYMUTIL_PATH" && ac_cv_path_DSYMUTIL_PATH
="not found"
12632 DSYMUTIL_PATH
=$ac_cv_path_DSYMUTIL_PATH
12633 if test -n "$DSYMUTIL_PATH"; then
12634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_PATH" >&5
12635 printf "%s\n" "$DSYMUTIL_PATH" >&6; }
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12638 printf "%s\n" "no" >&6; }
12642 if test "$DSYMUTIL_PATH" = "not found"; then
12643 as_fn_error $?
"dsymutil command not found on \$PATH" "$LINENO" 5
12647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5
12648 printf %s
"checking for dyld... " >&6; }
12649 case $ac_sys_system/$ac_sys_release in
12652 printf "%s\n" "#define WITH_DYLD 1" >>confdefs.h
12654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5
12655 printf "%s\n" "always on for Darwin" >&6; }
12658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659 printf "%s\n" "no" >&6; }
12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5
12664 printf %s
"checking for --with-address-sanitizer... " >&6; }
12666 # Check whether --with-address_sanitizer was given.
12667 if test ${with_address_sanitizer+y}
12669 withval
=$with_address_sanitizer;
12670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12671 printf "%s\n" "$withval" >&6; }
12672 BASECFLAGS
="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS"
12673 LDFLAGS
="-fsanitize=address $LDFLAGS"
12674 # ASan works by controlling memory allocation, our own malloc interferes.
12678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12679 printf "%s\n" "no" >&6; }
12683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5
12684 printf %s
"checking for --with-memory-sanitizer... " >&6; }
12686 # Check whether --with-memory_sanitizer was given.
12687 if test ${with_memory_sanitizer+y}
12689 withval
=$with_memory_sanitizer;
12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12691 printf "%s\n" "$withval" >&6; }
12692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory" >&5
12693 printf %s
"checking whether C compiler accepts -fsanitize=memory... " >&6; }
12694 if test ${ax_cv_check_cflags___fsanitize_memory+y}
12696 printf %s
"(cached) " >&6
12699 ax_check_save_flags
=$CFLAGS
12700 CFLAGS
="$CFLAGS -fsanitize=memory"
12701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12702 /* end confdefs.h. */
12712 if ac_fn_c_try_compile
"$LINENO"
12714 ax_cv_check_cflags___fsanitize_memory
=yes
12716 ax_cv_check_cflags___fsanitize_memory
=no
12718 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12719 CFLAGS
=$ax_check_save_flags
12721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory" >&5
12722 printf "%s\n" "$ax_cv_check_cflags___fsanitize_memory" >&6; }
12723 if test "x$ax_cv_check_cflags___fsanitize_memory" = xyes
12726 BASECFLAGS
="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS"
12727 LDFLAGS
="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS"
12730 as_fn_error $?
"The selected compiler doesn't support memory sanitizer" "$LINENO" 5
12733 # MSan works by controlling memory allocation, our own malloc interferes.
12737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12738 printf "%s\n" "no" >&6; }
12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5
12743 printf %s
"checking for --with-undefined-behavior-sanitizer... " >&6; }
12745 # Check whether --with-undefined_behavior_sanitizer was given.
12746 if test ${with_undefined_behavior_sanitizer+y}
12748 withval
=$with_undefined_behavior_sanitizer;
12749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12750 printf "%s\n" "$withval" >&6; }
12751 BASECFLAGS
="-fsanitize=undefined $BASECFLAGS"
12752 LDFLAGS
="-fsanitize=undefined $LDFLAGS"
12757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12758 printf "%s\n" "no" >&6; }
12764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-thread-sanitizer" >&5
12765 printf %s
"checking for --with-thread-sanitizer... " >&6; }
12767 # Check whether --with-thread_sanitizer was given.
12768 if test ${with_thread_sanitizer+y}
12770 withval
=$with_thread_sanitizer;
12771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
12772 printf "%s\n" "$withval" >&6; }
12773 BASECFLAGS
="-fsanitize=thread $BASECFLAGS"
12774 LDFLAGS
="-fsanitize=thread $LDFLAGS"
12779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12780 printf "%s\n" "no" >&6; }
12786 # Set info about shared libraries.
12794 # SHLIB_SUFFIX is the extension of shared libraries `(including the dot!)
12795 # -- usually .so, .sl on HP-UX, .dll on Cygwin
12796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5
12797 printf %s
"checking the extension of shared libraries... " >&6; }
12798 if test -z "$SHLIB_SUFFIX"; then
12799 case $ac_sys_system in
12802 ia64
) SHLIB_SUFFIX
=.so
;;
12803 *) SHLIB_SUFFIX
=.sl
;;
12806 CYGWIN
*) SHLIB_SUFFIX
=.dll
;;
12807 *) SHLIB_SUFFIX
=.so
;;
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5
12811 printf "%s\n" "$SHLIB_SUFFIX" >&6; }
12813 # LDSHARED is the ld *command* used to create shared library
12814 # -- "cc -G" on SunOS 5.x.
12815 # (Shared libraries in this instance are shared modules to be loaded into
12816 # Python, as opposed to building Python itself as a shared library.)
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5
12818 printf %s
"checking LDSHARED... " >&6; }
12819 if test -z "$LDSHARED"
12821 case $ac_sys_system/$ac_sys_release in
12823 BLDSHARED
="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp"
12824 LDSHARED
="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp"
12827 if test "$GCC" = "yes" ; then
12828 LDSHARED
='$(CC) -shared'
12829 LDCXXSHARED
='$(CXX) -shared'
12831 LDSHARED
='$(CC) -G'
12832 LDCXXSHARED
='$(CXX) -G'
12835 if test "$GCC" = "yes" ; then
12836 LDSHARED
='$(CC) -shared'
12837 LDCXXSHARED
='$(CXX) -shared'
12839 LDSHARED
='$(CC) -b'
12840 LDCXXSHARED
='$(CXX) -b'
12843 LDSHARED
='$(CC) -bundle'
12844 LDCXXSHARED
='$(CXX) -bundle'
12845 if test "$enable_framework" ; then
12846 # Link against the framework. All externals should be defined.
12847 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12848 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12849 LDCXXSHARED
="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12851 # No framework. Ignore undefined symbols, assuming they come from Python
12852 LDSHARED
="$LDSHARED -undefined suppress"
12853 LDCXXSHARED
="$LDCXXSHARED -undefined suppress"
12855 Darwin
/1.4*|Darwin
/5.
*|Darwin
/6.
*)
12856 LDSHARED
='$(CC) -bundle'
12857 LDCXXSHARED
='$(CXX) -bundle'
12858 if test "$enable_framework" ; then
12859 # Link against the framework. All externals should be defined.
12860 BLDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12861 LDSHARED
="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12862 LDCXXSHARED
="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
12864 # No framework, use the Python app as bundle-loader
12865 BLDSHARED
="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
12866 LDSHARED
="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12867 LDCXXSHARED
="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
12870 # Use -undefined dynamic_lookup whenever possible (10.3 and later).
12871 # This allows an extension to be used in any Python
12873 dep_target_major
=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
12874 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
12875 dep_target_minor
=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
12876 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
12877 if test ${dep_target_major} -eq 10 && \
12878 test ${dep_target_minor} -le 2
12880 # building for OS X 10.0 through 10.2
12881 as_fn_error $?
"MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5
12883 # building for OS X 10.3 and later
12884 LDSHARED
='$(CC) -bundle -undefined dynamic_lookup'
12885 LDCXXSHARED
='$(CXX) -bundle -undefined dynamic_lookup'
12886 BLDSHARED
="$LDSHARED"
12890 LDSHARED
='$(CC) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
12891 LDCXXSHARED
='$(CXX) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)'
12892 BLDSHARED
="$LDSHARED"
12895 LDSHARED
='$(CC) -shared'
12896 LDCXXSHARED
='$(CXX) -shared';;
12897 Linux
*|GNU
*|QNX
*|VxWorks
*|Haiku
*)
12898 LDSHARED
='$(CC) -shared'
12899 LDCXXSHARED
='$(CXX) -shared';;
12901 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12903 LDSHARED
='$(CC) -shared'
12904 LDCXXSHARED
='$(CXX) -shared'
12906 LDSHARED
="ld -Bshareable"
12909 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
12911 LDSHARED
='$(CC) -shared $(CCSHARED)'
12912 LDCXXSHARED
='$(CXX) -shared $(CCSHARED)'
12915 [01].
* |
2.
[0-7] |
2.
[0-7].
*)
12916 LDSHARED
="ld -Bshareable ${LDFLAGS}"
12919 LDSHARED
='$(CC) -shared $(CCSHARED)'
12920 LDCXXSHARED
='$(CXX) -shared $(CCSHARED)'
12924 NetBSD
*|DragonFly
*)
12925 LDSHARED
='$(CC) -shared'
12926 LDCXXSHARED
='$(CXX) -shared';;
12927 OpenUNIX
*|UnixWare
*)
12928 if test "$GCC" = "yes" ; then
12929 LDSHARED
='$(CC) -shared'
12930 LDCXXSHARED
='$(CXX) -shared'
12932 LDSHARED
='$(CC) -G'
12933 LDCXXSHARED
='$(CXX) -G'
12936 LDSHARED
='$(CC) -Wl,-G,-Bexport'
12937 LDCXXSHARED
='$(CXX) -Wl,-G,-Bexport';;
12939 if test "x$enable_wasm_dynamic_linking" = xyes
12945 LDSHARED
="gcc -shared -Wl,--enable-auto-image-base"
12946 LDCXXSHARED
="g++ -shared -Wl,--enable-auto-image-base";;
12951 if test "$enable_wasm_dynamic_linking" = "yes" -a "$ac_sys_system" = "Emscripten"; then
12952 BLDSHARED
='$(CC) -shared -sSIDE_MODULE=1'
12955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5
12956 printf "%s\n" "$LDSHARED" >&6; }
12957 LDCXXSHARED
=${LDCXXSHARED-$LDSHARED}
12959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BLDSHARED flags" >&5
12960 printf %s
"checking BLDSHARED flags... " >&6; }
12961 BLDSHARED
=${BLDSHARED-$LDSHARED}
12962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLDSHARED" >&5
12963 printf "%s\n" "$BLDSHARED" >&6; }
12965 # CCSHARED are the C *flags* used to create objects to go into a shared
12966 # library (module) -- this is only needed for a few systems
12967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5
12968 printf %s
"checking CCSHARED... " >&6; }
12969 if test -z "$CCSHARED"
12971 case $ac_sys_system/$ac_sys_release in
12972 SunOS
*) if test "$GCC" = yes;
12973 then CCSHARED
="-fPIC";
12974 elif test `uname -p` = sparc
;
12975 then CCSHARED
="-xcode=pic32";
12976 else CCSHARED
="-Kpic";
12978 hp
*|HP
*) if test "$GCC" = yes;
12979 then CCSHARED
="-fPIC";
12980 else CCSHARED
="+z";
12982 Linux
*|GNU
*) CCSHARED
="-fPIC";;
12984 if test "x$enable_wasm_dynamic_linking" = xyes
12990 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*) CCSHARED
="-fPIC";;
12991 Haiku
*) CCSHARED
="-fPIC";;
12992 OpenUNIX
*|UnixWare
*)
12993 if test "$GCC" = "yes"
12994 then CCSHARED
="-fPIC"
12995 else CCSHARED
="-KPIC"
12998 if test "$GCC" = "yes"
12999 then CCSHARED
="-fPIC"
13000 else CCSHARED
="-Kpic -belf"
13003 CCSHARED
="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic"
13006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5
13007 printf "%s\n" "$CCSHARED" >&6; }
13008 # LINKFORSHARED are the flags passed to the $(CC) command that links
13009 # the python executable -- this is only needed for a few systems
13010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5
13011 printf %s
"checking LINKFORSHARED... " >&6; }
13012 if test -z "$LINKFORSHARED"
13014 case $ac_sys_system/$ac_sys_release in
13015 AIX
*) LINKFORSHARED
='-Wl,-bE:Modules/python.exp -lld';;
13017 LINKFORSHARED
="-Wl,-E -Wl,+s";;
13018 # LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";;
13019 Linux-android
*) LINKFORSHARED
="-pie -Xlinker -export-dynamic";;
13020 Linux
*|GNU
*) LINKFORSHARED
="-Xlinker -export-dynamic";;
13021 # -u libsys_s pulls in all symbols in libsys
13023 LINKFORSHARED
="$extra_undefs -framework CoreFoundation"
13025 # Issue #18075: the default maximum stack size (8MBytes) is too
13026 # small for the default recursion limit. Increase the stack size
13027 # to ensure that tests don't crash
13028 stack_size
="1000000" # 16 MB
13029 if test "$with_ubsan" = "yes"
13031 # Undefined behavior sanitizer requires an even deeper stack
13032 stack_size
="4000000" # 64 MB
13036 printf "%s\n" "#define THREAD_STACK_SIZE 0x$stack_size" >>confdefs.h
13039 if test $ac_sys_system = "Darwin"; then
13040 LINKFORSHARED
="-Wl,-stack_size,$stack_size $LINKFORSHARED"
13042 if test "$enable_framework"; then
13043 LINKFORSHARED
="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)'
13045 LINKFORSHARED
="$LINKFORSHARED"
13046 elif test $ac_sys_system = "iOS"; then
13047 LINKFORSHARED
="-Wl,-stack_size,$stack_size $LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)'
13050 OpenUNIX
*|UnixWare
*) LINKFORSHARED
="-Wl,-Bexport";;
13051 SCO_SV
*) LINKFORSHARED
="-Wl,-Bexport";;
13052 ReliantUNIX
*) LINKFORSHARED
="-W1 -Blargedynsym";;
13053 FreeBSD
*|NetBSD
*|OpenBSD
*|DragonFly
*)
13054 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ]
13056 LINKFORSHARED
="-Wl,--export-dynamic"
13058 SunOS
/5*) case $CC in
13060 if $CC -Xlinker --help 2>&1 |
grep export-dynamic
>/dev
/null
13062 LINKFORSHARED
="-Xlinker --export-dynamic"
13066 if test $enable_shared = "no"
13068 LINKFORSHARED
='-Wl,--out-implib=$(LDLIBRARY)'
13071 # -Wl,-E causes the symbols to be added to the dynamic
13072 # symbol table so that they can be found when a module
13073 # is loaded. -N 2048K causes the stack size to be set
13074 # to 2048 kilobytes so that the stack doesn't overflow
13075 # when running test_compile.py.
13076 LINKFORSHARED
='-Wl,-E -N 2048K';;
13078 LINKFORSHARED
='-Wl,-export-dynamic';;
13081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5
13082 printf "%s\n" "$LINKFORSHARED" >&6; }
13086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5
13087 printf %s
"checking CFLAGSFORSHARED... " >&6; }
13088 if test ! "$LIBRARY" = "$LDLIBRARY"
13090 case $ac_sys_system in
13092 # Cygwin needs CCSHARED when building extension DLLs
13093 # but not when building the interpreter DLL.
13094 CFLAGSFORSHARED
='';;
13096 CFLAGSFORSHARED
='$(CCSHARED)'
13100 if test "x$enable_wasm_dynamic_linking" = xyes
13103 CFLAGSFORSHARED
='$(CCSHARED)'
13107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5
13108 printf "%s\n" "$CFLAGSFORSHARED" >&6; }
13110 # SHLIBS are libraries (except -lc and -lm) to link to the python shared
13111 # library (with --enable-shared).
13112 # For platforms on which shared libraries are not allowed to have unresolved
13113 # symbols, this must be set to $(LIBS) (expanded by make). We do this even
13114 # if it is not required, since it creates a dependency of the shared library
13115 # to LIBS. This, in turn, means that applications linking the shared libpython
13116 # don't need to link LIBS explicitly. The default should be only changed
13117 # on systems where this approach causes problems.
13119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5
13120 printf %s
"checking SHLIBS... " >&6; }
13121 case "$ac_sys_system" in
13125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5
13126 printf "%s\n" "$SHLIBS" >&6; }
13128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking perf trampoline" >&5
13129 printf %s
"checking perf trampoline... " >&6; }
13130 case $PLATFORM_TRIPLET in #(
13131 x86_64-linux-gnu
) :
13132 perf_trampoline
=yes ;; #(
13133 aarch64-linux-gnu
) :
13134 perf_trampoline
=yes ;; #(
13139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perf_trampoline" >&5
13140 printf "%s\n" "$perf_trampoline" >&6; }
13142 if test "x$perf_trampoline" = xyes
13146 printf "%s\n" "#define PY_HAVE_PERF_TRAMPOLINE 1" >>confdefs.h
13148 PERF_TRAMPOLINE_OBJ
=Python
/asm_trampoline.o
13150 if test "x$Py_DEBUG" = xtrue
13153 as_fn_append BASECFLAGS
" -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer"
13160 # checks for libraries
13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5
13162 printf %s
"checking for sendfile in -lsendfile... " >&6; }
13163 if test ${ac_cv_lib_sendfile_sendfile+y}
13165 printf %s
"(cached) " >&6
13167 ac_check_lib_save_LIBS
=$LIBS
13168 LIBS
="-lsendfile $LIBS"
13169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13172 /* Override any GCC internal prototype to avoid an error.
13173 Use char because int might match the return type of a GCC
13174 builtin and then its argument prototype would still apply. */
13179 return sendfile ();
13184 if ac_fn_c_try_link
"$LINENO"
13186 ac_cv_lib_sendfile_sendfile
=yes
13188 ac_cv_lib_sendfile_sendfile
=no
13190 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13191 conftest
$ac_exeext conftest.
$ac_ext
13192 LIBS
=$ac_check_lib_save_LIBS
13194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5
13195 printf "%s\n" "$ac_cv_lib_sendfile_sendfile" >&6; }
13196 if test "x$ac_cv_lib_sendfile_sendfile" = xyes
13198 printf "%s\n" "#define HAVE_LIBSENDFILE 1" >>confdefs.h
13200 LIBS
="-lsendfile $LIBS"
13204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13205 printf %s
"checking for dlopen in -ldl... " >&6; }
13206 if test ${ac_cv_lib_dl_dlopen+y}
13208 printf %s
"(cached) " >&6
13210 ac_check_lib_save_LIBS
=$LIBS
13212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h. */
13215 /* Override any GCC internal prototype to avoid an error.
13216 Use char because int might match the return type of a GCC
13217 builtin and then its argument prototype would still apply. */
13227 if ac_fn_c_try_link
"$LINENO"
13229 ac_cv_lib_dl_dlopen
=yes
13231 ac_cv_lib_dl_dlopen
=no
13233 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13234 conftest
$ac_exeext conftest.
$ac_ext
13235 LIBS
=$ac_check_lib_save_LIBS
13237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13238 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13239 if test "x$ac_cv_lib_dl_dlopen" = xyes
13241 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
13246 # Dynamic linking for SunOS/Solaris and SYSV
13247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13248 printf %s
"checking for shl_load in -ldld... " >&6; }
13249 if test ${ac_cv_lib_dld_shl_load+y}
13251 printf %s
"(cached) " >&6
13253 ac_check_lib_save_LIBS
=$LIBS
13255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13256 /* end confdefs.h. */
13258 /* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13265 return shl_load ();
13270 if ac_fn_c_try_link
"$LINENO"
13272 ac_cv_lib_dld_shl_load
=yes
13274 ac_cv_lib_dld_shl_load
=no
13276 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13277 conftest
$ac_exeext conftest.
$ac_ext
13278 LIBS
=$ac_check_lib_save_LIBS
13280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13281 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13282 if test "x$ac_cv_lib_dld_shl_load" = xyes
13284 printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h
13289 # Dynamic linking for HP-UX
13297 for ac_header
in uuid.h
13299 ac_fn_c_check_header_compile
"$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
13300 if test "x$ac_cv_header_uuid_h" = xyes
13302 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
13304 for ac_func
in uuid_create uuid_enc_be
13306 as_ac_var
=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
13307 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13308 if eval test \"x\$
"$as_ac_var"\" = x
"yes"
13310 cat >>confdefs.h
<<_ACEOF
13311 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
13314 LIBUUID_CFLAGS
=${LIBUUID_CFLAGS-""}
13315 LIBUUID_LIBS
=${LIBUUID_LIBS-""}
13325 if test "x$have_uuid" = xmissing
13330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid >= 2.20" >&5
13331 printf %s
"checking for uuid >= 2.20... " >&6; }
13333 if test -n "$LIBUUID_CFLAGS"; then
13334 pkg_cv_LIBUUID_CFLAGS
="$LIBUUID_CFLAGS"
13335 elif test -n "$PKG_CONFIG"; then
13336 if test -n "$PKG_CONFIG" && \
13337 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
13338 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
13340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13341 test $ac_status = 0; }; then
13342 pkg_cv_LIBUUID_CFLAGS
=`$PKG_CONFIG --cflags "uuid >= 2.20" 2>/dev/null`
13343 test "x$?" != "x0" && pkg_failed
=yes
13350 if test -n "$LIBUUID_LIBS"; then
13351 pkg_cv_LIBUUID_LIBS
="$LIBUUID_LIBS"
13352 elif test -n "$PKG_CONFIG"; then
13353 if test -n "$PKG_CONFIG" && \
13354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5
13355 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5
13357 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13358 test $ac_status = 0; }; then
13359 pkg_cv_LIBUUID_LIBS
=`$PKG_CONFIG --libs "uuid >= 2.20" 2>/dev/null`
13360 test "x$?" != "x0" && pkg_failed
=yes
13370 if test $pkg_failed = yes; then
13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13372 printf "%s\n" "no" >&6; }
13374 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13375 _pkg_short_errors_supported
=yes
13377 _pkg_short_errors_supported
=no
13379 if test $_pkg_short_errors_supported = yes; then
13380 LIBUUID_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
13382 LIBUUID_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.20" 2>&1`
13384 # Put the nasty error message in config.log where it belongs
13385 echo "$LIBUUID_PKG_ERRORS" >&5
13388 save_CFLAGS
=$CFLAGS
13389 save_CPPFLAGS
=$CPPFLAGS
13390 save_LDFLAGS
=$LDFLAGS
13394 CPPFLAGS
="$CPPFLAGS $LIBUUID_CFLAGS"
13395 LDFLAGS
="$LDFLAGS $LIBUUID_LIBS"
13396 for ac_header
in uuid
/uuid.h
13398 ac_fn_c_check_header_compile
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13399 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13401 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13403 py_check_lib_save_LIBS
=$LIBS
13404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
13405 printf %s
"checking for uuid_generate_time in -luuid... " >&6; }
13406 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
13408 printf %s
"(cached) " >&6
13410 ac_check_lib_save_LIBS
=$LIBS
13411 LIBS
="-luuid $LIBS"
13412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13415 /* Override any GCC internal prototype to avoid an error.
13416 Use char because int might match the return type of a GCC
13417 builtin and then its argument prototype would still apply. */
13418 char uuid_generate_time ();
13422 return uuid_generate_time ();
13427 if ac_fn_c_try_link
"$LINENO"
13429 ac_cv_lib_uuid_uuid_generate_time
=yes
13431 ac_cv_lib_uuid_uuid_generate_time
=no
13433 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13434 conftest
$ac_exeext conftest.
$ac_ext
13435 LIBS
=$ac_check_lib_save_LIBS
13437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
13438 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
13439 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
13444 LIBS
=$py_check_lib_save_LIBS
13446 py_check_lib_save_LIBS
=$LIBS
13447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
13448 printf %s
"checking for uuid_generate_time_safe in -luuid... " >&6; }
13449 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
13451 printf %s
"(cached) " >&6
13453 ac_check_lib_save_LIBS
=$LIBS
13454 LIBS
="-luuid $LIBS"
13455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13458 /* Override any GCC internal prototype to avoid an error.
13459 Use char because int might match the return type of a GCC
13460 builtin and then its argument prototype would still apply. */
13461 char uuid_generate_time_safe ();
13465 return uuid_generate_time_safe ();
13470 if ac_fn_c_try_link
"$LINENO"
13472 ac_cv_lib_uuid_uuid_generate_time_safe
=yes
13474 ac_cv_lib_uuid_uuid_generate_time_safe
=no
13476 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13477 conftest
$ac_exeext conftest.
$ac_ext
13478 LIBS
=$ac_check_lib_save_LIBS
13480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
13481 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
13482 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
13485 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
13489 LIBS
=$py_check_lib_save_LIBS
13494 if test "x$have_uuid" = xyes
13497 LIBUUID_CFLAGS
=${LIBUUID_CFLAGS-""}
13498 LIBUUID_LIBS
=${LIBUUID_LIBS-"-luuid"}
13502 CFLAGS
=$save_CFLAGS
13503 CPPFLAGS
=$save_CPPFLAGS
13504 LDFLAGS
=$save_LDFLAGS
13510 elif test $pkg_failed = untried
; then
13511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13512 printf "%s\n" "no" >&6; }
13514 save_CFLAGS
=$CFLAGS
13515 save_CPPFLAGS
=$CPPFLAGS
13516 save_LDFLAGS
=$LDFLAGS
13520 CPPFLAGS
="$CPPFLAGS $LIBUUID_CFLAGS"
13521 LDFLAGS
="$LDFLAGS $LIBUUID_LIBS"
13522 for ac_header
in uuid
/uuid.h
13524 ac_fn_c_check_header_compile
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13525 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13527 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13529 py_check_lib_save_LIBS
=$LIBS
13530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5
13531 printf %s
"checking for uuid_generate_time in -luuid... " >&6; }
13532 if test ${ac_cv_lib_uuid_uuid_generate_time+y}
13534 printf %s
"(cached) " >&6
13536 ac_check_lib_save_LIBS
=$LIBS
13537 LIBS
="-luuid $LIBS"
13538 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13539 /* end confdefs.h. */
13541 /* Override any GCC internal prototype to avoid an error.
13542 Use char because int might match the return type of a GCC
13543 builtin and then its argument prototype would still apply. */
13544 char uuid_generate_time ();
13548 return uuid_generate_time ();
13553 if ac_fn_c_try_link
"$LINENO"
13555 ac_cv_lib_uuid_uuid_generate_time
=yes
13557 ac_cv_lib_uuid_uuid_generate_time
=no
13559 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13560 conftest
$ac_exeext conftest.
$ac_ext
13561 LIBS
=$ac_check_lib_save_LIBS
13563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5
13564 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; }
13565 if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes
13570 LIBS
=$py_check_lib_save_LIBS
13572 py_check_lib_save_LIBS
=$LIBS
13573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5
13574 printf %s
"checking for uuid_generate_time_safe in -luuid... " >&6; }
13575 if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y}
13577 printf %s
"(cached) " >&6
13579 ac_check_lib_save_LIBS
=$LIBS
13580 LIBS
="-luuid $LIBS"
13581 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13582 /* end confdefs.h. */
13584 /* Override any GCC internal prototype to avoid an error.
13585 Use char because int might match the return type of a GCC
13586 builtin and then its argument prototype would still apply. */
13587 char uuid_generate_time_safe ();
13591 return uuid_generate_time_safe ();
13596 if ac_fn_c_try_link
"$LINENO"
13598 ac_cv_lib_uuid_uuid_generate_time_safe
=yes
13600 ac_cv_lib_uuid_uuid_generate_time_safe
=no
13602 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13603 conftest
$ac_exeext conftest.
$ac_ext
13604 LIBS
=$ac_check_lib_save_LIBS
13606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5
13607 printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; }
13608 if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes
13611 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
13615 LIBS
=$py_check_lib_save_LIBS
13620 if test "x$have_uuid" = xyes
13623 LIBUUID_CFLAGS
=${LIBUUID_CFLAGS-""}
13624 LIBUUID_LIBS
=${LIBUUID_LIBS-"-luuid"}
13628 CFLAGS
=$save_CFLAGS
13629 CPPFLAGS
=$save_CPPFLAGS
13630 LDFLAGS
=$save_LDFLAGS
13637 LIBUUID_CFLAGS
=$pkg_cv_LIBUUID_CFLAGS
13638 LIBUUID_LIBS
=$pkg_cv_LIBUUID_LIBS
13639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13640 printf "%s\n" "yes" >&6; }
13642 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h
13644 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h
13651 if test "x$have_uuid" = xmissing
13654 for ac_header
in uuid
/uuid.h
13656 ac_fn_c_check_header_compile
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13657 if test "x$ac_cv_header_uuid_uuid_h" = xyes
13659 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h
13661 ac_fn_c_check_func
"$LINENO" "uuid_generate_time" "ac_cv_func_uuid_generate_time"
13662 if test "x$ac_cv_func_uuid_generate_time" = xyes
13666 LIBUUID_CFLAGS
=${LIBUUID_CFLAGS-""}
13667 LIBUUID_LIBS
=${LIBUUID_LIBS-""}
13678 if test "x$have_uuid" = xmissing
13683 # 'Real Time' functions on Solaris
13684 # posix4 on Solaris 2.6
13685 # pthread (first!) on Linux
13686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5
13687 printf %s
"checking for library containing sem_init... " >&6; }
13688 if test ${ac_cv_search_sem_init+y}
13690 printf %s
"(cached) " >&6
13692 ac_func_search_save_LIBS
=$LIBS
13693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13694 /* end confdefs.h. */
13696 /* Override any GCC internal prototype to avoid an error.
13697 Use char because int might match the return type of a GCC
13698 builtin and then its argument prototype would still apply. */
13703 return sem_init ();
13708 for ac_lib
in '' pthread rt posix4
13710 if test -z "$ac_lib"; then
13711 ac_res
="none required"
13714 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13716 if ac_fn_c_try_link
"$LINENO"
13718 ac_cv_search_sem_init
=$ac_res
13720 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13722 if test ${ac_cv_search_sem_init+y}
13727 if test ${ac_cv_search_sem_init+y}
13731 ac_cv_search_sem_init
=no
13733 rm conftest.
$ac_ext
13734 LIBS
=$ac_func_search_save_LIBS
13736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5
13737 printf "%s\n" "$ac_cv_search_sem_init" >&6; }
13738 ac_res
=$ac_cv_search_sem_init
13739 if test "$ac_res" != no
13741 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13746 # check if we need libintl for locale functions
13747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5
13748 printf %s
"checking for textdomain in -lintl... " >&6; }
13749 if test ${ac_cv_lib_intl_textdomain+y}
13751 printf %s
"(cached) " >&6
13753 ac_check_lib_save_LIBS
=$LIBS
13754 LIBS
="-lintl $LIBS"
13755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h. */
13758 /* Override any GCC internal prototype to avoid an error.
13759 Use char because int might match the return type of a GCC
13760 builtin and then its argument prototype would still apply. */
13761 char textdomain ();
13765 return textdomain ();
13770 if ac_fn_c_try_link
"$LINENO"
13772 ac_cv_lib_intl_textdomain
=yes
13774 ac_cv_lib_intl_textdomain
=no
13776 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13777 conftest
$ac_exeext conftest.
$ac_ext
13778 LIBS
=$ac_check_lib_save_LIBS
13780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5
13781 printf "%s\n" "$ac_cv_lib_intl_textdomain" >&6; }
13782 if test "x$ac_cv_lib_intl_textdomain" = xyes
13785 printf "%s\n" "#define WITH_LIBINTL 1" >>confdefs.h
13787 LIBS
="-lintl $LIBS"
13791 # checks for system dependent C++ extensions support
13792 case "$ac_sys_system" in
13793 AIX
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5
13794 printf %s
"checking for genuine AIX C++ extensions support... " >&6; }
13795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13796 /* end confdefs.h. */
13802 loadAndInit("", 0, "")
13808 if ac_fn_c_try_link
"$LINENO"
13812 printf "%s\n" "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h
13814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13815 printf "%s\n" "yes" >&6; }
13819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13820 printf "%s\n" "no" >&6; }
13823 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
13824 conftest
$ac_exeext conftest.
$ac_ext
13825 # BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag
13826 # of the AIX system used to build/package Python executable. This tag serves
13827 # as a baseline for bdist module packages
13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5
13829 printf %s
"checking for the system builddate... " >&6; }
13830 AIX_BUILDDATE
=$
(lslpp
-Lcq bos.mp64 |
awk -F: '{ print $NF }')
13832 printf "%s\n" "#define AIX_BUILDDATE $AIX_BUILDDATE" >>confdefs.h
13834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5
13835 printf "%s\n" "$AIX_BUILDDATE" >&6; }
13840 # check for systems that require aligned memory access
13841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5
13842 printf %s
"checking aligned memory access is required... " >&6; }
13843 if test ${ac_cv_aligned_required+y}
13845 printf %s
"(cached) " >&6
13847 if test "$cross_compiling" = yes
13850 # "yes" changes the hash function to FNV, which causes problems with Numba
13851 # (https://github.com/numba/numba/blob/0.59.0/numba/cpython/hashing.py#L470).
13852 if test "$ac_sys_system" = "Linux-android"; then
13853 ac_cv_aligned_required
=no
13855 ac_cv_aligned_required
=yes
13858 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13865 for (i=0; i < 16; i++)
13874 if ac_fn_c_try_run
"$LINENO"
13876 ac_cv_aligned_required
=no
13878 ac_cv_aligned_required
=yes
13880 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13881 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5
13887 printf "%s\n" "$ac_cv_aligned_required" >&6; }
13888 if test "$ac_cv_aligned_required" = yes ; then
13890 printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h
13894 # str, bytes and memoryview hash algorithm
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5
13898 printf %s
"checking for --with-hash-algorithm... " >&6; }
13900 # Check whether --with-hash_algorithm was given.
13901 if test ${with_hash_algorithm+y}
13903 withval
=$with_hash_algorithm;
13904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
13905 printf "%s\n" "$withval" >&6; }
13908 printf "%s\n" "#define Py_HASH_ALGORITHM 3" >>confdefs.h
13912 printf "%s\n" "#define Py_HASH_ALGORITHM 1" >>confdefs.h
13916 printf "%s\n" "#define Py_HASH_ALGORITHM 2" >>confdefs.h
13920 as_fn_error $?
"unknown hash algorithm '$withval'" "$LINENO" 5
13925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5
13926 printf "%s\n" "default" >&6; }
13930 validate_tzpath
() {
13931 # Checks that each element of the path is an absolute path
13932 if test -z "$1"; then
13933 # Empty string is allowed: it indicates no system TZPATH
13937 # Bad paths are those that don't start with /
13938 if ( echo $1 |
grep '\(^\|:\)\([^/]\|$\)' > /dev
/null
); then
13939 as_fn_error $?
"--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5
13944 TZPATH
="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo"
13945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5
13946 printf %s
"checking for --with-tzpath... " >&6; }
13948 # Check whether --with-tzpath was given.
13949 if test ${with_tzpath+y}
13951 withval
=$with_tzpath;
13954 as_fn_error $?
"--with-tzpath requires a value" "$LINENO" 5
13957 validate_tzpath
"$withval"
13959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5
13960 printf "%s\n" "\"$withval\"" >&6; }
13965 validate_tzpath
"$TZPATH"
13966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5
13967 printf "%s\n" "\"$TZPATH\"" >&6; }
13972 # Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl.
13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5
13974 printf %s
"checking for t_open in -lnsl... " >&6; }
13975 if test ${ac_cv_lib_nsl_t_open+y}
13977 printf %s
"(cached) " >&6
13979 ac_check_lib_save_LIBS
=$LIBS
13981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13982 /* end confdefs.h. */
13984 /* Override any GCC internal prototype to avoid an error.
13985 Use char because int might match the return type of a GCC
13986 builtin and then its argument prototype would still apply. */
13996 if ac_fn_c_try_link
"$LINENO"
13998 ac_cv_lib_nsl_t_open
=yes
14000 ac_cv_lib_nsl_t_open
=no
14002 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14003 conftest
$ac_exeext conftest.
$ac_ext
14004 LIBS
=$ac_check_lib_save_LIBS
14006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5
14007 printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; }
14008 if test "x$ac_cv_lib_nsl_t_open" = xyes
14013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14014 printf %s
"checking for socket in -lsocket... " >&6; }
14015 if test ${ac_cv_lib_socket_socket+y}
14017 printf %s
"(cached) " >&6
14019 ac_check_lib_save_LIBS
=$LIBS
14020 LIBS
="-lsocket $LIBS $LIBS"
14021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14024 /* Override any GCC internal prototype to avoid an error.
14025 Use char because int might match the return type of a GCC
14026 builtin and then its argument prototype would still apply. */
14036 if ac_fn_c_try_link
"$LINENO"
14038 ac_cv_lib_socket_socket
=yes
14040 ac_cv_lib_socket_socket
=no
14042 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14043 conftest
$ac_exeext conftest.
$ac_ext
14044 LIBS
=$ac_check_lib_save_LIBS
14046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14047 printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
14048 if test "x$ac_cv_lib_socket_socket" = xyes
14050 LIBS
="-lsocket $LIBS"
14054 case $ac_sys_system/$ac_sys_release in
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5
14057 printf %s
"checking for socket in -lnetwork... " >&6; }
14058 if test ${ac_cv_lib_network_socket+y}
14060 printf %s
"(cached) " >&6
14062 ac_check_lib_save_LIBS
=$LIBS
14063 LIBS
="-lnetwork $LIBS $LIBS"
14064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14065 /* end confdefs.h. */
14067 /* Override any GCC internal prototype to avoid an error.
14068 Use char because int might match the return type of a GCC
14069 builtin and then its argument prototype would still apply. */
14079 if ac_fn_c_try_link
"$LINENO"
14081 ac_cv_lib_network_socket
=yes
14083 ac_cv_lib_network_socket
=no
14085 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14086 conftest
$ac_exeext conftest.
$ac_ext
14087 LIBS
=$ac_check_lib_save_LIBS
14089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5
14090 printf "%s\n" "$ac_cv_lib_network_socket" >&6; }
14091 if test "x$ac_cv_lib_network_socket" = xyes
14093 LIBS
="-lnetwork $LIBS"
14099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5
14100 printf %s
"checking for --with-libs... " >&6; }
14102 # Check whether --with-libs was given.
14103 if test ${with_libs+y}
14105 withval
=$with_libs;
14106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
14107 printf "%s\n" "$withval" >&6; }
14108 LIBS
="$withval $LIBS"
14111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14112 printf "%s\n" "no" >&6; }
14116 # Check for use of the system expat library
14117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5
14118 printf %s
"checking for --with-system-expat... " >&6; }
14120 # Check whether --with-system_expat was given.
14121 if test ${with_system_expat+y}
14123 withval
=$with_system_expat;
14125 with_system_expat
="no"
14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5
14130 printf "%s\n" "$with_system_expat" >&6; }
14132 if test "x$with_system_expat" = xyes
14135 LIBEXPAT_CFLAGS
=${LIBEXPAT_CFLAGS-""}
14136 LIBEXPAT_LDFLAGS
=${LIBEXPAT_LDFLAGS-"-lexpat"}
14141 LIBEXPAT_CFLAGS
="-I\$(srcdir)/Modules/expat"
14142 LIBEXPAT_LDFLAGS
="-lm \$(LIBEXPAT_A)"
14143 LIBEXPAT_INTERNAL
="\$(LIBEXPAT_HEADERS) \$(LIBEXPAT_A)"
14150 have_libffi
=missing
14151 if test "x$ac_sys_system" = xDarwin
14154 save_CFLAGS
=$CFLAGS
14155 save_CPPFLAGS
=$CPPFLAGS
14156 save_LDFLAGS
=$LDFLAGS
14160 CFLAGS
="-I${SDKROOT}/usr/include/ffi $CFLAGS"
14161 ac_fn_c_check_header_compile
"$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14162 if test "x$ac_cv_header_ffi_h" = xyes
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14166 printf %s
"checking for ffi_call in -lffi... " >&6; }
14167 if test ${ac_cv_lib_ffi_ffi_call+y}
14169 printf %s
"(cached) " >&6
14171 ac_check_lib_save_LIBS
=$LIBS
14173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14174 /* end confdefs.h. */
14176 /* Override any GCC internal prototype to avoid an error.
14177 Use char because int might match the return type of a GCC
14178 builtin and then its argument prototype would still apply. */
14183 return ffi_call ();
14188 if ac_fn_c_try_link
"$LINENO"
14190 ac_cv_lib_ffi_ffi_call
=yes
14192 ac_cv_lib_ffi_ffi_call
=no
14194 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14195 conftest
$ac_exeext conftest.
$ac_ext
14196 LIBS
=$ac_check_lib_save_LIBS
14198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14199 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14200 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14204 LIBFFI_CFLAGS
="-I${SDKROOT}/usr/include/ffi -DUSING_APPLE_OS_LIBFFI=1"
14205 LIBFFI_LIBS
="-lffi"
14213 CFLAGS
=$save_CFLAGS
14214 CPPFLAGS
=$save_CPPFLAGS
14215 LDFLAGS
=$save_LDFLAGS
14221 if test "x$have_libffi" = xmissing
14226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libffi" >&5
14227 printf %s
"checking for libffi... " >&6; }
14229 if test -n "$LIBFFI_CFLAGS"; then
14230 pkg_cv_LIBFFI_CFLAGS
="$LIBFFI_CFLAGS"
14231 elif test -n "$PKG_CONFIG"; then
14232 if test -n "$PKG_CONFIG" && \
14233 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
14234 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
14236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237 test $ac_status = 0; }; then
14238 pkg_cv_LIBFFI_CFLAGS
=`$PKG_CONFIG --cflags "libffi" 2>/dev/null`
14239 test "x$?" != "x0" && pkg_failed
=yes
14246 if test -n "$LIBFFI_LIBS"; then
14247 pkg_cv_LIBFFI_LIBS
="$LIBFFI_LIBS"
14248 elif test -n "$PKG_CONFIG"; then
14249 if test -n "$PKG_CONFIG" && \
14250 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5
14251 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5
14253 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254 test $ac_status = 0; }; then
14255 pkg_cv_LIBFFI_LIBS
=`$PKG_CONFIG --libs "libffi" 2>/dev/null`
14256 test "x$?" != "x0" && pkg_failed
=yes
14266 if test $pkg_failed = yes; then
14267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268 printf "%s\n" "no" >&6; }
14270 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14271 _pkg_short_errors_supported
=yes
14273 _pkg_short_errors_supported
=no
14275 if test $_pkg_short_errors_supported = yes; then
14276 LIBFFI_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1`
14278 LIBFFI_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1`
14280 # Put the nasty error message in config.log where it belongs
14281 echo "$LIBFFI_PKG_ERRORS" >&5
14284 save_CFLAGS
=$CFLAGS
14285 save_CPPFLAGS
=$CPPFLAGS
14286 save_LDFLAGS
=$LDFLAGS
14290 CPPFLAGS
="$CPPFLAGS $LIBFFI_CFLAGS"
14291 LDFLAGS
="$LDFLAGS $LIBFFI_LIBS"
14292 ac_fn_c_check_header_compile
"$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14293 if test "x$ac_cv_header_ffi_h" = xyes
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14297 printf %s
"checking for ffi_call in -lffi... " >&6; }
14298 if test ${ac_cv_lib_ffi_ffi_call+y}
14300 printf %s
"(cached) " >&6
14302 ac_check_lib_save_LIBS
=$LIBS
14304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14307 /* Override any GCC internal prototype to avoid an error.
14308 Use char because int might match the return type of a GCC
14309 builtin and then its argument prototype would still apply. */
14314 return ffi_call ();
14319 if ac_fn_c_try_link
"$LINENO"
14321 ac_cv_lib_ffi_ffi_call
=yes
14323 ac_cv_lib_ffi_ffi_call
=no
14325 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14326 conftest
$ac_exeext conftest.
$ac_ext
14327 LIBS
=$ac_check_lib_save_LIBS
14329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14330 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14331 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14335 LIBFFI_CFLAGS
=${LIBFFI_CFLAGS-""}
14336 LIBFFI_LIBS
=${LIBFFI_LIBS-"-lffi"}
14346 CFLAGS
=$save_CFLAGS
14347 CPPFLAGS
=$save_CPPFLAGS
14348 LDFLAGS
=$save_LDFLAGS
14353 elif test $pkg_failed = untried
; then
14354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14355 printf "%s\n" "no" >&6; }
14357 save_CFLAGS
=$CFLAGS
14358 save_CPPFLAGS
=$CPPFLAGS
14359 save_LDFLAGS
=$LDFLAGS
14363 CPPFLAGS
="$CPPFLAGS $LIBFFI_CFLAGS"
14364 LDFLAGS
="$LDFLAGS $LIBFFI_LIBS"
14365 ac_fn_c_check_header_compile
"$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default"
14366 if test "x$ac_cv_header_ffi_h" = xyes
14369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5
14370 printf %s
"checking for ffi_call in -lffi... " >&6; }
14371 if test ${ac_cv_lib_ffi_ffi_call+y}
14373 printf %s
"(cached) " >&6
14375 ac_check_lib_save_LIBS
=$LIBS
14377 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14378 /* end confdefs.h. */
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14387 return ffi_call ();
14392 if ac_fn_c_try_link
"$LINENO"
14394 ac_cv_lib_ffi_ffi_call
=yes
14396 ac_cv_lib_ffi_ffi_call
=no
14398 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14399 conftest
$ac_exeext conftest.
$ac_ext
14400 LIBS
=$ac_check_lib_save_LIBS
14402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5
14403 printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; }
14404 if test "x$ac_cv_lib_ffi_ffi_call" = xyes
14408 LIBFFI_CFLAGS
=${LIBFFI_CFLAGS-""}
14409 LIBFFI_LIBS
=${LIBFFI_LIBS-"-lffi"}
14419 CFLAGS
=$save_CFLAGS
14420 CPPFLAGS
=$save_CPPFLAGS
14421 LDFLAGS
=$save_LDFLAGS
14427 LIBFFI_CFLAGS
=$pkg_cv_LIBFFI_CFLAGS
14428 LIBFFI_LIBS
=$pkg_cv_LIBFFI_LIBS
14429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14430 printf "%s\n" "yes" >&6; }
14436 if test "x$have_libffi" = xyes
14439 ctypes_malloc_closure
=no
14440 case $ac_sys_system in #(
14443 ctypes_malloc_closure
=yes
14447 ctypes_malloc_closure
=yes
14450 as_fn_append LIBFFI_LIBS
" -mimpure-text"
14455 if test "x$ctypes_malloc_closure" = xyes
14458 MODULE__CTYPES_MALLOC_CLOSURE
=_ctypes
/malloc_closure.c
14459 as_fn_append LIBFFI_CFLAGS
" -DUSING_MALLOC_CLOSURE_DOT_C=1"
14464 if test "x$ac_cv_lib_dl_dlopen" = xyes
14466 as_fn_append LIBFFI_LIBS
" -ldl"
14469 save_CFLAGS
=$CFLAGS
14470 save_CPPFLAGS
=$CPPFLAGS
14471 save_LDFLAGS
=$LDFLAGS
14475 CFLAGS
="$LIBFFI_CFLAGS $CFLAGS"
14476 LDFLAGS
="$LIBFFI_LIBS $LDFLAGS"
14480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_cif_var" >&5
14481 printf %s
"checking for ffi_prep_cif_var... " >&6; }
14482 if test ${ac_cv_func_ffi_prep_cif_var+y}
14484 printf %s
"(cached) " >&6
14486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14487 /* end confdefs.h. */
14492 void *x=ffi_prep_cif_var
14497 if ac_fn_c_try_compile
"$LINENO"
14499 ac_cv_func_ffi_prep_cif_var
=yes
14501 ac_cv_func_ffi_prep_cif_var
=no
14503 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_cif_var" >&5
14507 printf "%s\n" "$ac_cv_func_ffi_prep_cif_var" >&6; }
14508 if test "x$ac_cv_func_ffi_prep_cif_var" = xyes
14511 printf "%s\n" "#define HAVE_FFI_PREP_CIF_VAR 1" >>confdefs.h
14519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_closure_loc" >&5
14520 printf %s
"checking for ffi_prep_closure_loc... " >&6; }
14521 if test ${ac_cv_func_ffi_prep_closure_loc+y}
14523 printf %s
"(cached) " >&6
14525 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14526 /* end confdefs.h. */
14531 void *x=ffi_prep_closure_loc
14536 if ac_fn_c_try_compile
"$LINENO"
14538 ac_cv_func_ffi_prep_closure_loc
=yes
14540 ac_cv_func_ffi_prep_closure_loc
=no
14542 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_closure_loc" >&5
14546 printf "%s\n" "$ac_cv_func_ffi_prep_closure_loc" >&6; }
14547 if test "x$ac_cv_func_ffi_prep_closure_loc" = xyes
14550 printf "%s\n" "#define HAVE_FFI_PREP_CLOSURE_LOC 1" >>confdefs.h
14558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_closure_alloc" >&5
14559 printf %s
"checking for ffi_closure_alloc... " >&6; }
14560 if test ${ac_cv_func_ffi_closure_alloc+y}
14562 printf %s
"(cached) " >&6
14564 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h. */
14570 void *x=ffi_closure_alloc
14575 if ac_fn_c_try_compile
"$LINENO"
14577 ac_cv_func_ffi_closure_alloc
=yes
14579 ac_cv_func_ffi_closure_alloc
=no
14581 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_closure_alloc" >&5
14585 printf "%s\n" "$ac_cv_func_ffi_closure_alloc" >&6; }
14586 if test "x$ac_cv_func_ffi_closure_alloc" = xyes
14589 printf "%s\n" "#define HAVE_FFI_CLOSURE_ALLOC 1" >>confdefs.h
14596 CFLAGS
=$save_CFLAGS
14597 CPPFLAGS
=$save_CPPFLAGS
14598 LDFLAGS
=$save_LDFLAGS
14605 # Check for use of the system libmpdec library
14606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5
14607 printf %s
"checking for --with-system-libmpdec... " >&6; }
14609 # Check whether --with-system_libmpdec was given.
14610 if test ${with_system_libmpdec+y}
14612 withval
=$with_system_libmpdec;
14614 with_system_libmpdec
="no"
14617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5
14618 printf "%s\n" "$with_system_libmpdec" >&6; }
14620 if test "x$with_system_libmpdec" = xyes
14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpdec" >&5
14625 printf %s
"checking for libmpdec... " >&6; }
14627 if test -n "$LIBMPDEC_CFLAGS"; then
14628 pkg_cv_LIBMPDEC_CFLAGS
="$LIBMPDEC_CFLAGS"
14629 elif test -n "$PKG_CONFIG"; then
14630 if test -n "$PKG_CONFIG" && \
14631 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec\""; } >&5
14632 ($PKG_CONFIG --exists --print-errors "libmpdec") 2>&5
14634 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14635 test $ac_status = 0; }; then
14636 pkg_cv_LIBMPDEC_CFLAGS
=`$PKG_CONFIG --cflags "libmpdec" 2>/dev/null`
14637 test "x$?" != "x0" && pkg_failed
=yes
14644 if test -n "$LIBMPDEC_LIBS"; then
14645 pkg_cv_LIBMPDEC_LIBS
="$LIBMPDEC_LIBS"
14646 elif test -n "$PKG_CONFIG"; then
14647 if test -n "$PKG_CONFIG" && \
14648 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec\""; } >&5
14649 ($PKG_CONFIG --exists --print-errors "libmpdec") 2>&5
14651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14652 test $ac_status = 0; }; then
14653 pkg_cv_LIBMPDEC_LIBS
=`$PKG_CONFIG --libs "libmpdec" 2>/dev/null`
14654 test "x$?" != "x0" && pkg_failed
=yes
14664 if test $pkg_failed = yes; then
14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14666 printf "%s\n" "no" >&6; }
14668 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14669 _pkg_short_errors_supported
=yes
14671 _pkg_short_errors_supported
=no
14673 if test $_pkg_short_errors_supported = yes; then
14674 LIBMPDEC_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpdec" 2>&1`
14676 LIBMPDEC_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libmpdec" 2>&1`
14678 # Put the nasty error message in config.log where it belongs
14679 echo "$LIBMPDEC_PKG_ERRORS" >&5
14681 LIBMPDEC_CFLAGS
=${LIBMPDEC_CFLAGS-""}
14682 LIBMPDEC_LIBS
=${LIBMPDEC_LIBS-"-lmpdec -lm"}
14684 elif test $pkg_failed = untried
; then
14685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14686 printf "%s\n" "no" >&6; }
14687 LIBMPDEC_CFLAGS
=${LIBMPDEC_CFLAGS-""}
14688 LIBMPDEC_LIBS
=${LIBMPDEC_LIBS-"-lmpdec -lm"}
14691 LIBMPDEC_CFLAGS
=$pkg_cv_LIBMPDEC_CFLAGS
14692 LIBMPDEC_LIBS
=$pkg_cv_LIBMPDEC_LIBS
14693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14694 printf "%s\n" "yes" >&6; }
14698 LIBMPDEC_CFLAGS
="-I\$(srcdir)/Modules/_decimal/libmpdec"
14699 LIBMPDEC_LIBS
="-lm \$(LIBMPDEC_A)"
14700 LIBMPDEC_INTERNAL
="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)"
14703 # Disable forced inlining in debug builds, see GH-94847
14704 if test "x$with_pydebug" = xyes
14706 as_fn_append LIBMPDEC_CFLAGS
" -DTEST_COVERAGE"
14709 # Check whether _decimal should use a coroutine-local or thread-local context
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5
14711 printf %s
"checking for --with-decimal-contextvar... " >&6; }
14713 # Check whether --with-decimal_contextvar was given.
14714 if test ${with_decimal_contextvar+y}
14716 withval
=$with_decimal_contextvar;
14718 with_decimal_contextvar
="yes"
14722 if test "$with_decimal_contextvar" != "no"
14725 printf "%s\n" "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h
14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5
14730 printf "%s\n" "$with_decimal_contextvar" >&6; }
14732 if test "x$with_system_libmpdec" = xno
14734 # Check for libmpdec machine flavor
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for decimal libmpdec machine" >&5
14736 printf %s
"checking for decimal libmpdec machine... " >&6; }
14737 case $ac_sys_system in #(
14739 libmpdec_system
=Darwin
;; #(
14741 libmpdec_system
=sunos
;; #(
14743 libmpdec_system
=other
14747 libmpdec_machine
=unknown
14748 if test "$libmpdec_system" = Darwin
; then
14749 # universal here means: build libmpdec with the same arch options
14750 # the python interpreter was built with
14751 libmpdec_machine
=universal
14752 elif test $ac_cv_sizeof_size_t -eq 8; then
14753 if test "$ac_cv_gcc_asm_for_x64" = yes; then
14754 libmpdec_machine
=x64
14755 elif test "$ac_cv_type___uint128_t" = yes; then
14756 libmpdec_machine
=uint128
14758 libmpdec_machine
=ansi64
14760 elif test $ac_cv_sizeof_size_t -eq 4; then
14761 if test "$ac_cv_gcc_asm_for_x87" = yes -a "$libmpdec_system" != sunos
; then
14764 libmpdec_machine
=ppro
;; #(
14766 libmpdec_machine
=ppro
;; #(
14768 libmpdec_machine
=ansi32
14772 libmpdec_machine
=ansi32
14775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libmpdec_machine" >&5
14776 printf "%s\n" "$libmpdec_machine" >&6; }
14778 case $libmpdec_machine in #(
14780 as_fn_append LIBMPDEC_CFLAGS
" -DCONFIG_64=1 -DASM=1" ;; #(
14782 as_fn_append LIBMPDEC_CFLAGS
" -DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1" ;; #(
14784 as_fn_append LIBMPDEC_CFLAGS
" -DCONFIG_64=1 -DANSI=1" ;; #(
14786 as_fn_append LIBMPDEC_CFLAGS
" -DCONFIG_32=1 -DANSI=1 -DASM=1 -Wno-unknown-pragmas" ;; #(
14788 as_fn_append LIBMPDEC_CFLAGS
" -DCONFIG_32=1 -DANSI=1" ;; #(
14790 as_fn_append LIBMPDEC_CFLAGS
" -DCONFIG_32=1 -DANSI=1 -DLEGACY_COMPILER=1" ;; #(
14792 as_fn_append LIBMPDEC_CFLAGS
" -DUNIVERSAL=1" ;; #(
14794 as_fn_error $?
"_decimal: unsupported architecture" "$LINENO" 5
14799 if test "$have_ipa_pure_const_bug" = yes; then
14800 # Some versions of gcc miscompile inline asm:
14801 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
14802 # https://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
14803 as_fn_append LIBMPDEC_CFLAGS
" -fno-ipa-pure-const"
14806 if test "$have_glibc_memmove_bug" = yes; then
14807 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
14808 # https://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
14809 as_fn_append LIBMPDEC_CFLAGS
" -U_FORTIFY_SOURCE"
14819 if test "$ac_sys_system" = "Emscripten" -a -z "$LIBSQLITE3_CFLAGS" -a -z "$LIBSQLITE3_LIBS"
14822 LIBSQLITE3_CFLAGS
="-sUSE_SQLITE3"
14823 LIBSQLITE3_LIBS
="-sUSE_SQLITE3"
14832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.15.2" >&5
14833 printf %s
"checking for sqlite3 >= 3.15.2... " >&6; }
14835 if test -n "$LIBSQLITE3_CFLAGS"; then
14836 pkg_cv_LIBSQLITE3_CFLAGS
="$LIBSQLITE3_CFLAGS"
14837 elif test -n "$PKG_CONFIG"; then
14838 if test -n "$PKG_CONFIG" && \
14839 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
14840 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
14842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14843 test $ac_status = 0; }; then
14844 pkg_cv_LIBSQLITE3_CFLAGS
=`$PKG_CONFIG --cflags "sqlite3 >= 3.15.2" 2>/dev/null`
14845 test "x$?" != "x0" && pkg_failed
=yes
14852 if test -n "$LIBSQLITE3_LIBS"; then
14853 pkg_cv_LIBSQLITE3_LIBS
="$LIBSQLITE3_LIBS"
14854 elif test -n "$PKG_CONFIG"; then
14855 if test -n "$PKG_CONFIG" && \
14856 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5
14857 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5
14859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14860 test $ac_status = 0; }; then
14861 pkg_cv_LIBSQLITE3_LIBS
=`$PKG_CONFIG --libs "sqlite3 >= 3.15.2" 2>/dev/null`
14862 test "x$?" != "x0" && pkg_failed
=yes
14872 if test $pkg_failed = yes; then
14873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14874 printf "%s\n" "no" >&6; }
14876 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14877 _pkg_short_errors_supported
=yes
14879 _pkg_short_errors_supported
=no
14881 if test $_pkg_short_errors_supported = yes; then
14882 LIBSQLITE3_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
14884 LIBSQLITE3_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1`
14886 # Put the nasty error message in config.log where it belongs
14887 echo "$LIBSQLITE3_PKG_ERRORS" >&5
14890 LIBSQLITE3_CFLAGS
=${LIBSQLITE3_CFLAGS-""}
14891 LIBSQLITE3_LIBS
=${LIBSQLITE3_LIBS-"-lsqlite3"}
14894 elif test $pkg_failed = untried
; then
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 printf "%s\n" "no" >&6; }
14898 LIBSQLITE3_CFLAGS
=${LIBSQLITE3_CFLAGS-""}
14899 LIBSQLITE3_LIBS
=${LIBSQLITE3_LIBS-"-lsqlite3"}
14903 LIBSQLITE3_CFLAGS
=$pkg_cv_LIBSQLITE3_CFLAGS
14904 LIBSQLITE3_LIBS
=$pkg_cv_LIBSQLITE3_LIBS
14905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14906 printf "%s\n" "yes" >&6; }
14909 as_fn_append LIBSQLITE3_CFLAGS
' -I$(srcdir)/Modules/_sqlite'
14913 save_CFLAGS
=$CFLAGS
14914 save_CPPFLAGS
=$CPPFLAGS
14915 save_LDFLAGS
=$LDFLAGS
14919 CPPFLAGS
="$CPPFLAGS $LIBSQLITE3_CFLAGS"
14920 LDFLAGS
="$LIBSQLITE3_LIBS $LDFLAGS"
14922 ac_fn_c_check_header_compile
"$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default"
14923 if test "x$ac_cv_header_sqlite3_h" = xyes
14928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14932 #include <sqlite3.h>
14933 #if SQLITE_VERSION_NUMBER < 3015002
14934 # error "SQLite 3.15.2 or higher required"
14946 if ac_fn_c_try_compile
"$LINENO"
14949 have_supported_sqlite3
=yes
14951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_double in -lsqlite3" >&5
14952 printf %s
"checking for sqlite3_bind_double in -lsqlite3... " >&6; }
14953 if test ${ac_cv_lib_sqlite3_sqlite3_bind_double+y}
14955 printf %s
"(cached) " >&6
14957 ac_check_lib_save_LIBS
=$LIBS
14958 LIBS
="-lsqlite3 $LIBS"
14959 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14960 /* end confdefs.h. */
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14965 char sqlite3_bind_double ();
14969 return sqlite3_bind_double ();
14974 if ac_fn_c_try_link
"$LINENO"
14976 ac_cv_lib_sqlite3_sqlite3_bind_double
=yes
14978 ac_cv_lib_sqlite3_sqlite3_bind_double
=no
14980 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
14981 conftest
$ac_exeext conftest.
$ac_ext
14982 LIBS
=$ac_check_lib_save_LIBS
14984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_double" >&5
14985 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_bind_double" >&6; }
14986 if test "x$ac_cv_lib_sqlite3_sqlite3_bind_double" = xyes
14988 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
14990 LIBS
="-lsqlite3 $LIBS"
14994 have_supported_sqlite3
=no
15000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_decltype in -lsqlite3" >&5
15001 printf %s
"checking for sqlite3_column_decltype in -lsqlite3... " >&6; }
15002 if test ${ac_cv_lib_sqlite3_sqlite3_column_decltype+y}
15004 printf %s
"(cached) " >&6
15006 ac_check_lib_save_LIBS
=$LIBS
15007 LIBS
="-lsqlite3 $LIBS"
15008 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15011 /* Override any GCC internal prototype to avoid an error.
15012 Use char because int might match the return type of a GCC
15013 builtin and then its argument prototype would still apply. */
15014 char sqlite3_column_decltype ();
15018 return sqlite3_column_decltype ();
15023 if ac_fn_c_try_link
"$LINENO"
15025 ac_cv_lib_sqlite3_sqlite3_column_decltype
=yes
15027 ac_cv_lib_sqlite3_sqlite3_column_decltype
=no
15029 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15030 conftest
$ac_exeext conftest.
$ac_ext
15031 LIBS
=$ac_check_lib_save_LIBS
15033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_decltype" >&5
15034 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_decltype" >&6; }
15035 if test "x$ac_cv_lib_sqlite3_sqlite3_column_decltype" = xyes
15037 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15039 LIBS
="-lsqlite3 $LIBS"
15043 have_supported_sqlite3
=no
15049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_double in -lsqlite3" >&5
15050 printf %s
"checking for sqlite3_column_double in -lsqlite3... " >&6; }
15051 if test ${ac_cv_lib_sqlite3_sqlite3_column_double+y}
15053 printf %s
"(cached) " >&6
15055 ac_check_lib_save_LIBS
=$LIBS
15056 LIBS
="-lsqlite3 $LIBS"
15057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15058 /* end confdefs.h. */
15060 /* Override any GCC internal prototype to avoid an error.
15061 Use char because int might match the return type of a GCC
15062 builtin and then its argument prototype would still apply. */
15063 char sqlite3_column_double ();
15067 return sqlite3_column_double ();
15072 if ac_fn_c_try_link
"$LINENO"
15074 ac_cv_lib_sqlite3_sqlite3_column_double
=yes
15076 ac_cv_lib_sqlite3_sqlite3_column_double
=no
15078 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15079 conftest
$ac_exeext conftest.
$ac_ext
15080 LIBS
=$ac_check_lib_save_LIBS
15082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_double" >&5
15083 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_double" >&6; }
15084 if test "x$ac_cv_lib_sqlite3_sqlite3_column_double" = xyes
15086 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15088 LIBS
="-lsqlite3 $LIBS"
15092 have_supported_sqlite3
=no
15098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_complete in -lsqlite3" >&5
15099 printf %s
"checking for sqlite3_complete in -lsqlite3... " >&6; }
15100 if test ${ac_cv_lib_sqlite3_sqlite3_complete+y}
15102 printf %s
"(cached) " >&6
15104 ac_check_lib_save_LIBS
=$LIBS
15105 LIBS
="-lsqlite3 $LIBS"
15106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15107 /* end confdefs.h. */
15109 /* Override any GCC internal prototype to avoid an error.
15110 Use char because int might match the return type of a GCC
15111 builtin and then its argument prototype would still apply. */
15112 char sqlite3_complete ();
15116 return sqlite3_complete ();
15121 if ac_fn_c_try_link
"$LINENO"
15123 ac_cv_lib_sqlite3_sqlite3_complete
=yes
15125 ac_cv_lib_sqlite3_sqlite3_complete
=no
15127 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15128 conftest
$ac_exeext conftest.
$ac_ext
15129 LIBS
=$ac_check_lib_save_LIBS
15131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_complete" >&5
15132 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_complete" >&6; }
15133 if test "x$ac_cv_lib_sqlite3_sqlite3_complete" = xyes
15135 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15137 LIBS
="-lsqlite3 $LIBS"
15141 have_supported_sqlite3
=no
15147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_progress_handler in -lsqlite3" >&5
15148 printf %s
"checking for sqlite3_progress_handler in -lsqlite3... " >&6; }
15149 if test ${ac_cv_lib_sqlite3_sqlite3_progress_handler+y}
15151 printf %s
"(cached) " >&6
15153 ac_check_lib_save_LIBS
=$LIBS
15154 LIBS
="-lsqlite3 $LIBS"
15155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15156 /* end confdefs.h. */
15158 /* Override any GCC internal prototype to avoid an error.
15159 Use char because int might match the return type of a GCC
15160 builtin and then its argument prototype would still apply. */
15161 char sqlite3_progress_handler ();
15165 return sqlite3_progress_handler ();
15170 if ac_fn_c_try_link
"$LINENO"
15172 ac_cv_lib_sqlite3_sqlite3_progress_handler
=yes
15174 ac_cv_lib_sqlite3_sqlite3_progress_handler
=no
15176 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15177 conftest
$ac_exeext conftest.
$ac_ext
15178 LIBS
=$ac_check_lib_save_LIBS
15180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_progress_handler" >&5
15181 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_progress_handler" >&6; }
15182 if test "x$ac_cv_lib_sqlite3_sqlite3_progress_handler" = xyes
15184 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15186 LIBS
="-lsqlite3 $LIBS"
15190 have_supported_sqlite3
=no
15196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_result_double in -lsqlite3" >&5
15197 printf %s
"checking for sqlite3_result_double in -lsqlite3... " >&6; }
15198 if test ${ac_cv_lib_sqlite3_sqlite3_result_double+y}
15200 printf %s
"(cached) " >&6
15202 ac_check_lib_save_LIBS
=$LIBS
15203 LIBS
="-lsqlite3 $LIBS"
15204 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15207 /* Override any GCC internal prototype to avoid an error.
15208 Use char because int might match the return type of a GCC
15209 builtin and then its argument prototype would still apply. */
15210 char sqlite3_result_double ();
15214 return sqlite3_result_double ();
15219 if ac_fn_c_try_link
"$LINENO"
15221 ac_cv_lib_sqlite3_sqlite3_result_double
=yes
15223 ac_cv_lib_sqlite3_sqlite3_result_double
=no
15225 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15226 conftest
$ac_exeext conftest.
$ac_ext
15227 LIBS
=$ac_check_lib_save_LIBS
15229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_result_double" >&5
15230 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_result_double" >&6; }
15231 if test "x$ac_cv_lib_sqlite3_sqlite3_result_double" = xyes
15233 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15235 LIBS
="-lsqlite3 $LIBS"
15239 have_supported_sqlite3
=no
15245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_set_authorizer in -lsqlite3" >&5
15246 printf %s
"checking for sqlite3_set_authorizer in -lsqlite3... " >&6; }
15247 if test ${ac_cv_lib_sqlite3_sqlite3_set_authorizer+y}
15249 printf %s
"(cached) " >&6
15251 ac_check_lib_save_LIBS
=$LIBS
15252 LIBS
="-lsqlite3 $LIBS"
15253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15254 /* end confdefs.h. */
15256 /* Override any GCC internal prototype to avoid an error.
15257 Use char because int might match the return type of a GCC
15258 builtin and then its argument prototype would still apply. */
15259 char sqlite3_set_authorizer ();
15263 return sqlite3_set_authorizer ();
15268 if ac_fn_c_try_link
"$LINENO"
15270 ac_cv_lib_sqlite3_sqlite3_set_authorizer
=yes
15272 ac_cv_lib_sqlite3_sqlite3_set_authorizer
=no
15274 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15275 conftest
$ac_exeext conftest.
$ac_ext
15276 LIBS
=$ac_check_lib_save_LIBS
15278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&5
15279 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&6; }
15280 if test "x$ac_cv_lib_sqlite3_sqlite3_set_authorizer" = xyes
15282 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15284 LIBS
="-lsqlite3 $LIBS"
15288 have_supported_sqlite3
=no
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace_v2 in -lsqlite3" >&5
15295 printf %s
"checking for sqlite3_trace_v2 in -lsqlite3... " >&6; }
15296 if test ${ac_cv_lib_sqlite3_sqlite3_trace_v2+y}
15298 printf %s
"(cached) " >&6
15300 ac_check_lib_save_LIBS
=$LIBS
15301 LIBS
="-lsqlite3 $LIBS"
15302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15303 /* end confdefs.h. */
15305 /* Override any GCC internal prototype to avoid an error.
15306 Use char because int might match the return type of a GCC
15307 builtin and then its argument prototype would still apply. */
15308 char sqlite3_trace_v2 ();
15312 return sqlite3_trace_v2 ();
15317 if ac_fn_c_try_link
"$LINENO"
15319 ac_cv_lib_sqlite3_sqlite3_trace_v2
=yes
15321 ac_cv_lib_sqlite3_sqlite3_trace_v2
=no
15323 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15324 conftest
$ac_exeext conftest.
$ac_ext
15325 LIBS
=$ac_check_lib_save_LIBS
15327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace_v2" >&5
15328 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace_v2" >&6; }
15329 if test "x$ac_cv_lib_sqlite3_sqlite3_trace_v2" = xyes
15331 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15333 LIBS
="-lsqlite3 $LIBS"
15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace in -lsqlite3" >&5
15340 printf %s
"checking for sqlite3_trace in -lsqlite3... " >&6; }
15341 if test ${ac_cv_lib_sqlite3_sqlite3_trace+y}
15343 printf %s
"(cached) " >&6
15345 ac_check_lib_save_LIBS
=$LIBS
15346 LIBS
="-lsqlite3 $LIBS"
15347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15348 /* end confdefs.h. */
15350 /* Override any GCC internal prototype to avoid an error.
15351 Use char because int might match the return type of a GCC
15352 builtin and then its argument prototype would still apply. */
15353 char sqlite3_trace ();
15357 return sqlite3_trace ();
15362 if ac_fn_c_try_link
"$LINENO"
15364 ac_cv_lib_sqlite3_sqlite3_trace
=yes
15366 ac_cv_lib_sqlite3_sqlite3_trace
=no
15368 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15369 conftest
$ac_exeext conftest.
$ac_ext
15370 LIBS
=$ac_check_lib_save_LIBS
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace" >&5
15373 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace" >&6; }
15374 if test "x$ac_cv_lib_sqlite3_sqlite3_trace" = xyes
15376 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15378 LIBS
="-lsqlite3 $LIBS"
15382 have_supported_sqlite3
=no
15393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_value_double in -lsqlite3" >&5
15394 printf %s
"checking for sqlite3_value_double in -lsqlite3... " >&6; }
15395 if test ${ac_cv_lib_sqlite3_sqlite3_value_double+y}
15397 printf %s
"(cached) " >&6
15399 ac_check_lib_save_LIBS
=$LIBS
15400 LIBS
="-lsqlite3 $LIBS"
15401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15402 /* end confdefs.h. */
15404 /* Override any GCC internal prototype to avoid an error.
15405 Use char because int might match the return type of a GCC
15406 builtin and then its argument prototype would still apply. */
15407 char sqlite3_value_double ();
15411 return sqlite3_value_double ();
15416 if ac_fn_c_try_link
"$LINENO"
15418 ac_cv_lib_sqlite3_sqlite3_value_double
=yes
15420 ac_cv_lib_sqlite3_sqlite3_value_double
=no
15422 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15423 conftest
$ac_exeext conftest.
$ac_ext
15424 LIBS
=$ac_check_lib_save_LIBS
15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_value_double" >&5
15427 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_value_double" >&6; }
15428 if test "x$ac_cv_lib_sqlite3_sqlite3_value_double" = xyes
15430 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h
15432 LIBS
="-lsqlite3 $LIBS"
15436 have_supported_sqlite3
=no
15441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5
15442 printf %s
"checking for sqlite3_load_extension in -lsqlite3... " >&6; }
15443 if test ${ac_cv_lib_sqlite3_sqlite3_load_extension+y}
15445 printf %s
"(cached) " >&6
15447 ac_check_lib_save_LIBS
=$LIBS
15448 LIBS
="-lsqlite3 $LIBS"
15449 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15450 /* end confdefs.h. */
15452 /* Override any GCC internal prototype to avoid an error.
15453 Use char because int might match the return type of a GCC
15454 builtin and then its argument prototype would still apply. */
15455 char sqlite3_load_extension ();
15459 return sqlite3_load_extension ();
15464 if ac_fn_c_try_link
"$LINENO"
15466 ac_cv_lib_sqlite3_sqlite3_load_extension
=yes
15468 ac_cv_lib_sqlite3_sqlite3_load_extension
=no
15470 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15471 conftest
$ac_exeext conftest.
$ac_ext
15472 LIBS
=$ac_check_lib_save_LIBS
15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5
15475 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; }
15476 if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes
15478 have_sqlite3_load_extension
=yes
15480 have_sqlite3_load_extension
=no
15484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_serialize in -lsqlite3" >&5
15485 printf %s
"checking for sqlite3_serialize in -lsqlite3... " >&6; }
15486 if test ${ac_cv_lib_sqlite3_sqlite3_serialize+y}
15488 printf %s
"(cached) " >&6
15490 ac_check_lib_save_LIBS
=$LIBS
15491 LIBS
="-lsqlite3 $LIBS"
15492 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15493 /* end confdefs.h. */
15495 /* Override any GCC internal prototype to avoid an error.
15496 Use char because int might match the return type of a GCC
15497 builtin and then its argument prototype would still apply. */
15498 char sqlite3_serialize ();
15502 return sqlite3_serialize ();
15507 if ac_fn_c_try_link
"$LINENO"
15509 ac_cv_lib_sqlite3_sqlite3_serialize
=yes
15511 ac_cv_lib_sqlite3_sqlite3_serialize
=no
15513 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15514 conftest
$ac_exeext conftest.
$ac_ext
15515 LIBS
=$ac_check_lib_save_LIBS
15517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_serialize" >&5
15518 printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_serialize" >&6; }
15519 if test "x$ac_cv_lib_sqlite3_sqlite3_serialize" = xyes
15523 printf "%s\n" "#define PY_SQLITE_HAVE_SERIALIZE 1" >>confdefs.h
15531 have_supported_sqlite3
=no
15534 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
15539 CFLAGS
=$save_CFLAGS
15540 CPPFLAGS
=$save_CPPFLAGS
15541 LDFLAGS
=$save_LDFLAGS
15546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5
15547 printf %s
"checking for --enable-loadable-sqlite-extensions... " >&6; }
15548 # Check whether --enable-loadable-sqlite-extensions was given.
15549 if test ${enable_loadable_sqlite_extensions+y}
15551 enableval
=$enable_loadable_sqlite_extensions;
15552 if test "x$have_sqlite3_load_extension" = xno
15555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: n/a" >&5
15556 printf "%s\n" "n/a" >&6; }
15557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of SQLite does not support loadable extensions" >&5
15558 printf "%s\n" "$as_me: WARNING: Your version of SQLite does not support loadable extensions" >&2;}
15562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15563 printf "%s\n" "yes" >&6; }
15565 printf "%s\n" "#define PY_SQLITE_ENABLE_LOAD_EXTENSION 1" >>confdefs.h
15572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15573 printf "%s\n" "no" >&6; }
15581 "tcl >= 8.5.12 tk >= 8.5.12" \
15584 "tcl8.5 >= 8.5.12 tk8.5 >= 8.5.12" \
15585 "tcl85 >= 8.5.12 tk85 >= 8.5.12" \
15587 if test -n "$PKG_CONFIG" && \
15588 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
15589 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
15591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15592 test $ac_status = 0; }; then
15596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $_QUERY" >&5
15597 printf %s
"checking for $_QUERY... " >&6; }
15599 if test -n "$TCLTK_CFLAGS"; then
15600 pkg_cv_TCLTK_CFLAGS
="$TCLTK_CFLAGS"
15601 elif test -n "$PKG_CONFIG"; then
15602 if test -n "$PKG_CONFIG" && \
15603 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
15604 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
15606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15607 test $ac_status = 0; }; then
15608 pkg_cv_TCLTK_CFLAGS
=`$PKG_CONFIG --cflags "$_QUERY" 2>/dev/null`
15609 test "x$?" != "x0" && pkg_failed
=yes
15616 if test -n "$TCLTK_LIBS"; then
15617 pkg_cv_TCLTK_LIBS
="$TCLTK_LIBS"
15618 elif test -n "$PKG_CONFIG"; then
15619 if test -n "$PKG_CONFIG" && \
15620 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5
15621 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5
15623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15624 test $ac_status = 0; }; then
15625 pkg_cv_TCLTK_LIBS
=`$PKG_CONFIG --libs "$_QUERY" 2>/dev/null`
15626 test "x$?" != "x0" && pkg_failed
=yes
15636 if test $pkg_failed = yes; then
15637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15638 printf "%s\n" "no" >&6; }
15640 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15641 _pkg_short_errors_supported
=yes
15643 _pkg_short_errors_supported
=no
15645 if test $_pkg_short_errors_supported = yes; then
15646 TCLTK_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$_QUERY" 2>&1`
15648 TCLTK_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "$_QUERY" 2>&1`
15650 # Put the nasty error message in config.log where it belongs
15651 echo "$TCLTK_PKG_ERRORS" >&5
15654 elif test $pkg_failed = untried
; then
15655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15656 printf "%s\n" "no" >&6; }
15659 TCLTK_CFLAGS
=$pkg_cv_TCLTK_CFLAGS
15660 TCLTK_LIBS
=$pkg_cv_TCLTK_LIBS
15661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15662 printf "%s\n" "yes" >&6; }
15667 if test "x$found_tcltk" = xyes
15673 if test "x$found_tcltk" = xno
15676 TCLTK_CFLAGS
=${TCLTK_CFLAGS-""}
15677 TCLTK_LIBS
=${TCLTK_LIBS-""}
15681 case $ac_sys_system in #(
15684 if test -n "$PKG_CONFIG" && \
15685 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
15686 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
15688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15689 test $ac_status = 0; }; then
15693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
15694 printf %s
"checking for x11... " >&6; }
15696 if test -n "$X11_CFLAGS"; then
15697 pkg_cv_X11_CFLAGS
="$X11_CFLAGS"
15698 elif test -n "$PKG_CONFIG"; then
15699 if test -n "$PKG_CONFIG" && \
15700 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
15701 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
15703 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15704 test $ac_status = 0; }; then
15705 pkg_cv_X11_CFLAGS
=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
15706 test "x$?" != "x0" && pkg_failed
=yes
15713 if test -n "$X11_LIBS"; then
15714 pkg_cv_X11_LIBS
="$X11_LIBS"
15715 elif test -n "$PKG_CONFIG"; then
15716 if test -n "$PKG_CONFIG" && \
15717 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
15718 ($PKG_CONFIG --exists --print-errors "x11") 2>&5
15720 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15721 test $ac_status = 0; }; then
15722 pkg_cv_X11_LIBS
=`$PKG_CONFIG --libs "x11" 2>/dev/null`
15723 test "x$?" != "x0" && pkg_failed
=yes
15733 if test $pkg_failed = yes; then
15734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735 printf "%s\n" "no" >&6; }
15737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15738 _pkg_short_errors_supported
=yes
15740 _pkg_short_errors_supported
=no
15742 if test $_pkg_short_errors_supported = yes; then
15743 X11_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
15745 X11_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
15747 # Put the nasty error message in config.log where it belongs
15748 echo "$X11_PKG_ERRORS" >&5
15750 as_fn_error $?
"Package requirements (x11) were not met:
15754 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15755 installed software in a non-standard prefix.
15757 Alternatively, you may set the environment variables X11_CFLAGS
15758 and X11_LIBS to avoid the need to call pkg-config.
15759 See the pkg-config man page for more details." "$LINENO" 5
15760 elif test $pkg_failed = untried
; then
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15762 printf "%s\n" "no" >&6; }
15763 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15764 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
15765 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
15766 is in your PATH or set the PKG_CONFIG environment variable to the full
15767 path to pkg-config.
15769 Alternatively, you may set the environment variables X11_CFLAGS
15770 and X11_LIBS to avoid the need to call pkg-config.
15771 See the pkg-config man page for more details.
15773 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15774 See \`config.log' for more details" "$LINENO" 5; }
15776 X11_CFLAGS
=$pkg_cv_X11_CFLAGS
15777 X11_LIBS
=$pkg_cv_X11_LIBS
15778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15779 printf "%s\n" "yes" >&6; }
15781 TCLTK_CFLAGS
="$TCLTK_CFLAGS $X11_CFLAGS"
15782 TCLTK_LIBS
="$TCLTK_LIBS $X11_LIBS"
15793 save_CFLAGS
=$CFLAGS
15794 save_CPPFLAGS
=$CPPFLAGS
15795 save_LDFLAGS
=$LDFLAGS
15799 CPPFLAGS
="$CPPFLAGS $TCLTK_CFLAGS"
15800 LIBS
="$TCLTK_LIBS $LDFLAGS"
15802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15803 /* end confdefs.h. */
15808 #if defined(TK_HEX_VERSION)
15809 # if TK_HEX_VERSION < 0x0805020c
15810 # error "Tk older than 8.5.12 not supported"
15813 #if (TCL_MAJOR_VERSION < 8) || \
15814 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 5)) || \
15815 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION == 5) && (TCL_RELEASE_SERIAL < 12))
15816 # error "Tcl older than 8.5.12 not supported"
15818 #if (TK_MAJOR_VERSION < 8) || \
15819 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION < 5)) || \
15820 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION == 5) && (TK_RELEASE_SERIAL < 12))
15821 # error "Tk older than 8.5.12 not supported"
15828 void *x1 = Tcl_Init;
15829 void *x2 = Tk_Init;
15836 if ac_fn_c_try_link
"$LINENO"
15840 as_fn_append TCLTK_CFLAGS
" -Wno-strict-prototypes -DWITH_APPINIT=1"
15847 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15848 conftest
$ac_exeext conftest.
$ac_ext
15850 CFLAGS
=$save_CFLAGS
15851 CPPFLAGS
=$save_CPPFLAGS
15852 LDFLAGS
=$save_LDFLAGS
15859 save_CFLAGS
=$CFLAGS
15860 save_CPPFLAGS
=$CPPFLAGS
15861 save_LDFLAGS
=$LDFLAGS
15865 CPPFLAGS
="$CPPFLAGS $GDBM_CFLAGS"
15866 LDFLAGS
="$GDBM_LIBS $LDFLAGS"
15867 for ac_header
in gdbm.h
15869 ac_fn_c_check_header_compile
"$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default"
15870 if test "x$ac_cv_header_gdbm_h" = xyes
15872 printf "%s\n" "#define HAVE_GDBM_H 1" >>confdefs.h
15874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5
15875 printf %s
"checking for gdbm_open in -lgdbm... " >&6; }
15876 if test ${ac_cv_lib_gdbm_gdbm_open+y}
15878 printf %s
"(cached) " >&6
15880 ac_check_lib_save_LIBS
=$LIBS
15881 LIBS
="-lgdbm $LIBS"
15882 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15885 /* Override any GCC internal prototype to avoid an error.
15886 Use char because int might match the return type of a GCC
15887 builtin and then its argument prototype would still apply. */
15892 return gdbm_open ();
15897 if ac_fn_c_try_link
"$LINENO"
15899 ac_cv_lib_gdbm_gdbm_open
=yes
15901 ac_cv_lib_gdbm_gdbm_open
=no
15903 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15904 conftest
$ac_exeext conftest.
$ac_ext
15905 LIBS
=$ac_check_lib_save_LIBS
15907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5
15908 printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; }
15909 if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes
15913 GDBM_LIBS
=${GDBM_LIBS-"-lgdbm"}
15926 CFLAGS
=$save_CFLAGS
15927 CPPFLAGS
=$save_CPPFLAGS
15928 LDFLAGS
=$save_LDFLAGS
15933 for ac_header
in ndbm.h
15935 ac_fn_c_check_header_compile
"$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
15936 if test "x$ac_cv_header_ndbm_h" = xyes
15938 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h
15940 save_CFLAGS
=$CFLAGS
15941 save_CPPFLAGS
=$CPPFLAGS
15942 save_LDFLAGS
=$LDFLAGS
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
15947 printf %s
"checking for library containing dbm_open... " >&6; }
15948 if test ${ac_cv_search_dbm_open+y}
15950 printf %s
"(cached) " >&6
15952 ac_func_search_save_LIBS
=$LIBS
15953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15956 /* Override any GCC internal prototype to avoid an error.
15957 Use char because int might match the return type of a GCC
15958 builtin and then its argument prototype would still apply. */
15963 return dbm_open ();
15968 for ac_lib
in '' ndbm gdbm_compat
15970 if test -z "$ac_lib"; then
15971 ac_res
="none required"
15974 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15976 if ac_fn_c_try_link
"$LINENO"
15978 ac_cv_search_dbm_open
=$ac_res
15980 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
15982 if test ${ac_cv_search_dbm_open+y}
15987 if test ${ac_cv_search_dbm_open+y}
15991 ac_cv_search_dbm_open
=no
15993 rm conftest.
$ac_ext
15994 LIBS
=$ac_func_search_save_LIBS
15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
15997 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
15998 ac_res
=$ac_cv_search_dbm_open
15999 if test "$ac_res" != no
16001 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16006 CFLAGS
=$save_CFLAGS
16007 CPPFLAGS
=$save_CPPFLAGS
16008 LDFLAGS
=$save_LDFLAGS
16017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ndbm presence and linker args" >&5
16018 printf %s
"checking for ndbm presence and linker args... " >&6; }
16019 case $ac_cv_search_dbm_open in #(
16020 *ndbm
*|
*gdbm_compat
*) :
16022 dbm_ndbm
="$ac_cv_search_dbm_open"
16036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ndbm ($dbm_ndbm)" >&5
16037 printf "%s\n" "$have_ndbm ($dbm_ndbm)" >&6; }
16039 { ac_cv_header_gdbm_ndbm_h
=; unset ac_cv_header_gdbm_ndbm_h
;}
16040 if test ${ac_cv_header_gdbm_slash_ndbm_h+y}
16042 printf %s
"(cached) " >&6
16045 ac_fn_c_check_header_compile
"$LINENO" "gdbm/ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
16046 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes
16048 ac_cv_header_gdbm_slash_ndbm_h
=yes
16050 ac_cv_header_gdbm_slash_ndbm_h
=no
16057 if test "x$ac_cv_header_gdbm_slash_ndbm_h" = xyes
16061 printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h
16066 { ac_cv_header_gdbm_ndbm_h
=; unset ac_cv_header_gdbm_ndbm_h
;}
16067 if test ${ac_cv_header_gdbm_dash_ndbm_h+y}
16069 printf %s
"(cached) " >&6
16072 ac_fn_c_check_header_compile
"$LINENO" "gdbm-ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default"
16073 if test "x$ac_cv_header_gdbm_ndbm_h" = xyes
16075 ac_cv_header_gdbm_dash_ndbm_h
=yes
16077 ac_cv_header_gdbm_dash_ndbm_h
=no
16084 if test "x$ac_cv_header_gdbm_dash_ndbm_h" = xyes
16088 printf "%s\n" "#define HAVE_GDBM_DASH_NDBM_H 1" >>confdefs.h
16092 { ac_cv_header_gdbm_ndbm_h
=; unset ac_cv_header_gdbm_ndbm_h
;}
16094 if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then
16095 { ac_cv_search_dbm_open
=; unset ac_cv_search_dbm_open
;}
16096 save_CFLAGS
=$CFLAGS
16097 save_CPPFLAGS
=$CPPFLAGS
16098 save_LDFLAGS
=$LDFLAGS
16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5
16103 printf %s
"checking for library containing dbm_open... " >&6; }
16104 if test ${ac_cv_search_dbm_open+y}
16106 printf %s
"(cached) " >&6
16108 ac_func_search_save_LIBS
=$LIBS
16109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16110 /* end confdefs.h. */
16112 /* Override any GCC internal prototype to avoid an error.
16113 Use char because int might match the return type of a GCC
16114 builtin and then its argument prototype would still apply. */
16119 return dbm_open ();
16124 for ac_lib
in '' gdbm_compat
16126 if test -z "$ac_lib"; then
16127 ac_res
="none required"
16130 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
16132 if ac_fn_c_try_link
"$LINENO"
16134 ac_cv_search_dbm_open
=$ac_res
16136 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16138 if test ${ac_cv_search_dbm_open+y}
16143 if test ${ac_cv_search_dbm_open+y}
16147 ac_cv_search_dbm_open
=no
16149 rm conftest.
$ac_ext
16150 LIBS
=$ac_func_search_save_LIBS
16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5
16153 printf "%s\n" "$ac_cv_search_dbm_open" >&6; }
16154 ac_res
=$ac_cv_search_dbm_open
16155 if test "$ac_res" != no
16157 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
16158 have_gdbm_compat
=yes
16160 have_gdbm_compat
=no
16164 CFLAGS
=$save_CFLAGS
16165 CPPFLAGS
=$save_CPPFLAGS
16166 LDFLAGS
=$save_LDFLAGS
16172 # Check for libdb >= 5 with dbm_open()
16173 # db.h re-defines the name of the function
16174 for ac_header
in db.h
16176 ac_fn_c_check_header_compile
"$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
16177 if test "x$ac_cv_header_db_h" = xyes
16179 printf "%s\n" "#define HAVE_DB_H 1" >>confdefs.h
16181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdb" >&5
16182 printf %s
"checking for libdb... " >&6; }
16183 if test ${ac_cv_have_libdb+y}
16185 printf %s
"(cached) " >&6
16188 save_CFLAGS
=$CFLAGS
16189 save_CPPFLAGS
=$CPPFLAGS
16190 save_LDFLAGS
=$LDFLAGS
16195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16198 #define DB_DBM_HSEARCH 1
16200 #if DB_VERSION_MAJOR < 5
16201 #error "dh.h: DB_VERSION_MAJOR < 5 is not supported."
16207 DBM *dbm = dbm_open(NULL, 0, 0)
16213 if ac_fn_c_try_link
"$LINENO"
16215 ac_cv_have_libdb
=yes
16217 ac_cv_have_libdb
=no
16219 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16220 conftest
$ac_exeext conftest.
$ac_ext
16222 CFLAGS
=$save_CFLAGS
16223 CPPFLAGS
=$save_CPPFLAGS
16224 LDFLAGS
=$save_LDFLAGS
16230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_libdb" >&5
16231 printf "%s\n" "$ac_cv_have_libdb" >&6; }
16232 if test "x$ac_cv_have_libdb" = xyes
16236 printf "%s\n" "#define HAVE_LIBDB 1" >>confdefs.h
16245 # Check for --with-dbmliborder
16246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5
16247 printf %s
"checking for --with-dbmliborder... " >&6; }
16249 # Check whether --with-dbmliborder was given.
16250 if test ${with_dbmliborder+y}
16252 withval
=$with_dbmliborder;
16254 with_dbmliborder
=gdbm
:ndbm
:bdb
16258 have_gdbm_dbmliborder
=no
16261 for db
in $with_dbmliborder; do
16266 have_gdbm_dbmliborder
=yes ;; #(
16270 with_dbmliborder
=error
16275 if test "x$with_dbmliborder" = xerror
16278 as_fn_error $?
"proper usage is --with-dbmliborder=db1:db2:... (gdbm:ndbm:bdb)" "$LINENO" 5
16281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5
16282 printf "%s\n" "$with_dbmliborder" >&6; }
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dbm module CFLAGS and LIBS" >&5
16285 printf %s
"checking for _dbm module CFLAGS and LIBS... " >&6; }
16289 for db
in $with_dbmliborder; do
16292 if test "$have_ndbm" = yes; then
16293 DBM_CFLAGS
="-DUSE_NDBM"
16294 DBM_LIBS
="$dbm_ndbm"
16300 if test "$have_gdbm_compat" = yes; then
16301 DBM_CFLAGS
="-DUSE_GDBM_COMPAT"
16302 DBM_LIBS
="-lgdbm_compat"
16308 if test "$ac_cv_have_libdb" = yes; then
16309 DBM_CFLAGS
="-DUSE_BERKDB"
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DBM_CFLAGS $DBM_LIBS" >&5
16319 printf "%s\n" "$DBM_CFLAGS $DBM_LIBS" >&6; }
16321 # Templates for things AC_DEFINEd more than once.
16322 # For a single AC_DEFINE, no template is needed.
16325 if test "$ac_cv_pthread_is_default" = yes
16327 # Defining _REENTRANT on system with POSIX threads should not hurt.
16328 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
16331 if test "$ac_sys_system" = "SunOS"; then
16332 CFLAGS
="$CFLAGS -D_REENTRANT"
16334 elif test "$ac_cv_kpthread" = "yes"
16337 if test "$ac_cv_cxx_thread" = "yes"; then
16338 CXX
="$CXX -Kpthread"
16341 elif test "$ac_cv_kthread" = "yes"
16344 if test "$ac_cv_cxx_thread" = "yes"; then
16345 CXX
="$CXX -Kthread"
16348 elif test "$ac_cv_pthread" = "yes"
16351 if test "$ac_cv_cxx_thread" = "yes"; then
16352 CXX
="$CXX -pthread"
16356 if test ! -z "$withval" -a -d "$withval"
16357 then LDFLAGS
="$LDFLAGS -L$withval"
16360 # According to the POSIX spec, a pthreads implementation must
16361 # define _POSIX_THREADS in unistd.h. Some apparently don't
16362 # (e.g. gnu pth with pthread emulation)
16363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5
16364 printf %s
"checking for _POSIX_THREADS in unistd.h... " >&6; }
16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS defined in unistd.h" >&5
16367 printf %s
"checking for _POSIX_THREADS defined in unistd.h... " >&6; }
16368 if test ${ac_cv_defined__POSIX_THREADS_unistd_h+y}
16370 printf %s
"(cached) " >&6
16372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16373 /* end confdefs.h. */
16374 #include <unistd.h>
16379 #ifdef _POSIX_THREADS
16390 if ac_fn_c_try_compile
"$LINENO"
16392 ac_cv_defined__POSIX_THREADS_unistd_h
=yes
16394 ac_cv_defined__POSIX_THREADS_unistd_h
=no
16396 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__POSIX_THREADS_unistd_h" >&5
16399 printf "%s\n" "$ac_cv_defined__POSIX_THREADS_unistd_h" >&6; }
16400 if test $ac_cv_defined__POSIX_THREADS_unistd_h != "no"
16402 unistd_defines_pthreads
=yes
16404 unistd_defines_pthreads
=no
16406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5
16407 printf "%s\n" "$unistd_defines_pthreads" >&6; }
16409 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
16411 # Just looking for pthread_create in libpthread is not enough:
16412 # on HP/UX, pthread.h renames pthread_create to a different symbol name.
16413 # So we really have to include pthread.h, and then link.
16415 LIBS
="$LIBS -lpthread"
16416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16417 printf %s
"checking for pthread_create in -lpthread... " >&6; }
16418 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16419 /* end confdefs.h. */
16422 #include <stdlib.h>
16423 #include <pthread.h>
16425 void * start_routine (void *arg) { exit (0); }
16430 pthread_create (NULL, NULL, start_routine, NULL)
16435 if ac_fn_c_try_link
"$LINENO"
16438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16439 printf "%s\n" "yes" >&6; }
16445 ac_fn_c_check_func
"$LINENO" "pthread_detach" "ac_cv_func_pthread_detach"
16446 if test "x$ac_cv_func_pthread_detach" = xyes
16453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
16454 printf %s
"checking for pthread_create in -lpthreads... " >&6; }
16455 if test ${ac_cv_lib_pthreads_pthread_create+y}
16457 printf %s
"(cached) " >&6
16459 ac_check_lib_save_LIBS
=$LIBS
16460 LIBS
="-lpthreads $LIBS"
16461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16462 /* end confdefs.h. */
16464 /* Override any GCC internal prototype to avoid an error.
16465 Use char because int might match the return type of a GCC
16466 builtin and then its argument prototype would still apply. */
16467 char pthread_create ();
16471 return pthread_create ();
16476 if ac_fn_c_try_link
"$LINENO"
16478 ac_cv_lib_pthreads_pthread_create
=yes
16480 ac_cv_lib_pthreads_pthread_create
=no
16482 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16483 conftest
$ac_exeext conftest.
$ac_ext
16484 LIBS
=$ac_check_lib_save_LIBS
16486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
16487 printf "%s\n" "$ac_cv_lib_pthreads_pthread_create" >&6; }
16488 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes
16492 LIBS
="$LIBS -lpthreads"
16496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
16497 printf %s
"checking for pthread_create in -lc_r... " >&6; }
16498 if test ${ac_cv_lib_c_r_pthread_create+y}
16500 printf %s
"(cached) " >&6
16502 ac_check_lib_save_LIBS
=$LIBS
16504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16505 /* end confdefs.h. */
16507 /* Override any GCC internal prototype to avoid an error.
16508 Use char because int might match the return type of a GCC
16509 builtin and then its argument prototype would still apply. */
16510 char pthread_create ();
16514 return pthread_create ();
16519 if ac_fn_c_try_link
"$LINENO"
16521 ac_cv_lib_c_r_pthread_create
=yes
16523 ac_cv_lib_c_r_pthread_create
=no
16525 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16526 conftest
$ac_exeext conftest.
$ac_ext
16527 LIBS
=$ac_check_lib_save_LIBS
16529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
16530 printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; }
16531 if test "x$ac_cv_lib_c_r_pthread_create" = xyes
16539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5
16540 printf %s
"checking for __pthread_create_system in -lpthread... " >&6; }
16541 if test ${ac_cv_lib_pthread___pthread_create_system+y}
16543 printf %s
"(cached) " >&6
16545 ac_check_lib_save_LIBS
=$LIBS
16546 LIBS
="-lpthread $LIBS"
16547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16548 /* end confdefs.h. */
16550 /* Override any GCC internal prototype to avoid an error.
16551 Use char because int might match the return type of a GCC
16552 builtin and then its argument prototype would still apply. */
16553 char __pthread_create_system ();
16557 return __pthread_create_system ();
16562 if ac_fn_c_try_link
"$LINENO"
16564 ac_cv_lib_pthread___pthread_create_system
=yes
16566 ac_cv_lib_pthread___pthread_create_system
=no
16568 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16569 conftest
$ac_exeext conftest.
$ac_ext
16570 LIBS
=$ac_check_lib_save_LIBS
16572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5
16573 printf "%s\n" "$ac_cv_lib_pthread___pthread_create_system" >&6; }
16574 if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes
16578 LIBS
="$LIBS -lpthread"
16582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5
16583 printf %s
"checking for pthread_create in -lcma... " >&6; }
16584 if test ${ac_cv_lib_cma_pthread_create+y}
16586 printf %s
"(cached) " >&6
16588 ac_check_lib_save_LIBS
=$LIBS
16590 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16593 /* Override any GCC internal prototype to avoid an error.
16594 Use char because int might match the return type of a GCC
16595 builtin and then its argument prototype would still apply. */
16596 char pthread_create ();
16600 return pthread_create ();
16605 if ac_fn_c_try_link
"$LINENO"
16607 ac_cv_lib_cma_pthread_create
=yes
16609 ac_cv_lib_cma_pthread_create
=no
16611 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16612 conftest
$ac_exeext conftest.
$ac_ext
16613 LIBS
=$ac_check_lib_save_LIBS
16615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5
16616 printf "%s\n" "$ac_cv_lib_cma_pthread_create" >&6; }
16617 if test "x$ac_cv_lib_cma_pthread_create" = xyes
16625 case $ac_sys_system in #(
16627 posix_threads
=stub
;; #(
16629 as_fn_error $?
"could not find pthreads on your system" "$LINENO" 5
16644 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16645 conftest
$ac_exeext conftest.
$ac_ext
16647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5
16648 printf %s
"checking for usconfig in -lmpc... " >&6; }
16649 if test ${ac_cv_lib_mpc_usconfig+y}
16651 printf %s
"(cached) " >&6
16653 ac_check_lib_save_LIBS
=$LIBS
16655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h. */
16658 /* Override any GCC internal prototype to avoid an error.
16659 Use char because int might match the return type of a GCC
16660 builtin and then its argument prototype would still apply. */
16665 return usconfig ();
16670 if ac_fn_c_try_link
"$LINENO"
16672 ac_cv_lib_mpc_usconfig
=yes
16674 ac_cv_lib_mpc_usconfig
=no
16676 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
16677 conftest
$ac_exeext conftest.
$ac_ext
16678 LIBS
=$ac_check_lib_save_LIBS
16680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5
16681 printf "%s\n" "$ac_cv_lib_mpc_usconfig" >&6; }
16682 if test "x$ac_cv_lib_mpc_usconfig" = xyes
16692 if test "$posix_threads" = "yes"; then
16693 if test "$unistd_defines_pthreads" = "no"; then
16695 printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h
16699 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8.
16700 case $ac_sys_system/$ac_sys_release in
16702 printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h
16706 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16710 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16714 printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
16719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5
16720 printf %s
"checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; }
16721 if test ${ac_cv_pthread_system_supported+y}
16723 printf %s
"(cached) " >&6
16725 if test "$cross_compiling" = yes
16727 ac_cv_pthread_system_supported
=no
16729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16730 /* end confdefs.h. */
16733 #include <pthread.h>
16734 void *foo(void *parm) {
16738 pthread_attr_t attr;
16740 if (pthread_attr_init(&attr)) return (-1);
16741 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1);
16742 if (pthread_create(&id, &attr, foo, NULL)) return (-1);
16746 if ac_fn_c_try_run
"$LINENO"
16748 ac_cv_pthread_system_supported
=yes
16750 ac_cv_pthread_system_supported
=no
16752 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
16753 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5
16759 printf "%s\n" "$ac_cv_pthread_system_supported" >&6; }
16760 if test "$ac_cv_pthread_system_supported" = "yes"; then
16762 printf "%s\n" "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h
16766 for ac_func
in pthread_sigmask
16768 ac_fn_c_check_func
"$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask"
16769 if test "x$ac_cv_func_pthread_sigmask" = xyes
16771 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h
16772 case $ac_sys_system in
16775 printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h
16782 ac_fn_c_check_func
"$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid"
16783 if test "x$ac_cv_func_pthread_getcpuclockid" = xyes
16785 printf "%s\n" "#define HAVE_PTHREAD_GETCPUCLOCKID 1" >>confdefs.h
16791 if test "x$posix_threads" = xstub
16795 printf "%s\n" "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h
16800 # Check for enable-ipv6
16802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5
16803 printf %s
"checking if --enable-ipv6 is specified... " >&6; }
16804 # Check whether --enable-ipv6 was given.
16805 if test ${enable_ipv6+y}
16807 enableval
=$enable_ipv6; case "$enableval" in
16809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16810 printf "%s\n" "no" >&6; }
16813 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16814 printf "%s\n" "yes" >&6; }
16815 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
16822 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16823 /* end confdefs.h. */
16824 /* AF_INET6 available check */
16825 #include <sys/types.h>
16826 #include <sys/socket.h>
16830 int domain = AF_INET6;
16835 if ac_fn_c_try_compile
"$LINENO"
16845 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16847 case $ac_sys_system in #(
16855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6" >&5
16856 printf "%s\n" "$ipv6" >&6; }
16858 if test "$ipv6" = "yes"; then
16859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5
16860 printf %s
"checking if RFC2553 API is available... " >&6; }
16861 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h. */
16864 #include <sys/types.h>
16865 #include <netinet/in.h>
16869 struct sockaddr_in6 x;
16876 if ac_fn_c_try_compile
"$LINENO"
16879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16880 printf "%s\n" "yes" >&6; }
16885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 printf "%s\n" "no" >&6; }
16890 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16893 if test "$ipv6" = "yes"; then
16894 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
16905 if test "$ipv6" = yes -a "$cross_compiling" = no
; then
16906 for i
in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta
;
16911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPV6_INRIA_VERSION defined in netinet/in.h" >&5
16912 printf %s
"checking for IPV6_INRIA_VERSION defined in netinet/in.h... " >&6; }
16913 if test ${ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h+y}
16915 printf %s
"(cached) " >&6
16917 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16918 /* end confdefs.h. */
16919 #include <netinet/in.h>
16924 #ifdef IPV6_INRIA_VERSION
16935 if ac_fn_c_try_compile
"$LINENO"
16937 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h
=yes
16939 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h
=no
16941 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&5
16944 printf "%s\n" "$ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&6; }
16945 if test $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h != "no"
16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __KAME__ defined in netinet/in.h" >&5
16953 printf %s
"checking for __KAME__ defined in netinet/in.h... " >&6; }
16954 if test ${ac_cv_defined___KAME___netinet_in_h+y}
16956 printf %s
"(cached) " >&6
16958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960 #include <netinet/in.h>
16976 if ac_fn_c_try_compile
"$LINENO"
16978 ac_cv_defined___KAME___netinet_in_h
=yes
16980 ac_cv_defined___KAME___netinet_in_h
=no
16982 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
16984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___KAME___netinet_in_h" >&5
16985 printf "%s\n" "$ac_cv_defined___KAME___netinet_in_h" >&6; }
16986 if test $ac_cv_defined___KAME___netinet_in_h != "no"
16990 ipv6libdir
=/usr
/local
/v
6/lib
16996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __GLIBC__ defined in features.h" >&5
16997 printf %s
"checking for __GLIBC__ defined in features.h... " >&6; }
16998 if test ${ac_cv_defined___GLIBC___features_h+y}
17000 printf %s
"(cached) " >&6
17002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17003 /* end confdefs.h. */
17004 #include <features.h>
17020 if ac_fn_c_try_compile
"$LINENO"
17022 ac_cv_defined___GLIBC___features_h
=yes
17024 ac_cv_defined___GLIBC___features_h
=no
17026 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___GLIBC___features_h" >&5
17029 printf "%s\n" "$ac_cv_defined___GLIBC___features_h" >&6; }
17030 if test $ac_cv_defined___GLIBC___features_h != "no"
17037 if test -d /usr
/inet6
; then
17040 ipv6libdir
=/usr
/inet
6/lib
17041 BASECFLAGS
="-I/usr/inet6/include $BASECFLAGS"
17045 if test -f /etc
/netconfig
; then
17046 if $GREP -q tcp6
/etc
/netconfig
; then
17054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _TOSHIBA_INET6 defined in sys/param.h" >&5
17055 printf %s
"checking for _TOSHIBA_INET6 defined in sys/param.h... " >&6; }
17056 if test ${ac_cv_defined__TOSHIBA_INET6_sys_param_h+y}
17058 printf %s
"(cached) " >&6
17060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17062 #include <sys/param.h>
17067 #ifdef _TOSHIBA_INET6
17078 if ac_fn_c_try_compile
"$LINENO"
17080 ac_cv_defined__TOSHIBA_INET6_sys_param_h
=yes
17082 ac_cv_defined__TOSHIBA_INET6_sys_param_h
=no
17084 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&5
17087 printf "%s\n" "$ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&6; }
17088 if test $ac_cv_defined__TOSHIBA_INET6_sys_param_h != "no"
17092 ipv6libdir
=/usr
/local
/v
6/lib
17097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h" >&5
17098 printf %s
"checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h... " >&6; }
17099 if test ${ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h+y}
17101 printf %s
"(cached) " >&6
17103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17104 /* end confdefs.h. */
17105 #include </usr/local/v6/include/sys/v6config.h>
17121 if ac_fn_c_try_compile
"$LINENO"
17123 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h
=yes
17125 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h
=no
17127 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&5
17130 printf "%s\n" "$ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&6; }
17131 if test $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h != "no"
17135 ipv6libdir
=/usr
/local
/v
6/lib
17136 BASECFLAGS
="-I/usr/local/v6/include $BASECFLAGS"
17141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ZETA_MINAMI_INET6 defined in sys/param.h" >&5
17142 printf %s
"checking for _ZETA_MINAMI_INET6 defined in sys/param.h... " >&6; }
17143 if test ${ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h+y}
17145 printf %s
"(cached) " >&6
17147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17148 /* end confdefs.h. */
17149 #include <sys/param.h>
17154 #ifdef _ZETA_MINAMI_INET6
17165 if ac_fn_c_try_compile
"$LINENO"
17167 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h
=yes
17169 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h
=no
17171 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&5
17174 printf "%s\n" "$ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&6; }
17175 if test $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h != "no"
17179 ipv6libdir
=/usr
/local
/v
6/lib
17183 if test "$ipv6type" != "unknown"; then
17187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5
17188 printf %s
"checking ipv6 stack type... " >&6; }
17189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5
17190 printf "%s\n" "$ipv6type" >&6; }
17193 if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then
17194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 library" >&5
17195 printf %s
"checking ipv6 library... " >&6; }
17196 if test -d $ipv6libdir -a -f $ipv6libdir/lib
$ipv6lib.a
; then
17197 LIBS
="-L$ipv6libdir -l$ipv6lib $LIBS"
17198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: lib$ipv6lib" >&5
17199 printf "%s\n" "lib$ipv6lib" >&6; }
17201 if test "x$ipv6trylibc" = xyes
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libc" >&5
17205 printf "%s\n" "libc" >&6; }
17209 as_fn_error $?
"No $ipv6lib library found; cannot continue. You need to fetch lib$ipv6lib.a from appropriate ipv6 kit and compile beforehand." "$LINENO" 5
17216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CAN_RAW_FD_FRAMES" >&5
17217 printf %s
"checking CAN_RAW_FD_FRAMES... " >&6; }
17218 if test ${ac_cv_can_raw_fd_frames+y}
17220 printf %s
"(cached) " >&6
17223 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17224 /* end confdefs.h. */
17225 /* CAN_RAW_FD_FRAMES available check */
17226 #include <linux/can/raw.h>
17230 int can_raw_fd_frames = CAN_RAW_FD_FRAMES;
17235 if ac_fn_c_try_compile
"$LINENO"
17237 ac_cv_can_raw_fd_frames
=yes
17239 ac_cv_can_raw_fd_frames
=no
17241 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_fd_frames" >&5
17245 printf "%s\n" "$ac_cv_can_raw_fd_frames" >&6; }
17246 if test "x$ac_cv_can_raw_fd_frames" = xyes
17250 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h
17255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5
17256 printf %s
"checking for CAN_RAW_JOIN_FILTERS... " >&6; }
17257 if test ${ac_cv_can_raw_join_filters+y}
17259 printf %s
"(cached) " >&6
17262 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17263 /* end confdefs.h. */
17265 #include <linux/can/raw.h>
17269 int can_raw_join_filters = CAN_RAW_JOIN_FILTERS;
17274 if ac_fn_c_try_compile
"$LINENO"
17276 ac_cv_can_raw_join_filters
=yes
17278 ac_cv_can_raw_join_filters
=no
17280 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_join_filters" >&5
17284 printf "%s\n" "$ac_cv_can_raw_join_filters" >&6; }
17285 if test "x$ac_cv_can_raw_join_filters" = xyes
17289 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h
17294 # Check for --with-doc-strings
17295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5
17296 printf %s
"checking for --with-doc-strings... " >&6; }
17298 # Check whether --with-doc-strings was given.
17299 if test ${with_doc_strings+y}
17301 withval
=$with_doc_strings;
17305 if test -z "$with_doc_strings"
17306 then with_doc_strings
="yes"
17308 if test "$with_doc_strings" != "no"
17311 printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h
17314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5
17315 printf "%s\n" "$with_doc_strings" >&6; }
17317 # Check for stdatomic.h, required for mimalloc.
17318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5
17319 printf %s
"checking for stdatomic.h... " >&6; }
17320 if test ${ac_cv_header_stdatomic_h+y}
17322 printf %s
"(cached) " >&6
17325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17326 /* end confdefs.h. */
17329 #include <stdatomic.h>
17330 atomic_int int_var;
17331 atomic_uintptr_t uintptr_var;
17333 atomic_store_explicit(&int_var, 5, memory_order_relaxed);
17334 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed);
17335 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst);
17341 if ac_fn_c_try_link
"$LINENO"
17343 ac_cv_header_stdatomic_h
=yes
17345 ac_cv_header_stdatomic_h
=no
17347 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
17348 conftest
$ac_exeext conftest.
$ac_ext
17351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdatomic_h" >&5
17352 printf "%s\n" "$ac_cv_header_stdatomic_h" >&6; }
17354 if test "x$ac_cv_header_stdatomic_h" = xyes
17358 printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h
17363 # Check for GCC >= 4.7 and clang __atomic builtin functions
17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5
17365 printf %s
"checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; }
17366 if test ${ac_cv_builtin_atomic+y}
17368 printf %s
"(cached) " >&6
17371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17372 /* end confdefs.h. */
17377 __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST);
17378 (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST);
17384 if ac_fn_c_try_link
"$LINENO"
17386 ac_cv_builtin_atomic
=yes
17388 ac_cv_builtin_atomic
=no
17390 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
17391 conftest
$ac_exeext conftest.
$ac_ext
17394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_builtin_atomic" >&5
17395 printf "%s\n" "$ac_cv_builtin_atomic" >&6; }
17397 if test "x$ac_cv_builtin_atomic" = xyes
17401 printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h
17407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-mimalloc" >&5
17408 printf %s
"checking for --with-mimalloc... " >&6; }
17410 # Check whether --with-mimalloc was given.
17411 if test ${with_mimalloc+y}
17413 withval
=$with_mimalloc;
17415 with_mimalloc
="$ac_cv_header_stdatomic_h"
17420 if test "$with_mimalloc" != no
; then
17421 if test "$ac_cv_header_stdatomic_h" != yes; then
17422 # mimalloc-atomic.h wants C11 stdatomic.h on POSIX
17423 as_fn_error $?
"mimalloc requires stdatomic.h, use --without-mimalloc to disable mimalloc." "$LINENO" 5
17427 printf "%s\n" "#define WITH_MIMALLOC 1" >>confdefs.h
17429 MIMALLOC_HEADERS
='$(MIMALLOC_HEADERS)'
17431 elif test "$disable_gil" = "yes"; then
17432 as_fn_error $?
"--disable-gil requires mimalloc memory allocator (--with-mimalloc)." "$LINENO" 5
17435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_mimalloc" >&5
17436 printf "%s\n" "$with_mimalloc" >&6; }
17437 INSTALL_MIMALLOC
=$with_mimalloc
17441 # Check for Python-specific malloc support
17442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5
17443 printf %s
"checking for --with-pymalloc... " >&6; }
17445 # Check whether --with-pymalloc was given.
17446 if test ${with_pymalloc+y}
17448 withval
=$with_pymalloc;
17452 if test -z "$with_pymalloc"
17454 case $ac_sys_system in #(
17456 with_pymalloc
="no" ;; #(
17458 with_pymalloc
="no" ;; #(
17460 with_pymalloc
="yes"
17464 if test "$with_pymalloc" != "no"
17467 printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h
17470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5
17471 printf "%s\n" "$with_pymalloc" >&6; }
17473 # Check whether objects such as float, tuple and dict are using
17474 # freelists to optimization memory allocation.
17475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-freelists" >&5
17476 printf %s
"checking for --with-freelists... " >&6; }
17478 # Check whether --with-freelists was given.
17479 if test ${with_freelists+y}
17481 withval
=$with_freelists;
17485 if test -z "$with_freelists"
17487 with_freelists
="yes"
17489 if test "$with_freelists" != "no"
17492 printf "%s\n" "#define WITH_FREELISTS 1" >>confdefs.h
17495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_freelists" >&5
17496 printf "%s\n" "$with_freelists" >&6; }
17498 # Check for --with-c-locale-coercion
17499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5
17500 printf %s
"checking for --with-c-locale-coercion... " >&6; }
17502 # Check whether --with-c-locale-coercion was given.
17503 if test ${with_c_locale_coercion+y}
17505 withval
=$with_c_locale_coercion;
17509 if test -z "$with_c_locale_coercion"
17511 with_c_locale_coercion
="yes"
17513 if test "$with_c_locale_coercion" != "no"
17516 printf "%s\n" "#define PY_COERCE_C_LOCALE 1" >>confdefs.h
17519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5
17520 printf "%s\n" "$with_c_locale_coercion" >&6; }
17522 # Check for Valgrind support
17523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5
17524 printf %s
"checking for --with-valgrind... " >&6; }
17526 # Check whether --with-valgrind was given.
17527 if test ${with_valgrind+y}
17529 withval
=$with_valgrind;
17535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5
17536 printf "%s\n" "$with_valgrind" >&6; }
17537 if test "$with_valgrind" != no
; then
17538 ac_fn_c_check_header_compile
"$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
17539 if test "x$ac_cv_header_valgrind_valgrind_h" = xyes
17542 printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h
17545 as_fn_error $?
"Valgrind support requested but headers not available" "$LINENO" 5
17549 OPT
="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT"
17552 # Check for DTrace support
17553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5
17554 printf %s
"checking for --with-dtrace... " >&6; }
17556 # Check whether --with-dtrace was given.
17557 if test ${with_dtrace+y}
17559 withval
=$with_dtrace;
17564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5
17565 printf "%s\n" "$with_dtrace" >&6; }
17575 if test "$with_dtrace" = "yes"
17577 # Extract the first word of "dtrace", so it can be a program name with args.
17578 set dummy dtrace
; ac_word
=$2
17579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17580 printf %s
"checking for $ac_word... " >&6; }
17581 if test ${ac_cv_path_DTRACE+y}
17583 printf %s
"(cached) " >&6
17587 ac_cv_path_DTRACE
="$DTRACE" # Let the user override the test with a path.
17590 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17591 for as_dir
in $PATH
17594 case $as_dir in #(((
17597 *) as_dir
=$as_dir/ ;;
17599 for ac_exec_ext
in '' $ac_executable_extensions; do
17600 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
17601 ac_cv_path_DTRACE
="$as_dir$ac_word$ac_exec_ext"
17602 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
17609 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE
="not found"
17613 DTRACE
=$ac_cv_path_DTRACE
17614 if test -n "$DTRACE"; then
17615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
17616 printf "%s\n" "$DTRACE" >&6; }
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619 printf "%s\n" "no" >&6; }
17623 if test "$DTRACE" = "not found"; then
17624 as_fn_error $?
"dtrace command not found on \$PATH" "$LINENO" 5
17627 printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h
17629 DTRACE_HEADERS
="Include/pydtrace_probes.h"
17631 # On OS X, DTrace providers do not need to be explicitly compiled and
17632 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF
17633 # generation flag '-G'. We check for presence of this flag, rather than
17634 # hardcoding support by OS, in the interest of robustness.
17635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5
17636 printf %s
"checking whether DTrace probes require linking... " >&6; }
17637 if test ${ac_cv_dtrace_link+y}
17639 printf %s
"(cached) " >&6
17641 ac_cv_dtrace_link
=no
17642 echo 'BEGIN{}' > conftest.d
17643 "$DTRACE" $DFLAGS -G -s conftest.d
-o conftest.o
> /dev
/null
2>&1 && \
17644 ac_cv_dtrace_link
=yes
17647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5
17648 printf "%s\n" "$ac_cv_dtrace_link" >&6; }
17649 if test "$ac_cv_dtrace_link" = "yes"; then
17650 DTRACE_OBJS
="Python/pydtrace.o"
17657 case $ac_sys_system in #(
17660 as_fn_append PLATFORM_OBJS
' Python/emscripten_signal.o Python/emscripten_trampoline.o'
17661 as_fn_append PLATFORM_HEADERS
' $(srcdir)/Include/internal/pycore_emscripten_signal.h $(srcdir)/Include/internal/pycore_emscripten_trampoline.h'
17669 # -I${DLINCLDIR} is added to the compile rule for importdl.o
17673 # the dlopen() function means we might want to use dynload_shlib.o. some
17674 # platforms have dlopen(), but don't want to use it.
17675 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
17676 if test "x$ac_cv_func_dlopen" = xyes
17678 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
17683 # DYNLOADFILE specifies which dynload_*.o file we will use for dynamic
17684 # loading of modules.
17686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5
17687 printf %s
"checking DYNLOADFILE... " >&6; }
17688 if test -z "$DYNLOADFILE"
17690 case $ac_sys_system/$ac_sys_release in
17691 hp
*|HP
*) DYNLOADFILE
="dynload_hpux.o";;
17693 # use dynload_shlib.c and dlopen() if we have it; otherwise stub
17694 # out any dynamic loading
17695 if test "$ac_cv_func_dlopen" = yes
17696 then DYNLOADFILE
="dynload_shlib.o"
17697 else DYNLOADFILE
="dynload_stub.o"
17702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5
17703 printf "%s\n" "$DYNLOADFILE" >&6; }
17704 if test "$DYNLOADFILE" != "dynload_stub.o"
17707 printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h
17711 # MACHDEP_OBJS can be set to platform-specific object files needed by Python
17714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5
17715 printf %s
"checking MACHDEP_OBJS... " >&6; }
17716 if test -z "$MACHDEP_OBJS"
17718 MACHDEP_OBJS
=$extra_machdep_objs
17720 MACHDEP_OBJS
="$MACHDEP_OBJS $extra_machdep_objs"
17722 if test -z "$MACHDEP_OBJS"; then
17723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
17724 printf "%s\n" "none" >&6; }
17726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5
17727 printf "%s\n" "$MACHDEP_OBJS" >&6; }
17730 if test "$ac_sys_system" = "Linux-android"; then
17731 # When these functions are used in an unprivileged process, they crash rather
17732 # than returning an error.
17733 blocked_funcs
="chroot initgroups setegid seteuid setgid sethostname
17734 setregid setresgid setresuid setreuid setuid"
17736 # These functions are unimplemented and always return an error
17737 # (https://android.googlesource.com/platform/system/sepolicy/+/refs/heads/android13-release/public/domain.te#1044)
17738 blocked_funcs
="$blocked_funcs sem_open sem_unlink"
17740 # Before API level 23, when fchmodat is called with the unimplemented flag
17741 # AT_SYMLINK_NOFOLLOW, instead of returning ENOTSUP as it should, it actually
17742 # follows the symlink.
17743 if test "$ANDROID_API_LEVEL" -lt 23; then
17744 blocked_funcs
="$blocked_funcs fchmodat"
17747 for name
in $blocked_funcs; do
17748 as_func_var
=`printf "%s\n" "ac_cv_func_$name" | $as_tr_sh`
17750 eval "$as_func_var=no"
17755 # checks for library functions
17756 ac_fn_c_check_func
"$LINENO" "accept4" "ac_cv_func_accept4"
17757 if test "x$ac_cv_func_accept4" = xyes
17759 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h
17762 ac_fn_c_check_func
"$LINENO" "alarm" "ac_cv_func_alarm"
17763 if test "x$ac_cv_func_alarm" = xyes
17765 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
17768 ac_fn_c_check_func
"$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
17769 if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
17771 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
17774 ac_fn_c_check_func
"$LINENO" "chmod" "ac_cv_func_chmod"
17775 if test "x$ac_cv_func_chmod" = xyes
17777 printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h
17780 ac_fn_c_check_func
"$LINENO" "chown" "ac_cv_func_chown"
17781 if test "x$ac_cv_func_chown" = xyes
17783 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
17786 ac_fn_c_check_func
"$LINENO" "clock" "ac_cv_func_clock"
17787 if test "x$ac_cv_func_clock" = xyes
17789 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h
17792 ac_fn_c_check_func
"$LINENO" "closefrom" "ac_cv_func_closefrom"
17793 if test "x$ac_cv_func_closefrom" = xyes
17795 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h
17798 ac_fn_c_check_func
"$LINENO" "close_range" "ac_cv_func_close_range"
17799 if test "x$ac_cv_func_close_range" = xyes
17801 printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h
17804 ac_fn_c_check_func
"$LINENO" "confstr" "ac_cv_func_confstr"
17805 if test "x$ac_cv_func_confstr" = xyes
17807 printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h
17810 ac_fn_c_check_func
"$LINENO" "copy_file_range" "ac_cv_func_copy_file_range"
17811 if test "x$ac_cv_func_copy_file_range" = xyes
17813 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h
17816 ac_fn_c_check_func
"$LINENO" "ctermid" "ac_cv_func_ctermid"
17817 if test "x$ac_cv_func_ctermid" = xyes
17819 printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h
17822 ac_fn_c_check_func
"$LINENO" "dup" "ac_cv_func_dup"
17823 if test "x$ac_cv_func_dup" = xyes
17825 printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h
17828 ac_fn_c_check_func
"$LINENO" "dup3" "ac_cv_func_dup3"
17829 if test "x$ac_cv_func_dup3" = xyes
17831 printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h
17834 ac_fn_c_check_func
"$LINENO" "execv" "ac_cv_func_execv"
17835 if test "x$ac_cv_func_execv" = xyes
17837 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h
17840 ac_fn_c_check_func
"$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero"
17841 if test "x$ac_cv_func_explicit_bzero" = xyes
17843 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h
17846 ac_fn_c_check_func
"$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
17847 if test "x$ac_cv_func_explicit_memset" = xyes
17849 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
17852 ac_fn_c_check_func
"$LINENO" "faccessat" "ac_cv_func_faccessat"
17853 if test "x$ac_cv_func_faccessat" = xyes
17855 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h
17858 ac_fn_c_check_func
"$LINENO" "fchmod" "ac_cv_func_fchmod"
17859 if test "x$ac_cv_func_fchmod" = xyes
17861 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h
17864 ac_fn_c_check_func
"$LINENO" "fchmodat" "ac_cv_func_fchmodat"
17865 if test "x$ac_cv_func_fchmodat" = xyes
17867 printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h
17870 ac_fn_c_check_func
"$LINENO" "fchown" "ac_cv_func_fchown"
17871 if test "x$ac_cv_func_fchown" = xyes
17873 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
17876 ac_fn_c_check_func
"$LINENO" "fchownat" "ac_cv_func_fchownat"
17877 if test "x$ac_cv_func_fchownat" = xyes
17879 printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h
17882 ac_fn_c_check_func
"$LINENO" "fdopendir" "ac_cv_func_fdopendir"
17883 if test "x$ac_cv_func_fdopendir" = xyes
17885 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h
17888 ac_fn_c_check_func
"$LINENO" "fdwalk" "ac_cv_func_fdwalk"
17889 if test "x$ac_cv_func_fdwalk" = xyes
17891 printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h
17894 ac_fn_c_check_func
"$LINENO" "fexecve" "ac_cv_func_fexecve"
17895 if test "x$ac_cv_func_fexecve" = xyes
17897 printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h
17900 ac_fn_c_check_func
"$LINENO" "fork" "ac_cv_func_fork"
17901 if test "x$ac_cv_func_fork" = xyes
17903 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h
17906 ac_fn_c_check_func
"$LINENO" "fork1" "ac_cv_func_fork1"
17907 if test "x$ac_cv_func_fork1" = xyes
17909 printf "%s\n" "#define HAVE_FORK1 1" >>confdefs.h
17912 ac_fn_c_check_func
"$LINENO" "fpathconf" "ac_cv_func_fpathconf"
17913 if test "x$ac_cv_func_fpathconf" = xyes
17915 printf "%s\n" "#define HAVE_FPATHCONF 1" >>confdefs.h
17918 ac_fn_c_check_func
"$LINENO" "fstatat" "ac_cv_func_fstatat"
17919 if test "x$ac_cv_func_fstatat" = xyes
17921 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h
17924 ac_fn_c_check_func
"$LINENO" "ftime" "ac_cv_func_ftime"
17925 if test "x$ac_cv_func_ftime" = xyes
17927 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h
17930 ac_fn_c_check_func
"$LINENO" "ftruncate" "ac_cv_func_ftruncate"
17931 if test "x$ac_cv_func_ftruncate" = xyes
17933 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
17936 ac_fn_c_check_func
"$LINENO" "futimens" "ac_cv_func_futimens"
17937 if test "x$ac_cv_func_futimens" = xyes
17939 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h
17942 ac_fn_c_check_func
"$LINENO" "futimes" "ac_cv_func_futimes"
17943 if test "x$ac_cv_func_futimes" = xyes
17945 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
17948 ac_fn_c_check_func
"$LINENO" "futimesat" "ac_cv_func_futimesat"
17949 if test "x$ac_cv_func_futimesat" = xyes
17951 printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h
17954 ac_fn_c_check_func
"$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
17955 if test "x$ac_cv_func_gai_strerror" = xyes
17957 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h
17960 ac_fn_c_check_func
"$LINENO" "getegid" "ac_cv_func_getegid"
17961 if test "x$ac_cv_func_getegid" = xyes
17963 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h
17966 ac_fn_c_check_func
"$LINENO" "geteuid" "ac_cv_func_geteuid"
17967 if test "x$ac_cv_func_geteuid" = xyes
17969 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
17972 ac_fn_c_check_func
"$LINENO" "getgid" "ac_cv_func_getgid"
17973 if test "x$ac_cv_func_getgid" = xyes
17975 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h
17978 ac_fn_c_check_func
"$LINENO" "getgrent" "ac_cv_func_getgrent"
17979 if test "x$ac_cv_func_getgrent" = xyes
17981 printf "%s\n" "#define HAVE_GETGRENT 1" >>confdefs.h
17984 ac_fn_c_check_func
"$LINENO" "getgrgid" "ac_cv_func_getgrgid"
17985 if test "x$ac_cv_func_getgrgid" = xyes
17987 printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h
17990 ac_fn_c_check_func
"$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r"
17991 if test "x$ac_cv_func_getgrgid_r" = xyes
17993 printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h
17996 ac_fn_c_check_func
"$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r"
17997 if test "x$ac_cv_func_getgrnam_r" = xyes
17999 printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h
18002 ac_fn_c_check_func
"$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
18003 if test "x$ac_cv_func_getgrouplist" = xyes
18005 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
18008 ac_fn_c_check_func
"$LINENO" "gethostname" "ac_cv_func_gethostname"
18009 if test "x$ac_cv_func_gethostname" = xyes
18011 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
18014 ac_fn_c_check_func
"$LINENO" "getitimer" "ac_cv_func_getitimer"
18015 if test "x$ac_cv_func_getitimer" = xyes
18017 printf "%s\n" "#define HAVE_GETITIMER 1" >>confdefs.h
18020 ac_fn_c_check_func
"$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18021 if test "x$ac_cv_func_getloadavg" = xyes
18023 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h
18026 ac_fn_c_check_func
"$LINENO" "getlogin" "ac_cv_func_getlogin"
18027 if test "x$ac_cv_func_getlogin" = xyes
18029 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h
18032 ac_fn_c_check_func
"$LINENO" "getpeername" "ac_cv_func_getpeername"
18033 if test "x$ac_cv_func_getpeername" = xyes
18035 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
18038 ac_fn_c_check_func
"$LINENO" "getpgid" "ac_cv_func_getpgid"
18039 if test "x$ac_cv_func_getpgid" = xyes
18041 printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h
18044 ac_fn_c_check_func
"$LINENO" "getpid" "ac_cv_func_getpid"
18045 if test "x$ac_cv_func_getpid" = xyes
18047 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h
18050 ac_fn_c_check_func
"$LINENO" "getppid" "ac_cv_func_getppid"
18051 if test "x$ac_cv_func_getppid" = xyes
18053 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h
18056 ac_fn_c_check_func
"$LINENO" "getpriority" "ac_cv_func_getpriority"
18057 if test "x$ac_cv_func_getpriority" = xyes
18059 printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h
18062 ac_fn_c_check_func
"$LINENO" "_getpty" "ac_cv_func__getpty"
18063 if test "x$ac_cv_func__getpty" = xyes
18065 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h
18068 ac_fn_c_check_func
"$LINENO" "getpwent" "ac_cv_func_getpwent"
18069 if test "x$ac_cv_func_getpwent" = xyes
18071 printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h
18074 ac_fn_c_check_func
"$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r"
18075 if test "x$ac_cv_func_getpwnam_r" = xyes
18077 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h
18080 ac_fn_c_check_func
"$LINENO" "getpwuid" "ac_cv_func_getpwuid"
18081 if test "x$ac_cv_func_getpwuid" = xyes
18083 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h
18086 ac_fn_c_check_func
"$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
18087 if test "x$ac_cv_func_getpwuid_r" = xyes
18089 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
18092 ac_fn_c_check_func
"$LINENO" "getresgid" "ac_cv_func_getresgid"
18093 if test "x$ac_cv_func_getresgid" = xyes
18095 printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h
18098 ac_fn_c_check_func
"$LINENO" "getresuid" "ac_cv_func_getresuid"
18099 if test "x$ac_cv_func_getresuid" = xyes
18101 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h
18104 ac_fn_c_check_func
"$LINENO" "getrusage" "ac_cv_func_getrusage"
18105 if test "x$ac_cv_func_getrusage" = xyes
18107 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
18110 ac_fn_c_check_func
"$LINENO" "getsid" "ac_cv_func_getsid"
18111 if test "x$ac_cv_func_getsid" = xyes
18113 printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h
18116 ac_fn_c_check_func
"$LINENO" "getspent" "ac_cv_func_getspent"
18117 if test "x$ac_cv_func_getspent" = xyes
18119 printf "%s\n" "#define HAVE_GETSPENT 1" >>confdefs.h
18122 ac_fn_c_check_func
"$LINENO" "getspnam" "ac_cv_func_getspnam"
18123 if test "x$ac_cv_func_getspnam" = xyes
18125 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h
18128 ac_fn_c_check_func
"$LINENO" "getuid" "ac_cv_func_getuid"
18129 if test "x$ac_cv_func_getuid" = xyes
18131 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h
18134 ac_fn_c_check_func
"$LINENO" "getwd" "ac_cv_func_getwd"
18135 if test "x$ac_cv_func_getwd" = xyes
18137 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h
18140 ac_fn_c_check_func
"$LINENO" "grantpt" "ac_cv_func_grantpt"
18141 if test "x$ac_cv_func_grantpt" = xyes
18143 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h
18146 ac_fn_c_check_func
"$LINENO" "if_nameindex" "ac_cv_func_if_nameindex"
18147 if test "x$ac_cv_func_if_nameindex" = xyes
18149 printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h
18152 ac_fn_c_check_func
"$LINENO" "initgroups" "ac_cv_func_initgroups"
18153 if test "x$ac_cv_func_initgroups" = xyes
18155 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h
18158 ac_fn_c_check_func
"$LINENO" "kill" "ac_cv_func_kill"
18159 if test "x$ac_cv_func_kill" = xyes
18161 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h
18164 ac_fn_c_check_func
"$LINENO" "killpg" "ac_cv_func_killpg"
18165 if test "x$ac_cv_func_killpg" = xyes
18167 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h
18170 ac_fn_c_check_func
"$LINENO" "lchown" "ac_cv_func_lchown"
18171 if test "x$ac_cv_func_lchown" = xyes
18173 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h
18176 ac_fn_c_check_func
"$LINENO" "linkat" "ac_cv_func_linkat"
18177 if test "x$ac_cv_func_linkat" = xyes
18179 printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h
18182 ac_fn_c_check_func
"$LINENO" "lockf" "ac_cv_func_lockf"
18183 if test "x$ac_cv_func_lockf" = xyes
18185 printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h
18188 ac_fn_c_check_func
"$LINENO" "lstat" "ac_cv_func_lstat"
18189 if test "x$ac_cv_func_lstat" = xyes
18191 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h
18194 ac_fn_c_check_func
"$LINENO" "lutimes" "ac_cv_func_lutimes"
18195 if test "x$ac_cv_func_lutimes" = xyes
18197 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h
18200 ac_fn_c_check_func
"$LINENO" "madvise" "ac_cv_func_madvise"
18201 if test "x$ac_cv_func_madvise" = xyes
18203 printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h
18206 ac_fn_c_check_func
"$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
18207 if test "x$ac_cv_func_mbrtowc" = xyes
18209 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
18212 ac_fn_c_check_func
"$LINENO" "memrchr" "ac_cv_func_memrchr"
18213 if test "x$ac_cv_func_memrchr" = xyes
18215 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
18218 ac_fn_c_check_func
"$LINENO" "mkdirat" "ac_cv_func_mkdirat"
18219 if test "x$ac_cv_func_mkdirat" = xyes
18221 printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h
18224 ac_fn_c_check_func
"$LINENO" "mkfifo" "ac_cv_func_mkfifo"
18225 if test "x$ac_cv_func_mkfifo" = xyes
18227 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h
18230 ac_fn_c_check_func
"$LINENO" "mkfifoat" "ac_cv_func_mkfifoat"
18231 if test "x$ac_cv_func_mkfifoat" = xyes
18233 printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h
18236 ac_fn_c_check_func
"$LINENO" "mknod" "ac_cv_func_mknod"
18237 if test "x$ac_cv_func_mknod" = xyes
18239 printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h
18242 ac_fn_c_check_func
"$LINENO" "mknodat" "ac_cv_func_mknodat"
18243 if test "x$ac_cv_func_mknodat" = xyes
18245 printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h
18248 ac_fn_c_check_func
"$LINENO" "mktime" "ac_cv_func_mktime"
18249 if test "x$ac_cv_func_mktime" = xyes
18251 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h
18254 ac_fn_c_check_func
"$LINENO" "mmap" "ac_cv_func_mmap"
18255 if test "x$ac_cv_func_mmap" = xyes
18257 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
18260 ac_fn_c_check_func
"$LINENO" "mremap" "ac_cv_func_mremap"
18261 if test "x$ac_cv_func_mremap" = xyes
18263 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h
18266 ac_fn_c_check_func
"$LINENO" "nice" "ac_cv_func_nice"
18267 if test "x$ac_cv_func_nice" = xyes
18269 printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h
18272 ac_fn_c_check_func
"$LINENO" "openat" "ac_cv_func_openat"
18273 if test "x$ac_cv_func_openat" = xyes
18275 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h
18278 ac_fn_c_check_func
"$LINENO" "opendir" "ac_cv_func_opendir"
18279 if test "x$ac_cv_func_opendir" = xyes
18281 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h
18284 ac_fn_c_check_func
"$LINENO" "pathconf" "ac_cv_func_pathconf"
18285 if test "x$ac_cv_func_pathconf" = xyes
18287 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
18290 ac_fn_c_check_func
"$LINENO" "pause" "ac_cv_func_pause"
18291 if test "x$ac_cv_func_pause" = xyes
18293 printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h
18296 ac_fn_c_check_func
"$LINENO" "pipe" "ac_cv_func_pipe"
18297 if test "x$ac_cv_func_pipe" = xyes
18299 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h
18302 ac_fn_c_check_func
"$LINENO" "pipe2" "ac_cv_func_pipe2"
18303 if test "x$ac_cv_func_pipe2" = xyes
18305 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h
18308 ac_fn_c_check_func
"$LINENO" "plock" "ac_cv_func_plock"
18309 if test "x$ac_cv_func_plock" = xyes
18311 printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h
18314 ac_fn_c_check_func
"$LINENO" "poll" "ac_cv_func_poll"
18315 if test "x$ac_cv_func_poll" = xyes
18317 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
18320 ac_fn_c_check_func
"$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
18321 if test "x$ac_cv_func_posix_fadvise" = xyes
18323 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
18326 ac_fn_c_check_func
"$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
18327 if test "x$ac_cv_func_posix_fallocate" = xyes
18329 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h
18332 ac_fn_c_check_func
"$LINENO" "posix_openpt" "ac_cv_func_posix_openpt"
18333 if test "x$ac_cv_func_posix_openpt" = xyes
18335 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h
18338 ac_fn_c_check_func
"$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
18339 if test "x$ac_cv_func_posix_spawn" = xyes
18341 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
18344 ac_fn_c_check_func
"$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp"
18345 if test "x$ac_cv_func_posix_spawnp" = xyes
18347 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h
18350 ac_fn_c_check_func
"$LINENO" "posix_spawn_file_actions_addclosefrom_np" "ac_cv_func_posix_spawn_file_actions_addclosefrom_np"
18351 if test "x$ac_cv_func_posix_spawn_file_actions_addclosefrom_np" = xyes
18353 printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP 1" >>confdefs.h
18356 ac_fn_c_check_func
"$LINENO" "pread" "ac_cv_func_pread"
18357 if test "x$ac_cv_func_pread" = xyes
18359 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
18362 ac_fn_c_check_func
"$LINENO" "preadv" "ac_cv_func_preadv"
18363 if test "x$ac_cv_func_preadv" = xyes
18365 printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h
18368 ac_fn_c_check_func
"$LINENO" "preadv2" "ac_cv_func_preadv2"
18369 if test "x$ac_cv_func_preadv2" = xyes
18371 printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h
18374 ac_fn_c_check_func
"$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv"
18375 if test "x$ac_cv_func_process_vm_readv" = xyes
18377 printf "%s\n" "#define HAVE_PROCESS_VM_READV 1" >>confdefs.h
18380 ac_fn_c_check_func
"$LINENO" "pthread_cond_timedwait_relative_np" "ac_cv_func_pthread_cond_timedwait_relative_np"
18381 if test "x$ac_cv_func_pthread_cond_timedwait_relative_np" = xyes
18383 printf "%s\n" "#define HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP 1" >>confdefs.h
18386 ac_fn_c_check_func
"$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock"
18387 if test "x$ac_cv_func_pthread_condattr_setclock" = xyes
18389 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
18392 ac_fn_c_check_func
"$LINENO" "pthread_init" "ac_cv_func_pthread_init"
18393 if test "x$ac_cv_func_pthread_init" = xyes
18395 printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h
18398 ac_fn_c_check_func
"$LINENO" "pthread_kill" "ac_cv_func_pthread_kill"
18399 if test "x$ac_cv_func_pthread_kill" = xyes
18401 printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h
18404 ac_fn_c_check_func
"$LINENO" "ptsname" "ac_cv_func_ptsname"
18405 if test "x$ac_cv_func_ptsname" = xyes
18407 printf "%s\n" "#define HAVE_PTSNAME 1" >>confdefs.h
18410 ac_fn_c_check_func
"$LINENO" "ptsname_r" "ac_cv_func_ptsname_r"
18411 if test "x$ac_cv_func_ptsname_r" = xyes
18413 printf "%s\n" "#define HAVE_PTSNAME_R 1" >>confdefs.h
18416 ac_fn_c_check_func
"$LINENO" "pwrite" "ac_cv_func_pwrite"
18417 if test "x$ac_cv_func_pwrite" = xyes
18419 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
18422 ac_fn_c_check_func
"$LINENO" "pwritev" "ac_cv_func_pwritev"
18423 if test "x$ac_cv_func_pwritev" = xyes
18425 printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h
18428 ac_fn_c_check_func
"$LINENO" "pwritev2" "ac_cv_func_pwritev2"
18429 if test "x$ac_cv_func_pwritev2" = xyes
18431 printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h
18434 ac_fn_c_check_func
"$LINENO" "readlink" "ac_cv_func_readlink"
18435 if test "x$ac_cv_func_readlink" = xyes
18437 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
18440 ac_fn_c_check_func
"$LINENO" "readlinkat" "ac_cv_func_readlinkat"
18441 if test "x$ac_cv_func_readlinkat" = xyes
18443 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h
18446 ac_fn_c_check_func
"$LINENO" "readv" "ac_cv_func_readv"
18447 if test "x$ac_cv_func_readv" = xyes
18449 printf "%s\n" "#define HAVE_READV 1" >>confdefs.h
18452 ac_fn_c_check_func
"$LINENO" "realpath" "ac_cv_func_realpath"
18453 if test "x$ac_cv_func_realpath" = xyes
18455 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
18458 ac_fn_c_check_func
"$LINENO" "renameat" "ac_cv_func_renameat"
18459 if test "x$ac_cv_func_renameat" = xyes
18461 printf "%s\n" "#define HAVE_RENAMEAT 1" >>confdefs.h
18464 ac_fn_c_check_func
"$LINENO" "rtpSpawn" "ac_cv_func_rtpSpawn"
18465 if test "x$ac_cv_func_rtpSpawn" = xyes
18467 printf "%s\n" "#define HAVE_RTPSPAWN 1" >>confdefs.h
18470 ac_fn_c_check_func
"$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max"
18471 if test "x$ac_cv_func_sched_get_priority_max" = xyes
18473 printf "%s\n" "#define HAVE_SCHED_GET_PRIORITY_MAX 1" >>confdefs.h
18476 ac_fn_c_check_func
"$LINENO" "sched_rr_get_interval" "ac_cv_func_sched_rr_get_interval"
18477 if test "x$ac_cv_func_sched_rr_get_interval" = xyes
18479 printf "%s\n" "#define HAVE_SCHED_RR_GET_INTERVAL 1" >>confdefs.h
18482 ac_fn_c_check_func
"$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity"
18483 if test "x$ac_cv_func_sched_setaffinity" = xyes
18485 printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
18488 ac_fn_c_check_func
"$LINENO" "sched_setparam" "ac_cv_func_sched_setparam"
18489 if test "x$ac_cv_func_sched_setparam" = xyes
18491 printf "%s\n" "#define HAVE_SCHED_SETPARAM 1" >>confdefs.h
18494 ac_fn_c_check_func
"$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler"
18495 if test "x$ac_cv_func_sched_setscheduler" = xyes
18497 printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h
18500 ac_fn_c_check_func
"$LINENO" "sem_clockwait" "ac_cv_func_sem_clockwait"
18501 if test "x$ac_cv_func_sem_clockwait" = xyes
18503 printf "%s\n" "#define HAVE_SEM_CLOCKWAIT 1" >>confdefs.h
18506 ac_fn_c_check_func
"$LINENO" "sem_getvalue" "ac_cv_func_sem_getvalue"
18507 if test "x$ac_cv_func_sem_getvalue" = xyes
18509 printf "%s\n" "#define HAVE_SEM_GETVALUE 1" >>confdefs.h
18512 ac_fn_c_check_func
"$LINENO" "sem_open" "ac_cv_func_sem_open"
18513 if test "x$ac_cv_func_sem_open" = xyes
18515 printf "%s\n" "#define HAVE_SEM_OPEN 1" >>confdefs.h
18518 ac_fn_c_check_func
"$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait"
18519 if test "x$ac_cv_func_sem_timedwait" = xyes
18521 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h
18524 ac_fn_c_check_func
"$LINENO" "sem_unlink" "ac_cv_func_sem_unlink"
18525 if test "x$ac_cv_func_sem_unlink" = xyes
18527 printf "%s\n" "#define HAVE_SEM_UNLINK 1" >>confdefs.h
18530 ac_fn_c_check_func
"$LINENO" "sendfile" "ac_cv_func_sendfile"
18531 if test "x$ac_cv_func_sendfile" = xyes
18533 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h
18536 ac_fn_c_check_func
"$LINENO" "setegid" "ac_cv_func_setegid"
18537 if test "x$ac_cv_func_setegid" = xyes
18539 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h
18542 ac_fn_c_check_func
"$LINENO" "seteuid" "ac_cv_func_seteuid"
18543 if test "x$ac_cv_func_seteuid" = xyes
18545 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h
18548 ac_fn_c_check_func
"$LINENO" "setgid" "ac_cv_func_setgid"
18549 if test "x$ac_cv_func_setgid" = xyes
18551 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h
18554 ac_fn_c_check_func
"$LINENO" "sethostname" "ac_cv_func_sethostname"
18555 if test "x$ac_cv_func_sethostname" = xyes
18557 printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h
18560 ac_fn_c_check_func
"$LINENO" "setitimer" "ac_cv_func_setitimer"
18561 if test "x$ac_cv_func_setitimer" = xyes
18563 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h
18566 ac_fn_c_check_func
"$LINENO" "setlocale" "ac_cv_func_setlocale"
18567 if test "x$ac_cv_func_setlocale" = xyes
18569 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
18572 ac_fn_c_check_func
"$LINENO" "setpgid" "ac_cv_func_setpgid"
18573 if test "x$ac_cv_func_setpgid" = xyes
18575 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
18578 ac_fn_c_check_func
"$LINENO" "setpgrp" "ac_cv_func_setpgrp"
18579 if test "x$ac_cv_func_setpgrp" = xyes
18581 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
18584 ac_fn_c_check_func
"$LINENO" "setpriority" "ac_cv_func_setpriority"
18585 if test "x$ac_cv_func_setpriority" = xyes
18587 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h
18590 ac_fn_c_check_func
"$LINENO" "setregid" "ac_cv_func_setregid"
18591 if test "x$ac_cv_func_setregid" = xyes
18593 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h
18596 ac_fn_c_check_func
"$LINENO" "setresgid" "ac_cv_func_setresgid"
18597 if test "x$ac_cv_func_setresgid" = xyes
18599 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
18602 ac_fn_c_check_func
"$LINENO" "setresuid" "ac_cv_func_setresuid"
18603 if test "x$ac_cv_func_setresuid" = xyes
18605 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
18608 ac_fn_c_check_func
"$LINENO" "setreuid" "ac_cv_func_setreuid"
18609 if test "x$ac_cv_func_setreuid" = xyes
18611 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h
18614 ac_fn_c_check_func
"$LINENO" "setsid" "ac_cv_func_setsid"
18615 if test "x$ac_cv_func_setsid" = xyes
18617 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h
18620 ac_fn_c_check_func
"$LINENO" "setuid" "ac_cv_func_setuid"
18621 if test "x$ac_cv_func_setuid" = xyes
18623 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h
18626 ac_fn_c_check_func
"$LINENO" "setvbuf" "ac_cv_func_setvbuf"
18627 if test "x$ac_cv_func_setvbuf" = xyes
18629 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h
18632 ac_fn_c_check_func
"$LINENO" "shutdown" "ac_cv_func_shutdown"
18633 if test "x$ac_cv_func_shutdown" = xyes
18635 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h
18638 ac_fn_c_check_func
"$LINENO" "sigaction" "ac_cv_func_sigaction"
18639 if test "x$ac_cv_func_sigaction" = xyes
18641 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
18644 ac_fn_c_check_func
"$LINENO" "sigaltstack" "ac_cv_func_sigaltstack"
18645 if test "x$ac_cv_func_sigaltstack" = xyes
18647 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h
18650 ac_fn_c_check_func
"$LINENO" "sigfillset" "ac_cv_func_sigfillset"
18651 if test "x$ac_cv_func_sigfillset" = xyes
18653 printf "%s\n" "#define HAVE_SIGFILLSET 1" >>confdefs.h
18656 ac_fn_c_check_func
"$LINENO" "siginterrupt" "ac_cv_func_siginterrupt"
18657 if test "x$ac_cv_func_siginterrupt" = xyes
18659 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
18662 ac_fn_c_check_func
"$LINENO" "sigpending" "ac_cv_func_sigpending"
18663 if test "x$ac_cv_func_sigpending" = xyes
18665 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h
18668 ac_fn_c_check_func
"$LINENO" "sigrelse" "ac_cv_func_sigrelse"
18669 if test "x$ac_cv_func_sigrelse" = xyes
18671 printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h
18674 ac_fn_c_check_func
"$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait"
18675 if test "x$ac_cv_func_sigtimedwait" = xyes
18677 printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h
18680 ac_fn_c_check_func
"$LINENO" "sigwait" "ac_cv_func_sigwait"
18681 if test "x$ac_cv_func_sigwait" = xyes
18683 printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h
18686 ac_fn_c_check_func
"$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo"
18687 if test "x$ac_cv_func_sigwaitinfo" = xyes
18689 printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h
18692 ac_fn_c_check_func
"$LINENO" "snprintf" "ac_cv_func_snprintf"
18693 if test "x$ac_cv_func_snprintf" = xyes
18695 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
18698 ac_fn_c_check_func
"$LINENO" "splice" "ac_cv_func_splice"
18699 if test "x$ac_cv_func_splice" = xyes
18701 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h
18704 ac_fn_c_check_func
"$LINENO" "strftime" "ac_cv_func_strftime"
18705 if test "x$ac_cv_func_strftime" = xyes
18707 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
18710 ac_fn_c_check_func
"$LINENO" "strlcpy" "ac_cv_func_strlcpy"
18711 if test "x$ac_cv_func_strlcpy" = xyes
18713 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
18716 ac_fn_c_check_func
"$LINENO" "strsignal" "ac_cv_func_strsignal"
18717 if test "x$ac_cv_func_strsignal" = xyes
18719 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h
18722 ac_fn_c_check_func
"$LINENO" "symlinkat" "ac_cv_func_symlinkat"
18723 if test "x$ac_cv_func_symlinkat" = xyes
18725 printf "%s\n" "#define HAVE_SYMLINKAT 1" >>confdefs.h
18728 ac_fn_c_check_func
"$LINENO" "sync" "ac_cv_func_sync"
18729 if test "x$ac_cv_func_sync" = xyes
18731 printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h
18734 ac_fn_c_check_func
"$LINENO" "sysconf" "ac_cv_func_sysconf"
18735 if test "x$ac_cv_func_sysconf" = xyes
18737 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
18740 ac_fn_c_check_func
"$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp"
18741 if test "x$ac_cv_func_tcgetpgrp" = xyes
18743 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h
18746 ac_fn_c_check_func
"$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp"
18747 if test "x$ac_cv_func_tcsetpgrp" = xyes
18749 printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h
18752 ac_fn_c_check_func
"$LINENO" "tempnam" "ac_cv_func_tempnam"
18753 if test "x$ac_cv_func_tempnam" = xyes
18755 printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h
18758 ac_fn_c_check_func
"$LINENO" "timegm" "ac_cv_func_timegm"
18759 if test "x$ac_cv_func_timegm" = xyes
18761 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
18764 ac_fn_c_check_func
"$LINENO" "times" "ac_cv_func_times"
18765 if test "x$ac_cv_func_times" = xyes
18767 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h
18770 ac_fn_c_check_func
"$LINENO" "tmpfile" "ac_cv_func_tmpfile"
18771 if test "x$ac_cv_func_tmpfile" = xyes
18773 printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h
18776 ac_fn_c_check_func
"$LINENO" "tmpnam" "ac_cv_func_tmpnam"
18777 if test "x$ac_cv_func_tmpnam" = xyes
18779 printf "%s\n" "#define HAVE_TMPNAM 1" >>confdefs.h
18782 ac_fn_c_check_func
"$LINENO" "tmpnam_r" "ac_cv_func_tmpnam_r"
18783 if test "x$ac_cv_func_tmpnam_r" = xyes
18785 printf "%s\n" "#define HAVE_TMPNAM_R 1" >>confdefs.h
18788 ac_fn_c_check_func
"$LINENO" "truncate" "ac_cv_func_truncate"
18789 if test "x$ac_cv_func_truncate" = xyes
18791 printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h
18794 ac_fn_c_check_func
"$LINENO" "ttyname" "ac_cv_func_ttyname"
18795 if test "x$ac_cv_func_ttyname" = xyes
18797 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h
18800 ac_fn_c_check_func
"$LINENO" "umask" "ac_cv_func_umask"
18801 if test "x$ac_cv_func_umask" = xyes
18803 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h
18806 ac_fn_c_check_func
"$LINENO" "uname" "ac_cv_func_uname"
18807 if test "x$ac_cv_func_uname" = xyes
18809 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h
18812 ac_fn_c_check_func
"$LINENO" "unlinkat" "ac_cv_func_unlinkat"
18813 if test "x$ac_cv_func_unlinkat" = xyes
18815 printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h
18818 ac_fn_c_check_func
"$LINENO" "unlockpt" "ac_cv_func_unlockpt"
18819 if test "x$ac_cv_func_unlockpt" = xyes
18821 printf "%s\n" "#define HAVE_UNLOCKPT 1" >>confdefs.h
18824 ac_fn_c_check_func
"$LINENO" "utimensat" "ac_cv_func_utimensat"
18825 if test "x$ac_cv_func_utimensat" = xyes
18827 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h
18830 ac_fn_c_check_func
"$LINENO" "utimes" "ac_cv_func_utimes"
18831 if test "x$ac_cv_func_utimes" = xyes
18833 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
18836 ac_fn_c_check_func
"$LINENO" "vfork" "ac_cv_func_vfork"
18837 if test "x$ac_cv_func_vfork" = xyes
18839 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h
18842 ac_fn_c_check_func
"$LINENO" "wait" "ac_cv_func_wait"
18843 if test "x$ac_cv_func_wait" = xyes
18845 printf "%s\n" "#define HAVE_WAIT 1" >>confdefs.h
18848 ac_fn_c_check_func
"$LINENO" "wait3" "ac_cv_func_wait3"
18849 if test "x$ac_cv_func_wait3" = xyes
18851 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
18854 ac_fn_c_check_func
"$LINENO" "wait4" "ac_cv_func_wait4"
18855 if test "x$ac_cv_func_wait4" = xyes
18857 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h
18860 ac_fn_c_check_func
"$LINENO" "waitid" "ac_cv_func_waitid"
18861 if test "x$ac_cv_func_waitid" = xyes
18863 printf "%s\n" "#define HAVE_WAITID 1" >>confdefs.h
18866 ac_fn_c_check_func
"$LINENO" "waitpid" "ac_cv_func_waitpid"
18867 if test "x$ac_cv_func_waitpid" = xyes
18869 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
18872 ac_fn_c_check_func
"$LINENO" "wcscoll" "ac_cv_func_wcscoll"
18873 if test "x$ac_cv_func_wcscoll" = xyes
18875 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h
18878 ac_fn_c_check_func
"$LINENO" "wcsftime" "ac_cv_func_wcsftime"
18879 if test "x$ac_cv_func_wcsftime" = xyes
18881 printf "%s\n" "#define HAVE_WCSFTIME 1" >>confdefs.h
18884 ac_fn_c_check_func
"$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm"
18885 if test "x$ac_cv_func_wcsxfrm" = xyes
18887 printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h
18890 ac_fn_c_check_func
"$LINENO" "wmemcmp" "ac_cv_func_wmemcmp"
18891 if test "x$ac_cv_func_wmemcmp" = xyes
18893 printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h
18896 ac_fn_c_check_func
"$LINENO" "writev" "ac_cv_func_writev"
18897 if test "x$ac_cv_func_writev" = xyes
18899 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
18904 # Force lchmod off for Linux. Linux disallows changing the mode of symbolic
18905 # links. Some libc implementations have a stub lchmod implementation that always
18906 # returns an error.
18907 if test "$MACHDEP" != linux
; then
18908 ac_fn_c_check_func
"$LINENO" "lchmod" "ac_cv_func_lchmod"
18909 if test "x$ac_cv_func_lchmod" = xyes
18911 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h
18917 # iOS defines some system methods that can be linked (so they are
18918 # found by configure), but either raise a compilation error (because the
18919 # header definition prevents usage - autoconf doesn't use the headers), or
18920 # raise an error if used at runtime. Force these symbols off.
18921 if test "$ac_sys_system" != "iOS" ; then
18922 ac_fn_c_check_func
"$LINENO" "getentropy" "ac_cv_func_getentropy"
18923 if test "x$ac_cv_func_getentropy" = xyes
18925 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
18928 ac_fn_c_check_func
"$LINENO" "getgroups" "ac_cv_func_getgroups"
18929 if test "x$ac_cv_func_getgroups" = xyes
18931 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h
18934 ac_fn_c_check_func
"$LINENO" "system" "ac_cv_func_system"
18935 if test "x$ac_cv_func_system" = xyes
18937 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h
18943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
18944 printf %s
"checking for $CC options needed to detect all undeclared functions... " >&6; }
18945 if test ${ac_cv_c_undeclared_builtin_options+y}
18947 printf %s
"(cached) " >&6
18949 ac_save_CFLAGS
=$CFLAGS
18950 ac_cv_c_undeclared_builtin_options
='cannot detect'
18951 for ac_arg
in '' -fno-builtin; do
18952 CFLAGS
="$ac_save_CFLAGS $ac_arg"
18953 # This test program should *not* compile successfully.
18954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18965 if ac_fn_c_try_compile
"$LINENO"
18969 # This test program should compile successfully.
18970 # No library function is consistently available on
18971 # freestanding implementations, so test against a dummy
18972 # declaration. Include always-available headers on the
18973 # off chance that they somehow elicit warnings.
18974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
18975 /* end confdefs.h. */
18977 #include <limits.h>
18978 #include <stdarg.h>
18979 #include <stddef.h>
18980 extern void ac_decl (int, char *);
18985 (void) ac_decl (0, (char *) 0);
18992 if ac_fn_c_try_compile
"$LINENO"
18994 if test x
"$ac_arg" = x
18996 ac_cv_c_undeclared_builtin_options
='none needed'
18998 ac_cv_c_undeclared_builtin_options
=$ac_arg
19002 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19004 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19006 CFLAGS
=$ac_save_CFLAGS
19009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
19010 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
19011 case $ac_cv_c_undeclared_builtin_options in #(
19013 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19014 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19015 as_fn_error $?
"cannot make $CC report undeclared builtins
19016 See \`config.log' for more details" "$LINENO" 5; } ;; #(
19018 ac_c_undeclared_builtin_options
='' ;; #(
19020 ac_c_undeclared_builtin_options
=$ac_cv_c_undeclared_builtin_options ;;
19023 ac_fn_check_decl
"$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
19024 #include <dirent.h>
19025 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19026 if test "x$ac_cv_have_decl_dirfd" = xyes
19029 printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
19033 # For some functions, having a definition is not sufficient, since
19034 # we want to take their address.
19037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5
19038 printf %s
"checking for chroot... " >&6; }
19039 if test ${ac_cv_func_chroot+y}
19041 printf %s
"(cached) " >&6
19043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19044 /* end confdefs.h. */
19045 #include <unistd.h>
19054 if ac_fn_c_try_compile
"$LINENO"
19056 ac_cv_func_chroot
=yes
19058 ac_cv_func_chroot
=no
19060 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chroot" >&5
19064 printf "%s\n" "$ac_cv_func_chroot" >&6; }
19065 if test "x$ac_cv_func_chroot" = xyes
19068 printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h
19076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5
19077 printf %s
"checking for link... " >&6; }
19078 if test ${ac_cv_func_link+y}
19080 printf %s
"(cached) " >&6
19082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19083 /* end confdefs.h. */
19084 #include <unistd.h>
19093 if ac_fn_c_try_compile
"$LINENO"
19095 ac_cv_func_link
=yes
19099 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_link" >&5
19103 printf "%s\n" "$ac_cv_func_link" >&6; }
19104 if test "x$ac_cv_func_link" = xyes
19107 printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h
19115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5
19116 printf %s
"checking for symlink... " >&6; }
19117 if test ${ac_cv_func_symlink+y}
19119 printf %s
"(cached) " >&6
19121 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19123 #include <unistd.h>
19132 if ac_fn_c_try_compile
"$LINENO"
19134 ac_cv_func_symlink
=yes
19136 ac_cv_func_symlink
=no
19138 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_symlink" >&5
19142 printf "%s\n" "$ac_cv_func_symlink" >&6; }
19143 if test "x$ac_cv_func_symlink" = xyes
19146 printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h
19154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5
19155 printf %s
"checking for fchdir... " >&6; }
19156 if test ${ac_cv_func_fchdir+y}
19158 printf %s
"(cached) " >&6
19160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19161 /* end confdefs.h. */
19162 #include <unistd.h>
19171 if ac_fn_c_try_compile
"$LINENO"
19173 ac_cv_func_fchdir
=yes
19175 ac_cv_func_fchdir
=no
19177 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fchdir" >&5
19181 printf "%s\n" "$ac_cv_func_fchdir" >&6; }
19182 if test "x$ac_cv_func_fchdir" = xyes
19185 printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h
19193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5
19194 printf %s
"checking for fsync... " >&6; }
19195 if test ${ac_cv_func_fsync+y}
19197 printf %s
"(cached) " >&6
19199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19201 #include <unistd.h>
19210 if ac_fn_c_try_compile
"$LINENO"
19212 ac_cv_func_fsync
=yes
19214 ac_cv_func_fsync
=no
19216 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fsync" >&5
19220 printf "%s\n" "$ac_cv_func_fsync" >&6; }
19221 if test "x$ac_cv_func_fsync" = xyes
19224 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
19232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5
19233 printf %s
"checking for fdatasync... " >&6; }
19234 if test ${ac_cv_func_fdatasync+y}
19236 printf %s
"(cached) " >&6
19238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h. */
19240 #include <unistd.h>
19249 if ac_fn_c_try_compile
"$LINENO"
19251 ac_cv_func_fdatasync
=yes
19253 ac_cv_func_fdatasync
=no
19255 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fdatasync" >&5
19259 printf "%s\n" "$ac_cv_func_fdatasync" >&6; }
19260 if test "x$ac_cv_func_fdatasync" = xyes
19263 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
19271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create" >&5
19272 printf %s
"checking for epoll_create... " >&6; }
19273 if test ${ac_cv_func_epoll_create+y}
19275 printf %s
"(cached) " >&6
19277 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19279 #include <sys/epoll.h>
19283 void *x=epoll_create
19288 if ac_fn_c_try_compile
"$LINENO"
19290 ac_cv_func_epoll_create
=yes
19292 ac_cv_func_epoll_create
=no
19294 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create" >&5
19298 printf "%s\n" "$ac_cv_func_epoll_create" >&6; }
19299 if test "x$ac_cv_func_epoll_create" = xyes
19302 printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h
19310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5
19311 printf %s
"checking for epoll_create1... " >&6; }
19312 if test ${ac_cv_func_epoll_create1+y}
19314 printf %s
"(cached) " >&6
19316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19317 /* end confdefs.h. */
19318 #include <sys/epoll.h>
19322 void *x=epoll_create1
19327 if ac_fn_c_try_compile
"$LINENO"
19329 ac_cv_func_epoll_create1
=yes
19331 ac_cv_func_epoll_create1
=no
19333 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create1" >&5
19337 printf "%s\n" "$ac_cv_func_epoll_create1" >&6; }
19338 if test "x$ac_cv_func_epoll_create1" = xyes
19341 printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h
19349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5
19350 printf %s
"checking for kqueue... " >&6; }
19351 if test ${ac_cv_func_kqueue+y}
19353 printf %s
"(cached) " >&6
19355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19356 /* end confdefs.h. */
19358 #include <sys/types.h>
19359 #include <sys/event.h>
19369 if ac_fn_c_try_compile
"$LINENO"
19371 ac_cv_func_kqueue
=yes
19373 ac_cv_func_kqueue
=no
19375 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_kqueue" >&5
19379 printf "%s\n" "$ac_cv_func_kqueue" >&6; }
19380 if test "x$ac_cv_func_kqueue" = xyes
19383 printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h
19391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5
19392 printf %s
"checking for prlimit... " >&6; }
19393 if test ${ac_cv_func_prlimit+y}
19395 printf %s
"(cached) " >&6
19397 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19400 #include <sys/time.h>
19401 #include <sys/resource.h>
19411 if ac_fn_c_try_compile
"$LINENO"
19413 ac_cv_func_prlimit
=yes
19415 ac_cv_func_prlimit
=no
19417 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_prlimit" >&5
19421 printf "%s\n" "$ac_cv_func_prlimit" >&6; }
19422 if test "x$ac_cv_func_prlimit" = xyes
19425 printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h
19434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5
19435 printf %s
"checking for _dyld_shared_cache_contains_path... " >&6; }
19436 if test ${ac_cv_func__dyld_shared_cache_contains_path+y}
19438 printf %s
"(cached) " >&6
19440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19442 #include <mach-o/dyld.h>
19446 void *x=_dyld_shared_cache_contains_path
19451 if ac_fn_c_try_compile
"$LINENO"
19453 ac_cv_func__dyld_shared_cache_contains_path
=yes
19455 ac_cv_func__dyld_shared_cache_contains_path
=no
19457 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__dyld_shared_cache_contains_path" >&5
19461 printf "%s\n" "$ac_cv_func__dyld_shared_cache_contains_path" >&6; }
19462 if test "x$ac_cv_func__dyld_shared_cache_contains_path" = xyes
19465 printf "%s\n" "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h
19474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5
19475 printf %s
"checking for memfd_create... " >&6; }
19476 if test ${ac_cv_func_memfd_create+y}
19478 printf %s
"(cached) " >&6
19480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19481 /* end confdefs.h. */
19483 #ifdef HAVE_SYS_MMAN_H
19484 #include <sys/mman.h>
19486 #ifdef HAVE_SYS_MEMFD_H
19487 #include <sys/memfd.h>
19493 void *x=memfd_create
19498 if ac_fn_c_try_compile
"$LINENO"
19500 ac_cv_func_memfd_create
=yes
19502 ac_cv_func_memfd_create
=no
19504 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memfd_create" >&5
19508 printf "%s\n" "$ac_cv_func_memfd_create" >&6; }
19509 if test "x$ac_cv_func_memfd_create" = xyes
19512 printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h
19521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5
19522 printf %s
"checking for eventfd... " >&6; }
19523 if test ${ac_cv_func_eventfd+y}
19525 printf %s
"(cached) " >&6
19527 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19530 #ifdef HAVE_SYS_EVENTFD_H
19531 #include <sys/eventfd.h>
19542 if ac_fn_c_try_compile
"$LINENO"
19544 ac_cv_func_eventfd
=yes
19546 ac_cv_func_eventfd
=no
19548 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_eventfd" >&5
19552 printf "%s\n" "$ac_cv_func_eventfd" >&6; }
19553 if test "x$ac_cv_func_eventfd" = xyes
19556 printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h
19565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_create" >&5
19566 printf %s
"checking for timerfd_create... " >&6; }
19567 if test ${ac_cv_func_timerfd_create+y}
19569 printf %s
"(cached) " >&6
19571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19572 /* end confdefs.h. */
19574 #ifdef HAVE_SYS_TIMERFD_H
19575 #include <sys/timerfd.h>
19581 void *x=timerfd_create
19586 if ac_fn_c_try_compile
"$LINENO"
19588 ac_cv_func_timerfd_create
=yes
19590 ac_cv_func_timerfd_create
=no
19592 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_timerfd_create" >&5
19596 printf "%s\n" "$ac_cv_func_timerfd_create" >&6; }
19597 if test "x$ac_cv_func_timerfd_create" = xyes
19600 printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h
19607 # On some systems (eg. FreeBSD 5), we would find a definition of the
19608 # functions ctermid_r, setgroups in the library, but no prototype
19609 # (e.g. because we use _XOPEN_SOURCE). See whether we can take their
19610 # address to avoid compiler warnings and potential miscompilations
19611 # because of the missing prototypes.
19615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5
19616 printf %s
"checking for ctermid_r... " >&6; }
19617 if test ${ac_cv_func_ctermid_r+y}
19619 printf %s
"(cached) " >&6
19621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19632 if ac_fn_c_try_compile
"$LINENO"
19634 ac_cv_func_ctermid_r
=yes
19636 ac_cv_func_ctermid_r
=no
19638 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctermid_r" >&5
19642 printf "%s\n" "$ac_cv_func_ctermid_r" >&6; }
19643 if test "x$ac_cv_func_ctermid_r" = xyes
19646 printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h
19653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5
19654 printf %s
"checking for flock declaration... " >&6; }
19655 if test ${ac_cv_flock_decl+y}
19657 printf %s
"(cached) " >&6
19659 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19660 /* end confdefs.h. */
19661 #include <sys/file.h>
19671 if ac_fn_c_try_compile
"$LINENO"
19673 ac_cv_flock_decl
=yes
19675 ac_cv_flock_decl
=no
19678 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5
19682 printf "%s\n" "$ac_cv_flock_decl" >&6; }
19683 if test "x$ac_cv_flock_decl" = xyes
19686 for ac_func
in flock
19688 ac_fn_c_check_func
"$LINENO" "flock" "ac_cv_func_flock"
19689 if test "x$ac_cv_func_flock" = xyes
19691 printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h
19694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5
19695 printf %s
"checking for flock in -lbsd... " >&6; }
19696 if test ${ac_cv_lib_bsd_flock+y}
19698 printf %s
"(cached) " >&6
19700 ac_check_lib_save_LIBS
=$LIBS
19702 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19703 /* end confdefs.h. */
19705 /* Override any GCC internal prototype to avoid an error.
19706 Use char because int might match the return type of a GCC
19707 builtin and then its argument prototype would still apply. */
19717 if ac_fn_c_try_link
"$LINENO"
19719 ac_cv_lib_bsd_flock
=yes
19721 ac_cv_lib_bsd_flock
=no
19723 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
19724 conftest
$ac_exeext conftest.
$ac_ext
19725 LIBS
=$ac_check_lib_save_LIBS
19727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5
19728 printf "%s\n" "$ac_cv_lib_bsd_flock" >&6; }
19729 if test "x$ac_cv_lib_bsd_flock" = xyes
19741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5
19742 printf %s
"checking for getpagesize... " >&6; }
19743 if test ${ac_cv_func_getpagesize+y}
19745 printf %s
"(cached) " >&6
19747 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19748 /* end confdefs.h. */
19749 #include <unistd.h>
19753 void *x=getpagesize
19758 if ac_fn_c_try_compile
"$LINENO"
19760 ac_cv_func_getpagesize
=yes
19762 ac_cv_func_getpagesize
=no
19764 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpagesize" >&5
19768 printf "%s\n" "$ac_cv_func_getpagesize" >&6; }
19769 if test "x$ac_cv_func_getpagesize" = xyes
19772 printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h
19779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5
19780 printf %s
"checking for broken unsetenv... " >&6; }
19781 if test ${ac_cv_broken_unsetenv+y}
19783 printf %s
"(cached) " >&6
19785 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19786 /* end confdefs.h. */
19787 #include <stdlib.h>
19791 int res = unsetenv("DUMMY")
19796 if ac_fn_c_try_compile
"$LINENO"
19798 ac_cv_broken_unsetenv
=no
19800 ac_cv_broken_unsetenv
=yes
19803 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_unsetenv" >&5
19807 printf "%s\n" "$ac_cv_broken_unsetenv" >&6; }
19808 if test "x$ac_cv_broken_unsetenv" = xyes
19812 printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h
19817 for ac_prog
in true
19819 # Extract the first word of "$ac_prog", so it can be a program name with args.
19820 set dummy
$ac_prog; ac_word
=$2
19821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19822 printf %s
"checking for $ac_word... " >&6; }
19823 if test ${ac_cv_prog_TRUE+y}
19825 printf %s
"(cached) " >&6
19827 if test -n "$TRUE"; then
19828 ac_cv_prog_TRUE
="$TRUE" # Let the user override the test.
19830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19831 for as_dir
in $PATH
19834 case $as_dir in #(((
19837 *) as_dir
=$as_dir/ ;;
19839 for ac_exec_ext
in '' $ac_executable_extensions; do
19840 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
19841 ac_cv_prog_TRUE
="$ac_prog"
19842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19851 TRUE
=$ac_cv_prog_TRUE
19852 if test -n "$TRUE"; then
19853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5
19854 printf "%s\n" "$TRUE" >&6; }
19856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19857 printf "%s\n" "no" >&6; }
19861 test -n "$TRUE" && break
19863 test -n "$TRUE" || TRUE
="/bin/true"
19866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5
19867 printf %s
"checking for inet_aton in -lc... " >&6; }
19868 if test ${ac_cv_lib_c_inet_aton+y}
19870 printf %s
"(cached) " >&6
19872 ac_check_lib_save_LIBS
=$LIBS
19874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19875 /* end confdefs.h. */
19877 /* Override any GCC internal prototype to avoid an error.
19878 Use char because int might match the return type of a GCC
19879 builtin and then its argument prototype would still apply. */
19884 return inet_aton ();
19889 if ac_fn_c_try_link
"$LINENO"
19891 ac_cv_lib_c_inet_aton
=yes
19893 ac_cv_lib_c_inet_aton
=no
19895 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
19896 conftest
$ac_exeext conftest.
$ac_ext
19897 LIBS
=$ac_check_lib_save_LIBS
19899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5
19900 printf "%s\n" "$ac_cv_lib_c_inet_aton" >&6; }
19901 if test "x$ac_cv_lib_c_inet_aton" = xyes
19905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
19906 printf %s
"checking for inet_aton in -lresolv... " >&6; }
19907 if test ${ac_cv_lib_resolv_inet_aton+y}
19909 printf %s
"(cached) " >&6
19911 ac_check_lib_save_LIBS
=$LIBS
19912 LIBS
="-lresolv $LIBS"
19913 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19914 /* end confdefs.h. */
19916 /* Override any GCC internal prototype to avoid an error.
19917 Use char because int might match the return type of a GCC
19918 builtin and then its argument prototype would still apply. */
19923 return inet_aton ();
19928 if ac_fn_c_try_link
"$LINENO"
19930 ac_cv_lib_resolv_inet_aton
=yes
19932 ac_cv_lib_resolv_inet_aton
=no
19934 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
19935 conftest
$ac_exeext conftest.
$ac_ext
19936 LIBS
=$ac_check_lib_save_LIBS
19938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
19939 printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; }
19940 if test "x$ac_cv_lib_resolv_inet_aton" = xyes
19942 printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
19944 LIBS
="-lresolv $LIBS"
19952 # On Tru64, chflags seems to be present, but calling it will
19954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5
19955 printf %s
"checking for chflags... " >&6; }
19956 if test ${ac_cv_have_chflags+y}
19958 printf %s
"(cached) " >&6
19960 if test "$cross_compiling" = yes
19962 ac_cv_have_chflags
=cross
19964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
19965 /* end confdefs.h. */
19967 #include <sys/stat.h>
19968 #include <unistd.h>
19969 int main(int argc, char *argv[])
19971 if(chflags(argv[0], 0) != 0)
19977 if ac_fn_c_try_run
"$LINENO"
19979 ac_cv_have_chflags
=yes
19981 ac_cv_have_chflags
=no
19983 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
19984 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
19989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5
19990 printf "%s\n" "$ac_cv_have_chflags" >&6; }
19991 if test "$ac_cv_have_chflags" = cross
; then
19992 ac_fn_c_check_func
"$LINENO" "chflags" "ac_cv_func_chflags"
19993 if test "x$ac_cv_func_chflags" = xyes
19995 ac_cv_have_chflags
="yes"
19997 ac_cv_have_chflags
="no"
20001 if test "$ac_cv_have_chflags" = yes ; then
20003 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
20007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5
20008 printf %s
"checking for lchflags... " >&6; }
20009 if test ${ac_cv_have_lchflags+y}
20011 printf %s
"(cached) " >&6
20013 if test "$cross_compiling" = yes
20015 ac_cv_have_lchflags
=cross
20017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20018 /* end confdefs.h. */
20020 #include <sys/stat.h>
20021 #include <unistd.h>
20022 int main(int argc, char *argv[])
20024 if(lchflags(argv[0], 0) != 0)
20030 if ac_fn_c_try_run
"$LINENO"
20032 ac_cv_have_lchflags
=yes
20034 ac_cv_have_lchflags
=no
20036 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
20037 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5
20043 printf "%s\n" "$ac_cv_have_lchflags" >&6; }
20044 if test "$ac_cv_have_lchflags" = cross
; then
20045 ac_fn_c_check_func
"$LINENO" "lchflags" "ac_cv_func_lchflags"
20046 if test "x$ac_cv_func_lchflags" = xyes
20048 ac_cv_have_lchflags
="yes"
20050 ac_cv_have_lchflags
="no"
20054 if test "$ac_cv_have_lchflags" = yes ; then
20056 printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h
20065 if test "$ac_sys_system" = "Emscripten" -a -z "$ZLIB_CFLAGS" -a -z "$ZLIB_LIBS"
20068 ZLIB_CFLAGS
="-sUSE_ZLIB"
20069 ZLIB_LIBS
="-sUSE_ZLIB"
20078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0" >&5
20079 printf %s
"checking for zlib >= 1.2.0... " >&6; }
20081 if test -n "$ZLIB_CFLAGS"; then
20082 pkg_cv_ZLIB_CFLAGS
="$ZLIB_CFLAGS"
20083 elif test -n "$PKG_CONFIG"; then
20084 if test -n "$PKG_CONFIG" && \
20085 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
20086 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
20088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20089 test $ac_status = 0; }; then
20090 pkg_cv_ZLIB_CFLAGS
=`$PKG_CONFIG --cflags "zlib >= 1.2.0" 2>/dev/null`
20091 test "x$?" != "x0" && pkg_failed
=yes
20098 if test -n "$ZLIB_LIBS"; then
20099 pkg_cv_ZLIB_LIBS
="$ZLIB_LIBS"
20100 elif test -n "$PKG_CONFIG"; then
20101 if test -n "$PKG_CONFIG" && \
20102 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5
20103 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5
20105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20106 test $ac_status = 0; }; then
20107 pkg_cv_ZLIB_LIBS
=`$PKG_CONFIG --libs "zlib >= 1.2.0" 2>/dev/null`
20108 test "x$?" != "x0" && pkg_failed
=yes
20118 if test $pkg_failed = yes; then
20119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20120 printf "%s\n" "no" >&6; }
20122 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20123 _pkg_short_errors_supported
=yes
20125 _pkg_short_errors_supported
=no
20127 if test $_pkg_short_errors_supported = yes; then
20128 ZLIB_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
20130 ZLIB_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1`
20132 # Put the nasty error message in config.log where it belongs
20133 echo "$ZLIB_PKG_ERRORS" >&5
20136 save_CFLAGS
=$CFLAGS
20137 save_CPPFLAGS
=$CPPFLAGS
20138 save_LDFLAGS
=$LDFLAGS
20142 CPPFLAGS
="$CPPFLAGS $ZLIB_CFLAGS"
20143 LDFLAGS
="$LDFLAGS $ZLIB_LIBS"
20144 for ac_header
in zlib.h
20146 ac_fn_c_check_header_compile
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20147 if test "x$ac_cv_header_zlib_h" = xyes
20149 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
20151 py_check_lib_save_LIBS
=$LIBS
20152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20153 printf %s
"checking for gzread in -lz... " >&6; }
20154 if test ${ac_cv_lib_z_gzread+y}
20156 printf %s
"(cached) " >&6
20158 ac_check_lib_save_LIBS
=$LIBS
20160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20161 /* end confdefs.h. */
20163 /* Override any GCC internal prototype to avoid an error.
20164 Use char because int might match the return type of a GCC
20165 builtin and then its argument prototype would still apply. */
20175 if ac_fn_c_try_link
"$LINENO"
20177 ac_cv_lib_z_gzread
=yes
20179 ac_cv_lib_z_gzread
=no
20181 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
20182 conftest
$ac_exeext conftest.
$ac_ext
20183 LIBS
=$ac_check_lib_save_LIBS
20185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20186 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
20187 if test "x$ac_cv_lib_z_gzread" = xyes
20194 LIBS
=$py_check_lib_save_LIBS
20202 if test "x$have_zlib" = xyes
20205 ZLIB_CFLAGS
=${ZLIB_CFLAGS-""}
20206 ZLIB_LIBS
=${ZLIB_LIBS-"-lz"}
20207 py_check_lib_save_LIBS
=$LIBS
20208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
20209 printf %s
"checking for inflateCopy in -lz... " >&6; }
20210 if test ${ac_cv_lib_z_inflateCopy+y}
20212 printf %s
"(cached) " >&6
20214 ac_check_lib_save_LIBS
=$LIBS
20216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20217 /* end confdefs.h. */
20219 /* Override any GCC internal prototype to avoid an error.
20220 Use char because int might match the return type of a GCC
20221 builtin and then its argument prototype would still apply. */
20222 char inflateCopy ();
20226 return inflateCopy ();
20231 if ac_fn_c_try_link
"$LINENO"
20233 ac_cv_lib_z_inflateCopy
=yes
20235 ac_cv_lib_z_inflateCopy
=no
20237 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
20238 conftest
$ac_exeext conftest.
$ac_ext
20239 LIBS
=$ac_check_lib_save_LIBS
20241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
20242 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
20243 if test "x$ac_cv_lib_z_inflateCopy" = xyes
20245 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20249 LIBS
=$py_check_lib_save_LIBS
20254 CFLAGS
=$save_CFLAGS
20255 CPPFLAGS
=$save_CPPFLAGS
20256 LDFLAGS
=$save_LDFLAGS
20261 elif test $pkg_failed = untried
; then
20262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20263 printf "%s\n" "no" >&6; }
20265 save_CFLAGS
=$CFLAGS
20266 save_CPPFLAGS
=$CPPFLAGS
20267 save_LDFLAGS
=$LDFLAGS
20271 CPPFLAGS
="$CPPFLAGS $ZLIB_CFLAGS"
20272 LDFLAGS
="$LDFLAGS $ZLIB_LIBS"
20273 for ac_header
in zlib.h
20275 ac_fn_c_check_header_compile
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20276 if test "x$ac_cv_header_zlib_h" = xyes
20278 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
20280 py_check_lib_save_LIBS
=$LIBS
20281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20282 printf %s
"checking for gzread in -lz... " >&6; }
20283 if test ${ac_cv_lib_z_gzread+y}
20285 printf %s
"(cached) " >&6
20287 ac_check_lib_save_LIBS
=$LIBS
20289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20290 /* end confdefs.h. */
20292 /* Override any GCC internal prototype to avoid an error.
20293 Use char because int might match the return type of a GCC
20294 builtin and then its argument prototype would still apply. */
20304 if ac_fn_c_try_link
"$LINENO"
20306 ac_cv_lib_z_gzread
=yes
20308 ac_cv_lib_z_gzread
=no
20310 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
20311 conftest
$ac_exeext conftest.
$ac_ext
20312 LIBS
=$ac_check_lib_save_LIBS
20314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20315 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
20316 if test "x$ac_cv_lib_z_gzread" = xyes
20323 LIBS
=$py_check_lib_save_LIBS
20331 if test "x$have_zlib" = xyes
20334 ZLIB_CFLAGS
=${ZLIB_CFLAGS-""}
20335 ZLIB_LIBS
=${ZLIB_LIBS-"-lz"}
20336 py_check_lib_save_LIBS
=$LIBS
20337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
20338 printf %s
"checking for inflateCopy in -lz... " >&6; }
20339 if test ${ac_cv_lib_z_inflateCopy+y}
20341 printf %s
"(cached) " >&6
20343 ac_check_lib_save_LIBS
=$LIBS
20345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20346 /* end confdefs.h. */
20348 /* Override any GCC internal prototype to avoid an error.
20349 Use char because int might match the return type of a GCC
20350 builtin and then its argument prototype would still apply. */
20351 char inflateCopy ();
20355 return inflateCopy ();
20360 if ac_fn_c_try_link
"$LINENO"
20362 ac_cv_lib_z_inflateCopy
=yes
20364 ac_cv_lib_z_inflateCopy
=no
20366 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
20367 conftest
$ac_exeext conftest.
$ac_ext
20368 LIBS
=$ac_check_lib_save_LIBS
20370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
20371 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
20372 if test "x$ac_cv_lib_z_inflateCopy" = xyes
20374 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20378 LIBS
=$py_check_lib_save_LIBS
20383 CFLAGS
=$save_CFLAGS
20384 CPPFLAGS
=$save_CPPFLAGS
20385 LDFLAGS
=$save_LDFLAGS
20391 ZLIB_CFLAGS
=$pkg_cv_ZLIB_CFLAGS
20392 ZLIB_LIBS
=$pkg_cv_ZLIB_LIBS
20393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20394 printf "%s\n" "yes" >&6; }
20397 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h
20402 if test "x$have_zlib" = xyes
20405 BINASCII_CFLAGS
="-DUSE_ZLIB_CRC32 $ZLIB_CFLAGS"
20406 BINASCII_LIBS
="$ZLIB_LIBS"
20413 if test "$ac_sys_system" = "Emscripten" -a -z "$BZIP2_CFLAGS" -a -z "$BZIP2_LIBS"
20416 BZIP2_CFLAGS
="-sUSE_BZIP2"
20417 BZIP2_LIBS
="-sUSE_BZIP2"
20426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzip2" >&5
20427 printf %s
"checking for bzip2... " >&6; }
20429 if test -n "$BZIP2_CFLAGS"; then
20430 pkg_cv_BZIP2_CFLAGS
="$BZIP2_CFLAGS"
20431 elif test -n "$PKG_CONFIG"; then
20432 if test -n "$PKG_CONFIG" && \
20433 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
20434 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
20436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20437 test $ac_status = 0; }; then
20438 pkg_cv_BZIP2_CFLAGS
=`$PKG_CONFIG --cflags "bzip2" 2>/dev/null`
20439 test "x$?" != "x0" && pkg_failed
=yes
20446 if test -n "$BZIP2_LIBS"; then
20447 pkg_cv_BZIP2_LIBS
="$BZIP2_LIBS"
20448 elif test -n "$PKG_CONFIG"; then
20449 if test -n "$PKG_CONFIG" && \
20450 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5
20451 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5
20453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20454 test $ac_status = 0; }; then
20455 pkg_cv_BZIP2_LIBS
=`$PKG_CONFIG --libs "bzip2" 2>/dev/null`
20456 test "x$?" != "x0" && pkg_failed
=yes
20466 if test $pkg_failed = yes; then
20467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20468 printf "%s\n" "no" >&6; }
20470 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20471 _pkg_short_errors_supported
=yes
20473 _pkg_short_errors_supported
=no
20475 if test $_pkg_short_errors_supported = yes; then
20476 BZIP2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2" 2>&1`
20478 BZIP2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "bzip2" 2>&1`
20480 # Put the nasty error message in config.log where it belongs
20481 echo "$BZIP2_PKG_ERRORS" >&5
20484 save_CFLAGS
=$CFLAGS
20485 save_CPPFLAGS
=$CPPFLAGS
20486 save_LDFLAGS
=$LDFLAGS
20490 CPPFLAGS
="$CPPFLAGS $BZIP2_CFLAGS"
20491 LDFLAGS
="$LDFLAGS $BZIP2_LIBS"
20492 for ac_header
in bzlib.h
20494 ac_fn_c_check_header_compile
"$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
20495 if test "x$ac_cv_header_bzlib_h" = xyes
20497 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
20499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
20500 printf %s
"checking for BZ2_bzCompress in -lbz2... " >&6; }
20501 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
20503 printf %s
"(cached) " >&6
20505 ac_check_lib_save_LIBS
=$LIBS
20507 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20508 /* end confdefs.h. */
20510 /* Override any GCC internal prototype to avoid an error.
20511 Use char because int might match the return type of a GCC
20512 builtin and then its argument prototype would still apply. */
20513 char BZ2_bzCompress ();
20517 return BZ2_bzCompress ();
20522 if ac_fn_c_try_link
"$LINENO"
20524 ac_cv_lib_bz2_BZ2_bzCompress
=yes
20526 ac_cv_lib_bz2_BZ2_bzCompress
=no
20528 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
20529 conftest
$ac_exeext conftest.
$ac_ext
20530 LIBS
=$ac_check_lib_save_LIBS
20532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
20533 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
20534 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
20547 if test "x$have_bzip2" = xyes
20550 BZIP2_CFLAGS
=${BZIP2_CFLAGS-""}
20551 BZIP2_LIBS
=${BZIP2_LIBS-"-lbz2"}
20555 CFLAGS
=$save_CFLAGS
20556 CPPFLAGS
=$save_CPPFLAGS
20557 LDFLAGS
=$save_LDFLAGS
20562 elif test $pkg_failed = untried
; then
20563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20564 printf "%s\n" "no" >&6; }
20566 save_CFLAGS
=$CFLAGS
20567 save_CPPFLAGS
=$CPPFLAGS
20568 save_LDFLAGS
=$LDFLAGS
20572 CPPFLAGS
="$CPPFLAGS $BZIP2_CFLAGS"
20573 LDFLAGS
="$LDFLAGS $BZIP2_LIBS"
20574 for ac_header
in bzlib.h
20576 ac_fn_c_check_header_compile
"$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
20577 if test "x$ac_cv_header_bzlib_h" = xyes
20579 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h
20581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5
20582 printf %s
"checking for BZ2_bzCompress in -lbz2... " >&6; }
20583 if test ${ac_cv_lib_bz2_BZ2_bzCompress+y}
20585 printf %s
"(cached) " >&6
20587 ac_check_lib_save_LIBS
=$LIBS
20589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h. */
20592 /* Override any GCC internal prototype to avoid an error.
20593 Use char because int might match the return type of a GCC
20594 builtin and then its argument prototype would still apply. */
20595 char BZ2_bzCompress ();
20599 return BZ2_bzCompress ();
20604 if ac_fn_c_try_link
"$LINENO"
20606 ac_cv_lib_bz2_BZ2_bzCompress
=yes
20608 ac_cv_lib_bz2_BZ2_bzCompress
=no
20610 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
20611 conftest
$ac_exeext conftest.
$ac_ext
20612 LIBS
=$ac_check_lib_save_LIBS
20614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5
20615 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; }
20616 if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes
20629 if test "x$have_bzip2" = xyes
20632 BZIP2_CFLAGS
=${BZIP2_CFLAGS-""}
20633 BZIP2_LIBS
=${BZIP2_LIBS-"-lbz2"}
20637 CFLAGS
=$save_CFLAGS
20638 CPPFLAGS
=$save_CPPFLAGS
20639 LDFLAGS
=$save_LDFLAGS
20645 BZIP2_CFLAGS
=$pkg_cv_BZIP2_CFLAGS
20646 BZIP2_LIBS
=$pkg_cv_BZIP2_LIBS
20647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20648 printf "%s\n" "yes" >&6; }
20654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5
20655 printf %s
"checking for liblzma... " >&6; }
20657 if test -n "$LIBLZMA_CFLAGS"; then
20658 pkg_cv_LIBLZMA_CFLAGS
="$LIBLZMA_CFLAGS"
20659 elif test -n "$PKG_CONFIG"; then
20660 if test -n "$PKG_CONFIG" && \
20661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
20662 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
20664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20665 test $ac_status = 0; }; then
20666 pkg_cv_LIBLZMA_CFLAGS
=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null`
20667 test "x$?" != "x0" && pkg_failed
=yes
20674 if test -n "$LIBLZMA_LIBS"; then
20675 pkg_cv_LIBLZMA_LIBS
="$LIBLZMA_LIBS"
20676 elif test -n "$PKG_CONFIG"; then
20677 if test -n "$PKG_CONFIG" && \
20678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5
20679 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5
20681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20682 test $ac_status = 0; }; then
20683 pkg_cv_LIBLZMA_LIBS
=`$PKG_CONFIG --libs "liblzma" 2>/dev/null`
20684 test "x$?" != "x0" && pkg_failed
=yes
20694 if test $pkg_failed = yes; then
20695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20696 printf "%s\n" "no" >&6; }
20698 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20699 _pkg_short_errors_supported
=yes
20701 _pkg_short_errors_supported
=no
20703 if test $_pkg_short_errors_supported = yes; then
20704 LIBLZMA_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1`
20706 LIBLZMA_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1`
20708 # Put the nasty error message in config.log where it belongs
20709 echo "$LIBLZMA_PKG_ERRORS" >&5
20712 save_CFLAGS
=$CFLAGS
20713 save_CPPFLAGS
=$CPPFLAGS
20714 save_LDFLAGS
=$LDFLAGS
20718 CPPFLAGS
="$CPPFLAGS $LIBLZMA_CFLAGS"
20719 LDFLAGS
="$LDFLAGS $LIBLZMA_LIBS"
20720 for ac_header
in lzma.h
20722 ac_fn_c_check_header_compile
"$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
20723 if test "x$ac_cv_header_lzma_h" = xyes
20725 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
20727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
20728 printf %s
"checking for lzma_easy_encoder in -llzma... " >&6; }
20729 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
20731 printf %s
"(cached) " >&6
20733 ac_check_lib_save_LIBS
=$LIBS
20734 LIBS
="-llzma $LIBS"
20735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20736 /* end confdefs.h. */
20738 /* Override any GCC internal prototype to avoid an error.
20739 Use char because int might match the return type of a GCC
20740 builtin and then its argument prototype would still apply. */
20741 char lzma_easy_encoder ();
20745 return lzma_easy_encoder ();
20750 if ac_fn_c_try_link
"$LINENO"
20752 ac_cv_lib_lzma_lzma_easy_encoder
=yes
20754 ac_cv_lib_lzma_lzma_easy_encoder
=no
20756 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
20757 conftest
$ac_exeext conftest.
$ac_ext
20758 LIBS
=$ac_check_lib_save_LIBS
20760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
20761 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
20762 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
20775 if test "x$have_liblzma" = xyes
20778 LIBLZMA_CFLAGS
=${LIBLZMA_CFLAGS-""}
20779 LIBLZMA_LIBS
=${LIBLZMA_LIBS-"-llzma"}
20783 CFLAGS
=$save_CFLAGS
20784 CPPFLAGS
=$save_CPPFLAGS
20785 LDFLAGS
=$save_LDFLAGS
20790 elif test $pkg_failed = untried
; then
20791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20792 printf "%s\n" "no" >&6; }
20794 save_CFLAGS
=$CFLAGS
20795 save_CPPFLAGS
=$CPPFLAGS
20796 save_LDFLAGS
=$LDFLAGS
20800 CPPFLAGS
="$CPPFLAGS $LIBLZMA_CFLAGS"
20801 LDFLAGS
="$LDFLAGS $LIBLZMA_LIBS"
20802 for ac_header
in lzma.h
20804 ac_fn_c_check_header_compile
"$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
20805 if test "x$ac_cv_header_lzma_h" = xyes
20807 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h
20809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5
20810 printf %s
"checking for lzma_easy_encoder in -llzma... " >&6; }
20811 if test ${ac_cv_lib_lzma_lzma_easy_encoder+y}
20813 printf %s
"(cached) " >&6
20815 ac_check_lib_save_LIBS
=$LIBS
20816 LIBS
="-llzma $LIBS"
20817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20818 /* end confdefs.h. */
20820 /* Override any GCC internal prototype to avoid an error.
20821 Use char because int might match the return type of a GCC
20822 builtin and then its argument prototype would still apply. */
20823 char lzma_easy_encoder ();
20827 return lzma_easy_encoder ();
20832 if ac_fn_c_try_link
"$LINENO"
20834 ac_cv_lib_lzma_lzma_easy_encoder
=yes
20836 ac_cv_lib_lzma_lzma_easy_encoder
=no
20838 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
20839 conftest
$ac_exeext conftest.
$ac_ext
20840 LIBS
=$ac_check_lib_save_LIBS
20842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5
20843 printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; }
20844 if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes
20857 if test "x$have_liblzma" = xyes
20860 LIBLZMA_CFLAGS
=${LIBLZMA_CFLAGS-""}
20861 LIBLZMA_LIBS
=${LIBLZMA_LIBS-"-llzma"}
20865 CFLAGS
=$save_CFLAGS
20866 CPPFLAGS
=$save_CPPFLAGS
20867 LDFLAGS
=$save_LDFLAGS
20873 LIBLZMA_CFLAGS
=$pkg_cv_LIBLZMA_CFLAGS
20874 LIBLZMA_LIBS
=$pkg_cv_LIBLZMA_LIBS
20875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20876 printf "%s\n" "yes" >&6; }
20884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5
20885 printf %s
"checking for hstrerror... " >&6; }
20886 if test ${ac_cv_func_hstrerror+y}
20888 printf %s
"(cached) " >&6
20890 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h. */
20901 if ac_fn_c_try_compile
"$LINENO"
20903 ac_cv_func_hstrerror
=yes
20905 ac_cv_func_hstrerror
=no
20907 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror" >&5
20911 printf "%s\n" "$ac_cv_func_hstrerror" >&6; }
20912 if test "x$ac_cv_func_hstrerror" = xyes
20915 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
20923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname" >&5
20924 printf %s
"checking for getservbyname... " >&6; }
20925 if test ${ac_cv_func_getservbyname+y}
20927 printf %s
"(cached) " >&6
20929 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20930 /* end confdefs.h. */
20935 void *x=getservbyname
20940 if ac_fn_c_try_compile
"$LINENO"
20942 ac_cv_func_getservbyname
=yes
20944 ac_cv_func_getservbyname
=no
20946 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname" >&5
20950 printf "%s\n" "$ac_cv_func_getservbyname" >&6; }
20951 if test "x$ac_cv_func_getservbyname" = xyes
20954 printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h
20962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyport" >&5
20963 printf %s
"checking for getservbyport... " >&6; }
20964 if test ${ac_cv_func_getservbyport+y}
20966 printf %s
"(cached) " >&6
20968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20969 /* end confdefs.h. */
20974 void *x=getservbyport
20979 if ac_fn_c_try_compile
"$LINENO"
20981 ac_cv_func_getservbyport
=yes
20983 ac_cv_func_getservbyport
=no
20985 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
20988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyport" >&5
20989 printf "%s\n" "$ac_cv_func_getservbyport" >&6; }
20990 if test "x$ac_cv_func_getservbyport" = xyes
20993 printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h
21001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5
21002 printf %s
"checking for gethostbyname... " >&6; }
21003 if test ${ac_cv_func_gethostbyname+y}
21005 printf %s
"(cached) " >&6
21007 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21008 /* end confdefs.h. */
21013 void *x=gethostbyname
21018 if ac_fn_c_try_compile
"$LINENO"
21020 ac_cv_func_gethostbyname
=yes
21022 ac_cv_func_gethostbyname
=no
21024 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname" >&5
21028 printf "%s\n" "$ac_cv_func_gethostbyname" >&6; }
21029 if test "x$ac_cv_func_gethostbyname" = xyes
21032 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
21040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr" >&5
21041 printf %s
"checking for gethostbyaddr... " >&6; }
21042 if test ${ac_cv_func_gethostbyaddr+y}
21044 printf %s
"(cached) " >&6
21046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21047 /* end confdefs.h. */
21052 void *x=gethostbyaddr
21057 if ac_fn_c_try_compile
"$LINENO"
21059 ac_cv_func_gethostbyaddr
=yes
21061 ac_cv_func_gethostbyaddr
=no
21063 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr" >&5
21067 printf "%s\n" "$ac_cv_func_gethostbyaddr" >&6; }
21068 if test "x$ac_cv_func_gethostbyaddr" = xyes
21071 printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h
21079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprotobyname" >&5
21080 printf %s
"checking for getprotobyname... " >&6; }
21081 if test ${ac_cv_func_getprotobyname+y}
21083 printf %s
"(cached) " >&6
21085 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21086 /* end confdefs.h. */
21091 void *x=getprotobyname
21096 if ac_fn_c_try_compile
"$LINENO"
21098 ac_cv_func_getprotobyname
=yes
21100 ac_cv_func_getprotobyname
=no
21102 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getprotobyname" >&5
21106 printf "%s\n" "$ac_cv_func_getprotobyname" >&6; }
21107 if test "x$ac_cv_func_getprotobyname" = xyes
21110 printf "%s\n" "#define HAVE_GETPROTOBYNAME 1" >>confdefs.h
21121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5
21122 printf %s
"checking for inet_aton... " >&6; }
21123 if test ${ac_cv_func_inet_aton+y}
21125 printf %s
"(cached) " >&6
21127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21128 /* end confdefs.h. */
21130 #include <sys/types.h>
21131 #include <sys/socket.h>
21132 #include <netinet/in.h>
21133 #include <arpa/inet.h>
21143 if ac_fn_c_try_compile
"$LINENO"
21145 ac_cv_func_inet_aton
=yes
21147 ac_cv_func_inet_aton
=no
21149 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton" >&5
21153 printf "%s\n" "$ac_cv_func_inet_aton" >&6; }
21154 if test "x$ac_cv_func_inet_aton" = xyes
21157 printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h
21165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa" >&5
21166 printf %s
"checking for inet_ntoa... " >&6; }
21167 if test ${ac_cv_func_inet_ntoa+y}
21169 printf %s
"(cached) " >&6
21171 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21172 /* end confdefs.h. */
21174 #include <sys/types.h>
21175 #include <sys/socket.h>
21176 #include <netinet/in.h>
21177 #include <arpa/inet.h>
21187 if ac_fn_c_try_compile
"$LINENO"
21189 ac_cv_func_inet_ntoa
=yes
21191 ac_cv_func_inet_ntoa
=no
21193 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_ntoa" >&5
21197 printf "%s\n" "$ac_cv_func_inet_ntoa" >&6; }
21198 if test "x$ac_cv_func_inet_ntoa" = xyes
21201 printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h
21209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5
21210 printf %s
"checking for inet_pton... " >&6; }
21211 if test ${ac_cv_func_inet_pton+y}
21213 printf %s
"(cached) " >&6
21215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21216 /* end confdefs.h. */
21218 #include <sys/types.h>
21219 #include <sys/socket.h>
21220 #include <netinet/in.h>
21221 #include <arpa/inet.h>
21231 if ac_fn_c_try_compile
"$LINENO"
21233 ac_cv_func_inet_pton
=yes
21235 ac_cv_func_inet_pton
=no
21237 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_pton" >&5
21241 printf "%s\n" "$ac_cv_func_inet_pton" >&6; }
21242 if test "x$ac_cv_func_inet_pton" = xyes
21245 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
21253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername" >&5
21254 printf %s
"checking for getpeername... " >&6; }
21255 if test ${ac_cv_func_getpeername+y}
21257 printf %s
"(cached) " >&6
21259 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21260 /* end confdefs.h. */
21262 #include <sys/types.h>
21263 #include <sys/socket.h>
21264 #include <netinet/in.h>
21265 #include <arpa/inet.h>
21270 void *x=getpeername
21275 if ac_fn_c_try_compile
"$LINENO"
21277 ac_cv_func_getpeername
=yes
21279 ac_cv_func_getpeername
=no
21281 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpeername" >&5
21285 printf "%s\n" "$ac_cv_func_getpeername" >&6; }
21286 if test "x$ac_cv_func_getpeername" = xyes
21289 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
21297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getsockname" >&5
21298 printf %s
"checking for getsockname... " >&6; }
21299 if test ${ac_cv_func_getsockname+y}
21301 printf %s
"(cached) " >&6
21303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21304 /* end confdefs.h. */
21306 #include <sys/types.h>
21307 #include <sys/socket.h>
21308 #include <netinet/in.h>
21309 #include <arpa/inet.h>
21314 void *x=getsockname
21319 if ac_fn_c_try_compile
"$LINENO"
21321 ac_cv_func_getsockname
=yes
21323 ac_cv_func_getsockname
=no
21325 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname" >&5
21329 printf "%s\n" "$ac_cv_func_getsockname" >&6; }
21330 if test "x$ac_cv_func_getsockname" = xyes
21333 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
21341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept" >&5
21342 printf %s
"checking for accept... " >&6; }
21343 if test ${ac_cv_func_accept+y}
21345 printf %s
"(cached) " >&6
21347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21348 /* end confdefs.h. */
21350 #include <sys/types.h>
21351 #include <sys/socket.h>
21352 #include <netinet/in.h>
21353 #include <arpa/inet.h>
21363 if ac_fn_c_try_compile
"$LINENO"
21365 ac_cv_func_accept
=yes
21367 ac_cv_func_accept
=no
21369 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept" >&5
21373 printf "%s\n" "$ac_cv_func_accept" >&6; }
21374 if test "x$ac_cv_func_accept" = xyes
21377 printf "%s\n" "#define HAVE_ACCEPT 1" >>confdefs.h
21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bind" >&5
21386 printf %s
"checking for bind... " >&6; }
21387 if test ${ac_cv_func_bind+y}
21389 printf %s
"(cached) " >&6
21391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21392 /* end confdefs.h. */
21394 #include <sys/types.h>
21395 #include <sys/socket.h>
21396 #include <netinet/in.h>
21397 #include <arpa/inet.h>
21407 if ac_fn_c_try_compile
"$LINENO"
21409 ac_cv_func_bind
=yes
21413 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_bind" >&5
21417 printf "%s\n" "$ac_cv_func_bind" >&6; }
21418 if test "x$ac_cv_func_bind" = xyes
21421 printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h
21429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect" >&5
21430 printf %s
"checking for connect... " >&6; }
21431 if test ${ac_cv_func_connect+y}
21433 printf %s
"(cached) " >&6
21435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21438 #include <sys/types.h>
21439 #include <sys/socket.h>
21440 #include <netinet/in.h>
21441 #include <arpa/inet.h>
21451 if ac_fn_c_try_compile
"$LINENO"
21453 ac_cv_func_connect
=yes
21455 ac_cv_func_connect
=no
21457 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_connect" >&5
21461 printf "%s\n" "$ac_cv_func_connect" >&6; }
21462 if test "x$ac_cv_func_connect" = xyes
21465 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
21473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for listen" >&5
21474 printf %s
"checking for listen... " >&6; }
21475 if test ${ac_cv_func_listen+y}
21477 printf %s
"(cached) " >&6
21479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21480 /* end confdefs.h. */
21482 #include <sys/types.h>
21483 #include <sys/socket.h>
21484 #include <netinet/in.h>
21485 #include <arpa/inet.h>
21495 if ac_fn_c_try_compile
"$LINENO"
21497 ac_cv_func_listen
=yes
21499 ac_cv_func_listen
=no
21501 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_listen" >&5
21505 printf "%s\n" "$ac_cv_func_listen" >&6; }
21506 if test "x$ac_cv_func_listen" = xyes
21509 printf "%s\n" "#define HAVE_LISTEN 1" >>confdefs.h
21517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5
21518 printf %s
"checking for recvfrom... " >&6; }
21519 if test ${ac_cv_func_recvfrom+y}
21521 printf %s
"(cached) " >&6
21523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h. */
21526 #include <sys/types.h>
21527 #include <sys/socket.h>
21528 #include <netinet/in.h>
21529 #include <arpa/inet.h>
21539 if ac_fn_c_try_compile
"$LINENO"
21541 ac_cv_func_recvfrom
=yes
21543 ac_cv_func_recvfrom
=no
21545 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_recvfrom" >&5
21549 printf "%s\n" "$ac_cv_func_recvfrom" >&6; }
21550 if test "x$ac_cv_func_recvfrom" = xyes
21553 printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h
21561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendto" >&5
21562 printf %s
"checking for sendto... " >&6; }
21563 if test ${ac_cv_func_sendto+y}
21565 printf %s
"(cached) " >&6
21567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21568 /* end confdefs.h. */
21570 #include <sys/types.h>
21571 #include <sys/socket.h>
21572 #include <netinet/in.h>
21573 #include <arpa/inet.h>
21583 if ac_fn_c_try_compile
"$LINENO"
21585 ac_cv_func_sendto
=yes
21587 ac_cv_func_sendto
=no
21589 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sendto" >&5
21593 printf "%s\n" "$ac_cv_func_sendto" >&6; }
21594 if test "x$ac_cv_func_sendto" = xyes
21597 printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h
21605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5
21606 printf %s
"checking for setsockopt... " >&6; }
21607 if test ${ac_cv_func_setsockopt+y}
21609 printf %s
"(cached) " >&6
21611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21612 /* end confdefs.h. */
21614 #include <sys/types.h>
21615 #include <sys/socket.h>
21616 #include <netinet/in.h>
21617 #include <arpa/inet.h>
21627 if ac_fn_c_try_compile
"$LINENO"
21629 ac_cv_func_setsockopt
=yes
21631 ac_cv_func_setsockopt
=no
21633 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setsockopt" >&5
21637 printf "%s\n" "$ac_cv_func_setsockopt" >&6; }
21638 if test "x$ac_cv_func_setsockopt" = xyes
21641 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
21649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket" >&5
21650 printf %s
"checking for socket... " >&6; }
21651 if test ${ac_cv_func_socket+y}
21653 printf %s
"(cached) " >&6
21655 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21656 /* end confdefs.h. */
21658 #include <sys/types.h>
21659 #include <sys/socket.h>
21660 #include <netinet/in.h>
21661 #include <arpa/inet.h>
21671 if ac_fn_c_try_compile
"$LINENO"
21673 ac_cv_func_socket
=yes
21675 ac_cv_func_socket
=no
21677 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socket" >&5
21681 printf "%s\n" "$ac_cv_func_socket" >&6; }
21682 if test "x$ac_cv_func_socket" = xyes
21685 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
21692 # On some systems, setgroups is in unistd.h, on others, in grp.h
21695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5
21696 printf %s
"checking for setgroups... " >&6; }
21697 if test ${ac_cv_func_setgroups+y}
21699 printf %s
"(cached) " >&6
21701 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21702 /* end confdefs.h. */
21704 #include <unistd.h>
21717 if ac_fn_c_try_compile
"$LINENO"
21719 ac_cv_func_setgroups
=yes
21721 ac_cv_func_setgroups
=no
21723 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setgroups" >&5
21727 printf "%s\n" "$ac_cv_func_setgroups" >&6; }
21728 if test "x$ac_cv_func_setgroups" = xyes
21731 printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h
21738 # check for openpty, login_tty, and forkpty
21741 for ac_func
in openpty
21743 ac_fn_c_check_func
"$LINENO" "openpty" "ac_cv_func_openpty"
21744 if test "x$ac_cv_func_openpty" = xyes
21746 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
21749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21750 printf %s
"checking for openpty in -lutil... " >&6; }
21751 if test ${ac_cv_lib_util_openpty+y}
21753 printf %s
"(cached) " >&6
21755 ac_check_lib_save_LIBS
=$LIBS
21756 LIBS
="-lutil $LIBS"
21757 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21758 /* end confdefs.h. */
21760 /* Override any GCC internal prototype to avoid an error.
21761 Use char because int might match the return type of a GCC
21762 builtin and then its argument prototype would still apply. */
21772 if ac_fn_c_try_link
"$LINENO"
21774 ac_cv_lib_util_openpty
=yes
21776 ac_cv_lib_util_openpty
=no
21778 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
21779 conftest
$ac_exeext conftest.
$ac_ext
21780 LIBS
=$ac_check_lib_save_LIBS
21782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21783 printf "%s\n" "$ac_cv_lib_util_openpty" >&6; }
21784 if test "x$ac_cv_lib_util_openpty" = xyes
21786 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
21787 LIBS
="$LIBS -lutil"
21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5
21790 printf %s
"checking for openpty in -lbsd... " >&6; }
21791 if test ${ac_cv_lib_bsd_openpty+y}
21793 printf %s
"(cached) " >&6
21795 ac_check_lib_save_LIBS
=$LIBS
21797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21798 /* end confdefs.h. */
21800 /* Override any GCC internal prototype to avoid an error.
21801 Use char because int might match the return type of a GCC
21802 builtin and then its argument prototype would still apply. */
21812 if ac_fn_c_try_link
"$LINENO"
21814 ac_cv_lib_bsd_openpty
=yes
21816 ac_cv_lib_bsd_openpty
=no
21818 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
21819 conftest
$ac_exeext conftest.
$ac_ext
21820 LIBS
=$ac_check_lib_save_LIBS
21822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5
21823 printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; }
21824 if test "x$ac_cv_lib_bsd_openpty" = xyes
21826 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h
21835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing login_tty" >&5
21836 printf %s
"checking for library containing login_tty... " >&6; }
21837 if test ${ac_cv_search_login_tty+y}
21839 printf %s
"(cached) " >&6
21841 ac_func_search_save_LIBS
=$LIBS
21842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21843 /* end confdefs.h. */
21845 /* Override any GCC internal prototype to avoid an error.
21846 Use char because int might match the return type of a GCC
21847 builtin and then its argument prototype would still apply. */
21852 return login_tty ();
21857 for ac_lib
in '' util
21859 if test -z "$ac_lib"; then
21860 ac_res
="none required"
21863 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
21865 if ac_fn_c_try_link
"$LINENO"
21867 ac_cv_search_login_tty
=$ac_res
21869 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
21871 if test ${ac_cv_search_login_tty+y}
21876 if test ${ac_cv_search_login_tty+y}
21880 ac_cv_search_login_tty
=no
21882 rm conftest.
$ac_ext
21883 LIBS
=$ac_func_search_save_LIBS
21885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login_tty" >&5
21886 printf "%s\n" "$ac_cv_search_login_tty" >&6; }
21887 ac_res
=$ac_cv_search_login_tty
21888 if test "$ac_res" != no
21890 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
21892 printf "%s\n" "#define HAVE_LOGIN_TTY 1" >>confdefs.h
21898 for ac_func
in forkpty
21900 ac_fn_c_check_func
"$LINENO" "forkpty" "ac_cv_func_forkpty"
21901 if test "x$ac_cv_func_forkpty" = xyes
21903 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
21906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5
21907 printf %s
"checking for forkpty in -lutil... " >&6; }
21908 if test ${ac_cv_lib_util_forkpty+y}
21910 printf %s
"(cached) " >&6
21912 ac_check_lib_save_LIBS
=$LIBS
21913 LIBS
="-lutil $LIBS"
21914 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21915 /* end confdefs.h. */
21917 /* Override any GCC internal prototype to avoid an error.
21918 Use char because int might match the return type of a GCC
21919 builtin and then its argument prototype would still apply. */
21929 if ac_fn_c_try_link
"$LINENO"
21931 ac_cv_lib_util_forkpty
=yes
21933 ac_cv_lib_util_forkpty
=no
21935 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
21936 conftest
$ac_exeext conftest.
$ac_ext
21937 LIBS
=$ac_check_lib_save_LIBS
21939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5
21940 printf "%s\n" "$ac_cv_lib_util_forkpty" >&6; }
21941 if test "x$ac_cv_lib_util_forkpty" = xyes
21943 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
21944 LIBS
="$LIBS -lutil"
21946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5
21947 printf %s
"checking for forkpty in -lbsd... " >&6; }
21948 if test ${ac_cv_lib_bsd_forkpty+y}
21950 printf %s
"(cached) " >&6
21952 ac_check_lib_save_LIBS
=$LIBS
21954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21955 /* end confdefs.h. */
21957 /* Override any GCC internal prototype to avoid an error.
21958 Use char because int might match the return type of a GCC
21959 builtin and then its argument prototype would still apply. */
21969 if ac_fn_c_try_link
"$LINENO"
21971 ac_cv_lib_bsd_forkpty
=yes
21973 ac_cv_lib_bsd_forkpty
=no
21975 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
21976 conftest
$ac_exeext conftest.
$ac_ext
21977 LIBS
=$ac_check_lib_save_LIBS
21979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5
21980 printf "%s\n" "$ac_cv_lib_bsd_forkpty" >&6; }
21981 if test "x$ac_cv_lib_bsd_forkpty" = xyes
21983 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h
21993 # check for long file support functions
21994 ac_fn_c_check_func
"$LINENO" "fseek64" "ac_cv_func_fseek64"
21995 if test "x$ac_cv_func_fseek64" = xyes
21997 printf "%s\n" "#define HAVE_FSEEK64 1" >>confdefs.h
22000 ac_fn_c_check_func
"$LINENO" "fseeko" "ac_cv_func_fseeko"
22001 if test "x$ac_cv_func_fseeko" = xyes
22003 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
22006 ac_fn_c_check_func
"$LINENO" "fstatvfs" "ac_cv_func_fstatvfs"
22007 if test "x$ac_cv_func_fstatvfs" = xyes
22009 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h
22012 ac_fn_c_check_func
"$LINENO" "ftell64" "ac_cv_func_ftell64"
22013 if test "x$ac_cv_func_ftell64" = xyes
22015 printf "%s\n" "#define HAVE_FTELL64 1" >>confdefs.h
22018 ac_fn_c_check_func
"$LINENO" "ftello" "ac_cv_func_ftello"
22019 if test "x$ac_cv_func_ftello" = xyes
22021 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h
22024 ac_fn_c_check_func
"$LINENO" "statvfs" "ac_cv_func_statvfs"
22025 if test "x$ac_cv_func_statvfs" = xyes
22027 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
22032 ac_fn_c_check_func
"$LINENO" "dup2" "ac_cv_func_dup2"
22033 if test "x$ac_cv_func_dup2" = xyes
22035 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
22038 case " $LIBOBJS " in
22039 *" dup2.$ac_objext "* ) ;;
22040 *) LIBOBJS
="$LIBOBJS dup2.$ac_objext"
22047 for ac_func
in getpgrp
22049 ac_fn_c_check_func
"$LINENO" "getpgrp" "ac_cv_func_getpgrp"
22050 if test "x$ac_cv_func_getpgrp" = xyes
22052 printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h
22053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22054 /* end confdefs.h. */
22055 #include <unistd.h>
22064 if ac_fn_c_try_compile
"$LINENO"
22067 printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h
22070 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22075 for ac_func
in setpgrp
22077 ac_fn_c_check_func
"$LINENO" "setpgrp" "ac_cv_func_setpgrp"
22078 if test "x$ac_cv_func_setpgrp" = xyes
22080 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h
22081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22082 /* end confdefs.h. */
22083 #include <unistd.h>
22092 if ac_fn_c_try_compile
"$LINENO"
22095 printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h
22098 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22103 # check for namespace functions
22104 ac_fn_c_check_func
"$LINENO" "setns" "ac_cv_func_setns"
22105 if test "x$ac_cv_func_setns" = xyes
22107 printf "%s\n" "#define HAVE_SETNS 1" >>confdefs.h
22110 ac_fn_c_check_func
"$LINENO" "unshare" "ac_cv_func_unshare"
22111 if test "x$ac_cv_func_unshare" = xyes
22113 printf "%s\n" "#define HAVE_UNSHARE 1" >>confdefs.h
22119 for ac_func
in clock_gettime
22121 ac_fn_c_check_func
"$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
22122 if test "x$ac_cv_func_clock_gettime" = xyes
22124 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22129 printf %s
"checking for clock_gettime in -lrt... " >&6; }
22130 if test ${ac_cv_lib_rt_clock_gettime+y}
22132 printf %s
"(cached) " >&6
22134 ac_check_lib_save_LIBS
=$LIBS
22136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22137 /* end confdefs.h. */
22139 /* Override any GCC internal prototype to avoid an error.
22140 Use char because int might match the return type of a GCC
22141 builtin and then its argument prototype would still apply. */
22142 char clock_gettime ();
22146 return clock_gettime ();
22151 if ac_fn_c_try_link
"$LINENO"
22153 ac_cv_lib_rt_clock_gettime
=yes
22155 ac_cv_lib_rt_clock_gettime
=no
22157 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
22158 conftest
$ac_exeext conftest.
$ac_ext
22159 LIBS
=$ac_check_lib_save_LIBS
22161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22162 printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
22163 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
22167 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22170 printf "%s\n" "#define TIMEMODULE_LIB rt" >>confdefs.h
22181 for ac_func
in clock_getres
22183 ac_fn_c_check_func
"$LINENO" "clock_getres" "ac_cv_func_clock_getres"
22184 if test "x$ac_cv_func_clock_getres" = xyes
22186 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
22190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5
22191 printf %s
"checking for clock_getres in -lrt... " >&6; }
22192 if test ${ac_cv_lib_rt_clock_getres+y}
22194 printf %s
"(cached) " >&6
22196 ac_check_lib_save_LIBS
=$LIBS
22198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22199 /* end confdefs.h. */
22201 /* Override any GCC internal prototype to avoid an error.
22202 Use char because int might match the return type of a GCC
22203 builtin and then its argument prototype would still apply. */
22204 char clock_getres ();
22208 return clock_getres ();
22213 if ac_fn_c_try_link
"$LINENO"
22215 ac_cv_lib_rt_clock_getres
=yes
22217 ac_cv_lib_rt_clock_getres
=no
22219 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
22220 conftest
$ac_exeext conftest.
$ac_ext
22221 LIBS
=$ac_check_lib_save_LIBS
22223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5
22224 printf "%s\n" "$ac_cv_lib_rt_clock_getres" >&6; }
22225 if test "x$ac_cv_lib_rt_clock_getres" = xyes
22228 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h
22238 # On Android and iOS, clock_settime can be linked (so it is found by
22239 # configure), but when used in an unprivileged process, it crashes rather than
22240 # returning an error. Force the symbol off.
22241 if test "$ac_sys_system" != "Linux-android" && test "$ac_sys_system" != "iOS"
22244 for ac_func
in clock_settime
22246 ac_fn_c_check_func
"$LINENO" "clock_settime" "ac_cv_func_clock_settime"
22247 if test "x$ac_cv_func_clock_settime" = xyes
22249 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
22253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5
22254 printf %s
"checking for clock_settime in -lrt... " >&6; }
22255 if test ${ac_cv_lib_rt_clock_settime+y}
22257 printf %s
"(cached) " >&6
22259 ac_check_lib_save_LIBS
=$LIBS
22261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22262 /* end confdefs.h. */
22264 /* Override any GCC internal prototype to avoid an error.
22265 Use char because int might match the return type of a GCC
22266 builtin and then its argument prototype would still apply. */
22267 char clock_settime ();
22271 return clock_settime ();
22276 if ac_fn_c_try_link
"$LINENO"
22278 ac_cv_lib_rt_clock_settime
=yes
22280 ac_cv_lib_rt_clock_settime
=no
22282 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
22283 conftest
$ac_exeext conftest.
$ac_ext
22284 LIBS
=$ac_check_lib_save_LIBS
22286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5
22287 printf "%s\n" "$ac_cv_lib_rt_clock_settime" >&6; }
22288 if test "x$ac_cv_lib_rt_clock_settime" = xyes
22291 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
22302 # On Android before API level 23, clock_nanosleep returns the wrong value when
22303 # interrupted by a signal (https://issuetracker.google.com/issues/216495770).
22304 if ! { test "$ac_sys_system" = "Linux-android" &&
22305 test "$ANDROID_API_LEVEL" -lt 23; }; then
22307 for ac_func
in clock_nanosleep
22309 ac_fn_c_check_func
"$LINENO" "clock_nanosleep" "ac_cv_func_clock_nanosleep"
22310 if test "x$ac_cv_func_clock_nanosleep" = xyes
22312 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
22316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_nanosleep in -lrt" >&5
22317 printf %s
"checking for clock_nanosleep in -lrt... " >&6; }
22318 if test ${ac_cv_lib_rt_clock_nanosleep+y}
22320 printf %s
"(cached) " >&6
22322 ac_check_lib_save_LIBS
=$LIBS
22324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22327 /* Override any GCC internal prototype to avoid an error.
22328 Use char because int might match the return type of a GCC
22329 builtin and then its argument prototype would still apply. */
22330 char clock_nanosleep ();
22334 return clock_nanosleep ();
22339 if ac_fn_c_try_link
"$LINENO"
22341 ac_cv_lib_rt_clock_nanosleep
=yes
22343 ac_cv_lib_rt_clock_nanosleep
=no
22345 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
22346 conftest
$ac_exeext conftest.
$ac_ext
22347 LIBS
=$ac_check_lib_save_LIBS
22349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_nanosleep" >&5
22350 printf "%s\n" "$ac_cv_lib_rt_clock_nanosleep" >&6; }
22351 if test "x$ac_cv_lib_rt_clock_nanosleep" = xyes
22354 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
22366 for ac_func
in nanosleep
22368 ac_fn_c_check_func
"$LINENO" "nanosleep" "ac_cv_func_nanosleep"
22369 if test "x$ac_cv_func_nanosleep" = xyes
22371 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
22375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
22376 printf %s
"checking for nanosleep in -lrt... " >&6; }
22377 if test ${ac_cv_lib_rt_nanosleep+y}
22379 printf %s
"(cached) " >&6
22381 ac_check_lib_save_LIBS
=$LIBS
22383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22384 /* end confdefs.h. */
22386 /* Override any GCC internal prototype to avoid an error.
22387 Use char because int might match the return type of a GCC
22388 builtin and then its argument prototype would still apply. */
22393 return nanosleep ();
22398 if ac_fn_c_try_link
"$LINENO"
22400 ac_cv_lib_rt_nanosleep
=yes
22402 ac_cv_lib_rt_nanosleep
=no
22404 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
22405 conftest
$ac_exeext conftest.
$ac_ext
22406 LIBS
=$ac_check_lib_save_LIBS
22408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
22409 printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; }
22410 if test "x$ac_cv_lib_rt_nanosleep" = xyes
22413 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
22423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major, minor, and makedev" >&5
22424 printf %s
"checking for major, minor, and makedev... " >&6; }
22425 if test ${ac_cv_device_macros+y}
22427 printf %s
"(cached) " >&6
22430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22431 /* end confdefs.h. */
22433 #if defined(MAJOR_IN_MKDEV)
22434 #include <sys/mkdev.h>
22435 #elif defined(MAJOR_IN_SYSMACROS)
22436 #include <sys/types.h>
22437 #include <sys/sysmacros.h>
22439 #include <sys/types.h>
22446 makedev(major(0),minor(0));
22452 if ac_fn_c_try_link
"$LINENO"
22454 ac_cv_device_macros
=yes
22456 ac_cv_device_macros
=no
22458 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
22459 conftest
$ac_exeext conftest.
$ac_ext
22462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_device_macros" >&5
22463 printf "%s\n" "$ac_cv_device_macros" >&6; }
22464 if test "x$ac_cv_device_macros" = xyes
22468 printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h
22474 printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h
22477 # On OSF/1 V5.1, getaddrinfo is available, but a define
22478 # for [no]getaddrinfo in netdb.h.
22479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5
22480 printf %s
"checking for getaddrinfo... " >&6; }
22481 if test ${ac_cv_func_getaddrinfo+y}
22483 printf %s
"(cached) " >&6
22486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22487 /* end confdefs.h. */
22489 #include <sys/types.h>
22490 #include <sys/socket.h>
22497 getaddrinfo(NULL, NULL, NULL, NULL);
22502 if ac_fn_c_try_link
"$LINENO"
22504 ac_cv_func_getaddrinfo
=yes
22506 ac_cv_func_getaddrinfo
=no
22508 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
22509 conftest
$ac_exeext conftest.
$ac_ext
22512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5
22513 printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; }
22515 if test "x$ac_cv_func_getaddrinfo" = xyes
22518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5
22519 printf %s
"checking getaddrinfo bug... " >&6; }
22520 if test ${ac_cv_buggy_getaddrinfo+y}
22522 printf %s
"(cached) " >&6
22524 if test "$cross_compiling" = yes
22527 if test "$ac_sys_system" = "Linux-android" ||
test "$ac_sys_system" = "iOS"; then
22528 ac_cv_buggy_getaddrinfo
="no"
22529 elif test "${enable_ipv6+set}" = set; then
22530 ac_cv_buggy_getaddrinfo
="no -- configured with --(en|dis)able-ipv6"
22532 ac_cv_buggy_getaddrinfo
=yes
22535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22536 /* end confdefs.h. */
22539 #include <sys/types.h>
22541 #include <string.h>
22542 #include <sys/socket.h>
22543 #include <netinet/in.h>
22547 int passive, gaierr, inet4 = 0, inet6 = 0;
22548 struct addrinfo hints, *ai, *aitop;
22549 char straddr[INET6_ADDRSTRLEN], strport[16];
22551 for (passive = 0; passive <= 1; passive++) {
22552 memset(&hints, 0, sizeof(hints));
22553 hints.ai_family = AF_UNSPEC;
22554 hints.ai_flags = passive ? AI_PASSIVE : 0;
22555 hints.ai_socktype = SOCK_STREAM;
22556 hints.ai_protocol = IPPROTO_TCP;
22557 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
22558 (void)gai_strerror(gaierr);
22561 for (ai = aitop; ai; ai = ai->ai_next) {
22562 if (ai->ai_addr == NULL ||
22563 ai->ai_addrlen == 0 ||
22564 getnameinfo(ai->ai_addr, ai->ai_addrlen,
22565 straddr, sizeof(straddr), strport, sizeof(strport),
22566 NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
22569 switch (ai->ai_family) {
22571 if (strcmp(strport, "54321") != 0) {
22575 if (strcmp(straddr, "0.0.0.0") != 0) {
22579 if (strcmp(straddr, "127.0.0.1") != 0) {
22586 if (strcmp(strport, "54321") != 0) {
22590 if (strcmp(straddr, "::") != 0) {
22594 if (strcmp(straddr, "::1") != 0) {
22604 /* another family support? */
22608 freeaddrinfo(aitop);
22612 if (!(inet4 == 0 || inet4 == 2))
22614 if (!(inet6 == 0 || inet6 == 2))
22618 freeaddrinfo(aitop);
22623 freeaddrinfo(aitop);
22628 if ac_fn_c_try_run
"$LINENO"
22630 ac_cv_buggy_getaddrinfo
=no
22632 ac_cv_buggy_getaddrinfo
=yes
22634 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
22635 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5
22640 printf "%s\n" "$ac_cv_buggy_getaddrinfo" >&6; }
22645 if test "$ac_cv_func_getaddrinfo" = no
-o "$ac_cv_buggy_getaddrinfo" = yes
22647 if test "x$ipv6" = xyes
22650 as_fn_error $?
"You must get working getaddrinfo() function or pass the \"--disable-ipv6\" option to configure." "$LINENO" 5
22655 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
22659 ac_fn_c_check_func
"$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
22660 if test "x$ac_cv_func_getnameinfo" = xyes
22662 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h
22667 # checks for structures
22668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22669 printf %s
"checking whether struct tm is in sys/time.h or time.h... " >&6; }
22670 if test ${ac_cv_struct_tm+y}
22672 printf %s
"(cached) " >&6
22674 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22675 /* end confdefs.h. */
22676 #include <sys/types.h>
22683 int *p = &tm.tm_sec;
22689 if ac_fn_c_try_compile
"$LINENO"
22691 ac_cv_struct_tm
=time.h
22693 ac_cv_struct_tm
=sys
/time.h
22695 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22698 printf "%s\n" "$ac_cv_struct_tm" >&6; }
22699 if test $ac_cv_struct_tm = sys
/time.h
; then
22701 printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
22705 ac_fn_c_check_member
"$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22706 #include <$ac_cv_struct_tm>
22709 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
22712 printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
22717 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22719 printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
22722 ac_fn_check_decl
"$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22723 " "$ac_c_undeclared_builtin_options" "CFLAGS"
22724 if test "x$ac_cv_have_decl_tzname" = xyes
22730 printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
22732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22733 printf %s
"checking for tzname... " >&6; }
22734 if test ${ac_cv_var_tzname+y}
22736 printf %s
"(cached) " >&6
22738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22739 /* end confdefs.h. */
22741 #if !HAVE_DECL_TZNAME
22742 extern char *tzname[];
22748 return tzname[0][0];
22753 if ac_fn_c_try_link
"$LINENO"
22755 ac_cv_var_tzname
=yes
22757 ac_cv_var_tzname
=no
22759 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
22760 conftest
$ac_exeext conftest.
$ac_ext
22762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22763 printf "%s\n" "$ac_cv_var_tzname" >&6; }
22764 if test $ac_cv_var_tzname = yes; then
22766 printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
22771 ac_fn_c_check_member
"$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
22772 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
22775 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
22780 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
22781 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes
22784 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h
22789 ac_fn_c_check_member
"$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default"
22790 if test "x$ac_cv_member_struct_stat_st_flags" = xyes
22793 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h
22798 ac_fn_c_check_member
"$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default"
22799 if test "x$ac_cv_member_struct_stat_st_gen" = xyes
22802 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h
22807 ac_fn_c_check_member
"$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default"
22808 if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes
22811 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h
22816 ac_fn_c_check_member
"$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
22817 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
22820 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
22825 ac_fn_c_check_member
"$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" "
22826 #include <sys/types.h>
22830 if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes
22833 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h
22837 ac_fn_c_check_member
"$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" "
22838 #include <sys/types.h>
22842 if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes
22845 printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h
22850 # Issue #21085: In Cygwin, siginfo_t does not have si_band field.
22851 ac_fn_c_check_member
"$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h>
22853 if test "x$ac_cv_member_siginfo_t_si_band" = xyes
22856 printf "%s\n" "#define HAVE_SIGINFO_T_SI_BAND 1" >>confdefs.h
22862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5
22863 printf %s
"checking for time.h that defines altzone... " >&6; }
22864 if test ${ac_cv_header_time_altzone+y}
22866 printf %s
"(cached) " >&6
22869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22870 /* end confdefs.h. */
22880 if ac_fn_c_try_compile
"$LINENO"
22882 ac_cv_header_time_altzone
=yes
22884 ac_cv_header_time_altzone
=no
22886 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5
22890 printf "%s\n" "$ac_cv_header_time_altzone" >&6; }
22891 if test $ac_cv_header_time_altzone = yes; then
22893 printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h
22897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5
22898 printf %s
"checking for addrinfo... " >&6; }
22899 if test ${ac_cv_struct_addrinfo+y}
22901 printf %s
"(cached) " >&6
22903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22904 /* end confdefs.h. */
22914 if ac_fn_c_try_compile
"$LINENO"
22916 ac_cv_struct_addrinfo
=yes
22918 ac_cv_struct_addrinfo
=no
22920 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
22923 printf "%s\n" "$ac_cv_struct_addrinfo" >&6; }
22924 if test $ac_cv_struct_addrinfo = yes; then
22926 printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h
22930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5
22931 printf %s
"checking for sockaddr_storage... " >&6; }
22932 if test ${ac_cv_struct_sockaddr_storage+y}
22934 printf %s
"(cached) " >&6
22936 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h. */
22939 # include <sys/types.h>
22940 # include <sys/socket.h>
22944 struct sockaddr_storage s
22949 if ac_fn_c_try_compile
"$LINENO"
22951 ac_cv_struct_sockaddr_storage
=yes
22953 ac_cv_struct_sockaddr_storage
=no
22955 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
22958 printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; }
22959 if test $ac_cv_struct_sockaddr_storage = yes; then
22961 printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h
22965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5
22966 printf %s
"checking for sockaddr_alg... " >&6; }
22967 if test ${ac_cv_struct_sockaddr_alg+y}
22969 printf %s
"(cached) " >&6
22971 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
22972 /* end confdefs.h. */
22974 # include <sys/types.h>
22975 # include <sys/socket.h>
22976 # include <linux/if_alg.h>
22980 struct sockaddr_alg s
22985 if ac_fn_c_try_compile
"$LINENO"
22987 ac_cv_struct_sockaddr_alg
=yes
22989 ac_cv_struct_sockaddr_alg
=no
22991 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
22993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5
22994 printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; }
22995 if test $ac_cv_struct_sockaddr_alg = yes; then
22997 printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h
23001 # checks for compiler characteristics
23003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
23004 printf %s
"checking for an ANSI C-conforming const... " >&6; }
23005 if test ${ac_cv_c_const+y}
23007 printf %s
"(cached) " >&6
23009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23010 /* end confdefs.h. */
23016 #ifndef __cplusplus
23017 /* Ultrix mips cc rejects this sort of thing. */
23018 typedef int charset[2];
23019 const charset cs = { 0, 0 };
23020 /* SunOS 4.1.1 cc rejects this. */
23021 char const *const *pcpcc;
23023 /* NEC SVR4.0.2 mips cc rejects this. */
23024 struct point {int x, y;};
23025 static struct point const zero = {0,0};
23026 /* IBM XL C 1.02.0.0 rejects this.
23027 It does not let you subtract one const X* pointer from another in
23028 an arm of an if-expression whose if-part is not a constant
23030 const char *g = "string";
23031 pcpcc = &g + (g ? g-g : 0);
23032 /* HPUX 7.0 cc rejects these. */
23034 ppc = (char**) pcpcc;
23035 pcpcc = (char const *const *) ppc;
23036 { /* SCO 3.2v4 cc rejects this sort of thing. */
23039 char const *s = 0 ? (char *) 0 : (char const *) 0;
23044 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23045 int x[] = {25, 17};
23046 const int *foo = &x[0];
23049 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23050 typedef const int *iptr;
23054 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
23055 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23056 struct s { int j; const int *ap[3]; } bx;
23057 struct s *b = &bx; b->j = 5;
23059 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23060 const int foo = 10;
23061 if (!foo) return 0;
23063 return !cs[0] && !zero.x;
23070 if ac_fn_c_try_compile
"$LINENO"
23076 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
23079 printf "%s\n" "$ac_cv_c_const" >&6; }
23080 if test $ac_cv_c_const = no
; then
23082 printf "%s\n" "#define const /**/" >>confdefs.h
23087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5
23088 printf %s
"checking for working signed char... " >&6; }
23089 if test ${ac_cv_working_signed_char_c+y}
23091 printf %s
"(cached) " >&6
23094 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h. */
23105 if ac_fn_c_try_compile
"$LINENO"
23107 ac_cv_working_signed_char_c
=yes
23109 ac_cv_working_signed_char_c
=no
23111 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_signed_char_c" >&5
23115 printf "%s\n" "$ac_cv_working_signed_char_c" >&6; }
23116 if test "x$ac_cv_working_signed_char_c" = xno
23120 printf "%s\n" "#define signed /**/" >>confdefs.h
23125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5
23126 printf %s
"checking for prototypes... " >&6; }
23127 if test ${ac_cv_function_prototypes+y}
23129 printf %s
"(cached) " >&6
23132 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23133 /* end confdefs.h. */
23134 int foo(int x) { return 0; }
23143 if ac_fn_c_try_compile
"$LINENO"
23145 ac_cv_function_prototypes
=yes
23147 ac_cv_function_prototypes
=no
23149 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_function_prototypes" >&5
23153 printf "%s\n" "$ac_cv_function_prototypes" >&6; }
23154 if test "x$ac_cv_function_prototypes" = xyes
23158 printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h
23164 # check for socketpair
23167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5
23168 printf %s
"checking for socketpair... " >&6; }
23169 if test ${ac_cv_func_socketpair+y}
23171 printf %s
"(cached) " >&6
23173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23174 /* end confdefs.h. */
23176 #include <sys/types.h>
23177 #include <sys/socket.h>
23187 if ac_fn_c_try_compile
"$LINENO"
23189 ac_cv_func_socketpair
=yes
23191 ac_cv_func_socketpair
=no
23193 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socketpair" >&5
23197 printf "%s\n" "$ac_cv_func_socketpair" >&6; }
23198 if test "x$ac_cv_func_socketpair" = xyes
23201 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
23208 # check if sockaddr has sa_len member
23209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5
23210 printf %s
"checking if sockaddr has sa_len member... " >&6; }
23211 if test ${ac_cv_struct_sockaddr_sa_len+y}
23213 printf %s
"(cached) " >&6
23216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h. */
23218 #include <sys/types.h>
23219 #include <sys/socket.h>
23229 if ac_fn_c_try_compile
"$LINENO"
23231 ac_cv_struct_sockaddr_sa_len
=yes
23233 ac_cv_struct_sockaddr_sa_len
=no
23235 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
23239 printf "%s\n" "$ac_cv_struct_sockaddr_sa_len" >&6; }
23240 if test "x$ac_cv_struct_sockaddr_sa_len" = xyes
23244 printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h
23249 # sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-(
23252 ac_fn_c_check_func
"$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
23253 if test "x$ac_cv_func_gethostbyname_r" = xyes
23255 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5
23258 printf %s
"checking gethostbyname_r with 6 args... " >&6; }
23260 CFLAGS
="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS"
23261 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23262 /* end confdefs.h. */
23264 # include <netdb.h>
23271 struct hostent *he, *res;
23276 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop)
23282 if ac_fn_c_try_compile
"$LINENO"
23285 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23288 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h
23290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23291 printf "%s\n" "yes" >&6; }
23295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23296 printf "%s\n" "no" >&6; }
23297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5
23298 printf %s
"checking gethostbyname_r with 5 args... " >&6; }
23299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23300 /* end confdefs.h. */
23302 # include <netdb.h>
23309 struct hostent *he;
23314 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop)
23320 if ac_fn_c_try_compile
"$LINENO"
23323 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23326 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h
23328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23329 printf "%s\n" "yes" >&6; }
23333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23334 printf "%s\n" "no" >&6; }
23335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5
23336 printf %s
"checking gethostbyname_r with 3 args... " >&6; }
23337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23338 /* end confdefs.h. */
23340 # include <netdb.h>
23347 struct hostent *he;
23348 struct hostent_data data;
23350 (void) gethostbyname_r(name, he, &data);
23356 if ac_fn_c_try_compile
"$LINENO"
23359 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
23362 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h
23364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23365 printf "%s\n" "yes" >&6; }
23369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23370 printf "%s\n" "no" >&6; }
23373 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23376 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23379 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23384 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23385 if test "x$ac_cv_func_gethostbyname" = xyes
23387 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
23400 # checks for system services
23403 # Linux requires this for correct f.p. operations
23404 ac_fn_c_check_func
"$LINENO" "__fpu_control" "ac_cv_func___fpu_control"
23405 if test "x$ac_cv_func___fpu_control" = xyes
23409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5
23410 printf %s
"checking for __fpu_control in -lieee... " >&6; }
23411 if test ${ac_cv_lib_ieee___fpu_control+y}
23413 printf %s
"(cached) " >&6
23415 ac_check_lib_save_LIBS
=$LIBS
23416 LIBS
="-lieee $LIBS"
23417 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23418 /* end confdefs.h. */
23420 /* Override any GCC internal prototype to avoid an error.
23421 Use char because int might match the return type of a GCC
23422 builtin and then its argument prototype would still apply. */
23423 char __fpu_control ();
23427 return __fpu_control ();
23432 if ac_fn_c_try_link
"$LINENO"
23434 ac_cv_lib_ieee___fpu_control
=yes
23436 ac_cv_lib_ieee___fpu_control
=no
23438 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
23439 conftest
$ac_exeext conftest.
$ac_ext
23440 LIBS
=$ac_check_lib_save_LIBS
23442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5
23443 printf "%s\n" "$ac_cv_lib_ieee___fpu_control" >&6; }
23444 if test "x$ac_cv_lib_ieee___fpu_control" = xyes
23446 printf "%s\n" "#define HAVE_LIBIEEE 1" >>confdefs.h
23448 LIBS
="-lieee $LIBS"
23456 # check for --with-libm=...
23458 case $ac_sys_system in
23462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5
23463 printf %s
"checking for --with-libm=STRING... " >&6; }
23465 # Check whether --with-libm was given.
23466 if test ${with_libm+y}
23468 withval
=$with_libm;
23469 if test "$withval" = no
23471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5
23472 printf "%s\n" "force LIBM empty" >&6; }
23473 elif test "$withval" != yes
23475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5
23476 printf "%s\n" "set LIBM=\"$withval\"" >&6; }
23477 else as_fn_error $?
"proper usage is --with-libm=STRING" "$LINENO" 5
23480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5
23481 printf "%s\n" "default LIBM=\"$LIBM\"" >&6; }
23485 # check for --with-libc=...
23487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5
23488 printf %s
"checking for --with-libc=STRING... " >&6; }
23490 # Check whether --with-libc was given.
23491 if test ${with_libc+y}
23493 withval
=$with_libc;
23494 if test "$withval" = no
23496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5
23497 printf "%s\n" "force LIBC empty" >&6; }
23498 elif test "$withval" != yes
23500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5
23501 printf "%s\n" "set LIBC=\"$withval\"" >&6; }
23502 else as_fn_error $?
"proper usage is --with-libc=STRING" "$LINENO" 5
23505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5
23506 printf "%s\n" "default LIBC=\"$LIBC\"" >&6; }
23510 # **************************************
23511 # * Check for gcc x64 inline assembler *
23512 # **************************************
23515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5
23516 printf %s
"checking for x64 gcc inline assembler... " >&6; }
23517 if test ${ac_cv_gcc_asm_for_x64+y}
23519 printf %s
"(cached) " >&6
23522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23523 /* end confdefs.h. */
23529 __asm__ __volatile__ ("movq %rcx, %rax");
23535 if ac_fn_c_try_link
"$LINENO"
23537 ac_cv_gcc_asm_for_x64
=yes
23539 ac_cv_gcc_asm_for_x64
=no
23541 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
23542 conftest
$ac_exeext conftest.
$ac_ext
23545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x64" >&5
23546 printf "%s\n" "$ac_cv_gcc_asm_for_x64" >&6; }
23548 if test "x$ac_cv_gcc_asm_for_x64" = xyes
23552 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h
23557 # **************************************************
23558 # * Check for various properties of floating point *
23559 # **************************************************
23561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5
23562 printf %s
"checking whether float word ordering is bigendian... " >&6; }
23563 if test ${ax_cv_c_float_words_bigendian+y}
23565 printf %s
"(cached) " >&6
23569 ax_cv_c_float_words_bigendian
=unknown
23570 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23571 /* end confdefs.h. */
23574 double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0;
23578 if ac_fn_c_try_compile
"$LINENO"
23582 if grep noonsees conftest.
$ac_objext >/dev
/null
; then
23583 ax_cv_c_float_words_bigendian
=yes
23585 if grep seesnoon conftest.
$ac_objext >/dev
/null
; then
23586 if test "$ax_cv_c_float_words_bigendian" = unknown
; then
23587 ax_cv_c_float_words_bigendian
=no
23589 ax_cv_c_float_words_bigendian
=unknown
23595 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5
23598 printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; }
23600 case $ax_cv_c_float_words_bigendian in
23603 printf "%s\n" "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h
23610 Unknown float word ordering. You need to manually preset
23611 ax_cv_c_float_words_bigendian=no (or yes) according to your system.
23617 if test "$ax_cv_c_float_words_bigendian" = "yes"
23620 printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h
23622 elif test "$ax_cv_c_float_words_bigendian" = "no"
23625 printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
23628 # Some ARM platforms use a mixed-endian representation for doubles.
23629 # While Python doesn't currently have full support for these platforms
23630 # (see e.g., issue 1762561), we can at least make sure that float <-> string
23631 # conversions work.
23632 # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big
23633 # or little, then it must be this?
23635 printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
23639 # The short float repr introduced in Python 3.1 requires the
23640 # correctly-rounded string <-> double conversion functions from
23641 # Python/dtoa.c, which in turn require that the FPU uses 53-bit
23642 # rounding; this is a problem on x86, where the x87 FPU has a default
23643 # rounding precision of 64 bits. For gcc/x86, we can fix this by
23644 # using inline assembler to get and set the x87 FPU control word.
23646 # This inline assembler syntax may also work for suncc and icc,
23647 # so we try it on all platforms.
23649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5
23650 printf %s
"checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; }
23651 if test ${ac_cv_gcc_asm_for_x87+y}
23653 printf %s
"(cached) " >&6
23656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23657 /* end confdefs.h. */
23664 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw));
23665 __asm__ __volatile__ ("fldcw %0" : : "m" (cw));
23671 if ac_fn_c_try_link
"$LINENO"
23673 ac_cv_gcc_asm_for_x87
=yes
23675 ac_cv_gcc_asm_for_x87
=no
23677 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
23678 conftest
$ac_exeext conftest.
$ac_ext
23681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x87" >&5
23682 printf "%s\n" "$ac_cv_gcc_asm_for_x87" >&6; }
23683 if test "x$ac_cv_gcc_asm_for_x87" = xyes
23687 printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h
23692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5
23693 printf %s
"checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; }
23694 if test ${ac_cv_gcc_asm_for_mc68881+y}
23696 printf %s
"(cached) " >&6
23699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23700 /* end confdefs.h. */
23707 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr));
23708 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr));
23714 if ac_fn_c_try_link
"$LINENO"
23716 ac_cv_gcc_asm_for_mc68881
=yes
23718 ac_cv_gcc_asm_for_mc68881
=no
23720 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
23721 conftest
$ac_exeext conftest.
$ac_ext
23724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_mc68881" >&5
23725 printf "%s\n" "$ac_cv_gcc_asm_for_mc68881" >&6; }
23726 if test "x$ac_cv_gcc_asm_for_mc68881" = xyes
23730 printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h
23735 # Detect whether system arithmetic is subject to x87-style double
23736 # rounding issues. The result of this test has little meaning on non
23737 # IEEE 754 platforms. On IEEE 754, test should return 1 if rounding
23738 # mode is round-to-nearest and double rounding issues are present, and
23739 # 0 otherwise. See https://github.com/python/cpython/issues/47186 for more info.
23740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5
23741 printf %s
"checking for x87-style double rounding... " >&6; }
23742 if test ${ac_cv_x87_double_rounding+y}
23744 printf %s
"(cached) " >&6
23747 # $BASECFLAGS may affect the result
23749 CC
="$CC $BASECFLAGS"
23750 if test "$cross_compiling" = yes
23752 ac_cv_x87_double_rounding
=no
23754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23757 #include <stdlib.h>
23760 volatile double x, y, z;
23761 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */
23762 x = 0.99999999999999989; /* 1-2**-53 */
23766 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */
23772 /* both tests show evidence of double rounding */
23777 if ac_fn_c_try_run
"$LINENO"
23779 ac_cv_x87_double_rounding
=no
23781 ac_cv_x87_double_rounding
=yes
23783 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23784 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5
23791 printf "%s\n" "$ac_cv_x87_double_rounding" >&6; }
23793 if test "x$ac_cv_x87_double_rounding" = xyes
23797 printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h
23802 # ************************************
23803 # * Check for mathematical functions *
23804 # ************************************
23810 for ac_func
in acosh asinh atanh erf erfc expm1 log1p log2
23812 as_ac_var
=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
23813 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
23814 if eval test \"x\$
"$as_ac_var"\" = x
"yes"
23816 cat >>confdefs.h
<<_ACEOF
23817 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
23821 as_fn_error $?
"Python requires C99 compatible libm" "$LINENO" 5
23828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5
23829 printf %s
"checking whether POSIX semaphores are enabled... " >&6; }
23830 if test ${ac_cv_posix_semaphores_enabled+y}
23832 printf %s
"(cached) " >&6
23834 if test "$cross_compiling" = yes
23836 ac_cv_posix_semaphores_enabled
=yes
23838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23839 /* end confdefs.h. */
23842 #include <unistd.h>
23845 #include <semaphore.h>
23846 #include <sys/stat.h>
23849 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0);
23850 if (a == SEM_FAILED) {
23851 perror("sem_open");
23855 sem_unlink("/autoconf");
23861 if ac_fn_c_try_run
"$LINENO"
23863 ac_cv_posix_semaphores_enabled
=yes
23865 ac_cv_posix_semaphores_enabled
=no
23867 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23868 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5
23874 printf "%s\n" "$ac_cv_posix_semaphores_enabled" >&6; }
23875 if test "x$ac_cv_posix_semaphores_enabled" = xno
23879 printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h
23884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5
23885 printf %s
"checking for broken sem_getvalue... " >&6; }
23886 if test ${ac_cv_broken_sem_getvalue+y}
23888 printf %s
"(cached) " >&6
23890 if test "$cross_compiling" = yes
23892 ac_cv_broken_sem_getvalue
=yes
23894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h. */
23898 #include <unistd.h>
23901 #include <semaphore.h>
23902 #include <sys/stat.h>
23905 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0);
23909 perror("sem_open");
23913 res = sem_getvalue(a, &count);
23915 sem_unlink("/autocftw");
23916 return res==-1 ? 1 : 0;
23921 if ac_fn_c_try_run
"$LINENO"
23923 ac_cv_broken_sem_getvalue
=no
23925 ac_cv_broken_sem_getvalue
=yes
23927 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23928 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5
23934 printf "%s\n" "$ac_cv_broken_sem_getvalue" >&6; }
23935 if test "x$ac_cv_broken_sem_getvalue" = xyes
23939 printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h
23944 ac_fn_check_decl
"$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h>
23945 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23946 if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes
23952 printf "%s\n" "#define HAVE_DECL_RTLD_LAZY $ac_have_decl" >>confdefs.h
23953 ac_fn_check_decl
"$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h>
23954 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23955 if test "x$ac_cv_have_decl_RTLD_NOW" = xyes
23961 printf "%s\n" "#define HAVE_DECL_RTLD_NOW $ac_have_decl" >>confdefs.h
23962 ac_fn_check_decl
"$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h>
23963 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23964 if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes
23970 printf "%s\n" "#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl" >>confdefs.h
23971 ac_fn_check_decl
"$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h>
23972 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23973 if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes
23979 printf "%s\n" "#define HAVE_DECL_RTLD_LOCAL $ac_have_decl" >>confdefs.h
23980 ac_fn_check_decl
"$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h>
23981 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23982 if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes
23988 printf "%s\n" "#define HAVE_DECL_RTLD_NODELETE $ac_have_decl" >>confdefs.h
23989 ac_fn_check_decl
"$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h>
23990 " "$ac_c_undeclared_builtin_options" "CFLAGS"
23991 if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes
23997 printf "%s\n" "#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl" >>confdefs.h
23998 ac_fn_check_decl
"$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h>
23999 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24000 if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes
24006 printf "%s\n" "#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl" >>confdefs.h
24007 ac_fn_check_decl
"$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h>
24008 " "$ac_c_undeclared_builtin_options" "CFLAGS"
24009 if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes
24015 printf "%s\n" "#define HAVE_DECL_RTLD_MEMBER $ac_have_decl" >>confdefs.h
24018 # determine what size digit to use for Python's longs
24019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5
24020 printf %s
"checking digit size for Python's longs... " >&6; }
24021 # Check whether --enable-big-digits was given.
24022 if test ${enable_big_digits+y}
24024 enableval
=$enable_big_digits; case $enable_big_digits in
24026 enable_big_digits
=30 ;;
24028 enable_big_digits
=15 ;;
24032 as_fn_error $?
"bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;;
24034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5
24035 printf "%s\n" "$enable_big_digits" >&6; }
24037 printf "%s\n" "#define PYLONG_BITS_IN_DIGIT $enable_big_digits" >>confdefs.h
24041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
24042 printf "%s\n" "no value specified" >&6; }
24046 # check for wchar.h
24047 ac_fn_c_check_header_compile
"$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
24048 if test "x$ac_cv_header_wchar_h" = xyes
24052 printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h
24062 # determine wchar_t size
24063 if test "$wchar_h" = yes
24065 # The cast to long int works around a bug in the HP C Compiler
24066 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24067 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24068 # This bug is HP SR number 8606223364.
24069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5
24070 printf %s
"checking size of wchar_t... " >&6; }
24071 if test ${ac_cv_sizeof_wchar_t+y}
24073 printf %s
"(cached) " >&6
24075 if ac_fn_c_compute_int
"$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h>
24080 if test "$ac_cv_type_wchar_t" = yes; then
24081 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24082 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24083 as_fn_error
77 "cannot compute sizeof (wchar_t)
24084 See \`config.log' for more details" "$LINENO" 5; }
24086 ac_cv_sizeof_wchar_t
=0
24091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5
24092 printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; }
24096 printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h
24101 # check whether wchar_t is signed or not
24102 if test "$wchar_h" = yes
24104 # check whether wchar_t is signed or not
24105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
24106 printf %s
"checking whether wchar_t is signed... " >&6; }
24107 if test ${ac_cv_wchar_t_signed+y}
24109 printf %s
"(cached) " >&6
24112 if test "$cross_compiling" = yes
24114 ac_cv_wchar_t_signed
=yes
24116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24117 /* end confdefs.h. */
24122 /* Success: exit code 0 */
24123 return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1);
24127 if ac_fn_c_try_run
"$LINENO"
24129 ac_cv_wchar_t_signed
=yes
24131 ac_cv_wchar_t_signed
=no
24133 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24134 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5
24139 printf "%s\n" "$ac_cv_wchar_t_signed" >&6; }
24142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5
24143 printf %s
"checking whether wchar_t is usable... " >&6; }
24144 # wchar_t is only usable if it maps to an unsigned type
24145 if test "$ac_cv_sizeof_wchar_t" -ge 2 \
24146 -a "$ac_cv_wchar_t_signed" = "no"
24149 printf "%s\n" "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h
24151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24152 printf "%s\n" "yes" >&6; }
24154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24155 printf "%s\n" "no" >&6; }
24158 case $ac_sys_system/$ac_sys_release in
24160 if test -f /etc
/os-release
; then
24161 OS_NAME
=$
(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc
/os-release
)
24162 if test "x$OS_NAME" = "xOracle Solaris"; then
24163 # bpo-43667: In Oracle Solaris, the internal form of wchar_t in
24164 # non-Unicode locales is not Unicode and hence cannot be used directly.
24165 # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html
24167 printf "%s\n" "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h
24174 # check for endianness
24175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24176 printf %s
"checking whether byte ordering is bigendian... " >&6; }
24177 if test ${ac_cv_c_bigendian+y}
24179 printf %s
"(cached) " >&6
24181 ac_cv_c_bigendian
=unknown
24182 # See if we're dealing with a universal compiler.
24183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24184 /* end confdefs.h. */
24185 #ifndef __APPLE_CC__
24186 not a universal capable compiler
24191 if ac_fn_c_try_compile
"$LINENO"
24194 # Check for potential -arch flags. It is not universal unless
24195 # there are at least two -arch flags with different values.
24198 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24199 if test -n "$ac_prev"; then
24201 i?
86 | x86_64 | ppc | ppc64
)
24202 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
24205 ac_cv_c_bigendian
=universal
24211 elif test "x$ac_word" = "x-arch"; then
24216 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24217 if test $ac_cv_c_bigendian = unknown
; then
24218 # See if sys/param.h defines the BYTE_ORDER macro.
24219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24220 /* end confdefs.h. */
24221 #include <sys/types.h>
24222 #include <sys/param.h>
24227 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24228 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24230 bogus endian macros
24237 if ac_fn_c_try_compile
"$LINENO"
24239 # It does; now see whether it defined to BIG_ENDIAN or not.
24240 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24242 #include <sys/types.h>
24243 #include <sys/param.h>
24248 #if BYTE_ORDER != BIG_ENDIAN
24256 if ac_fn_c_try_compile
"$LINENO"
24258 ac_cv_c_bigendian
=yes
24260 ac_cv_c_bigendian
=no
24262 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24264 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24266 if test $ac_cv_c_bigendian = unknown
; then
24267 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24269 /* end confdefs.h. */
24270 #include <limits.h>
24275 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24276 bogus endian macros
24283 if ac_fn_c_try_compile
"$LINENO"
24285 # It does; now see whether it defined to _BIG_ENDIAN or not.
24286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24287 /* end confdefs.h. */
24288 #include <limits.h>
24293 #ifndef _BIG_ENDIAN
24301 if ac_fn_c_try_compile
"$LINENO"
24303 ac_cv_c_bigendian
=yes
24305 ac_cv_c_bigendian
=no
24307 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24309 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24311 if test $ac_cv_c_bigendian = unknown
; then
24312 # Compile a test program.
24313 if test "$cross_compiling" = yes
24315 # Try to guess by grepping values from an object file.
24316 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24317 /* end confdefs.h. */
24318 unsigned short int ascii_mm[] =
24319 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24320 unsigned short int ascii_ii[] =
24321 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24322 int use_ascii (int i) {
24323 return ascii_mm[i] + ascii_ii[i];
24325 unsigned short int ebcdic_ii[] =
24326 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24327 unsigned short int ebcdic_mm[] =
24328 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24329 int use_ebcdic (int i) {
24330 return ebcdic_mm[i] + ebcdic_ii[i];
24337 return use_ascii (foo) == use_ebcdic (foo);
24342 if ac_fn_c_try_compile
"$LINENO"
24344 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
24345 ac_cv_c_bigendian
=yes
24347 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
24348 if test "$ac_cv_c_bigendian" = unknown
; then
24349 ac_cv_c_bigendian
=no
24351 # finding both strings is unlikely to happen, but who knows?
24352 ac_cv_c_bigendian
=unknown
24356 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24359 /* end confdefs.h. */
24360 $ac_includes_default
24365 /* Are we little or big endian? From Harbison&Steele. */
24369 char c[sizeof (long int)];
24372 return u.c[sizeof (long int) - 1] == 1;
24378 if ac_fn_c_try_run
"$LINENO"
24380 ac_cv_c_bigendian
=no
24382 ac_cv_c_bigendian
=yes
24384 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24385 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
24391 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
24392 case $ac_cv_c_bigendian in #(
24394 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
24400 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
24404 as_fn_error $?
"unknown endianness
24405 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
24409 # ABI version string for Python extension modules. This appears between the
24410 # periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated
24411 # from the following attributes which affect the ABI of this Python build (in
24414 # * The Python implementation (always 'cpython-' for us)
24415 # * The major and minor version numbers
24416 # * --disable-gil (adds a 't')
24417 # * --with-pydebug (adds a 'd')
24419 # Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc,
24420 # would get a shared library ABI version tag of 'cpython-32dmu' and shared
24421 # libraries would be named 'foo.cpython-32dmu.so'.
24423 # In Python 3.2 and older, --with-wide-unicode added a 'u' flag.
24424 # In Python 3.7 and older, --with-pymalloc added a 'm' flag.
24426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5
24427 printf %s
"checking ABIFLAGS... " >&6; }
24428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5
24429 printf "%s\n" "$ABIFLAGS" >&6; }
24430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5
24431 printf %s
"checking SOABI... " >&6; }
24432 SOABI
='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${SOABI_PLATFORM:+-$SOABI_PLATFORM}
24433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5
24434 printf "%s\n" "$SOABI" >&6; }
24436 # Release build, debug build (Py_DEBUG), and trace refs build (Py_TRACE_REFS)
24437 # are ABI compatible
24438 if test "$Py_DEBUG" = 'true'; then
24439 # Similar to SOABI but remove "d" flag from ABIFLAGS
24441 ALT_SOABI
='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${SOABI_PLATFORM:+-$SOABI_PLATFORM}
24443 printf "%s\n" "#define ALT_SOABI \"${ALT_SOABI}\"" >>confdefs.h
24448 EXT_SUFFIX
=.
${SOABI}${SHLIB_SUFFIX}
24450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5
24451 printf %s
"checking LDVERSION... " >&6; }
24452 LDVERSION
='$(VERSION)$(ABIFLAGS)'
24453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5
24454 printf "%s\n" "$LDVERSION" >&6; }
24456 # Configure the flags and dependencies used when compiling shared modules
24459 MODULE_DEPS_SHARED
='$(MODULE_DEPS_STATIC) $(EXPORTSYMS)'
24462 # On Android and Cygwin the shared libraries must be linked with libpython.
24463 if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" ||
test "$MACHDEP" = "cygwin"); then
24464 MODULE_DEPS_SHARED
="$MODULE_DEPS_SHARED \$(LDLIBRARY)"
24465 MODULE_LDFLAGS
="\$(BLDLIBRARY)"
24468 # On iOS the shared libraries must be linked with the Python framework
24469 if test "$ac_sys_system" = "iOS"; then
24470 MODULE_DEPS_SHARED
="$MODULE_DEPS_SHARED \$(PYTHONFRAMEWORKDIR)/\$(PYTHONFRAMEWORK)"
24475 BINLIBDEST
='$(LIBDIR)/python$(VERSION)'
24478 # Check for --with-platlibdir
24479 # /usr/$LIDIRNAME/python$VERSION
24482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5
24483 printf %s
"checking for --with-platlibdir... " >&6; }
24485 # Check whether --with-platlibdir was given.
24486 if test ${with_platlibdir+y}
24488 withval
=$with_platlibdir;
24489 # ignore 3 options:
24490 # --with-platlibdir
24491 # --with-platlibdir=
24492 # --without-platlibdir
24493 if test -n "$withval" -a "$withval" != yes -a "$withval" != no
24495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24496 printf "%s\n" "yes" >&6; }
24497 PLATLIBDIR
="$withval"
24498 BINLIBDEST
='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)'
24500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24501 printf "%s\n" "no" >&6; }
24504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24505 printf "%s\n" "no" >&6; }
24511 if test x
$PLATFORM_TRIPLET = x
; then
24512 LIBPL
='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}"
24514 LIBPL
='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
24518 # Check for --with-wheel-pkg-dir=PATH
24521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5
24522 printf %s
"checking for --with-wheel-pkg-dir... " >&6; }
24524 # Check whether --with-wheel-pkg-dir was given.
24525 if test ${with_wheel_pkg_dir+y}
24527 withval
=$with_wheel_pkg_dir;
24528 if test -n "$withval"; then
24529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24530 printf "%s\n" "yes" >&6; }
24531 WHEEL_PKG_DIR
="$withval"
24533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24534 printf "%s\n" "no" >&6; }
24537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24538 printf "%s\n" "no" >&6; }
24542 # Check whether right shifting a negative integer extends the sign bit
24543 # or fills with zeros (like the Cray J90, according to Tim Peters).
24544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5
24545 printf %s
"checking whether right shift extends the sign bit... " >&6; }
24546 if test ${ac_cv_rshift_extends_sign+y}
24548 printf %s
"(cached) " >&6
24551 if test "$cross_compiling" = yes
24553 ac_cv_rshift_extends_sign
=yes
24555 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24556 /* end confdefs.h. */
24560 return (((-1)>>3 == -1) ? 0 : 1);
24564 if ac_fn_c_try_run
"$LINENO"
24566 ac_cv_rshift_extends_sign
=yes
24568 ac_cv_rshift_extends_sign
=no
24570 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24571 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5
24576 printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; }
24577 if test "$ac_cv_rshift_extends_sign" = no
24580 printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h
24584 # check for getc_unlocked and related locking functions
24585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5
24586 printf %s
"checking for getc_unlocked() and friends... " >&6; }
24587 if test ${ac_cv_have_getc_unlocked+y}
24589 printf %s
"(cached) " >&6
24592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24593 /* end confdefs.h. */
24599 FILE *f = fopen("/dev/null", "r");
24608 if ac_fn_c_try_link
"$LINENO"
24610 ac_cv_have_getc_unlocked
=yes
24612 ac_cv_have_getc_unlocked
=no
24614 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
24615 conftest
$ac_exeext conftest.
$ac_ext
24617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5
24618 printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; }
24619 if test "$ac_cv_have_getc_unlocked" = yes
24622 printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h
24630 # Check whether --with-readline was given.
24631 if test ${with_readline+y}
24633 withval
=$with_readline;
24634 case $with_readline in #(
24636 with_readline
=edit
;; #(
24638 with_readline
=readline
;; #(
24642 as_fn_error $?
"proper usage is --with(out)-readline[=editline|readline|no]" "$LINENO" 5
24647 with_readline
=readline
24652 if test "x$with_readline" = xreadline
24657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5
24658 printf %s
"checking for readline... " >&6; }
24660 if test -n "$LIBREADLINE_CFLAGS"; then
24661 pkg_cv_LIBREADLINE_CFLAGS
="$LIBREADLINE_CFLAGS"
24662 elif test -n "$PKG_CONFIG"; then
24663 if test -n "$PKG_CONFIG" && \
24664 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24665 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668 test $ac_status = 0; }; then
24669 pkg_cv_LIBREADLINE_CFLAGS
=`$PKG_CONFIG --cflags "readline" 2>/dev/null`
24670 test "x$?" != "x0" && pkg_failed
=yes
24677 if test -n "$LIBREADLINE_LIBS"; then
24678 pkg_cv_LIBREADLINE_LIBS
="$LIBREADLINE_LIBS"
24679 elif test -n "$PKG_CONFIG"; then
24680 if test -n "$PKG_CONFIG" && \
24681 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5
24682 ($PKG_CONFIG --exists --print-errors "readline") 2>&5
24684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24685 test $ac_status = 0; }; then
24686 pkg_cv_LIBREADLINE_LIBS
=`$PKG_CONFIG --libs "readline" 2>/dev/null`
24687 test "x$?" != "x0" && pkg_failed
=yes
24697 if test $pkg_failed = yes; then
24698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24699 printf "%s\n" "no" >&6; }
24701 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24702 _pkg_short_errors_supported
=yes
24704 _pkg_short_errors_supported
=no
24706 if test $_pkg_short_errors_supported = yes; then
24707 LIBREADLINE_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1`
24709 LIBREADLINE_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1`
24711 # Put the nasty error message in config.log where it belongs
24712 echo "$LIBREADLINE_PKG_ERRORS" >&5
24715 save_CFLAGS
=$CFLAGS
24716 save_CPPFLAGS
=$CPPFLAGS
24717 save_LDFLAGS
=$LDFLAGS
24721 CPPFLAGS
="$CPPFLAGS $LIBREADLINE_CFLAGS"
24722 LDFLAGS
="$LDFLAGS $LIBREADLINE_LIBS"
24723 for ac_header
in readline
/readline.h
24725 ac_fn_c_check_header_compile
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
24726 if test "x$ac_cv_header_readline_readline_h" = xyes
24728 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
24730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
24731 printf %s
"checking for readline in -lreadline... " >&6; }
24732 if test ${ac_cv_lib_readline_readline+y}
24734 printf %s
"(cached) " >&6
24736 ac_check_lib_save_LIBS
=$LIBS
24737 LIBS
="-lreadline $LIBS"
24738 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24739 /* end confdefs.h. */
24741 /* Override any GCC internal prototype to avoid an error.
24742 Use char because int might match the return type of a GCC
24743 builtin and then its argument prototype would still apply. */
24748 return readline ();
24753 if ac_fn_c_try_link
"$LINENO"
24755 ac_cv_lib_readline_readline
=yes
24757 ac_cv_lib_readline_readline
=no
24759 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
24760 conftest
$ac_exeext conftest.
$ac_ext
24761 LIBS
=$ac_check_lib_save_LIBS
24763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
24764 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
24765 if test "x$ac_cv_lib_readline_readline" = xyes
24768 LIBREADLINE
=readline
24769 READLINE_CFLAGS
=${LIBREADLINE_CFLAGS-""}
24770 READLINE_LIBS
=${LIBREADLINE_LIBS-"-lreadline"}
24783 CFLAGS
=$save_CFLAGS
24784 CPPFLAGS
=$save_CPPFLAGS
24785 LDFLAGS
=$save_LDFLAGS
24790 elif test $pkg_failed = untried
; then
24791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24792 printf "%s\n" "no" >&6; }
24794 save_CFLAGS
=$CFLAGS
24795 save_CPPFLAGS
=$CPPFLAGS
24796 save_LDFLAGS
=$LDFLAGS
24800 CPPFLAGS
="$CPPFLAGS $LIBREADLINE_CFLAGS"
24801 LDFLAGS
="$LDFLAGS $LIBREADLINE_LIBS"
24802 for ac_header
in readline
/readline.h
24804 ac_fn_c_check_header_compile
"$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
24805 if test "x$ac_cv_header_readline_readline_h" = xyes
24807 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h
24809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
24810 printf %s
"checking for readline in -lreadline... " >&6; }
24811 if test ${ac_cv_lib_readline_readline+y}
24813 printf %s
"(cached) " >&6
24815 ac_check_lib_save_LIBS
=$LIBS
24816 LIBS
="-lreadline $LIBS"
24817 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24818 /* end confdefs.h. */
24820 /* Override any GCC internal prototype to avoid an error.
24821 Use char because int might match the return type of a GCC
24822 builtin and then its argument prototype would still apply. */
24827 return readline ();
24832 if ac_fn_c_try_link
"$LINENO"
24834 ac_cv_lib_readline_readline
=yes
24836 ac_cv_lib_readline_readline
=no
24838 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
24839 conftest
$ac_exeext conftest.
$ac_ext
24840 LIBS
=$ac_check_lib_save_LIBS
24842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
24843 printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
24844 if test "x$ac_cv_lib_readline_readline" = xyes
24847 LIBREADLINE
=readline
24848 READLINE_CFLAGS
=${LIBREADLINE_CFLAGS-""}
24849 READLINE_LIBS
=${LIBREADLINE_LIBS-"-lreadline"}
24862 CFLAGS
=$save_CFLAGS
24863 CPPFLAGS
=$save_CPPFLAGS
24864 LDFLAGS
=$save_LDFLAGS
24870 LIBREADLINE_CFLAGS
=$pkg_cv_LIBREADLINE_CFLAGS
24871 LIBREADLINE_LIBS
=$pkg_cv_LIBREADLINE_LIBS
24872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24873 printf "%s\n" "yes" >&6; }
24875 LIBREADLINE
=readline
24876 READLINE_CFLAGS
=$LIBREADLINE_CFLAGS
24877 READLINE_LIBS
=$LIBREADLINE_LIBS
24883 if test "x$with_readline" = xedit
24888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
24889 printf %s
"checking for libedit... " >&6; }
24891 if test -n "$LIBEDIT_CFLAGS"; then
24892 pkg_cv_LIBEDIT_CFLAGS
="$LIBEDIT_CFLAGS"
24893 elif test -n "$PKG_CONFIG"; then
24894 if test -n "$PKG_CONFIG" && \
24895 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
24896 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
24898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24899 test $ac_status = 0; }; then
24900 pkg_cv_LIBEDIT_CFLAGS
=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
24901 test "x$?" != "x0" && pkg_failed
=yes
24908 if test -n "$LIBEDIT_LIBS"; then
24909 pkg_cv_LIBEDIT_LIBS
="$LIBEDIT_LIBS"
24910 elif test -n "$PKG_CONFIG"; then
24911 if test -n "$PKG_CONFIG" && \
24912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
24913 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
24915 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24916 test $ac_status = 0; }; then
24917 pkg_cv_LIBEDIT_LIBS
=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
24918 test "x$?" != "x0" && pkg_failed
=yes
24928 if test $pkg_failed = yes; then
24929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24930 printf "%s\n" "no" >&6; }
24932 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24933 _pkg_short_errors_supported
=yes
24935 _pkg_short_errors_supported
=no
24937 if test $_pkg_short_errors_supported = yes; then
24938 LIBEDIT_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
24940 LIBEDIT_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
24942 # Put the nasty error message in config.log where it belongs
24943 echo "$LIBEDIT_PKG_ERRORS" >&5
24946 save_CFLAGS
=$CFLAGS
24947 save_CPPFLAGS
=$CPPFLAGS
24948 save_LDFLAGS
=$LDFLAGS
24952 CPPFLAGS
="$CPPFLAGS $LIBEDIT_CFLAGS"
24953 LDFLAGS
="$LDFLAGS $LIBEDIT_LIBS"
24954 for ac_header
in editline
/readline.h
24956 ac_fn_c_check_header_compile
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
24957 if test "x$ac_cv_header_editline_readline_h" = xyes
24959 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
24961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
24962 printf %s
"checking for readline in -ledit... " >&6; }
24963 if test ${ac_cv_lib_edit_readline+y}
24965 printf %s
"(cached) " >&6
24967 ac_check_lib_save_LIBS
=$LIBS
24968 LIBS
="-ledit $LIBS"
24969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24970 /* end confdefs.h. */
24972 /* Override any GCC internal prototype to avoid an error.
24973 Use char because int might match the return type of a GCC
24974 builtin and then its argument prototype would still apply. */
24979 return readline ();
24984 if ac_fn_c_try_link
"$LINENO"
24986 ac_cv_lib_edit_readline
=yes
24988 ac_cv_lib_edit_readline
=no
24990 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
24991 conftest
$ac_exeext conftest.
$ac_ext
24992 LIBS
=$ac_check_lib_save_LIBS
24994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
24995 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
24996 if test "x$ac_cv_lib_edit_readline" = xyes
25000 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25002 READLINE_CFLAGS
=${LIBEDIT_CFLAGS-""}
25003 READLINE_LIBS
=${LIBEDIT_LIBS-"-ledit"}
25016 CFLAGS
=$save_CFLAGS
25017 CPPFLAGS
=$save_CPPFLAGS
25018 LDFLAGS
=$save_LDFLAGS
25023 elif test $pkg_failed = untried
; then
25024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25025 printf "%s\n" "no" >&6; }
25027 save_CFLAGS
=$CFLAGS
25028 save_CPPFLAGS
=$CPPFLAGS
25029 save_LDFLAGS
=$LDFLAGS
25033 CPPFLAGS
="$CPPFLAGS $LIBEDIT_CFLAGS"
25034 LDFLAGS
="$LDFLAGS $LIBEDIT_LIBS"
25035 for ac_header
in editline
/readline.h
25037 ac_fn_c_check_header_compile
"$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
25038 if test "x$ac_cv_header_editline_readline_h" = xyes
25040 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
25042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5
25043 printf %s
"checking for readline in -ledit... " >&6; }
25044 if test ${ac_cv_lib_edit_readline+y}
25046 printf %s
"(cached) " >&6
25048 ac_check_lib_save_LIBS
=$LIBS
25049 LIBS
="-ledit $LIBS"
25050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25051 /* end confdefs.h. */
25053 /* Override any GCC internal prototype to avoid an error.
25054 Use char because int might match the return type of a GCC
25055 builtin and then its argument prototype would still apply. */
25060 return readline ();
25065 if ac_fn_c_try_link
"$LINENO"
25067 ac_cv_lib_edit_readline
=yes
25069 ac_cv_lib_edit_readline
=no
25071 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
25072 conftest
$ac_exeext conftest.
$ac_ext
25073 LIBS
=$ac_check_lib_save_LIBS
25075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5
25076 printf "%s\n" "$ac_cv_lib_edit_readline" >&6; }
25077 if test "x$ac_cv_lib_edit_readline" = xyes
25081 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25083 READLINE_CFLAGS
=${LIBEDIT_CFLAGS-""}
25084 READLINE_LIBS
=${LIBEDIT_LIBS-"-ledit"}
25097 CFLAGS
=$save_CFLAGS
25098 CPPFLAGS
=$save_CPPFLAGS
25099 LDFLAGS
=$save_LDFLAGS
25105 LIBEDIT_CFLAGS
=$pkg_cv_LIBEDIT_CFLAGS
25106 LIBEDIT_LIBS
=$pkg_cv_LIBEDIT_LIBS
25107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25108 printf "%s\n" "yes" >&6; }
25110 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h
25113 READLINE_CFLAGS
=$LIBEDIT_CFLAGS
25114 READLINE_LIBS
=$LIBEDIT_LIBS
25120 READLINE_CFLAGS
=$
(echo $READLINE_CFLAGS |
sed 's/-D_XOPEN_SOURCE=600//g')
25122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline" >&5
25123 printf %s
"checking how to link readline... " >&6; }
25124 if test "x$with_readline" = xno
25127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25128 printf "%s\n" "no" >&6; }
25132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&5
25133 printf "%s\n" "$with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&6; }
25135 save_CFLAGS
=$CFLAGS
25136 save_CPPFLAGS
=$CPPFLAGS
25137 save_LDFLAGS
=$LDFLAGS
25141 CPPFLAGS
="$CPPFLAGS $READLINE_CFLAGS"
25142 LIBS
="$READLINE_LIBS $LIBS"
25147 # check for readline 2.2
25148 ac_fn_check_decl
"$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" "
25149 #include <stdio.h> /* Must be first for Gnu Readline */
25150 #ifdef WITH_EDITLINE
25151 # include <editline/readline.h>
25153 # include <readline/readline.h>
25154 # include <readline/history.h>
25157 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25158 if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes
25162 printf "%s\n" "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h
25167 ac_fn_check_decl
"$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" "
25168 #include <stdio.h> /* Must be first for Gnu Readline */
25169 #ifdef WITH_EDITLINE
25170 # include <editline/readline.h>
25172 # include <readline/readline.h>
25173 # include <readline/history.h>
25176 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25177 if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes
25181 printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h
25186 # check for readline 4.0
25187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5
25188 printf %s
"checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; }
25189 if test ${ac_cv_readline_rl_pre_input_hook+y}
25191 printf %s
"(cached) " >&6
25194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h. */
25197 #include <stdio.h> /* Must be first for Gnu Readline */
25198 #ifdef WITH_EDITLINE
25199 # include <editline/readline.h>
25201 # include <readline/readline.h>
25202 # include <readline/history.h>
25208 void *x = rl_pre_input_hook
25213 if ac_fn_c_try_link
"$LINENO"
25215 ac_cv_readline_rl_pre_input_hook
=yes
25217 ac_cv_readline_rl_pre_input_hook
=no
25220 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
25221 conftest
$ac_exeext conftest.
$ac_ext
25224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_pre_input_hook" >&5
25225 printf "%s\n" "$ac_cv_readline_rl_pre_input_hook" >&6; }
25226 if test "x$ac_cv_readline_rl_pre_input_hook" = xyes
25230 printf "%s\n" "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h
25236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5
25237 printf %s
"checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; }
25238 if test ${ac_cv_readline_rl_completion_display_matches_hook+y}
25240 printf %s
"(cached) " >&6
25243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25244 /* end confdefs.h. */
25246 #include <stdio.h> /* Must be first for Gnu Readline */
25247 #ifdef WITH_EDITLINE
25248 # include <editline/readline.h>
25250 # include <readline/readline.h>
25251 # include <readline/history.h>
25257 void *x = rl_completion_display_matches_hook
25262 if ac_fn_c_try_link
"$LINENO"
25264 ac_cv_readline_rl_completion_display_matches_hook
=yes
25266 ac_cv_readline_rl_completion_display_matches_hook
=no
25269 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
25270 conftest
$ac_exeext conftest.
$ac_ext
25273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_display_matches_hook" >&5
25274 printf "%s\n" "$ac_cv_readline_rl_completion_display_matches_hook" >&6; }
25275 if test "x$ac_cv_readline_rl_completion_display_matches_hook" = xyes
25279 printf "%s\n" "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h
25284 # also in 4.0, but not in editline
25285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5
25286 printf %s
"checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; }
25287 if test ${ac_cv_readline_rl_resize_terminal+y}
25289 printf %s
"(cached) " >&6
25292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25293 /* end confdefs.h. */
25295 #include <stdio.h> /* Must be first for Gnu Readline */
25296 #ifdef WITH_EDITLINE
25297 # include <editline/readline.h>
25299 # include <readline/readline.h>
25300 # include <readline/history.h>
25306 void *x = rl_resize_terminal
25311 if ac_fn_c_try_link
"$LINENO"
25313 ac_cv_readline_rl_resize_terminal
=yes
25315 ac_cv_readline_rl_resize_terminal
=no
25318 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
25319 conftest
$ac_exeext conftest.
$ac_ext
25322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_resize_terminal" >&5
25323 printf "%s\n" "$ac_cv_readline_rl_resize_terminal" >&6; }
25324 if test "x$ac_cv_readline_rl_resize_terminal" = xyes
25328 printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h
25333 # check for readline 4.2
25334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5
25335 printf %s
"checking for rl_completion_matches in -l$LIBREADLINE... " >&6; }
25336 if test ${ac_cv_readline_rl_completion_matches+y}
25338 printf %s
"(cached) " >&6
25341 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25342 /* end confdefs.h. */
25344 #include <stdio.h> /* Must be first for Gnu Readline */
25345 #ifdef WITH_EDITLINE
25346 # include <editline/readline.h>
25348 # include <readline/readline.h>
25349 # include <readline/history.h>
25355 void *x = rl_completion_matches
25360 if ac_fn_c_try_link
"$LINENO"
25362 ac_cv_readline_rl_completion_matches
=yes
25364 ac_cv_readline_rl_completion_matches
=no
25367 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
25368 conftest
$ac_exeext conftest.
$ac_ext
25371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_matches" >&5
25372 printf "%s\n" "$ac_cv_readline_rl_completion_matches" >&6; }
25373 if test "x$ac_cv_readline_rl_completion_matches" = xyes
25377 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
25382 # also in readline 4.2
25383 ac_fn_check_decl
"$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" "
25384 #include <stdio.h> /* Must be first for Gnu Readline */
25385 #ifdef WITH_EDITLINE
25386 # include <editline/readline.h>
25388 # include <readline/readline.h>
25389 # include <readline/history.h>
25392 " "$ac_c_undeclared_builtin_options" "CFLAGS"
25393 if test "x$ac_cv_have_decl_rl_catch_signals" = xyes
25397 printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h
25402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5
25403 printf %s
"checking for append_history in -l$LIBREADLINE... " >&6; }
25404 if test ${ac_cv_readline_append_history+y}
25406 printf %s
"(cached) " >&6
25409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h. */
25412 #include <stdio.h> /* Must be first for Gnu Readline */
25413 #ifdef WITH_EDITLINE
25414 # include <editline/readline.h>
25416 # include <readline/readline.h>
25417 # include <readline/history.h>
25423 void *x = append_history
25428 if ac_fn_c_try_link
"$LINENO"
25430 ac_cv_readline_append_history
=yes
25432 ac_cv_readline_append_history
=no
25435 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
25436 conftest
$ac_exeext conftest.
$ac_ext
25439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_append_history" >&5
25440 printf "%s\n" "$ac_cv_readline_append_history" >&6; }
25441 if test "x$ac_cv_readline_append_history" = xyes
25445 printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h
25450 # in readline as well as newer editline (April 2023)
25451 ac_fn_c_check_type
"$LINENO" "rl_compdisp_func_t" "ac_cv_type_rl_compdisp_func_t" "
25452 #include <stdio.h> /* Must be first for Gnu Readline */
25453 #ifdef WITH_EDITLINE
25454 # include <editline/readline.h>
25456 # include <readline/readline.h>
25457 # include <readline/history.h>
25461 if test "x$ac_cv_type_rl_compdisp_func_t" = xyes
25464 printf "%s\n" "#define HAVE_RL_COMPDISP_FUNC_T 1" >>confdefs.h
25470 # Some editline versions declare rl_startup_hook as taking no args, others
25471 # declare it as taking 2.
25472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rl_startup_hook takes arguments" >&5
25473 printf %s
"checking if rl_startup_hook takes arguments... " >&6; }
25474 if test ${ac_cv_readline_rl_startup_hook_takes_args+y}
25476 printf %s
"(cached) " >&6
25479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25480 /* end confdefs.h. */
25482 #include <stdio.h> /* Must be first for Gnu Readline */
25483 #ifdef WITH_EDITLINE
25484 # include <editline/readline.h>
25486 # include <readline/readline.h>
25487 # include <readline/history.h>
25490 extern int test_hook_func(const char *text, int state);
25494 rl_startup_hook=test_hook_func;
25499 if ac_fn_c_try_compile
"$LINENO"
25501 ac_cv_readline_rl_startup_hook_takes_args
=yes
25503 ac_cv_readline_rl_startup_hook_takes_args
=no
25506 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_startup_hook_takes_args" >&5
25510 printf "%s\n" "$ac_cv_readline_rl_startup_hook_takes_args" >&6; }
25511 if test "x$ac_cv_readline_rl_startup_hook_takes_args" = xyes
25515 printf "%s\n" "#define Py_RL_STARTUP_HOOK_TAKES_ARGS 1" >>confdefs.h
25522 CFLAGS
=$save_CFLAGS
25523 CPPFLAGS
=$save_CPPFLAGS
25524 LDFLAGS
=$save_LDFLAGS
25530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5
25531 printf %s
"checking for broken nice()... " >&6; }
25532 if test ${ac_cv_broken_nice+y}
25534 printf %s
"(cached) " >&6
25537 if test "$cross_compiling" = yes
25539 ac_cv_broken_nice
=no
25541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25542 /* end confdefs.h. */
25544 #include <stdlib.h>
25545 #include <unistd.h>
25548 int val1 = nice(1);
25549 if (val1 != -1 && val1 == nice(2))
25555 if ac_fn_c_try_run
"$LINENO"
25557 ac_cv_broken_nice
=yes
25559 ac_cv_broken_nice
=no
25561 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25562 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5
25567 printf "%s\n" "$ac_cv_broken_nice" >&6; }
25568 if test "$ac_cv_broken_nice" = yes
25571 printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h
25575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5
25576 printf %s
"checking for broken poll()... " >&6; }
25577 if test ${ac_cv_broken_poll+y}
25579 printf %s
"(cached) " >&6
25581 if test "$cross_compiling" = yes
25583 ac_cv_broken_poll
=no
25585 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25586 /* end confdefs.h. */
25589 #include <unistd.h>
25593 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 };
25598 poll_test = poll(&poll_struct, 1, 0);
25601 else if (poll_test == 0 && poll_struct.revents != POLLNVAL)
25608 if ac_fn_c_try_run
"$LINENO"
25610 ac_cv_broken_poll
=yes
25612 ac_cv_broken_poll
=no
25614 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25615 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5
25620 printf "%s\n" "$ac_cv_broken_poll" >&6; }
25621 if test "$ac_cv_broken_poll" = yes
25624 printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h
25628 # check tzset(3) exists and works like we expect it to
25629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5
25630 printf %s
"checking for working tzset()... " >&6; }
25631 if test ${ac_cv_working_tzset+y}
25633 printf %s
"(cached) " >&6
25636 if test "$cross_compiling" = yes
25638 ac_cv_working_tzset
=no
25640 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25641 /* end confdefs.h. */
25643 #include <stdlib.h>
25645 #include <string.h>
25648 extern char *tzname[];
25653 /* Note that we need to ensure that not only does tzset(3)
25654 do 'something' with localtime, but it works as documented
25655 in the library reference and as expected by the test suite.
25656 This includes making sure that tzname is set properly if
25657 tm->tm_zone does not exist since it is the alternative way
25658 of getting timezone info.
25660 Red Hat 6.2 doesn't understand the southern hemisphere
25661 after New Year's Day.
25664 time_t groundhogday = 1044144000; /* GMT-based */
25665 time_t midyear = groundhogday + (365 * 24 * 3600 / 2);
25667 putenv("TZ=UTC+0");
25669 if (localtime(&groundhogday)->tm_hour != 0)
25672 /* For UTC, tzname[1] is sometimes "", sometimes " " */
25673 if (strcmp(tzname[0], "UTC") ||
25674 (tzname[1][0] != 0 && tzname[1][0] != ' '))
25678 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0");
25680 if (localtime(&groundhogday)->tm_hour != 19)
25683 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT"))
25687 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0");
25689 if (localtime(&groundhogday)->tm_hour != 11)
25692 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT"))
25696 #if HAVE_STRUCT_TM_TM_ZONE
25697 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT"))
25699 if (strcmp(localtime(&midyear)->tm_zone, "AEST"))
25707 if ac_fn_c_try_run
"$LINENO"
25709 ac_cv_working_tzset
=yes
25711 ac_cv_working_tzset
=no
25713 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
25714 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5
25719 printf "%s\n" "$ac_cv_working_tzset" >&6; }
25720 if test "$ac_cv_working_tzset" = yes
25723 printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h
25727 # Look for subsecond timestamps in struct stat
25728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5
25729 printf %s
"checking for tv_nsec in struct stat... " >&6; }
25730 if test ${ac_cv_stat_tv_nsec+y}
25732 printf %s
"(cached) " >&6
25734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25735 /* end confdefs.h. */
25736 #include <sys/stat.h>
25742 st.st_mtim.tv_nsec = 1;
25748 if ac_fn_c_try_compile
"$LINENO"
25750 ac_cv_stat_tv_nsec
=yes
25752 ac_cv_stat_tv_nsec
=no
25754 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5
25757 printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; }
25758 if test "$ac_cv_stat_tv_nsec" = yes
25761 printf "%s\n" "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h
25765 # Look for BSD style subsecond timestamps in struct stat
25766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5
25767 printf %s
"checking for tv_nsec2 in struct stat... " >&6; }
25768 if test ${ac_cv_stat_tv_nsec2+y}
25770 printf %s
"(cached) " >&6
25772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25773 /* end confdefs.h. */
25774 #include <sys/stat.h>
25780 st.st_mtimespec.tv_nsec = 1;
25786 if ac_fn_c_try_compile
"$LINENO"
25788 ac_cv_stat_tv_nsec2
=yes
25790 ac_cv_stat_tv_nsec2
=no
25792 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
25794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5
25795 printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; }
25796 if test "$ac_cv_stat_tv_nsec2" = yes
25799 printf "%s\n" "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h
25807 ac_fn_c_check_header_compile
"$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
25808 if test "x$ac_cv_header_curses_h" = xyes
25810 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h
25813 ac_fn_c_check_header_compile
"$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default"
25814 if test "x$ac_cv_header_ncurses_h" = xyes
25816 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h
25821 if test "x$ac_cv_header_ncurses_h" = xyes
25824 if test "$ac_sys_system" != "Darwin"; then
25827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5
25828 printf %s
"checking for ncursesw... " >&6; }
25830 if test -n "$CURSES_CFLAGS"; then
25831 pkg_cv_CURSES_CFLAGS
="$CURSES_CFLAGS"
25832 elif test -n "$PKG_CONFIG"; then
25833 if test -n "$PKG_CONFIG" && \
25834 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
25835 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
25837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25838 test $ac_status = 0; }; then
25839 pkg_cv_CURSES_CFLAGS
=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null`
25840 test "x$?" != "x0" && pkg_failed
=yes
25847 if test -n "$CURSES_LIBS"; then
25848 pkg_cv_CURSES_LIBS
="$CURSES_LIBS"
25849 elif test -n "$PKG_CONFIG"; then
25850 if test -n "$PKG_CONFIG" && \
25851 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5
25852 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5
25854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25855 test $ac_status = 0; }; then
25856 pkg_cv_CURSES_LIBS
=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null`
25857 test "x$?" != "x0" && pkg_failed
=yes
25867 if test $pkg_failed = yes; then
25868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25869 printf "%s\n" "no" >&6; }
25871 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25872 _pkg_short_errors_supported
=yes
25874 _pkg_short_errors_supported
=no
25876 if test $_pkg_short_errors_supported = yes; then
25877 CURSES_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1`
25879 CURSES_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1`
25881 # Put the nasty error message in config.log where it belongs
25882 echo "$CURSES_PKG_ERRORS" >&5
25885 save_CFLAGS
=$CFLAGS
25886 save_CPPFLAGS
=$CPPFLAGS
25887 save_LDFLAGS
=$LDFLAGS
25891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
25892 printf %s
"checking for initscr in -lncursesw... " >&6; }
25893 if test ${ac_cv_lib_ncursesw_initscr+y}
25895 printf %s
"(cached) " >&6
25897 ac_check_lib_save_LIBS
=$LIBS
25898 LIBS
="-lncursesw $LIBS"
25899 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25900 /* end confdefs.h. */
25902 /* Override any GCC internal prototype to avoid an error.
25903 Use char because int might match the return type of a GCC
25904 builtin and then its argument prototype would still apply. */
25914 if ac_fn_c_try_link
"$LINENO"
25916 ac_cv_lib_ncursesw_initscr
=yes
25918 ac_cv_lib_ncursesw_initscr
=no
25920 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
25921 conftest
$ac_exeext conftest.
$ac_ext
25922 LIBS
=$ac_check_lib_save_LIBS
25924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
25925 printf "%s\n" "$ac_cv_lib_ncursesw_initscr" >&6; }
25926 if test "x$ac_cv_lib_ncursesw_initscr" = xyes
25929 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
25931 have_curses
=ncursesw
25932 CURSES_CFLAGS
=${CURSES_CFLAGS-""}
25933 CURSES_LIBS
=${CURSES_LIBS-"-lncursesw"}
25938 CFLAGS
=$save_CFLAGS
25939 CPPFLAGS
=$save_CPPFLAGS
25940 LDFLAGS
=$save_LDFLAGS
25945 elif test $pkg_failed = untried
; then
25946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25947 printf "%s\n" "no" >&6; }
25949 save_CFLAGS
=$CFLAGS
25950 save_CPPFLAGS
=$CPPFLAGS
25951 save_LDFLAGS
=$LDFLAGS
25955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
25956 printf %s
"checking for initscr in -lncursesw... " >&6; }
25957 if test ${ac_cv_lib_ncursesw_initscr+y}
25959 printf %s
"(cached) " >&6
25961 ac_check_lib_save_LIBS
=$LIBS
25962 LIBS
="-lncursesw $LIBS"
25963 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
25964 /* end confdefs.h. */
25966 /* Override any GCC internal prototype to avoid an error.
25967 Use char because int might match the return type of a GCC
25968 builtin and then its argument prototype would still apply. */
25978 if ac_fn_c_try_link
"$LINENO"
25980 ac_cv_lib_ncursesw_initscr
=yes
25982 ac_cv_lib_ncursesw_initscr
=no
25984 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
25985 conftest
$ac_exeext conftest.
$ac_ext
25986 LIBS
=$ac_check_lib_save_LIBS
25988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
25989 printf "%s\n" "$ac_cv_lib_ncursesw_initscr" >&6; }
25990 if test "x$ac_cv_lib_ncursesw_initscr" = xyes
25993 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
25995 have_curses
=ncursesw
25996 CURSES_CFLAGS
=${CURSES_CFLAGS-""}
25997 CURSES_LIBS
=${CURSES_LIBS-"-lncursesw"}
26002 CFLAGS
=$save_CFLAGS
26003 CPPFLAGS
=$save_CPPFLAGS
26004 LDFLAGS
=$save_LDFLAGS
26010 CURSES_CFLAGS
=$pkg_cv_CURSES_CFLAGS
26011 CURSES_LIBS
=$pkg_cv_CURSES_LIBS
26012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26013 printf "%s\n" "yes" >&6; }
26015 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
26017 have_curses
=ncursesw
26022 if test "x$have_curses" = xno
26027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
26028 printf %s
"checking for ncurses... " >&6; }
26030 if test -n "$CURSES_CFLAGS"; then
26031 pkg_cv_CURSES_CFLAGS
="$CURSES_CFLAGS"
26032 elif test -n "$PKG_CONFIG"; then
26033 if test -n "$PKG_CONFIG" && \
26034 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
26035 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
26037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26038 test $ac_status = 0; }; then
26039 pkg_cv_CURSES_CFLAGS
=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
26040 test "x$?" != "x0" && pkg_failed
=yes
26047 if test -n "$CURSES_LIBS"; then
26048 pkg_cv_CURSES_LIBS
="$CURSES_LIBS"
26049 elif test -n "$PKG_CONFIG"; then
26050 if test -n "$PKG_CONFIG" && \
26051 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
26052 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
26054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26055 test $ac_status = 0; }; then
26056 pkg_cv_CURSES_LIBS
=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
26057 test "x$?" != "x0" && pkg_failed
=yes
26067 if test $pkg_failed = yes; then
26068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26069 printf "%s\n" "no" >&6; }
26071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26072 _pkg_short_errors_supported
=yes
26074 _pkg_short_errors_supported
=no
26076 if test $_pkg_short_errors_supported = yes; then
26077 CURSES_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
26079 CURSES_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
26081 # Put the nasty error message in config.log where it belongs
26082 echo "$CURSES_PKG_ERRORS" >&5
26085 save_CFLAGS
=$CFLAGS
26086 save_CPPFLAGS
=$CPPFLAGS
26087 save_LDFLAGS
=$LDFLAGS
26091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
26092 printf %s
"checking for initscr in -lncurses... " >&6; }
26093 if test ${ac_cv_lib_ncurses_initscr+y}
26095 printf %s
"(cached) " >&6
26097 ac_check_lib_save_LIBS
=$LIBS
26098 LIBS
="-lncurses $LIBS"
26099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26100 /* end confdefs.h. */
26102 /* Override any GCC internal prototype to avoid an error.
26103 Use char because int might match the return type of a GCC
26104 builtin and then its argument prototype would still apply. */
26114 if ac_fn_c_try_link
"$LINENO"
26116 ac_cv_lib_ncurses_initscr
=yes
26118 ac_cv_lib_ncurses_initscr
=no
26120 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
26121 conftest
$ac_exeext conftest.
$ac_ext
26122 LIBS
=$ac_check_lib_save_LIBS
26124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
26125 printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
26126 if test "x$ac_cv_lib_ncurses_initscr" = xyes
26129 have_curses
=ncurses
26130 CURSES_CFLAGS
=${CURSES_CFLAGS-""}
26131 CURSES_LIBS
=${CURSES_LIBS-"-lncurses"}
26136 CFLAGS
=$save_CFLAGS
26137 CPPFLAGS
=$save_CPPFLAGS
26138 LDFLAGS
=$save_LDFLAGS
26143 elif test $pkg_failed = untried
; then
26144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26145 printf "%s\n" "no" >&6; }
26147 save_CFLAGS
=$CFLAGS
26148 save_CPPFLAGS
=$CPPFLAGS
26149 save_LDFLAGS
=$LDFLAGS
26153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
26154 printf %s
"checking for initscr in -lncurses... " >&6; }
26155 if test ${ac_cv_lib_ncurses_initscr+y}
26157 printf %s
"(cached) " >&6
26159 ac_check_lib_save_LIBS
=$LIBS
26160 LIBS
="-lncurses $LIBS"
26161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26162 /* end confdefs.h. */
26164 /* Override any GCC internal prototype to avoid an error.
26165 Use char because int might match the return type of a GCC
26166 builtin and then its argument prototype would still apply. */
26176 if ac_fn_c_try_link
"$LINENO"
26178 ac_cv_lib_ncurses_initscr
=yes
26180 ac_cv_lib_ncurses_initscr
=no
26182 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
26183 conftest
$ac_exeext conftest.
$ac_ext
26184 LIBS
=$ac_check_lib_save_LIBS
26186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
26187 printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
26188 if test "x$ac_cv_lib_ncurses_initscr" = xyes
26191 have_curses
=ncurses
26192 CURSES_CFLAGS
=${CURSES_CFLAGS-""}
26193 CURSES_LIBS
=${CURSES_LIBS-"-lncurses"}
26198 CFLAGS
=$save_CFLAGS
26199 CPPFLAGS
=$save_CPPFLAGS
26200 LDFLAGS
=$save_LDFLAGS
26206 CURSES_CFLAGS
=$pkg_cv_CURSES_CFLAGS
26207 CURSES_LIBS
=$pkg_cv_CURSES_LIBS
26208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26209 printf "%s\n" "yes" >&6; }
26211 have_curses
=ncurses
26219 CURSES_CFLAGS
=$
(echo $CURSES_CFLAGS |
sed 's/-D_XOPEN_SOURCE=600//g')
26221 if test "$have_curses" != no
-a "$ac_sys_system" = "Darwin"; then
26223 as_fn_append CURSES_CFLAGS
" -D_XOPEN_SOURCE_EXTENDED=1"
26224 printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h
26229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curses module flags" >&5
26230 printf %s
"checking curses module flags... " >&6; }
26231 if test "x$have_curses" = xno
26234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26235 printf "%s\n" "no" >&6; }
26239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_curses (CFLAGS: $CURSES_CFLAGS, LIBS: $CURSES_LIBS)" >&5
26240 printf "%s\n" "$have_curses (CFLAGS: $CURSES_CFLAGS, LIBS: $CURSES_LIBS)" >&6; }
26244 ac_fn_c_check_header_compile
"$LINENO" "panel.h" "ac_cv_header_panel_h" "$ac_includes_default"
26245 if test "x$ac_cv_header_panel_h" = xyes
26247 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h
26252 if test "x$ac_cv_header_panel_h" = xyes
26256 if test "$ac_sys_system" != "Darwin"; then
26257 if test "x$have_curses" = xncursesw
26262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panelw" >&5
26263 printf %s
"checking for panelw... " >&6; }
26265 if test -n "$PANEL_CFLAGS"; then
26266 pkg_cv_PANEL_CFLAGS
="$PANEL_CFLAGS"
26267 elif test -n "$PKG_CONFIG"; then
26268 if test -n "$PKG_CONFIG" && \
26269 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
26270 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
26272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26273 test $ac_status = 0; }; then
26274 pkg_cv_PANEL_CFLAGS
=`$PKG_CONFIG --cflags "panelw" 2>/dev/null`
26275 test "x$?" != "x0" && pkg_failed
=yes
26282 if test -n "$PANEL_LIBS"; then
26283 pkg_cv_PANEL_LIBS
="$PANEL_LIBS"
26284 elif test -n "$PKG_CONFIG"; then
26285 if test -n "$PKG_CONFIG" && \
26286 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5
26287 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5
26289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; then
26291 pkg_cv_PANEL_LIBS
=`$PKG_CONFIG --libs "panelw" 2>/dev/null`
26292 test "x$?" != "x0" && pkg_failed
=yes
26302 if test $pkg_failed = yes; then
26303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26304 printf "%s\n" "no" >&6; }
26306 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26307 _pkg_short_errors_supported
=yes
26309 _pkg_short_errors_supported
=no
26311 if test $_pkg_short_errors_supported = yes; then
26312 PANEL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panelw" 2>&1`
26314 PANEL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "panelw" 2>&1`
26316 # Put the nasty error message in config.log where it belongs
26317 echo "$PANEL_PKG_ERRORS" >&5
26320 save_CFLAGS
=$CFLAGS
26321 save_CPPFLAGS
=$CPPFLAGS
26322 save_LDFLAGS
=$LDFLAGS
26326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanelw" >&5
26327 printf %s
"checking for update_panels in -lpanelw... " >&6; }
26328 if test ${ac_cv_lib_panelw_update_panels+y}
26330 printf %s
"(cached) " >&6
26332 ac_check_lib_save_LIBS
=$LIBS
26333 LIBS
="-lpanelw $LIBS"
26334 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26335 /* end confdefs.h. */
26337 /* Override any GCC internal prototype to avoid an error.
26338 Use char because int might match the return type of a GCC
26339 builtin and then its argument prototype would still apply. */
26340 char update_panels ();
26344 return update_panels ();
26349 if ac_fn_c_try_link
"$LINENO"
26351 ac_cv_lib_panelw_update_panels
=yes
26353 ac_cv_lib_panelw_update_panels
=no
26355 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
26356 conftest
$ac_exeext conftest.
$ac_ext
26357 LIBS
=$ac_check_lib_save_LIBS
26359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panelw_update_panels" >&5
26360 printf "%s\n" "$ac_cv_lib_panelw_update_panels" >&6; }
26361 if test "x$ac_cv_lib_panelw_update_panels" = xyes
26365 PANEL_CFLAGS
=${PANEL_CFLAGS-""}
26366 PANEL_LIBS
=${PANEL_LIBS-"-lpanelw"}
26371 CFLAGS
=$save_CFLAGS
26372 CPPFLAGS
=$save_CPPFLAGS
26373 LDFLAGS
=$save_LDFLAGS
26378 elif test $pkg_failed = untried
; then
26379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26380 printf "%s\n" "no" >&6; }
26382 save_CFLAGS
=$CFLAGS
26383 save_CPPFLAGS
=$CPPFLAGS
26384 save_LDFLAGS
=$LDFLAGS
26388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanelw" >&5
26389 printf %s
"checking for update_panels in -lpanelw... " >&6; }
26390 if test ${ac_cv_lib_panelw_update_panels+y}
26392 printf %s
"(cached) " >&6
26394 ac_check_lib_save_LIBS
=$LIBS
26395 LIBS
="-lpanelw $LIBS"
26396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26397 /* end confdefs.h. */
26399 /* Override any GCC internal prototype to avoid an error.
26400 Use char because int might match the return type of a GCC
26401 builtin and then its argument prototype would still apply. */
26402 char update_panels ();
26406 return update_panels ();
26411 if ac_fn_c_try_link
"$LINENO"
26413 ac_cv_lib_panelw_update_panels
=yes
26415 ac_cv_lib_panelw_update_panels
=no
26417 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
26418 conftest
$ac_exeext conftest.
$ac_ext
26419 LIBS
=$ac_check_lib_save_LIBS
26421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panelw_update_panels" >&5
26422 printf "%s\n" "$ac_cv_lib_panelw_update_panels" >&6; }
26423 if test "x$ac_cv_lib_panelw_update_panels" = xyes
26427 PANEL_CFLAGS
=${PANEL_CFLAGS-""}
26428 PANEL_LIBS
=${PANEL_LIBS-"-lpanelw"}
26433 CFLAGS
=$save_CFLAGS
26434 CPPFLAGS
=$save_CPPFLAGS
26435 LDFLAGS
=$save_LDFLAGS
26441 PANEL_CFLAGS
=$pkg_cv_PANEL_CFLAGS
26442 PANEL_LIBS
=$pkg_cv_PANEL_LIBS
26443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26444 printf "%s\n" "yes" >&6; }
26453 if test "x$have_curses" = xncurses
26458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panel" >&5
26459 printf %s
"checking for panel... " >&6; }
26461 if test -n "$PANEL_CFLAGS"; then
26462 pkg_cv_PANEL_CFLAGS
="$PANEL_CFLAGS"
26463 elif test -n "$PKG_CONFIG"; then
26464 if test -n "$PKG_CONFIG" && \
26465 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
26466 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
26468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; then
26470 pkg_cv_PANEL_CFLAGS
=`$PKG_CONFIG --cflags "panel" 2>/dev/null`
26471 test "x$?" != "x0" && pkg_failed
=yes
26478 if test -n "$PANEL_LIBS"; then
26479 pkg_cv_PANEL_LIBS
="$PANEL_LIBS"
26480 elif test -n "$PKG_CONFIG"; then
26481 if test -n "$PKG_CONFIG" && \
26482 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5
26483 ($PKG_CONFIG --exists --print-errors "panel") 2>&5
26485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26486 test $ac_status = 0; }; then
26487 pkg_cv_PANEL_LIBS
=`$PKG_CONFIG --libs "panel" 2>/dev/null`
26488 test "x$?" != "x0" && pkg_failed
=yes
26498 if test $pkg_failed = yes; then
26499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26500 printf "%s\n" "no" >&6; }
26502 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26503 _pkg_short_errors_supported
=yes
26505 _pkg_short_errors_supported
=no
26507 if test $_pkg_short_errors_supported = yes; then
26508 PANEL_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panel" 2>&1`
26510 PANEL_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "panel" 2>&1`
26512 # Put the nasty error message in config.log where it belongs
26513 echo "$PANEL_PKG_ERRORS" >&5
26516 save_CFLAGS
=$CFLAGS
26517 save_CPPFLAGS
=$CPPFLAGS
26518 save_LDFLAGS
=$LDFLAGS
26522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanel" >&5
26523 printf %s
"checking for update_panels in -lpanel... " >&6; }
26524 if test ${ac_cv_lib_panel_update_panels+y}
26526 printf %s
"(cached) " >&6
26528 ac_check_lib_save_LIBS
=$LIBS
26529 LIBS
="-lpanel $LIBS"
26530 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26531 /* end confdefs.h. */
26533 /* Override any GCC internal prototype to avoid an error.
26534 Use char because int might match the return type of a GCC
26535 builtin and then its argument prototype would still apply. */
26536 char update_panels ();
26540 return update_panels ();
26545 if ac_fn_c_try_link
"$LINENO"
26547 ac_cv_lib_panel_update_panels
=yes
26549 ac_cv_lib_panel_update_panels
=no
26551 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
26552 conftest
$ac_exeext conftest.
$ac_ext
26553 LIBS
=$ac_check_lib_save_LIBS
26555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panel_update_panels" >&5
26556 printf "%s\n" "$ac_cv_lib_panel_update_panels" >&6; }
26557 if test "x$ac_cv_lib_panel_update_panels" = xyes
26561 PANEL_CFLAGS
=${PANEL_CFLAGS-""}
26562 PANEL_LIBS
=${PANEL_LIBS-"-lpanel"}
26567 CFLAGS
=$save_CFLAGS
26568 CPPFLAGS
=$save_CPPFLAGS
26569 LDFLAGS
=$save_LDFLAGS
26574 elif test $pkg_failed = untried
; then
26575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26576 printf "%s\n" "no" >&6; }
26578 save_CFLAGS
=$CFLAGS
26579 save_CPPFLAGS
=$CPPFLAGS
26580 save_LDFLAGS
=$LDFLAGS
26584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanel" >&5
26585 printf %s
"checking for update_panels in -lpanel... " >&6; }
26586 if test ${ac_cv_lib_panel_update_panels+y}
26588 printf %s
"(cached) " >&6
26590 ac_check_lib_save_LIBS
=$LIBS
26591 LIBS
="-lpanel $LIBS"
26592 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26593 /* end confdefs.h. */
26595 /* Override any GCC internal prototype to avoid an error.
26596 Use char because int might match the return type of a GCC
26597 builtin and then its argument prototype would still apply. */
26598 char update_panels ();
26602 return update_panels ();
26607 if ac_fn_c_try_link
"$LINENO"
26609 ac_cv_lib_panel_update_panels
=yes
26611 ac_cv_lib_panel_update_panels
=no
26613 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
26614 conftest
$ac_exeext conftest.
$ac_ext
26615 LIBS
=$ac_check_lib_save_LIBS
26617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panel_update_panels" >&5
26618 printf "%s\n" "$ac_cv_lib_panel_update_panels" >&6; }
26619 if test "x$ac_cv_lib_panel_update_panels" = xyes
26623 PANEL_CFLAGS
=${PANEL_CFLAGS-""}
26624 PANEL_LIBS
=${PANEL_LIBS-"-lpanel"}
26629 CFLAGS
=$save_CFLAGS
26630 CPPFLAGS
=$save_CPPFLAGS
26631 LDFLAGS
=$save_LDFLAGS
26637 PANEL_CFLAGS
=$pkg_cv_PANEL_CFLAGS
26638 PANEL_LIBS
=$pkg_cv_PANEL_LIBS
26639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26640 printf "%s\n" "yes" >&6; }
26650 PANEL_CFLAGS
=$
(echo $PANEL_CFLAGS |
sed 's/-D_XOPEN_SOURCE=600//g')
26652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking panel flags" >&5
26653 printf %s
"checking panel flags... " >&6; }
26654 if test "x$have_panel" = xno
26657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26658 printf "%s\n" "no" >&6; }
26662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_panel (CFLAGS: $PANEL_CFLAGS, LIBS: $PANEL_LIBS)" >&5
26663 printf "%s\n" "$have_panel (CFLAGS: $PANEL_CFLAGS, LIBS: $PANEL_LIBS)" >&6; }
26667 # first curses header check
26668 ac_save_cppflags
="$CPPFLAGS"
26669 if test "$cross_compiling" = no
; then
26670 CPPFLAGS
="$CPPFLAGS -I/usr/include/ncursesw"
26673 # On Solaris, term.h requires curses.h
26674 ac_fn_c_check_header_compile
"$LINENO" "term.h" "ac_cv_header_term_h" "
26675 #ifdef HAVE_CURSES_H
26676 #include <curses.h>
26680 if test "x$ac_cv_header_term_h" = xyes
26682 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h
26687 # On HP/UX 11.0, mvwdelch is a block with a return statement
26688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5
26689 printf %s
"checking whether mvwdelch is an expression... " >&6; }
26690 if test ${ac_cv_mvwdelch_is_expression+y}
26692 printf %s
"(cached) " >&6
26694 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26695 /* end confdefs.h. */
26696 #include <curses.h>
26702 rtn = mvwdelch(0,0,0);
26708 if ac_fn_c_try_compile
"$LINENO"
26710 ac_cv_mvwdelch_is_expression
=yes
26712 ac_cv_mvwdelch_is_expression
=no
26714 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5
26717 printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; }
26719 if test "$ac_cv_mvwdelch_is_expression" = yes
26722 printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h
26726 # Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque
26727 # structs since version 5.7. If the macro is defined as zero before including
26728 # [n]curses.h, ncurses will expose fields of the structs regardless of the
26730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5
26731 printf %s
"checking whether WINDOW has _flags... " >&6; }
26732 if test ${ac_cv_window_has_flags+y}
26734 printf %s
"(cached) " >&6
26736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26737 /* end confdefs.h. */
26739 #define NCURSES_OPAQUE 0
26740 #include <curses.h>
26753 if ac_fn_c_try_compile
"$LINENO"
26755 ac_cv_window_has_flags
=yes
26757 ac_cv_window_has_flags
=no
26759 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5
26762 printf "%s\n" "$ac_cv_window_has_flags" >&6; }
26765 if test "$ac_cv_window_has_flags" = yes
26768 printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h
26776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_pad" >&5
26777 printf %s
"checking for curses function is_pad... " >&6; }
26778 if test ${ac_cv_lib_curses_is_pad+y}
26780 printf %s
"(cached) " >&6
26782 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26783 /* end confdefs.h. */
26784 #include <curses.h>
26797 if ac_fn_c_try_compile
"$LINENO"
26799 ac_cv_lib_curses_is_pad
=yes
26801 ac_cv_lib_curses_is_pad
=no
26803 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_pad" >&5
26807 printf "%s\n" "$ac_cv_lib_curses_is_pad" >&6; }
26808 if test "x$ac_cv_lib_curses_is_pad" = xyes
26811 printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h
26819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_term_resized" >&5
26820 printf %s
"checking for curses function is_term_resized... " >&6; }
26821 if test ${ac_cv_lib_curses_is_term_resized+y}
26823 printf %s
"(cached) " >&6
26825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26826 /* end confdefs.h. */
26827 #include <curses.h>
26832 #ifndef is_term_resized
26833 void *x=is_term_resized
26840 if ac_fn_c_try_compile
"$LINENO"
26842 ac_cv_lib_curses_is_term_resized
=yes
26844 ac_cv_lib_curses_is_term_resized
=no
26846 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_term_resized" >&5
26850 printf "%s\n" "$ac_cv_lib_curses_is_term_resized" >&6; }
26851 if test "x$ac_cv_lib_curses_is_term_resized" = xyes
26854 printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h
26862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resize_term" >&5
26863 printf %s
"checking for curses function resize_term... " >&6; }
26864 if test ${ac_cv_lib_curses_resize_term+y}
26866 printf %s
"(cached) " >&6
26868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26869 /* end confdefs.h. */
26870 #include <curses.h>
26875 #ifndef resize_term
26876 void *x=resize_term
26883 if ac_fn_c_try_compile
"$LINENO"
26885 ac_cv_lib_curses_resize_term
=yes
26887 ac_cv_lib_curses_resize_term
=no
26889 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resize_term" >&5
26893 printf "%s\n" "$ac_cv_lib_curses_resize_term" >&6; }
26894 if test "x$ac_cv_lib_curses_resize_term" = xyes
26897 printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h
26905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resizeterm" >&5
26906 printf %s
"checking for curses function resizeterm... " >&6; }
26907 if test ${ac_cv_lib_curses_resizeterm+y}
26909 printf %s
"(cached) " >&6
26911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h. */
26913 #include <curses.h>
26926 if ac_fn_c_try_compile
"$LINENO"
26928 ac_cv_lib_curses_resizeterm
=yes
26930 ac_cv_lib_curses_resizeterm
=no
26932 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resizeterm" >&5
26936 printf "%s\n" "$ac_cv_lib_curses_resizeterm" >&6; }
26937 if test "x$ac_cv_lib_curses_resizeterm" = xyes
26940 printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h
26948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function immedok" >&5
26949 printf %s
"checking for curses function immedok... " >&6; }
26950 if test ${ac_cv_lib_curses_immedok+y}
26952 printf %s
"(cached) " >&6
26954 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26955 /* end confdefs.h. */
26956 #include <curses.h>
26969 if ac_fn_c_try_compile
"$LINENO"
26971 ac_cv_lib_curses_immedok
=yes
26973 ac_cv_lib_curses_immedok
=no
26975 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
26978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_immedok" >&5
26979 printf "%s\n" "$ac_cv_lib_curses_immedok" >&6; }
26980 if test "x$ac_cv_lib_curses_immedok" = xyes
26983 printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h
26991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function syncok" >&5
26992 printf %s
"checking for curses function syncok... " >&6; }
26993 if test ${ac_cv_lib_curses_syncok+y}
26995 printf %s
"(cached) " >&6
26997 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26998 /* end confdefs.h. */
26999 #include <curses.h>
27012 if ac_fn_c_try_compile
"$LINENO"
27014 ac_cv_lib_curses_syncok
=yes
27016 ac_cv_lib_curses_syncok
=no
27018 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_syncok" >&5
27022 printf "%s\n" "$ac_cv_lib_curses_syncok" >&6; }
27023 if test "x$ac_cv_lib_curses_syncok" = xyes
27026 printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h
27034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function wchgat" >&5
27035 printf %s
"checking for curses function wchgat... " >&6; }
27036 if test ${ac_cv_lib_curses_wchgat+y}
27038 printf %s
"(cached) " >&6
27040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27041 /* end confdefs.h. */
27042 #include <curses.h>
27055 if ac_fn_c_try_compile
"$LINENO"
27057 ac_cv_lib_curses_wchgat
=yes
27059 ac_cv_lib_curses_wchgat
=no
27061 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wchgat" >&5
27065 printf "%s\n" "$ac_cv_lib_curses_wchgat" >&6; }
27066 if test "x$ac_cv_lib_curses_wchgat" = xyes
27069 printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h
27077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function filter" >&5
27078 printf %s
"checking for curses function filter... " >&6; }
27079 if test ${ac_cv_lib_curses_filter+y}
27081 printf %s
"(cached) " >&6
27083 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h. */
27085 #include <curses.h>
27098 if ac_fn_c_try_compile
"$LINENO"
27100 ac_cv_lib_curses_filter
=yes
27102 ac_cv_lib_curses_filter
=no
27104 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_filter" >&5
27108 printf "%s\n" "$ac_cv_lib_curses_filter" >&6; }
27109 if test "x$ac_cv_lib_curses_filter" = xyes
27112 printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h
27120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function has_key" >&5
27121 printf %s
"checking for curses function has_key... " >&6; }
27122 if test ${ac_cv_lib_curses_has_key+y}
27124 printf %s
"(cached) " >&6
27126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27127 /* end confdefs.h. */
27128 #include <curses.h>
27141 if ac_fn_c_try_compile
"$LINENO"
27143 ac_cv_lib_curses_has_key
=yes
27145 ac_cv_lib_curses_has_key
=no
27147 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_has_key" >&5
27151 printf "%s\n" "$ac_cv_lib_curses_has_key" >&6; }
27152 if test "x$ac_cv_lib_curses_has_key" = xyes
27155 printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h
27163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function typeahead" >&5
27164 printf %s
"checking for curses function typeahead... " >&6; }
27165 if test ${ac_cv_lib_curses_typeahead+y}
27167 printf %s
"(cached) " >&6
27169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h. */
27171 #include <curses.h>
27184 if ac_fn_c_try_compile
"$LINENO"
27186 ac_cv_lib_curses_typeahead
=yes
27188 ac_cv_lib_curses_typeahead
=no
27190 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_typeahead" >&5
27194 printf "%s\n" "$ac_cv_lib_curses_typeahead" >&6; }
27195 if test "x$ac_cv_lib_curses_typeahead" = xyes
27198 printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h
27206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function use_env" >&5
27207 printf %s
"checking for curses function use_env... " >&6; }
27208 if test ${ac_cv_lib_curses_use_env+y}
27210 printf %s
"(cached) " >&6
27212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27213 /* end confdefs.h. */
27214 #include <curses.h>
27227 if ac_fn_c_try_compile
"$LINENO"
27229 ac_cv_lib_curses_use_env
=yes
27231 ac_cv_lib_curses_use_env
=no
27233 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_use_env" >&5
27237 printf "%s\n" "$ac_cv_lib_curses_use_env" >&6; }
27238 if test "x$ac_cv_lib_curses_use_env" = xyes
27241 printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h
27247 CPPFLAGS
=$ac_save_cppflags
27249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device files" >&5
27250 printf "%s\n" "$as_me: checking for device files" >&6;}
27252 if test "$ac_sys_system" = "Linux-android" ||
test "$ac_sys_system" = "iOS"; then
27253 ac_cv_file__dev_ptmx
=no
27254 ac_cv_file__dev_ptc
=no
27256 if test "x$cross_compiling" = xyes
; then
27257 if test "${ac_cv_file__dev_ptmx+set}" != set; then
27258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
27259 printf %s
"checking for /dev/ptmx... " >&6; }
27260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
27261 printf "%s\n" "not set" >&6; }
27262 as_fn_error $?
"set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
27264 if test "${ac_cv_file__dev_ptc+set}" != set; then
27265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
27266 printf %s
"checking for /dev/ptc... " >&6; }
27267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5
27268 printf "%s\n" "not set" >&6; }
27269 as_fn_error $?
"set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5
27273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5
27274 printf %s
"checking for /dev/ptmx... " >&6; }
27275 if test ${ac_cv_file__dev_ptmx+y}
27277 printf %s
"(cached) " >&6
27279 test "$cross_compiling" = yes &&
27280 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
27281 if test -r "/dev/ptmx"; then
27282 ac_cv_file__dev_ptmx
=yes
27284 ac_cv_file__dev_ptmx
=no
27287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5
27288 printf "%s\n" "$ac_cv_file__dev_ptmx" >&6; }
27289 if test "x$ac_cv_file__dev_ptmx" = xyes
27294 if test "x$ac_cv_file__dev_ptmx" = xyes
; then
27296 printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h
27299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5
27300 printf %s
"checking for /dev/ptc... " >&6; }
27301 if test ${ac_cv_file__dev_ptc+y}
27303 printf %s
"(cached) " >&6
27305 test "$cross_compiling" = yes &&
27306 as_fn_error $?
"cannot check for file existence when cross compiling" "$LINENO" 5
27307 if test -r "/dev/ptc"; then
27308 ac_cv_file__dev_ptc
=yes
27310 ac_cv_file__dev_ptc
=no
27313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5
27314 printf "%s\n" "$ac_cv_file__dev_ptc" >&6; }
27315 if test "x$ac_cv_file__dev_ptc" = xyes
27320 if test "x$ac_cv_file__dev_ptc" = xyes
; then
27322 printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h
27327 if test $ac_sys_system = Darwin
27329 LIBS
="$LIBS -framework CoreFoundation"
27332 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
27333 #ifdef HAVE_SYS_TYPES_H
27334 #include <sys/types.h>
27336 #ifdef HAVE_SYS_SOCKET_H
27337 #include <sys/socket.h>
27341 if test "x$ac_cv_type_socklen_t" = xyes
27344 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
27349 printf "%s\n" "#define socklen_t int" >>confdefs.h
27354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5
27355 printf %s
"checking for broken mbstowcs... " >&6; }
27356 if test ${ac_cv_broken_mbstowcs+y}
27358 printf %s
"(cached) " >&6
27360 if test "$cross_compiling" = yes
27362 ac_cv_broken_mbstowcs
=no
27364 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27365 /* end confdefs.h. */
27367 #include <stddef.h>
27369 #include <stdlib.h>
27372 const char *str = "text";
27373 len = mbstowcs(NULL, str, 0);
27378 if ac_fn_c_try_run
"$LINENO"
27380 ac_cv_broken_mbstowcs
=no
27382 ac_cv_broken_mbstowcs
=yes
27384 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27385 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5
27390 printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; }
27391 if test "$ac_cv_broken_mbstowcs" = yes
27394 printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h
27398 # Check for --with-computed-gotos
27399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5
27400 printf %s
"checking for --with-computed-gotos... " >&6; }
27402 # Check whether --with-computed-gotos was given.
27403 if test ${with_computed_gotos+y}
27405 withval
=$with_computed_gotos;
27406 if test "$withval" = yes
27409 printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h
27411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27412 printf "%s\n" "yes" >&6; }
27414 if test "$withval" = no
27417 printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h
27419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27420 printf "%s\n" "no" >&6; }
27424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5
27425 printf "%s\n" "no value specified" >&6; }
27429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5
27430 printf %s
"checking whether $CC supports computed gotos... " >&6; }
27431 if test ${ac_cv_computed_gotos+y}
27433 printf %s
"(cached) " >&6
27435 if test "$cross_compiling" = yes
27437 if test "${with_computed_gotos+set}" = set; then
27438 ac_cv_computed_gotos
="$with_computed_gotos -- configured --with(out)-computed-gotos"
27440 ac_cv_computed_gotos
=no
27443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27444 /* end confdefs.h. */
27446 int main(int argc, char **argv)
27448 static void *targets[1] = { &&LABEL1 };
27458 if ac_fn_c_try_run
"$LINENO"
27460 ac_cv_computed_gotos
=yes
27462 ac_cv_computed_gotos
=no
27464 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27465 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5
27470 printf "%s\n" "$ac_cv_computed_gotos" >&6; }
27471 case "$ac_cv_computed_gotos" in yes*)
27473 printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h
27477 case $ac_sys_system in
27480 printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h
27487 for h
in `(cd $srcdir;echo Python/thread_*.h)`
27489 THREADHEADERS
="$THREADHEADERS \$(srcdir)/$h"
27498 Modules/_decimal/libmpdec \
27501 Modules/_multiprocessing \
27504 Modules/_testcapi \
27505 Modules/_testinternalcapi \
27506 Modules/_testlimitedcapi \
27507 Modules/_xxtestfuzz \
27508 Modules/cjkcodecs \
27512 Objects/mimalloc/prim \
27518 Python/frozen_modules"
27519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5
27520 printf %s
"checking for build directories... " >&6; }
27521 for dir
in $SRCDIRS; do
27522 if test ! -d $dir; then
27526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
27527 printf "%s\n" "done" >&6; }
27529 # Availability of -O2:
27530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5
27531 printf %s
"checking for -O2... " >&6; }
27532 if test ${ac_cv_compile_o2+y}
27534 printf %s
"(cached) " >&6
27537 saved_cflags
="$CFLAGS"
27539 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27540 /* end confdefs.h. */
27550 if ac_fn_c_try_compile
"$LINENO"
27552 ac_cv_compile_o2
=yes
27554 ac_cv_compile_o2
=no
27556 rm -f core conftest.err conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27557 CFLAGS
="$saved_cflags"
27560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_compile_o2" >&5
27561 printf "%s\n" "$ac_cv_compile_o2" >&6; }
27563 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect:
27564 # http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html
27565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5
27566 printf %s
"checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; }
27567 saved_cflags
="$CFLAGS"
27568 CFLAGS
="-O2 -D_FORTIFY_SOURCE=2"
27569 if test "$ac_cv_compile_o2" = no
; then
27572 if test "$cross_compiling" = yes
27574 have_glibc_memmove_bug
=undefined
27576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27577 /* end confdefs.h. */
27580 #include <stdlib.h>
27581 #include <string.h>
27582 void foo(void *p, void *q) { memmove(p, q, 19); }
27584 char a[32] = "123456789000000000";
27586 if (strcmp(a, "123456789123456789000000000") != 0)
27589 if (strcmp(a, "123456789000000000") != 0)
27595 if ac_fn_c_try_run
"$LINENO"
27597 have_glibc_memmove_bug
=no
27599 have_glibc_memmove_bug
=yes
27601 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27602 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27605 CFLAGS
="$saved_cflags"
27606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5
27607 printf "%s\n" "$have_glibc_memmove_bug" >&6; }
27608 if test "$have_glibc_memmove_bug" = yes; then
27610 printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h
27614 if test "$ac_cv_gcc_asm_for_x87" = yes; then
27615 # Some versions of gcc miscompile inline asm:
27616 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
27617 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
27620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
27621 printf %s
"checking for gcc ipa-pure-const bug... " >&6; }
27622 saved_cflags
="$CFLAGS"
27624 if test "$cross_compiling" = yes
27626 have_ipa_pure_const_bug
=undefined
27628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h. */
27631 __attribute__((noinline)) int
27634 asm ( "movl \$6, (%1)\n\t"
27636 : "=r" (r) : "r" (p) : "memory"
27642 if ((foo(&p) ? : p) != 6)
27648 if ac_fn_c_try_run
"$LINENO"
27650 have_ipa_pure_const_bug
=no
27652 have_ipa_pure_const_bug
=yes
27654 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
27655 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
27658 CFLAGS
="$saved_cflags"
27659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5
27660 printf "%s\n" "$have_ipa_pure_const_bug" >&6; }
27661 if test "$have_ipa_pure_const_bug" = yes; then
27663 printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h
27671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5
27672 printf %s
"checking for ensurepip... " >&6; }
27674 # Check whether --with-ensurepip was given.
27675 if test ${with_ensurepip+y}
27677 withval
=$with_ensurepip;
27680 case $ac_sys_system in #(
27682 with_ensurepip
=no
;; #(
27684 with_ensurepip
=no
;; #(
27686 with_ensurepip
=no
;; #(
27688 with_ensurepip
=upgrade
27694 case $with_ensurepip in #(
27696 ENSUREPIP
=upgrade
;; #(
27698 ENSUREPIP
=install ;; #(
27702 as_fn_error $?
"--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;;
27704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5
27705 printf "%s\n" "$ENSUREPIP" >&6; }
27708 # check if the dirent structure of a d_type field and DT_UNKNOWN is defined
27709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5
27710 printf %s
"checking if the dirent structure of a d_type field... " >&6; }
27711 if test ${ac_cv_dirent_d_type+y}
27713 printf %s
"(cached) " >&6
27716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27717 /* end confdefs.h. */
27720 #include <dirent.h>
27723 struct dirent entry;
27724 return entry.d_type == DT_UNKNOWN;
27729 if ac_fn_c_try_link
"$LINENO"
27731 ac_cv_dirent_d_type
=yes
27733 ac_cv_dirent_d_type
=no
27735 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
27736 conftest
$ac_exeext conftest.
$ac_ext
27739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_type" >&5
27740 printf "%s\n" "$ac_cv_dirent_d_type" >&6; }
27742 if test "x$ac_cv_dirent_d_type" = xyes
27746 printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h
27751 # check if the Linux getrandom() syscall is available
27752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5
27753 printf %s
"checking for the Linux getrandom() syscall... " >&6; }
27754 if test ${ac_cv_getrandom_syscall+y}
27756 printf %s
"(cached) " >&6
27759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27760 /* end confdefs.h. */
27763 #include <stddef.h>
27764 #include <unistd.h>
27765 #include <sys/syscall.h>
27766 #include <linux/random.h>
27770 const size_t buflen = sizeof(buffer);
27771 const int flags = GRND_NONBLOCK;
27772 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */
27773 (void)syscall(SYS_getrandom, buffer, buflen, flags);
27779 if ac_fn_c_try_link
"$LINENO"
27781 ac_cv_getrandom_syscall
=yes
27783 ac_cv_getrandom_syscall
=no
27785 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
27786 conftest
$ac_exeext conftest.
$ac_ext
27789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getrandom_syscall" >&5
27790 printf "%s\n" "$ac_cv_getrandom_syscall" >&6; }
27792 if test "x$ac_cv_getrandom_syscall" = xyes
27796 printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h
27801 # check if the getrandom() function is available
27802 # the test was written for the Solaris function of <sys/random.h>
27803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5
27804 printf %s
"checking for the getrandom() function... " >&6; }
27805 if test ${ac_cv_func_getrandom+y}
27807 printf %s
"(cached) " >&6
27810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27811 /* end confdefs.h. */
27814 #include <stddef.h>
27815 #include <sys/random.h>
27819 const size_t buflen = sizeof(buffer);
27820 const int flags = 0;
27821 /* ignore the result, Python checks for ENOSYS at runtime */
27822 (void)getrandom(buffer, buflen, flags);
27828 if ac_fn_c_try_link
"$LINENO"
27830 ac_cv_func_getrandom
=yes
27832 ac_cv_func_getrandom
=no
27834 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
27835 conftest
$ac_exeext conftest.
$ac_ext
27838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getrandom" >&5
27839 printf "%s\n" "$ac_cv_func_getrandom" >&6; }
27841 if test "x$ac_cv_func_getrandom" = xyes
27845 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
27850 # checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c
27851 # shm_* may only be available if linking against librt
27852 POSIXSHMEM_CFLAGS
='-I$(srcdir)/Modules/_multiprocessing'
27853 save_CFLAGS
=$CFLAGS
27854 save_CPPFLAGS
=$CPPFLAGS
27855 save_LDFLAGS
=$LDFLAGS
27859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
27860 printf %s
"checking for library containing shm_open... " >&6; }
27861 if test ${ac_cv_search_shm_open+y}
27863 printf %s
"(cached) " >&6
27865 ac_func_search_save_LIBS
=$LIBS
27866 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27867 /* end confdefs.h. */
27869 /* Override any GCC internal prototype to avoid an error.
27870 Use char because int might match the return type of a GCC
27871 builtin and then its argument prototype would still apply. */
27876 return shm_open ();
27881 for ac_lib
in '' rt
27883 if test -z "$ac_lib"; then
27884 ac_res
="none required"
27887 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27889 if ac_fn_c_try_link
"$LINENO"
27891 ac_cv_search_shm_open
=$ac_res
27893 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
27895 if test ${ac_cv_search_shm_open+y}
27900 if test ${ac_cv_search_shm_open+y}
27904 ac_cv_search_shm_open
=no
27906 rm conftest.
$ac_ext
27907 LIBS
=$ac_func_search_save_LIBS
27909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
27910 printf "%s\n" "$ac_cv_search_shm_open" >&6; }
27911 ac_res
=$ac_cv_search_shm_open
27912 if test "$ac_res" != no
27914 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27918 if test "x$ac_cv_search_shm_open" = x-lrt
27920 POSIXSHMEM_LIBS
="-lrt"
27923 save_ac_includes_default
=$ac_includes_default
27924 ac_includes_default
="\
27925 ${ac_includes_default}
27926 #ifndef __cplusplus
27927 # ifdef HAVE_SYS_MMAN_H
27928 # include <sys/mman.h>
27933 for ac_func
in shm_open shm_unlink
27935 as_ac_var
=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
27936 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
27937 if eval test \"x\$
"$as_ac_var"\" = x
"yes"
27939 cat >>confdefs.h
<<_ACEOF
27940 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
27942 have_posix_shmem
=yes
27944 have_posix_shmem
=no
27948 ac_includes_default
=$save_ac_includes_default
27950 CFLAGS
=$save_CFLAGS
27951 CPPFLAGS
=$save_CPPFLAGS
27952 LDFLAGS
=$save_LDFLAGS
27957 # Check for usable OpenSSL
27961 # Check whether --with-openssl was given.
27962 if test ${with_openssl+y}
27964 withval
=$with_openssl;
27966 "" | y | ye |
yes | n | no
)
27967 as_fn_error $?
"Invalid --with-openssl value" "$LINENO" 5
27969 *) ssldirs
="$withval"
27975 # if pkg-config is installed and openssl has installed a .pc file,
27976 # then use that information and don't search ssldirs
27977 if test -n "$ac_tool_prefix"; then
27978 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27979 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
27980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27981 printf %s
"checking for $ac_word... " >&6; }
27982 if test ${ac_cv_prog_PKG_CONFIG+y}
27984 printf %s
"(cached) " >&6
27986 if test -n "$PKG_CONFIG"; then
27987 ac_cv_prog_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test.
27989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
27990 for as_dir
in $PATH
27993 case $as_dir in #(((
27996 *) as_dir
=$as_dir/ ;;
27998 for ac_exec_ext
in '' $ac_executable_extensions; do
27999 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
28000 ac_cv_prog_PKG_CONFIG
="${ac_tool_prefix}pkg-config"
28001 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28010 PKG_CONFIG
=$ac_cv_prog_PKG_CONFIG
28011 if test -n "$PKG_CONFIG"; then
28012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
28013 printf "%s\n" "$PKG_CONFIG" >&6; }
28015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28016 printf "%s\n" "no" >&6; }
28021 if test -z "$ac_cv_prog_PKG_CONFIG"; then
28022 ac_ct_PKG_CONFIG
=$PKG_CONFIG
28023 # Extract the first word of "pkg-config", so it can be a program name with args.
28024 set dummy pkg-config
; ac_word
=$2
28025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28026 printf %s
"checking for $ac_word... " >&6; }
28027 if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y}
28029 printf %s
"(cached) " >&6
28031 if test -n "$ac_ct_PKG_CONFIG"; then
28032 ac_cv_prog_ac_ct_PKG_CONFIG
="$ac_ct_PKG_CONFIG" # Let the user override the test.
28034 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
28035 for as_dir
in $PATH
28038 case $as_dir in #(((
28041 *) as_dir
=$as_dir/ ;;
28043 for ac_exec_ext
in '' $ac_executable_extensions; do
28044 if as_fn_executable_p
"$as_dir$ac_word$ac_exec_ext"; then
28045 ac_cv_prog_ac_ct_PKG_CONFIG
="pkg-config"
28046 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28055 ac_ct_PKG_CONFIG
=$ac_cv_prog_ac_ct_PKG_CONFIG
28056 if test -n "$ac_ct_PKG_CONFIG"; then
28057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5
28058 printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; }
28060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28061 printf "%s\n" "no" >&6; }
28064 if test "x$ac_ct_PKG_CONFIG" = x
; then
28067 case $cross_compiling:$ac_tool_warned in
28069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28070 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28071 ac_tool_warned
=yes ;;
28073 PKG_CONFIG
=$ac_ct_PKG_CONFIG
28076 PKG_CONFIG
="$ac_cv_prog_PKG_CONFIG"
28079 if test x
"$PKG_CONFIG" != x
""; then
28080 OPENSSL_LDFLAGS
=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null`
28081 if test $?
= 0; then
28082 OPENSSL_LIBS
=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null`
28083 OPENSSL_INCLUDES
=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null`
28088 # no such luck; use some default ssldirs
28090 ssldirs
="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr"
28098 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in
28099 # an 'openssl' subdirectory
28103 for ssldir
in $ssldirs; do
28104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5
28105 printf %s
"checking for include/openssl/ssl.h in $ssldir... " >&6; }
28106 if test -f "$ssldir/include/openssl/ssl.h"; then
28107 OPENSSL_INCLUDES
="-I$ssldir/include"
28108 OPENSSL_LDFLAGS
="-L$ssldir/lib"
28109 OPENSSL_LIBS
="-lssl -lcrypto"
28111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28112 printf "%s\n" "yes" >&6; }
28115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28116 printf "%s\n" "no" >&6; }
28120 # if the file wasn't found, well, go ahead and try the link anyway -- maybe
28121 # it will just work!
28124 # try the preprocessor and linker with our new flags,
28125 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS
28127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5
28128 printf %s
"checking whether compiling and linking against OpenSSL works... " >&6; }
28129 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \
28130 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5
28133 save_LDFLAGS
="$LDFLAGS"
28134 save_CPPFLAGS
="$CPPFLAGS"
28135 LDFLAGS
="$LDFLAGS $OPENSSL_LDFLAGS"
28136 LIBS
="$OPENSSL_LIBS $LIBS"
28137 CPPFLAGS
="$OPENSSL_INCLUDES $CPPFLAGS"
28138 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28139 /* end confdefs.h. */
28140 #include <openssl/ssl.h>
28149 if ac_fn_c_try_link
"$LINENO"
28152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28153 printf "%s\n" "yes" >&6; }
28158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28159 printf "%s\n" "no" >&6; }
28163 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
28164 conftest
$ac_exeext conftest.
$ac_ext
28165 CPPFLAGS
="$save_CPPFLAGS"
28166 LDFLAGS
="$save_LDFLAGS"
28174 # rpath to libssl and libcrypto
28175 if test "x$GNULD" = xyes
28178 rpath_arg
="-Wl,--enable-new-dtags,-rpath="
28182 if test "$ac_sys_system" = "Darwin"
28184 rpath_arg
="-Wl,-rpath,"
28186 rpath_arg
="-Wl,-rpath="
28191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5
28192 printf %s
"checking for --with-openssl-rpath... " >&6; }
28194 # Check whether --with-openssl-rpath was given.
28195 if test ${with_openssl_rpath+y}
28197 withval
=$with_openssl_rpath;
28199 with_openssl_rpath
=no
28203 case $with_openssl_rpath in #(
28207 for arg
in "$OPENSSL_LDFLAGS"; do
28210 OPENSSL_LDFLAGS_RPATH
="$OPENSSL_LDFLAGS_RPATH ${rpath_arg}$(echo $arg | cut -c3-)"
28218 OPENSSL_RPATH
= ;; #(
28220 if test -d "$with_openssl_rpath"
28223 OPENSSL_RPATH
="$with_openssl_rpath"
28224 OPENSSL_LDFLAGS_RPATH
="${rpath_arg}$with_openssl_rpath"
28227 as_fn_error $?
"--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5
28232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5
28233 printf "%s\n" "$OPENSSL_RPATH" >&6; }
28235 # This static linking is NOT OFFICIALLY SUPPORTED and not advertised.
28236 # Requires static OpenSSL build with position-independent code. Some features
28237 # like DSO engines or external OSSL providers don't work. Only tested with GCC
28238 # and clang on X86_64.
28239 if test "x$PY_UNSUPPORTED_OPENSSL_BUILD" = xstatic
28242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsupported static openssl build" >&5
28243 printf %s
"checking for unsupported static openssl build... " >&6; }
28245 for arg
in $OPENSSL_LIBS; do
28249 libname
=$
(echo $arg | cut
-c3-)
28250 new_OPENSSL_LIBS
="$new_OPENSSL_LIBS -l:lib${libname}.a -Wl,--exclude-libs,lib${libname}.a"
28253 new_OPENSSL_LIBS
="$new_OPENSSL_LIBS $arg"
28257 OPENSSL_LIBS
="$new_OPENSSL_LIBS $ZLIB_LIBS"
28258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5
28259 printf "%s\n" "$OPENSSL_LIBS" >&6; }
28264 for arg
in $OPENSSL_LIBS; do
28266 -l*ssl
*|
-Wl*ssl
*) :
28269 LIBCRYPTO_LIBS
="$LIBCRYPTO_LIBS $arg"
28274 # check if OpenSSL libraries work as expected
28275 save_CFLAGS
=$CFLAGS
28276 save_CPPFLAGS
=$CPPFLAGS
28277 save_LDFLAGS
=$LDFLAGS
28281 LIBS
="$LIBS $OPENSSL_LIBS"
28282 CFLAGS
="$CFLAGS $OPENSSL_INCLUDES"
28283 LDFLAGS
="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
28285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required ssl module APIs" >&5
28286 printf %s
"checking whether OpenSSL provides required ssl module APIs... " >&6; }
28287 if test ${ac_cv_working_openssl_ssl+y}
28289 printf %s
"(cached) " >&6
28292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28293 /* end confdefs.h. */
28295 #include <openssl/opensslv.h>
28296 #include <openssl/ssl.h>
28297 #if OPENSSL_VERSION_NUMBER < 0x10101000L
28298 #error "OpenSSL >= 1.1.1 is required"
28300 static void keylog_cb(const SSL *ssl, const char *line) {}
28306 SSL_CTX *ctx = SSL_CTX_new(TLS_client_method());
28307 SSL_CTX_set_keylog_callback(ctx, keylog_cb);
28308 SSL *ssl = SSL_new(ctx);
28309 X509_VERIFY_PARAM *param = SSL_get0_param(ssl);
28310 X509_VERIFY_PARAM_set1_host(param, "python.org", 0);
28318 if ac_fn_c_try_link
"$LINENO"
28320 ac_cv_working_openssl_ssl
=yes
28322 ac_cv_working_openssl_ssl
=no
28324 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
28325 conftest
$ac_exeext conftest.
$ac_ext
28328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_ssl" >&5
28329 printf "%s\n" "$ac_cv_working_openssl_ssl" >&6; }
28331 CFLAGS
=$save_CFLAGS
28332 CPPFLAGS
=$save_CPPFLAGS
28333 LDFLAGS
=$save_LDFLAGS
28338 save_CFLAGS
=$CFLAGS
28339 save_CPPFLAGS
=$CPPFLAGS
28340 save_LDFLAGS
=$LDFLAGS
28344 LIBS
="$LIBS $LIBCRYPTO_LIBS"
28345 CFLAGS
="$CFLAGS $OPENSSL_INCLUDES"
28346 LDFLAGS
="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH"
28348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required hashlib module APIs" >&5
28349 printf %s
"checking whether OpenSSL provides required hashlib module APIs... " >&6; }
28350 if test ${ac_cv_working_openssl_hashlib+y}
28352 printf %s
"(cached) " >&6
28355 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28356 /* end confdefs.h. */
28358 #include <openssl/opensslv.h>
28359 #include <openssl/evp.h>
28360 #if OPENSSL_VERSION_NUMBER < 0x10101000L
28361 #error "OpenSSL >= 1.1.1 is required"
28368 OBJ_nid2sn(NID_md5);
28369 OBJ_nid2sn(NID_sha1);
28370 OBJ_nid2sn(NID_sha3_512);
28371 OBJ_nid2sn(NID_blake2b512);
28372 EVP_PBE_scrypt(NULL, 0, NULL, 0, 2, 8, 1, 0, NULL, 0);
28378 if ac_fn_c_try_link
"$LINENO"
28380 ac_cv_working_openssl_hashlib
=yes
28382 ac_cv_working_openssl_hashlib
=no
28384 rm -f core conftest.err conftest.
$ac_objext conftest.beam \
28385 conftest
$ac_exeext conftest.
$ac_ext
28388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_hashlib" >&5
28389 printf "%s\n" "$ac_cv_working_openssl_hashlib" >&6; }
28391 CFLAGS
=$save_CFLAGS
28392 CPPFLAGS
=$save_CPPFLAGS
28393 LDFLAGS
=$save_LDFLAGS
28398 # ssl module default cipher suite string
28402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5
28403 printf %s
"checking for --with-ssl-default-suites... " >&6; }
28405 # Check whether --with-ssl-default-suites was given.
28406 if test ${with_ssl_default_suites+y}
28408 withval
=$with_ssl_default_suites;
28409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
28410 printf "%s\n" "$withval" >&6; }
28413 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
28417 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h
28421 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h
28423 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHER_STRING \"$withval\"" >>confdefs.h
28430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: python" >&5
28431 printf "%s\n" "python" >&6; }
28432 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h
28438 # builtin hash modules
28439 default_hashlib_hashes
="md5,sha1,sha2,sha3,blake2"
28441 printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h
28443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5
28444 printf %s
"checking for --with-builtin-hashlib-hashes... " >&6; }
28446 # Check whether --with-builtin-hashlib-hashes was given.
28447 if test ${with_builtin_hashlib_hashes+y}
28449 withval
=$with_builtin_hashlib_hashes;
28450 case $with_builtin_hashlib_hashes in #(
28452 with_builtin_hashlib_hashes
=$default_hashlib_hashes ;; #(
28454 with_builtin_hashlib_hashes
=""
28461 with_builtin_hashlib_hashes
=$default_hashlib_hashes
28465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_builtin_hashlib_hashes" >&5
28466 printf "%s\n" "$with_builtin_hashlib_hashes" >&6; }
28467 printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$with_builtin_hashlib_hashes\"" >>confdefs.h
28472 for builtin_hash
in $with_builtin_hashlib_hashes; do
28473 case $builtin_hash in #(
28475 with_builtin_md5
=yes ;; #(
28477 with_builtin_sha1
=yes ;; #(
28479 with_builtin_sha2
=yes ;; #(
28481 with_builtin_sha3
=yes ;; #(
28483 with_builtin_blake2
=yes
28491 if test "x$with_builtin_blake2" = xyes
28496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libb2" >&5
28497 printf %s
"checking for libb2... " >&6; }
28499 if test -n "$LIBB2_CFLAGS"; then
28500 pkg_cv_LIBB2_CFLAGS
="$LIBB2_CFLAGS"
28501 elif test -n "$PKG_CONFIG"; then
28502 if test -n "$PKG_CONFIG" && \
28503 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libb2\""; } >&5
28504 ($PKG_CONFIG --exists --print-errors "libb2") 2>&5
28506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28507 test $ac_status = 0; }; then
28508 pkg_cv_LIBB2_CFLAGS
=`$PKG_CONFIG --cflags "libb2" 2>/dev/null`
28509 test "x$?" != "x0" && pkg_failed
=yes
28516 if test -n "$LIBB2_LIBS"; then
28517 pkg_cv_LIBB2_LIBS
="$LIBB2_LIBS"
28518 elif test -n "$PKG_CONFIG"; then
28519 if test -n "$PKG_CONFIG" && \
28520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libb2\""; } >&5
28521 ($PKG_CONFIG --exists --print-errors "libb2") 2>&5
28523 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28524 test $ac_status = 0; }; then
28525 pkg_cv_LIBB2_LIBS
=`$PKG_CONFIG --libs "libb2" 2>/dev/null`
28526 test "x$?" != "x0" && pkg_failed
=yes
28536 if test $pkg_failed = yes; then
28537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28538 printf "%s\n" "no" >&6; }
28540 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28541 _pkg_short_errors_supported
=yes
28543 _pkg_short_errors_supported
=no
28545 if test $_pkg_short_errors_supported = yes; then
28546 LIBB2_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libb2" 2>&1`
28548 LIBB2_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libb2" 2>&1`
28550 # Put the nasty error message in config.log where it belongs
28551 echo "$LIBB2_PKG_ERRORS" >&5
28554 elif test $pkg_failed = untried
; then
28555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28556 printf "%s\n" "no" >&6; }
28559 LIBB2_CFLAGS
=$pkg_cv_LIBB2_CFLAGS
28560 LIBB2_LIBS
=$pkg_cv_LIBB2_LIBS
28561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28562 printf "%s\n" "yes" >&6; }
28566 printf "%s\n" "#define HAVE_LIBB2 1" >>confdefs.h
28573 # Check whether to disable test modules. Once set, setup.py will not build
28574 # test extension modules and "make install" will not install test suites.
28575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-test-modules" >&5
28576 printf %s
"checking for --disable-test-modules... " >&6; }
28577 # Check whether --enable-test-modules was given.
28578 if test ${enable_test_modules+y}
28580 enableval
=$enable_test_modules;
28581 if test "x$enable_test_modules" = xyes
28590 case $ac_sys_system/$ac_sys_emscripten_target in #(
28591 Emscripten
/browser
*) :
28592 TEST_MODULES
=no
;; #(
28600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEST_MODULES" >&5
28601 printf "%s\n" "$TEST_MODULES" >&6; }
28604 # gh-109054: Check if -latomic is needed to get <pyatomic.h> atomic functions.
28605 # On Linux aarch64, GCC may require programs and libraries to be linked
28606 # explicitly to libatomic. Call _Py_atomic_or_uint64() which may require
28607 # libatomic __atomic_fetch_or_8(), or not, depending on the C compiler and the
28610 # gh-112779: On RISC-V, GCC 12 and earlier require libatomic support for 1-byte
28611 # and 2-byte operations, but not for 8-byte operations.
28613 # Avoid #include <Python.h> or #include <pyport.h>. The <Python.h> header
28614 # requires <pyconfig.h> header which is only written below by AC_OUTPUT below.
28615 # If the check is done after AC_OUTPUT, modifying LIBS has no effect
28616 # anymore. <pyport.h> cannot be included alone, it's designed to be included
28617 # by <Python.h>: it expects other includes and macros to be defined.
28618 save_CPPFLAGS
=$CPPFLAGS
28619 CPPFLAGS
="${BASECPPFLAGS} -I. -I${srcdir}/Include ${CPPFLAGS}"
28621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libatomic is needed by <pyatomic.h>" >&5
28622 printf %s
"checking whether libatomic is needed by <pyatomic.h>... " >&6; }
28623 if test ${ac_cv_libatomic_needed+y}
28625 printf %s
"(cached) " >&6
28627 if test "$cross_compiling" = yes
28629 ac_cv_libatomic_needed
=no
28631 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28632 /* end confdefs.h. */
28634 // pyatomic.h needs uint64_t and Py_ssize_t types
28635 #include <stdint.h> // int64_t, intptr_t
28636 #ifdef HAVE_SYS_TYPES_H
28637 # include <sys/types.h> // ssize_t
28639 // Code adapted from Include/pyport.h
28641 typedef ssize_t Py_ssize_t;
28642 #elif SIZEOF_VOID_P == SIZEOF_SIZE_T
28643 typedef intptr_t Py_ssize_t;
28645 # error "unable to define Py_ssize_t"
28648 #include "pyatomic.h"
28653 _Py_atomic_store_uint64(&value, 2);
28654 if (_Py_atomic_or_uint64(&value, 8) != 2) {
28657 if (_Py_atomic_load_uint64(&value) != 10) {
28660 uint8_t byte = 0xb8;
28661 if (_Py_atomic_or_uint8(&byte, 0x2d) != 0xb8) {
28664 if (_Py_atomic_load_uint8(&byte) != 0xbd) {
28667 return 0; // all good
28671 if ac_fn_c_try_run
"$LINENO"
28673 ac_cv_libatomic_needed
=no
28675 ac_cv_libatomic_needed
=yes
28677 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28678 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libatomic_needed" >&5
28683 printf "%s\n" "$ac_cv_libatomic_needed" >&6; }
28685 if test "x$ac_cv_libatomic_needed" = xyes
28687 LIBS
="${LIBS} -latomic"
28688 LIBATOMIC
=${LIBATOMIC-"-latomic"}
28690 CPPFLAGS
=$save_CPPFLAGS
28696 # stdlib not available
28697 case $ac_sys_system in #(
28701 py_cv_module__scproxy
=n
/a
28706 py_cv_module__scproxy
=n
/a
28707 py_cv_module_termios
=n
/a
28708 py_cv_module_grp
=n
/a
28716 py_cv_module__curses
=n
/a
28717 py_cv_module__curses_panel
=n
/a
28718 py_cv_module__gdbm
=n
/a
28719 py_cv_module__multiprocessing
=n
/a
28720 py_cv_module__posixshmem
=n
/a
28721 py_cv_module__posixsubprocess
=n
/a
28722 py_cv_module__scproxy
=n
/a
28723 py_cv_module__tkinter
=n
/a
28724 py_cv_module_grp
=n
/a
28725 py_cv_module_nis
=n
/a
28726 py_cv_module_readline
=n
/a
28727 py_cv_module_pwd
=n
/a
28728 py_cv_module_spwd
=n
/a
28729 py_cv_module_syslog
=n
/a
28736 py_cv_module__scproxy
=n
/a
28741 py_cv_module__scproxy
=n
/a
28746 py_cv_module__scproxy
=n
/a
28752 py_cv_module__curses
=n
/a
28753 py_cv_module__curses_panel
=n
/a
28754 py_cv_module__dbm
=n
/a
28755 py_cv_module__gdbm
=n
/a
28756 py_cv_module__multiprocessing
=n
/a
28757 py_cv_module__posixshmem
=n
/a
28758 py_cv_module__posixsubprocess
=n
/a
28759 py_cv_module__scproxy
=n
/a
28760 py_cv_module__tkinter
=n
/a
28761 py_cv_module__interpreters
=n
/a
28762 py_cv_module__interpchannels
=n
/a
28763 py_cv_module__interpqueues
=n
/a
28764 py_cv_module_grp
=n
/a
28765 py_cv_module_pwd
=n
/a
28766 py_cv_module_resource
=n
/a
28767 py_cv_module_syslog
=n
/a
28770 case $ac_sys_system/$ac_sys_emscripten_target in #(
28771 Emscripten
/browser
*) :
28775 py_cv_module_fcntl
=n
/a
28776 py_cv_module_readline
=n
/a
28777 py_cv_module_termios
=n
/a
28781 Emscripten
/node
*) :
28787 py_cv_module__ctypes_test
=n
/a
28788 py_cv_module__testexternalinspection
=n
/a
28789 py_cv_module__testimportmultiple
=n
/a
28790 py_cv_module__testmultiphase
=n
/a
28791 py_cv_module__testsinglephase
=n
/a
28792 py_cv_module_fcntl
=n
/a
28793 py_cv_module_mmap
=n
/a
28794 py_cv_module_termios
=n
/a
28795 py_cv_module_xxlimited
=n
/a
28796 py_cv_module_xxlimited_35
=n
/a
28808 py_cv_module__scproxy
=n
/a
28814 case $host_cpu in #(
28816 MODULE_BUILDTYPE
=static
;; #(
28818 MODULE_BUILDTYPE
=${MODULE_BUILDTYPE:-shared}
28831 if test "$py_cv_module__io" != "n/a"
28833 py_cv_module__io
=yes
28835 if test "$py_cv_module__io" = yes; then
28837 MODULE__IO_FALSE
='#'
28839 MODULE__IO_TRUE
='#'
28843 as_fn_append MODULE_BLOCK
"MODULE__IO_STATE=$py_cv_module__io$as_nl"
28844 if test "x$py_cv_module__io" = xyes
28847 as_fn_append MODULE_BLOCK
"MODULE__IO_CFLAGS=-I\$(srcdir)/Modules/_io$as_nl"
28853 if test "$py_cv_module_time" != "n/a"
28855 py_cv_module_time
=yes
28857 if test "$py_cv_module_time" = yes; then
28859 MODULE_TIME_FALSE
='#'
28861 MODULE_TIME_TRUE
='#'
28865 as_fn_append MODULE_BLOCK
"MODULE_TIME_STATE=$py_cv_module_time$as_nl"
28866 if test "x$py_cv_module_time" = xyes
28870 as_fn_append MODULE_BLOCK
"MODULE_TIME_LDFLAGS=$TIMEMODULE_LIB$as_nl"
28876 if test "$py_cv_module_array" != "n/a"
28878 py_cv_module_array
=yes
28880 if test "$py_cv_module_array" = yes; then
28882 MODULE_ARRAY_FALSE
='#'
28884 MODULE_ARRAY_TRUE
='#'
28885 MODULE_ARRAY_FALSE
=
28888 as_fn_append MODULE_BLOCK
"MODULE_ARRAY_STATE=$py_cv_module_array$as_nl"
28889 if test "x$py_cv_module_array" = xyes
28898 if test "$py_cv_module__asyncio" != "n/a"
28900 py_cv_module__asyncio
=yes
28902 if test "$py_cv_module__asyncio" = yes; then
28903 MODULE__ASYNCIO_TRUE
=
28904 MODULE__ASYNCIO_FALSE
='#'
28906 MODULE__ASYNCIO_TRUE
='#'
28907 MODULE__ASYNCIO_FALSE
=
28910 as_fn_append MODULE_BLOCK
"MODULE__ASYNCIO_STATE=$py_cv_module__asyncio$as_nl"
28911 if test "x$py_cv_module__asyncio" = xyes
28920 if test "$py_cv_module__bisect" != "n/a"
28922 py_cv_module__bisect
=yes
28924 if test "$py_cv_module__bisect" = yes; then
28925 MODULE__BISECT_TRUE
=
28926 MODULE__BISECT_FALSE
='#'
28928 MODULE__BISECT_TRUE
='#'
28929 MODULE__BISECT_FALSE
=
28932 as_fn_append MODULE_BLOCK
"MODULE__BISECT_STATE=$py_cv_module__bisect$as_nl"
28933 if test "x$py_cv_module__bisect" = xyes
28942 if test "$py_cv_module__contextvars" != "n/a"
28944 py_cv_module__contextvars
=yes
28946 if test "$py_cv_module__contextvars" = yes; then
28947 MODULE__CONTEXTVARS_TRUE
=
28948 MODULE__CONTEXTVARS_FALSE
='#'
28950 MODULE__CONTEXTVARS_TRUE
='#'
28951 MODULE__CONTEXTVARS_FALSE
=
28954 as_fn_append MODULE_BLOCK
"MODULE__CONTEXTVARS_STATE=$py_cv_module__contextvars$as_nl"
28955 if test "x$py_cv_module__contextvars" = xyes
28964 if test "$py_cv_module__csv" != "n/a"
28966 py_cv_module__csv
=yes
28968 if test "$py_cv_module__csv" = yes; then
28970 MODULE__CSV_FALSE
='#'
28972 MODULE__CSV_TRUE
='#'
28976 as_fn_append MODULE_BLOCK
"MODULE__CSV_STATE=$py_cv_module__csv$as_nl"
28977 if test "x$py_cv_module__csv" = xyes
28986 if test "$py_cv_module__heapq" != "n/a"
28988 py_cv_module__heapq
=yes
28990 if test "$py_cv_module__heapq" = yes; then
28991 MODULE__HEAPQ_TRUE
=
28992 MODULE__HEAPQ_FALSE
='#'
28994 MODULE__HEAPQ_TRUE
='#'
28995 MODULE__HEAPQ_FALSE
=
28998 as_fn_append MODULE_BLOCK
"MODULE__HEAPQ_STATE=$py_cv_module__heapq$as_nl"
28999 if test "x$py_cv_module__heapq" = xyes
29008 if test "$py_cv_module__json" != "n/a"
29010 py_cv_module__json
=yes
29012 if test "$py_cv_module__json" = yes; then
29014 MODULE__JSON_FALSE
='#'
29016 MODULE__JSON_TRUE
='#'
29017 MODULE__JSON_FALSE
=
29020 as_fn_append MODULE_BLOCK
"MODULE__JSON_STATE=$py_cv_module__json$as_nl"
29021 if test "x$py_cv_module__json" = xyes
29030 if test "$py_cv_module__lsprof" != "n/a"
29032 py_cv_module__lsprof
=yes
29034 if test "$py_cv_module__lsprof" = yes; then
29035 MODULE__LSPROF_TRUE
=
29036 MODULE__LSPROF_FALSE
='#'
29038 MODULE__LSPROF_TRUE
='#'
29039 MODULE__LSPROF_FALSE
=
29042 as_fn_append MODULE_BLOCK
"MODULE__LSPROF_STATE=$py_cv_module__lsprof$as_nl"
29043 if test "x$py_cv_module__lsprof" = xyes
29052 if test "$py_cv_module__opcode" != "n/a"
29054 py_cv_module__opcode
=yes
29056 if test "$py_cv_module__opcode" = yes; then
29057 MODULE__OPCODE_TRUE
=
29058 MODULE__OPCODE_FALSE
='#'
29060 MODULE__OPCODE_TRUE
='#'
29061 MODULE__OPCODE_FALSE
=
29064 as_fn_append MODULE_BLOCK
"MODULE__OPCODE_STATE=$py_cv_module__opcode$as_nl"
29065 if test "x$py_cv_module__opcode" = xyes
29074 if test "$py_cv_module__pickle" != "n/a"
29076 py_cv_module__pickle
=yes
29078 if test "$py_cv_module__pickle" = yes; then
29079 MODULE__PICKLE_TRUE
=
29080 MODULE__PICKLE_FALSE
='#'
29082 MODULE__PICKLE_TRUE
='#'
29083 MODULE__PICKLE_FALSE
=
29086 as_fn_append MODULE_BLOCK
"MODULE__PICKLE_STATE=$py_cv_module__pickle$as_nl"
29087 if test "x$py_cv_module__pickle" = xyes
29096 if test "$py_cv_module__posixsubprocess" != "n/a"
29098 py_cv_module__posixsubprocess
=yes
29100 if test "$py_cv_module__posixsubprocess" = yes; then
29101 MODULE__POSIXSUBPROCESS_TRUE
=
29102 MODULE__POSIXSUBPROCESS_FALSE
='#'
29104 MODULE__POSIXSUBPROCESS_TRUE
='#'
29105 MODULE__POSIXSUBPROCESS_FALSE
=
29108 as_fn_append MODULE_BLOCK
"MODULE__POSIXSUBPROCESS_STATE=$py_cv_module__posixsubprocess$as_nl"
29109 if test "x$py_cv_module__posixsubprocess" = xyes
29118 if test "$py_cv_module__queue" != "n/a"
29120 py_cv_module__queue
=yes
29122 if test "$py_cv_module__queue" = yes; then
29123 MODULE__QUEUE_TRUE
=
29124 MODULE__QUEUE_FALSE
='#'
29126 MODULE__QUEUE_TRUE
='#'
29127 MODULE__QUEUE_FALSE
=
29130 as_fn_append MODULE_BLOCK
"MODULE__QUEUE_STATE=$py_cv_module__queue$as_nl"
29131 if test "x$py_cv_module__queue" = xyes
29140 if test "$py_cv_module__random" != "n/a"
29142 py_cv_module__random
=yes
29144 if test "$py_cv_module__random" = yes; then
29145 MODULE__RANDOM_TRUE
=
29146 MODULE__RANDOM_FALSE
='#'
29148 MODULE__RANDOM_TRUE
='#'
29149 MODULE__RANDOM_FALSE
=
29152 as_fn_append MODULE_BLOCK
"MODULE__RANDOM_STATE=$py_cv_module__random$as_nl"
29153 if test "x$py_cv_module__random" = xyes
29162 if test "$py_cv_module_select" != "n/a"
29164 py_cv_module_select
=yes
29166 if test "$py_cv_module_select" = yes; then
29167 MODULE_SELECT_TRUE
=
29168 MODULE_SELECT_FALSE
='#'
29170 MODULE_SELECT_TRUE
='#'
29171 MODULE_SELECT_FALSE
=
29174 as_fn_append MODULE_BLOCK
"MODULE_SELECT_STATE=$py_cv_module_select$as_nl"
29175 if test "x$py_cv_module_select" = xyes
29184 if test "$py_cv_module__struct" != "n/a"
29186 py_cv_module__struct
=yes
29188 if test "$py_cv_module__struct" = yes; then
29189 MODULE__STRUCT_TRUE
=
29190 MODULE__STRUCT_FALSE
='#'
29192 MODULE__STRUCT_TRUE
='#'
29193 MODULE__STRUCT_FALSE
=
29196 as_fn_append MODULE_BLOCK
"MODULE__STRUCT_STATE=$py_cv_module__struct$as_nl"
29197 if test "x$py_cv_module__struct" = xyes
29206 if test "$py_cv_module__typing" != "n/a"
29208 py_cv_module__typing
=yes
29210 if test "$py_cv_module__typing" = yes; then
29211 MODULE__TYPING_TRUE
=
29212 MODULE__TYPING_FALSE
='#'
29214 MODULE__TYPING_TRUE
='#'
29215 MODULE__TYPING_FALSE
=
29218 as_fn_append MODULE_BLOCK
"MODULE__TYPING_STATE=$py_cv_module__typing$as_nl"
29219 if test "x$py_cv_module__typing" = xyes
29228 if test "$py_cv_module__interpreters" != "n/a"
29230 py_cv_module__interpreters
=yes
29232 if test "$py_cv_module__interpreters" = yes; then
29233 MODULE__INTERPRETERS_TRUE
=
29234 MODULE__INTERPRETERS_FALSE
='#'
29236 MODULE__INTERPRETERS_TRUE
='#'
29237 MODULE__INTERPRETERS_FALSE
=
29240 as_fn_append MODULE_BLOCK
"MODULE__INTERPRETERS_STATE=$py_cv_module__interpreters$as_nl"
29241 if test "x$py_cv_module__interpreters" = xyes
29250 if test "$py_cv_module__interpchannels" != "n/a"
29252 py_cv_module__interpchannels
=yes
29254 if test "$py_cv_module__interpchannels" = yes; then
29255 MODULE__INTERPCHANNELS_TRUE
=
29256 MODULE__INTERPCHANNELS_FALSE
='#'
29258 MODULE__INTERPCHANNELS_TRUE
='#'
29259 MODULE__INTERPCHANNELS_FALSE
=
29262 as_fn_append MODULE_BLOCK
"MODULE__INTERPCHANNELS_STATE=$py_cv_module__interpchannels$as_nl"
29263 if test "x$py_cv_module__interpchannels" = xyes
29272 if test "$py_cv_module__interpqueues" != "n/a"
29274 py_cv_module__interpqueues
=yes
29276 if test "$py_cv_module__interpqueues" = yes; then
29277 MODULE__INTERPQUEUES_TRUE
=
29278 MODULE__INTERPQUEUES_FALSE
='#'
29280 MODULE__INTERPQUEUES_TRUE
='#'
29281 MODULE__INTERPQUEUES_FALSE
=
29284 as_fn_append MODULE_BLOCK
"MODULE__INTERPQUEUES_STATE=$py_cv_module__interpqueues$as_nl"
29285 if test "x$py_cv_module__interpqueues" = xyes
29294 if test "$py_cv_module__zoneinfo" != "n/a"
29296 py_cv_module__zoneinfo
=yes
29298 if test "$py_cv_module__zoneinfo" = yes; then
29299 MODULE__ZONEINFO_TRUE
=
29300 MODULE__ZONEINFO_FALSE
='#'
29302 MODULE__ZONEINFO_TRUE
='#'
29303 MODULE__ZONEINFO_FALSE
=
29306 as_fn_append MODULE_BLOCK
"MODULE__ZONEINFO_STATE=$py_cv_module__zoneinfo$as_nl"
29307 if test "x$py_cv_module__zoneinfo" = xyes
29317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _multiprocessing" >&5
29318 printf %s
"checking for stdlib extension module _multiprocessing... " >&6; }
29319 if test "$py_cv_module__multiprocessing" != "n/a"
29324 if test "$ac_cv_func_sem_unlink" = "yes"
29326 py_cv_module__multiprocessing
=yes
29328 py_cv_module__multiprocessing
=missing
29331 py_cv_module__multiprocessing
=disabled
29335 as_fn_append MODULE_BLOCK
"MODULE__MULTIPROCESSING_STATE=$py_cv_module__multiprocessing$as_nl"
29336 if test "x$py_cv_module__multiprocessing" = xyes
29339 as_fn_append MODULE_BLOCK
"MODULE__MULTIPROCESSING_CFLAGS=-I\$(srcdir)/Modules/_multiprocessing$as_nl"
29343 if test "$py_cv_module__multiprocessing" = yes; then
29344 MODULE__MULTIPROCESSING_TRUE
=
29345 MODULE__MULTIPROCESSING_FALSE
='#'
29347 MODULE__MULTIPROCESSING_TRUE
='#'
29348 MODULE__MULTIPROCESSING_FALSE
=
29351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__multiprocessing" >&5
29352 printf "%s\n" "$py_cv_module__multiprocessing" >&6; }
29355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _posixshmem" >&5
29356 printf %s
"checking for stdlib extension module _posixshmem... " >&6; }
29357 if test "$py_cv_module__posixshmem" != "n/a"
29362 if test "$have_posix_shmem" = "yes"
29364 py_cv_module__posixshmem
=yes
29366 py_cv_module__posixshmem
=missing
29369 py_cv_module__posixshmem
=disabled
29373 as_fn_append MODULE_BLOCK
"MODULE__POSIXSHMEM_STATE=$py_cv_module__posixshmem$as_nl"
29374 if test "x$py_cv_module__posixshmem" = xyes
29377 as_fn_append MODULE_BLOCK
"MODULE__POSIXSHMEM_CFLAGS=$POSIXSHMEM_CFLAGS$as_nl"
29378 as_fn_append MODULE_BLOCK
"MODULE__POSIXSHMEM_LDFLAGS=$POSIXSHMEM_LIBS$as_nl"
29381 if test "$py_cv_module__posixshmem" = yes; then
29382 MODULE__POSIXSHMEM_TRUE
=
29383 MODULE__POSIXSHMEM_FALSE
='#'
29385 MODULE__POSIXSHMEM_TRUE
='#'
29386 MODULE__POSIXSHMEM_FALSE
=
29389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__posixshmem" >&5
29390 printf "%s\n" "$py_cv_module__posixshmem" >&6; }
29394 if test "$py_cv_module__statistics" != "n/a"
29396 py_cv_module__statistics
=yes
29398 if test "$py_cv_module__statistics" = yes; then
29399 MODULE__STATISTICS_TRUE
=
29400 MODULE__STATISTICS_FALSE
='#'
29402 MODULE__STATISTICS_TRUE
='#'
29403 MODULE__STATISTICS_FALSE
=
29406 as_fn_append MODULE_BLOCK
"MODULE__STATISTICS_STATE=$py_cv_module__statistics$as_nl"
29407 if test "x$py_cv_module__statistics" = xyes
29411 as_fn_append MODULE_BLOCK
"MODULE__STATISTICS_LDFLAGS=$LIBM$as_nl"
29416 if test "$py_cv_module_cmath" != "n/a"
29418 py_cv_module_cmath
=yes
29420 if test "$py_cv_module_cmath" = yes; then
29422 MODULE_CMATH_FALSE
='#'
29424 MODULE_CMATH_TRUE
='#'
29425 MODULE_CMATH_FALSE
=
29428 as_fn_append MODULE_BLOCK
"MODULE_CMATH_STATE=$py_cv_module_cmath$as_nl"
29429 if test "x$py_cv_module_cmath" = xyes
29433 as_fn_append MODULE_BLOCK
"MODULE_CMATH_LDFLAGS=$LIBM$as_nl"
29438 if test "$py_cv_module_math" != "n/a"
29440 py_cv_module_math
=yes
29442 if test "$py_cv_module_math" = yes; then
29444 MODULE_MATH_FALSE
='#'
29446 MODULE_MATH_TRUE
='#'
29450 as_fn_append MODULE_BLOCK
"MODULE_MATH_STATE=$py_cv_module_math$as_nl"
29451 if test "x$py_cv_module_math" = xyes
29455 as_fn_append MODULE_BLOCK
"MODULE_MATH_LDFLAGS=$LIBM$as_nl"
29461 if test "$py_cv_module__datetime" != "n/a"
29463 py_cv_module__datetime
=yes
29465 if test "$py_cv_module__datetime" = yes; then
29466 MODULE__DATETIME_TRUE
=
29467 MODULE__DATETIME_FALSE
='#'
29469 MODULE__DATETIME_TRUE
='#'
29470 MODULE__DATETIME_FALSE
=
29473 as_fn_append MODULE_BLOCK
"MODULE__DATETIME_STATE=$py_cv_module__datetime$as_nl"
29474 if test "x$py_cv_module__datetime" = xyes
29478 as_fn_append MODULE_BLOCK
"MODULE__DATETIME_LDFLAGS=$TIMEMODULE_LIB $LIBM$as_nl"
29484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module fcntl" >&5
29485 printf %s
"checking for stdlib extension module fcntl... " >&6; }
29486 if test "$py_cv_module_fcntl" != "n/a"
29491 if test "$ac_cv_header_sys_ioctl_h" = "yes" -a "$ac_cv_header_fcntl_h" = "yes"
29493 py_cv_module_fcntl
=yes
29495 py_cv_module_fcntl
=missing
29498 py_cv_module_fcntl
=disabled
29502 as_fn_append MODULE_BLOCK
"MODULE_FCNTL_STATE=$py_cv_module_fcntl$as_nl"
29503 if test "x$py_cv_module_fcntl" = xyes
29507 as_fn_append MODULE_BLOCK
"MODULE_FCNTL_LDFLAGS=$FCNTL_LIBS$as_nl"
29510 if test "$py_cv_module_fcntl" = yes; then
29512 MODULE_FCNTL_FALSE
='#'
29514 MODULE_FCNTL_TRUE
='#'
29515 MODULE_FCNTL_FALSE
=
29518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_fcntl" >&5
29519 printf "%s\n" "$py_cv_module_fcntl" >&6; }
29522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module mmap" >&5
29523 printf %s
"checking for stdlib extension module mmap... " >&6; }
29524 if test "$py_cv_module_mmap" != "n/a"
29529 if test "$ac_cv_header_sys_mman_h" = "yes" -a "$ac_cv_header_sys_stat_h" = "yes"
29531 py_cv_module_mmap
=yes
29533 py_cv_module_mmap
=missing
29536 py_cv_module_mmap
=disabled
29540 as_fn_append MODULE_BLOCK
"MODULE_MMAP_STATE=$py_cv_module_mmap$as_nl"
29541 if test "x$py_cv_module_mmap" = xyes
29548 if test "$py_cv_module_mmap" = yes; then
29550 MODULE_MMAP_FALSE
='#'
29552 MODULE_MMAP_TRUE
='#'
29556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_mmap" >&5
29557 printf "%s\n" "$py_cv_module_mmap" >&6; }
29560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _socket" >&5
29561 printf %s
"checking for stdlib extension module _socket... " >&6; }
29562 if test "$py_cv_module__socket" != "n/a"
29567 if test "$ac_cv_header_sys_socket_h" = "yes" -a "$ac_cv_header_sys_types_h" = "yes" -a "$ac_cv_header_netinet_in_h" = "yes"
29569 py_cv_module__socket
=yes
29571 py_cv_module__socket
=missing
29574 py_cv_module__socket
=disabled
29578 as_fn_append MODULE_BLOCK
"MODULE__SOCKET_STATE=$py_cv_module__socket$as_nl"
29579 if test "x$py_cv_module__socket" = xyes
29586 if test "$py_cv_module__socket" = yes; then
29587 MODULE__SOCKET_TRUE
=
29588 MODULE__SOCKET_FALSE
='#'
29590 MODULE__SOCKET_TRUE
='#'
29591 MODULE__SOCKET_FALSE
=
29594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__socket" >&5
29595 printf "%s\n" "$py_cv_module__socket" >&6; }
29599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module grp" >&5
29600 printf %s
"checking for stdlib extension module grp... " >&6; }
29601 if test "$py_cv_module_grp" != "n/a"
29606 if test "$ac_cv_func_getgrent" = "yes" &&
29607 { test "$ac_cv_func_getgrgid" = "yes" ||
test "$ac_cv_func_getgrgid_r" = "yes"; }
29609 py_cv_module_grp
=yes
29611 py_cv_module_grp
=missing
29614 py_cv_module_grp
=disabled
29618 as_fn_append MODULE_BLOCK
"MODULE_GRP_STATE=$py_cv_module_grp$as_nl"
29619 if test "x$py_cv_module_grp" = xyes
29626 if test "$py_cv_module_grp" = yes; then
29628 MODULE_GRP_FALSE
='#'
29630 MODULE_GRP_TRUE
='#'
29634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_grp" >&5
29635 printf "%s\n" "$py_cv_module_grp" >&6; }
29638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pwd" >&5
29639 printf %s
"checking for stdlib extension module pwd... " >&6; }
29640 if test "$py_cv_module_pwd" != "n/a"
29645 if test "$ac_cv_func_getpwuid" = yes -o "$ac_cv_func_getpwuid_r" = yes
29647 py_cv_module_pwd
=yes
29649 py_cv_module_pwd
=missing
29652 py_cv_module_pwd
=disabled
29656 as_fn_append MODULE_BLOCK
"MODULE_PWD_STATE=$py_cv_module_pwd$as_nl"
29657 if test "x$py_cv_module_pwd" = xyes
29664 if test "$py_cv_module_pwd" = yes; then
29666 MODULE_PWD_FALSE
='#'
29668 MODULE_PWD_TRUE
='#'
29672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pwd" >&5
29673 printf "%s\n" "$py_cv_module_pwd" >&6; }
29676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module resource" >&5
29677 printf %s
"checking for stdlib extension module resource... " >&6; }
29678 if test "$py_cv_module_resource" != "n/a"
29683 if test "$ac_cv_header_sys_resource_h" = yes
29685 py_cv_module_resource
=yes
29687 py_cv_module_resource
=missing
29690 py_cv_module_resource
=disabled
29694 as_fn_append MODULE_BLOCK
"MODULE_RESOURCE_STATE=$py_cv_module_resource$as_nl"
29695 if test "x$py_cv_module_resource" = xyes
29702 if test "$py_cv_module_resource" = yes; then
29703 MODULE_RESOURCE_TRUE
=
29704 MODULE_RESOURCE_FALSE
='#'
29706 MODULE_RESOURCE_TRUE
='#'
29707 MODULE_RESOURCE_FALSE
=
29710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_resource" >&5
29711 printf "%s\n" "$py_cv_module_resource" >&6; }
29714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _scproxy" >&5
29715 printf %s
"checking for stdlib extension module _scproxy... " >&6; }
29716 if test "$py_cv_module__scproxy" != "n/a"
29719 if test "$ac_sys_system" = "Darwin"
29723 py_cv_module__scproxy
=yes
29725 py_cv_module__scproxy
=missing
29728 py_cv_module__scproxy
=disabled
29732 as_fn_append MODULE_BLOCK
"MODULE__SCPROXY_STATE=$py_cv_module__scproxy$as_nl"
29733 if test "x$py_cv_module__scproxy" = xyes
29737 as_fn_append MODULE_BLOCK
"MODULE__SCPROXY_LDFLAGS=-framework SystemConfiguration -framework CoreFoundation$as_nl"
29740 if test "$py_cv_module__scproxy" = yes; then
29741 MODULE__SCPROXY_TRUE
=
29742 MODULE__SCPROXY_FALSE
='#'
29744 MODULE__SCPROXY_TRUE
='#'
29745 MODULE__SCPROXY_FALSE
=
29748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__scproxy" >&5
29749 printf "%s\n" "$py_cv_module__scproxy" >&6; }
29752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module syslog" >&5
29753 printf %s
"checking for stdlib extension module syslog... " >&6; }
29754 if test "$py_cv_module_syslog" != "n/a"
29759 if test "$ac_cv_header_syslog_h" = yes
29761 py_cv_module_syslog
=yes
29763 py_cv_module_syslog
=missing
29766 py_cv_module_syslog
=disabled
29770 as_fn_append MODULE_BLOCK
"MODULE_SYSLOG_STATE=$py_cv_module_syslog$as_nl"
29771 if test "x$py_cv_module_syslog" = xyes
29778 if test "$py_cv_module_syslog" = yes; then
29779 MODULE_SYSLOG_TRUE
=
29780 MODULE_SYSLOG_FALSE
='#'
29782 MODULE_SYSLOG_TRUE
='#'
29783 MODULE_SYSLOG_FALSE
=
29786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_syslog" >&5
29787 printf "%s\n" "$py_cv_module_syslog" >&6; }
29790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module termios" >&5
29791 printf %s
"checking for stdlib extension module termios... " >&6; }
29792 if test "$py_cv_module_termios" != "n/a"
29797 if test "$ac_cv_header_termios_h" = yes
29799 py_cv_module_termios
=yes
29801 py_cv_module_termios
=missing
29804 py_cv_module_termios
=disabled
29808 as_fn_append MODULE_BLOCK
"MODULE_TERMIOS_STATE=$py_cv_module_termios$as_nl"
29809 if test "x$py_cv_module_termios" = xyes
29816 if test "$py_cv_module_termios" = yes; then
29817 MODULE_TERMIOS_TRUE
=
29818 MODULE_TERMIOS_FALSE
='#'
29820 MODULE_TERMIOS_TRUE
='#'
29821 MODULE_TERMIOS_FALSE
=
29824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_termios" >&5
29825 printf "%s\n" "$py_cv_module_termios" >&6; }
29829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pyexpat" >&5
29830 printf %s
"checking for stdlib extension module pyexpat... " >&6; }
29831 if test "$py_cv_module_pyexpat" != "n/a"
29836 if test "$ac_cv_header_sys_time_h" = "yes"
29838 py_cv_module_pyexpat
=yes
29840 py_cv_module_pyexpat
=missing
29843 py_cv_module_pyexpat
=disabled
29847 as_fn_append MODULE_BLOCK
"MODULE_PYEXPAT_STATE=$py_cv_module_pyexpat$as_nl"
29848 if test "x$py_cv_module_pyexpat" = xyes
29851 as_fn_append MODULE_BLOCK
"MODULE_PYEXPAT_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
29852 as_fn_append MODULE_BLOCK
"MODULE_PYEXPAT_LDFLAGS=$LIBEXPAT_LDFLAGS$as_nl"
29855 if test "$py_cv_module_pyexpat" = yes; then
29856 MODULE_PYEXPAT_TRUE
=
29857 MODULE_PYEXPAT_FALSE
='#'
29859 MODULE_PYEXPAT_TRUE
='#'
29860 MODULE_PYEXPAT_FALSE
=
29863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pyexpat" >&5
29864 printf "%s\n" "$py_cv_module_pyexpat" >&6; }
29867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _elementtree" >&5
29868 printf %s
"checking for stdlib extension module _elementtree... " >&6; }
29869 if test "$py_cv_module__elementtree" != "n/a"
29876 py_cv_module__elementtree
=yes
29878 py_cv_module__elementtree
=missing
29881 py_cv_module__elementtree
=disabled
29885 as_fn_append MODULE_BLOCK
"MODULE__ELEMENTTREE_STATE=$py_cv_module__elementtree$as_nl"
29886 if test "x$py_cv_module__elementtree" = xyes
29889 as_fn_append MODULE_BLOCK
"MODULE__ELEMENTTREE_CFLAGS=$LIBEXPAT_CFLAGS$as_nl"
29893 if test "$py_cv_module__elementtree" = yes; then
29894 MODULE__ELEMENTTREE_TRUE
=
29895 MODULE__ELEMENTTREE_FALSE
='#'
29897 MODULE__ELEMENTTREE_TRUE
='#'
29898 MODULE__ELEMENTTREE_FALSE
=
29901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__elementtree" >&5
29902 printf "%s\n" "$py_cv_module__elementtree" >&6; }
29905 if test "$py_cv_module__codecs_cn" != "n/a"
29907 py_cv_module__codecs_cn
=yes
29909 if test "$py_cv_module__codecs_cn" = yes; then
29910 MODULE__CODECS_CN_TRUE
=
29911 MODULE__CODECS_CN_FALSE
='#'
29913 MODULE__CODECS_CN_TRUE
='#'
29914 MODULE__CODECS_CN_FALSE
=
29917 as_fn_append MODULE_BLOCK
"MODULE__CODECS_CN_STATE=$py_cv_module__codecs_cn$as_nl"
29918 if test "x$py_cv_module__codecs_cn" = xyes
29927 if test "$py_cv_module__codecs_hk" != "n/a"
29929 py_cv_module__codecs_hk
=yes
29931 if test "$py_cv_module__codecs_hk" = yes; then
29932 MODULE__CODECS_HK_TRUE
=
29933 MODULE__CODECS_HK_FALSE
='#'
29935 MODULE__CODECS_HK_TRUE
='#'
29936 MODULE__CODECS_HK_FALSE
=
29939 as_fn_append MODULE_BLOCK
"MODULE__CODECS_HK_STATE=$py_cv_module__codecs_hk$as_nl"
29940 if test "x$py_cv_module__codecs_hk" = xyes
29949 if test "$py_cv_module__codecs_iso2022" != "n/a"
29951 py_cv_module__codecs_iso2022
=yes
29953 if test "$py_cv_module__codecs_iso2022" = yes; then
29954 MODULE__CODECS_ISO2022_TRUE
=
29955 MODULE__CODECS_ISO2022_FALSE
='#'
29957 MODULE__CODECS_ISO2022_TRUE
='#'
29958 MODULE__CODECS_ISO2022_FALSE
=
29961 as_fn_append MODULE_BLOCK
"MODULE__CODECS_ISO2022_STATE=$py_cv_module__codecs_iso2022$as_nl"
29962 if test "x$py_cv_module__codecs_iso2022" = xyes
29971 if test "$py_cv_module__codecs_jp" != "n/a"
29973 py_cv_module__codecs_jp
=yes
29975 if test "$py_cv_module__codecs_jp" = yes; then
29976 MODULE__CODECS_JP_TRUE
=
29977 MODULE__CODECS_JP_FALSE
='#'
29979 MODULE__CODECS_JP_TRUE
='#'
29980 MODULE__CODECS_JP_FALSE
=
29983 as_fn_append MODULE_BLOCK
"MODULE__CODECS_JP_STATE=$py_cv_module__codecs_jp$as_nl"
29984 if test "x$py_cv_module__codecs_jp" = xyes
29993 if test "$py_cv_module__codecs_kr" != "n/a"
29995 py_cv_module__codecs_kr
=yes
29997 if test "$py_cv_module__codecs_kr" = yes; then
29998 MODULE__CODECS_KR_TRUE
=
29999 MODULE__CODECS_KR_FALSE
='#'
30001 MODULE__CODECS_KR_TRUE
='#'
30002 MODULE__CODECS_KR_FALSE
=
30005 as_fn_append MODULE_BLOCK
"MODULE__CODECS_KR_STATE=$py_cv_module__codecs_kr$as_nl"
30006 if test "x$py_cv_module__codecs_kr" = xyes
30015 if test "$py_cv_module__codecs_tw" != "n/a"
30017 py_cv_module__codecs_tw
=yes
30019 if test "$py_cv_module__codecs_tw" = yes; then
30020 MODULE__CODECS_TW_TRUE
=
30021 MODULE__CODECS_TW_FALSE
='#'
30023 MODULE__CODECS_TW_TRUE
='#'
30024 MODULE__CODECS_TW_FALSE
=
30027 as_fn_append MODULE_BLOCK
"MODULE__CODECS_TW_STATE=$py_cv_module__codecs_tw$as_nl"
30028 if test "x$py_cv_module__codecs_tw" = xyes
30037 if test "$py_cv_module__multibytecodec" != "n/a"
30039 py_cv_module__multibytecodec
=yes
30041 if test "$py_cv_module__multibytecodec" = yes; then
30042 MODULE__MULTIBYTECODEC_TRUE
=
30043 MODULE__MULTIBYTECODEC_FALSE
='#'
30045 MODULE__MULTIBYTECODEC_TRUE
='#'
30046 MODULE__MULTIBYTECODEC_FALSE
=
30049 as_fn_append MODULE_BLOCK
"MODULE__MULTIBYTECODEC_STATE=$py_cv_module__multibytecodec$as_nl"
30050 if test "x$py_cv_module__multibytecodec" = xyes
30059 if test "$py_cv_module_unicodedata" != "n/a"
30061 py_cv_module_unicodedata
=yes
30063 if test "$py_cv_module_unicodedata" = yes; then
30064 MODULE_UNICODEDATA_TRUE
=
30065 MODULE_UNICODEDATA_FALSE
='#'
30067 MODULE_UNICODEDATA_TRUE
='#'
30068 MODULE_UNICODEDATA_FALSE
=
30071 as_fn_append MODULE_BLOCK
"MODULE_UNICODEDATA_STATE=$py_cv_module_unicodedata$as_nl"
30072 if test "x$py_cv_module_unicodedata" = xyes
30082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _md5" >&5
30083 printf %s
"checking for stdlib extension module _md5... " >&6; }
30084 if test "$py_cv_module__md5" != "n/a"
30087 if test "$with_builtin_md5" = yes
30091 py_cv_module__md5
=yes
30093 py_cv_module__md5
=missing
30096 py_cv_module__md5
=disabled
30100 as_fn_append MODULE_BLOCK
"MODULE__MD5_STATE=$py_cv_module__md5$as_nl"
30101 if test "x$py_cv_module__md5" = xyes
30104 as_fn_append MODULE_BLOCK
"MODULE__MD5_CFLAGS=-I\$(srcdir)/Modules/_hacl/include -I\$(srcdir)/Modules/_hacl/internal -D_BSD_SOURCE -D_DEFAULT_SOURCE$as_nl"
30108 if test "$py_cv_module__md5" = yes; then
30110 MODULE__MD5_FALSE
='#'
30112 MODULE__MD5_TRUE
='#'
30116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__md5" >&5
30117 printf "%s\n" "$py_cv_module__md5" >&6; }
30120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha1" >&5
30121 printf %s
"checking for stdlib extension module _sha1... " >&6; }
30122 if test "$py_cv_module__sha1" != "n/a"
30125 if test "$with_builtin_sha1" = yes
30129 py_cv_module__sha1
=yes
30131 py_cv_module__sha1
=missing
30134 py_cv_module__sha1
=disabled
30138 as_fn_append MODULE_BLOCK
"MODULE__SHA1_STATE=$py_cv_module__sha1$as_nl"
30139 if test "x$py_cv_module__sha1" = xyes
30142 as_fn_append MODULE_BLOCK
"MODULE__SHA1_CFLAGS=-I\$(srcdir)/Modules/_hacl/include -I\$(srcdir)/Modules/_hacl/internal -D_BSD_SOURCE -D_DEFAULT_SOURCE$as_nl"
30146 if test "$py_cv_module__sha1" = yes; then
30148 MODULE__SHA1_FALSE
='#'
30150 MODULE__SHA1_TRUE
='#'
30151 MODULE__SHA1_FALSE
=
30154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha1" >&5
30155 printf "%s\n" "$py_cv_module__sha1" >&6; }
30158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha2" >&5
30159 printf %s
"checking for stdlib extension module _sha2... " >&6; }
30160 if test "$py_cv_module__sha2" != "n/a"
30163 if test "$with_builtin_sha2" = yes
30167 py_cv_module__sha2
=yes
30169 py_cv_module__sha2
=missing
30172 py_cv_module__sha2
=disabled
30176 as_fn_append MODULE_BLOCK
"MODULE__SHA2_STATE=$py_cv_module__sha2$as_nl"
30177 if test "x$py_cv_module__sha2" = xyes
30180 as_fn_append MODULE_BLOCK
"MODULE__SHA2_CFLAGS=-I\$(srcdir)/Modules/_hacl/include -I\$(srcdir)/Modules/_hacl/internal -D_BSD_SOURCE -D_DEFAULT_SOURCE$as_nl"
30184 if test "$py_cv_module__sha2" = yes; then
30186 MODULE__SHA2_FALSE
='#'
30188 MODULE__SHA2_TRUE
='#'
30189 MODULE__SHA2_FALSE
=
30192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha2" >&5
30193 printf "%s\n" "$py_cv_module__sha2" >&6; }
30196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha3" >&5
30197 printf %s
"checking for stdlib extension module _sha3... " >&6; }
30198 if test "$py_cv_module__sha3" != "n/a"
30201 if test "$with_builtin_sha3" = yes
30205 py_cv_module__sha3
=yes
30207 py_cv_module__sha3
=missing
30210 py_cv_module__sha3
=disabled
30214 as_fn_append MODULE_BLOCK
"MODULE__SHA3_STATE=$py_cv_module__sha3$as_nl"
30215 if test "x$py_cv_module__sha3" = xyes
30222 if test "$py_cv_module__sha3" = yes; then
30224 MODULE__SHA3_FALSE
='#'
30226 MODULE__SHA3_TRUE
='#'
30227 MODULE__SHA3_FALSE
=
30230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha3" >&5
30231 printf "%s\n" "$py_cv_module__sha3" >&6; }
30234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _blake2" >&5
30235 printf %s
"checking for stdlib extension module _blake2... " >&6; }
30236 if test "$py_cv_module__blake2" != "n/a"
30239 if test "$with_builtin_blake2" = yes
30243 py_cv_module__blake2
=yes
30245 py_cv_module__blake2
=missing
30248 py_cv_module__blake2
=disabled
30252 as_fn_append MODULE_BLOCK
"MODULE__BLAKE2_STATE=$py_cv_module__blake2$as_nl"
30253 if test "x$py_cv_module__blake2" = xyes
30256 as_fn_append MODULE_BLOCK
"MODULE__BLAKE2_CFLAGS=$LIBB2_CFLAGS$as_nl"
30257 as_fn_append MODULE_BLOCK
"MODULE__BLAKE2_LDFLAGS=$LIBB2_LIBS$as_nl"
30260 if test "$py_cv_module__blake2" = yes; then
30261 MODULE__BLAKE2_TRUE
=
30262 MODULE__BLAKE2_FALSE
='#'
30264 MODULE__BLAKE2_TRUE
='#'
30265 MODULE__BLAKE2_FALSE
=
30268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__blake2" >&5
30269 printf "%s\n" "$py_cv_module__blake2" >&6; }
30273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes" >&5
30274 printf %s
"checking for stdlib extension module _ctypes... " >&6; }
30275 if test "$py_cv_module__ctypes" != "n/a"
30280 if test "$have_libffi" = yes
30282 py_cv_module__ctypes
=yes
30284 py_cv_module__ctypes
=missing
30287 py_cv_module__ctypes
=disabled
30291 as_fn_append MODULE_BLOCK
"MODULE__CTYPES_STATE=$py_cv_module__ctypes$as_nl"
30292 if test "x$py_cv_module__ctypes" = xyes
30295 as_fn_append MODULE_BLOCK
"MODULE__CTYPES_CFLAGS=$NO_STRICT_OVERFLOW_CFLAGS $LIBFFI_CFLAGS$as_nl"
30296 as_fn_append MODULE_BLOCK
"MODULE__CTYPES_LDFLAGS=$LIBFFI_LIBS$as_nl"
30299 if test "$py_cv_module__ctypes" = yes; then
30300 MODULE__CTYPES_TRUE
=
30301 MODULE__CTYPES_FALSE
='#'
30303 MODULE__CTYPES_TRUE
='#'
30304 MODULE__CTYPES_FALSE
=
30307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes" >&5
30308 printf "%s\n" "$py_cv_module__ctypes" >&6; }
30311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses" >&5
30312 printf %s
"checking for stdlib extension module _curses... " >&6; }
30313 if test "$py_cv_module__curses" != "n/a"
30318 if test "$have_curses" != "no"
30320 py_cv_module__curses
=yes
30322 py_cv_module__curses
=missing
30325 py_cv_module__curses
=disabled
30329 as_fn_append MODULE_BLOCK
"MODULE__CURSES_STATE=$py_cv_module__curses$as_nl"
30330 if test "x$py_cv_module__curses" = xyes
30333 as_fn_append MODULE_BLOCK
"MODULE__CURSES_CFLAGS=$CURSES_CFLAGS$as_nl"
30334 as_fn_append MODULE_BLOCK
"MODULE__CURSES_LDFLAGS=$CURSES_LIBS
30338 if test "$py_cv_module__curses" = yes; then
30339 MODULE__CURSES_TRUE
=
30340 MODULE__CURSES_FALSE
='#'
30342 MODULE__CURSES_TRUE
='#'
30343 MODULE__CURSES_FALSE
=
30346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses" >&5
30347 printf "%s\n" "$py_cv_module__curses" >&6; }
30350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses_panel" >&5
30351 printf %s
"checking for stdlib extension module _curses_panel... " >&6; }
30352 if test "$py_cv_module__curses_panel" != "n/a"
30357 if test "$have_panel" != "no"
30359 py_cv_module__curses_panel
=yes
30361 py_cv_module__curses_panel
=missing
30364 py_cv_module__curses_panel
=disabled
30368 as_fn_append MODULE_BLOCK
"MODULE__CURSES_PANEL_STATE=$py_cv_module__curses_panel$as_nl"
30369 if test "x$py_cv_module__curses_panel" = xyes
30372 as_fn_append MODULE_BLOCK
"MODULE__CURSES_PANEL_CFLAGS=$PANEL_CFLAGS $CURSES_CFLAGS$as_nl"
30373 as_fn_append MODULE_BLOCK
"MODULE__CURSES_PANEL_LDFLAGS=$PANEL_LIBS $CURSES_LIBS
30377 if test "$py_cv_module__curses_panel" = yes; then
30378 MODULE__CURSES_PANEL_TRUE
=
30379 MODULE__CURSES_PANEL_FALSE
='#'
30381 MODULE__CURSES_PANEL_TRUE
='#'
30382 MODULE__CURSES_PANEL_FALSE
=
30385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses_panel" >&5
30386 printf "%s\n" "$py_cv_module__curses_panel" >&6; }
30389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _decimal" >&5
30390 printf %s
"checking for stdlib extension module _decimal... " >&6; }
30391 if test "$py_cv_module__decimal" != "n/a"
30398 py_cv_module__decimal
=yes
30400 py_cv_module__decimal
=missing
30403 py_cv_module__decimal
=disabled
30407 as_fn_append MODULE_BLOCK
"MODULE__DECIMAL_STATE=$py_cv_module__decimal$as_nl"
30408 if test "x$py_cv_module__decimal" = xyes
30411 as_fn_append MODULE_BLOCK
"MODULE__DECIMAL_CFLAGS=$LIBMPDEC_CFLAGS$as_nl"
30412 as_fn_append MODULE_BLOCK
"MODULE__DECIMAL_LDFLAGS=$LIBMPDEC_LIBS$as_nl"
30415 if test "$py_cv_module__decimal" = yes; then
30416 MODULE__DECIMAL_TRUE
=
30417 MODULE__DECIMAL_FALSE
='#'
30419 MODULE__DECIMAL_TRUE
='#'
30420 MODULE__DECIMAL_FALSE
=
30423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__decimal" >&5
30424 printf "%s\n" "$py_cv_module__decimal" >&6; }
30427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _dbm" >&5
30428 printf %s
"checking for stdlib extension module _dbm... " >&6; }
30429 if test "$py_cv_module__dbm" != "n/a"
30432 if test -n "$with_dbmliborder"
30434 if test "$have_dbm" != "no"
30436 py_cv_module__dbm
=yes
30438 py_cv_module__dbm
=missing
30441 py_cv_module__dbm
=disabled
30445 as_fn_append MODULE_BLOCK
"MODULE__DBM_STATE=$py_cv_module__dbm$as_nl"
30446 if test "x$py_cv_module__dbm" = xyes
30449 as_fn_append MODULE_BLOCK
"MODULE__DBM_CFLAGS=$DBM_CFLAGS$as_nl"
30450 as_fn_append MODULE_BLOCK
"MODULE__DBM_LDFLAGS=$DBM_LIBS$as_nl"
30453 if test "$py_cv_module__dbm" = yes; then
30455 MODULE__DBM_FALSE
='#'
30457 MODULE__DBM_TRUE
='#'
30461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__dbm" >&5
30462 printf "%s\n" "$py_cv_module__dbm" >&6; }
30465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _gdbm" >&5
30466 printf %s
"checking for stdlib extension module _gdbm... " >&6; }
30467 if test "$py_cv_module__gdbm" != "n/a"
30470 if test "$have_gdbm_dbmliborder" = yes
30472 if test "$have_gdbm" = yes
30474 py_cv_module__gdbm
=yes
30476 py_cv_module__gdbm
=missing
30479 py_cv_module__gdbm
=disabled
30483 as_fn_append MODULE_BLOCK
"MODULE__GDBM_STATE=$py_cv_module__gdbm$as_nl"
30484 if test "x$py_cv_module__gdbm" = xyes
30487 as_fn_append MODULE_BLOCK
"MODULE__GDBM_CFLAGS=$GDBM_CFLAGS$as_nl"
30488 as_fn_append MODULE_BLOCK
"MODULE__GDBM_LDFLAGS=$GDBM_LIBS$as_nl"
30491 if test "$py_cv_module__gdbm" = yes; then
30493 MODULE__GDBM_FALSE
='#'
30495 MODULE__GDBM_TRUE
='#'
30496 MODULE__GDBM_FALSE
=
30499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__gdbm" >&5
30500 printf "%s\n" "$py_cv_module__gdbm" >&6; }
30503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module readline" >&5
30504 printf %s
"checking for stdlib extension module readline... " >&6; }
30505 if test "$py_cv_module_readline" != "n/a"
30510 if test "$with_readline" != "no"
30512 py_cv_module_readline
=yes
30514 py_cv_module_readline
=missing
30517 py_cv_module_readline
=disabled
30521 as_fn_append MODULE_BLOCK
"MODULE_READLINE_STATE=$py_cv_module_readline$as_nl"
30522 if test "x$py_cv_module_readline" = xyes
30525 as_fn_append MODULE_BLOCK
"MODULE_READLINE_CFLAGS=$READLINE_CFLAGS$as_nl"
30526 as_fn_append MODULE_BLOCK
"MODULE_READLINE_LDFLAGS=$READLINE_LIBS$as_nl"
30529 if test "$py_cv_module_readline" = yes; then
30530 MODULE_READLINE_TRUE
=
30531 MODULE_READLINE_FALSE
='#'
30533 MODULE_READLINE_TRUE
='#'
30534 MODULE_READLINE_FALSE
=
30537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_readline" >&5
30538 printf "%s\n" "$py_cv_module_readline" >&6; }
30541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sqlite3" >&5
30542 printf %s
"checking for stdlib extension module _sqlite3... " >&6; }
30543 if test "$py_cv_module__sqlite3" != "n/a"
30546 if test "$have_sqlite3" = "yes"
30548 if test "$have_supported_sqlite3" = "yes"
30550 py_cv_module__sqlite3
=yes
30552 py_cv_module__sqlite3
=missing
30555 py_cv_module__sqlite3
=disabled
30559 as_fn_append MODULE_BLOCK
"MODULE__SQLITE3_STATE=$py_cv_module__sqlite3$as_nl"
30560 if test "x$py_cv_module__sqlite3" = xyes
30563 as_fn_append MODULE_BLOCK
"MODULE__SQLITE3_CFLAGS=$LIBSQLITE3_CFLAGS$as_nl"
30564 as_fn_append MODULE_BLOCK
"MODULE__SQLITE3_LDFLAGS=$LIBSQLITE3_LIBS$as_nl"
30567 if test "$py_cv_module__sqlite3" = yes; then
30568 MODULE__SQLITE3_TRUE
=
30569 MODULE__SQLITE3_FALSE
='#'
30571 MODULE__SQLITE3_TRUE
='#'
30572 MODULE__SQLITE3_FALSE
=
30575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sqlite3" >&5
30576 printf "%s\n" "$py_cv_module__sqlite3" >&6; }
30579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _tkinter" >&5
30580 printf %s
"checking for stdlib extension module _tkinter... " >&6; }
30581 if test "$py_cv_module__tkinter" != "n/a"
30586 if test "$have_tcltk" = "yes"
30588 py_cv_module__tkinter
=yes
30590 py_cv_module__tkinter
=missing
30593 py_cv_module__tkinter
=disabled
30597 as_fn_append MODULE_BLOCK
"MODULE__TKINTER_STATE=$py_cv_module__tkinter$as_nl"
30598 if test "x$py_cv_module__tkinter" = xyes
30601 as_fn_append MODULE_BLOCK
"MODULE__TKINTER_CFLAGS=$TCLTK_CFLAGS$as_nl"
30602 as_fn_append MODULE_BLOCK
"MODULE__TKINTER_LDFLAGS=$TCLTK_LIBS$as_nl"
30605 if test "$py_cv_module__tkinter" = yes; then
30606 MODULE__TKINTER_TRUE
=
30607 MODULE__TKINTER_FALSE
='#'
30609 MODULE__TKINTER_TRUE
='#'
30610 MODULE__TKINTER_FALSE
=
30613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__tkinter" >&5
30614 printf "%s\n" "$py_cv_module__tkinter" >&6; }
30617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _uuid" >&5
30618 printf %s
"checking for stdlib extension module _uuid... " >&6; }
30619 if test "$py_cv_module__uuid" != "n/a"
30624 if test "$have_uuid" = "yes"
30626 py_cv_module__uuid
=yes
30628 py_cv_module__uuid
=missing
30631 py_cv_module__uuid
=disabled
30635 as_fn_append MODULE_BLOCK
"MODULE__UUID_STATE=$py_cv_module__uuid$as_nl"
30636 if test "x$py_cv_module__uuid" = xyes
30639 as_fn_append MODULE_BLOCK
"MODULE__UUID_CFLAGS=$LIBUUID_CFLAGS$as_nl"
30640 as_fn_append MODULE_BLOCK
"MODULE__UUID_LDFLAGS=$LIBUUID_LIBS$as_nl"
30643 if test "$py_cv_module__uuid" = yes; then
30645 MODULE__UUID_FALSE
='#'
30647 MODULE__UUID_TRUE
='#'
30648 MODULE__UUID_FALSE
=
30651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__uuid" >&5
30652 printf "%s\n" "$py_cv_module__uuid" >&6; }
30656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module zlib" >&5
30657 printf %s
"checking for stdlib extension module zlib... " >&6; }
30658 if test "$py_cv_module_zlib" != "n/a"
30663 if test "$have_zlib" = yes
30665 py_cv_module_zlib
=yes
30667 py_cv_module_zlib
=missing
30670 py_cv_module_zlib
=disabled
30674 as_fn_append MODULE_BLOCK
"MODULE_ZLIB_STATE=$py_cv_module_zlib$as_nl"
30675 if test "x$py_cv_module_zlib" = xyes
30678 as_fn_append MODULE_BLOCK
"MODULE_ZLIB_CFLAGS=$ZLIB_CFLAGS$as_nl"
30679 as_fn_append MODULE_BLOCK
"MODULE_ZLIB_LDFLAGS=$ZLIB_LIBS$as_nl"
30682 if test "$py_cv_module_zlib" = yes; then
30684 MODULE_ZLIB_FALSE
='#'
30686 MODULE_ZLIB_TRUE
='#'
30690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_zlib" >&5
30691 printf "%s\n" "$py_cv_module_zlib" >&6; }
30694 if test "$py_cv_module_binascii" != "n/a"
30696 py_cv_module_binascii
=yes
30698 if test "$py_cv_module_binascii" = yes; then
30699 MODULE_BINASCII_TRUE
=
30700 MODULE_BINASCII_FALSE
='#'
30702 MODULE_BINASCII_TRUE
='#'
30703 MODULE_BINASCII_FALSE
=
30706 as_fn_append MODULE_BLOCK
"MODULE_BINASCII_STATE=$py_cv_module_binascii$as_nl"
30707 if test "x$py_cv_module_binascii" = xyes
30710 as_fn_append MODULE_BLOCK
"MODULE_BINASCII_CFLAGS=$BINASCII_CFLAGS$as_nl"
30711 as_fn_append MODULE_BLOCK
"MODULE_BINASCII_LDFLAGS=$BINASCII_LIBS$as_nl"
30716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _bz2" >&5
30717 printf %s
"checking for stdlib extension module _bz2... " >&6; }
30718 if test "$py_cv_module__bz2" != "n/a"
30723 if test "$have_bzip2" = yes
30725 py_cv_module__bz2
=yes
30727 py_cv_module__bz2
=missing
30730 py_cv_module__bz2
=disabled
30734 as_fn_append MODULE_BLOCK
"MODULE__BZ2_STATE=$py_cv_module__bz2$as_nl"
30735 if test "x$py_cv_module__bz2" = xyes
30738 as_fn_append MODULE_BLOCK
"MODULE__BZ2_CFLAGS=$BZIP2_CFLAGS$as_nl"
30739 as_fn_append MODULE_BLOCK
"MODULE__BZ2_LDFLAGS=$BZIP2_LIBS$as_nl"
30742 if test "$py_cv_module__bz2" = yes; then
30744 MODULE__BZ2_FALSE
='#'
30746 MODULE__BZ2_TRUE
='#'
30750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__bz2" >&5
30751 printf "%s\n" "$py_cv_module__bz2" >&6; }
30754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _lzma" >&5
30755 printf %s
"checking for stdlib extension module _lzma... " >&6; }
30756 if test "$py_cv_module__lzma" != "n/a"
30761 if test "$have_liblzma" = yes
30763 py_cv_module__lzma
=yes
30765 py_cv_module__lzma
=missing
30768 py_cv_module__lzma
=disabled
30772 as_fn_append MODULE_BLOCK
"MODULE__LZMA_STATE=$py_cv_module__lzma$as_nl"
30773 if test "x$py_cv_module__lzma" = xyes
30776 as_fn_append MODULE_BLOCK
"MODULE__LZMA_CFLAGS=$LIBLZMA_CFLAGS$as_nl"
30777 as_fn_append MODULE_BLOCK
"MODULE__LZMA_LDFLAGS=$LIBLZMA_LIBS$as_nl"
30780 if test "$py_cv_module__lzma" = yes; then
30782 MODULE__LZMA_FALSE
='#'
30784 MODULE__LZMA_TRUE
='#'
30785 MODULE__LZMA_FALSE
=
30788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__lzma" >&5
30789 printf "%s\n" "$py_cv_module__lzma" >&6; }
30793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ssl" >&5
30794 printf %s
"checking for stdlib extension module _ssl... " >&6; }
30795 if test "$py_cv_module__ssl" != "n/a"
30800 if test "$ac_cv_working_openssl_ssl" = yes
30802 py_cv_module__ssl
=yes
30804 py_cv_module__ssl
=missing
30807 py_cv_module__ssl
=disabled
30811 as_fn_append MODULE_BLOCK
"MODULE__SSL_STATE=$py_cv_module__ssl$as_nl"
30812 if test "x$py_cv_module__ssl" = xyes
30815 as_fn_append MODULE_BLOCK
"MODULE__SSL_CFLAGS=$OPENSSL_INCLUDES$as_nl"
30816 as_fn_append MODULE_BLOCK
"MODULE__SSL_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $OPENSSL_LIBS$as_nl"
30819 if test "$py_cv_module__ssl" = yes; then
30821 MODULE__SSL_FALSE
='#'
30823 MODULE__SSL_TRUE
='#'
30827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ssl" >&5
30828 printf "%s\n" "$py_cv_module__ssl" >&6; }
30831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _hashlib" >&5
30832 printf %s
"checking for stdlib extension module _hashlib... " >&6; }
30833 if test "$py_cv_module__hashlib" != "n/a"
30838 if test "$ac_cv_working_openssl_hashlib" = yes
30840 py_cv_module__hashlib
=yes
30842 py_cv_module__hashlib
=missing
30845 py_cv_module__hashlib
=disabled
30849 as_fn_append MODULE_BLOCK
"MODULE__HASHLIB_STATE=$py_cv_module__hashlib$as_nl"
30850 if test "x$py_cv_module__hashlib" = xyes
30853 as_fn_append MODULE_BLOCK
"MODULE__HASHLIB_CFLAGS=$OPENSSL_INCLUDES$as_nl"
30854 as_fn_append MODULE_BLOCK
"MODULE__HASHLIB_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $LIBCRYPTO_LIBS$as_nl"
30857 if test "$py_cv_module__hashlib" = yes; then
30858 MODULE__HASHLIB_TRUE
=
30859 MODULE__HASHLIB_FALSE
='#'
30861 MODULE__HASHLIB_TRUE
='#'
30862 MODULE__HASHLIB_FALSE
=
30865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__hashlib" >&5
30866 printf "%s\n" "$py_cv_module__hashlib" >&6; }
30870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testcapi" >&5
30871 printf %s
"checking for stdlib extension module _testcapi... " >&6; }
30872 if test "$py_cv_module__testcapi" != "n/a"
30875 if test "$TEST_MODULES" = yes
30879 py_cv_module__testcapi
=yes
30881 py_cv_module__testcapi
=missing
30884 py_cv_module__testcapi
=disabled
30888 as_fn_append MODULE_BLOCK
"MODULE__TESTCAPI_STATE=$py_cv_module__testcapi$as_nl"
30889 if test "x$py_cv_module__testcapi" = xyes
30893 as_fn_append MODULE_BLOCK
"MODULE__TESTCAPI_LDFLAGS=$LIBATOMIC$as_nl"
30896 if test "$py_cv_module__testcapi" = yes; then
30897 MODULE__TESTCAPI_TRUE
=
30898 MODULE__TESTCAPI_FALSE
='#'
30900 MODULE__TESTCAPI_TRUE
='#'
30901 MODULE__TESTCAPI_FALSE
=
30904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testcapi" >&5
30905 printf "%s\n" "$py_cv_module__testcapi" >&6; }
30908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic" >&5
30909 printf %s
"checking for stdlib extension module _testclinic... " >&6; }
30910 if test "$py_cv_module__testclinic" != "n/a"
30913 if test "$TEST_MODULES" = yes
30917 py_cv_module__testclinic
=yes
30919 py_cv_module__testclinic
=missing
30922 py_cv_module__testclinic
=disabled
30926 as_fn_append MODULE_BLOCK
"MODULE__TESTCLINIC_STATE=$py_cv_module__testclinic$as_nl"
30927 if test "x$py_cv_module__testclinic" = xyes
30934 if test "$py_cv_module__testclinic" = yes; then
30935 MODULE__TESTCLINIC_TRUE
=
30936 MODULE__TESTCLINIC_FALSE
='#'
30938 MODULE__TESTCLINIC_TRUE
='#'
30939 MODULE__TESTCLINIC_FALSE
=
30942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic" >&5
30943 printf "%s\n" "$py_cv_module__testclinic" >&6; }
30946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic_limited" >&5
30947 printf %s
"checking for stdlib extension module _testclinic_limited... " >&6; }
30948 if test "$py_cv_module__testclinic_limited" != "n/a"
30951 if test "$TEST_MODULES" = yes
30955 py_cv_module__testclinic_limited
=yes
30957 py_cv_module__testclinic_limited
=missing
30960 py_cv_module__testclinic_limited
=disabled
30964 as_fn_append MODULE_BLOCK
"MODULE__TESTCLINIC_LIMITED_STATE=$py_cv_module__testclinic_limited$as_nl"
30965 if test "x$py_cv_module__testclinic_limited" = xyes
30972 if test "$py_cv_module__testclinic_limited" = yes; then
30973 MODULE__TESTCLINIC_LIMITED_TRUE
=
30974 MODULE__TESTCLINIC_LIMITED_FALSE
='#'
30976 MODULE__TESTCLINIC_LIMITED_TRUE
='#'
30977 MODULE__TESTCLINIC_LIMITED_FALSE
=
30980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic_limited" >&5
30981 printf "%s\n" "$py_cv_module__testclinic_limited" >&6; }
30984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testlimitedcapi" >&5
30985 printf %s
"checking for stdlib extension module _testlimitedcapi... " >&6; }
30986 if test "$py_cv_module__testlimitedcapi" != "n/a"
30989 if test "$TEST_MODULES" = yes
30993 py_cv_module__testlimitedcapi
=yes
30995 py_cv_module__testlimitedcapi
=missing
30998 py_cv_module__testlimitedcapi
=disabled
31002 as_fn_append MODULE_BLOCK
"MODULE__TESTLIMITEDCAPI_STATE=$py_cv_module__testlimitedcapi$as_nl"
31003 if test "x$py_cv_module__testlimitedcapi" = xyes
31010 if test "$py_cv_module__testlimitedcapi" = yes; then
31011 MODULE__TESTLIMITEDCAPI_TRUE
=
31012 MODULE__TESTLIMITEDCAPI_FALSE
='#'
31014 MODULE__TESTLIMITEDCAPI_TRUE
='#'
31015 MODULE__TESTLIMITEDCAPI_FALSE
=
31018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testlimitedcapi" >&5
31019 printf "%s\n" "$py_cv_module__testlimitedcapi" >&6; }
31022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testinternalcapi" >&5
31023 printf %s
"checking for stdlib extension module _testinternalcapi... " >&6; }
31024 if test "$py_cv_module__testinternalcapi" != "n/a"
31027 if test "$TEST_MODULES" = yes
31031 py_cv_module__testinternalcapi
=yes
31033 py_cv_module__testinternalcapi
=missing
31036 py_cv_module__testinternalcapi
=disabled
31040 as_fn_append MODULE_BLOCK
"MODULE__TESTINTERNALCAPI_STATE=$py_cv_module__testinternalcapi$as_nl"
31041 if test "x$py_cv_module__testinternalcapi" = xyes
31048 if test "$py_cv_module__testinternalcapi" = yes; then
31049 MODULE__TESTINTERNALCAPI_TRUE
=
31050 MODULE__TESTINTERNALCAPI_FALSE
='#'
31052 MODULE__TESTINTERNALCAPI_TRUE
='#'
31053 MODULE__TESTINTERNALCAPI_FALSE
=
31056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testinternalcapi" >&5
31057 printf "%s\n" "$py_cv_module__testinternalcapi" >&6; }
31060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testbuffer" >&5
31061 printf %s
"checking for stdlib extension module _testbuffer... " >&6; }
31062 if test "$py_cv_module__testbuffer" != "n/a"
31065 if test "$TEST_MODULES" = yes
31069 py_cv_module__testbuffer
=yes
31071 py_cv_module__testbuffer
=missing
31074 py_cv_module__testbuffer
=disabled
31078 as_fn_append MODULE_BLOCK
"MODULE__TESTBUFFER_STATE=$py_cv_module__testbuffer$as_nl"
31079 if test "x$py_cv_module__testbuffer" = xyes
31086 if test "$py_cv_module__testbuffer" = yes; then
31087 MODULE__TESTBUFFER_TRUE
=
31088 MODULE__TESTBUFFER_FALSE
='#'
31090 MODULE__TESTBUFFER_TRUE
='#'
31091 MODULE__TESTBUFFER_FALSE
=
31094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testbuffer" >&5
31095 printf "%s\n" "$py_cv_module__testbuffer" >&6; }
31098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testimportmultiple" >&5
31099 printf %s
"checking for stdlib extension module _testimportmultiple... " >&6; }
31100 if test "$py_cv_module__testimportmultiple" != "n/a"
31103 if test "$TEST_MODULES" = yes
31105 if test "$ac_cv_func_dlopen" = yes
31107 py_cv_module__testimportmultiple
=yes
31109 py_cv_module__testimportmultiple
=missing
31112 py_cv_module__testimportmultiple
=disabled
31116 as_fn_append MODULE_BLOCK
"MODULE__TESTIMPORTMULTIPLE_STATE=$py_cv_module__testimportmultiple$as_nl"
31117 if test "x$py_cv_module__testimportmultiple" = xyes
31124 if test "$py_cv_module__testimportmultiple" = yes; then
31125 MODULE__TESTIMPORTMULTIPLE_TRUE
=
31126 MODULE__TESTIMPORTMULTIPLE_FALSE
='#'
31128 MODULE__TESTIMPORTMULTIPLE_TRUE
='#'
31129 MODULE__TESTIMPORTMULTIPLE_FALSE
=
31132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testimportmultiple" >&5
31133 printf "%s\n" "$py_cv_module__testimportmultiple" >&6; }
31136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testmultiphase" >&5
31137 printf %s
"checking for stdlib extension module _testmultiphase... " >&6; }
31138 if test "$py_cv_module__testmultiphase" != "n/a"
31141 if test "$TEST_MODULES" = yes
31143 if test "$ac_cv_func_dlopen" = yes
31145 py_cv_module__testmultiphase
=yes
31147 py_cv_module__testmultiphase
=missing
31150 py_cv_module__testmultiphase
=disabled
31154 as_fn_append MODULE_BLOCK
"MODULE__TESTMULTIPHASE_STATE=$py_cv_module__testmultiphase$as_nl"
31155 if test "x$py_cv_module__testmultiphase" = xyes
31162 if test "$py_cv_module__testmultiphase" = yes; then
31163 MODULE__TESTMULTIPHASE_TRUE
=
31164 MODULE__TESTMULTIPHASE_FALSE
='#'
31166 MODULE__TESTMULTIPHASE_TRUE
='#'
31167 MODULE__TESTMULTIPHASE_FALSE
=
31170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testmultiphase" >&5
31171 printf "%s\n" "$py_cv_module__testmultiphase" >&6; }
31174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testsinglephase" >&5
31175 printf %s
"checking for stdlib extension module _testsinglephase... " >&6; }
31176 if test "$py_cv_module__testsinglephase" != "n/a"
31179 if test "$TEST_MODULES" = yes
31181 if test "$ac_cv_func_dlopen" = yes
31183 py_cv_module__testsinglephase
=yes
31185 py_cv_module__testsinglephase
=missing
31188 py_cv_module__testsinglephase
=disabled
31192 as_fn_append MODULE_BLOCK
"MODULE__TESTSINGLEPHASE_STATE=$py_cv_module__testsinglephase$as_nl"
31193 if test "x$py_cv_module__testsinglephase" = xyes
31200 if test "$py_cv_module__testsinglephase" = yes; then
31201 MODULE__TESTSINGLEPHASE_TRUE
=
31202 MODULE__TESTSINGLEPHASE_FALSE
='#'
31204 MODULE__TESTSINGLEPHASE_TRUE
='#'
31205 MODULE__TESTSINGLEPHASE_FALSE
=
31208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testsinglephase" >&5
31209 printf "%s\n" "$py_cv_module__testsinglephase" >&6; }
31212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testexternalinspection" >&5
31213 printf %s
"checking for stdlib extension module _testexternalinspection... " >&6; }
31214 if test "$py_cv_module__testexternalinspection" != "n/a"
31217 if test "$TEST_MODULES" = yes
31221 py_cv_module__testexternalinspection
=yes
31223 py_cv_module__testexternalinspection
=missing
31226 py_cv_module__testexternalinspection
=disabled
31230 as_fn_append MODULE_BLOCK
"MODULE__TESTEXTERNALINSPECTION_STATE=$py_cv_module__testexternalinspection$as_nl"
31231 if test "x$py_cv_module__testexternalinspection" = xyes
31238 if test "$py_cv_module__testexternalinspection" = yes; then
31239 MODULE__TESTEXTERNALINSPECTION_TRUE
=
31240 MODULE__TESTEXTERNALINSPECTION_FALSE
='#'
31242 MODULE__TESTEXTERNALINSPECTION_TRUE
='#'
31243 MODULE__TESTEXTERNALINSPECTION_FALSE
=
31246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testexternalinspection" >&5
31247 printf "%s\n" "$py_cv_module__testexternalinspection" >&6; }
31250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxsubtype" >&5
31251 printf %s
"checking for stdlib extension module xxsubtype... " >&6; }
31252 if test "$py_cv_module_xxsubtype" != "n/a"
31255 if test "$TEST_MODULES" = yes
31259 py_cv_module_xxsubtype
=yes
31261 py_cv_module_xxsubtype
=missing
31264 py_cv_module_xxsubtype
=disabled
31268 as_fn_append MODULE_BLOCK
"MODULE_XXSUBTYPE_STATE=$py_cv_module_xxsubtype$as_nl"
31269 if test "x$py_cv_module_xxsubtype" = xyes
31276 if test "$py_cv_module_xxsubtype" = yes; then
31277 MODULE_XXSUBTYPE_TRUE
=
31278 MODULE_XXSUBTYPE_FALSE
='#'
31280 MODULE_XXSUBTYPE_TRUE
='#'
31281 MODULE_XXSUBTYPE_FALSE
=
31284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxsubtype" >&5
31285 printf "%s\n" "$py_cv_module_xxsubtype" >&6; }
31288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _xxtestfuzz" >&5
31289 printf %s
"checking for stdlib extension module _xxtestfuzz... " >&6; }
31290 if test "$py_cv_module__xxtestfuzz" != "n/a"
31293 if test "$TEST_MODULES" = yes
31297 py_cv_module__xxtestfuzz
=yes
31299 py_cv_module__xxtestfuzz
=missing
31302 py_cv_module__xxtestfuzz
=disabled
31306 as_fn_append MODULE_BLOCK
"MODULE__XXTESTFUZZ_STATE=$py_cv_module__xxtestfuzz$as_nl"
31307 if test "x$py_cv_module__xxtestfuzz" = xyes
31314 if test "$py_cv_module__xxtestfuzz" = yes; then
31315 MODULE__XXTESTFUZZ_TRUE
=
31316 MODULE__XXTESTFUZZ_FALSE
='#'
31318 MODULE__XXTESTFUZZ_TRUE
='#'
31319 MODULE__XXTESTFUZZ_FALSE
=
31322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__xxtestfuzz" >&5
31323 printf "%s\n" "$py_cv_module__xxtestfuzz" >&6; }
31326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes_test" >&5
31327 printf %s
"checking for stdlib extension module _ctypes_test... " >&6; }
31328 if test "$py_cv_module__ctypes_test" != "n/a"
31331 if test "$TEST_MODULES" = yes
31333 if test "$have_libffi" = yes -a "$ac_cv_func_dlopen" = yes
31335 py_cv_module__ctypes_test
=yes
31337 py_cv_module__ctypes_test
=missing
31340 py_cv_module__ctypes_test
=disabled
31344 as_fn_append MODULE_BLOCK
"MODULE__CTYPES_TEST_STATE=$py_cv_module__ctypes_test$as_nl"
31345 if test "x$py_cv_module__ctypes_test" = xyes
31349 as_fn_append MODULE_BLOCK
"MODULE__CTYPES_TEST_LDFLAGS=$LIBM$as_nl"
31352 if test "$py_cv_module__ctypes_test" = yes; then
31353 MODULE__CTYPES_TEST_TRUE
=
31354 MODULE__CTYPES_TEST_FALSE
='#'
31356 MODULE__CTYPES_TEST_TRUE
='#'
31357 MODULE__CTYPES_TEST_FALSE
=
31360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes_test" >&5
31361 printf "%s\n" "$py_cv_module__ctypes_test" >&6; }
31365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited" >&5
31366 printf %s
"checking for stdlib extension module xxlimited... " >&6; }
31367 if test "$py_cv_module_xxlimited" != "n/a"
31370 if test "$TEST_MODULES" = yes
31372 if test "$ac_cv_func_dlopen" = yes
31374 py_cv_module_xxlimited
=yes
31376 py_cv_module_xxlimited
=missing
31379 py_cv_module_xxlimited
=disabled
31383 as_fn_append MODULE_BLOCK
"MODULE_XXLIMITED_STATE=$py_cv_module_xxlimited$as_nl"
31384 if test "x$py_cv_module_xxlimited" = xyes
31391 if test "$py_cv_module_xxlimited" = yes; then
31392 MODULE_XXLIMITED_TRUE
=
31393 MODULE_XXLIMITED_FALSE
='#'
31395 MODULE_XXLIMITED_TRUE
='#'
31396 MODULE_XXLIMITED_FALSE
=
31399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited" >&5
31400 printf "%s\n" "$py_cv_module_xxlimited" >&6; }
31403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited_35" >&5
31404 printf %s
"checking for stdlib extension module xxlimited_35... " >&6; }
31405 if test "$py_cv_module_xxlimited_35" != "n/a"
31408 if test "$TEST_MODULES" = yes
31410 if test "$ac_cv_func_dlopen" = yes
31412 py_cv_module_xxlimited_35
=yes
31414 py_cv_module_xxlimited_35
=missing
31417 py_cv_module_xxlimited_35
=disabled
31421 as_fn_append MODULE_BLOCK
"MODULE_XXLIMITED_35_STATE=$py_cv_module_xxlimited_35$as_nl"
31422 if test "x$py_cv_module_xxlimited_35" = xyes
31429 if test "$py_cv_module_xxlimited_35" = yes; then
31430 MODULE_XXLIMITED_35_TRUE
=
31431 MODULE_XXLIMITED_35_FALSE
='#'
31433 MODULE_XXLIMITED_35_TRUE
='#'
31434 MODULE_XXLIMITED_35_FALSE
=
31437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited_35" >&5
31438 printf "%s\n" "$py_cv_module_xxlimited_35" >&6; }
31441 # substitute multiline block, must come after last PY_STDLIB_MOD()
31444 # generate output files
31445 ac_config_files
="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh"
31447 ac_config_files
="$ac_config_files Modules/Setup.bootstrap Modules/Setup.stdlib"
31449 ac_config_files
="$ac_config_files Modules/ld_so_aix"
31451 # Generate files like pyconfig.h
31452 cat >confcache
<<\_ACEOF
31453 # This file is a shell script that caches the results of configure
31454 # tests run on this system so they can be shared between configure
31455 # scripts and configure runs, see configure's option --config-cache.
31456 # It is not useful on other systems. If it contains results you don't
31457 # want to keep, you may remove or edit it.
31459 # config.status only pays attention to the cache file if you give it
31460 # the --recheck option to rerun configure.
31462 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31463 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31464 # following values.
31468 # The following way of writing the cache mishandles newlines in values,
31469 # but we know of no workaround that is simple, portable, and efficient.
31470 # So, we kill variables containing newlines.
31471 # Ultrix sh set writes to stderr and can't be redirected directly,
31472 # and sets the high bit in the cache file unless we assign to the vars.
31474 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31475 eval ac_val
=\$
$ac_var
31479 *_cv_
*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31480 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31483 _ | IFS | as_nl
) ;; #(
31484 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
31485 *) { eval $ac_var=; unset $ac_var;} ;;
31491 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31492 *${as_nl}ac_space
=\
*)
31493 # `set' does not quote correctly, so add quotes: double-quote
31494 # substitution turns \\\\ into \\, and sed turns \\ into \.
31497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31500 # `set' quotes correctly as required by POSIX, so do not add quotes.
31501 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31510 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
31512 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31514 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31515 if test -w "$cache_file"; then
31516 if test "x$cache_file" != "x/dev/null"; then
31517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31518 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
31519 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
31520 cat confcache
>"$cache_file"
31522 case $cache_file in #(
31524 mv -f confcache
"$cache_file"$$
&&
31525 mv -f "$cache_file"$$
"$cache_file" ;; #(
31527 mv -f confcache
"$cache_file" ;;
31532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31533 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
31538 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31539 # Let make expand exec_prefix.
31540 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31542 DEFS
=-DHAVE_CONFIG_H
31547 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31548 # 1. Remove the extension, and $U if already installed.
31549 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31550 ac_i
=`printf "%s\n" "$ac_i" | sed "$ac_script"`
31551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31552 # will be set to the directory where LIBOBJS objects are built.
31553 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31554 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
31556 LIBOBJS
=$ac_libobjs
31558 LTLIBOBJS
=$ac_ltlibobjs
31562 if test -z "${MODULE__IO_TRUE}" && test -z "${MODULE__IO_FALSE}"; then
31563 as_fn_error $?
"conditional \"MODULE__IO\" was never defined.
31564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31566 if test -z "${MODULE_TIME_TRUE}" && test -z "${MODULE_TIME_FALSE}"; then
31567 as_fn_error $?
"conditional \"MODULE_TIME\" was never defined.
31568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31570 if test -z "${MODULE_ARRAY_TRUE}" && test -z "${MODULE_ARRAY_FALSE}"; then
31571 as_fn_error $?
"conditional \"MODULE_ARRAY\" was never defined.
31572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31574 if test -z "${MODULE__ASYNCIO_TRUE}" && test -z "${MODULE__ASYNCIO_FALSE}"; then
31575 as_fn_error $?
"conditional \"MODULE__ASYNCIO\" was never defined.
31576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31578 if test -z "${MODULE__BISECT_TRUE}" && test -z "${MODULE__BISECT_FALSE}"; then
31579 as_fn_error $?
"conditional \"MODULE__BISECT\" was never defined.
31580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31582 if test -z "${MODULE__CONTEXTVARS_TRUE}" && test -z "${MODULE__CONTEXTVARS_FALSE}"; then
31583 as_fn_error $?
"conditional \"MODULE__CONTEXTVARS\" was never defined.
31584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31586 if test -z "${MODULE__CSV_TRUE}" && test -z "${MODULE__CSV_FALSE}"; then
31587 as_fn_error $?
"conditional \"MODULE__CSV\" was never defined.
31588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31590 if test -z "${MODULE__HEAPQ_TRUE}" && test -z "${MODULE__HEAPQ_FALSE}"; then
31591 as_fn_error $?
"conditional \"MODULE__HEAPQ\" was never defined.
31592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31594 if test -z "${MODULE__JSON_TRUE}" && test -z "${MODULE__JSON_FALSE}"; then
31595 as_fn_error $?
"conditional \"MODULE__JSON\" was never defined.
31596 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31598 if test -z "${MODULE__LSPROF_TRUE}" && test -z "${MODULE__LSPROF_FALSE}"; then
31599 as_fn_error $?
"conditional \"MODULE__LSPROF\" was never defined.
31600 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31602 if test -z "${MODULE__OPCODE_TRUE}" && test -z "${MODULE__OPCODE_FALSE}"; then
31603 as_fn_error $?
"conditional \"MODULE__OPCODE\" was never defined.
31604 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31606 if test -z "${MODULE__PICKLE_TRUE}" && test -z "${MODULE__PICKLE_FALSE}"; then
31607 as_fn_error $?
"conditional \"MODULE__PICKLE\" was never defined.
31608 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31610 if test -z "${MODULE__POSIXSUBPROCESS_TRUE}" && test -z "${MODULE__POSIXSUBPROCESS_FALSE}"; then
31611 as_fn_error $?
"conditional \"MODULE__POSIXSUBPROCESS\" was never defined.
31612 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31614 if test -z "${MODULE__QUEUE_TRUE}" && test -z "${MODULE__QUEUE_FALSE}"; then
31615 as_fn_error $?
"conditional \"MODULE__QUEUE\" was never defined.
31616 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31618 if test -z "${MODULE__RANDOM_TRUE}" && test -z "${MODULE__RANDOM_FALSE}"; then
31619 as_fn_error $?
"conditional \"MODULE__RANDOM\" was never defined.
31620 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31622 if test -z "${MODULE_SELECT_TRUE}" && test -z "${MODULE_SELECT_FALSE}"; then
31623 as_fn_error $?
"conditional \"MODULE_SELECT\" was never defined.
31624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31626 if test -z "${MODULE__STRUCT_TRUE}" && test -z "${MODULE__STRUCT_FALSE}"; then
31627 as_fn_error $?
"conditional \"MODULE__STRUCT\" was never defined.
31628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31630 if test -z "${MODULE__TYPING_TRUE}" && test -z "${MODULE__TYPING_FALSE}"; then
31631 as_fn_error $?
"conditional \"MODULE__TYPING\" was never defined.
31632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31634 if test -z "${MODULE__INTERPRETERS_TRUE}" && test -z "${MODULE__INTERPRETERS_FALSE}"; then
31635 as_fn_error $?
"conditional \"MODULE__INTERPRETERS\" was never defined.
31636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31638 if test -z "${MODULE__INTERPCHANNELS_TRUE}" && test -z "${MODULE__INTERPCHANNELS_FALSE}"; then
31639 as_fn_error $?
"conditional \"MODULE__INTERPCHANNELS\" was never defined.
31640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31642 if test -z "${MODULE__INTERPQUEUES_TRUE}" && test -z "${MODULE__INTERPQUEUES_FALSE}"; then
31643 as_fn_error $?
"conditional \"MODULE__INTERPQUEUES\" was never defined.
31644 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31646 if test -z "${MODULE__ZONEINFO_TRUE}" && test -z "${MODULE__ZONEINFO_FALSE}"; then
31647 as_fn_error $?
"conditional \"MODULE__ZONEINFO\" was never defined.
31648 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31650 if test -z "${MODULE__MULTIPROCESSING_TRUE}" && test -z "${MODULE__MULTIPROCESSING_FALSE}"; then
31651 as_fn_error $?
"conditional \"MODULE__MULTIPROCESSING\" was never defined.
31652 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31654 if test -z "${MODULE__POSIXSHMEM_TRUE}" && test -z "${MODULE__POSIXSHMEM_FALSE}"; then
31655 as_fn_error $?
"conditional \"MODULE__POSIXSHMEM\" was never defined.
31656 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31658 if test -z "${MODULE__STATISTICS_TRUE}" && test -z "${MODULE__STATISTICS_FALSE}"; then
31659 as_fn_error $?
"conditional \"MODULE__STATISTICS\" was never defined.
31660 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31662 if test -z "${MODULE_CMATH_TRUE}" && test -z "${MODULE_CMATH_FALSE}"; then
31663 as_fn_error $?
"conditional \"MODULE_CMATH\" was never defined.
31664 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31666 if test -z "${MODULE_MATH_TRUE}" && test -z "${MODULE_MATH_FALSE}"; then
31667 as_fn_error $?
"conditional \"MODULE_MATH\" was never defined.
31668 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31670 if test -z "${MODULE__DATETIME_TRUE}" && test -z "${MODULE__DATETIME_FALSE}"; then
31671 as_fn_error $?
"conditional \"MODULE__DATETIME\" was never defined.
31672 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31674 if test -z "${MODULE_FCNTL_TRUE}" && test -z "${MODULE_FCNTL_FALSE}"; then
31675 as_fn_error $?
"conditional \"MODULE_FCNTL\" was never defined.
31676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31678 if test -z "${MODULE_MMAP_TRUE}" && test -z "${MODULE_MMAP_FALSE}"; then
31679 as_fn_error $?
"conditional \"MODULE_MMAP\" was never defined.
31680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31682 if test -z "${MODULE__SOCKET_TRUE}" && test -z "${MODULE__SOCKET_FALSE}"; then
31683 as_fn_error $?
"conditional \"MODULE__SOCKET\" was never defined.
31684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31686 if test -z "${MODULE_GRP_TRUE}" && test -z "${MODULE_GRP_FALSE}"; then
31687 as_fn_error $?
"conditional \"MODULE_GRP\" was never defined.
31688 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31690 if test -z "${MODULE_PWD_TRUE}" && test -z "${MODULE_PWD_FALSE}"; then
31691 as_fn_error $?
"conditional \"MODULE_PWD\" was never defined.
31692 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31694 if test -z "${MODULE_RESOURCE_TRUE}" && test -z "${MODULE_RESOURCE_FALSE}"; then
31695 as_fn_error $?
"conditional \"MODULE_RESOURCE\" was never defined.
31696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31698 if test -z "${MODULE__SCPROXY_TRUE}" && test -z "${MODULE__SCPROXY_FALSE}"; then
31699 as_fn_error $?
"conditional \"MODULE__SCPROXY\" was never defined.
31700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31702 if test -z "${MODULE_SYSLOG_TRUE}" && test -z "${MODULE_SYSLOG_FALSE}"; then
31703 as_fn_error $?
"conditional \"MODULE_SYSLOG\" was never defined.
31704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31706 if test -z "${MODULE_TERMIOS_TRUE}" && test -z "${MODULE_TERMIOS_FALSE}"; then
31707 as_fn_error $?
"conditional \"MODULE_TERMIOS\" was never defined.
31708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31710 if test -z "${MODULE_PYEXPAT_TRUE}" && test -z "${MODULE_PYEXPAT_FALSE}"; then
31711 as_fn_error $?
"conditional \"MODULE_PYEXPAT\" was never defined.
31712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31714 if test -z "${MODULE__ELEMENTTREE_TRUE}" && test -z "${MODULE__ELEMENTTREE_FALSE}"; then
31715 as_fn_error $?
"conditional \"MODULE__ELEMENTTREE\" was never defined.
31716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31718 if test -z "${MODULE__CODECS_CN_TRUE}" && test -z "${MODULE__CODECS_CN_FALSE}"; then
31719 as_fn_error $?
"conditional \"MODULE__CODECS_CN\" was never defined.
31720 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31722 if test -z "${MODULE__CODECS_HK_TRUE}" && test -z "${MODULE__CODECS_HK_FALSE}"; then
31723 as_fn_error $?
"conditional \"MODULE__CODECS_HK\" was never defined.
31724 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31726 if test -z "${MODULE__CODECS_ISO2022_TRUE}" && test -z "${MODULE__CODECS_ISO2022_FALSE}"; then
31727 as_fn_error $?
"conditional \"MODULE__CODECS_ISO2022\" was never defined.
31728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31730 if test -z "${MODULE__CODECS_JP_TRUE}" && test -z "${MODULE__CODECS_JP_FALSE}"; then
31731 as_fn_error $?
"conditional \"MODULE__CODECS_JP\" was never defined.
31732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31734 if test -z "${MODULE__CODECS_KR_TRUE}" && test -z "${MODULE__CODECS_KR_FALSE}"; then
31735 as_fn_error $?
"conditional \"MODULE__CODECS_KR\" was never defined.
31736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31738 if test -z "${MODULE__CODECS_TW_TRUE}" && test -z "${MODULE__CODECS_TW_FALSE}"; then
31739 as_fn_error $?
"conditional \"MODULE__CODECS_TW\" was never defined.
31740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31742 if test -z "${MODULE__MULTIBYTECODEC_TRUE}" && test -z "${MODULE__MULTIBYTECODEC_FALSE}"; then
31743 as_fn_error $?
"conditional \"MODULE__MULTIBYTECODEC\" was never defined.
31744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31746 if test -z "${MODULE_UNICODEDATA_TRUE}" && test -z "${MODULE_UNICODEDATA_FALSE}"; then
31747 as_fn_error $?
"conditional \"MODULE_UNICODEDATA\" was never defined.
31748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31750 if test -z "${MODULE__MD5_TRUE}" && test -z "${MODULE__MD5_FALSE}"; then
31751 as_fn_error $?
"conditional \"MODULE__MD5\" was never defined.
31752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31754 if test -z "${MODULE__SHA1_TRUE}" && test -z "${MODULE__SHA1_FALSE}"; then
31755 as_fn_error $?
"conditional \"MODULE__SHA1\" was never defined.
31756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31758 if test -z "${MODULE__SHA2_TRUE}" && test -z "${MODULE__SHA2_FALSE}"; then
31759 as_fn_error $?
"conditional \"MODULE__SHA2\" was never defined.
31760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31762 if test -z "${MODULE__SHA3_TRUE}" && test -z "${MODULE__SHA3_FALSE}"; then
31763 as_fn_error $?
"conditional \"MODULE__SHA3\" was never defined.
31764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31766 if test -z "${MODULE__BLAKE2_TRUE}" && test -z "${MODULE__BLAKE2_FALSE}"; then
31767 as_fn_error $?
"conditional \"MODULE__BLAKE2\" was never defined.
31768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31770 if test -z "${MODULE__CTYPES_TRUE}" && test -z "${MODULE__CTYPES_FALSE}"; then
31771 as_fn_error $?
"conditional \"MODULE__CTYPES\" was never defined.
31772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31774 if test -z "${MODULE__CURSES_TRUE}" && test -z "${MODULE__CURSES_FALSE}"; then
31775 as_fn_error $?
"conditional \"MODULE__CURSES\" was never defined.
31776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31778 if test -z "${MODULE__CURSES_PANEL_TRUE}" && test -z "${MODULE__CURSES_PANEL_FALSE}"; then
31779 as_fn_error $?
"conditional \"MODULE__CURSES_PANEL\" was never defined.
31780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31782 if test -z "${MODULE__DECIMAL_TRUE}" && test -z "${MODULE__DECIMAL_FALSE}"; then
31783 as_fn_error $?
"conditional \"MODULE__DECIMAL\" was never defined.
31784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31786 if test -z "${MODULE__DBM_TRUE}" && test -z "${MODULE__DBM_FALSE}"; then
31787 as_fn_error $?
"conditional \"MODULE__DBM\" was never defined.
31788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31790 if test -z "${MODULE__GDBM_TRUE}" && test -z "${MODULE__GDBM_FALSE}"; then
31791 as_fn_error $?
"conditional \"MODULE__GDBM\" was never defined.
31792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31794 if test -z "${MODULE_READLINE_TRUE}" && test -z "${MODULE_READLINE_FALSE}"; then
31795 as_fn_error $?
"conditional \"MODULE_READLINE\" was never defined.
31796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31798 if test -z "${MODULE__SQLITE3_TRUE}" && test -z "${MODULE__SQLITE3_FALSE}"; then
31799 as_fn_error $?
"conditional \"MODULE__SQLITE3\" was never defined.
31800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31802 if test -z "${MODULE__TKINTER_TRUE}" && test -z "${MODULE__TKINTER_FALSE}"; then
31803 as_fn_error $?
"conditional \"MODULE__TKINTER\" was never defined.
31804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31806 if test -z "${MODULE__UUID_TRUE}" && test -z "${MODULE__UUID_FALSE}"; then
31807 as_fn_error $?
"conditional \"MODULE__UUID\" was never defined.
31808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31810 if test -z "${MODULE_ZLIB_TRUE}" && test -z "${MODULE_ZLIB_FALSE}"; then
31811 as_fn_error $?
"conditional \"MODULE_ZLIB\" was never defined.
31812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31814 if test -z "${MODULE_BINASCII_TRUE}" && test -z "${MODULE_BINASCII_FALSE}"; then
31815 as_fn_error $?
"conditional \"MODULE_BINASCII\" was never defined.
31816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31818 if test -z "${MODULE__BZ2_TRUE}" && test -z "${MODULE__BZ2_FALSE}"; then
31819 as_fn_error $?
"conditional \"MODULE__BZ2\" was never defined.
31820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31822 if test -z "${MODULE__LZMA_TRUE}" && test -z "${MODULE__LZMA_FALSE}"; then
31823 as_fn_error $?
"conditional \"MODULE__LZMA\" was never defined.
31824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31826 if test -z "${MODULE__SSL_TRUE}" && test -z "${MODULE__SSL_FALSE}"; then
31827 as_fn_error $?
"conditional \"MODULE__SSL\" was never defined.
31828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31830 if test -z "${MODULE__HASHLIB_TRUE}" && test -z "${MODULE__HASHLIB_FALSE}"; then
31831 as_fn_error $?
"conditional \"MODULE__HASHLIB\" was never defined.
31832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31834 if test -z "${MODULE__TESTCAPI_TRUE}" && test -z "${MODULE__TESTCAPI_FALSE}"; then
31835 as_fn_error $?
"conditional \"MODULE__TESTCAPI\" was never defined.
31836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31838 if test -z "${MODULE__TESTCLINIC_TRUE}" && test -z "${MODULE__TESTCLINIC_FALSE}"; then
31839 as_fn_error $?
"conditional \"MODULE__TESTCLINIC\" was never defined.
31840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31842 if test -z "${MODULE__TESTCLINIC_LIMITED_TRUE}" && test -z "${MODULE__TESTCLINIC_LIMITED_FALSE}"; then
31843 as_fn_error $?
"conditional \"MODULE__TESTCLINIC_LIMITED\" was never defined.
31844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31846 if test -z "${MODULE__TESTLIMITEDCAPI_TRUE}" && test -z "${MODULE__TESTLIMITEDCAPI_FALSE}"; then
31847 as_fn_error $?
"conditional \"MODULE__TESTLIMITEDCAPI\" was never defined.
31848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31850 if test -z "${MODULE__TESTINTERNALCAPI_TRUE}" && test -z "${MODULE__TESTINTERNALCAPI_FALSE}"; then
31851 as_fn_error $?
"conditional \"MODULE__TESTINTERNALCAPI\" was never defined.
31852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31854 if test -z "${MODULE__TESTBUFFER_TRUE}" && test -z "${MODULE__TESTBUFFER_FALSE}"; then
31855 as_fn_error $?
"conditional \"MODULE__TESTBUFFER\" was never defined.
31856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31858 if test -z "${MODULE__TESTIMPORTMULTIPLE_TRUE}" && test -z "${MODULE__TESTIMPORTMULTIPLE_FALSE}"; then
31859 as_fn_error $?
"conditional \"MODULE__TESTIMPORTMULTIPLE\" was never defined.
31860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31862 if test -z "${MODULE__TESTMULTIPHASE_TRUE}" && test -z "${MODULE__TESTMULTIPHASE_FALSE}"; then
31863 as_fn_error $?
"conditional \"MODULE__TESTMULTIPHASE\" was never defined.
31864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31866 if test -z "${MODULE__TESTSINGLEPHASE_TRUE}" && test -z "${MODULE__TESTSINGLEPHASE_FALSE}"; then
31867 as_fn_error $?
"conditional \"MODULE__TESTSINGLEPHASE\" was never defined.
31868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31870 if test -z "${MODULE__TESTEXTERNALINSPECTION_TRUE}" && test -z "${MODULE__TESTEXTERNALINSPECTION_FALSE}"; then
31871 as_fn_error $?
"conditional \"MODULE__TESTEXTERNALINSPECTION\" was never defined.
31872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31874 if test -z "${MODULE_XXSUBTYPE_TRUE}" && test -z "${MODULE_XXSUBTYPE_FALSE}"; then
31875 as_fn_error $?
"conditional \"MODULE_XXSUBTYPE\" was never defined.
31876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31878 if test -z "${MODULE__XXTESTFUZZ_TRUE}" && test -z "${MODULE__XXTESTFUZZ_FALSE}"; then
31879 as_fn_error $?
"conditional \"MODULE__XXTESTFUZZ\" was never defined.
31880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31882 if test -z "${MODULE__CTYPES_TEST_TRUE}" && test -z "${MODULE__CTYPES_TEST_FALSE}"; then
31883 as_fn_error $?
"conditional \"MODULE__CTYPES_TEST\" was never defined.
31884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31886 if test -z "${MODULE_XXLIMITED_TRUE}" && test -z "${MODULE_XXLIMITED_FALSE}"; then
31887 as_fn_error $?
"conditional \"MODULE_XXLIMITED\" was never defined.
31888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31890 if test -z "${MODULE_XXLIMITED_35_TRUE}" && test -z "${MODULE_XXLIMITED_35_FALSE}"; then
31891 as_fn_error $?
"conditional \"MODULE_XXLIMITED_35\" was never defined.
31892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31895 : "${CONFIG_STATUS=./config.status}"
31897 ac_clean_files_save
=$ac_clean_files
31898 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31900 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
31902 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31904 # Generated by $as_me.
31905 # Run this file to recreate the current configuration.
31906 # Compiler output produced by configure, useful for debugging
31907 # configure, is in config.log if it exists.
31910 ac_cs_recheck=false
31913 SHELL=\${CONFIG_SHELL-$SHELL}
31916 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
31917 ## -------------------- ##
31918 ## M4sh Initialization. ##
31919 ## -------------------- ##
31921 # Be more Bourne compatible
31922 DUALCASE
=1; export DUALCASE
# for MKS sh
31924 if test ${ZSH_VERSION+y} && (emulate sh
) >/dev
/null
2>&1
31928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31929 # is contrary to our usage. Disable this feature.
31930 alias -g '${1+"$@"}'='"$@"'
31931 setopt NO_GLOB_SUBST
31933 case `(set -o) 2>/dev/null` in #(
31943 # Reset variables that may have inherited troublesome values from
31946 # IFS needs to be set, to space, tab, and newline, in precisely that order.
31947 # (If _AS_PATH_WALK were called with IFS unset, it would have the
31948 # side effect of setting IFS to empty, thus disabling word splitting.)
31949 # Quoting is to prevent editors from complaining about space-tab.
31959 # Ensure predictable behavior from utilities with locale-dependent output.
31965 # We cannot yet rely on "unset" to work, but we need these variables
31966 # to be unset--not just set to an empty or harmless value--now, to
31967 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
31968 # also avoids known problems related to "unset" and subshell syntax
31969 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
31970 for as_var
in BASH_ENV ENV MAIL MAILPATH CDPATH
31971 do eval test \
${$as_var+y} \
31972 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
31975 # Ensure that fds 0, 1, and 2 are open.
31976 if (exec 3>&0) 2>/dev
/null
; then :; else exec 0</dev
/null
; fi
31977 if (exec 3>&1) 2>/dev
/null
; then :; else exec 1>/dev
/null
; fi
31978 if (exec 3>&2) ; then :; else exec 2>/dev
/null
; fi
31980 # The user is always right.
31981 if ${PATH_SEPARATOR+false} :; then
31983 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
31984 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
31990 # Find who we are. Look in the path if we contain no directory separator.
31993 *[\\/]* ) as_myself
=$0 ;;
31994 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
31995 for as_dir
in $PATH
31998 case $as_dir in #(((
32001 *) as_dir
=$as_dir/ ;;
32003 test -r "$as_dir$0" && as_myself
=$as_dir$0 && break
32009 # We did not find ourselves, most probably we were run as `sh COMMAND'
32010 # in which case we are not to be found in the path.
32011 if test "x$as_myself" = x
; then
32014 if test ! -f "$as_myself"; then
32015 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
32021 # as_fn_error STATUS ERROR [LINENO LOG_FD]
32022 # ----------------------------------------
32023 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
32024 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
32025 # script with STATUS, using 1 if that was 0.
32028 as_status
=$1; test $as_status -eq 0 && as_status
=1
32030 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
32031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
32033 printf "%s\n" "$as_me: error: $2" >&2
32034 as_fn_exit
$as_status
32039 # as_fn_set_status STATUS
32040 # -----------------------
32041 # Set $? to STATUS, without forking.
32042 as_fn_set_status
()
32045 } # as_fn_set_status
32047 # as_fn_exit STATUS
32048 # -----------------
32049 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
32053 as_fn_set_status
$1
32059 # Portably unset VAR.
32062 { eval $1=; unset $1;}
32064 as_unset
=as_fn_unset
32066 # as_fn_append VAR VALUE
32067 # ----------------------
32068 # Append the text in VALUE to the end of the definition contained in VAR. Take
32069 # advantage of any shell optimizations that allow amortized linear growth over
32070 # repeated appends, instead of the typical quadratic growth present in naive
32072 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
32074 eval 'as_fn_append ()
32085 # as_fn_arith ARG...
32086 # ------------------
32087 # Perform arithmetic evaluation on the ARGs, and store the result in the
32088 # global $as_val. Take advantage of shells that can avoid forks. The arguments
32089 # must be portable across $(()) and expr.
32090 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
32092 eval 'as_fn_arith ()
32099 as_val
=`expr "$@" || test $? -eq 1`
32104 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
32105 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
32111 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
32112 as_basename
=basename
32117 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
32123 as_me
=`$as_basename -- "$0" ||
32124 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32125 X"$0" : 'X\(//\)$' \| \
32126 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
32127 printf "%s\n" X/"$0" |
32128 sed '/^.*\/\([^/][^/]*\)\/*$/{
32142 # Avoid depending upon Character Ranges.
32143 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
32144 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32145 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
32146 as_cr_digits
='0123456789'
32147 as_cr_alnum
=$as_cr_Letters$as_cr_digits
32150 # Determine whether it's possible to make 'echo' print without a newline.
32151 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
32152 # for compatibility with existing Makefiles.
32153 ECHO_C
= ECHO_N
= ECHO_T
=
32154 case `echo -n x` in #(((((
32156 case `echo 'xy\c'` in
32157 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
32159 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
32166 # For backward compatibility with old third-party macros, we provide
32167 # the shell variables $as_echo and $as_echo_n. New code should use
32168 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
32169 as_echo
='printf %s\n'
32170 as_echo_n
='printf %s'
32172 rm -f conf$$ conf$$.exe conf$$.
file
32173 if test -d conf$$.dir
; then
32174 rm -f conf$$.dir
/conf$$.
file
32177 mkdir conf$$.dir
2>/dev
/null
32179 if (echo >conf$$.
file) 2>/dev
/null
; then
32180 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
32182 # ... but there are two gotchas:
32183 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
32184 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
32185 # In both cases, we have to default to `cp -pR'.
32186 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
32188 elif ln conf$$.
file conf$$
2>/dev
/null
; then
32196 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
32197 rmdir conf$$.dir
2>/dev
/null
32202 # Create "$as_dir" as a directory, including parents if necessary.
32207 -*) as_dir
=.
/$as_dir;;
32209 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
32213 *\'*) as_qdir
=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
32214 *) as_qdir
=$as_dir;;
32216 as_dirs
="'$as_qdir' $as_dirs"
32217 as_dir
=`$as_dirname -- "$as_dir" ||
32218 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32219 X"$as_dir" : 'X\(//\)[^/]' \| \
32220 X"$as_dir" : 'X\(//\)$' \| \
32221 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
32222 printf "%s\n" X"$as_dir" |
32223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32227 /^X\(\/\/\)[^/].*/{
32240 test -d "$as_dir" && break
32242 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
32243 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
32247 if mkdir
-p .
2>/dev
/null
; then
32248 as_mkdir_p
='mkdir -p "$as_dir"'
32250 test -d .
/-p && rmdir .
/-p
32255 # as_fn_executable_p FILE
32256 # -----------------------
32257 # Test if FILE is an executable regular file.
32258 as_fn_executable_p
()
32260 test -f "$1" && test -x "$1"
32261 } # as_fn_executable_p
32262 as_test_x
='test -x'
32263 as_executable_p
=as_fn_executable_p
32265 # Sed expression to map a string onto a valid CPP name.
32266 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32268 # Sed expression to map a string onto a valid variable name.
32269 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32273 ## ----------------------------------- ##
32274 ## Main body of $CONFIG_STATUS script. ##
32275 ## ----------------------------------- ##
32277 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
32279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32280 # Save the log message, to keep $0 and so on meaningful, and to
32281 # report actual input values of CONFIG_FILES etc. instead of their
32282 # values after options handling.
32284 This file was extended by python $as_me 3.13, which was
32285 generated by GNU Autoconf 2.71. Invocation command line was
32287 CONFIG_FILES = $CONFIG_FILES
32288 CONFIG_HEADERS = $CONFIG_HEADERS
32289 CONFIG_LINKS = $CONFIG_LINKS
32290 CONFIG_COMMANDS = $CONFIG_COMMANDS
32293 on `(hostname || uname -n) 2>/dev/null | sed 1q`
32298 case $ac_config_files in *"
32299 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
32302 case $ac_config_headers in *"
32303 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
32307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32308 # Files that config.status was made for.
32309 config_files="$ac_config_files"
32310 config_headers="$ac_config_headers"
32314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32316 \`$as_me' instantiates files and other configuration actions
32317 from templates according to the current configuration. Unless the files
32318 and actions are specified as TAGs, all are instantiated by default.
32320 Usage: $0 [OPTION]... [TAG]...
32322 -h, --help print this help, then exit
32323 -V, --version print version number and configuration settings, then exit
32324 --config print configuration, then exit
32325 -q, --quiet, --silent
32326 do not print progress messages
32327 -d, --debug don't remove temporary files
32328 --recheck update $as_me by reconfiguring in the same conditions
32329 --file=FILE[:TEMPLATE]
32330 instantiate the configuration file FILE
32331 --header=FILE[:TEMPLATE]
32332 instantiate the configuration header FILE
32334 Configuration files:
32337 Configuration headers:
32340 Report bugs to <https://github.com/python/cpython/issues/>."
32343 ac_cs_config
=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
32344 ac_cs_config_escaped
=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
32345 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32346 ac_cs_config='$ac_cs_config_escaped'
32348 python config.status 3.13
32349 configured by $0, generated by GNU Autoconf 2.71,
32350 with options \\"\$ac_cs_config\\"
32352 Copyright (C) 2021 Free Software Foundation, Inc.
32353 This config.status script is free software; the Free Software Foundation
32354 gives unlimited permission to copy, distribute and modify it."
32360 test -n "\$AWK" || AWK=awk
32363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32364 # The default lists apply if the user does not specify any file.
32370 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32371 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
32375 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
32387 # Handling of the options.
32388 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
32390 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
32391 printf "%s\n" "$ac_cs_version"; exit ;;
32392 --config |
--confi |
--conf |
--con |
--co |
--c )
32393 printf "%s\n" "$ac_cs_config"; exit ;;
32394 --debug |
--debu |
--deb |
--de |
--d |
-d )
32396 --file |
--fil |
--fi |
--f )
32399 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32400 '') as_fn_error $?
"missing file argument" ;;
32402 as_fn_append CONFIG_FILES
" '$ac_optarg'"
32403 ac_need_defaults
=false
;;
32404 --header |
--heade |
--head |
--hea )
32407 *\'*) ac_optarg
=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
32409 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
32410 ac_need_defaults
=false
;;
32412 # Conflict between --help and --header
32413 as_fn_error $?
"ambiguous option: \`$1'
32414 Try \`$0 --help' for more information.";;
32415 --help |
--hel |
-h )
32416 printf "%s\n" "$ac_cs_usage"; exit ;;
32417 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
32418 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
32421 # This is an error.
32422 -*) as_fn_error $?
"unrecognized option: \`$1'
32423 Try \`$0 --help' for more information." ;;
32425 *) as_fn_append ac_config_targets
" $1"
32426 ac_need_defaults
=false
;;
32432 ac_configure_extra_args
=
32434 if $ac_cs_silent; then
32436 ac_configure_extra_args
="$ac_configure_extra_args --silent"
32440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32441 if \$ac_cs_recheck; then
32442 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32444 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
32445 CONFIG_SHELL='$SHELL'
32446 export CONFIG_SHELL
32451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32455 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32456 ## Running $as_me. ##
32458 printf "%s\n" "$ac_log"
32462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32467 # Handling of arguments.
32468 for ac_config_target
in $ac_config_targets
32470 case $ac_config_target in
32471 "pyconfig.h") CONFIG_HEADERS
="$CONFIG_HEADERS pyconfig.h" ;;
32472 "Mac/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/Makefile" ;;
32473 "Mac/PythonLauncher/Makefile") CONFIG_FILES
="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;;
32474 "Mac/Resources/framework/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;;
32475 "Mac/Resources/app/Info.plist") CONFIG_FILES
="$CONFIG_FILES Mac/Resources/app/Info.plist" ;;
32476 "iOS/Resources/Info.plist") CONFIG_FILES
="$CONFIG_FILES iOS/Resources/Info.plist" ;;
32477 "Makefile.pre") CONFIG_FILES
="$CONFIG_FILES Makefile.pre" ;;
32478 "Misc/python.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python.pc" ;;
32479 "Misc/python-embed.pc") CONFIG_FILES
="$CONFIG_FILES Misc/python-embed.pc" ;;
32480 "Misc/python-config.sh") CONFIG_FILES
="$CONFIG_FILES Misc/python-config.sh" ;;
32481 "Modules/Setup.bootstrap") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.bootstrap" ;;
32482 "Modules/Setup.stdlib") CONFIG_FILES
="$CONFIG_FILES Modules/Setup.stdlib" ;;
32483 "Modules/ld_so_aix") CONFIG_FILES
="$CONFIG_FILES Modules/ld_so_aix" ;;
32485 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32490 # If the user did not use the arguments to specify the items to instantiate,
32491 # then the envvar interface is used. Set only those that are not.
32492 # We use the long form for the default assignment because of an extremely
32493 # bizarre bug on SunOS 4.1.3.
32494 if $ac_need_defaults; then
32495 test ${CONFIG_FILES+y} || CONFIG_FILES
=$config_files
32496 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS
=$config_headers
32499 # Have a temporary directory for convenience. Make it in the build tree
32500 # simply because there is no reason against having it here, and in addition,
32501 # creating and moving files from /tmp can sometimes cause problems.
32502 # Hook for its removal unless debugging.
32503 # Note that there is a small window in which the directory will not be cleaned:
32504 # after its creation but before its name has been assigned to `$tmp'.
32508 trap 'exit_status=$?
32509 : "${ac_tmp:=$tmp}"
32510 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32512 trap 'as_fn_exit 1' 1 2 13 15
32514 # Create a (secure) tmp directory for tmp files.
32517 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32521 tmp
=.
/conf$$
-$RANDOM
32522 (umask 077 && mkdir
"$tmp")
32523 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
32526 # Set up the scripts for CONFIG_FILES section.
32527 # No need to generate them if there are no CONFIG_FILES.
32528 # This happens for instance with `./config.status config.h'.
32529 if test -n "$CONFIG_FILES"; then
32532 ac_cr
=`echo X | tr X '\015'`
32533 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32534 # But we know of no other shell where ac_cr would be empty at this
32535 # point, so we can use a bashism as a fallback.
32536 if test "x$ac_cr" = x
; then
32537 eval ac_cr
=\$
\'\\r
\'
32539 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32540 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32543 ac_cs_awk_cr
=$ac_cr
32546 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32551 echo "cat >conf$$subs.awk <<_ACEOF" &&
32552 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32554 } >conf$$subs.sh ||
32555 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32556 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32558 for ac_last_try in false false false false false :; do
32559 . ./conf$$subs.sh ||
32560 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32562 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
32563 if test $ac_delim_n = $ac_delim_num; then
32565 elif $ac_last_try; then
32566 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32568 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32571 rm -f conf$$subs.sh
32573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32574 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
32578 s/^/S["/; s
/!.
*/"]=/
32588 s/\(.\{148\}\)..*/\1/
32590 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
32595 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32602 s/\(.\{148\}\)..*/\1/
32604 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
32608 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32613 ' <conf$$subs.awk | sed '
32618 ' >>$CONFIG_STATUS || ac_write_fail=1
32619 rm -f conf$$subs.awk
32620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32622 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
32623 for (key in S) S_is_set[key] = 1
32629 nfields = split(line, field, "@
")
32631 len = length(field[1])
32632 for (i = 2; i < nfields; i++) {
32634 keylen = length(key)
32635 if (S_is_set[key]) {
32637 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32638 len += length(value) + length(field[++i])
32649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32650 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32651 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
32654 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
32655 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
32658 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32659 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
32660 # trailing colons and then remove the whole line if VPATH becomes empty
32661 # (actually we leave an empty line to preserve line numbers).
32662 if test "x
$srcdir" = x.; then
32663 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32682 fi # test -n "$CONFIG_FILES"
32684 # Set up the scripts for CONFIG_HEADERS section.
32685 # No need to generate them if there are no CONFIG_HEADERS.
32686 # This happens for instance with `./config.status Makefile'.
32687 if test -n "$CONFIG_HEADERS"; then
32688 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
32692 # Transform confdefs.h into an awk script `defines.awk', embedded as
32693 # here-document in config.status, that substitutes the proper values into
32694 # config.h.in to produce config.h.
32696 # Create a delimiter string that does not exist in confdefs.h, to ease
32697 # handling of long lines.
32699 for ac_last_try in false false :; do
32700 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
32701 if test -z "$ac_tt"; then
32703 elif $ac_last_try; then
32704 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
32706 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32710 # For the awk script, D is an array of macro values keyed by name,
32711 # likewise P contains macro parameters if any. Preserve backslash
32712 # newline sequences.
32714 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32716 s/.\{148\}/&'"$ac_delim"'/g
32719 s/^[ ]*#[ ]*define[ ][ ]*/ /
32726 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
32728 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
32732 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
32733 D["\
1"]=" \
3\\\\\\n
"\\/p
32735 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
32740 s/.\{148\}/&'"$ac_delim"'/g
32745 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
32748 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
32750 ' <confdefs.h | sed '
32751 s/'"$ac_delim"'/"\\\
32752 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32755 for (key in D) D_is_set[key] = 1
32758 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32760 split(line, arg, " ")
32761 if (arg[1] == "#") {
32765 defundef
= substr
(arg
[1], 2)
32768 split(mac1
, mac2
, "(") #)
32770 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
32771 if (D_is_set
[macro
]) {
32772 # Preserve the white space surrounding the "#".
32773 print prefix
"define", macro P
[macro
] D
[macro
]
32776 # Replace #undef with comments. This is necessary, for example,
32777 # in the case of _POSIX_SOURCE, which is predefined and required
32778 # on some systems where configure will not decide to define it.
32779 if (defundef
== "undef") {
32780 print
"/*", prefix defundef
, macro
, "*/"
32788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32789 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
32790 fi # test -n "$CONFIG_HEADERS"
32793 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
32798 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32800 case $ac_mode$ac_tag in
32802 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
32803 :[FH
]-) ac_tag
=-:-;;
32804 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32821 -) ac_f
="$ac_tmp/stdin";;
32822 *) # Look for the file first in the build tree, then in the source tree
32823 # (if the path is not absolute). The absolute path cannot be DOS-style,
32824 # because $ac_f cannot contain `:'.
32828 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32830 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32832 case $ac_f in *\'*) ac_f
=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32833 as_fn_append ac_file_inputs
" '$ac_f'"
32836 # Let's still pretend it is `configure' which instantiates (i.e., don't
32837 # use $as_me), people would be surprised to read:
32838 # /* config.h. Generated by config.status. */
32839 configure_input
='Generated from '`
32840 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32842 if test x
"$ac_file" != x-
; then
32843 configure_input
="$ac_file. $configure_input"
32844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32845 printf "%s\n" "$as_me: creating $ac_file" >&6;}
32847 # Neutralize special characters interpreted by sed in replacement strings.
32848 case $configure_input in #(
32849 *\
&* |
*\|
* |
*\\* )
32850 ac_sed_conf_input
=`printf "%s\n" "$configure_input" |
32851 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32852 *) ac_sed_conf_input
=$configure_input;;
32856 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
32857 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
32862 ac_dir
=`$as_dirname -- "$ac_file" ||
32863 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32864 X"$ac_file" : 'X\(//\)[^/]' \| \
32865 X"$ac_file" : 'X\(//\)$' \| \
32866 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32867 printf "%s\n" X"$ac_file" |
32868 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32872 /^X\(\/\/\)[^/].*/{
32885 as_dir
="$ac_dir"; as_fn_mkdir_p
32889 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32891 ac_dir_suffix
=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
32892 # A ".." for each directory in $ac_dir_suffix.
32893 ac_top_builddir_sub
=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32894 case $ac_top_builddir_sub in
32895 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32896 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32899 ac_abs_top_builddir
=$ac_pwd
32900 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32901 # for backward compatibility:
32902 ac_top_builddir
=$ac_top_build_prefix
32905 .
) # We are building in place.
32907 ac_top_srcdir
=$ac_top_builddir_sub
32908 ac_abs_top_srcdir
=$ac_pwd ;;
32909 [\\/]* | ?
:[\\/]* ) # Absolute name.
32910 ac_srcdir
=$srcdir$ac_dir_suffix;
32911 ac_top_srcdir
=$srcdir
32912 ac_abs_top_srcdir
=$srcdir ;;
32913 *) # Relative name.
32914 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32915 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32916 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32918 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32928 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32929 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32931 ac_MKDIR_P
=$MKDIR_P
32933 [\\/$
]* | ?
:[\\/]* ) ;;
32934 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
32938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32939 # If the template does not know about datarootdir, expand it.
32940 # FIXME: This hack should be removed a few years after 2.60.
32941 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32952 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32953 *datarootdir
*) ac_datarootdir_seen
=yes;;
32954 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32956 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32958 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32959 ac_datarootdir_hack='
32960 s&@datadir@&$datadir&g
32961 s&@docdir@&$docdir&g
32962 s&@infodir@&$infodir&g
32963 s&@localedir@&$localedir&g
32964 s&@mandir@&$mandir&g
32965 s&\\\${datarootdir}&$datarootdir&g' ;;
32969 # Neutralize VPATH when `$srcdir' = `.'.
32970 # Shell code in configure.ac might set extrasub.
32971 # FIXME: do we really want to maintain this feature?
32972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32973 ac_sed_extra="$ac_vpsub
32976 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32978 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32979 s|@configure_input@|
$ac_sed_conf_input|
;t t
32980 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32981 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32982 s
&@srcdir@
&$ac_srcdir&;t t
32983 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32984 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32985 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32986 s
&@builddir@
&$ac_builddir&;t t
32987 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32988 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32989 s
&@INSTALL@
&$ac_INSTALL&;t t
32990 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
32991 $ac_datarootdir_hack
32993 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
32994 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32996 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32997 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32998 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32999 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
33000 { printf "%s
\n" "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
33001 which seems to be undefined. Please make sure it is defined" >&5
33002 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
33003 which seems to be undefined. Please make sure it is defined" >&2;}
33005 rm -f "$ac_tmp/stdin"
33007 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
33008 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
33010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33016 if test x"$ac_file" != x-; then
33018 printf "%s\n" "/* $configure_input */" >&1 \
33019 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
33020 } >"$ac_tmp/config.h" \
33021 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33022 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
33023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
33024 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
33027 mv "$ac_tmp/config.h" "$ac_file" \
33028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
33031 printf "%s\n" "/* $configure_input */" >&1 \
33032 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
33033 || as_fn_error $? "could not create -" "$LINENO" 5
33041 case $ac_file$ac_mode in
33042 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;;
33050 ac_clean_files=$ac_clean_files_save
33052 test $ac_write_fail = 0 ||
33053 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33056 # configure is writing to config.log, and then calls config.status.
33057 # config.status does its own redirection, appending to config.log.
33058 # Unfortunately, on DOS this fails, as config.log is still kept open
33059 # by configure, so config.status won't be able to
write to it
; its
33060 # output is simply discarded. So we exec the FD to /dev/null,
33061 # effectively closing config.log, so it can be properly (re)opened and
33062 # appended to by config.status. When coming back to configure, we
33063 # need to make the FD available again.
33064 if test "$no_create" != yes; then
33066 ac_config_status_args
=
33067 test "$silent" = yes &&
33068 ac_config_status_args
="$ac_config_status_args --quiet"
33070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33073 # would make configure fail if this is the last instruction.
33074 $ac_cs_success || as_fn_exit
1
33076 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33078 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Modules/Setup.local" >&5
33083 printf "%s\n" "$as_me: creating Modules/Setup.local" >&6;}
33084 if test ! -f Modules
/Setup.
local
33086 echo "# Edit this file for local setup changes" >Modules
/Setup.
local
33089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Makefile" >&5
33090 printf "%s\n" "$as_me: creating Makefile" >&6;}
33091 $SHELL $srcdir/Modules
/makesetup
-c $srcdir/Modules
/config.c.
in \
33093 Modules
/Setup.
local Modules
/Setup.stdlib Modules
/Setup.bootstrap
$srcdir/Modules
/Setup
33094 if test $?
-ne 0; then
33095 as_fn_error $?
"makesetup failed" "$LINENO" 5
33098 mv config.c Modules
33100 if test -z "$PKG_CONFIG"; then
33101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&5
33102 printf "%s\n" "$as_me: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&2;}
33105 if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then
33106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}:
33108 If you want a release build with all stable optimizations active (PGO, etc),
33109 please run ./configure --enable-optimizations
33111 printf "%s\n" "$as_me:
33113 If you want a release build with all stable optimizations active (PGO, etc),
33114 please run ./configure --enable-optimizations
33118 if test "x$PY_SUPPORT_TIER" = x0
33120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
33122 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
33123 CPython core team, see https://peps.python.org/pep-0011/ for more information.
33125 printf "%s\n" "$as_me: WARNING:
33127 Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the
33128 CPython core team, see https://peps.python.org/pep-0011/ for more information.
33132 if test "$ac_cv_header_stdatomic_h" != "yes"; then
33133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Your compiler or platform does have a working C11 stdatomic.h. A future version of Python may require stdatomic.h." >&5
33134 printf "%s\n" "$as_me: Your compiler or platform does have a working C11 stdatomic.h. A future version of Python may require stdatomic.h." >&6;}