1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for python 3.13. 4# 5# Report bugs to <https://github.com/python/cpython/issues/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 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## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 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+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 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. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 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). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 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. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 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. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $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'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 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+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || 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 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 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 215then : 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 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 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. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $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'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 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." 269 else 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." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298 299# as_fn_set_status STATUS 300# ----------------------- 301# Set $? to STATUS, without forking. 302as_fn_set_status () 303{ 304 return $1 305} # as_fn_set_status 306 307# as_fn_exit STATUS 308# ----------------- 309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 310as_fn_exit () 311{ 312 set +e 313 as_fn_set_status $1 314 exit $1 315} # as_fn_exit 316# as_fn_nop 317# --------- 318# Do nothing but, unlike ":", preserve the value of $?. 319as_fn_nop () 320{ 321 return $? 322} 323as_nop=as_fn_nop 324 325# as_fn_mkdir_p 326# ------------- 327# Create "$as_dir" as a directory, including parents if necessary. 328as_fn_mkdir_p () 329{ 330 331 case $as_dir in #( 332 -*) as_dir=./$as_dir;; 333 esac 334 test -d "$as_dir" || eval $as_mkdir_p || { 335 as_dirs= 336 while :; do 337 case $as_dir in #( 338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 339 *) as_qdir=$as_dir;; 340 esac 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 || 347printf "%s\n" X"$as_dir" | 348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)[^/].*/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\/\)$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\).*/{ 361 s//\1/ 362 q 363 } 364 s/.*/./; q'` 365 test -d "$as_dir" && break 366 done 367 test -z "$as_dirs" || eval "mkdir $as_dirs" 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 369 370 371} # as_fn_mkdir_p 372 373# as_fn_executable_p FILE 374# ----------------------- 375# Test if FILE is an executable regular file. 376as_fn_executable_p () 377{ 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 385# implementations. 386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 387then : 388 eval 'as_fn_append () 389 { 390 eval $1+=\$2 391 }' 392else $as_nop 393 as_fn_append () 394 { 395 eval $1=\$$1\$2 396 } 397fi # as_fn_append 398 399# as_fn_arith ARG... 400# ------------------ 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. 404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 405then : 406 eval 'as_fn_arith () 407 { 408 as_val=$(( $* )) 409 }' 410else $as_nop 411 as_fn_arith () 412 { 413 as_val=`expr "$@" || test $? -eq 1` 414 } 415fi # as_fn_arith 416 417# as_fn_nop 418# --------- 419# Do nothing but, unlike ":", preserve the value of $?. 420as_fn_nop () 421{ 422 return $? 423} 424as_nop=as_fn_nop 425 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. 431as_fn_error () 432{ 433 as_status=$1; test $as_status -eq 0 && as_status=1 434 if test "$4"; then 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 437 fi 438 printf "%s\n" "$as_me: error: $2" >&2 439 as_fn_exit $as_status 440} # as_fn_error 441 442if expr a : '\(a\)' >/dev/null 2>&1 && 443 test "X`expr 00001 : '.*\(...\)'`" = X001; then 444 as_expr=expr 445else 446 as_expr=false 447fi 448 449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 450 as_basename=basename 451else 452 as_basename=false 453fi 454 455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 456 as_dirname=dirname 457else 458 as_dirname=false 459fi 460 461as_me=`$as_basename -- "$0" || 462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 463 X"$0" : 'X\(//\)$' \| \ 464 X"$0" : 'X\(/\)' \| . 2>/dev/null || 465printf "%s\n" X/"$0" | 466 sed '/^.*\/\([^/][^/]*\)\/*$/{ 467 s//\1/ 468 q 469 } 470 /^X\/\(\/\/\)$/{ 471 s//\1/ 472 q 473 } 474 /^X\/\(\/\).*/{ 475 s//\1/ 476 q 477 } 478 s/.*/./; q'` 479 480# Avoid depending upon Character Ranges. 481as_cr_letters='abcdefghijklmnopqrstuvwxyz' 482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 483as_cr_Letters=$as_cr_letters$as_cr_LETTERS 484as_cr_digits='0123456789' 485as_cr_alnum=$as_cr_Letters$as_cr_digits 486 487 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. :-) 493 sed -n ' 494 p 495 /[$]LINENO/= 496 ' <$as_myself | 497 sed ' 498 s/[$]LINENO.*/&-/ 499 t lineno 500 b 501 :lineno 502 N 503 :loop 504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 505 t loop 506 s/-\n.*// 507 ' >$as_me.lineno && 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; } 510 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). 518 . "./$as_me.lineno" 519 # Exit status is that of the last command. 520 exit 521} 522 523 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. 527ECHO_C= ECHO_N= ECHO_T= 528case `echo -n x` in #((((( 529-n*) 530 case `echo 'xy\c'` in 531 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 532 xy) ECHO_C='\c';; 533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 534 ECHO_T=' ';; 535 esac;; 536*) 537 ECHO_N='-n';; 538esac 539 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. 543as_echo='printf %s\n' 544as_echo_n='printf %s' 545 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 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 || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 586 587# Sed expression to map a string onto a valid variable name. 588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 589 590 591test -n "$DJDIR" || exec 7<&0 </dev/null 592exec 6>&1 593 594# Name of the host. 595# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 596# so uname gets run too. 597ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 598 599# 600# Initializations. 601# 602ac_default_prefix=/usr/local 603ac_clean_files= 604ac_config_libobj_dir=. 605LIBOBJS= 606cross_compiling=no 607subdirs= 608MFLAGS= 609MAKEFLAGS= 610 611# Identity of this package. 612PACKAGE_NAME='python' 613PACKAGE_TARNAME='python' 614PACKAGE_VERSION='3.13' 615PACKAGE_STRING='python 3.13' 616PACKAGE_BUGREPORT='https://github.com/python/cpython/issues/' 617PACKAGE_URL='' 618 619ac_unique_file="Include/object.h" 620# Factoring default headers for most tests. 621ac_includes_default="\ 622#include <stddef.h> 623#ifdef HAVE_STDIO_H 624# include <stdio.h> 625#endif 626#ifdef HAVE_STDLIB_H 627# include <stdlib.h> 628#endif 629#ifdef HAVE_STRING_H 630# include <string.h> 631#endif 632#ifdef HAVE_INTTYPES_H 633# include <inttypes.h> 634#endif 635#ifdef HAVE_STDINT_H 636# include <stdint.h> 637#endif 638#ifdef HAVE_STRINGS_H 639# include <strings.h> 640#endif 641#ifdef HAVE_SYS_TYPES_H 642# include <sys/types.h> 643#endif 644#ifdef HAVE_SYS_STAT_H 645# include <sys/stat.h> 646#endif 647#ifdef HAVE_UNISTD_H 648# include <unistd.h> 649#endif" 650 651ac_header_c_list= 652ac_subst_vars='LTLIBOBJS 653MODULE_BLOCK 654MODULE_XXLIMITED_35_FALSE 655MODULE_XXLIMITED_35_TRUE 656MODULE_XXLIMITED_FALSE 657MODULE_XXLIMITED_TRUE 658MODULE__CTYPES_TEST_FALSE 659MODULE__CTYPES_TEST_TRUE 660MODULE__XXTESTFUZZ_FALSE 661MODULE__XXTESTFUZZ_TRUE 662MODULE_XXSUBTYPE_FALSE 663MODULE_XXSUBTYPE_TRUE 664MODULE__TESTEXTERNALINSPECTION_FALSE 665MODULE__TESTEXTERNALINSPECTION_TRUE 666MODULE__TESTSINGLEPHASE_FALSE 667MODULE__TESTSINGLEPHASE_TRUE 668MODULE__TESTMULTIPHASE_FALSE 669MODULE__TESTMULTIPHASE_TRUE 670MODULE__TESTIMPORTMULTIPLE_FALSE 671MODULE__TESTIMPORTMULTIPLE_TRUE 672MODULE__TESTBUFFER_FALSE 673MODULE__TESTBUFFER_TRUE 674MODULE__TESTINTERNALCAPI_FALSE 675MODULE__TESTINTERNALCAPI_TRUE 676MODULE__TESTLIMITEDCAPI_FALSE 677MODULE__TESTLIMITEDCAPI_TRUE 678MODULE__TESTCLINIC_LIMITED_FALSE 679MODULE__TESTCLINIC_LIMITED_TRUE 680MODULE__TESTCLINIC_FALSE 681MODULE__TESTCLINIC_TRUE 682MODULE__TESTCAPI_FALSE 683MODULE__TESTCAPI_TRUE 684MODULE__HASHLIB_FALSE 685MODULE__HASHLIB_TRUE 686MODULE__SSL_FALSE 687MODULE__SSL_TRUE 688MODULE__LZMA_FALSE 689MODULE__LZMA_TRUE 690MODULE__BZ2_FALSE 691MODULE__BZ2_TRUE 692MODULE_BINASCII_FALSE 693MODULE_BINASCII_TRUE 694MODULE_ZLIB_FALSE 695MODULE_ZLIB_TRUE 696MODULE__UUID_FALSE 697MODULE__UUID_TRUE 698MODULE__TKINTER_FALSE 699MODULE__TKINTER_TRUE 700MODULE__SQLITE3_FALSE 701MODULE__SQLITE3_TRUE 702MODULE_READLINE_FALSE 703MODULE_READLINE_TRUE 704MODULE__GDBM_FALSE 705MODULE__GDBM_TRUE 706MODULE__DBM_FALSE 707MODULE__DBM_TRUE 708MODULE__DECIMAL_FALSE 709MODULE__DECIMAL_TRUE 710MODULE__CURSES_PANEL_FALSE 711MODULE__CURSES_PANEL_TRUE 712MODULE__CURSES_FALSE 713MODULE__CURSES_TRUE 714MODULE__CTYPES_FALSE 715MODULE__CTYPES_TRUE 716MODULE__BLAKE2_FALSE 717MODULE__BLAKE2_TRUE 718MODULE__SHA3_FALSE 719MODULE__SHA3_TRUE 720MODULE__SHA2_FALSE 721MODULE__SHA2_TRUE 722MODULE__SHA1_FALSE 723MODULE__SHA1_TRUE 724MODULE__MD5_FALSE 725MODULE__MD5_TRUE 726MODULE_UNICODEDATA_FALSE 727MODULE_UNICODEDATA_TRUE 728MODULE__MULTIBYTECODEC_FALSE 729MODULE__MULTIBYTECODEC_TRUE 730MODULE__CODECS_TW_FALSE 731MODULE__CODECS_TW_TRUE 732MODULE__CODECS_KR_FALSE 733MODULE__CODECS_KR_TRUE 734MODULE__CODECS_JP_FALSE 735MODULE__CODECS_JP_TRUE 736MODULE__CODECS_ISO2022_FALSE 737MODULE__CODECS_ISO2022_TRUE 738MODULE__CODECS_HK_FALSE 739MODULE__CODECS_HK_TRUE 740MODULE__CODECS_CN_FALSE 741MODULE__CODECS_CN_TRUE 742MODULE__ELEMENTTREE_FALSE 743MODULE__ELEMENTTREE_TRUE 744MODULE_PYEXPAT_FALSE 745MODULE_PYEXPAT_TRUE 746MODULE_TERMIOS_FALSE 747MODULE_TERMIOS_TRUE 748MODULE_SYSLOG_FALSE 749MODULE_SYSLOG_TRUE 750MODULE__SCPROXY_FALSE 751MODULE__SCPROXY_TRUE 752MODULE_RESOURCE_FALSE 753MODULE_RESOURCE_TRUE 754MODULE_PWD_FALSE 755MODULE_PWD_TRUE 756MODULE_GRP_FALSE 757MODULE_GRP_TRUE 758MODULE__SOCKET_FALSE 759MODULE__SOCKET_TRUE 760MODULE_MMAP_FALSE 761MODULE_MMAP_TRUE 762MODULE_FCNTL_FALSE 763MODULE_FCNTL_TRUE 764MODULE__DATETIME_FALSE 765MODULE__DATETIME_TRUE 766MODULE_MATH_FALSE 767MODULE_MATH_TRUE 768MODULE_CMATH_FALSE 769MODULE_CMATH_TRUE 770MODULE__STATISTICS_FALSE 771MODULE__STATISTICS_TRUE 772MODULE__POSIXSHMEM_FALSE 773MODULE__POSIXSHMEM_TRUE 774MODULE__MULTIPROCESSING_FALSE 775MODULE__MULTIPROCESSING_TRUE 776MODULE__ZONEINFO_FALSE 777MODULE__ZONEINFO_TRUE 778MODULE__INTERPQUEUES_FALSE 779MODULE__INTERPQUEUES_TRUE 780MODULE__INTERPCHANNELS_FALSE 781MODULE__INTERPCHANNELS_TRUE 782MODULE__INTERPRETERS_FALSE 783MODULE__INTERPRETERS_TRUE 784MODULE__TYPING_FALSE 785MODULE__TYPING_TRUE 786MODULE__STRUCT_FALSE 787MODULE__STRUCT_TRUE 788MODULE_SELECT_FALSE 789MODULE_SELECT_TRUE 790MODULE__RANDOM_FALSE 791MODULE__RANDOM_TRUE 792MODULE__QUEUE_FALSE 793MODULE__QUEUE_TRUE 794MODULE__POSIXSUBPROCESS_FALSE 795MODULE__POSIXSUBPROCESS_TRUE 796MODULE__PICKLE_FALSE 797MODULE__PICKLE_TRUE 798MODULE__OPCODE_FALSE 799MODULE__OPCODE_TRUE 800MODULE__LSPROF_FALSE 801MODULE__LSPROF_TRUE 802MODULE__JSON_FALSE 803MODULE__JSON_TRUE 804MODULE__HEAPQ_FALSE 805MODULE__HEAPQ_TRUE 806MODULE__CSV_FALSE 807MODULE__CSV_TRUE 808MODULE__CONTEXTVARS_FALSE 809MODULE__CONTEXTVARS_TRUE 810MODULE__BISECT_FALSE 811MODULE__BISECT_TRUE 812MODULE__ASYNCIO_FALSE 813MODULE__ASYNCIO_TRUE 814MODULE_ARRAY_FALSE 815MODULE_ARRAY_TRUE 816MODULE_TIME_FALSE 817MODULE_TIME_TRUE 818MODULE__IO_FALSE 819MODULE__IO_TRUE 820MODULE_BUILDTYPE 821TEST_MODULES 822LIBB2_LIBS 823LIBB2_CFLAGS 824OPENSSL_LDFLAGS 825OPENSSL_LIBS 826OPENSSL_INCLUDES 827ENSUREPIP 828SRCDIRS 829THREADHEADERS 830PANEL_LIBS 831PANEL_CFLAGS 832CURSES_LIBS 833CURSES_CFLAGS 834LIBEDIT_LIBS 835LIBEDIT_CFLAGS 836LIBREADLINE_LIBS 837LIBREADLINE_CFLAGS 838WHEEL_PKG_DIR 839LIBPL 840PY_ENABLE_SHARED 841PLATLIBDIR 842BINLIBDEST 843LIBPYTHON 844MODULE_DEPS_SHARED 845EXT_SUFFIX 846ALT_SOABI 847SOABI 848LIBC 849LIBM 850HAVE_GETHOSTBYNAME 851HAVE_GETHOSTBYNAME_R 852HAVE_GETHOSTBYNAME_R_3_ARG 853HAVE_GETHOSTBYNAME_R_5_ARG 854HAVE_GETHOSTBYNAME_R_6_ARG 855LIBOBJS 856LIBLZMA_LIBS 857LIBLZMA_CFLAGS 858BZIP2_LIBS 859BZIP2_CFLAGS 860ZLIB_LIBS 861ZLIB_CFLAGS 862TRUE 863MACHDEP_OBJS 864DYNLOADFILE 865DLINCLDIR 866PLATFORM_OBJS 867PLATFORM_HEADERS 868DTRACE_OBJS 869DTRACE_HEADERS 870DFLAGS 871DTRACE 872INSTALL_MIMALLOC 873MIMALLOC_HEADERS 874GDBM_LIBS 875GDBM_CFLAGS 876X11_LIBS 877X11_CFLAGS 878TCLTK_LIBS 879TCLTK_CFLAGS 880LIBSQLITE3_LIBS 881LIBSQLITE3_CFLAGS 882LIBMPDEC_INTERNAL 883LIBMPDEC_LIBS 884LIBMPDEC_CFLAGS 885MODULE__CTYPES_MALLOC_CLOSURE 886LIBFFI_LIBS 887LIBFFI_CFLAGS 888LIBEXPAT_INTERNAL 889LIBEXPAT_CFLAGS 890TZPATH 891LIBUUID_LIBS 892LIBUUID_CFLAGS 893PERF_TRAMPOLINE_OBJ 894SHLIBS 895CFLAGSFORSHARED 896LINKFORSHARED 897CCSHARED 898BLDSHARED 899LDCXXSHARED 900LDSHARED 901SHLIB_SUFFIX 902DSYMUTIL_PATH 903DSYMUTIL 904UNIVERSAL_ARCH_FLAGS 905WASM_STDLIB 906WASM_ASSETS_DIR 907LDFLAGS_NOLTO 908LDFLAGS_NODIST 909CFLAGS_NODIST 910BASECFLAGS 911CFLAGS_ALIASING 912OPT 913BOLT_APPLY_FLAGS 914BOLT_INSTRUMENT_FLAGS 915BOLT_BINARIES 916MERGE_FDATA 917LLVM_BOLT 918PREBOLT_RULE 919LLVM_PROF_FOUND 920LLVM_PROFDATA 921LLVM_PROF_ERR 922LLVM_PROF_FILE 923LLVM_PROF_MERGER 924PGO_PROF_USE_FLAG 925PGO_PROF_GEN_FLAG 926LLVM_AR_FOUND 927LLVM_AR 928PROFILE_TASK 929DEF_MAKE_RULE 930DEF_MAKE_ALL_RULE 931JIT_STENCILS_H 932REGEN_JIT_COMMAND 933ABI_THREAD 934ABIFLAGS 935LN 936MKDIR_P 937INSTALL_DATA 938INSTALL_SCRIPT 939INSTALL_PROGRAM 940ARFLAGS 941ac_ct_AR 942AR 943LINK_PYTHON_OBJS 944LINK_PYTHON_DEPS 945LIBRARY_DEPS 946NODE 947HOSTRUNNER 948STATIC_LIBPYTHON 949GNULD 950EXPORTSFROM 951EXPORTSYMS 952LINKCC 953LDVERSION 954RUNSHARED 955INSTSONAME 956LDLIBRARYDIR 957PY3LIBRARY 958BLDLIBRARY 959DLLLIBRARY 960LDLIBRARY 961LIBRARY 962BUILDEXEEXT 963NO_AS_NEEDED 964MULTIARCH_CPPFLAGS 965PLATFORM_TRIPLET 966MULTIARCH 967ac_ct_CXX 968CXX 969EGREP 970SED 971GREP 972CPP 973OBJEXT 974EXEEXT 975ac_ct_CC 976CPPFLAGS 977LDFLAGS 978CFLAGS 979CC 980HAS_XCRUN 981IPHONEOS_DEPLOYMENT_TARGET 982EXPORT_MACOSX_DEPLOYMENT_TARGET 983CONFIGURE_MACOSX_DEPLOYMENT_TARGET 984_PYTHON_HOST_PLATFORM 985APP_STORE_COMPLIANCE_PATCH 986INSTALLTARGETS 987FRAMEWORKINSTALLAPPSPREFIX 988FRAMEWORKUNIXTOOLSPREFIX 989FRAMEWORKPYTHONW 990FRAMEWORKALTINSTALLLAST 991FRAMEWORKALTINSTALLFIRST 992FRAMEWORKINSTALLLAST 993FRAMEWORKINSTALLFIRST 994RESSRCDIR 995PYTHONFRAMEWORKINSTALLNAMEPREFIX 996PYTHONFRAMEWORKINSTALLDIR 997PYTHONFRAMEWORKPREFIX 998PYTHONFRAMEWORKDIR 999PYTHONFRAMEWORKIDENTIFIER 1000PYTHONFRAMEWORK 1001LIPO_INTEL64_FLAGS 1002LIPO_32BIT_FLAGS 1003ARCH_RUN_32BIT 1004UNIVERSALSDK 1005MACHDEP 1006PKG_CONFIG_LIBDIR 1007PKG_CONFIG_PATH 1008PKG_CONFIG 1009CONFIG_ARGS 1010SOVERSION 1011VERSION 1012PYTHON_FOR_REGEN 1013PYTHON_FOR_BUILD_DEPS 1014FREEZE_MODULE_DEPS 1015FREEZE_MODULE 1016FREEZE_MODULE_BOOTSTRAP_DEPS 1017FREEZE_MODULE_BOOTSTRAP 1018PYTHON_FOR_FREEZE 1019PYTHON_FOR_BUILD 1020host_os 1021host_vendor 1022host_cpu 1023host 1024build_os 1025build_vendor 1026build_cpu 1027build 1028HAS_GIT 1029GITBRANCH 1030GITTAG 1031GITVERSION 1032BASECPPFLAGS 1033target_alias 1034host_alias 1035build_alias 1036LIBS 1037ECHO_T 1038ECHO_N 1039ECHO_C 1040DEFS 1041mandir 1042localedir 1043libdir 1044psdir 1045pdfdir 1046dvidir 1047htmldir 1048infodir 1049docdir 1050oldincludedir 1051includedir 1052runstatedir 1053localstatedir 1054sharedstatedir 1055sysconfdir 1056datadir 1057datarootdir 1058libexecdir 1059sbindir 1060bindir 1061program_transform_name 1062prefix 1063exec_prefix 1064PACKAGE_URL 1065PACKAGE_BUGREPORT 1066PACKAGE_STRING 1067PACKAGE_VERSION 1068PACKAGE_TARNAME 1069PACKAGE_NAME 1070PATH_SEPARATOR 1071SHELL' 1072ac_subst_files='' 1073ac_user_opts=' 1074enable_option_checking 1075with_build_python 1076with_pkg_config 1077enable_universalsdk 1078with_universal_archs 1079with_framework_name 1080enable_framework 1081with_app_store_compliance 1082with_emscripten_target 1083enable_wasm_dynamic_linking 1084enable_wasm_pthreads 1085with_suffix 1086enable_shared 1087with_static_libpython 1088enable_profiling 1089enable_gil 1090with_pydebug 1091with_trace_refs 1092enable_pystats 1093with_assertions 1094enable_experimental_jit 1095enable_optimizations 1096with_lto 1097enable_bolt 1098with_strict_overflow 1099with_dsymutil 1100with_address_sanitizer 1101with_memory_sanitizer 1102with_undefined_behavior_sanitizer 1103with_thread_sanitizer 1104with_hash_algorithm 1105with_tzpath 1106with_libs 1107with_system_expat 1108with_system_libmpdec 1109with_decimal_contextvar 1110enable_loadable_sqlite_extensions 1111with_dbmliborder 1112enable_ipv6 1113with_doc_strings 1114with_mimalloc 1115with_pymalloc 1116with_freelists 1117with_c_locale_coercion 1118with_valgrind 1119with_dtrace 1120with_libm 1121with_libc 1122enable_big_digits 1123with_platlibdir 1124with_wheel_pkg_dir 1125with_readline 1126with_computed_gotos 1127with_ensurepip 1128with_openssl 1129with_openssl_rpath 1130with_ssl_default_suites 1131with_builtin_hashlib_hashes 1132enable_test_modules 1133' 1134 ac_precious_vars='build_alias 1135host_alias 1136target_alias 1137PKG_CONFIG 1138PKG_CONFIG_PATH 1139PKG_CONFIG_LIBDIR 1140MACHDEP 1141CC 1142CFLAGS 1143LDFLAGS 1144LIBS 1145CPPFLAGS 1146CPP 1147HOSTRUNNER 1148PROFILE_TASK 1149BOLT_INSTRUMENT_FLAGS 1150BOLT_APPLY_FLAGS 1151LIBUUID_CFLAGS 1152LIBUUID_LIBS 1153LIBFFI_CFLAGS 1154LIBFFI_LIBS 1155LIBMPDEC_CFLAGS 1156LIBMPDEC_LIBS 1157LIBSQLITE3_CFLAGS 1158LIBSQLITE3_LIBS 1159TCLTK_CFLAGS 1160TCLTK_LIBS 1161X11_CFLAGS 1162X11_LIBS 1163GDBM_CFLAGS 1164GDBM_LIBS 1165ZLIB_CFLAGS 1166ZLIB_LIBS 1167BZIP2_CFLAGS 1168BZIP2_LIBS 1169LIBLZMA_CFLAGS 1170LIBLZMA_LIBS 1171LIBREADLINE_CFLAGS 1172LIBREADLINE_LIBS 1173LIBEDIT_CFLAGS 1174LIBEDIT_LIBS 1175CURSES_CFLAGS 1176CURSES_LIBS 1177PANEL_CFLAGS 1178PANEL_LIBS 1179LIBB2_CFLAGS 1180LIBB2_LIBS' 1181 1182 1183# Initialize some variables set by options. 1184ac_init_help= 1185ac_init_version=false 1186ac_unrecognized_opts= 1187ac_unrecognized_sep= 1188# The variables have the same names as the options, with 1189# dashes changed to underlines. 1190cache_file=/dev/null 1191exec_prefix=NONE 1192no_create= 1193no_recursion= 1194prefix=NONE 1195program_prefix=NONE 1196program_suffix=NONE 1197program_transform_name=s,x,x, 1198silent= 1199site= 1200srcdir= 1201verbose= 1202x_includes=NONE 1203x_libraries=NONE 1204 1205# Installation directory options. 1206# These are left unexpanded so users can "make install exec_prefix=/foo" 1207# and all the variables that are supposed to be based on exec_prefix 1208# by default will actually change. 1209# Use braces instead of parens because sh, perl, etc. also accept them. 1210# (The list follows the same order as the GNU Coding Standards.) 1211bindir='${exec_prefix}/bin' 1212sbindir='${exec_prefix}/sbin' 1213libexecdir='${exec_prefix}/libexec' 1214datarootdir='${prefix}/share' 1215datadir='${datarootdir}' 1216sysconfdir='${prefix}/etc' 1217sharedstatedir='${prefix}/com' 1218localstatedir='${prefix}/var' 1219runstatedir='${localstatedir}/run' 1220includedir='${prefix}/include' 1221oldincludedir='/usr/include' 1222docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1223infodir='${datarootdir}/info' 1224htmldir='${docdir}' 1225dvidir='${docdir}' 1226pdfdir='${docdir}' 1227psdir='${docdir}' 1228libdir='${exec_prefix}/lib' 1229localedir='${datarootdir}/locale' 1230mandir='${datarootdir}/man' 1231 1232ac_prev= 1233ac_dashdash= 1234for ac_option 1235do 1236 # If the previous option needs an argument, assign it. 1237 if test -n "$ac_prev"; then 1238 eval $ac_prev=\$ac_option 1239 ac_prev= 1240 continue 1241 fi 1242 1243 case $ac_option in 1244 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1245 *=) ac_optarg= ;; 1246 *) ac_optarg=yes ;; 1247 esac 1248 1249 case $ac_dashdash$ac_option in 1250 --) 1251 ac_dashdash=yes ;; 1252 1253 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1254 ac_prev=bindir ;; 1255 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1256 bindir=$ac_optarg ;; 1257 1258 -build | --build | --buil | --bui | --bu) 1259 ac_prev=build_alias ;; 1260 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1261 build_alias=$ac_optarg ;; 1262 1263 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1264 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1265 ac_prev=cache_file ;; 1266 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1267 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1268 cache_file=$ac_optarg ;; 1269 1270 --config-cache | -C) 1271 cache_file=config.cache ;; 1272 1273 -datadir | --datadir | --datadi | --datad) 1274 ac_prev=datadir ;; 1275 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1276 datadir=$ac_optarg ;; 1277 1278 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1279 | --dataroo | --dataro | --datar) 1280 ac_prev=datarootdir ;; 1281 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1282 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1283 datarootdir=$ac_optarg ;; 1284 1285 -disable-* | --disable-*) 1286 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1287 # Reject names that are not valid shell variable names. 1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1289 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1290 ac_useropt_orig=$ac_useropt 1291 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1292 case $ac_user_opts in 1293 *" 1294"enable_$ac_useropt" 1295"*) ;; 1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1297 ac_unrecognized_sep=', ';; 1298 esac 1299 eval enable_$ac_useropt=no ;; 1300 1301 -docdir | --docdir | --docdi | --doc | --do) 1302 ac_prev=docdir ;; 1303 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1304 docdir=$ac_optarg ;; 1305 1306 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1307 ac_prev=dvidir ;; 1308 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1309 dvidir=$ac_optarg ;; 1310 1311 -enable-* | --enable-*) 1312 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1313 # Reject names that are not valid shell variable names. 1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1315 as_fn_error $? "invalid feature name: \`$ac_useropt'" 1316 ac_useropt_orig=$ac_useropt 1317 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1318 case $ac_user_opts in 1319 *" 1320"enable_$ac_useropt" 1321"*) ;; 1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1323 ac_unrecognized_sep=', ';; 1324 esac 1325 eval enable_$ac_useropt=\$ac_optarg ;; 1326 1327 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1328 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1329 | --exec | --exe | --ex) 1330 ac_prev=exec_prefix ;; 1331 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1332 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1333 | --exec=* | --exe=* | --ex=*) 1334 exec_prefix=$ac_optarg ;; 1335 1336 -gas | --gas | --ga | --g) 1337 # Obsolete; use --with-gas. 1338 with_gas=yes ;; 1339 1340 -help | --help | --hel | --he | -h) 1341 ac_init_help=long ;; 1342 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1343 ac_init_help=recursive ;; 1344 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1345 ac_init_help=short ;; 1346 1347 -host | --host | --hos | --ho) 1348 ac_prev=host_alias ;; 1349 -host=* | --host=* | --hos=* | --ho=*) 1350 host_alias=$ac_optarg ;; 1351 1352 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1353 ac_prev=htmldir ;; 1354 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1355 | --ht=*) 1356 htmldir=$ac_optarg ;; 1357 1358 -includedir | --includedir | --includedi | --included | --include \ 1359 | --includ | --inclu | --incl | --inc) 1360 ac_prev=includedir ;; 1361 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1362 | --includ=* | --inclu=* | --incl=* | --inc=*) 1363 includedir=$ac_optarg ;; 1364 1365 -infodir | --infodir | --infodi | --infod | --info | --inf) 1366 ac_prev=infodir ;; 1367 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1368 infodir=$ac_optarg ;; 1369 1370 -libdir | --libdir | --libdi | --libd) 1371 ac_prev=libdir ;; 1372 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1373 libdir=$ac_optarg ;; 1374 1375 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1376 | --libexe | --libex | --libe) 1377 ac_prev=libexecdir ;; 1378 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1379 | --libexe=* | --libex=* | --libe=*) 1380 libexecdir=$ac_optarg ;; 1381 1382 -localedir | --localedir | --localedi | --localed | --locale) 1383 ac_prev=localedir ;; 1384 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1385 localedir=$ac_optarg ;; 1386 1387 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1388 | --localstate | --localstat | --localsta | --localst | --locals) 1389 ac_prev=localstatedir ;; 1390 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1391 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1392 localstatedir=$ac_optarg ;; 1393 1394 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1395 ac_prev=mandir ;; 1396 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1397 mandir=$ac_optarg ;; 1398 1399 -nfp | --nfp | --nf) 1400 # Obsolete; use --without-fp. 1401 with_fp=no ;; 1402 1403 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1404 | --no-cr | --no-c | -n) 1405 no_create=yes ;; 1406 1407 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1408 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1409 no_recursion=yes ;; 1410 1411 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1412 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1413 | --oldin | --oldi | --old | --ol | --o) 1414 ac_prev=oldincludedir ;; 1415 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1416 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1417 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1418 oldincludedir=$ac_optarg ;; 1419 1420 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1421 ac_prev=prefix ;; 1422 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1423 prefix=$ac_optarg ;; 1424 1425 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1426 | --program-pre | --program-pr | --program-p) 1427 ac_prev=program_prefix ;; 1428 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1429 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1430 program_prefix=$ac_optarg ;; 1431 1432 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1433 | --program-suf | --program-su | --program-s) 1434 ac_prev=program_suffix ;; 1435 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1436 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1437 program_suffix=$ac_optarg ;; 1438 1439 -program-transform-name | --program-transform-name \ 1440 | --program-transform-nam | --program-transform-na \ 1441 | --program-transform-n | --program-transform- \ 1442 | --program-transform | --program-transfor \ 1443 | --program-transfo | --program-transf \ 1444 | --program-trans | --program-tran \ 1445 | --progr-tra | --program-tr | --program-t) 1446 ac_prev=program_transform_name ;; 1447 -program-transform-name=* | --program-transform-name=* \ 1448 | --program-transform-nam=* | --program-transform-na=* \ 1449 | --program-transform-n=* | --program-transform-=* \ 1450 | --program-transform=* | --program-transfor=* \ 1451 | --program-transfo=* | --program-transf=* \ 1452 | --program-trans=* | --program-tran=* \ 1453 | --progr-tra=* | --program-tr=* | --program-t=*) 1454 program_transform_name=$ac_optarg ;; 1455 1456 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1457 ac_prev=pdfdir ;; 1458 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1459 pdfdir=$ac_optarg ;; 1460 1461 -psdir | --psdir | --psdi | --psd | --ps) 1462 ac_prev=psdir ;; 1463 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1464 psdir=$ac_optarg ;; 1465 1466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1467 | -silent | --silent | --silen | --sile | --sil) 1468 silent=yes ;; 1469 1470 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1471 | --runstate | --runstat | --runsta | --runst | --runs \ 1472 | --run | --ru | --r) 1473 ac_prev=runstatedir ;; 1474 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1475 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1476 | --run=* | --ru=* | --r=*) 1477 runstatedir=$ac_optarg ;; 1478 1479 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1480 ac_prev=sbindir ;; 1481 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1482 | --sbi=* | --sb=*) 1483 sbindir=$ac_optarg ;; 1484 1485 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1486 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1487 | --sharedst | --shareds | --shared | --share | --shar \ 1488 | --sha | --sh) 1489 ac_prev=sharedstatedir ;; 1490 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1491 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1492 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1493 | --sha=* | --sh=*) 1494 sharedstatedir=$ac_optarg ;; 1495 1496 -site | --site | --sit) 1497 ac_prev=site ;; 1498 -site=* | --site=* | --sit=*) 1499 site=$ac_optarg ;; 1500 1501 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1502 ac_prev=srcdir ;; 1503 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1504 srcdir=$ac_optarg ;; 1505 1506 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1507 | --syscon | --sysco | --sysc | --sys | --sy) 1508 ac_prev=sysconfdir ;; 1509 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1510 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1511 sysconfdir=$ac_optarg ;; 1512 1513 -target | --target | --targe | --targ | --tar | --ta | --t) 1514 ac_prev=target_alias ;; 1515 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1516 target_alias=$ac_optarg ;; 1517 1518 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1519 verbose=yes ;; 1520 1521 -version | --version | --versio | --versi | --vers | -V) 1522 ac_init_version=: ;; 1523 1524 -with-* | --with-*) 1525 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1526 # Reject names that are not valid shell variable names. 1527 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1528 as_fn_error $? "invalid package name: \`$ac_useropt'" 1529 ac_useropt_orig=$ac_useropt 1530 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1531 case $ac_user_opts in 1532 *" 1533"with_$ac_useropt" 1534"*) ;; 1535 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1536 ac_unrecognized_sep=', ';; 1537 esac 1538 eval with_$ac_useropt=\$ac_optarg ;; 1539 1540 -without-* | --without-*) 1541 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1542 # Reject names that are not valid shell variable names. 1543 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1544 as_fn_error $? "invalid package name: \`$ac_useropt'" 1545 ac_useropt_orig=$ac_useropt 1546 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 1547 case $ac_user_opts in 1548 *" 1549"with_$ac_useropt" 1550"*) ;; 1551 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1552 ac_unrecognized_sep=', ';; 1553 esac 1554 eval with_$ac_useropt=no ;; 1555 1556 --x) 1557 # Obsolete; use --with-x. 1558 with_x=yes ;; 1559 1560 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1561 | --x-incl | --x-inc | --x-in | --x-i) 1562 ac_prev=x_includes ;; 1563 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1564 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1565 x_includes=$ac_optarg ;; 1566 1567 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1568 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1569 ac_prev=x_libraries ;; 1570 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1571 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1572 x_libraries=$ac_optarg ;; 1573 1574 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1575Try \`$0 --help' for more information" 1576 ;; 1577 1578 *=*) 1579 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1580 # Reject names that are not valid shell variable names. 1581 case $ac_envvar in #( 1582 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1583 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1584 esac 1585 eval $ac_envvar=\$ac_optarg 1586 export $ac_envvar ;; 1587 1588 *) 1589 # FIXME: should be removed in autoconf 3.0. 1590 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1591 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1592 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 1593 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1594 ;; 1595 1596 esac 1597done 1598 1599if test -n "$ac_prev"; then 1600 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1601 as_fn_error $? "missing argument to $ac_option" 1602fi 1603 1604if test -n "$ac_unrecognized_opts"; then 1605 case $enable_option_checking in 1606 no) ;; 1607 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1608 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1609 esac 1610fi 1611 1612# Check all directory arguments for consistency. 1613for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1614 datadir sysconfdir sharedstatedir localstatedir includedir \ 1615 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1616 libdir localedir mandir runstatedir 1617do 1618 eval ac_val=\$$ac_var 1619 # Remove trailing slashes. 1620 case $ac_val in 1621 */ ) 1622 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1623 eval $ac_var=\$ac_val;; 1624 esac 1625 # Be sure to have absolute directory names. 1626 case $ac_val in 1627 [\\/$]* | ?:[\\/]* ) continue;; 1628 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1629 esac 1630 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1631done 1632 1633# There might be people who depend on the old broken behavior: `$host' 1634# used to hold the argument of --host etc. 1635# FIXME: To remove some day. 1636build=$build_alias 1637host=$host_alias 1638target=$target_alias 1639 1640# FIXME: To remove some day. 1641if test "x$host_alias" != x; then 1642 if test "x$build_alias" = x; then 1643 cross_compiling=maybe 1644 elif test "x$build_alias" != "x$host_alias"; then 1645 cross_compiling=yes 1646 fi 1647fi 1648 1649ac_tool_prefix= 1650test -n "$host_alias" && ac_tool_prefix=$host_alias- 1651 1652test "$silent" = yes && exec 6>/dev/null 1653 1654 1655ac_pwd=`pwd` && test -n "$ac_pwd" && 1656ac_ls_di=`ls -di .` && 1657ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1658 as_fn_error $? "working directory cannot be determined" 1659test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1660 as_fn_error $? "pwd does not report name of working directory" 1661 1662 1663# Find the source files, if location was not specified. 1664if test -z "$srcdir"; then 1665 ac_srcdir_defaulted=yes 1666 # Try the directory containing this script, then the parent directory. 1667 ac_confdir=`$as_dirname -- "$as_myself" || 1668$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1669 X"$as_myself" : 'X\(//\)[^/]' \| \ 1670 X"$as_myself" : 'X\(//\)$' \| \ 1671 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1672printf "%s\n" X"$as_myself" | 1673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1674 s//\1/ 1675 q 1676 } 1677 /^X\(\/\/\)[^/].*/{ 1678 s//\1/ 1679 q 1680 } 1681 /^X\(\/\/\)$/{ 1682 s//\1/ 1683 q 1684 } 1685 /^X\(\/\).*/{ 1686 s//\1/ 1687 q 1688 } 1689 s/.*/./; q'` 1690 srcdir=$ac_confdir 1691 if test ! -r "$srcdir/$ac_unique_file"; then 1692 srcdir=.. 1693 fi 1694else 1695 ac_srcdir_defaulted=no 1696fi 1697if test ! -r "$srcdir/$ac_unique_file"; then 1698 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1699 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1700fi 1701ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1702ac_abs_confdir=`( 1703 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1704 pwd)` 1705# When building in place, set srcdir=. 1706if test "$ac_abs_confdir" = "$ac_pwd"; then 1707 srcdir=. 1708fi 1709# Remove unnecessary trailing slashes from srcdir. 1710# Double slashes in file names in object file debugging info 1711# mess up M-x gdb in Emacs. 1712case $srcdir in 1713*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1714esac 1715for ac_var in $ac_precious_vars; do 1716 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1717 eval ac_env_${ac_var}_value=\$${ac_var} 1718 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1719 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1720done 1721 1722# 1723# Report the --help message. 1724# 1725if test "$ac_init_help" = "long"; then 1726 # Omit some internal or obsolete options to make the list less imposing. 1727 # This message is too long to be a string in the A/UX 3.1 sh. 1728 cat <<_ACEOF 1729\`configure' configures python 3.13 to adapt to many kinds of systems. 1730 1731Usage: $0 [OPTION]... [VAR=VALUE]... 1732 1733To assign environment variables (e.g., CC, CFLAGS...), specify them as 1734VAR=VALUE. See below for descriptions of some of the useful variables. 1735 1736Defaults for the options are specified in brackets. 1737 1738Configuration: 1739 -h, --help display this help and exit 1740 --help=short display options specific to this package 1741 --help=recursive display the short help of all the included packages 1742 -V, --version display version information and exit 1743 -q, --quiet, --silent do not print \`checking ...' messages 1744 --cache-file=FILE cache test results in FILE [disabled] 1745 -C, --config-cache alias for \`--cache-file=config.cache' 1746 -n, --no-create do not create output files 1747 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1748 1749Installation directories: 1750 --prefix=PREFIX install architecture-independent files in PREFIX 1751 [$ac_default_prefix] 1752 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1753 [PREFIX] 1754 1755By default, \`make install' will install all the files in 1756\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1757an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1758for instance \`--prefix=\$HOME'. 1759 1760For better control, use the options below. 1761 1762Fine tuning of the installation directories: 1763 --bindir=DIR user executables [EPREFIX/bin] 1764 --sbindir=DIR system admin executables [EPREFIX/sbin] 1765 --libexecdir=DIR program executables [EPREFIX/libexec] 1766 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1767 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1768 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1769 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1770 --libdir=DIR object code libraries [EPREFIX/lib] 1771 --includedir=DIR C header files [PREFIX/include] 1772 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1773 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1774 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1775 --infodir=DIR info documentation [DATAROOTDIR/info] 1776 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1777 --mandir=DIR man documentation [DATAROOTDIR/man] 1778 --docdir=DIR documentation root [DATAROOTDIR/doc/python] 1779 --htmldir=DIR html documentation [DOCDIR] 1780 --dvidir=DIR dvi documentation [DOCDIR] 1781 --pdfdir=DIR pdf documentation [DOCDIR] 1782 --psdir=DIR ps documentation [DOCDIR] 1783_ACEOF 1784 1785 cat <<\_ACEOF 1786 1787System types: 1788 --build=BUILD configure for building on BUILD [guessed] 1789 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1790_ACEOF 1791fi 1792 1793if test -n "$ac_init_help"; then 1794 case $ac_init_help in 1795 short | recursive ) echo "Configuration of python 3.13:";; 1796 esac 1797 cat <<\_ACEOF 1798 1799Optional Features: 1800 --disable-option-checking ignore unrecognized --enable/--with options 1801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1803 --enable-universalsdk[=SDKDIR] 1804 create a universal binary build. SDKDIR specifies 1805 which macOS SDK should be used to perform the build, 1806 see Mac/README.rst. (default is no) 1807 --enable-framework[=INSTALLDIR] 1808 create a Python.framework rather than a traditional 1809 Unix install. optional INSTALLDIR specifies the 1810 installation path. see Mac/README.rst (default is 1811 no) 1812 --enable-wasm-dynamic-linking 1813 Enable dynamic linking support for WebAssembly 1814 (default is no) 1815 --enable-wasm-pthreads Enable pthread emulation for WebAssembly (default is 1816 no) 1817 --enable-shared enable building a shared Python library (default is 1818 no) 1819 --enable-profiling enable C-level code profiling with gprof (default is 1820 no) 1821 --disable-gil enable experimental support for running without the 1822 GIL (default is no) 1823 --enable-pystats enable internal statistics gathering (default is no) 1824 --enable-experimental-jit[=no|yes|yes-off|interpreter] 1825 build the experimental just-in-time compiler 1826 (default is no) 1827 --enable-optimizations enable expensive, stable optimizations (PGO, etc.) 1828 (default is no) 1829 --enable-bolt enable usage of the llvm-bolt post-link optimizer 1830 (default is no) 1831 --enable-loadable-sqlite-extensions 1832 support loadable extensions in the sqlite3 module, 1833 see Doc/library/sqlite3.rst (default is no) 1834 --enable-ipv6 enable ipv6 (with ipv4) support, see 1835 Doc/library/socket.rst (default is yes if supported) 1836 --enable-big-digits[=15|30] 1837 use big digits (30 or 15 bits) for Python longs 1838 (default is 30)] 1839 --disable-test-modules don't build nor install test modules 1840 1841Optional Packages: 1842 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1843 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1844 --with-build-python=python3.13 1845 path to build python binary for cross compiling 1846 (default: _bootstrap_python or python3.13) 1847 --with-pkg-config=[yes|no|check] 1848 use pkg-config to detect build options (default is 1849 check) 1850 --with-universal-archs=ARCH 1851 specify the kind of macOS universal binary that 1852 should be created. This option is only valid when 1853 --enable-universalsdk is set; options are: 1854 ("universal2", "intel-64", "intel-32", "intel", 1855 "32-bit", "64-bit", "3-way", or "all") see 1856 Mac/README.rst 1857 --with-framework-name=FRAMEWORK 1858 specify the name for the python framework on macOS 1859 only valid when --enable-framework is set. see 1860 Mac/README.rst (default is 'Python') 1861 --with-app-store-compliance=[PATCH-FILE] 1862 Enable any patches required for compiliance with app 1863 stores. Optional PATCH-FILE specifies the custom 1864 patch to apply. 1865 --with-emscripten-target=[browser|node] 1866 Emscripten platform 1867 --with-suffix=SUFFIX set executable suffix to SUFFIX (default is empty, 1868 yes is mapped to '.exe') 1869 --without-static-libpython 1870 do not build libpythonMAJOR.MINOR.a and do not 1871 install python.o (default is yes) 1872 --with-pydebug build with Py_DEBUG defined (default is no) 1873 --with-trace-refs enable tracing references for debugging purpose 1874 (default is no) 1875 --with-assertions build with C assertions enabled (default is no) 1876 --with-lto=[full|thin|no|yes] 1877 enable Link-Time-Optimization in any build (default 1878 is no) 1879 --with-strict-overflow if 'yes', add -fstrict-overflow to CFLAGS, else add 1880 -fno-strict-overflow (default is no) 1881 --with-dsymutil link debug information into final executable with 1882 dsymutil in macOS (default is no) 1883 --with-address-sanitizer 1884 enable AddressSanitizer memory error detector, 1885 'asan' (default is no) 1886 --with-memory-sanitizer enable MemorySanitizer allocation error detector, 1887 'msan' (default is no) 1888 --with-undefined-behavior-sanitizer 1889 enable UndefinedBehaviorSanitizer undefined 1890 behaviour detector, 'ubsan' (default is no) 1891 --with-thread-sanitizer enable ThreadSanitizer data race detector, 'tsan' 1892 (default is no) 1893 --with-hash-algorithm=[fnv|siphash13|siphash24] 1894 select hash algorithm for use in Python/pyhash.c 1895 (default is SipHash13) 1896 --with-tzpath=<list of absolute paths separated by pathsep> 1897 Select the default time zone search path for 1898 zoneinfo.TZPATH 1899 --with-libs='lib1 ...' link against additional libs (default is no) 1900 --with-system-expat build pyexpat module using an installed expat 1901 library, see Doc/library/pyexpat.rst (default is no) 1902 --with-system-libmpdec build _decimal module using an installed mpdecimal 1903 library, see Doc/library/decimal.rst (default is 1904 yes) 1905 --with-decimal-contextvar 1906 build _decimal module using a coroutine-local rather 1907 than a thread-local context (default is yes) 1908 --with-dbmliborder=db1:db2:... 1909 override order to check db backends for dbm; a valid 1910 value is a colon separated string with the backend 1911 names `ndbm', `gdbm' and `bdb'. 1912 --with-doc-strings enable documentation strings (default is yes) 1913 --with-mimalloc build with mimalloc memory allocator (default is yes 1914 if C11 stdatomic.h is available.) 1915 --with-pymalloc enable specialized mallocs (default is yes) 1916 --with-freelists enable object freelists (default is yes) 1917 --with-c-locale-coercion 1918 enable C locale coercion to a UTF-8 based locale 1919 (default is yes) 1920 --with-valgrind enable Valgrind support (default is no) 1921 --with-dtrace enable DTrace support (default is no) 1922 --with-libm=STRING override libm math library to STRING (default is 1923 system-dependent) 1924 --with-libc=STRING override libc C library to STRING (default is 1925 system-dependent) 1926 --with-platlibdir=DIRNAME 1927 Python library directory name (default is "lib") 1928 --with-wheel-pkg-dir=PATH 1929 Directory of wheel packages used by ensurepip 1930 (default: none) 1931 --with(out)-readline[=editline|readline|no] 1932 use libedit for backend or disable readline module 1933 --with-computed-gotos enable computed gotos in evaluation loop (enabled by 1934 default on supported compilers) 1935 --with-ensurepip[=install|upgrade|no] 1936 "install" or "upgrade" using bundled pip (default is 1937 upgrade) 1938 --with-openssl=DIR root of the OpenSSL directory 1939 --with-openssl-rpath=[DIR|auto|no] 1940 Set runtime library directory (rpath) for OpenSSL 1941 libraries, no (default): don't set rpath, auto: 1942 auto-detect rpath from --with-openssl and 1943 pkg-config, DIR: set an explicit rpath 1944 --with-ssl-default-suites=[python|openssl|STRING] 1945 override default cipher suites string, python: use 1946 Python's preferred selection (default), openssl: 1947 leave OpenSSL's defaults untouched, STRING: use a 1948 custom string, python and STRING also set TLS 1.2 as 1949 minimum TLS version 1950 --with-builtin-hashlib-hashes=md5,sha1,sha2,sha3,blake2 1951 builtin hash modules, md5, sha1, sha2, sha3 (with 1952 shake), blake2 1953 1954Some influential environment variables: 1955 PKG_CONFIG path to pkg-config utility 1956 PKG_CONFIG_PATH 1957 directories to add to pkg-config's search path 1958 PKG_CONFIG_LIBDIR 1959 path overriding pkg-config's built-in search path 1960 MACHDEP name for machine-dependent library files 1961 CC C compiler command 1962 CFLAGS C compiler flags 1963 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1964 nonstandard directory <lib dir> 1965 LIBS libraries to pass to the linker, e.g. -l<library> 1966 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1967 you have headers in a nonstandard directory <include dir> 1968 CPP C preprocessor 1969 HOSTRUNNER Program to run CPython for the host platform 1970 PROFILE_TASK 1971 Python args for PGO generation task 1972 BOLT_INSTRUMENT_FLAGS 1973 Arguments to llvm-bolt when instrumenting binaries 1974 BOLT_APPLY_FLAGS 1975 Arguments to llvm-bolt when creating a BOLT optimized binary 1976 LIBUUID_CFLAGS 1977 C compiler flags for LIBUUID, overriding pkg-config 1978 LIBUUID_LIBS 1979 linker flags for LIBUUID, overriding pkg-config 1980 LIBFFI_CFLAGS 1981 C compiler flags for LIBFFI, overriding pkg-config 1982 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 1983 LIBMPDEC_CFLAGS 1984 C compiler flags for LIBMPDEC, overriding pkg-config 1985 LIBMPDEC_LIBS 1986 linker flags for LIBMPDEC, overriding pkg-config 1987 LIBSQLITE3_CFLAGS 1988 C compiler flags for LIBSQLITE3, overriding pkg-config 1989 LIBSQLITE3_LIBS 1990 linker flags for LIBSQLITE3, overriding pkg-config 1991 TCLTK_CFLAGS 1992 C compiler flags for TCLTK, overriding pkg-config 1993 TCLTK_LIBS linker flags for TCLTK, overriding pkg-config 1994 X11_CFLAGS C compiler flags for X11, overriding pkg-config 1995 X11_LIBS linker flags for X11, overriding pkg-config 1996 GDBM_CFLAGS C compiler flags for gdbm 1997 GDBM_LIBS additional linker flags for gdbm 1998 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config 1999 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config 2000 BZIP2_CFLAGS 2001 C compiler flags for BZIP2, overriding pkg-config 2002 BZIP2_LIBS linker flags for BZIP2, overriding pkg-config 2003 LIBLZMA_CFLAGS 2004 C compiler flags for LIBLZMA, overriding pkg-config 2005 LIBLZMA_LIBS 2006 linker flags for LIBLZMA, overriding pkg-config 2007 LIBREADLINE_CFLAGS 2008 C compiler flags for LIBREADLINE, overriding pkg-config 2009 LIBREADLINE_LIBS 2010 linker flags for LIBREADLINE, overriding pkg-config 2011 LIBEDIT_CFLAGS 2012 C compiler flags for LIBEDIT, overriding pkg-config 2013 LIBEDIT_LIBS 2014 linker flags for LIBEDIT, overriding pkg-config 2015 CURSES_CFLAGS 2016 C compiler flags for CURSES, overriding pkg-config 2017 CURSES_LIBS linker flags for CURSES, overriding pkg-config 2018 PANEL_CFLAGS 2019 C compiler flags for PANEL, overriding pkg-config 2020 PANEL_LIBS linker flags for PANEL, overriding pkg-config 2021 LIBB2_CFLAGS 2022 C compiler flags for LIBB2, overriding pkg-config 2023 LIBB2_LIBS linker flags for LIBB2, overriding pkg-config 2024 2025Use these variables to override the choices made by `configure' or to help 2026it to find libraries and programs with nonstandard names/locations. 2027 2028Report bugs to <https://github.com/python/cpython/issues/>. 2029_ACEOF 2030ac_status=$? 2031fi 2032 2033if test "$ac_init_help" = "recursive"; then 2034 # If there are subdirs, report their specific --help. 2035 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2036 test -d "$ac_dir" || 2037 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2038 continue 2039 ac_builddir=. 2040 2041case "$ac_dir" in 2042.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2043*) 2044 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 2045 # A ".." for each directory in $ac_dir_suffix. 2046 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2047 case $ac_top_builddir_sub in 2048 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2049 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2050 esac ;; 2051esac 2052ac_abs_top_builddir=$ac_pwd 2053ac_abs_builddir=$ac_pwd$ac_dir_suffix 2054# for backward compatibility: 2055ac_top_builddir=$ac_top_build_prefix 2056 2057case $srcdir in 2058 .) # We are building in place. 2059 ac_srcdir=. 2060 ac_top_srcdir=$ac_top_builddir_sub 2061 ac_abs_top_srcdir=$ac_pwd ;; 2062 [\\/]* | ?:[\\/]* ) # Absolute name. 2063 ac_srcdir=$srcdir$ac_dir_suffix; 2064 ac_top_srcdir=$srcdir 2065 ac_abs_top_srcdir=$srcdir ;; 2066 *) # Relative name. 2067 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2068 ac_top_srcdir=$ac_top_build_prefix$srcdir 2069 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2070esac 2071ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2072 2073 cd "$ac_dir" || { ac_status=$?; continue; } 2074 # Check for configure.gnu first; this name is used for a wrapper for 2075 # Metaconfig's "Configure" on case-insensitive file systems. 2076 if test -f "$ac_srcdir/configure.gnu"; then 2077 echo && 2078 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2079 elif test -f "$ac_srcdir/configure"; then 2080 echo && 2081 $SHELL "$ac_srcdir/configure" --help=recursive 2082 else 2083 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2084 fi || ac_status=$? 2085 cd "$ac_pwd" || { ac_status=$?; break; } 2086 done 2087fi 2088 2089test -n "$ac_init_help" && exit $ac_status 2090if $ac_init_version; then 2091 cat <<\_ACEOF 2092python configure 3.13 2093generated by GNU Autoconf 2.71 2094 2095Copyright (C) 2021 Free Software Foundation, Inc. 2096This configure script is free software; the Free Software Foundation 2097gives unlimited permission to copy, distribute and modify it. 2098_ACEOF 2099 exit 2100fi 2101 2102## ------------------------ ## 2103## Autoconf initialization. ## 2104## ------------------------ ## 2105 2106# ac_fn_c_try_compile LINENO 2107# -------------------------- 2108# Try to compile conftest.$ac_ext, and return whether this succeeded. 2109ac_fn_c_try_compile () 2110{ 2111 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2112 rm -f conftest.$ac_objext conftest.beam 2113 if { { ac_try="$ac_compile" 2114case "(($ac_try" in 2115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2116 *) ac_try_echo=$ac_try;; 2117esac 2118eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2119printf "%s\n" "$ac_try_echo"; } >&5 2120 (eval "$ac_compile") 2>conftest.err 2121 ac_status=$? 2122 if test -s conftest.err; then 2123 grep -v '^ *+' conftest.err >conftest.er1 2124 cat conftest.er1 >&5 2125 mv -f conftest.er1 conftest.err 2126 fi 2127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2128 test $ac_status = 0; } && { 2129 test -z "$ac_c_werror_flag" || 2130 test ! -s conftest.err 2131 } && test -s conftest.$ac_objext 2132then : 2133 ac_retval=0 2134else $as_nop 2135 printf "%s\n" "$as_me: failed program was:" >&5 2136sed 's/^/| /' conftest.$ac_ext >&5 2137 2138 ac_retval=1 2139fi 2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2141 as_fn_set_status $ac_retval 2142 2143} # ac_fn_c_try_compile 2144 2145# ac_fn_c_try_cpp LINENO 2146# ---------------------- 2147# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2148ac_fn_c_try_cpp () 2149{ 2150 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2151 if { { ac_try="$ac_cpp conftest.$ac_ext" 2152case "(($ac_try" in 2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2154 *) ac_try_echo=$ac_try;; 2155esac 2156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2157printf "%s\n" "$ac_try_echo"; } >&5 2158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2159 ac_status=$? 2160 if test -s conftest.err; then 2161 grep -v '^ *+' conftest.err >conftest.er1 2162 cat conftest.er1 >&5 2163 mv -f conftest.er1 conftest.err 2164 fi 2165 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2166 test $ac_status = 0; } > conftest.i && { 2167 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2168 test ! -s conftest.err 2169 } 2170then : 2171 ac_retval=0 2172else $as_nop 2173 printf "%s\n" "$as_me: failed program was:" >&5 2174sed 's/^/| /' conftest.$ac_ext >&5 2175 2176 ac_retval=1 2177fi 2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2179 as_fn_set_status $ac_retval 2180 2181} # ac_fn_c_try_cpp 2182 2183# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2184# ------------------------------------------------------- 2185# Tests whether HEADER exists and can be compiled using the include files in 2186# INCLUDES, setting the cache variable VAR accordingly. 2187ac_fn_c_check_header_compile () 2188{ 2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2191printf %s "checking for $2... " >&6; } 2192if eval test \${$3+y} 2193then : 2194 printf %s "(cached) " >&6 2195else $as_nop 2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2197/* end confdefs.h. */ 2198$4 2199#include <$2> 2200_ACEOF 2201if ac_fn_c_try_compile "$LINENO" 2202then : 2203 eval "$3=yes" 2204else $as_nop 2205 eval "$3=no" 2206fi 2207rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2208fi 2209eval ac_res=\$$3 2210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2211printf "%s\n" "$ac_res" >&6; } 2212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2213 2214} # ac_fn_c_check_header_compile 2215 2216# ac_fn_c_try_link LINENO 2217# ----------------------- 2218# Try to link conftest.$ac_ext, and return whether this succeeded. 2219ac_fn_c_try_link () 2220{ 2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2222 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 2223 if { { ac_try="$ac_link" 2224case "(($ac_try" in 2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2226 *) ac_try_echo=$ac_try;; 2227esac 2228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2229printf "%s\n" "$ac_try_echo"; } >&5 2230 (eval "$ac_link") 2>conftest.err 2231 ac_status=$? 2232 if test -s conftest.err; then 2233 grep -v '^ *+' conftest.err >conftest.er1 2234 cat conftest.er1 >&5 2235 mv -f conftest.er1 conftest.err 2236 fi 2237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2238 test $ac_status = 0; } && { 2239 test -z "$ac_c_werror_flag" || 2240 test ! -s conftest.err 2241 } && test -s conftest$ac_exeext && { 2242 test "$cross_compiling" = yes || 2243 test -x conftest$ac_exeext 2244 } 2245then : 2246 ac_retval=0 2247else $as_nop 2248 printf "%s\n" "$as_me: failed program was:" >&5 2249sed 's/^/| /' conftest.$ac_ext >&5 2250 2251 ac_retval=1 2252fi 2253 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2254 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2255 # interfere with the next link command; also delete a directory that is 2256 # left behind by Apple's compiler. We do this before executing the actions. 2257 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2259 as_fn_set_status $ac_retval 2260 2261} # ac_fn_c_try_link 2262 2263# ac_fn_c_try_run LINENO 2264# ---------------------- 2265# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 2266# executables *can* be run. 2267ac_fn_c_try_run () 2268{ 2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2270 if { { ac_try="$ac_link" 2271case "(($ac_try" in 2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2273 *) ac_try_echo=$ac_try;; 2274esac 2275eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2276printf "%s\n" "$ac_try_echo"; } >&5 2277 (eval "$ac_link") 2>&5 2278 ac_status=$? 2279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2280 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2281 { { case "(($ac_try" in 2282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2283 *) ac_try_echo=$ac_try;; 2284esac 2285eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2286printf "%s\n" "$ac_try_echo"; } >&5 2287 (eval "$ac_try") 2>&5 2288 ac_status=$? 2289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2290 test $ac_status = 0; }; } 2291then : 2292 ac_retval=0 2293else $as_nop 2294 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 2295 printf "%s\n" "$as_me: failed program was:" >&5 2296sed 's/^/| /' conftest.$ac_ext >&5 2297 2298 ac_retval=$ac_status 2299fi 2300 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2302 as_fn_set_status $ac_retval 2303 2304} # ac_fn_c_try_run 2305 2306# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2307# ------------------------------------------- 2308# Tests whether TYPE exists after having included INCLUDES, setting cache 2309# variable VAR accordingly. 2310ac_fn_c_check_type () 2311{ 2312 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2314printf %s "checking for $2... " >&6; } 2315if eval test \${$3+y} 2316then : 2317 printf %s "(cached) " >&6 2318else $as_nop 2319 eval "$3=no" 2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2321/* end confdefs.h. */ 2322$4 2323int 2324main (void) 2325{ 2326if (sizeof ($2)) 2327 return 0; 2328 ; 2329 return 0; 2330} 2331_ACEOF 2332if ac_fn_c_try_compile "$LINENO" 2333then : 2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2335/* end confdefs.h. */ 2336$4 2337int 2338main (void) 2339{ 2340if (sizeof (($2))) 2341 return 0; 2342 ; 2343 return 0; 2344} 2345_ACEOF 2346if ac_fn_c_try_compile "$LINENO" 2347then : 2348 2349else $as_nop 2350 eval "$3=yes" 2351fi 2352rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2353fi 2354rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2355fi 2356eval ac_res=\$$3 2357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2358printf "%s\n" "$ac_res" >&6; } 2359 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2360 2361} # ac_fn_c_check_type 2362 2363# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2364# -------------------------------------------- 2365# Tries to find the compile-time value of EXPR in a program that includes 2366# INCLUDES, setting VAR accordingly. Returns whether the value could be 2367# computed 2368ac_fn_c_compute_int () 2369{ 2370 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2371 if test "$cross_compiling" = yes; then 2372 # Depending upon the size, compute the lo and hi bounds. 2373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2374/* end confdefs.h. */ 2375$4 2376int 2377main (void) 2378{ 2379static int test_array [1 - 2 * !(($2) >= 0)]; 2380test_array [0] = 0; 2381return test_array [0]; 2382 2383 ; 2384 return 0; 2385} 2386_ACEOF 2387if ac_fn_c_try_compile "$LINENO" 2388then : 2389 ac_lo=0 ac_mid=0 2390 while :; do 2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2392/* end confdefs.h. */ 2393$4 2394int 2395main (void) 2396{ 2397static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2398test_array [0] = 0; 2399return test_array [0]; 2400 2401 ; 2402 return 0; 2403} 2404_ACEOF 2405if ac_fn_c_try_compile "$LINENO" 2406then : 2407 ac_hi=$ac_mid; break 2408else $as_nop 2409 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2410 if test $ac_lo -le $ac_mid; then 2411 ac_lo= ac_hi= 2412 break 2413 fi 2414 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2415fi 2416rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2417 done 2418else $as_nop 2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2420/* end confdefs.h. */ 2421$4 2422int 2423main (void) 2424{ 2425static int test_array [1 - 2 * !(($2) < 0)]; 2426test_array [0] = 0; 2427return test_array [0]; 2428 2429 ; 2430 return 0; 2431} 2432_ACEOF 2433if ac_fn_c_try_compile "$LINENO" 2434then : 2435 ac_hi=-1 ac_mid=-1 2436 while :; do 2437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2438/* end confdefs.h. */ 2439$4 2440int 2441main (void) 2442{ 2443static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2444test_array [0] = 0; 2445return test_array [0]; 2446 2447 ; 2448 return 0; 2449} 2450_ACEOF 2451if ac_fn_c_try_compile "$LINENO" 2452then : 2453 ac_lo=$ac_mid; break 2454else $as_nop 2455 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2456 if test $ac_mid -le $ac_hi; then 2457 ac_lo= ac_hi= 2458 break 2459 fi 2460 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2461fi 2462rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2463 done 2464else $as_nop 2465 ac_lo= ac_hi= 2466fi 2467rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2468fi 2469rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2470# Binary search between lo and hi bounds. 2471while test "x$ac_lo" != "x$ac_hi"; do 2472 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2474/* end confdefs.h. */ 2475$4 2476int 2477main (void) 2478{ 2479static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2480test_array [0] = 0; 2481return test_array [0]; 2482 2483 ; 2484 return 0; 2485} 2486_ACEOF 2487if ac_fn_c_try_compile "$LINENO" 2488then : 2489 ac_hi=$ac_mid 2490else $as_nop 2491 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2492fi 2493rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2494done 2495case $ac_lo in #(( 2496?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2497'') ac_retval=1 ;; 2498esac 2499 else 2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2501/* end confdefs.h. */ 2502$4 2503static long int longval (void) { return $2; } 2504static unsigned long int ulongval (void) { return $2; } 2505#include <stdio.h> 2506#include <stdlib.h> 2507int 2508main (void) 2509{ 2510 2511 FILE *f = fopen ("conftest.val", "w"); 2512 if (! f) 2513 return 1; 2514 if (($2) < 0) 2515 { 2516 long int i = longval (); 2517 if (i != ($2)) 2518 return 1; 2519 fprintf (f, "%ld", i); 2520 } 2521 else 2522 { 2523 unsigned long int i = ulongval (); 2524 if (i != ($2)) 2525 return 1; 2526 fprintf (f, "%lu", i); 2527 } 2528 /* Do not output a trailing newline, as this causes \r\n confusion 2529 on some platforms. */ 2530 return ferror (f) || fclose (f) != 0; 2531 2532 ; 2533 return 0; 2534} 2535_ACEOF 2536if ac_fn_c_try_run "$LINENO" 2537then : 2538 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2539else $as_nop 2540 ac_retval=1 2541fi 2542rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2543 conftest.$ac_objext conftest.beam conftest.$ac_ext 2544rm -f conftest.val 2545 2546 fi 2547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2548 as_fn_set_status $ac_retval 2549 2550} # ac_fn_c_compute_int 2551 2552# ac_fn_c_check_func LINENO FUNC VAR 2553# ---------------------------------- 2554# Tests whether FUNC exists, setting the cache variable VAR accordingly 2555ac_fn_c_check_func () 2556{ 2557 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2559printf %s "checking for $2... " >&6; } 2560if eval test \${$3+y} 2561then : 2562 printf %s "(cached) " >&6 2563else $as_nop 2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2565/* end confdefs.h. */ 2566/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2567 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2568#define $2 innocuous_$2 2569 2570/* System header to define __stub macros and hopefully few prototypes, 2571 which can conflict with char $2 (); below. */ 2572 2573#include <limits.h> 2574#undef $2 2575 2576/* Override any GCC internal prototype to avoid an error. 2577 Use char because int might match the return type of a GCC 2578 builtin and then its argument prototype would still apply. */ 2579#ifdef __cplusplus 2580extern "C" 2581#endif 2582char $2 (); 2583/* The GNU C library defines this for functions which it implements 2584 to always fail with ENOSYS. Some functions are actually named 2585 something starting with __ and the normal name is an alias. */ 2586#if defined __stub_$2 || defined __stub___$2 2587choke me 2588#endif 2589 2590int 2591main (void) 2592{ 2593return $2 (); 2594 ; 2595 return 0; 2596} 2597_ACEOF 2598if ac_fn_c_try_link "$LINENO" 2599then : 2600 eval "$3=yes" 2601else $as_nop 2602 eval "$3=no" 2603fi 2604rm -f core conftest.err conftest.$ac_objext conftest.beam \ 2605 conftest$ac_exeext conftest.$ac_ext 2606fi 2607eval ac_res=\$$3 2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2609printf "%s\n" "$ac_res" >&6; } 2610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2611 2612} # ac_fn_c_check_func 2613 2614# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 2615# ------------------------------------------------------------------ 2616# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2617# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 2618ac_fn_check_decl () 2619{ 2620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2621 as_decl_name=`echo $2|sed 's/ *(.*//'` 2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2623printf %s "checking whether $as_decl_name is declared... " >&6; } 2624if eval test \${$3+y} 2625then : 2626 printf %s "(cached) " >&6 2627else $as_nop 2628 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2629 eval ac_save_FLAGS=\$$6 2630 as_fn_append $6 " $5" 2631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2632/* end confdefs.h. */ 2633$4 2634int 2635main (void) 2636{ 2637#ifndef $as_decl_name 2638#ifdef __cplusplus 2639 (void) $as_decl_use; 2640#else 2641 (void) $as_decl_name; 2642#endif 2643#endif 2644 2645 ; 2646 return 0; 2647} 2648_ACEOF 2649if ac_fn_c_try_compile "$LINENO" 2650then : 2651 eval "$3=yes" 2652else $as_nop 2653 eval "$3=no" 2654fi 2655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2656 eval $6=\$ac_save_FLAGS 2657 2658fi 2659eval ac_res=\$$3 2660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2661printf "%s\n" "$ac_res" >&6; } 2662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2663 2664} # ac_fn_check_decl 2665 2666# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2667# ---------------------------------------------------- 2668# Tries to find if the field MEMBER exists in type AGGR, after including 2669# INCLUDES, setting cache variable VAR accordingly. 2670ac_fn_c_check_member () 2671{ 2672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2674printf %s "checking for $2.$3... " >&6; } 2675if eval test \${$4+y} 2676then : 2677 printf %s "(cached) " >&6 2678else $as_nop 2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2680/* end confdefs.h. */ 2681$5 2682int 2683main (void) 2684{ 2685static $2 ac_aggr; 2686if (ac_aggr.$3) 2687return 0; 2688 ; 2689 return 0; 2690} 2691_ACEOF 2692if ac_fn_c_try_compile "$LINENO" 2693then : 2694 eval "$4=yes" 2695else $as_nop 2696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2697/* end confdefs.h. */ 2698$5 2699int 2700main (void) 2701{ 2702static $2 ac_aggr; 2703if (sizeof ac_aggr.$3) 2704return 0; 2705 ; 2706 return 0; 2707} 2708_ACEOF 2709if ac_fn_c_try_compile "$LINENO" 2710then : 2711 eval "$4=yes" 2712else $as_nop 2713 eval "$4=no" 2714fi 2715rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2716fi 2717rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 2718fi 2719eval ac_res=\$$4 2720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2721printf "%s\n" "$ac_res" >&6; } 2722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2723 2724} # ac_fn_c_check_member 2725ac_configure_args_raw= 2726for ac_arg 2727do 2728 case $ac_arg in 2729 *\'*) 2730 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2731 esac 2732 as_fn_append ac_configure_args_raw " '$ac_arg'" 2733done 2734 2735case $ac_configure_args_raw in 2736 *$as_nl*) 2737 ac_safe_unquote= ;; 2738 *) 2739 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 2740 ac_unsafe_a="$ac_unsafe_z#~" 2741 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 2742 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 2743esac 2744 2745cat >config.log <<_ACEOF 2746This file contains any messages produced by compilers while 2747running configure, to aid debugging if configure makes a mistake. 2748 2749It was created by python $as_me 3.13, which was 2750generated by GNU Autoconf 2.71. Invocation command line was 2751 2752 $ $0$ac_configure_args_raw 2753 2754_ACEOF 2755exec 5>>config.log 2756{ 2757cat <<_ASUNAME 2758## --------- ## 2759## Platform. ## 2760## --------- ## 2761 2762hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2763uname -m = `(uname -m) 2>/dev/null || echo unknown` 2764uname -r = `(uname -r) 2>/dev/null || echo unknown` 2765uname -s = `(uname -s) 2>/dev/null || echo unknown` 2766uname -v = `(uname -v) 2>/dev/null || echo unknown` 2767 2768/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2769/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2770 2771/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2772/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2773/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2774/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2775/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2776/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2777/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2778 2779_ASUNAME 2780 2781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2782for as_dir in $PATH 2783do 2784 IFS=$as_save_IFS 2785 case $as_dir in #((( 2786 '') as_dir=./ ;; 2787 */) ;; 2788 *) as_dir=$as_dir/ ;; 2789 esac 2790 printf "%s\n" "PATH: $as_dir" 2791 done 2792IFS=$as_save_IFS 2793 2794} >&5 2795 2796cat >&5 <<_ACEOF 2797 2798 2799## ----------- ## 2800## Core tests. ## 2801## ----------- ## 2802 2803_ACEOF 2804 2805 2806# Keep a trace of the command line. 2807# Strip out --no-create and --no-recursion so they do not pile up. 2808# Strip out --silent because we don't want to record it for future runs. 2809# Also quote any args containing shell meta-characters. 2810# Make two passes to allow for proper duplicate-argument suppression. 2811ac_configure_args= 2812ac_configure_args0= 2813ac_configure_args1= 2814ac_must_keep_next=false 2815for ac_pass in 1 2 2816do 2817 for ac_arg 2818 do 2819 case $ac_arg in 2820 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2821 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2822 | -silent | --silent | --silen | --sile | --sil) 2823 continue ;; 2824 *\'*) 2825 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2826 esac 2827 case $ac_pass in 2828 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2829 2) 2830 as_fn_append ac_configure_args1 " '$ac_arg'" 2831 if test $ac_must_keep_next = true; then 2832 ac_must_keep_next=false # Got value, back to normal. 2833 else 2834 case $ac_arg in 2835 *=* | --config-cache | -C | -disable-* | --disable-* \ 2836 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2837 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2838 | -with-* | --with-* | -without-* | --without-* | --x) 2839 case "$ac_configure_args0 " in 2840 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2841 esac 2842 ;; 2843 -* ) ac_must_keep_next=true ;; 2844 esac 2845 fi 2846 as_fn_append ac_configure_args " '$ac_arg'" 2847 ;; 2848 esac 2849 done 2850done 2851{ ac_configure_args0=; unset ac_configure_args0;} 2852{ ac_configure_args1=; unset ac_configure_args1;} 2853 2854# When interrupted or exit'd, cleanup temporary files, and complete 2855# config.log. We remove comments because anyway the quotes in there 2856# would cause problems or look ugly. 2857# WARNING: Use '\'' to represent an apostrophe within the trap. 2858# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2859trap 'exit_status=$? 2860 # Sanitize IFS. 2861 IFS=" "" $as_nl" 2862 # Save into config.log some information that might help in debugging. 2863 { 2864 echo 2865 2866 printf "%s\n" "## ---------------- ## 2867## Cache variables. ## 2868## ---------------- ##" 2869 echo 2870 # The following way of writing the cache mishandles newlines in values, 2871( 2872 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2873 eval ac_val=\$$ac_var 2874 case $ac_val in #( 2875 *${as_nl}*) 2876 case $ac_var in #( 2877 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2878printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2879 esac 2880 case $ac_var in #( 2881 _ | IFS | as_nl) ;; #( 2882 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2883 *) { eval $ac_var=; unset $ac_var;} ;; 2884 esac ;; 2885 esac 2886 done 2887 (set) 2>&1 | 2888 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2889 *${as_nl}ac_space=\ *) 2890 sed -n \ 2891 "s/'\''/'\''\\\\'\'''\''/g; 2892 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2893 ;; #( 2894 *) 2895 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2896 ;; 2897 esac | 2898 sort 2899) 2900 echo 2901 2902 printf "%s\n" "## ----------------- ## 2903## Output variables. ## 2904## ----------------- ##" 2905 echo 2906 for ac_var in $ac_subst_vars 2907 do 2908 eval ac_val=\$$ac_var 2909 case $ac_val in 2910 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2911 esac 2912 printf "%s\n" "$ac_var='\''$ac_val'\''" 2913 done | sort 2914 echo 2915 2916 if test -n "$ac_subst_files"; then 2917 printf "%s\n" "## ------------------- ## 2918## File substitutions. ## 2919## ------------------- ##" 2920 echo 2921 for ac_var in $ac_subst_files 2922 do 2923 eval ac_val=\$$ac_var 2924 case $ac_val in 2925 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2926 esac 2927 printf "%s\n" "$ac_var='\''$ac_val'\''" 2928 done | sort 2929 echo 2930 fi 2931 2932 if test -s confdefs.h; then 2933 printf "%s\n" "## ----------- ## 2934## confdefs.h. ## 2935## ----------- ##" 2936 echo 2937 cat confdefs.h 2938 echo 2939 fi 2940 test "$ac_signal" != 0 && 2941 printf "%s\n" "$as_me: caught signal $ac_signal" 2942 printf "%s\n" "$as_me: exit $exit_status" 2943 } >&5 2944 rm -f core *.core core.conftest.* && 2945 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2946 exit $exit_status 2947' 0 2948for ac_signal in 1 2 13 15; do 2949 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2950done 2951ac_signal=0 2952 2953# confdefs.h avoids OS command line length limits that DEFS can exceed. 2954rm -f -r conftest* confdefs.h 2955 2956printf "%s\n" "/* confdefs.h */" > confdefs.h 2957 2958# Predefined preprocessor variables. 2959 2960printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2961 2962printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2963 2964printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2965 2966printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2967 2968printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2969 2970printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2971 2972 2973# Let the site file select an alternate cache file if it wants to. 2974# Prefer an explicitly selected file to automatically selected ones. 2975if test -n "$CONFIG_SITE"; then 2976 ac_site_files="$CONFIG_SITE" 2977elif test "x$prefix" != xNONE; then 2978 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2979else 2980 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2981fi 2982 2983for ac_site_file in $ac_site_files 2984do 2985 case $ac_site_file in #( 2986 */*) : 2987 ;; #( 2988 *) : 2989 ac_site_file=./$ac_site_file ;; 2990esac 2991 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2993printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2994 sed 's/^/| /' "$ac_site_file" >&5 2995 . "$ac_site_file" \ 2996 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2997printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2998as_fn_error $? "failed to load site script $ac_site_file 2999See \`config.log' for more details" "$LINENO" 5; } 3000 fi 3001done 3002 3003if test -r "$cache_file"; then 3004 # Some versions of bash will fail to source /dev/null (special files 3005 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3006 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3008printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 3009 case $cache_file in 3010 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3011 *) . "./$cache_file";; 3012 esac 3013 fi 3014else 3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3016printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 3017 >$cache_file 3018fi 3019 3020# Test code for whether the C compiler supports C89 (global declarations) 3021ac_c_conftest_c89_globals=' 3022/* Does the compiler advertise C89 conformance? 3023 Do not test the value of __STDC__, because some compilers set it to 0 3024 while being otherwise adequately conformant. */ 3025#if !defined __STDC__ 3026# error "Compiler does not advertise C89 conformance" 3027#endif 3028 3029#include <stddef.h> 3030#include <stdarg.h> 3031struct stat; 3032/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 3033struct buf { int x; }; 3034struct buf * (*rcsopen) (struct buf *, struct stat *, int); 3035static char *e (p, i) 3036 char **p; 3037 int i; 3038{ 3039 return p[i]; 3040} 3041static char *f (char * (*g) (char **, int), char **p, ...) 3042{ 3043 char *s; 3044 va_list v; 3045 va_start (v,p); 3046 s = g (p, va_arg (v,int)); 3047 va_end (v); 3048 return s; 3049} 3050 3051/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3052 function prototypes and stuff, but not \xHH hex character constants. 3053 These do not provoke an error unfortunately, instead are silently treated 3054 as an "x". The following induces an error, until -std is added to get 3055 proper ANSI mode. Curiously \x00 != x always comes out true, for an 3056 array size at least. It is necessary to write \x00 == 0 to get something 3057 that is true only with -std. */ 3058int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 3059 3060/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3061 inside strings and character constants. */ 3062#define FOO(x) '\''x'\'' 3063int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 3064 3065int test (int i, double x); 3066struct s1 {int (*f) (int a);}; 3067struct s2 {int (*f) (double a);}; 3068int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 3069 int, int);' 3070 3071# Test code for whether the C compiler supports C89 (body of main). 3072ac_c_conftest_c89_main=' 3073ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 3074' 3075 3076# Test code for whether the C compiler supports C99 (global declarations) 3077ac_c_conftest_c99_globals=' 3078// Does the compiler advertise C99 conformance? 3079#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 3080# error "Compiler does not advertise C99 conformance" 3081#endif 3082 3083#include <stdbool.h> 3084extern int puts (const char *); 3085extern int printf (const char *, ...); 3086extern int dprintf (int, const char *, ...); 3087extern void *malloc (size_t); 3088 3089// Check varargs macros. These examples are taken from C99 6.10.3.5. 3090// dprintf is used instead of fprintf to avoid needing to declare 3091// FILE and stderr. 3092#define debug(...) dprintf (2, __VA_ARGS__) 3093#define showlist(...) puts (#__VA_ARGS__) 3094#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3095static void 3096test_varargs_macros (void) 3097{ 3098 int x = 1234; 3099 int y = 5678; 3100 debug ("Flag"); 3101 debug ("X = %d\n", x); 3102 showlist (The first, second, and third items.); 3103 report (x>y, "x is %d but y is %d", x, y); 3104} 3105 3106// Check long long types. 3107#define BIG64 18446744073709551615ull 3108#define BIG32 4294967295ul 3109#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3110#if !BIG_OK 3111 #error "your preprocessor is broken" 3112#endif 3113#if BIG_OK 3114#else 3115 #error "your preprocessor is broken" 3116#endif 3117static long long int bignum = -9223372036854775807LL; 3118static unsigned long long int ubignum = BIG64; 3119 3120struct incomplete_array 3121{ 3122 int datasize; 3123 double data[]; 3124}; 3125 3126struct named_init { 3127 int number; 3128 const wchar_t *name; 3129 double average; 3130}; 3131 3132typedef const char *ccp; 3133 3134static inline int 3135test_restrict (ccp restrict text) 3136{ 3137 // See if C++-style comments work. 3138 // Iterate through items via the restricted pointer. 3139 // Also check for declarations in for loops. 3140 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 3141 continue; 3142 return 0; 3143} 3144 3145// Check varargs and va_copy. 3146static bool 3147test_varargs (const char *format, ...) 3148{ 3149 va_list args; 3150 va_start (args, format); 3151 va_list args_copy; 3152 va_copy (args_copy, args); 3153 3154 const char *str = ""; 3155 int number = 0; 3156 float fnumber = 0; 3157 3158 while (*format) 3159 { 3160 switch (*format++) 3161 { 3162 case '\''s'\'': // string 3163 str = va_arg (args_copy, const char *); 3164 break; 3165 case '\''d'\'': // int 3166 number = va_arg (args_copy, int); 3167 break; 3168 case '\''f'\'': // float 3169 fnumber = va_arg (args_copy, double); 3170 break; 3171 default: 3172 break; 3173 } 3174 } 3175 va_end (args_copy); 3176 va_end (args); 3177 3178 return *str && number && fnumber; 3179} 3180' 3181 3182# Test code for whether the C compiler supports C99 (body of main). 3183ac_c_conftest_c99_main=' 3184 // Check bool. 3185 _Bool success = false; 3186 success |= (argc != 0); 3187 3188 // Check restrict. 3189 if (test_restrict ("String literal") == 0) 3190 success = true; 3191 char *restrict newvar = "Another string"; 3192 3193 // Check varargs. 3194 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 3195 test_varargs_macros (); 3196 3197 // Check flexible array members. 3198 struct incomplete_array *ia = 3199 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3200 ia->datasize = 10; 3201 for (int i = 0; i < ia->datasize; ++i) 3202 ia->data[i] = i * 1.234; 3203 3204 // Check named initializers. 3205 struct named_init ni = { 3206 .number = 34, 3207 .name = L"Test wide string", 3208 .average = 543.34343, 3209 }; 3210 3211 ni.number = 58; 3212 3213 int dynamic_array[ni.number]; 3214 dynamic_array[0] = argv[0][0]; 3215 dynamic_array[ni.number - 1] = 543; 3216 3217 // work around unused variable warnings 3218 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 3219 || dynamic_array[ni.number - 1] != 543); 3220' 3221 3222# Test code for whether the C compiler supports C11 (global declarations) 3223ac_c_conftest_c11_globals=' 3224// Does the compiler advertise C11 conformance? 3225#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 3226# error "Compiler does not advertise C11 conformance" 3227#endif 3228 3229// Check _Alignas. 3230char _Alignas (double) aligned_as_double; 3231char _Alignas (0) no_special_alignment; 3232extern char aligned_as_int; 3233char _Alignas (0) _Alignas (int) aligned_as_int; 3234 3235// Check _Alignof. 3236enum 3237{ 3238 int_alignment = _Alignof (int), 3239 int_array_alignment = _Alignof (int[100]), 3240 char_alignment = _Alignof (char) 3241}; 3242_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 3243 3244// Check _Noreturn. 3245int _Noreturn does_not_return (void) { for (;;) continue; } 3246 3247// Check _Static_assert. 3248struct test_static_assert 3249{ 3250 int x; 3251 _Static_assert (sizeof (int) <= sizeof (long int), 3252 "_Static_assert does not work in struct"); 3253 long int y; 3254}; 3255 3256// Check UTF-8 literals. 3257#define u8 syntax error! 3258char const utf8_literal[] = u8"happens to be ASCII" "another string"; 3259 3260// Check duplicate typedefs. 3261typedef long *long_ptr; 3262typedef long int *long_ptr; 3263typedef long_ptr long_ptr; 3264 3265// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 3266struct anonymous 3267{ 3268 union { 3269 struct { int i; int j; }; 3270 struct { int k; long int l; } w; 3271 }; 3272 int m; 3273} v1; 3274' 3275 3276# Test code for whether the C compiler supports C11 (body of main). 3277ac_c_conftest_c11_main=' 3278 _Static_assert ((offsetof (struct anonymous, i) 3279 == offsetof (struct anonymous, w.k)), 3280 "Anonymous union alignment botch"); 3281 v1.i = 2; 3282 v1.w.k = 5; 3283 ok |= v1.i != 5; 3284' 3285 3286# Test code for whether the C compiler supports C11 (complete). 3287ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 3288${ac_c_conftest_c99_globals} 3289${ac_c_conftest_c11_globals} 3290 3291int 3292main (int argc, char **argv) 3293{ 3294 int ok = 0; 3295 ${ac_c_conftest_c89_main} 3296 ${ac_c_conftest_c99_main} 3297 ${ac_c_conftest_c11_main} 3298 return ok; 3299} 3300" 3301 3302# Test code for whether the C compiler supports C99 (complete). 3303ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 3304${ac_c_conftest_c99_globals} 3305 3306int 3307main (int argc, char **argv) 3308{ 3309 int ok = 0; 3310 ${ac_c_conftest_c89_main} 3311 ${ac_c_conftest_c99_main} 3312 return ok; 3313} 3314" 3315 3316# Test code for whether the C compiler supports C89 (complete). 3317ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 3318 3319int 3320main (int argc, char **argv) 3321{ 3322 int ok = 0; 3323 ${ac_c_conftest_c89_main} 3324 return ok; 3325} 3326" 3327 3328as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 3329as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 3330as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 3331as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 3332as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 3333as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 3334as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 3335as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 3336as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 3337as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" 3338as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" 3339 3340# Auxiliary files required by this configure script. 3341ac_aux_files="install-sh config.guess config.sub" 3342 3343# Locations in which to look for auxiliary files. 3344ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." 3345 3346# Search for a directory containing all of the required auxiliary files, 3347# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. 3348# If we don't find one directory that contains all the files we need, 3349# we report the set of missing files from the *first* directory in 3350# $ac_aux_dir_candidates and give up. 3351ac_missing_aux_files="" 3352ac_first_candidate=: 3353printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3355as_found=false 3356for as_dir in $ac_aux_dir_candidates 3357do 3358 IFS=$as_save_IFS 3359 case $as_dir in #((( 3360 '') as_dir=./ ;; 3361 */) ;; 3362 *) as_dir=$as_dir/ ;; 3363 esac 3364 as_found=: 3365 3366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 3367 ac_aux_dir_found=yes 3368 ac_install_sh= 3369 for ac_aux in $ac_aux_files 3370 do 3371 # As a special case, if "install-sh" is required, that requirement 3372 # can be satisfied by any of "install-sh", "install.sh", or "shtool", 3373 # and $ac_install_sh is set appropriately for whichever one is found. 3374 if test x"$ac_aux" = x"install-sh" 3375 then 3376 if test -f "${as_dir}install-sh"; then 3377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 3378 ac_install_sh="${as_dir}install-sh -c" 3379 elif test -f "${as_dir}install.sh"; then 3380 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 3381 ac_install_sh="${as_dir}install.sh -c" 3382 elif test -f "${as_dir}shtool"; then 3383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 3384 ac_install_sh="${as_dir}shtool install -c" 3385 else 3386 ac_aux_dir_found=no 3387 if $ac_first_candidate; then 3388 ac_missing_aux_files="${ac_missing_aux_files} install-sh" 3389 else 3390 break 3391 fi 3392 fi 3393 else 3394 if test -f "${as_dir}${ac_aux}"; then 3395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 3396 else 3397 ac_aux_dir_found=no 3398 if $ac_first_candidate; then 3399 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" 3400 else 3401 break 3402 fi 3403 fi 3404 fi 3405 done 3406 if test "$ac_aux_dir_found" = yes; then 3407 ac_aux_dir="$as_dir" 3408 break 3409 fi 3410 ac_first_candidate=false 3411 3412 as_found=false 3413done 3414IFS=$as_save_IFS 3415if $as_found 3416then : 3417 3418else $as_nop 3419 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 3420fi 3421 3422 3423# These three variables are undocumented and unsupported, 3424# and are intended to be withdrawn in a future Autoconf release. 3425# They can cause serious problems if a builder's source tree is in a directory 3426# whose full name contains unusual characters. 3427if test -f "${ac_aux_dir}config.guess"; then 3428 ac_config_guess="$SHELL ${ac_aux_dir}config.guess" 3429fi 3430if test -f "${ac_aux_dir}config.sub"; then 3431 ac_config_sub="$SHELL ${ac_aux_dir}config.sub" 3432fi 3433if test -f "$ac_aux_dir/configure"; then 3434 ac_configure="$SHELL ${ac_aux_dir}configure" 3435fi 3436 3437# Check that the precious variables saved in the cache have kept the same 3438# value. 3439ac_cache_corrupted=false 3440for ac_var in $ac_precious_vars; do 3441 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3442 eval ac_new_set=\$ac_env_${ac_var}_set 3443 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3444 eval ac_new_val=\$ac_env_${ac_var}_value 3445 case $ac_old_set,$ac_new_set in 3446 set,) 3447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3448printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3449 ac_cache_corrupted=: ;; 3450 ,set) 3451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3452printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3453 ac_cache_corrupted=: ;; 3454 ,);; 3455 *) 3456 if test "x$ac_old_val" != "x$ac_new_val"; then 3457 # differences in whitespace do not lead to failure. 3458 ac_old_val_w=`echo x $ac_old_val` 3459 ac_new_val_w=`echo x $ac_new_val` 3460 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3462printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3463 ac_cache_corrupted=: 3464 else 3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3466printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3467 eval $ac_var=\$ac_old_val 3468 fi 3469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3470printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3472printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 3473 fi;; 3474 esac 3475 # Pass precious variables to config.status. 3476 if test "$ac_new_set" = set; then 3477 case $ac_new_val in 3478 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3479 *) ac_arg=$ac_var=$ac_new_val ;; 3480 esac 3481 case " $ac_configure_args " in 3482 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3483 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3484 esac 3485 fi 3486done 3487if $ac_cache_corrupted; then 3488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3489printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3491printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 3492 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 3493 and start over" "$LINENO" 5 3494fi 3495## -------------------- ## 3496## Main body of script. ## 3497## -------------------- ## 3498 3499ac_ext=c 3500ac_cpp='$CPP $CPPFLAGS' 3501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3503ac_compiler_gnu=$ac_cv_c_compiler_gnu 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then 3517 # If we're building out-of-tree, we need to make sure the following 3518 # resources get picked up before their $srcdir counterparts. 3519 # Objects/ -> typeslots.inc 3520 # Include/ -> Python.h 3521 # (A side effect of this is that these resources will automatically be 3522 # regenerated when building out-of-tree, regardless of whether or not 3523 # the $srcdir counterpart is up-to-date. This is an acceptable trade 3524 # off.) 3525 BASECPPFLAGS="-IObjects -IInclude -IPython" 3526else 3527 BASECPPFLAGS="" 3528fi 3529 3530 3531 3532 3533 3534if test -e $srcdir/.git 3535then 3536# Extract the first word of "git", so it can be a program name with args. 3537set dummy git; ac_word=$2 3538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3539printf %s "checking for $ac_word... " >&6; } 3540if test ${ac_cv_prog_HAS_GIT+y} 3541then : 3542 printf %s "(cached) " >&6 3543else $as_nop 3544 if test -n "$HAS_GIT"; then 3545 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. 3546else 3547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3548for as_dir in $PATH 3549do 3550 IFS=$as_save_IFS 3551 case $as_dir in #((( 3552 '') as_dir=./ ;; 3553 */) ;; 3554 *) as_dir=$as_dir/ ;; 3555 esac 3556 for ac_exec_ext in '' $ac_executable_extensions; do 3557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3558 ac_cv_prog_HAS_GIT="found" 3559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3560 break 2 3561 fi 3562done 3563 done 3564IFS=$as_save_IFS 3565 3566 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" 3567fi 3568fi 3569HAS_GIT=$ac_cv_prog_HAS_GIT 3570if test -n "$HAS_GIT"; then 3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 3572printf "%s\n" "$HAS_GIT" >&6; } 3573else 3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3575printf "%s\n" "no" >&6; } 3576fi 3577 3578 3579else 3580HAS_GIT=no-repository 3581fi 3582if test $HAS_GIT = found 3583then 3584 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" 3585 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" 3586 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" 3587else 3588 GITVERSION="" 3589 GITTAG="" 3590 GITBRANCH="" 3591fi 3592 3593 3594ac_config_headers="$ac_config_headers pyconfig.h" 3595 3596 3597 3598 3599 3600 # Make sure we can run config.sub. 3601$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || 3602 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 3603 3604{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3605printf %s "checking build system type... " >&6; } 3606if test ${ac_cv_build+y} 3607then : 3608 printf %s "(cached) " >&6 3609else $as_nop 3610 ac_build_alias=$build_alias 3611test "x$ac_build_alias" = x && 3612 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` 3613test "x$ac_build_alias" = x && 3614 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3615ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || 3616 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 3617 3618fi 3619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3620printf "%s\n" "$ac_cv_build" >&6; } 3621case $ac_cv_build in 3622*-*-*) ;; 3623*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3624esac 3625build=$ac_cv_build 3626ac_save_IFS=$IFS; IFS='-' 3627set x $ac_cv_build 3628shift 3629build_cpu=$1 3630build_vendor=$2 3631shift; shift 3632# Remember, the first character of IFS is used to create $*, 3633# except with old shells: 3634build_os=$* 3635IFS=$ac_save_IFS 3636case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3637 3638 3639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3640printf %s "checking host system type... " >&6; } 3641if test ${ac_cv_host+y} 3642then : 3643 printf %s "(cached) " >&6 3644else $as_nop 3645 if test "x$host_alias" = x; then 3646 ac_cv_host=$ac_cv_build 3647else 3648 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || 3649 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 3650fi 3651 3652fi 3653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3654printf "%s\n" "$ac_cv_host" >&6; } 3655case $ac_cv_host in 3656*-*-*) ;; 3657*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3658esac 3659host=$ac_cv_host 3660ac_save_IFS=$IFS; IFS='-' 3661set x $ac_cv_host 3662shift 3663host_cpu=$1 3664host_vendor=$2 3665shift; shift 3666# Remember, the first character of IFS is used to create $*, 3667# except with old shells: 3668host_os=$* 3669IFS=$ac_save_IFS 3670case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3671 3672 3673 3674 3675 3676if test "x$cross_compiling" = xmaybe 3677then : 3678 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 3679 3680fi 3681 3682# pybuilddir.txt will be created by --generate-posix-vars in the Makefile 3683rm -f pybuilddir.txt 3684 3685 3686# Check whether --with-build-python was given. 3687if test ${with_build_python+y} 3688then : 3689 withval=$with_build_python; 3690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-build-python" >&5 3691printf %s "checking for --with-build-python... " >&6; } 3692 3693 if test "x$with_build_python" = xyes 3694then : 3695 with_build_python=python$PACKAGE_VERSION 3696fi 3697 if test "x$with_build_python" = xno 3698then : 3699 as_fn_error $? "invalid --with-build-python option: expected path or \"yes\", not \"no\"" "$LINENO" 5 3700fi 3701 3702 if ! $(command -v "$with_build_python" >/dev/null 2>&1); then 3703 as_fn_error $? "invalid or missing build python binary \"$with_build_python\"" "$LINENO" 5 3704 fi 3705 build_python_ver=$($with_build_python -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')") 3706 if test "$build_python_ver" != "$PACKAGE_VERSION"; then 3707 as_fn_error $? "\"$with_build_python\" has incompatible version $build_python_ver (expected: $PACKAGE_VERSION)" "$LINENO" 5 3708 fi 3709 ac_cv_prog_PYTHON_FOR_REGEN=$with_build_python 3710 PYTHON_FOR_FREEZE="$with_build_python" 3711 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) _PYTHON_SYSCONFIGDATA_PATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`) '$with_build_python 3712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_build_python" >&5 3713printf "%s\n" "$with_build_python" >&6; } 3714 3715else $as_nop 3716 3717 if test "x$cross_compiling" = xyes 3718then : 3719 as_fn_error $? "Cross compiling requires --with-build-python" "$LINENO" 5 3720 3721fi 3722 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' 3723 PYTHON_FOR_FREEZE="./_bootstrap_python" 3724 3725 3726fi 3727 3728 3729 3730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python interpreter freezing" >&5 3731printf %s "checking for Python interpreter freezing... " >&6; } 3732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_FREEZE" >&5 3733printf "%s\n" "$PYTHON_FOR_FREEZE" >&6; } 3734 3735 3736if test "x$cross_compiling" = xyes 3737then : 3738 3739 FREEZE_MODULE_BOOTSTRAP='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py' 3740 FREEZE_MODULE_BOOTSTRAP_DEPS='$(srcdir)/Programs/_freeze_module.py' 3741 FREEZE_MODULE='$(FREEZE_MODULE_BOOTSTRAP)' 3742 FREEZE_MODULE_DEPS='$(FREEZE_MODULE_BOOTSTRAP_DEPS)' 3743 PYTHON_FOR_BUILD_DEPS='' 3744 3745else $as_nop 3746 3747 FREEZE_MODULE_BOOTSTRAP='./Programs/_freeze_module' 3748 FREEZE_MODULE_BOOTSTRAP_DEPS="Programs/_freeze_module" 3749 FREEZE_MODULE='$(PYTHON_FOR_FREEZE) $(srcdir)/Programs/_freeze_module.py' 3750 FREEZE_MODULE_DEPS="_bootstrap_python \$(srcdir)/Programs/_freeze_module.py" 3751 PYTHON_FOR_BUILD_DEPS='$(BUILDPYTHON)' 3752 3753 3754fi 3755 3756 3757 3758 3759 3760 3761for ac_prog in python$PACKAGE_VERSION python3.13 python3.12 python3.11 python3.10 python3 python 3762do 3763 # Extract the first word of "$ac_prog", so it can be a program name with args. 3764set dummy $ac_prog; ac_word=$2 3765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3766printf %s "checking for $ac_word... " >&6; } 3767if test ${ac_cv_prog_PYTHON_FOR_REGEN+y} 3768then : 3769 printf %s "(cached) " >&6 3770else $as_nop 3771 if test -n "$PYTHON_FOR_REGEN"; then 3772 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. 3773else 3774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3775for as_dir in $PATH 3776do 3777 IFS=$as_save_IFS 3778 case $as_dir in #((( 3779 '') as_dir=./ ;; 3780 */) ;; 3781 *) as_dir=$as_dir/ ;; 3782 esac 3783 for ac_exec_ext in '' $ac_executable_extensions; do 3784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3785 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" 3786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3787 break 2 3788 fi 3789done 3790 done 3791IFS=$as_save_IFS 3792 3793fi 3794fi 3795PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN 3796if test -n "$PYTHON_FOR_REGEN"; then 3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 3798printf "%s\n" "$PYTHON_FOR_REGEN" >&6; } 3799else 3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3801printf "%s\n" "no" >&6; } 3802fi 3803 3804 3805 test -n "$PYTHON_FOR_REGEN" && break 3806done 3807test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" 3808 3809 3810 3811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Python for regen version" >&5 3812printf %s "checking Python for regen version... " >&6; } 3813if command -v "$PYTHON_FOR_REGEN" >/dev/null 2>&1; then 3814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $($PYTHON_FOR_REGEN -V 2>/dev/null)" >&5 3815printf "%s\n" "$($PYTHON_FOR_REGEN -V 2>/dev/null)" >&6; } 3816else 3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: missing" >&5 3818printf "%s\n" "missing" >&6; } 3819fi 3820 3821 3822if test "$prefix" != "/"; then 3823 prefix=`echo "$prefix" | sed -e 's/\/$//g'` 3824fi 3825 3826 3827 3828 3829# We don't use PACKAGE_ variables, and they cause conflicts 3830# with other autoconf-based packages that include Python.h 3831grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new 3832rm confdefs.h 3833mv confdefs.h.new confdefs.h 3834 3835 3836VERSION=3.13 3837 3838# Version number of Python's own shared library file. 3839 3840SOVERSION=1.0 3841 3842# The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3843# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable 3844# them. 3845 3846printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 3847 3848 3849# The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3850# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable 3851# them. 3852 3853printf "%s\n" "#define __BSD_VISIBLE 1" >>confdefs.h 3854 3855 3856# The later definition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3857# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable 3858# them. 3859 3860printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3861 3862 3863 3864define_xopen_source=yes 3865 3866# Arguments passed to configure. 3867 3868CONFIG_ARGS="$ac_configure_args" 3869 3870 3871# Check whether --with-pkg-config was given. 3872if test ${with_pkg_config+y} 3873then : 3874 withval=$with_pkg_config; 3875else $as_nop 3876 with_pkg_config=check 3877 3878fi 3879 3880case $with_pkg_config in #( 3881 yes|check) : 3882 3883 if test -z "$PKG_CONFIG"; then 3884 { PKG_CONFIG=; unset PKG_CONFIG;} 3885 { ac_cv_path_ac_pt_PKG_CONFIG=; unset ac_cv_path_ac_pt_PKG_CONFIG;} 3886 { ac_cv_prog_ac_ct_PKG_CONFIG=; unset ac_cv_prog_ac_ct_PKG_CONFIG;} 3887 fi 3888 3889 3890 3891 3892 3893 3894 3895if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 3896 if test -n "$ac_tool_prefix"; then 3897 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 3898set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 3899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3900printf %s "checking for $ac_word... " >&6; } 3901if test ${ac_cv_path_PKG_CONFIG+y} 3902then : 3903 printf %s "(cached) " >&6 3904else $as_nop 3905 case $PKG_CONFIG in 3906 [\\/]* | ?:[\\/]*) 3907 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 3908 ;; 3909 *) 3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3911for as_dir in $PATH 3912do 3913 IFS=$as_save_IFS 3914 case $as_dir in #((( 3915 '') as_dir=./ ;; 3916 */) ;; 3917 *) as_dir=$as_dir/ ;; 3918 esac 3919 for ac_exec_ext in '' $ac_executable_extensions; do 3920 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3921 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 3922 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3923 break 2 3924 fi 3925done 3926 done 3927IFS=$as_save_IFS 3928 3929 ;; 3930esac 3931fi 3932PKG_CONFIG=$ac_cv_path_PKG_CONFIG 3933if test -n "$PKG_CONFIG"; then 3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 3935printf "%s\n" "$PKG_CONFIG" >&6; } 3936else 3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3938printf "%s\n" "no" >&6; } 3939fi 3940 3941 3942fi 3943if test -z "$ac_cv_path_PKG_CONFIG"; then 3944 ac_pt_PKG_CONFIG=$PKG_CONFIG 3945 # Extract the first word of "pkg-config", so it can be a program name with args. 3946set dummy pkg-config; ac_word=$2 3947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3948printf %s "checking for $ac_word... " >&6; } 3949if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} 3950then : 3951 printf %s "(cached) " >&6 3952else $as_nop 3953 case $ac_pt_PKG_CONFIG in 3954 [\\/]* | ?:[\\/]*) 3955 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 3956 ;; 3957 *) 3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3959for as_dir in $PATH 3960do 3961 IFS=$as_save_IFS 3962 case $as_dir in #((( 3963 '') as_dir=./ ;; 3964 */) ;; 3965 *) as_dir=$as_dir/ ;; 3966 esac 3967 for ac_exec_ext in '' $ac_executable_extensions; do 3968 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3969 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" 3970 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3971 break 2 3972 fi 3973done 3974 done 3975IFS=$as_save_IFS 3976 3977 ;; 3978esac 3979fi 3980ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 3981if test -n "$ac_pt_PKG_CONFIG"; then 3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 3983printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } 3984else 3985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3986printf "%s\n" "no" >&6; } 3987fi 3988 3989 if test "x$ac_pt_PKG_CONFIG" = x; then 3990 PKG_CONFIG="" 3991 else 3992 case $cross_compiling:$ac_tool_warned in 3993yes:) 3994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3995printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3996ac_tool_warned=yes ;; 3997esac 3998 PKG_CONFIG=$ac_pt_PKG_CONFIG 3999 fi 4000else 4001 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4002fi 4003 4004fi 4005if test -n "$PKG_CONFIG"; then 4006 _pkg_min_version=0.9.0 4007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4008printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4009 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4011printf "%s\n" "yes" >&6; } 4012 else 4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4014printf "%s\n" "no" >&6; } 4015 PKG_CONFIG="" 4016 fi 4017fi 4018 ;; #( 4019 no) : 4020 4021 PKG_CONFIG='' 4022 ac_cv_path_ac_pt_PKG_CONFIG='' 4023 ac_cv_prog_ac_ct_PKG_CONFIG='' 4024 ;; #( 4025 *) : 4026 as_fn_error $? "invalid argument --with-pkg-config=$with_pkg_config" "$LINENO" 5 4027 ;; 4028esac 4029if test "$with_pkg_config" = yes -a -z "$PKG_CONFIG"; then 4030 as_fn_error $? "pkg-config is required" "$LINENO" 5] 4031fi 4032 4033# Set name for machine-dependent library files 4034 4035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 4036printf %s "checking MACHDEP... " >&6; } 4037if test -z "$MACHDEP" 4038then 4039 # avoid using uname for cross builds 4040 if test "$cross_compiling" = yes; then 4041 # ac_sys_system and ac_sys_release are used for setting 4042 # a lot of different things including 'define_xopen_source' 4043 # in the case statement below. 4044 case "$host" in 4045 *-*-linux-android*) 4046 ac_sys_system=Linux-android 4047 ;; 4048 *-*-linux*) 4049 ac_sys_system=Linux 4050 ;; 4051 *-*-cygwin*) 4052 ac_sys_system=Cygwin 4053 ;; 4054 *-apple-ios*) 4055 ac_sys_system=iOS 4056 ;; 4057 *-*-vxworks*) 4058 ac_sys_system=VxWorks 4059 ;; 4060 *-*-emscripten) 4061 ac_sys_system=Emscripten 4062 ;; 4063 *-*-wasi*) 4064 ac_sys_system=WASI 4065 ;; 4066 *) 4067 # for now, limit cross builds to known configurations 4068 MACHDEP="unknown" 4069 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 4070 esac 4071 ac_sys_release= 4072 else 4073 ac_sys_system=`uname -s` 4074 if test "$ac_sys_system" = "AIX" \ 4075 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then 4076 ac_sys_release=`uname -v` 4077 else 4078 ac_sys_release=`uname -r` 4079 fi 4080 fi 4081 ac_md_system=`echo $ac_sys_system | 4082 tr -d '/ ' | tr '[A-Z]' '[a-z]'` 4083 ac_md_release=`echo $ac_sys_release | 4084 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` 4085 MACHDEP="$ac_md_system$ac_md_release" 4086 4087 case $MACHDEP in 4088 aix*) MACHDEP="aix";; 4089 linux-android*) MACHDEP="android";; 4090 linux*) MACHDEP="linux";; 4091 cygwin*) MACHDEP="cygwin";; 4092 darwin*) MACHDEP="darwin";; 4093 '') MACHDEP="unknown";; 4094 esac 4095 4096 if test "$ac_sys_system" = "SunOS"; then 4097 # For Solaris, there isn't an OS version specific macro defined 4098 # in most compilers, so we define one here. 4099 SUNOS_VERSION=`echo $ac_sys_release | sed -e 's!\.\(0-9\)$!.0\1!g' | tr -d '.'` 4100 4101printf "%s\n" "#define Py_SUNOS_VERSION $SUNOS_VERSION" >>confdefs.h 4102 4103 fi 4104fi 4105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 4106printf "%s\n" "\"$MACHDEP\"" >&6; } 4107 4108# On cross-compile builds, configure will look for a host-specific compiler by 4109# prepending the user-provided host triple to the required binary name. 4110# 4111# On iOS, this results in binaries like "arm64-apple-ios13.0-simulator-gcc", 4112# which isn't a binary that exists, and isn't very convenient, as it contains the 4113# iOS version. As the default cross-compiler name won't exist, configure falls 4114# back to gcc, which *definitely* won't work. We're providing wrapper scripts for 4115# these tools; the binary names of these scripts are better defaults than "gcc". 4116# This only requires that the user put the platform scripts folder (e.g., 4117# "iOS/Resources/bin") in their path, rather than defining platform-specific 4118# names/paths for AR, CC, CPP, and CXX explicitly; and if the user forgets to 4119# either put the platform scripts folder in the path, or specify CC etc, 4120# configure will fail. 4121if test -z "$AR"; then 4122 case "$host" in 4123 aarch64-apple-ios*-simulator) AR=arm64-apple-ios-simulator-ar ;; 4124 aarch64-apple-ios*) AR=arm64-apple-ios-ar ;; 4125 x86_64-apple-ios*-simulator) AR=x86_64-apple-ios-simulator-ar ;; 4126 *) 4127 esac 4128fi 4129if test -z "$CC"; then 4130 case "$host" in 4131 aarch64-apple-ios*-simulator) CC=arm64-apple-ios-simulator-clang ;; 4132 aarch64-apple-ios*) CC=arm64-apple-ios-clang ;; 4133 x86_64-apple-ios*-simulator) CC=x86_64-apple-ios-simulator-clang ;; 4134 *) 4135 esac 4136fi 4137if test -z "$CPP"; then 4138 case "$host" in 4139 aarch64-apple-ios*-simulator) CPP=arm64-apple-ios-simulator-cpp ;; 4140 aarch64-apple-ios*) CPP=arm64-apple-ios-cpp ;; 4141 x86_64-apple-ios*-simulator) CPP=x86_64-apple-ios-simulator-cpp ;; 4142 *) 4143 esac 4144fi 4145if test -z "$CXX"; then 4146 case "$host" in 4147 aarch64-apple-ios*-simulator) CXX=arm64-apple-ios-simulator-clang++ ;; 4148 aarch64-apple-ios*) CXX=arm64-apple-ios-clang++ ;; 4149 x86_64-apple-ios*-simulator) CXX=x86_64-apple-ios-simulator-clang++ ;; 4150 *) 4151 esac 4152fi 4153 4154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 4155printf %s "checking for --enable-universalsdk... " >&6; } 4156# Check whether --enable-universalsdk was given. 4157if test ${enable_universalsdk+y} 4158then : 4159 enableval=$enable_universalsdk; 4160 case $enableval in 4161 yes) 4162 # Locate the best usable SDK, see Mac/README for more 4163 # information 4164 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" 4165 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) 4166 then 4167 enableval=/Developer/SDKs/MacOSX10.4u.sdk 4168 if test ! -d "${enableval}" 4169 then 4170 enableval=/ 4171 fi 4172 fi 4173 ;; 4174 esac 4175 case $enableval in 4176 no) 4177 UNIVERSALSDK= 4178 enable_universalsdk= 4179 ;; 4180 *) 4181 UNIVERSALSDK=$enableval 4182 if test ! -d "${UNIVERSALSDK}" 4183 then 4184 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 4185 fi 4186 ;; 4187 esac 4188 4189 4190else $as_nop 4191 4192 UNIVERSALSDK= 4193 enable_universalsdk= 4194 4195fi 4196 4197if test -n "${UNIVERSALSDK}" 4198then 4199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 4200printf "%s\n" "${UNIVERSALSDK}" >&6; } 4201else 4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4203printf "%s\n" "no" >&6; } 4204fi 4205 4206 4207 4208ARCH_RUN_32BIT="" 4209 4210# For backward compatibility reasons we prefer to select '32-bit' if available, 4211# otherwise use 'intel' 4212UNIVERSAL_ARCHS="32-bit" 4213if test "`uname -s`" = "Darwin" 4214then 4215 if test -n "${UNIVERSALSDK}" 4216 then 4217 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" 4218 then 4219 UNIVERSAL_ARCHS="intel" 4220 fi 4221 fi 4222fi 4223 4224 4225 4226{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 4227printf %s "checking for --with-universal-archs... " >&6; } 4228 4229# Check whether --with-universal-archs was given. 4230if test ${with_universal_archs+y} 4231then : 4232 withval=$with_universal_archs; 4233 UNIVERSAL_ARCHS="$withval" 4234 4235fi 4236 4237if test -n "${UNIVERSALSDK}" 4238then 4239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 4240printf "%s\n" "${UNIVERSAL_ARCHS}" >&6; } 4241else 4242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4243printf "%s\n" "no" >&6; } 4244fi 4245 4246 4247# Check whether --with-framework-name was given. 4248if test ${with_framework_name+y} 4249then : 4250 withval=$with_framework_name; 4251 PYTHONFRAMEWORK=${withval} 4252 PYTHONFRAMEWORKDIR=${withval}.framework 4253 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` 4254 4255else $as_nop 4256 4257 PYTHONFRAMEWORK=Python 4258 PYTHONFRAMEWORKDIR=Python.framework 4259 PYTHONFRAMEWORKIDENTIFIER=org.python.python 4260 4261fi 4262 4263# Check whether --enable-framework was given. 4264if test ${enable_framework+y} 4265then : 4266 enableval=$enable_framework; 4267 case $enableval in 4268 yes) 4269 case $ac_sys_system in 4270 Darwin) enableval=/Library/Frameworks ;; 4271 iOS) enableval=iOS/Frameworks/\$\(MULTIARCH\) ;; 4272 *) as_fn_error $? "Unknown platform for framework build" "$LINENO" 5 4273 esac 4274 esac 4275 4276 case $enableval in 4277 no) 4278 case $ac_sys_system in 4279 iOS) as_fn_error $? "iOS builds must use --enable-framework" "$LINENO" 5 ;; 4280 *) 4281 PYTHONFRAMEWORK= 4282 PYTHONFRAMEWORKDIR=no-framework 4283 PYTHONFRAMEWORKPREFIX= 4284 PYTHONFRAMEWORKINSTALLDIR= 4285 PYTHONFRAMEWORKINSTALLNAMEPREFIX= 4286 RESSRCDIR= 4287 FRAMEWORKINSTALLFIRST= 4288 FRAMEWORKINSTALLLAST= 4289 FRAMEWORKALTINSTALLFIRST= 4290 FRAMEWORKALTINSTALLLAST= 4291 FRAMEWORKPYTHONW= 4292 INSTALLTARGETS="commoninstall bininstall maninstall" 4293 4294 if test "x${prefix}" = "xNONE"; then 4295 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 4296 else 4297 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 4298 fi 4299 enable_framework= 4300 esac 4301 ;; 4302 *) 4303 PYTHONFRAMEWORKPREFIX="${enableval}" 4304 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR 4305 4306 case $ac_sys_system in #( 4307 Darwin) : 4308 FRAMEWORKINSTALLFIRST="frameworkinstallversionedstructure" 4309 FRAMEWORKALTINSTALLFIRST="frameworkinstallversionedstructure " 4310 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" 4311 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" 4312 FRAMEWORKPYTHONW="frameworkpythonw" 4313 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 4314 INSTALLTARGETS="commoninstall bininstall maninstall" 4315 4316 if test "x${prefix}" = "xNONE" ; then 4317 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 4318 4319 else 4320 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 4321 fi 4322 4323 case "${enableval}" in 4324 /System*) 4325 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 4326 if test "${prefix}" = "NONE" ; then 4327 # See below 4328 FRAMEWORKUNIXTOOLSPREFIX="/usr" 4329 fi 4330 ;; 4331 4332 /Library*) 4333 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 4334 ;; 4335 4336 */Library/Frameworks) 4337 MDIR="`dirname "${enableval}"`" 4338 MDIR="`dirname "${MDIR}"`" 4339 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" 4340 4341 if test "${prefix}" = "NONE"; then 4342 # User hasn't specified the 4343 # --prefix option, but wants to install 4344 # the framework in a non-default location, 4345 # ensure that the compatibility links get 4346 # installed relative to that prefix as well 4347 # instead of in /usr/local. 4348 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" 4349 fi 4350 ;; 4351 4352 *) 4353 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 4354 ;; 4355 esac 4356 4357 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION 4358 PYTHONFRAMEWORKINSTALLNAMEPREFIX=${prefix} 4359 RESSRCDIR=Mac/Resources/framework 4360 4361 # Add files for Mac specific code to the list of output 4362 # files: 4363 ac_config_files="$ac_config_files Mac/Makefile" 4364 4365 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" 4366 4367 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" 4368 4369 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" 4370 4371 ;; 4372 iOS) : 4373 FRAMEWORKINSTALLFIRST="frameworkinstallunversionedstructure" 4374 FRAMEWORKALTINSTALLFIRST="frameworkinstallunversionedstructure " 4375 FRAMEWORKINSTALLLAST="frameworkinstallmobileheaders" 4376 FRAMEWORKALTINSTALLLAST="frameworkinstallmobileheaders" 4377 FRAMEWORKPYTHONW= 4378 INSTALLTARGETS="libinstall inclinstall sharedinstall" 4379 4380 prefix=$PYTHONFRAMEWORKPREFIX 4381 PYTHONFRAMEWORKINSTALLNAMEPREFIX="@rpath/$PYTHONFRAMEWORKDIR" 4382 RESSRCDIR=iOS/Resources 4383 4384 ac_config_files="$ac_config_files iOS/Resources/Info.plist" 4385 4386 ;; 4387 *) 4388 as_fn_error $? "Unknown platform for framework build" "$LINENO" 5 4389 ;; 4390 esac 4391 esac 4392 4393else $as_nop 4394 4395 case $ac_sys_system in 4396 iOS) as_fn_error $? "iOS builds must use --enable-framework" "$LINENO" 5 ;; 4397 *) 4398 PYTHONFRAMEWORK= 4399 PYTHONFRAMEWORKDIR=no-framework 4400 PYTHONFRAMEWORKPREFIX= 4401 PYTHONFRAMEWORKINSTALLDIR= 4402 PYTHONFRAMEWORKINSTALLNAMEPREFIX= 4403 RESSRCDIR= 4404 FRAMEWORKINSTALLFIRST= 4405 FRAMEWORKINSTALLLAST= 4406 FRAMEWORKALTINSTALLFIRST= 4407 FRAMEWORKALTINSTALLLAST= 4408 FRAMEWORKPYTHONW= 4409 INSTALLTARGETS="commoninstall bininstall maninstall" 4410 if test "x${prefix}" = "xNONE" ; then 4411 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 4412 else 4413 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 4414 fi 4415 enable_framework= 4416 esac 4417 4418fi 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437printf "%s\n" "#define _PYTHONFRAMEWORK \"${PYTHONFRAMEWORK}\"" >>confdefs.h 4438 4439 4440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-app-store-compliance" >&5 4441printf %s "checking for --with-app-store-compliance... " >&6; } 4442 4443# Check whether --with-app_store_compliance was given. 4444if test ${with_app_store_compliance+y} 4445then : 4446 withval=$with_app_store_compliance; 4447 case "$withval" in 4448 yes) 4449 case $ac_sys_system in 4450 Darwin|iOS) 4451 # iOS is able to share the macOS patch 4452 APP_STORE_COMPLIANCE_PATCH="Mac/Resources/app-store-compliance.patch" 4453 ;; 4454 *) as_fn_error $? "no default app store compliance patch available for $ac_sys_system" "$LINENO" 5 ;; 4455 esac 4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: applying default app store compliance patch" >&5 4457printf "%s\n" "applying default app store compliance patch" >&6; } 4458 ;; 4459 *) 4460 APP_STORE_COMPLIANCE_PATCH="${withval}" 4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: applying custom app store compliance patch" >&5 4462printf "%s\n" "applying custom app store compliance patch" >&6; } 4463 ;; 4464 esac 4465 4466else $as_nop 4467 4468 case $ac_sys_system in 4469 iOS) 4470 # Always apply the compliance patch on iOS; we can use the macOS patch 4471 APP_STORE_COMPLIANCE_PATCH="Mac/Resources/app-store-compliance.patch" 4472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: applying default app store compliance patch" >&5 4473printf "%s\n" "applying default app store compliance patch" >&6; } 4474 ;; 4475 *) 4476 # No default app compliance patching on any other platform 4477 APP_STORE_COMPLIANCE_PATCH= 4478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not patching for app store compliance" >&5 4479printf "%s\n" "not patching for app store compliance" >&6; } 4480 ;; 4481 esac 4482 4483fi 4484 4485 4486 4487 4488if test "$cross_compiling" = yes; then 4489 case "$host" in 4490 *-*-linux*) 4491 case "$host_cpu" in 4492 arm*) 4493 _host_ident=arm 4494 ;; 4495 *) 4496 _host_ident=$host_cpu 4497 esac 4498 ;; 4499 *-*-cygwin*) 4500 _host_ident= 4501 ;; 4502 *-apple-ios*) 4503 _host_os=`echo $host | cut -d '-' -f3` 4504 _host_device=`echo $host | cut -d '-' -f4` 4505 _host_device=${_host_device:=os} 4506 4507 # IPHONEOS_DEPLOYMENT_TARGET is the minimum supported iOS version 4508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking iOS deployment target" >&5 4509printf %s "checking iOS deployment target... " >&6; } 4510 IPHONEOS_DEPLOYMENT_TARGET=$(echo ${_host_os} | cut -c4-) 4511 IPHONEOS_DEPLOYMENT_TARGET=${IPHONEOS_DEPLOYMENT_TARGET:=13.0} 4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPHONEOS_DEPLOYMENT_TARGET" >&5 4513printf "%s\n" "$IPHONEOS_DEPLOYMENT_TARGET" >&6; } 4514 4515 case "$host_cpu" in 4516 aarch64) 4517 _host_ident=${IPHONEOS_DEPLOYMENT_TARGET}-arm64-iphone${_host_device} 4518 ;; 4519 *) 4520 _host_ident=${IPHONEOS_DEPLOYMENT_TARGET}-$host_cpu-iphone${_host_device} 4521 ;; 4522 esac 4523 ;; 4524 *-*-vxworks*) 4525 _host_ident=$host_cpu 4526 ;; 4527 wasm32-*-* | wasm64-*-*) 4528 _host_ident=$host_cpu 4529 ;; 4530 *) 4531 # for now, limit cross builds to known configurations 4532 MACHDEP="unknown" 4533 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 4534 esac 4535 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_ident:+-$_host_ident}" 4536fi 4537 4538# Some systems cannot stand _XOPEN_SOURCE being defined at all; they 4539# disable features if it is defined, without any means to access these 4540# features as extensions. For these systems, we skip the definition of 4541# _XOPEN_SOURCE. Before adding a system to the list to gain access to 4542# some feature, make sure there is no alternative way to access this 4543# feature. Also, when using wildcards, make sure you have verified the 4544# need for not defining _XOPEN_SOURCE on all systems matching the 4545# wildcard, and that the wildcard does not include future systems 4546# (which may remove their limitations). 4547case $ac_sys_system/$ac_sys_release in 4548 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, 4549 # even though select is a POSIX function. Reported by J. Ribbens. 4550 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. 4551 # In addition, Stefan Krah confirms that issue #1244610 exists through 4552 # OpenBSD 4.6, but is fixed in 4.7. 4553 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) 4554 define_xopen_source=no 4555 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 4556 # also defined. This can be overridden by defining _BSD_SOURCE 4557 # As this has a different meaning on Linux, only define it on OpenBSD 4558 4559printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h 4560 4561 ;; 4562 OpenBSD/*) 4563 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 4564 # also defined. This can be overridden by defining _BSD_SOURCE 4565 # As this has a different meaning on Linux, only define it on OpenBSD 4566 4567printf "%s\n" "#define _BSD_SOURCE 1" >>confdefs.h 4568 4569 ;; 4570 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of 4571 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by 4572 # Marc Recht 4573 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) 4574 define_xopen_source=no;; 4575 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a 4576 # request to enable features supported by the standard as a request 4577 # to disable features not supported by the standard. The best way 4578 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out 4579 # entirely and define __EXTENSIONS__ instead. 4580 SunOS/*) 4581 define_xopen_source=no;; 4582 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, 4583 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. 4584 # Reconfirmed for 7.1.4 by Martin v. Loewis. 4585 OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) 4586 define_xopen_source=no;; 4587 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, 4588 # but used in struct sockaddr.sa_family. Reported by Tim Rice. 4589 SCO_SV/3.2) 4590 define_xopen_source=no;; 4591 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 4592 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which 4593 # identifies itself as Darwin/7.* 4594 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 4595 # disables platform specific features beyond repair. 4596 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 4597 # has no effect, don't bother defining them 4598 Darwin/[6789].*) 4599 define_xopen_source=no;; 4600 Darwin/[12][0-9].*) 4601 define_xopen_source=no;; 4602 # On iOS, defining _POSIX_C_SOURCE also disables platform specific features. 4603 iOS/*) 4604 define_xopen_source=no;; 4605 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from 4606 # defining NI_NUMERICHOST. 4607 QNX/6.3.2) 4608 define_xopen_source=no 4609 ;; 4610 # On VxWorks, defining _XOPEN_SOURCE causes compile failures 4611 # in network headers still using system V types. 4612 VxWorks/*) 4613 define_xopen_source=no 4614 ;; 4615 4616 # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides 4617 # chroot() and other functions 4618 hp*|HP*) 4619 define_xopen_source=no 4620 ;; 4621 4622esac 4623 4624if test $define_xopen_source = yes 4625then 4626 # X/Open 7, incorporating POSIX.1-2008 4627 4628printf "%s\n" "#define _XOPEN_SOURCE 700" >>confdefs.h 4629 4630 4631 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires 4632 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else 4633 # several APIs are not declared. Since this is also needed in some 4634 # cases for HP-UX, we define it globally. 4635 4636printf "%s\n" "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 4637 4638 4639 4640printf "%s\n" "#define _POSIX_C_SOURCE 200809L" >>confdefs.h 4641 4642fi 4643 4644# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE 4645case $ac_sys_system in 4646 hp*|HP*) 4647 define_stdc_a1=yes;; 4648 *) 4649 define_stdc_a1=no;; 4650esac 4651 4652if test $define_stdc_a1 = yes 4653then 4654 4655printf "%s\n" "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h 4656 4657fi 4658 4659# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, 4660# it may influence the way we can build extensions, so distutils 4661# needs to check it 4662 4663 4664CONFIGURE_MACOSX_DEPLOYMENT_TARGET= 4665EXPORT_MACOSX_DEPLOYMENT_TARGET='#' 4666 4667# Record the value of IPHONEOS_DEPLOYMENT_TARGET enforced by the selected host triple. 4668 4669 4670# checks for alternative programs 4671 4672# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just 4673# for debug/optimization stuff. BASECFLAGS is for flags that are required 4674# just to get things to compile and link. Users are free to override OPT 4675# when running configure or make. The build should not break if they do. 4676# BASECFLAGS should generally not be messed with, however. 4677 4678# If the user switches compilers, we can't believe the cache 4679if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" 4680then 4681 as_fn_error $? "cached CC is different -- throw away $cache_file 4682(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 4683fi 4684 4685# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 4686# when the compiler supports them, but we don't always want -O2, and 4687# we set -g later. 4688if test -z "$CFLAGS"; then 4689 CFLAGS= 4690fi 4691 4692case $host in #( 4693 wasm64-*-emscripten) : 4694 4695 as_fn_append CFLAGS " -sMEMORY64=1" 4696 as_fn_append LDFLAGS " -sMEMORY64=1" 4697 ;; #( 4698 *) : 4699 ;; 4700esac 4701 4702case $ac_sys_system in #( 4703 iOS) : 4704 4705 as_fn_append CFLAGS " -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}" 4706 as_fn_append LDFLAGS " -mios-version-min=${IPHONEOS_DEPLOYMENT_TARGET}" 4707 ;; #( 4708 *) : 4709 ;; 4710esac 4711 4712if test "$ac_sys_system" = "Darwin" 4713then 4714 # Extract the first word of "xcrun", so it can be a program name with args. 4715set dummy xcrun; ac_word=$2 4716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4717printf %s "checking for $ac_word... " >&6; } 4718if test ${ac_cv_prog_HAS_XCRUN+y} 4719then : 4720 printf %s "(cached) " >&6 4721else $as_nop 4722 if test -n "$HAS_XCRUN"; then 4723 ac_cv_prog_HAS_XCRUN="$HAS_XCRUN" # Let the user override the test. 4724else 4725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4726for as_dir in $PATH 4727do 4728 IFS=$as_save_IFS 4729 case $as_dir in #((( 4730 '') as_dir=./ ;; 4731 */) ;; 4732 *) as_dir=$as_dir/ ;; 4733 esac 4734 for ac_exec_ext in '' $ac_executable_extensions; do 4735 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4736 ac_cv_prog_HAS_XCRUN="yes" 4737 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4738 break 2 4739 fi 4740done 4741 done 4742IFS=$as_save_IFS 4743 4744 test -z "$ac_cv_prog_HAS_XCRUN" && ac_cv_prog_HAS_XCRUN="missing" 4745fi 4746fi 4747HAS_XCRUN=$ac_cv_prog_HAS_XCRUN 4748if test -n "$HAS_XCRUN"; then 4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAS_XCRUN" >&5 4750printf "%s\n" "$HAS_XCRUN" >&6; } 4751else 4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4753printf "%s\n" "no" >&6; } 4754fi 4755 4756 4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking macOS SDKROOT" >&5 4758printf %s "checking macOS SDKROOT... " >&6; } 4759 if test -z "$SDKROOT"; then 4760 if test "$HAS_XCRUN" = "yes"; then 4761 SDKROOT=$(xcrun --show-sdk-path) 4762 else 4763 SDKROOT="/" 4764 fi 4765 fi 4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SDKROOT" >&5 4767printf "%s\n" "$SDKROOT" >&6; } 4768 4769 # Compiler selection on MacOSX is more complicated than 4770 # AC_PROG_CC can handle, see Mac/README for more 4771 # information 4772 if test -z "${CC}" 4773 then 4774 found_gcc= 4775 found_clang= 4776 as_save_IFS=$IFS; IFS=: 4777 for as_dir in $PATH 4778 do 4779 IFS=$as_save_IFS 4780 if test -x "${as_dir}/gcc"; then 4781 if test -z "${found_gcc}"; then 4782 found_gcc="${as_dir}/gcc" 4783 fi 4784 fi 4785 if test -x "${as_dir}/clang"; then 4786 if test -z "${found_clang}"; then 4787 found_clang="${as_dir}/clang" 4788 fi 4789 fi 4790 done 4791 IFS=$as_save_IFS 4792 4793 if test -n "$found_gcc" -a -n "$found_clang" 4794 then 4795 if test -n "`"$found_gcc" --version | grep llvm-gcc`" 4796 then 4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 4798printf "%s\n" "$as_me: Detected llvm-gcc, falling back to clang" >&6;} 4799 CC="$found_clang" 4800 CXX="$found_clang++" 4801 fi 4802 4803 4804 elif test -z "$found_gcc" -a -n "$found_clang" 4805 then 4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 4807printf "%s\n" "$as_me: No GCC found, use CLANG" >&6;} 4808 CC="$found_clang" 4809 CXX="$found_clang++" 4810 4811 elif test -z "$found_gcc" -a -z "$found_clang" 4812 then 4813 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` 4814 if test -n "${found_clang}" 4815 then 4816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 4817printf "%s\n" "$as_me: Using clang from Xcode.app" >&6;} 4818 CC="${found_clang}" 4819 CXX="`/usr/bin/xcrun -find clang++`" 4820 4821 # else: use default behaviour 4822 fi 4823 fi 4824 fi 4825fi 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835ac_ext=c 4836ac_cpp='$CPP $CPPFLAGS' 4837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4839ac_compiler_gnu=$ac_cv_c_compiler_gnu 4840if test -n "$ac_tool_prefix"; then 4841 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4842set dummy ${ac_tool_prefix}gcc; ac_word=$2 4843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4844printf %s "checking for $ac_word... " >&6; } 4845if test ${ac_cv_prog_CC+y} 4846then : 4847 printf %s "(cached) " >&6 4848else $as_nop 4849 if test -n "$CC"; then 4850 ac_cv_prog_CC="$CC" # Let the user override the test. 4851else 4852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4853for as_dir in $PATH 4854do 4855 IFS=$as_save_IFS 4856 case $as_dir in #((( 4857 '') as_dir=./ ;; 4858 */) ;; 4859 *) as_dir=$as_dir/ ;; 4860 esac 4861 for ac_exec_ext in '' $ac_executable_extensions; do 4862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4863 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4865 break 2 4866 fi 4867done 4868 done 4869IFS=$as_save_IFS 4870 4871fi 4872fi 4873CC=$ac_cv_prog_CC 4874if test -n "$CC"; then 4875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4876printf "%s\n" "$CC" >&6; } 4877else 4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4879printf "%s\n" "no" >&6; } 4880fi 4881 4882 4883fi 4884if test -z "$ac_cv_prog_CC"; then 4885 ac_ct_CC=$CC 4886 # Extract the first word of "gcc", so it can be a program name with args. 4887set dummy gcc; ac_word=$2 4888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4889printf %s "checking for $ac_word... " >&6; } 4890if test ${ac_cv_prog_ac_ct_CC+y} 4891then : 4892 printf %s "(cached) " >&6 4893else $as_nop 4894 if test -n "$ac_ct_CC"; then 4895 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4896else 4897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4898for as_dir in $PATH 4899do 4900 IFS=$as_save_IFS 4901 case $as_dir in #((( 4902 '') as_dir=./ ;; 4903 */) ;; 4904 *) as_dir=$as_dir/ ;; 4905 esac 4906 for ac_exec_ext in '' $ac_executable_extensions; do 4907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4908 ac_cv_prog_ac_ct_CC="gcc" 4909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4910 break 2 4911 fi 4912done 4913 done 4914IFS=$as_save_IFS 4915 4916fi 4917fi 4918ac_ct_CC=$ac_cv_prog_ac_ct_CC 4919if test -n "$ac_ct_CC"; then 4920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4921printf "%s\n" "$ac_ct_CC" >&6; } 4922else 4923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4924printf "%s\n" "no" >&6; } 4925fi 4926 4927 if test "x$ac_ct_CC" = x; then 4928 CC="" 4929 else 4930 case $cross_compiling:$ac_tool_warned in 4931yes:) 4932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4933printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4934ac_tool_warned=yes ;; 4935esac 4936 CC=$ac_ct_CC 4937 fi 4938else 4939 CC="$ac_cv_prog_CC" 4940fi 4941 4942if test -z "$CC"; then 4943 if test -n "$ac_tool_prefix"; then 4944 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4945set dummy ${ac_tool_prefix}cc; ac_word=$2 4946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4947printf %s "checking for $ac_word... " >&6; } 4948if test ${ac_cv_prog_CC+y} 4949then : 4950 printf %s "(cached) " >&6 4951else $as_nop 4952 if test -n "$CC"; then 4953 ac_cv_prog_CC="$CC" # Let the user override the test. 4954else 4955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4956for as_dir in $PATH 4957do 4958 IFS=$as_save_IFS 4959 case $as_dir in #((( 4960 '') as_dir=./ ;; 4961 */) ;; 4962 *) as_dir=$as_dir/ ;; 4963 esac 4964 for ac_exec_ext in '' $ac_executable_extensions; do 4965 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 4966 ac_cv_prog_CC="${ac_tool_prefix}cc" 4967 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 4968 break 2 4969 fi 4970done 4971 done 4972IFS=$as_save_IFS 4973 4974fi 4975fi 4976CC=$ac_cv_prog_CC 4977if test -n "$CC"; then 4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4979printf "%s\n" "$CC" >&6; } 4980else 4981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 4982printf "%s\n" "no" >&6; } 4983fi 4984 4985 4986 fi 4987fi 4988if test -z "$CC"; then 4989 # Extract the first word of "cc", so it can be a program name with args. 4990set dummy cc; ac_word=$2 4991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4992printf %s "checking for $ac_word... " >&6; } 4993if test ${ac_cv_prog_CC+y} 4994then : 4995 printf %s "(cached) " >&6 4996else $as_nop 4997 if test -n "$CC"; then 4998 ac_cv_prog_CC="$CC" # Let the user override the test. 4999else 5000 ac_prog_rejected=no 5001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5002for as_dir in $PATH 5003do 5004 IFS=$as_save_IFS 5005 case $as_dir in #((( 5006 '') as_dir=./ ;; 5007 */) ;; 5008 *) as_dir=$as_dir/ ;; 5009 esac 5010 for ac_exec_ext in '' $ac_executable_extensions; do 5011 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5012 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5013 ac_prog_rejected=yes 5014 continue 5015 fi 5016 ac_cv_prog_CC="cc" 5017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5018 break 2 5019 fi 5020done 5021 done 5022IFS=$as_save_IFS 5023 5024if test $ac_prog_rejected = yes; then 5025 # We found a bogon in the path, so make sure we never use it. 5026 set dummy $ac_cv_prog_CC 5027 shift 5028 if test $# != 0; then 5029 # We chose a different compiler from the bogus one. 5030 # However, it has the same basename, so the bogon will be chosen 5031 # first if we set CC to just the basename; use the full file name. 5032 shift 5033 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 5034 fi 5035fi 5036fi 5037fi 5038CC=$ac_cv_prog_CC 5039if test -n "$CC"; then 5040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5041printf "%s\n" "$CC" >&6; } 5042else 5043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5044printf "%s\n" "no" >&6; } 5045fi 5046 5047 5048fi 5049if test -z "$CC"; then 5050 if test -n "$ac_tool_prefix"; then 5051 for ac_prog in cl.exe 5052 do 5053 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5054set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5055{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5056printf %s "checking for $ac_word... " >&6; } 5057if test ${ac_cv_prog_CC+y} 5058then : 5059 printf %s "(cached) " >&6 5060else $as_nop 5061 if test -n "$CC"; then 5062 ac_cv_prog_CC="$CC" # Let the user override the test. 5063else 5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5065for as_dir in $PATH 5066do 5067 IFS=$as_save_IFS 5068 case $as_dir in #((( 5069 '') as_dir=./ ;; 5070 */) ;; 5071 *) as_dir=$as_dir/ ;; 5072 esac 5073 for ac_exec_ext in '' $ac_executable_extensions; do 5074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5075 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5077 break 2 5078 fi 5079done 5080 done 5081IFS=$as_save_IFS 5082 5083fi 5084fi 5085CC=$ac_cv_prog_CC 5086if test -n "$CC"; then 5087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5088printf "%s\n" "$CC" >&6; } 5089else 5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5091printf "%s\n" "no" >&6; } 5092fi 5093 5094 5095 test -n "$CC" && break 5096 done 5097fi 5098if test -z "$CC"; then 5099 ac_ct_CC=$CC 5100 for ac_prog in cl.exe 5101do 5102 # Extract the first word of "$ac_prog", so it can be a program name with args. 5103set dummy $ac_prog; ac_word=$2 5104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5105printf %s "checking for $ac_word... " >&6; } 5106if test ${ac_cv_prog_ac_ct_CC+y} 5107then : 5108 printf %s "(cached) " >&6 5109else $as_nop 5110 if test -n "$ac_ct_CC"; then 5111 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5112else 5113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5114for as_dir in $PATH 5115do 5116 IFS=$as_save_IFS 5117 case $as_dir in #((( 5118 '') as_dir=./ ;; 5119 */) ;; 5120 *) as_dir=$as_dir/ ;; 5121 esac 5122 for ac_exec_ext in '' $ac_executable_extensions; do 5123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5124 ac_cv_prog_ac_ct_CC="$ac_prog" 5125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5126 break 2 5127 fi 5128done 5129 done 5130IFS=$as_save_IFS 5131 5132fi 5133fi 5134ac_ct_CC=$ac_cv_prog_ac_ct_CC 5135if test -n "$ac_ct_CC"; then 5136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5137printf "%s\n" "$ac_ct_CC" >&6; } 5138else 5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5140printf "%s\n" "no" >&6; } 5141fi 5142 5143 5144 test -n "$ac_ct_CC" && break 5145done 5146 5147 if test "x$ac_ct_CC" = x; then 5148 CC="" 5149 else 5150 case $cross_compiling:$ac_tool_warned in 5151yes:) 5152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5153printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5154ac_tool_warned=yes ;; 5155esac 5156 CC=$ac_ct_CC 5157 fi 5158fi 5159 5160fi 5161if test -z "$CC"; then 5162 if test -n "$ac_tool_prefix"; then 5163 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 5164set dummy ${ac_tool_prefix}clang; ac_word=$2 5165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5166printf %s "checking for $ac_word... " >&6; } 5167if test ${ac_cv_prog_CC+y} 5168then : 5169 printf %s "(cached) " >&6 5170else $as_nop 5171 if test -n "$CC"; then 5172 ac_cv_prog_CC="$CC" # Let the user override the test. 5173else 5174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5175for as_dir in $PATH 5176do 5177 IFS=$as_save_IFS 5178 case $as_dir in #((( 5179 '') as_dir=./ ;; 5180 */) ;; 5181 *) as_dir=$as_dir/ ;; 5182 esac 5183 for ac_exec_ext in '' $ac_executable_extensions; do 5184 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5185 ac_cv_prog_CC="${ac_tool_prefix}clang" 5186 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5187 break 2 5188 fi 5189done 5190 done 5191IFS=$as_save_IFS 5192 5193fi 5194fi 5195CC=$ac_cv_prog_CC 5196if test -n "$CC"; then 5197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5198printf "%s\n" "$CC" >&6; } 5199else 5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5201printf "%s\n" "no" >&6; } 5202fi 5203 5204 5205fi 5206if test -z "$ac_cv_prog_CC"; then 5207 ac_ct_CC=$CC 5208 # Extract the first word of "clang", so it can be a program name with args. 5209set dummy clang; ac_word=$2 5210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5211printf %s "checking for $ac_word... " >&6; } 5212if test ${ac_cv_prog_ac_ct_CC+y} 5213then : 5214 printf %s "(cached) " >&6 5215else $as_nop 5216 if test -n "$ac_ct_CC"; then 5217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5218else 5219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5220for as_dir in $PATH 5221do 5222 IFS=$as_save_IFS 5223 case $as_dir in #((( 5224 '') as_dir=./ ;; 5225 */) ;; 5226 *) as_dir=$as_dir/ ;; 5227 esac 5228 for ac_exec_ext in '' $ac_executable_extensions; do 5229 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 5230 ac_cv_prog_ac_ct_CC="clang" 5231 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 5232 break 2 5233 fi 5234done 5235 done 5236IFS=$as_save_IFS 5237 5238fi 5239fi 5240ac_ct_CC=$ac_cv_prog_ac_ct_CC 5241if test -n "$ac_ct_CC"; then 5242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5243printf "%s\n" "$ac_ct_CC" >&6; } 5244else 5245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5246printf "%s\n" "no" >&6; } 5247fi 5248 5249 if test "x$ac_ct_CC" = x; then 5250 CC="" 5251 else 5252 case $cross_compiling:$ac_tool_warned in 5253yes:) 5254{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5255printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5256ac_tool_warned=yes ;; 5257esac 5258 CC=$ac_ct_CC 5259 fi 5260else 5261 CC="$ac_cv_prog_CC" 5262fi 5263 5264fi 5265 5266 5267test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5268printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5269as_fn_error $? "no acceptable C compiler found in \$PATH 5270See \`config.log' for more details" "$LINENO" 5; } 5271 5272# Provide some information about the compiler. 5273printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5274set X $ac_compile 5275ac_compiler=$2 5276for ac_option in --version -v -V -qversion -version; do 5277 { { ac_try="$ac_compiler $ac_option >&5" 5278case "(($ac_try" in 5279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5280 *) ac_try_echo=$ac_try;; 5281esac 5282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5283printf "%s\n" "$ac_try_echo"; } >&5 5284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5285 ac_status=$? 5286 if test -s conftest.err; then 5287 sed '10a\ 5288... rest of stderr output deleted ... 5289 10q' conftest.err >conftest.er1 5290 cat conftest.er1 >&5 5291 fi 5292 rm -f conftest.er1 conftest.err 5293 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5294 test $ac_status = 0; } 5295done 5296 5297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5298/* end confdefs.h. */ 5299 5300int 5301main (void) 5302{ 5303 5304 ; 5305 return 0; 5306} 5307_ACEOF 5308ac_clean_files_save=$ac_clean_files 5309ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 5310# Try to create an executable without -o first, disregard a.out. 5311# It will help us diagnose broken compilers, and finding out an intuition 5312# of exeext. 5313{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 5314printf %s "checking whether the C compiler works... " >&6; } 5315ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 5316 5317# The possible output files: 5318ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 5319 5320ac_rmfiles= 5321for ac_file in $ac_files 5322do 5323 case $ac_file in 5324 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5325 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 5326 esac 5327done 5328rm -f $ac_rmfiles 5329 5330if { { ac_try="$ac_link_default" 5331case "(($ac_try" in 5332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5333 *) ac_try_echo=$ac_try;; 5334esac 5335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5336printf "%s\n" "$ac_try_echo"; } >&5 5337 (eval "$ac_link_default") 2>&5 5338 ac_status=$? 5339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5340 test $ac_status = 0; } 5341then : 5342 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 5343# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 5344# in a Makefile. We should not override ac_cv_exeext if it was cached, 5345# so that the user can short-circuit this test for compilers unknown to 5346# Autoconf. 5347for ac_file in $ac_files '' 5348do 5349 test -f "$ac_file" || continue 5350 case $ac_file in 5351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 5352 ;; 5353 [ab].out ) 5354 # We found the default executable, but exeext='' is most 5355 # certainly right. 5356 break;; 5357 *.* ) 5358 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 5359 then :; else 5360 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5361 fi 5362 # We set ac_cv_exeext here because the later test for it is not 5363 # safe: cross compilers may not add the suffix if given an `-o' 5364 # argument, so we may need to know it at that point already. 5365 # Even if this section looks crufty: it has the advantage of 5366 # actually working. 5367 break;; 5368 * ) 5369 break;; 5370 esac 5371done 5372test "$ac_cv_exeext" = no && ac_cv_exeext= 5373 5374else $as_nop 5375 ac_file='' 5376fi 5377if test -z "$ac_file" 5378then : 5379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 5380printf "%s\n" "no" >&6; } 5381printf "%s\n" "$as_me: failed program was:" >&5 5382sed 's/^/| /' conftest.$ac_ext >&5 5383 5384{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5385printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5386as_fn_error 77 "C compiler cannot create executables 5387See \`config.log' for more details" "$LINENO" 5; } 5388else $as_nop 5389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5390printf "%s\n" "yes" >&6; } 5391fi 5392{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 5393printf %s "checking for C compiler default output file name... " >&6; } 5394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 5395printf "%s\n" "$ac_file" >&6; } 5396ac_exeext=$ac_cv_exeext 5397 5398rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 5399ac_clean_files=$ac_clean_files_save 5400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 5401printf %s "checking for suffix of executables... " >&6; } 5402if { { ac_try="$ac_link" 5403case "(($ac_try" in 5404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5405 *) ac_try_echo=$ac_try;; 5406esac 5407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5408printf "%s\n" "$ac_try_echo"; } >&5 5409 (eval "$ac_link") 2>&5 5410 ac_status=$? 5411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5412 test $ac_status = 0; } 5413then : 5414 # If both `conftest.exe' and `conftest' are `present' (well, observable) 5415# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 5416# work properly (i.e., refer to `conftest.exe'), while it won't with 5417# `rm'. 5418for ac_file in conftest.exe conftest conftest.*; do 5419 test -f "$ac_file" || continue 5420 case $ac_file in 5421 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 5422 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 5423 break;; 5424 * ) break;; 5425 esac 5426done 5427else $as_nop 5428 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5429printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5430as_fn_error $? "cannot compute suffix of executables: cannot compile and link 5431See \`config.log' for more details" "$LINENO" 5; } 5432fi 5433rm -f conftest conftest$ac_cv_exeext 5434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 5435printf "%s\n" "$ac_cv_exeext" >&6; } 5436 5437rm -f conftest.$ac_ext 5438EXEEXT=$ac_cv_exeext 5439ac_exeext=$EXEEXT 5440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5441/* end confdefs.h. */ 5442#include <stdio.h> 5443int 5444main (void) 5445{ 5446FILE *f = fopen ("conftest.out", "w"); 5447 return ferror (f) || fclose (f) != 0; 5448 5449 ; 5450 return 0; 5451} 5452_ACEOF 5453ac_clean_files="$ac_clean_files conftest.out" 5454# Check that the compiler produces executables we can run. If not, either 5455# the compiler is broken, or we cross compile. 5456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 5457printf %s "checking whether we are cross compiling... " >&6; } 5458if test "$cross_compiling" != yes; then 5459 { { ac_try="$ac_link" 5460case "(($ac_try" in 5461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5462 *) ac_try_echo=$ac_try;; 5463esac 5464eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5465printf "%s\n" "$ac_try_echo"; } >&5 5466 (eval "$ac_link") 2>&5 5467 ac_status=$? 5468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5469 test $ac_status = 0; } 5470 if { ac_try='./conftest$ac_cv_exeext' 5471 { { case "(($ac_try" in 5472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5473 *) ac_try_echo=$ac_try;; 5474esac 5475eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5476printf "%s\n" "$ac_try_echo"; } >&5 5477 (eval "$ac_try") 2>&5 5478 ac_status=$? 5479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5480 test $ac_status = 0; }; }; then 5481 cross_compiling=no 5482 else 5483 if test "$cross_compiling" = maybe; then 5484 cross_compiling=yes 5485 else 5486 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5487printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5488as_fn_error 77 "cannot run C compiled programs. 5489If you meant to cross compile, use \`--host'. 5490See \`config.log' for more details" "$LINENO" 5; } 5491 fi 5492 fi 5493fi 5494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 5495printf "%s\n" "$cross_compiling" >&6; } 5496 5497rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 5498ac_clean_files=$ac_clean_files_save 5499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 5500printf %s "checking for suffix of object files... " >&6; } 5501if test ${ac_cv_objext+y} 5502then : 5503 printf %s "(cached) " >&6 5504else $as_nop 5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5506/* end confdefs.h. */ 5507 5508int 5509main (void) 5510{ 5511 5512 ; 5513 return 0; 5514} 5515_ACEOF 5516rm -f conftest.o conftest.obj 5517if { { ac_try="$ac_compile" 5518case "(($ac_try" in 5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5520 *) ac_try_echo=$ac_try;; 5521esac 5522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5523printf "%s\n" "$ac_try_echo"; } >&5 5524 (eval "$ac_compile") 2>&5 5525 ac_status=$? 5526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5527 test $ac_status = 0; } 5528then : 5529 for ac_file in conftest.o conftest.obj conftest.*; do 5530 test -f "$ac_file" || continue; 5531 case $ac_file in 5532 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 5533 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 5534 break;; 5535 esac 5536done 5537else $as_nop 5538 printf "%s\n" "$as_me: failed program was:" >&5 5539sed 's/^/| /' conftest.$ac_ext >&5 5540 5541{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5542printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5543as_fn_error $? "cannot compute suffix of object files: cannot compile 5544See \`config.log' for more details" "$LINENO" 5; } 5545fi 5546rm -f conftest.$ac_cv_objext conftest.$ac_ext 5547fi 5548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 5549printf "%s\n" "$ac_cv_objext" >&6; } 5550OBJEXT=$ac_cv_objext 5551ac_objext=$OBJEXT 5552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 5553printf %s "checking whether the compiler supports GNU C... " >&6; } 5554if test ${ac_cv_c_compiler_gnu+y} 5555then : 5556 printf %s "(cached) " >&6 5557else $as_nop 5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5559/* end confdefs.h. */ 5560 5561int 5562main (void) 5563{ 5564#ifndef __GNUC__ 5565 choke me 5566#endif 5567 5568 ; 5569 return 0; 5570} 5571_ACEOF 5572if ac_fn_c_try_compile "$LINENO" 5573then : 5574 ac_compiler_gnu=yes 5575else $as_nop 5576 ac_compiler_gnu=no 5577fi 5578rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5579ac_cv_c_compiler_gnu=$ac_compiler_gnu 5580 5581fi 5582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5583printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 5584ac_compiler_gnu=$ac_cv_c_compiler_gnu 5585 5586if test $ac_compiler_gnu = yes; then 5587 GCC=yes 5588else 5589 GCC= 5590fi 5591ac_test_CFLAGS=${CFLAGS+y} 5592ac_save_CFLAGS=$CFLAGS 5593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5594printf %s "checking whether $CC accepts -g... " >&6; } 5595if test ${ac_cv_prog_cc_g+y} 5596then : 5597 printf %s "(cached) " >&6 5598else $as_nop 5599 ac_save_c_werror_flag=$ac_c_werror_flag 5600 ac_c_werror_flag=yes 5601 ac_cv_prog_cc_g=no 5602 CFLAGS="-g" 5603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5604/* end confdefs.h. */ 5605 5606int 5607main (void) 5608{ 5609 5610 ; 5611 return 0; 5612} 5613_ACEOF 5614if ac_fn_c_try_compile "$LINENO" 5615then : 5616 ac_cv_prog_cc_g=yes 5617else $as_nop 5618 CFLAGS="" 5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5620/* end confdefs.h. */ 5621 5622int 5623main (void) 5624{ 5625 5626 ; 5627 return 0; 5628} 5629_ACEOF 5630if ac_fn_c_try_compile "$LINENO" 5631then : 5632 5633else $as_nop 5634 ac_c_werror_flag=$ac_save_c_werror_flag 5635 CFLAGS="-g" 5636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5637/* end confdefs.h. */ 5638 5639int 5640main (void) 5641{ 5642 5643 ; 5644 return 0; 5645} 5646_ACEOF 5647if ac_fn_c_try_compile "$LINENO" 5648then : 5649 ac_cv_prog_cc_g=yes 5650fi 5651rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5652fi 5653rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5654fi 5655rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 5656 ac_c_werror_flag=$ac_save_c_werror_flag 5657fi 5658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5659printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 5660if test $ac_test_CFLAGS; then 5661 CFLAGS=$ac_save_CFLAGS 5662elif test $ac_cv_prog_cc_g = yes; then 5663 if test "$GCC" = yes; then 5664 CFLAGS="-g -O2" 5665 else 5666 CFLAGS="-g" 5667 fi 5668else 5669 if test "$GCC" = yes; then 5670 CFLAGS="-O2" 5671 else 5672 CFLAGS= 5673 fi 5674fi 5675ac_prog_cc_stdc=no 5676if test x$ac_prog_cc_stdc = xno 5677then : 5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 5679printf %s "checking for $CC option to enable C11 features... " >&6; } 5680if test ${ac_cv_prog_cc_c11+y} 5681then : 5682 printf %s "(cached) " >&6 5683else $as_nop 5684 ac_cv_prog_cc_c11=no 5685ac_save_CC=$CC 5686cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5687/* end confdefs.h. */ 5688$ac_c_conftest_c11_program 5689_ACEOF 5690for ac_arg in '' -std=gnu11 5691do 5692 CC="$ac_save_CC $ac_arg" 5693 if ac_fn_c_try_compile "$LINENO" 5694then : 5695 ac_cv_prog_cc_c11=$ac_arg 5696fi 5697rm -f core conftest.err conftest.$ac_objext conftest.beam 5698 test "x$ac_cv_prog_cc_c11" != "xno" && break 5699done 5700rm -f conftest.$ac_ext 5701CC=$ac_save_CC 5702fi 5703 5704if test "x$ac_cv_prog_cc_c11" = xno 5705then : 5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5707printf "%s\n" "unsupported" >&6; } 5708else $as_nop 5709 if test "x$ac_cv_prog_cc_c11" = x 5710then : 5711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5712printf "%s\n" "none needed" >&6; } 5713else $as_nop 5714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 5715printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 5716 CC="$CC $ac_cv_prog_cc_c11" 5717fi 5718 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 5719 ac_prog_cc_stdc=c11 5720fi 5721fi 5722if test x$ac_prog_cc_stdc = xno 5723then : 5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 5725printf %s "checking for $CC option to enable C99 features... " >&6; } 5726if test ${ac_cv_prog_cc_c99+y} 5727then : 5728 printf %s "(cached) " >&6 5729else $as_nop 5730 ac_cv_prog_cc_c99=no 5731ac_save_CC=$CC 5732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5733/* end confdefs.h. */ 5734$ac_c_conftest_c99_program 5735_ACEOF 5736for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 5737do 5738 CC="$ac_save_CC $ac_arg" 5739 if ac_fn_c_try_compile "$LINENO" 5740then : 5741 ac_cv_prog_cc_c99=$ac_arg 5742fi 5743rm -f core conftest.err conftest.$ac_objext conftest.beam 5744 test "x$ac_cv_prog_cc_c99" != "xno" && break 5745done 5746rm -f conftest.$ac_ext 5747CC=$ac_save_CC 5748fi 5749 5750if test "x$ac_cv_prog_cc_c99" = xno 5751then : 5752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5753printf "%s\n" "unsupported" >&6; } 5754else $as_nop 5755 if test "x$ac_cv_prog_cc_c99" = x 5756then : 5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5758printf "%s\n" "none needed" >&6; } 5759else $as_nop 5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5761printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 5762 CC="$CC $ac_cv_prog_cc_c99" 5763fi 5764 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5765 ac_prog_cc_stdc=c99 5766fi 5767fi 5768if test x$ac_prog_cc_stdc = xno 5769then : 5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 5771printf %s "checking for $CC option to enable C89 features... " >&6; } 5772if test ${ac_cv_prog_cc_c89+y} 5773then : 5774 printf %s "(cached) " >&6 5775else $as_nop 5776 ac_cv_prog_cc_c89=no 5777ac_save_CC=$CC 5778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5779/* end confdefs.h. */ 5780$ac_c_conftest_c89_program 5781_ACEOF 5782for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5783do 5784 CC="$ac_save_CC $ac_arg" 5785 if ac_fn_c_try_compile "$LINENO" 5786then : 5787 ac_cv_prog_cc_c89=$ac_arg 5788fi 5789rm -f core conftest.err conftest.$ac_objext conftest.beam 5790 test "x$ac_cv_prog_cc_c89" != "xno" && break 5791done 5792rm -f conftest.$ac_ext 5793CC=$ac_save_CC 5794fi 5795 5796if test "x$ac_cv_prog_cc_c89" = xno 5797then : 5798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5799printf "%s\n" "unsupported" >&6; } 5800else $as_nop 5801 if test "x$ac_cv_prog_cc_c89" = x 5802then : 5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5804printf "%s\n" "none needed" >&6; } 5805else $as_nop 5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5807printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 5808 CC="$CC $ac_cv_prog_cc_c89" 5809fi 5810 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5811 ac_prog_cc_stdc=c89 5812fi 5813fi 5814 5815ac_ext=c 5816ac_cpp='$CPP $CPPFLAGS' 5817ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5818ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5819ac_compiler_gnu=$ac_cv_c_compiler_gnu 5820 5821ac_ext=c 5822ac_cpp='$CPP $CPPFLAGS' 5823ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5824ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5825ac_compiler_gnu=$ac_cv_c_compiler_gnu 5826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5827printf %s "checking how to run the C preprocessor... " >&6; } 5828# On Suns, sometimes $CPP names a directory. 5829if test -n "$CPP" && test -d "$CPP"; then 5830 CPP= 5831fi 5832if test -z "$CPP"; then 5833 if test ${ac_cv_prog_CPP+y} 5834then : 5835 printf %s "(cached) " >&6 5836else $as_nop 5837 # Double quotes because $CC needs to be expanded 5838 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp 5839 do 5840 ac_preproc_ok=false 5841for ac_c_preproc_warn_flag in '' yes 5842do 5843 # Use a header file that comes with gcc, so configuring glibc 5844 # with a fresh cross-compiler works. 5845 # On the NeXT, cc -E runs the code through the compiler's parser, 5846 # not just through cpp. "Syntax error" is here to catch this case. 5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5848/* end confdefs.h. */ 5849#include <limits.h> 5850 Syntax error 5851_ACEOF 5852if ac_fn_c_try_cpp "$LINENO" 5853then : 5854 5855else $as_nop 5856 # Broken: fails on valid input. 5857continue 5858fi 5859rm -f conftest.err conftest.i conftest.$ac_ext 5860 5861 # OK, works on sane cases. Now check whether nonexistent headers 5862 # can be detected and how. 5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5864/* end confdefs.h. */ 5865#include <ac_nonexistent.h> 5866_ACEOF 5867if ac_fn_c_try_cpp "$LINENO" 5868then : 5869 # Broken: success on invalid input. 5870continue 5871else $as_nop 5872 # Passes both tests. 5873ac_preproc_ok=: 5874break 5875fi 5876rm -f conftest.err conftest.i conftest.$ac_ext 5877 5878done 5879# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5880rm -f conftest.i conftest.err conftest.$ac_ext 5881if $ac_preproc_ok 5882then : 5883 break 5884fi 5885 5886 done 5887 ac_cv_prog_CPP=$CPP 5888 5889fi 5890 CPP=$ac_cv_prog_CPP 5891else 5892 ac_cv_prog_CPP=$CPP 5893fi 5894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5895printf "%s\n" "$CPP" >&6; } 5896ac_preproc_ok=false 5897for ac_c_preproc_warn_flag in '' yes 5898do 5899 # Use a header file that comes with gcc, so configuring glibc 5900 # with a fresh cross-compiler works. 5901 # On the NeXT, cc -E runs the code through the compiler's parser, 5902 # not just through cpp. "Syntax error" is here to catch this case. 5903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5904/* end confdefs.h. */ 5905#include <limits.h> 5906 Syntax error 5907_ACEOF 5908if ac_fn_c_try_cpp "$LINENO" 5909then : 5910 5911else $as_nop 5912 # Broken: fails on valid input. 5913continue 5914fi 5915rm -f conftest.err conftest.i conftest.$ac_ext 5916 5917 # OK, works on sane cases. Now check whether nonexistent headers 5918 # can be detected and how. 5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5920/* end confdefs.h. */ 5921#include <ac_nonexistent.h> 5922_ACEOF 5923if ac_fn_c_try_cpp "$LINENO" 5924then : 5925 # Broken: success on invalid input. 5926continue 5927else $as_nop 5928 # Passes both tests. 5929ac_preproc_ok=: 5930break 5931fi 5932rm -f conftest.err conftest.i conftest.$ac_ext 5933 5934done 5935# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5936rm -f conftest.i conftest.err conftest.$ac_ext 5937if $ac_preproc_ok 5938then : 5939 5940else $as_nop 5941 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5942printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 5943as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5944See \`config.log' for more details" "$LINENO" 5; } 5945fi 5946 5947ac_ext=c 5948ac_cpp='$CPP $CPPFLAGS' 5949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5951ac_compiler_gnu=$ac_cv_c_compiler_gnu 5952 5953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5954printf %s "checking for grep that handles long lines and -e... " >&6; } 5955if test ${ac_cv_path_GREP+y} 5956then : 5957 printf %s "(cached) " >&6 5958else $as_nop 5959 if test -z "$GREP"; then 5960 ac_path_GREP_found=false 5961 # Loop through the user's path and test for each of PROGNAME-LIST 5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5963for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5964do 5965 IFS=$as_save_IFS 5966 case $as_dir in #((( 5967 '') as_dir=./ ;; 5968 */) ;; 5969 *) as_dir=$as_dir/ ;; 5970 esac 5971 for ac_prog in grep ggrep 5972 do 5973 for ac_exec_ext in '' $ac_executable_extensions; do 5974 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" 5975 as_fn_executable_p "$ac_path_GREP" || continue 5976# Check for GNU ac_path_GREP and select it if it is found. 5977 # Check for GNU $ac_path_GREP 5978case `"$ac_path_GREP" --version 2>&1` in 5979*GNU*) 5980 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5981*) 5982 ac_count=0 5983 printf %s 0123456789 >"conftest.in" 5984 while : 5985 do 5986 cat "conftest.in" "conftest.in" >"conftest.tmp" 5987 mv "conftest.tmp" "conftest.in" 5988 cp "conftest.in" "conftest.nl" 5989 printf "%s\n" 'GREP' >> "conftest.nl" 5990 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5992 as_fn_arith $ac_count + 1 && ac_count=$as_val 5993 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5994 # Best one so far, save it but keep looking for a better one 5995 ac_cv_path_GREP="$ac_path_GREP" 5996 ac_path_GREP_max=$ac_count 5997 fi 5998 # 10*(2^10) chars as input seems more than enough 5999 test $ac_count -gt 10 && break 6000 done 6001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6002esac 6003 6004 $ac_path_GREP_found && break 3 6005 done 6006 done 6007 done 6008IFS=$as_save_IFS 6009 if test -z "$ac_cv_path_GREP"; then 6010 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6011 fi 6012else 6013 ac_cv_path_GREP=$GREP 6014fi 6015 6016fi 6017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6018printf "%s\n" "$ac_cv_path_GREP" >&6; } 6019 GREP="$ac_cv_path_GREP" 6020 6021 6022{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6023printf %s "checking for a sed that does not truncate output... " >&6; } 6024if test ${ac_cv_path_SED+y} 6025then : 6026 printf %s "(cached) " >&6 6027else $as_nop 6028 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6029 for ac_i in 1 2 3 4 5 6 7; do 6030 ac_script="$ac_script$as_nl$ac_script" 6031 done 6032 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6033 { ac_script=; unset ac_script;} 6034 if test -z "$SED"; then 6035 ac_path_SED_found=false 6036 # Loop through the user's path and test for each of PROGNAME-LIST 6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6038for as_dir in $PATH 6039do 6040 IFS=$as_save_IFS 6041 case $as_dir in #((( 6042 '') as_dir=./ ;; 6043 */) ;; 6044 *) as_dir=$as_dir/ ;; 6045 esac 6046 for ac_prog in sed gsed 6047 do 6048 for ac_exec_ext in '' $ac_executable_extensions; do 6049 ac_path_SED="$as_dir$ac_prog$ac_exec_ext" 6050 as_fn_executable_p "$ac_path_SED" || continue 6051# Check for GNU ac_path_SED and select it if it is found. 6052 # Check for GNU $ac_path_SED 6053case `"$ac_path_SED" --version 2>&1` in 6054*GNU*) 6055 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6056*) 6057 ac_count=0 6058 printf %s 0123456789 >"conftest.in" 6059 while : 6060 do 6061 cat "conftest.in" "conftest.in" >"conftest.tmp" 6062 mv "conftest.tmp" "conftest.in" 6063 cp "conftest.in" "conftest.nl" 6064 printf "%s\n" '' >> "conftest.nl" 6065 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6066 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6067 as_fn_arith $ac_count + 1 && ac_count=$as_val 6068 if test $ac_count -gt ${ac_path_SED_max-0}; then 6069 # Best one so far, save it but keep looking for a better one 6070 ac_cv_path_SED="$ac_path_SED" 6071 ac_path_SED_max=$ac_count 6072 fi 6073 # 10*(2^10) chars as input seems more than enough 6074 test $ac_count -gt 10 && break 6075 done 6076 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6077esac 6078 6079 $ac_path_SED_found && break 3 6080 done 6081 done 6082 done 6083IFS=$as_save_IFS 6084 if test -z "$ac_cv_path_SED"; then 6085 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6086 fi 6087else 6088 ac_cv_path_SED=$SED 6089fi 6090 6091fi 6092{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6093printf "%s\n" "$ac_cv_path_SED" >&6; } 6094 SED="$ac_cv_path_SED" 6095 rm -f conftest.sed 6096 6097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6098printf %s "checking for egrep... " >&6; } 6099if test ${ac_cv_path_EGREP+y} 6100then : 6101 printf %s "(cached) " >&6 6102else $as_nop 6103 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6104 then ac_cv_path_EGREP="$GREP -E" 6105 else 6106 if test -z "$EGREP"; then 6107 ac_path_EGREP_found=false 6108 # Loop through the user's path and test for each of PROGNAME-LIST 6109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6110for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6111do 6112 IFS=$as_save_IFS 6113 case $as_dir in #((( 6114 '') as_dir=./ ;; 6115 */) ;; 6116 *) as_dir=$as_dir/ ;; 6117 esac 6118 for ac_prog in egrep 6119 do 6120 for ac_exec_ext in '' $ac_executable_extensions; do 6121 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" 6122 as_fn_executable_p "$ac_path_EGREP" || continue 6123# Check for GNU ac_path_EGREP and select it if it is found. 6124 # Check for GNU $ac_path_EGREP 6125case `"$ac_path_EGREP" --version 2>&1` in 6126*GNU*) 6127 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6128*) 6129 ac_count=0 6130 printf %s 0123456789 >"conftest.in" 6131 while : 6132 do 6133 cat "conftest.in" "conftest.in" >"conftest.tmp" 6134 mv "conftest.tmp" "conftest.in" 6135 cp "conftest.in" "conftest.nl" 6136 printf "%s\n" 'EGREP' >> "conftest.nl" 6137 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6139 as_fn_arith $ac_count + 1 && ac_count=$as_val 6140 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6141 # Best one so far, save it but keep looking for a better one 6142 ac_cv_path_EGREP="$ac_path_EGREP" 6143 ac_path_EGREP_max=$ac_count 6144 fi 6145 # 10*(2^10) chars as input seems more than enough 6146 test $ac_count -gt 10 && break 6147 done 6148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6149esac 6150 6151 $ac_path_EGREP_found && break 3 6152 done 6153 done 6154 done 6155IFS=$as_save_IFS 6156 if test -z "$ac_cv_path_EGREP"; then 6157 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6158 fi 6159else 6160 ac_cv_path_EGREP=$EGREP 6161fi 6162 6163 fi 6164fi 6165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6166printf "%s\n" "$ac_cv_path_EGREP" >&6; } 6167 EGREP="$ac_cv_path_EGREP" 6168 6169 6170 6171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CC compiler name" >&5 6172printf %s "checking for CC compiler name... " >&6; } 6173if test ${ac_cv_cc_name+y} 6174then : 6175 printf %s "(cached) " >&6 6176else $as_nop 6177 6178cat > conftest.c <<EOF 6179#if defined(__EMSCRIPTEN__) 6180 emcc 6181#elif defined(__INTEL_COMPILER) || defined(__ICC) 6182 icc 6183#elif defined(__ibmxl__) || defined(__xlc__) || defined(__xlC__) 6184 xlc 6185#elif defined(_MSC_VER) 6186 msvc 6187#elif defined(__clang__) 6188 clang 6189#elif defined(__GNUC__) 6190 gcc 6191#else 6192# error unknown compiler 6193#endif 6194EOF 6195 6196if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 6197 ac_cv_cc_name=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` 6198 if test $(expr "//$CC" : '.*/\(.*\)') = "mpicc"; then 6199 ac_cv_cc_name="mpicc" 6200 fi 6201else 6202 ac_cv_cc_name="unknown" 6203fi 6204rm -f conftest.c conftest.out 6205 6206fi 6207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_name" >&5 6208printf "%s\n" "$ac_cv_cc_name" >&6; } 6209 6210# checks for UNIX variants that set C preprocessor variables 6211# may set _GNU_SOURCE, __EXTENSIONS__, _POSIX_PTHREAD_SEMANTICS, 6212# _POSIX_SOURCE, _POSIX_1_SOURCE, and more 6213 6214ac_header= ac_cache= 6215for ac_item in $ac_header_c_list 6216do 6217 if test $ac_cache; then 6218 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 6219 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 6220 printf "%s\n" "#define $ac_item 1" >> confdefs.h 6221 fi 6222 ac_header= ac_cache= 6223 elif test $ac_header; then 6224 ac_cache=$ac_item 6225 else 6226 ac_header=$ac_item 6227 fi 6228done 6229 6230 6231 6232 6233 6234 6235 6236 6237if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 6238then : 6239 6240printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 6241 6242fi 6243 6244 6245 6246 6247 6248 6249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6250printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6251if test ${ac_cv_safe_to_define___extensions__+y} 6252then : 6253 printf %s "(cached) " >&6 6254else $as_nop 6255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6256/* end confdefs.h. */ 6257 6258# define __EXTENSIONS__ 1 6259 $ac_includes_default 6260int 6261main (void) 6262{ 6263 6264 ; 6265 return 0; 6266} 6267_ACEOF 6268if ac_fn_c_try_compile "$LINENO" 6269then : 6270 ac_cv_safe_to_define___extensions__=yes 6271else $as_nop 6272 ac_cv_safe_to_define___extensions__=no 6273fi 6274rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6275fi 6276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6277printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } 6278 6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 6280printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } 6281if test ${ac_cv_should_define__xopen_source+y} 6282then : 6283 printf %s "(cached) " >&6 6284else $as_nop 6285 ac_cv_should_define__xopen_source=no 6286 if test $ac_cv_header_wchar_h = yes 6287then : 6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6289/* end confdefs.h. */ 6290 6291 #include <wchar.h> 6292 mbstate_t x; 6293int 6294main (void) 6295{ 6296 6297 ; 6298 return 0; 6299} 6300_ACEOF 6301if ac_fn_c_try_compile "$LINENO" 6302then : 6303 6304else $as_nop 6305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6306/* end confdefs.h. */ 6307 6308 #define _XOPEN_SOURCE 500 6309 #include <wchar.h> 6310 mbstate_t x; 6311int 6312main (void) 6313{ 6314 6315 ; 6316 return 0; 6317} 6318_ACEOF 6319if ac_fn_c_try_compile "$LINENO" 6320then : 6321 ac_cv_should_define__xopen_source=yes 6322fi 6323rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6324fi 6325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 6326fi 6327fi 6328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 6329printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } 6330 6331 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h 6332 6333 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h 6334 6335 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h 6336 6337 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h 6338 6339 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h 6340 6341 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h 6342 6343 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6344 6345 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h 6346 6347 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h 6348 6349 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h 6350 6351 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h 6352 6353 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h 6354 6355 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h 6356 6357 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h 6358 6359 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h 6360 6361 if test $ac_cv_header_minix_config_h = yes 6362then : 6363 MINIX=yes 6364 printf "%s\n" "#define _MINIX 1" >>confdefs.h 6365 6366 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h 6367 6368 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h 6369 6370else $as_nop 6371 MINIX= 6372fi 6373 if test $ac_cv_safe_to_define___extensions__ = yes 6374then : 6375 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h 6376 6377fi 6378 if test $ac_cv_should_define__xopen_source = yes 6379then : 6380 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h 6381 6382fi 6383 6384 6385 6386{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GCC compatible compiler" >&5 6387printf %s "checking for GCC compatible compiler... " >&6; } 6388if test ${ac_cv_gcc_compat+y} 6389then : 6390 printf %s "(cached) " >&6 6391else $as_nop 6392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6393/* end confdefs.h. */ 6394 6395 #if !defined(__GNUC__) 6396 #error "not GCC compatible" 6397 #else 6398 /* GCC compatible! */ 6399 #endif 6400 6401_ACEOF 6402if ac_fn_c_try_cpp "$LINENO" 6403then : 6404 ac_cv_gcc_compat=yes 6405else $as_nop 6406 ac_cv_gcc_compat=no 6407fi 6408rm -f conftest.err conftest.i conftest.$ac_ext 6409fi 6410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_compat" >&5 6411printf "%s\n" "$ac_cv_gcc_compat" >&6; } 6412 6413 6414 6415preset_cxx="$CXX" 6416if test -z "$CXX" 6417then 6418 case "$CC" in 6419 gcc) if test -n "$ac_tool_prefix"; then 6420 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. 6421set dummy ${ac_tool_prefix}g++; ac_word=$2 6422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6423printf %s "checking for $ac_word... " >&6; } 6424if test ${ac_cv_path_CXX+y} 6425then : 6426 printf %s "(cached) " >&6 6427else $as_nop 6428 case $CXX in 6429 [\\/]* | ?:[\\/]*) 6430 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 6431 ;; 6432 *) 6433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6434for as_dir in notfound 6435do 6436 IFS=$as_save_IFS 6437 case $as_dir in #((( 6438 '') as_dir=./ ;; 6439 */) ;; 6440 *) as_dir=$as_dir/ ;; 6441 esac 6442 for ac_exec_ext in '' $ac_executable_extensions; do 6443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6444 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" 6445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6446 break 2 6447 fi 6448done 6449 done 6450IFS=$as_save_IFS 6451 6452 ;; 6453esac 6454fi 6455CXX=$ac_cv_path_CXX 6456if test -n "$CXX"; then 6457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6458printf "%s\n" "$CXX" >&6; } 6459else 6460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6461printf "%s\n" "no" >&6; } 6462fi 6463 6464 6465fi 6466if test -z "$ac_cv_path_CXX"; then 6467 ac_pt_CXX=$CXX 6468 # Extract the first word of "g++", so it can be a program name with args. 6469set dummy g++; ac_word=$2 6470{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6471printf %s "checking for $ac_word... " >&6; } 6472if test ${ac_cv_path_ac_pt_CXX+y} 6473then : 6474 printf %s "(cached) " >&6 6475else $as_nop 6476 case $ac_pt_CXX in 6477 [\\/]* | ?:[\\/]*) 6478 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 6479 ;; 6480 *) 6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6482for as_dir in notfound 6483do 6484 IFS=$as_save_IFS 6485 case $as_dir in #((( 6486 '') as_dir=./ ;; 6487 */) ;; 6488 *) as_dir=$as_dir/ ;; 6489 esac 6490 for ac_exec_ext in '' $ac_executable_extensions; do 6491 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6492 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" 6493 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6494 break 2 6495 fi 6496done 6497 done 6498IFS=$as_save_IFS 6499 6500 ;; 6501esac 6502fi 6503ac_pt_CXX=$ac_cv_path_ac_pt_CXX 6504if test -n "$ac_pt_CXX"; then 6505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 6506printf "%s\n" "$ac_pt_CXX" >&6; } 6507else 6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6509printf "%s\n" "no" >&6; } 6510fi 6511 6512 if test "x$ac_pt_CXX" = x; then 6513 CXX="g++" 6514 else 6515 case $cross_compiling:$ac_tool_warned in 6516yes:) 6517{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6518printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6519ac_tool_warned=yes ;; 6520esac 6521 CXX=$ac_pt_CXX 6522 fi 6523else 6524 CXX="$ac_cv_path_CXX" 6525fi 6526 ;; 6527 cc) if test -n "$ac_tool_prefix"; then 6528 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. 6529set dummy ${ac_tool_prefix}c++; ac_word=$2 6530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6531printf %s "checking for $ac_word... " >&6; } 6532if test ${ac_cv_path_CXX+y} 6533then : 6534 printf %s "(cached) " >&6 6535else $as_nop 6536 case $CXX in 6537 [\\/]* | ?:[\\/]*) 6538 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 6539 ;; 6540 *) 6541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6542for as_dir in notfound 6543do 6544 IFS=$as_save_IFS 6545 case $as_dir in #((( 6546 '') as_dir=./ ;; 6547 */) ;; 6548 *) as_dir=$as_dir/ ;; 6549 esac 6550 for ac_exec_ext in '' $ac_executable_extensions; do 6551 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6552 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" 6553 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6554 break 2 6555 fi 6556done 6557 done 6558IFS=$as_save_IFS 6559 6560 ;; 6561esac 6562fi 6563CXX=$ac_cv_path_CXX 6564if test -n "$CXX"; then 6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6566printf "%s\n" "$CXX" >&6; } 6567else 6568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6569printf "%s\n" "no" >&6; } 6570fi 6571 6572 6573fi 6574if test -z "$ac_cv_path_CXX"; then 6575 ac_pt_CXX=$CXX 6576 # Extract the first word of "c++", so it can be a program name with args. 6577set dummy c++; ac_word=$2 6578{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6579printf %s "checking for $ac_word... " >&6; } 6580if test ${ac_cv_path_ac_pt_CXX+y} 6581then : 6582 printf %s "(cached) " >&6 6583else $as_nop 6584 case $ac_pt_CXX in 6585 [\\/]* | ?:[\\/]*) 6586 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 6587 ;; 6588 *) 6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6590for as_dir in notfound 6591do 6592 IFS=$as_save_IFS 6593 case $as_dir in #((( 6594 '') as_dir=./ ;; 6595 */) ;; 6596 *) as_dir=$as_dir/ ;; 6597 esac 6598 for ac_exec_ext in '' $ac_executable_extensions; do 6599 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6600 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" 6601 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6602 break 2 6603 fi 6604done 6605 done 6606IFS=$as_save_IFS 6607 6608 ;; 6609esac 6610fi 6611ac_pt_CXX=$ac_cv_path_ac_pt_CXX 6612if test -n "$ac_pt_CXX"; then 6613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 6614printf "%s\n" "$ac_pt_CXX" >&6; } 6615else 6616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6617printf "%s\n" "no" >&6; } 6618fi 6619 6620 if test "x$ac_pt_CXX" = x; then 6621 CXX="c++" 6622 else 6623 case $cross_compiling:$ac_tool_warned in 6624yes:) 6625{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6626printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6627ac_tool_warned=yes ;; 6628esac 6629 CXX=$ac_pt_CXX 6630 fi 6631else 6632 CXX="$ac_cv_path_CXX" 6633fi 6634 ;; 6635 clang|*/clang) if test -n "$ac_tool_prefix"; then 6636 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. 6637set dummy ${ac_tool_prefix}clang++; ac_word=$2 6638{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6639printf %s "checking for $ac_word... " >&6; } 6640if test ${ac_cv_path_CXX+y} 6641then : 6642 printf %s "(cached) " >&6 6643else $as_nop 6644 case $CXX in 6645 [\\/]* | ?:[\\/]*) 6646 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 6647 ;; 6648 *) 6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6650for as_dir in notfound 6651do 6652 IFS=$as_save_IFS 6653 case $as_dir in #((( 6654 '') as_dir=./ ;; 6655 */) ;; 6656 *) as_dir=$as_dir/ ;; 6657 esac 6658 for ac_exec_ext in '' $ac_executable_extensions; do 6659 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6660 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" 6661 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6662 break 2 6663 fi 6664done 6665 done 6666IFS=$as_save_IFS 6667 6668 ;; 6669esac 6670fi 6671CXX=$ac_cv_path_CXX 6672if test -n "$CXX"; then 6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6674printf "%s\n" "$CXX" >&6; } 6675else 6676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6677printf "%s\n" "no" >&6; } 6678fi 6679 6680 6681fi 6682if test -z "$ac_cv_path_CXX"; then 6683 ac_pt_CXX=$CXX 6684 # Extract the first word of "clang++", so it can be a program name with args. 6685set dummy clang++; ac_word=$2 6686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6687printf %s "checking for $ac_word... " >&6; } 6688if test ${ac_cv_path_ac_pt_CXX+y} 6689then : 6690 printf %s "(cached) " >&6 6691else $as_nop 6692 case $ac_pt_CXX in 6693 [\\/]* | ?:[\\/]*) 6694 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 6695 ;; 6696 *) 6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6698for as_dir in notfound 6699do 6700 IFS=$as_save_IFS 6701 case $as_dir in #((( 6702 '') as_dir=./ ;; 6703 */) ;; 6704 *) as_dir=$as_dir/ ;; 6705 esac 6706 for ac_exec_ext in '' $ac_executable_extensions; do 6707 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6708 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" 6709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6710 break 2 6711 fi 6712done 6713 done 6714IFS=$as_save_IFS 6715 6716 ;; 6717esac 6718fi 6719ac_pt_CXX=$ac_cv_path_ac_pt_CXX 6720if test -n "$ac_pt_CXX"; then 6721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 6722printf "%s\n" "$ac_pt_CXX" >&6; } 6723else 6724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6725printf "%s\n" "no" >&6; } 6726fi 6727 6728 if test "x$ac_pt_CXX" = x; then 6729 CXX="clang++" 6730 else 6731 case $cross_compiling:$ac_tool_warned in 6732yes:) 6733{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6734printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6735ac_tool_warned=yes ;; 6736esac 6737 CXX=$ac_pt_CXX 6738 fi 6739else 6740 CXX="$ac_cv_path_CXX" 6741fi 6742 ;; 6743 icc|*/icc) if test -n "$ac_tool_prefix"; then 6744 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. 6745set dummy ${ac_tool_prefix}icpc; ac_word=$2 6746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6747printf %s "checking for $ac_word... " >&6; } 6748if test ${ac_cv_path_CXX+y} 6749then : 6750 printf %s "(cached) " >&6 6751else $as_nop 6752 case $CXX in 6753 [\\/]* | ?:[\\/]*) 6754 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 6755 ;; 6756 *) 6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6758for as_dir in notfound 6759do 6760 IFS=$as_save_IFS 6761 case $as_dir in #((( 6762 '') as_dir=./ ;; 6763 */) ;; 6764 *) as_dir=$as_dir/ ;; 6765 esac 6766 for ac_exec_ext in '' $ac_executable_extensions; do 6767 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6768 ac_cv_path_CXX="$as_dir$ac_word$ac_exec_ext" 6769 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6770 break 2 6771 fi 6772done 6773 done 6774IFS=$as_save_IFS 6775 6776 ;; 6777esac 6778fi 6779CXX=$ac_cv_path_CXX 6780if test -n "$CXX"; then 6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6782printf "%s\n" "$CXX" >&6; } 6783else 6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6785printf "%s\n" "no" >&6; } 6786fi 6787 6788 6789fi 6790if test -z "$ac_cv_path_CXX"; then 6791 ac_pt_CXX=$CXX 6792 # Extract the first word of "icpc", so it can be a program name with args. 6793set dummy icpc; ac_word=$2 6794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795printf %s "checking for $ac_word... " >&6; } 6796if test ${ac_cv_path_ac_pt_CXX+y} 6797then : 6798 printf %s "(cached) " >&6 6799else $as_nop 6800 case $ac_pt_CXX in 6801 [\\/]* | ?:[\\/]*) 6802 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 6803 ;; 6804 *) 6805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6806for as_dir in notfound 6807do 6808 IFS=$as_save_IFS 6809 case $as_dir in #((( 6810 '') as_dir=./ ;; 6811 */) ;; 6812 *) as_dir=$as_dir/ ;; 6813 esac 6814 for ac_exec_ext in '' $ac_executable_extensions; do 6815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6816 ac_cv_path_ac_pt_CXX="$as_dir$ac_word$ac_exec_ext" 6817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6818 break 2 6819 fi 6820done 6821 done 6822IFS=$as_save_IFS 6823 6824 ;; 6825esac 6826fi 6827ac_pt_CXX=$ac_cv_path_ac_pt_CXX 6828if test -n "$ac_pt_CXX"; then 6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 6830printf "%s\n" "$ac_pt_CXX" >&6; } 6831else 6832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6833printf "%s\n" "no" >&6; } 6834fi 6835 6836 if test "x$ac_pt_CXX" = x; then 6837 CXX="icpc" 6838 else 6839 case $cross_compiling:$ac_tool_warned in 6840yes:) 6841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6842printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6843ac_tool_warned=yes ;; 6844esac 6845 CXX=$ac_pt_CXX 6846 fi 6847else 6848 CXX="$ac_cv_path_CXX" 6849fi 6850 ;; 6851 esac 6852 if test "$CXX" = "notfound" 6853 then 6854 CXX="" 6855 fi 6856fi 6857if test -z "$CXX" 6858then 6859 if test -n "$ac_tool_prefix"; then 6860 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 6861 do 6862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6863set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6864{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6865printf %s "checking for $ac_word... " >&6; } 6866if test ${ac_cv_prog_CXX+y} 6867then : 6868 printf %s "(cached) " >&6 6869else $as_nop 6870 if test -n "$CXX"; then 6871 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6872else 6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6874for as_dir in $PATH 6875do 6876 IFS=$as_save_IFS 6877 case $as_dir in #((( 6878 '') as_dir=./ ;; 6879 */) ;; 6880 *) as_dir=$as_dir/ ;; 6881 esac 6882 for ac_exec_ext in '' $ac_executable_extensions; do 6883 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6884 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6885 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6886 break 2 6887 fi 6888done 6889 done 6890IFS=$as_save_IFS 6891 6892fi 6893fi 6894CXX=$ac_cv_prog_CXX 6895if test -n "$CXX"; then 6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6897printf "%s\n" "$CXX" >&6; } 6898else 6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6900printf "%s\n" "no" >&6; } 6901fi 6902 6903 6904 test -n "$CXX" && break 6905 done 6906fi 6907if test -z "$CXX"; then 6908 ac_ct_CXX=$CXX 6909 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 6910do 6911 # Extract the first word of "$ac_prog", so it can be a program name with args. 6912set dummy $ac_prog; ac_word=$2 6913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6914printf %s "checking for $ac_word... " >&6; } 6915if test ${ac_cv_prog_ac_ct_CXX+y} 6916then : 6917 printf %s "(cached) " >&6 6918else $as_nop 6919 if test -n "$ac_ct_CXX"; then 6920 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6921else 6922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6923for as_dir in $PATH 6924do 6925 IFS=$as_save_IFS 6926 case $as_dir in #((( 6927 '') as_dir=./ ;; 6928 */) ;; 6929 *) as_dir=$as_dir/ ;; 6930 esac 6931 for ac_exec_ext in '' $ac_executable_extensions; do 6932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 6933 ac_cv_prog_ac_ct_CXX="$ac_prog" 6934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 6935 break 2 6936 fi 6937done 6938 done 6939IFS=$as_save_IFS 6940 6941fi 6942fi 6943ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6944if test -n "$ac_ct_CXX"; then 6945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6946printf "%s\n" "$ac_ct_CXX" >&6; } 6947else 6948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 6949printf "%s\n" "no" >&6; } 6950fi 6951 6952 6953 test -n "$ac_ct_CXX" && break 6954done 6955 6956 if test "x$ac_ct_CXX" = x; then 6957 CXX="notfound" 6958 else 6959 case $cross_compiling:$ac_tool_warned in 6960yes:) 6961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6962printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6963ac_tool_warned=yes ;; 6964esac 6965 CXX=$ac_ct_CXX 6966 fi 6967fi 6968 6969 if test "$CXX" = "notfound" 6970 then 6971 CXX="" 6972 fi 6973fi 6974if test "$preset_cxx" != "$CXX" 6975then 6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: 6977 6978 By default, distutils will build C++ extension modules with \"$CXX\". 6979 If this is not intended, then set CXX on the configure command line. 6980 " >&5 6981printf "%s\n" "$as_me: 6982 6983 By default, distutils will build C++ extension modules with \"$CXX\". 6984 If this is not intended, then set CXX on the configure command line. 6985 " >&6;} 6986fi 6987 6988 6989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 6990printf %s "checking for the platform triplet based on compiler characteristics... " >&6; } 6991if $CPP $CPPFLAGS $srcdir/Misc/platform_triplet.c >conftest.out 2>/dev/null; then 6992 PLATFORM_TRIPLET=`grep '^PLATFORM_TRIPLET=' conftest.out | tr -d ' '` 6993 PLATFORM_TRIPLET="${PLATFORM_TRIPLET#PLATFORM_TRIPLET=}" 6994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 6995printf "%s\n" "$PLATFORM_TRIPLET" >&6; } 6996else 6997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 6998printf "%s\n" "none" >&6; } 6999fi 7000rm -f conftest.out 7001 7002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multiarch" >&5 7003printf %s "checking for multiarch... " >&6; } 7004case $ac_sys_system in #( 7005 Darwin*) : 7006 MULTIARCH="" ;; #( 7007 iOS) : 7008 MULTIARCH="" ;; #( 7009 FreeBSD*) : 7010 MULTIARCH="" ;; #( 7011 *) : 7012 MULTIARCH=$($CC --print-multiarch 2>/dev/null) 7013 ;; 7014esac 7015 7016 7017if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then 7018 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then 7019 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 7020 fi 7021elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then 7022 MULTIARCH=$PLATFORM_TRIPLET 7023fi 7024 7025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MULTIARCH" >&5 7026printf "%s\n" "$MULTIARCH" >&6; } 7027 7028case $ac_sys_system in #( 7029 iOS) : 7030 SOABI_PLATFORM=`echo "$PLATFORM_TRIPLET" | cut -d '-' -f2` ;; #( 7031 *) : 7032 SOABI_PLATFORM=$PLATFORM_TRIPLET 7033 ;; 7034esac 7035 7036if test x$MULTIARCH != x; then 7037 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" 7038fi 7039 7040 7041{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PEP 11 support tier" >&5 7042printf %s "checking for PEP 11 support tier... " >&6; } 7043case $host/$ac_cv_cc_name in #( 7044 x86_64-*-linux-gnu/gcc) : 7045 PY_SUPPORT_TIER=1 ;; #( 7046 x86_64-apple-darwin*/clang) : 7047 PY_SUPPORT_TIER=1 ;; #( 7048 aarch64-apple-darwin*/clang) : 7049 PY_SUPPORT_TIER=1 ;; #( 7050 i686-pc-windows-msvc/msvc) : 7051 PY_SUPPORT_TIER=1 ;; #( 7052 x86_64-pc-windows-msvc/msvc) : 7053 PY_SUPPORT_TIER=1 ;; #( 7054 7055 aarch64-*-linux-gnu/gcc) : 7056 PY_SUPPORT_TIER=2 ;; #( 7057 aarch64-*-linux-gnu/clang) : 7058 PY_SUPPORT_TIER=2 ;; #( 7059 powerpc64le-*-linux-gnu/gcc) : 7060 PY_SUPPORT_TIER=2 ;; #( 7061 wasm32-unknown-wasip1/clang) : 7062 PY_SUPPORT_TIER=2 ;; #( 7063 x86_64-*-linux-gnu/clang) : 7064 PY_SUPPORT_TIER=2 ;; #( 7065 7066 aarch64-pc-windows-msvc/msvc) : 7067 PY_SUPPORT_TIER=3 ;; #( 7068 armv7l-*-linux-gnueabihf/gcc) : 7069 PY_SUPPORT_TIER=3 ;; #( 7070 powerpc64le-*-linux-gnu/clang) : 7071 PY_SUPPORT_TIER=3 ;; #( 7072 s390x-*-linux-gnu/gcc) : 7073 PY_SUPPORT_TIER=3 ;; #( 7074 x86_64-*-freebsd*/clang) : 7075 PY_SUPPORT_TIER=3 ;; #( 7076 aarch64-apple-ios*-simulator/clang) : 7077 PY_SUPPORT_TIER=3 ;; #( 7078 aarch64-apple-ios*/clang) : 7079 PY_SUPPORT_TIER=3 ;; #( 7080 aarch64-*-linux-android/clang) : 7081 PY_SUPPORT_TIER=3 ;; #( 7082 x86_64-*-linux-android/clang) : 7083 PY_SUPPORT_TIER=3 ;; #( 7084 *) : 7085 7086 PY_SUPPORT_TIER=0 7087 ;; 7088esac 7089 7090case $PY_SUPPORT_TIER in #( 7091 1) : 7092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 1 (supported)" >&5 7093printf "%s\n" "$host/$ac_cv_cc_name has tier 1 (supported)" >&6; } ;; #( 7094 2) : 7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 2 (supported)" >&5 7096printf "%s\n" "$host/$ac_cv_cc_name has tier 2 (supported)" >&6; } ;; #( 7097 3) : 7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $host/$ac_cv_cc_name has tier 3 (partially supported)" >&5 7099printf "%s\n" "$host/$ac_cv_cc_name has tier 3 (partially supported)" >&6; } ;; #( 7100 *) : 7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $host/$ac_cv_cc_name is not supported" >&5 7102printf "%s\n" "$as_me: WARNING: $host/$ac_cv_cc_name is not supported" >&2;} 7103 ;; 7104esac 7105 7106 7107printf "%s\n" "#define PY_SUPPORT_TIER $PY_SUPPORT_TIER" >>confdefs.h 7108 7109 7110{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 7111printf %s "checking for -Wl,--no-as-needed... " >&6; } 7112if test ${ac_cv_wl_no_as_needed+y} 7113then : 7114 printf %s "(cached) " >&6 7115else $as_nop 7116 7117 save_LDFLAGS="$LDFLAGS" 7118 as_fn_append LDFLAGS " -Wl,--no-as-needed" 7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120/* end confdefs.h. */ 7121 7122int 7123main (void) 7124{ 7125 7126 ; 7127 return 0; 7128} 7129_ACEOF 7130if ac_fn_c_try_link "$LINENO" 7131then : 7132 NO_AS_NEEDED="-Wl,--no-as-needed" 7133 ac_cv_wl_no_as_needed=yes 7134else $as_nop 7135 NO_AS_NEEDED="" 7136 ac_cv_wl_no_as_needed=no 7137fi 7138rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7139 conftest$ac_exeext conftest.$ac_ext 7140 LDFLAGS="$save_LDFLAGS" 7141 7142fi 7143{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wl_no_as_needed" >&5 7144printf "%s\n" "$ac_cv_wl_no_as_needed" >&6; } 7145 7146 7147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 7148printf %s "checking for the Android API level... " >&6; } 7149cat > conftest.c <<EOF 7150#ifdef __ANDROID__ 7151android_api = __ANDROID_API__ 7152arm_arch = __ARM_ARCH 7153#else 7154#error not Android 7155#endif 7156EOF 7157 7158if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 7159 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` 7160 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` 7161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 7162printf "%s\n" "$ANDROID_API_LEVEL" >&6; } 7163 if test -z "$ANDROID_API_LEVEL"; then 7164 as_fn_error $? "Fatal: you must define __ANDROID_API__" "$LINENO" 5 7165 fi 7166 7167printf "%s\n" "#define ANDROID_API_LEVEL $ANDROID_API_LEVEL" >>confdefs.h 7168 7169 7170 # For __android_log_write() in Python/pylifecycle.c. 7171 LIBS="$LIBS -llog" 7172 7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 7174printf %s "checking for the Android arm ABI... " >&6; } 7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 7176printf "%s\n" "$_arm_arch" >&6; } 7177 if test "$_arm_arch" = 7; then 7178 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" 7179 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" 7180 fi 7181else 7182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 7183printf "%s\n" "not Android" >&6; } 7184fi 7185rm -f conftest.c conftest.out 7186 7187# Check for unsupported systems 7188case $ac_sys_system/$ac_sys_release in #( 7189 atheos*|Linux*/1*) : 7190 7191 as_fn_error $? "This system \($ac_sys_system/$ac_sys_release\) is no longer supported. See README for details." "$LINENO" 5 7192 7193 ;; #( 7194 *) : 7195 ;; 7196esac 7197 7198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-emscripten-target" >&5 7199printf %s "checking for --with-emscripten-target... " >&6; } 7200 7201# Check whether --with-emscripten-target was given. 7202if test ${with_emscripten_target+y} 7203then : 7204 withval=$with_emscripten_target; 7205 if test "x$ac_sys_system" = xEmscripten 7206then : 7207 7208 case $with_emscripten_target in #( 7209 browser) : 7210 ac_sys_emscripten_target=browser ;; #( 7211 node) : 7212 ac_sys_emscripten_target=node ;; #( 7213 browser-debug) : 7214 ac_sys_emscripten_target=browser-debug ;; #( 7215 node-debug) : 7216 ac_sys_emscripten_target=node-debug ;; #( 7217 *) : 7218 as_fn_error $? "Invalid argument: --with-emscripten-target=browser|node" "$LINENO" 5 7219 ;; 7220esac 7221 7222else $as_nop 7223 7224 as_fn_error $? "--with-emscripten-target only applies to Emscripten" "$LINENO" 5 7225 7226fi 7227 7228else $as_nop 7229 7230 if test "x$ac_sys_system" = xEmscripten 7231then : 7232 ac_sys_emscripten_target=browser 7233fi 7234 7235fi 7236 7237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_sys_emscripten_target" >&5 7238printf "%s\n" "$ac_sys_emscripten_target" >&6; } 7239 7240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-dynamic-linking" >&5 7241printf %s "checking for --enable-wasm-dynamic-linking... " >&6; } 7242# Check whether --enable-wasm-dynamic-linking was given. 7243if test ${enable_wasm_dynamic_linking+y} 7244then : 7245 enableval=$enable_wasm_dynamic_linking; 7246 case $ac_sys_system in #( 7247 Emscripten) : 7248 ;; #( 7249 WASI) : 7250 as_fn_error $? "WASI dynamic linking is not implemented yet." "$LINENO" 5 ;; #( 7251 *) : 7252 as_fn_error $? "--enable-wasm-dynamic-linking only applies to Emscripten and WASI" "$LINENO" 5 7253 ;; 7254esac 7255 7256else $as_nop 7257 7258 enable_wasm_dynamic_linking=missing 7259 7260fi 7261 7262{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_dynamic_linking" >&5 7263printf "%s\n" "$enable_wasm_dynamic_linking" >&6; } 7264 7265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-wasm-pthreads" >&5 7266printf %s "checking for --enable-wasm-pthreads... " >&6; } 7267# Check whether --enable-wasm-pthreads was given. 7268if test ${enable_wasm_pthreads+y} 7269then : 7270 enableval=$enable_wasm_pthreads; 7271 case $ac_sys_system in #( 7272 Emscripten) : 7273 ;; #( 7274 WASI) : 7275 ;; #( 7276 *) : 7277 as_fn_error $? "--enable-wasm-pthreads only applies to Emscripten and WASI" "$LINENO" 5 7278 ;; 7279esac 7280 7281else $as_nop 7282 7283 enable_wasm_pthreads=missing 7284 7285fi 7286 7287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_wasm_pthreads" >&5 7288printf "%s\n" "$enable_wasm_pthreads" >&6; } 7289 7290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 7291printf %s "checking for --with-suffix... " >&6; } 7292 7293# Check whether --with-suffix was given. 7294if test ${with_suffix+y} 7295then : 7296 withval=$with_suffix; 7297 case $with_suffix in #( 7298 no) : 7299 EXEEXT= ;; #( 7300 yes) : 7301 EXEEXT=.exe ;; #( 7302 *) : 7303 EXEEXT=$with_suffix 7304 ;; 7305esac 7306 7307else $as_nop 7308 7309 case $ac_sys_system/$ac_sys_emscripten_target in #( 7310 Emscripten/browser*) : 7311 EXEEXT=.js ;; #( 7312 Emscripten/node*) : 7313 EXEEXT=.js ;; #( 7314 WASI/*) : 7315 EXEEXT=.wasm ;; #( 7316 *) : 7317 EXEEXT= 7318 ;; 7319esac 7320 7321fi 7322 7323{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 7324printf "%s\n" "$EXEEXT" >&6; } 7325 7326# Make sure we keep EXEEXT and ac_exeext sync'ed. 7327ac_exeext=$EXEEXT 7328 7329# Test whether we're running on a non-case-sensitive system, in which 7330# case we give a warning if no ext is given 7331 7332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 7333printf %s "checking for case-insensitive build directory... " >&6; } 7334if test ! -d CaseSensitiveTestDir; then 7335mkdir CaseSensitiveTestDir 7336fi 7337 7338if test -d casesensitivetestdir && test -z "$EXEEXT" 7339then 7340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7341printf "%s\n" "yes" >&6; } 7342 BUILDEXEEXT=.exe 7343else 7344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7345printf "%s\n" "no" >&6; } 7346 BUILDEXEEXT=$EXEEXT 7347fi 7348rmdir CaseSensitiveTestDir 7349 7350case $ac_sys_system in 7351hp*|HP*) 7352 case $CC in 7353 cc|*/cc) CC="$CC -Ae";; 7354 esac;; 7355esac 7356 7357 7358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 7359printf %s "checking LIBRARY... " >&6; } 7360if test -z "$LIBRARY" 7361then 7362 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' 7363fi 7364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 7365printf "%s\n" "$LIBRARY" >&6; } 7366 7367# LDLIBRARY is the name of the library to link against (as opposed to the 7368# name of the library into which to insert object files). BLDLIBRARY is also 7369# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY 7370# is blank as the main program is not linked directly against LDLIBRARY. 7371# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On 7372# systems without shared libraries, LDLIBRARY is the same as LIBRARY 7373# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, 7374# DLLLIBRARY is the shared (i.e., DLL) library. 7375# 7376# RUNSHARED is used to run shared python without installed libraries 7377# 7378# INSTSONAME is the name of the shared library that will be use to install 7379# on the system - some systems like version suffix, others don't 7380# 7381# LDVERSION is the shared library version number, normally the Python version 7382# with the ABI build flags appended. 7383 7384 7385 7386 7387 7388 7389 7390 7391LDLIBRARY="$LIBRARY" 7392BLDLIBRARY='$(LDLIBRARY)' 7393INSTSONAME='$(LDLIBRARY)' 7394DLLLIBRARY='' 7395LDLIBRARYDIR='' 7396RUNSHARED='' 7397LDVERSION="$VERSION" 7398 7399# LINKCC is the command that links the python executable -- default is $(CC). 7400# If CXX is set, and if it is needed to link a main function that was 7401# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: 7402# python might then depend on the C++ runtime 7403 7404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 7405printf %s "checking LINKCC... " >&6; } 7406if test -z "$LINKCC" 7407then 7408 LINKCC='$(PURIFY) $(CC)' 7409 case $ac_sys_system in 7410 QNX*) 7411 # qcc must be used because the other compilers do not 7412 # support -N. 7413 LINKCC=qcc;; 7414 esac 7415fi 7416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 7417printf "%s\n" "$LINKCC" >&6; } 7418 7419# EXPORTSYMS holds the list of exported symbols for AIX. 7420# EXPORTSFROM holds the module name exporting symbols on AIX. 7421EXPORTSYMS= 7422EXPORTSFROM= 7423 7424 7425{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5 7426printf %s "checking EXPORTSYMS... " >&6; } 7427case $ac_sys_system in 7428AIX*) 7429 EXPORTSYMS="Modules/python.exp" 7430 EXPORTSFROM=. # the main executable 7431 ;; 7432esac 7433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5 7434printf "%s\n" "$EXPORTSYMS" >&6; } 7435 7436# GNULD is set to "yes" if the GNU linker is used. If this goes wrong 7437# make sure we default having it set to "no": this is used by 7438# distutils.unixccompiler to know if it should add --enable-new-dtags 7439# to linker command lines, and failing to detect GNU ld simply results 7440# in the same behaviour as before. 7441 7442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7443printf %s "checking for GNU ld... " >&6; } 7444ac_prog=ld 7445if test "$GCC" = yes; then 7446 ac_prog=`$CC -print-prog-name=ld` 7447fi 7448case `"$ac_prog" -V 2>&1 < /dev/null` in 7449 *GNU*) 7450 GNULD=yes;; 7451 *) 7452 GNULD=no;; 7453esac 7454{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 7455printf "%s\n" "$GNULD" >&6; } 7456 7457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 7458printf %s "checking for --enable-shared... " >&6; } 7459# Check whether --enable-shared was given. 7460if test ${enable_shared+y} 7461then : 7462 enableval=$enable_shared; 7463fi 7464 7465 7466if test -z "$enable_shared" 7467then 7468 case $ac_sys_system in 7469 CYGWIN*) 7470 enable_shared="yes";; 7471 *) 7472 enable_shared="no";; 7473 esac 7474fi 7475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 7476printf "%s\n" "$enable_shared" >&6; } 7477 7478# --with-static-libpython 7479STATIC_LIBPYTHON=1 7480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-static-libpython" >&5 7481printf %s "checking for --with-static-libpython... " >&6; } 7482 7483# Check whether --with-static-libpython was given. 7484if test ${with_static_libpython+y} 7485then : 7486 withval=$with_static_libpython; 7487if test "$withval" = no 7488then 7489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7490printf "%s\n" "no" >&6; }; 7491 STATIC_LIBPYTHON=0 7492else 7493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7494printf "%s\n" "yes" >&6; }; 7495fi 7496else $as_nop 7497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7498printf "%s\n" "yes" >&6; } 7499fi 7500 7501 7502 7503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 7504printf %s "checking for --enable-profiling... " >&6; } 7505# Check whether --enable-profiling was given. 7506if test ${enable_profiling+y} 7507then : 7508 enableval=$enable_profiling; 7509fi 7510 7511if test "x$enable_profiling" = xyes; then 7512 ac_save_cc="$CC" 7513 CC="$CC -pg" 7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7515/* end confdefs.h. */ 7516int main(void) { return 0; } 7517_ACEOF 7518if ac_fn_c_try_link "$LINENO" 7519then : 7520 7521else $as_nop 7522 enable_profiling=no 7523fi 7524rm -f core conftest.err conftest.$ac_objext conftest.beam \ 7525 conftest$ac_exeext conftest.$ac_ext 7526 CC="$ac_save_cc" 7527else 7528 enable_profiling=no 7529fi 7530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 7531printf "%s\n" "$enable_profiling" >&6; } 7532 7533if test "x$enable_profiling" = xyes; then 7534 BASECFLAGS="-pg $BASECFLAGS" 7535 LDFLAGS="-pg $LDFLAGS" 7536fi 7537 7538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 7539printf %s "checking LDLIBRARY... " >&6; } 7540 7541# Apple framework builds need more magic. LDLIBRARY is the dynamic 7542# library that we build, but we do not want to link against it (we 7543# will find it with a -framework option). For this reason there is an 7544# extra variable BLDLIBRARY against which Python and the extension 7545# modules are linked, BLDLIBRARY. This is normally the same as 7546# LDLIBRARY, but empty for MacOSX framework builds. iOS does the same, 7547# but uses a non-versioned framework layout. 7548if test "$enable_framework" 7549then 7550 case $ac_sys_system in 7551 Darwin) 7552 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)';; 7553 iOS) 7554 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)';; 7555 *) 7556 as_fn_error $? "Unknown platform for framework build" "$LINENO" 5;; 7557 esac 7558 BLDLIBRARY='' 7559 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} 7560else 7561 BLDLIBRARY='$(LDLIBRARY)' 7562fi 7563 7564# Other platforms follow 7565if test $enable_shared = "yes"; then 7566 PY_ENABLE_SHARED=1 7567 7568printf "%s\n" "#define Py_ENABLE_SHARED 1" >>confdefs.h 7569 7570 case $ac_sys_system in 7571 CYGWIN*) 7572 LDLIBRARY='libpython$(LDVERSION).dll.a' 7573 BLDLIBRARY='-L. -lpython$(LDVERSION)' 7574 DLLLIBRARY='libpython$(LDVERSION).dll' 7575 ;; 7576 SunOS*) 7577 LDLIBRARY='libpython$(LDVERSION).so' 7578 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' 7579 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 7580 INSTSONAME="$LDLIBRARY".$SOVERSION 7581 if test "$with_pydebug" != yes 7582 then 7583 PY3LIBRARY=libpython3.so 7584 fi 7585 ;; 7586 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*|VxWorks*) 7587 LDLIBRARY='libpython$(LDVERSION).so' 7588 BLDLIBRARY='-L. -lpython$(LDVERSION)' 7589 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 7590 7591 # The Android Gradle plugin will only package libraries whose names end 7592 # with ".so". 7593 if test "$ac_sys_system" != "Linux-android"; then 7594 INSTSONAME="$LDLIBRARY".$SOVERSION 7595 fi 7596 7597 if test "$with_pydebug" != yes 7598 then 7599 PY3LIBRARY=libpython3.so 7600 fi 7601 ;; 7602 hp*|HP*) 7603 case `uname -m` in 7604 ia64) 7605 LDLIBRARY='libpython$(LDVERSION).so' 7606 ;; 7607 *) 7608 LDLIBRARY='libpython$(LDVERSION).sl' 7609 ;; 7610 esac 7611 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' 7612 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} 7613 ;; 7614 Darwin*) 7615 LDLIBRARY='libpython$(LDVERSION).dylib' 7616 BLDLIBRARY='-L. -lpython$(LDVERSION)' 7617 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} 7618 ;; 7619 iOS) 7620 LDLIBRARY='libpython$(LDVERSION).dylib' 7621 ;; 7622 AIX*) 7623 LDLIBRARY='libpython$(LDVERSION).so' 7624 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} 7625 ;; 7626 7627 esac 7628else # shared is disabled 7629 PY_ENABLE_SHARED=0 7630 case $ac_sys_system in 7631 CYGWIN*) 7632 BLDLIBRARY='$(LIBRARY)' 7633 LDLIBRARY='libpython$(LDVERSION).dll.a' 7634 ;; 7635 esac 7636fi 7637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 7638printf "%s\n" "$LDLIBRARY" >&6; } 7639 7640if test "$cross_compiling" = yes; then 7641 RUNSHARED= 7642fi 7643 7644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking HOSTRUNNER" >&5 7645printf %s "checking HOSTRUNNER... " >&6; } 7646 7647if test -z "$HOSTRUNNER" 7648then 7649 case $ac_sys_system/$ac_sys_emscripten_target in #( 7650 Emscripten/node*) : 7651 7652 if test -n "$ac_tool_prefix"; then 7653 # Extract the first word of "${ac_tool_prefix}node", so it can be a program name with args. 7654set dummy ${ac_tool_prefix}node; ac_word=$2 7655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7656printf %s "checking for $ac_word... " >&6; } 7657if test ${ac_cv_path_NODE+y} 7658then : 7659 printf %s "(cached) " >&6 7660else $as_nop 7661 case $NODE in 7662 [\\/]* | ?:[\\/]*) 7663 ac_cv_path_NODE="$NODE" # Let the user override the test with a path. 7664 ;; 7665 *) 7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7667for as_dir in $PATH 7668do 7669 IFS=$as_save_IFS 7670 case $as_dir in #((( 7671 '') as_dir=./ ;; 7672 */) ;; 7673 *) as_dir=$as_dir/ ;; 7674 esac 7675 for ac_exec_ext in '' $ac_executable_extensions; do 7676 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7677 ac_cv_path_NODE="$as_dir$ac_word$ac_exec_ext" 7678 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7679 break 2 7680 fi 7681done 7682 done 7683IFS=$as_save_IFS 7684 7685 ;; 7686esac 7687fi 7688NODE=$ac_cv_path_NODE 7689if test -n "$NODE"; then 7690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NODE" >&5 7691printf "%s\n" "$NODE" >&6; } 7692else 7693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7694printf "%s\n" "no" >&6; } 7695fi 7696 7697 7698fi 7699if test -z "$ac_cv_path_NODE"; then 7700 ac_pt_NODE=$NODE 7701 # Extract the first word of "node", so it can be a program name with args. 7702set dummy node; ac_word=$2 7703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7704printf %s "checking for $ac_word... " >&6; } 7705if test ${ac_cv_path_ac_pt_NODE+y} 7706then : 7707 printf %s "(cached) " >&6 7708else $as_nop 7709 case $ac_pt_NODE in 7710 [\\/]* | ?:[\\/]*) 7711 ac_cv_path_ac_pt_NODE="$ac_pt_NODE" # Let the user override the test with a path. 7712 ;; 7713 *) 7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7715for as_dir in $PATH 7716do 7717 IFS=$as_save_IFS 7718 case $as_dir in #((( 7719 '') as_dir=./ ;; 7720 */) ;; 7721 *) as_dir=$as_dir/ ;; 7722 esac 7723 for ac_exec_ext in '' $ac_executable_extensions; do 7724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7725 ac_cv_path_ac_pt_NODE="$as_dir$ac_word$ac_exec_ext" 7726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7727 break 2 7728 fi 7729done 7730 done 7731IFS=$as_save_IFS 7732 7733 ;; 7734esac 7735fi 7736ac_pt_NODE=$ac_cv_path_ac_pt_NODE 7737if test -n "$ac_pt_NODE"; then 7738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_NODE" >&5 7739printf "%s\n" "$ac_pt_NODE" >&6; } 7740else 7741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7742printf "%s\n" "no" >&6; } 7743fi 7744 7745 if test "x$ac_pt_NODE" = x; then 7746 NODE="node" 7747 else 7748 case $cross_compiling:$ac_tool_warned in 7749yes:) 7750{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7751printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7752ac_tool_warned=yes ;; 7753esac 7754 NODE=$ac_pt_NODE 7755 fi 7756else 7757 NODE="$ac_cv_path_NODE" 7758fi 7759 7760 HOSTRUNNER="$NODE" 7761 # bigint for ctypes c_longlong, c_longdouble 7762 # no longer available in Node 16 7763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for node --experimental-wasm-bigint" >&5 7764printf %s "checking for node --experimental-wasm-bigint... " >&6; } 7765if test ${ac_cv_tool_node_wasm_bigint+y} 7766then : 7767 printf %s "(cached) " >&6 7768else $as_nop 7769 7770 if $NODE -v --experimental-wasm-bigint > /dev/null 2>&1; then 7771 ac_cv_tool_node_wasm_bigint=yes 7772 else 7773 ac_cv_tool_node_wasm_bigint=no 7774 fi 7775 7776fi 7777{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tool_node_wasm_bigint" >&5 7778printf "%s\n" "$ac_cv_tool_node_wasm_bigint" >&6; } 7779 if test "x$ac_cv_tool_node_wasm_bigint" = xyes 7780then : 7781 7782 as_fn_append HOSTRUNNER " --experimental-wasm-bigint" 7783 7784fi 7785 7786 if test "x$enable_wasm_pthreads" = xyes 7787then : 7788 7789 as_fn_append HOSTRUNNER " --experimental-wasm-threads" 7790 # no longer available in Node 16 7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for node --experimental-wasm-bulk-memory" >&5 7792printf %s "checking for node --experimental-wasm-bulk-memory... " >&6; } 7793if test ${ac_cv_tool_node_wasm_bulk_memory+y} 7794then : 7795 printf %s "(cached) " >&6 7796else $as_nop 7797 7798 if $NODE -v --experimental-wasm-bulk-memory > /dev/null 2>&1; then 7799 ac_cv_tool_node_wasm_bulk_memory=yes 7800 else 7801 ac_cv_tool_node_wasm_bulk_memory=no 7802 fi 7803 7804fi 7805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tool_node_wasm_bulk_memory" >&5 7806printf "%s\n" "$ac_cv_tool_node_wasm_bulk_memory" >&6; } 7807 if test "x$ac_cv_tool_node_wasm_bulk_memory" = xyes 7808then : 7809 7810 as_fn_append HOSTRUNNER " --experimental-wasm-bulk-memory" 7811 7812fi 7813 7814fi 7815 7816 if test "x$host_cpu" = xwasm64 7817then : 7818 as_fn_append HOSTRUNNER " --experimental-wasm-memory64" 7819fi 7820 ;; #( 7821 WASI/*) : 7822 HOSTRUNNER='wasmtime run --wasm max-wasm-stack=8388608 --wasi preview2=n --env PYTHONPATH=/$(shell realpath --relative-to $(abs_srcdir) $(abs_builddir))/$(shell cat pybuilddir.txt):/Lib --dir $(srcdir)::/' ;; #( 7823 *) : 7824 HOSTRUNNER='' 7825 ;; 7826esac 7827fi 7828 7829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HOSTRUNNER" >&5 7830printf "%s\n" "$HOSTRUNNER" >&6; } 7831 7832if test -n "$HOSTRUNNER"; then 7833 PYTHON_FOR_BUILD="_PYTHON_HOSTRUNNER='$HOSTRUNNER' $PYTHON_FOR_BUILD" 7834fi 7835 7836# LIBRARY_DEPS, LINK_PYTHON_OBJS and LINK_PYTHON_DEPS variable 7837case $ac_sys_system/$ac_sys_emscripten_target in #( 7838 Emscripten/browser*) : 7839 LIBRARY_DEPS='$(PY3LIBRARY) $(WASM_STDLIB) python.html python.worker.js' ;; #( 7840 *) : 7841 LIBRARY_DEPS='$(PY3LIBRARY) $(EXPORTSYMS)' 7842 ;; 7843esac 7844LINK_PYTHON_DEPS='$(LIBRARY_DEPS)' 7845if test "$PY_ENABLE_SHARED" = 1 || test "$enable_framework" ; then 7846 LIBRARY_DEPS="\$(LDLIBRARY) $LIBRARY_DEPS" 7847 if test "$STATIC_LIBPYTHON" = 1; then 7848 LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" 7849 fi 7850 # Link Python program to the shared library 7851 LINK_PYTHON_OBJS='$(BLDLIBRARY)' 7852else 7853 if test "$STATIC_LIBPYTHON" = 0; then 7854 # Build Python needs object files but don't need to build 7855 # Python static library 7856 LINK_PYTHON_DEPS="$LIBRARY_DEPS \$(LIBRARY_OBJS)" 7857 fi 7858 LIBRARY_DEPS="\$(LIBRARY) $LIBRARY_DEPS" 7859 # Link Python program to object files 7860 LINK_PYTHON_OBJS='$(LIBRARY_OBJS)' 7861fi 7862 7863 7864 7865 7866# ar program 7867 7868if test -n "$ac_tool_prefix"; then 7869 for ac_prog in ar aal 7870 do 7871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7872set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7873{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7874printf %s "checking for $ac_word... " >&6; } 7875if test ${ac_cv_prog_AR+y} 7876then : 7877 printf %s "(cached) " >&6 7878else $as_nop 7879 if test -n "$AR"; then 7880 ac_cv_prog_AR="$AR" # Let the user override the test. 7881else 7882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7883for as_dir in $PATH 7884do 7885 IFS=$as_save_IFS 7886 case $as_dir in #((( 7887 '') as_dir=./ ;; 7888 */) ;; 7889 *) as_dir=$as_dir/ ;; 7890 esac 7891 for ac_exec_ext in '' $ac_executable_extensions; do 7892 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7893 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7894 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7895 break 2 7896 fi 7897done 7898 done 7899IFS=$as_save_IFS 7900 7901fi 7902fi 7903AR=$ac_cv_prog_AR 7904if test -n "$AR"; then 7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7906printf "%s\n" "$AR" >&6; } 7907else 7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7909printf "%s\n" "no" >&6; } 7910fi 7911 7912 7913 test -n "$AR" && break 7914 done 7915fi 7916if test -z "$AR"; then 7917 ac_ct_AR=$AR 7918 for ac_prog in ar aal 7919do 7920 # Extract the first word of "$ac_prog", so it can be a program name with args. 7921set dummy $ac_prog; ac_word=$2 7922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7923printf %s "checking for $ac_word... " >&6; } 7924if test ${ac_cv_prog_ac_ct_AR+y} 7925then : 7926 printf %s "(cached) " >&6 7927else $as_nop 7928 if test -n "$ac_ct_AR"; then 7929 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7930else 7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7932for as_dir in $PATH 7933do 7934 IFS=$as_save_IFS 7935 case $as_dir in #((( 7936 '') as_dir=./ ;; 7937 */) ;; 7938 *) as_dir=$as_dir/ ;; 7939 esac 7940 for ac_exec_ext in '' $ac_executable_extensions; do 7941 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 7942 ac_cv_prog_ac_ct_AR="$ac_prog" 7943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 7944 break 2 7945 fi 7946done 7947 done 7948IFS=$as_save_IFS 7949 7950fi 7951fi 7952ac_ct_AR=$ac_cv_prog_ac_ct_AR 7953if test -n "$ac_ct_AR"; then 7954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7955printf "%s\n" "$ac_ct_AR" >&6; } 7956else 7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 7958printf "%s\n" "no" >&6; } 7959fi 7960 7961 7962 test -n "$ac_ct_AR" && break 7963done 7964 7965 if test "x$ac_ct_AR" = x; then 7966 AR="ar" 7967 else 7968 case $cross_compiling:$ac_tool_warned in 7969yes:) 7970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7971printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7972ac_tool_warned=yes ;; 7973esac 7974 AR=$ac_ct_AR 7975 fi 7976fi 7977 7978 7979# tweak ARFLAGS only if the user didn't set it on the command line 7980 7981if test -z "$ARFLAGS" 7982then 7983 ARFLAGS="rcs" 7984fi 7985 7986case $MACHDEP in 7987hp*|HP*) 7988 # install -d does not work on HP-UX 7989 if test -z "$INSTALL" 7990 then 7991 INSTALL="${srcdir}/install-sh -c" 7992 fi 7993esac 7994 7995 # Find a good install program. We prefer a C program (faster), 7996# so one script is as good as another. But avoid the broken or 7997# incompatible versions: 7998# SysV /etc/install, /usr/sbin/install 7999# SunOS /usr/etc/install 8000# IRIX /sbin/install 8001# AIX /bin/install 8002# AmigaOS /C/install, which installs bootblocks on floppy discs 8003# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 8004# AFS /usr/afsws/bin/install, which mishandles nonexistent args 8005# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 8006# OS/2's system install, which has a completely different semantic 8007# ./install, which can be erroneously created by make from ./install.sh. 8008# Reject install programs that cannot install multiple files. 8009{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 8010printf %s "checking for a BSD-compatible install... " >&6; } 8011if test -z "$INSTALL"; then 8012if test ${ac_cv_path_install+y} 8013then : 8014 printf %s "(cached) " >&6 8015else $as_nop 8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8017for as_dir in $PATH 8018do 8019 IFS=$as_save_IFS 8020 case $as_dir in #((( 8021 '') as_dir=./ ;; 8022 */) ;; 8023 *) as_dir=$as_dir/ ;; 8024 esac 8025 # Account for fact that we put trailing slashes in our PATH walk. 8026case $as_dir in #(( 8027 ./ | /[cC]/* | \ 8028 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 8029 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 8030 /usr/ucb/* ) ;; 8031 *) 8032 # OSF1 and SCO ODT 3.0 have their own names for install. 8033 # Don't use installbsd from OSF since it installs stuff as root 8034 # by default. 8035 for ac_prog in ginstall scoinst install; do 8036 for ac_exec_ext in '' $ac_executable_extensions; do 8037 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then 8038 if test $ac_prog = install && 8039 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8040 # AIX install. It has an incompatible calling convention. 8041 : 8042 elif test $ac_prog = install && 8043 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 8044 # program-specific install script used by HP pwplus--don't use. 8045 : 8046 else 8047 rm -rf conftest.one conftest.two conftest.dir 8048 echo one > conftest.one 8049 echo two > conftest.two 8050 mkdir conftest.dir 8051 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && 8052 test -s conftest.one && test -s conftest.two && 8053 test -s conftest.dir/conftest.one && 8054 test -s conftest.dir/conftest.two 8055 then 8056 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" 8057 break 3 8058 fi 8059 fi 8060 fi 8061 done 8062 done 8063 ;; 8064esac 8065 8066 done 8067IFS=$as_save_IFS 8068 8069rm -rf conftest.one conftest.two conftest.dir 8070 8071fi 8072 if test ${ac_cv_path_install+y}; then 8073 INSTALL=$ac_cv_path_install 8074 else 8075 # As a last resort, use the slow shell script. Don't cache a 8076 # value for INSTALL within a source directory, because that will 8077 # break other packages using the cache if that directory is 8078 # removed, or if the value is a relative name. 8079 INSTALL=$ac_install_sh 8080 fi 8081fi 8082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 8083printf "%s\n" "$INSTALL" >&6; } 8084 8085# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 8086# It thinks the first close brace ends the variable substitution. 8087test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 8088 8089test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 8090 8091test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 8092 8093 8094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 8095printf %s "checking for a race-free mkdir -p... " >&6; } 8096if test -z "$MKDIR_P"; then 8097 if test ${ac_cv_path_mkdir+y} 8098then : 8099 printf %s "(cached) " >&6 8100else $as_nop 8101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8102for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 8103do 8104 IFS=$as_save_IFS 8105 case $as_dir in #((( 8106 '') as_dir=./ ;; 8107 */) ;; 8108 *) as_dir=$as_dir/ ;; 8109 esac 8110 for ac_prog in mkdir gmkdir; do 8111 for ac_exec_ext in '' $ac_executable_extensions; do 8112 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue 8113 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( 8114 'mkdir ('*'coreutils) '* | \ 8115 'BusyBox '* | \ 8116 'mkdir (fileutils) '4.1*) 8117 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext 8118 break 3;; 8119 esac 8120 done 8121 done 8122 done 8123IFS=$as_save_IFS 8124 8125fi 8126 8127 test -d ./--version && rmdir ./--version 8128 if test ${ac_cv_path_mkdir+y}; then 8129 MKDIR_P="$ac_cv_path_mkdir -p" 8130 else 8131 # As a last resort, use the slow shell script. Don't cache a 8132 # value for MKDIR_P within a source directory, because that will 8133 # break other packages using the cache if that directory is 8134 # removed, or if the value is a relative name. 8135 MKDIR_P="$ac_install_sh -d" 8136 fi 8137fi 8138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 8139printf "%s\n" "$MKDIR_P" >&6; } 8140 8141 8142# Not every filesystem supports hard links 8143 8144if test -z "$LN" ; then 8145 case $ac_sys_system in 8146 CYGWIN*) LN="ln -s";; 8147 *) LN=ln;; 8148 esac 8149fi 8150 8151# For calculating the .so ABI tag. 8152 8153 8154ABIFLAGS="" 8155ABI_THREAD="" 8156 8157# Check for --disable-gil 8158# --disable-gil 8159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-gil" >&5 8160printf %s "checking for --disable-gil... " >&6; } 8161# Check whether --enable-gil was given. 8162if test ${enable_gil+y} 8163then : 8164 enableval=$enable_gil; if test "x$enable_gil" = xyes 8165then : 8166 disable_gil=no 8167else $as_nop 8168 disable_gil=yes 8169fi 8170else $as_nop 8171 disable_gil=no 8172 8173fi 8174 8175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $disable_gil" >&5 8176printf "%s\n" "$disable_gil" >&6; } 8177 8178if test "$disable_gil" = "yes" 8179then 8180 8181printf "%s\n" "#define Py_GIL_DISABLED 1" >>confdefs.h 8182 8183 # Add "t" for "threaded" 8184 ABIFLAGS="${ABIFLAGS}t" 8185 ABI_THREAD="t" 8186fi 8187 8188# Check for --with-pydebug 8189{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 8190printf %s "checking for --with-pydebug... " >&6; } 8191 8192# Check whether --with-pydebug was given. 8193if test ${with_pydebug+y} 8194then : 8195 withval=$with_pydebug; 8196if test "$withval" != no 8197then 8198 8199printf "%s\n" "#define Py_DEBUG 1" >>confdefs.h 8200 8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8202printf "%s\n" "yes" >&6; }; 8203 Py_DEBUG='true' 8204 ABIFLAGS="${ABIFLAGS}d" 8205else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8206printf "%s\n" "no" >&6; }; Py_DEBUG='false' 8207fi 8208else $as_nop 8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8210printf "%s\n" "no" >&6; } 8211fi 8212 8213 8214# Check for --with-trace-refs 8215# --with-trace-refs 8216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5 8217printf %s "checking for --with-trace-refs... " >&6; } 8218 8219# Check whether --with-trace-refs was given. 8220if test ${with_trace_refs+y} 8221then : 8222 withval=$with_trace_refs; 8223else $as_nop 8224 with_trace_refs=no 8225 8226fi 8227 8228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5 8229printf "%s\n" "$with_trace_refs" >&6; } 8230 8231if test "$with_trace_refs" = "yes" 8232then 8233 8234printf "%s\n" "#define Py_TRACE_REFS 1" >>confdefs.h 8235 8236fi 8237 8238if test "$disable_gil" = "yes" -a "$with_trace_refs" = "yes"; 8239then 8240 as_fn_error $? "--disable-gil cannot be used with --with-trace-refs" "$LINENO" 5 8241fi 8242 8243# Check for --enable-pystats 8244{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-pystats" >&5 8245printf %s "checking for --enable-pystats... " >&6; } 8246# Check whether --enable-pystats was given. 8247if test ${enable_pystats+y} 8248then : 8249 enableval=$enable_pystats; 8250else $as_nop 8251 enable_pystats=no 8252 8253fi 8254 8255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_pystats" >&5 8256printf "%s\n" "$enable_pystats" >&6; } 8257 8258if test "x$enable_pystats" = xyes 8259then : 8260 8261 8262printf "%s\n" "#define Py_STATS 1" >>confdefs.h 8263 8264 8265fi 8266 8267# Check for --with-assertions. 8268# This allows enabling assertions without Py_DEBUG. 8269assertions='false' 8270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 8271printf %s "checking for --with-assertions... " >&6; } 8272 8273# Check whether --with-assertions was given. 8274if test ${with_assertions+y} 8275then : 8276 withval=$with_assertions; 8277if test "$withval" != no 8278then 8279 assertions='true' 8280fi 8281fi 8282 8283if test "$assertions" = 'true'; then 8284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8285printf "%s\n" "yes" >&6; } 8286elif test "$Py_DEBUG" = 'true'; then 8287 assertions='true' 8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 8289printf "%s\n" "implied by --with-pydebug" >&6; } 8290else 8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8292printf "%s\n" "no" >&6; } 8293fi 8294 8295# Check for --enable-experimental-jit: 8296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-experimental-jit" >&5 8297printf %s "checking for --enable-experimental-jit... " >&6; } 8298# Check whether --enable-experimental-jit was given. 8299if test ${enable_experimental_jit+y} 8300then : 8301 enableval=$enable_experimental_jit; 8302else $as_nop 8303 enable_experimental_jit=no 8304fi 8305 8306case $enable_experimental_jit in 8307 no) jit_flags=""; tier2_flags="" ;; 8308 yes) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=1" ;; 8309 yes-off) jit_flags="-D_Py_JIT"; tier2_flags="-D_Py_TIER2=3" ;; 8310 interpreter) jit_flags=""; tier2_flags="-D_Py_TIER2=4" ;; 8311 interpreter-off) jit_flags=""; tier2_flags="-D_Py_TIER2=6" ;; # Secret option 8312 *) as_fn_error $? "invalid argument: --enable-experimental-jit=$enable_experimental_jit; expected no|yes|yes-off|interpreter" "$LINENO" 5 ;; 8313esac 8314if ${tier2_flags:+false} : 8315then : 8316 8317else $as_nop 8318 as_fn_append CFLAGS_NODIST " $tier2_flags" 8319fi 8320if ${jit_flags:+false} : 8321then : 8322 8323else $as_nop 8324 as_fn_append CFLAGS_NODIST " $jit_flags" 8325 REGEN_JIT_COMMAND="\$(PYTHON_FOR_REGEN) \$(srcdir)/Tools/jit/build.py $host" 8326 JIT_STENCILS_H="jit_stencils.h" 8327 if test "x$Py_DEBUG" = xtrue 8328then : 8329 as_fn_append REGEN_JIT_COMMAND " --debug" 8330fi 8331fi 8332 8333 8334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tier2_flags $jit_flags" >&5 8335printf "%s\n" "$tier2_flags $jit_flags" >&6; } 8336 8337# Enable optimization flags 8338 8339 8340Py_OPT='false' 8341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 8342printf %s "checking for --enable-optimizations... " >&6; } 8343# Check whether --enable-optimizations was given. 8344if test ${enable_optimizations+y} 8345then : 8346 enableval=$enable_optimizations; 8347if test "$enableval" != no 8348then 8349 Py_OPT='true' 8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8351printf "%s\n" "yes" >&6; }; 8352else 8353 Py_OPT='false' 8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8355printf "%s\n" "no" >&6; }; 8356fi 8357else $as_nop 8358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8359printf "%s\n" "no" >&6; } 8360fi 8361 8362 8363if test "$Py_OPT" = 'true' ; then 8364 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not 8365 # compile working code using it and both test_distutils and test_gdb are 8366 # broken when you do manage to get a toolchain that works with it. People 8367 # who want LTO need to use --with-lto themselves. 8368 DEF_MAKE_ALL_RULE="profile-opt" 8369 REQUIRE_PGO="yes" 8370 DEF_MAKE_RULE="build_all" 8371 case $CC in 8372 *gcc*) 8373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-semantic-interposition" >&5 8374printf %s "checking whether C compiler accepts -fno-semantic-interposition... " >&6; } 8375if test ${ax_cv_check_cflags__Werror__fno_semantic_interposition+y} 8376then : 8377 printf %s "(cached) " >&6 8378else $as_nop 8379 8380 ax_check_save_flags=$CFLAGS 8381 CFLAGS="$CFLAGS -Werror -fno-semantic-interposition" 8382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8383/* end confdefs.h. */ 8384 8385int 8386main (void) 8387{ 8388 8389 ; 8390 return 0; 8391} 8392_ACEOF 8393if ac_fn_c_try_compile "$LINENO" 8394then : 8395 ax_cv_check_cflags__Werror__fno_semantic_interposition=yes 8396else $as_nop 8397 ax_cv_check_cflags__Werror__fno_semantic_interposition=no 8398fi 8399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8400 CFLAGS=$ax_check_save_flags 8401fi 8402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__Werror__fno_semantic_interposition" >&5 8403printf "%s\n" "$ax_cv_check_cflags__Werror__fno_semantic_interposition" >&6; } 8404if test "x$ax_cv_check_cflags__Werror__fno_semantic_interposition" = xyes 8405then : 8406 8407 CFLAGS_NODIST="$CFLAGS_NODIST -fno-semantic-interposition" 8408 LDFLAGS_NODIST="$LDFLAGS_NODIST -fno-semantic-interposition" 8409 8410else $as_nop 8411 : 8412fi 8413 8414 ;; 8415 esac 8416elif test "$ac_sys_system" = "Emscripten" -o "$ac_sys_system" = "WASI"; then 8417 DEF_MAKE_ALL_RULE="build_wasm" 8418 REQUIRE_PGO="no" 8419 DEF_MAKE_RULE="all" 8420else 8421 DEF_MAKE_ALL_RULE="build_all" 8422 REQUIRE_PGO="no" 8423 DEF_MAKE_RULE="all" 8424fi 8425 8426 8427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5 8428printf %s "checking PROFILE_TASK... " >&6; } 8429if test -z "$PROFILE_TASK" 8430then 8431 PROFILE_TASK='-m test --pgo --timeout=$(TESTTIMEOUT)' 8432fi 8433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5 8434printf "%s\n" "$PROFILE_TASK" >&6; } 8435 8436# Make llvm-related checks work on systems where llvm tools are not installed with their 8437# normal names in the default $PATH (ie: Ubuntu). They exist under the 8438# non-suffixed name in their versioned llvm directory. 8439 8440llvm_bin_dir='' 8441llvm_path="${PATH}" 8442if test "${CC}" = "clang" 8443then 8444 clang_bin=`which clang` 8445 # Some systems install clang elsewhere as a symlink to the real path 8446 # which is where the related llvm tools are located. 8447 if test -L "${clang_bin}" 8448 then 8449 clang_dir=`dirname "${clang_bin}"` 8450 clang_bin=`readlink "${clang_bin}"` 8451 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` 8452 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" 8453 fi 8454fi 8455 8456# Enable LTO flags 8457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 8458printf %s "checking for --with-lto... " >&6; } 8459 8460# Check whether --with-lto was given. 8461if test ${with_lto+y} 8462then : 8463 withval=$with_lto; 8464case "$withval" in 8465 full) 8466 Py_LTO='true' 8467 Py_LTO_POLICY='full' 8468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8469printf "%s\n" "yes" >&6; } 8470 ;; 8471 thin) 8472 Py_LTO='true' 8473 Py_LTO_POLICY='thin' 8474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8475printf "%s\n" "yes" >&6; } 8476 ;; 8477 yes) 8478 Py_LTO='true' 8479 Py_LTO_POLICY='default' 8480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8481printf "%s\n" "yes" >&6; } 8482 ;; 8483 no) 8484 Py_LTO='false' 8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8486printf "%s\n" "no" >&6; } 8487 ;; 8488 *) 8489 Py_LTO='false' 8490 as_fn_error $? "unknown lto option: '$withval'" "$LINENO" 5 8491 ;; 8492esac 8493 8494else $as_nop 8495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8496printf "%s\n" "no" >&6; } 8497fi 8498 8499if test "$Py_LTO" = 'true' ; then 8500 case $CC in 8501 *clang*) 8502 LDFLAGS_NOLTO="-fno-lto" 8503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5 8504printf %s "checking whether C compiler accepts -flto=thin... " >&6; } 8505if test ${ax_cv_check_cflags___flto_thin+y} 8506then : 8507 printf %s "(cached) " >&6 8508else $as_nop 8509 8510 ax_check_save_flags=$CFLAGS 8511 CFLAGS="$CFLAGS -flto=thin" 8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8513/* end confdefs.h. */ 8514 8515int 8516main (void) 8517{ 8518 8519 ; 8520 return 0; 8521} 8522_ACEOF 8523if ac_fn_c_try_compile "$LINENO" 8524then : 8525 ax_cv_check_cflags___flto_thin=yes 8526else $as_nop 8527 ax_cv_check_cflags___flto_thin=no 8528fi 8529rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8530 CFLAGS=$ax_check_save_flags 8531fi 8532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5 8533printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; } 8534if test "x$ax_cv_check_cflags___flto_thin" = xyes 8535then : 8536 LDFLAGS_NOLTO="-flto=thin" 8537else $as_nop 8538 LDFLAGS_NOLTO="-flto" 8539fi 8540 8541 8542 if test -n "$ac_tool_prefix"; then 8543 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. 8544set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 8545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8546printf %s "checking for $ac_word... " >&6; } 8547if test ${ac_cv_path_LLVM_AR+y} 8548then : 8549 printf %s "(cached) " >&6 8550else $as_nop 8551 case $LLVM_AR in 8552 [\\/]* | ?:[\\/]*) 8553 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. 8554 ;; 8555 *) 8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8557for as_dir in ${llvm_path} 8558do 8559 IFS=$as_save_IFS 8560 case $as_dir in #((( 8561 '') as_dir=./ ;; 8562 */) ;; 8563 *) as_dir=$as_dir/ ;; 8564 esac 8565 for ac_exec_ext in '' $ac_executable_extensions; do 8566 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8567 ac_cv_path_LLVM_AR="$as_dir$ac_word$ac_exec_ext" 8568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8569 break 2 8570 fi 8571done 8572 done 8573IFS=$as_save_IFS 8574 8575 ;; 8576esac 8577fi 8578LLVM_AR=$ac_cv_path_LLVM_AR 8579if test -n "$LLVM_AR"; then 8580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 8581printf "%s\n" "$LLVM_AR" >&6; } 8582else 8583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8584printf "%s\n" "no" >&6; } 8585fi 8586 8587 8588fi 8589if test -z "$ac_cv_path_LLVM_AR"; then 8590 ac_pt_LLVM_AR=$LLVM_AR 8591 # Extract the first word of "llvm-ar", so it can be a program name with args. 8592set dummy llvm-ar; ac_word=$2 8593{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8594printf %s "checking for $ac_word... " >&6; } 8595if test ${ac_cv_path_ac_pt_LLVM_AR+y} 8596then : 8597 printf %s "(cached) " >&6 8598else $as_nop 8599 case $ac_pt_LLVM_AR in 8600 [\\/]* | ?:[\\/]*) 8601 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. 8602 ;; 8603 *) 8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8605for as_dir in ${llvm_path} 8606do 8607 IFS=$as_save_IFS 8608 case $as_dir in #((( 8609 '') as_dir=./ ;; 8610 */) ;; 8611 *) as_dir=$as_dir/ ;; 8612 esac 8613 for ac_exec_ext in '' $ac_executable_extensions; do 8614 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8615 ac_cv_path_ac_pt_LLVM_AR="$as_dir$ac_word$ac_exec_ext" 8616 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8617 break 2 8618 fi 8619done 8620 done 8621IFS=$as_save_IFS 8622 8623 ;; 8624esac 8625fi 8626ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR 8627if test -n "$ac_pt_LLVM_AR"; then 8628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 8629printf "%s\n" "$ac_pt_LLVM_AR" >&6; } 8630else 8631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8632printf "%s\n" "no" >&6; } 8633fi 8634 8635 if test "x$ac_pt_LLVM_AR" = x; then 8636 LLVM_AR="''" 8637 else 8638 case $cross_compiling:$ac_tool_warned in 8639yes:) 8640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8641printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8642ac_tool_warned=yes ;; 8643esac 8644 LLVM_AR=$ac_pt_LLVM_AR 8645 fi 8646else 8647 LLVM_AR="$ac_cv_path_LLVM_AR" 8648fi 8649 8650 8651 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" 8652 then 8653 LLVM_AR_FOUND="found" 8654 else 8655 LLVM_AR_FOUND="not-found" 8656 fi 8657 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" 8658 then 8659 # The Apple-supplied ar in Xcode or the Command Line Tools is apparently sufficient 8660 found_llvm_ar=`/usr/bin/xcrun -find ar 2>/dev/null` 8661 if test -n "${found_llvm_ar}" 8662 then 8663 LLVM_AR='/usr/bin/xcrun ar' 8664 LLVM_AR_FOUND=found 8665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 8666printf "%s\n" "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} 8667 fi 8668 fi 8669 if test $LLVM_AR_FOUND = not-found 8670 then 8671 LLVM_PROFR_ERR=yes 8672 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 8673 else 8674 LLVM_AR_ERR=no 8675 fi 8676 AR="${LLVM_AR}" 8677 case $ac_sys_system in 8678 Darwin*) 8679 # Any changes made here should be reflected in the GCC+Darwin case below 8680 if test $Py_LTO_POLICY = default 8681 then 8682 # Check that ThinLTO is accepted. 8683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5 8684printf %s "checking whether C compiler accepts -flto=thin... " >&6; } 8685if test ${ax_cv_check_cflags___flto_thin+y} 8686then : 8687 printf %s "(cached) " >&6 8688else $as_nop 8689 8690 ax_check_save_flags=$CFLAGS 8691 CFLAGS="$CFLAGS -flto=thin" 8692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8693/* end confdefs.h. */ 8694 8695int 8696main (void) 8697{ 8698 8699 ; 8700 return 0; 8701} 8702_ACEOF 8703if ac_fn_c_try_compile "$LINENO" 8704then : 8705 ax_cv_check_cflags___flto_thin=yes 8706else $as_nop 8707 ax_cv_check_cflags___flto_thin=no 8708fi 8709rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8710 CFLAGS=$ax_check_save_flags 8711fi 8712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5 8713printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; } 8714if test "x$ax_cv_check_cflags___flto_thin" = xyes 8715then : 8716 8717 LTOFLAGS="-flto=thin -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto" 8718 LTOCFLAGS="-flto=thin" 8719 8720else $as_nop 8721 8722 LTOFLAGS="-flto -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto" 8723 LTOCFLAGS="-flto" 8724 8725 8726fi 8727 8728 else 8729 LTOFLAGS="-flto=${Py_LTO_POLICY} -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto" 8730 LTOCFLAGS="-flto=${Py_LTO_POLICY}" 8731 fi 8732 ;; 8733 *) 8734 if test $Py_LTO_POLICY = default 8735 then 8736 # Check that ThinLTO is accepted 8737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -flto=thin" >&5 8738printf %s "checking whether C compiler accepts -flto=thin... " >&6; } 8739if test ${ax_cv_check_cflags___flto_thin+y} 8740then : 8741 printf %s "(cached) " >&6 8742else $as_nop 8743 8744 ax_check_save_flags=$CFLAGS 8745 CFLAGS="$CFLAGS -flto=thin" 8746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8747/* end confdefs.h. */ 8748 8749int 8750main (void) 8751{ 8752 8753 ; 8754 return 0; 8755} 8756_ACEOF 8757if ac_fn_c_try_compile "$LINENO" 8758then : 8759 ax_cv_check_cflags___flto_thin=yes 8760else $as_nop 8761 ax_cv_check_cflags___flto_thin=no 8762fi 8763rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 8764 CFLAGS=$ax_check_save_flags 8765fi 8766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___flto_thin" >&5 8767printf "%s\n" "$ax_cv_check_cflags___flto_thin" >&6; } 8768if test "x$ax_cv_check_cflags___flto_thin" = xyes 8769then : 8770 LTOFLAGS="-flto=thin" 8771else $as_nop 8772 LTOFLAGS="-flto" 8773fi 8774 8775 else 8776 LTOFLAGS="-flto=${Py_LTO_POLICY}" 8777 fi 8778 ;; 8779 esac 8780 ;; 8781 *emcc*) 8782 if test "$Py_LTO_POLICY" != "default"; then 8783 as_fn_error $? "emcc supports only default lto." "$LINENO" 5 8784 fi 8785 LTOFLAGS="-flto" 8786 LTOCFLAGS="-flto" 8787 ;; 8788 *gcc*) 8789 if test $Py_LTO_POLICY = thin 8790 then 8791 as_fn_error $? "thin lto is not supported under gcc compiler." "$LINENO" 5 8792 fi 8793 LDFLAGS_NOLTO="-fno-lto" 8794 case $ac_sys_system in 8795 Darwin*) 8796 LTOFLAGS="-flto -Wl,-export_dynamic -Wl,-object_path_lto,\"\$@\".lto" 8797 LTOCFLAGS="-flto" 8798 ;; 8799 *) 8800 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" 8801 ;; 8802 esac 8803 ;; 8804 esac 8805 8806 if test "$ac_cv_prog_cc_g" = "yes" 8807 then 8808 # bpo-30345: Add -g to LDFLAGS when compiling with LTO 8809 # to get debug symbols. 8810 LTOFLAGS="$LTOFLAGS -g" 8811 fi 8812 8813 CFLAGS_NODIST="$CFLAGS_NODIST ${LTOCFLAGS-$LTOFLAGS}" 8814 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" 8815fi 8816 8817# Enable PGO flags. 8818 8819 8820 8821 8822 8823 8824if test -n "$ac_tool_prefix"; then 8825 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. 8826set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 8827{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8828printf %s "checking for $ac_word... " >&6; } 8829if test ${ac_cv_path_LLVM_PROFDATA+y} 8830then : 8831 printf %s "(cached) " >&6 8832else $as_nop 8833 case $LLVM_PROFDATA in 8834 [\\/]* | ?:[\\/]*) 8835 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. 8836 ;; 8837 *) 8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8839for as_dir in ${llvm_path} 8840do 8841 IFS=$as_save_IFS 8842 case $as_dir in #((( 8843 '') as_dir=./ ;; 8844 */) ;; 8845 *) as_dir=$as_dir/ ;; 8846 esac 8847 for ac_exec_ext in '' $ac_executable_extensions; do 8848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8849 ac_cv_path_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext" 8850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8851 break 2 8852 fi 8853done 8854 done 8855IFS=$as_save_IFS 8856 8857 ;; 8858esac 8859fi 8860LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA 8861if test -n "$LLVM_PROFDATA"; then 8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 8863printf "%s\n" "$LLVM_PROFDATA" >&6; } 8864else 8865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8866printf "%s\n" "no" >&6; } 8867fi 8868 8869 8870fi 8871if test -z "$ac_cv_path_LLVM_PROFDATA"; then 8872 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA 8873 # Extract the first word of "llvm-profdata", so it can be a program name with args. 8874set dummy llvm-profdata; ac_word=$2 8875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8876printf %s "checking for $ac_word... " >&6; } 8877if test ${ac_cv_path_ac_pt_LLVM_PROFDATA+y} 8878then : 8879 printf %s "(cached) " >&6 8880else $as_nop 8881 case $ac_pt_LLVM_PROFDATA in 8882 [\\/]* | ?:[\\/]*) 8883 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. 8884 ;; 8885 *) 8886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8887for as_dir in ${llvm_path} 8888do 8889 IFS=$as_save_IFS 8890 case $as_dir in #((( 8891 '') as_dir=./ ;; 8892 */) ;; 8893 *) as_dir=$as_dir/ ;; 8894 esac 8895 for ac_exec_ext in '' $ac_executable_extensions; do 8896 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 8897 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir$ac_word$ac_exec_ext" 8898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 8899 break 2 8900 fi 8901done 8902 done 8903IFS=$as_save_IFS 8904 8905 ;; 8906esac 8907fi 8908ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA 8909if test -n "$ac_pt_LLVM_PROFDATA"; then 8910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 8911printf "%s\n" "$ac_pt_LLVM_PROFDATA" >&6; } 8912else 8913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 8914printf "%s\n" "no" >&6; } 8915fi 8916 8917 if test "x$ac_pt_LLVM_PROFDATA" = x; then 8918 LLVM_PROFDATA="''" 8919 else 8920 case $cross_compiling:$ac_tool_warned in 8921yes:) 8922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8923printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8924ac_tool_warned=yes ;; 8925esac 8926 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA 8927 fi 8928else 8929 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" 8930fi 8931 8932 8933if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" 8934then 8935 LLVM_PROF_FOUND="found" 8936else 8937 LLVM_PROF_FOUND="not-found" 8938fi 8939if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" 8940then 8941 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` 8942 if test -n "${found_llvm_profdata}" 8943 then 8944 # llvm-profdata isn't directly in $PATH in some cases. 8945 # https://apple.stackexchange.com/questions/197053/ 8946 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' 8947 LLVM_PROF_FOUND=found 8948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 8949printf "%s\n" "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} 8950 fi 8951fi 8952LLVM_PROF_ERR=no 8953 8954# GNU Autoconf recommends the use of expr instead of basename. 8955CC_BASENAME=$(expr "//$CC" : '.*/\(.*\)') 8956case "$CC_BASENAME" in 8957 *clang*) 8958 # Any changes made here should be reflected in the GCC+Darwin case below 8959 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 8960 PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\"" 8961 LLVM_PROF_MERGER=" ${LLVM_PROFDATA} merge -output=\"\$(shell pwd)/code.profclangd\" \"\$(shell pwd)\"/*.profclangr " 8962 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\"" 8963 if test $LLVM_PROF_FOUND = not-found 8964 then 8965 LLVM_PROF_ERR=yes 8966 if test "${REQUIRE_PGO}" = "yes" 8967 then 8968 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 8969 fi 8970 fi 8971 ;; 8972 *gcc*) 8973 case $ac_sys_system in 8974 Darwin*) 8975 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 8976 PGO_PROF_USE_FLAG="-fprofile-instr-use=\"\$(shell pwd)/code.profclangd\"" 8977 LLVM_PROF_MERGER=" ${LLVM_PROFDATA} merge -output=\"\$(shell pwd)/code.profclangd\" \"\$(shell pwd)\"/*.profclangr " 8978 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"\$(shell pwd)/code-%p.profclangr\"" 8979 if test "${LLVM_PROF_FOUND}" = "not-found" 8980 then 8981 LLVM_PROF_ERR=yes 8982 if test "${REQUIRE_PGO}" = "yes" 8983 then 8984 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 8985 fi 8986 fi 8987 ;; 8988 *) 8989 PGO_PROF_GEN_FLAG="-fprofile-generate" 8990 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" 8991 LLVM_PROF_MERGER="true" 8992 LLVM_PROF_FILE="" 8993 ;; 8994 esac 8995 ;; 8996 *icc*) 8997 PGO_PROF_GEN_FLAG="-prof-gen" 8998 PGO_PROF_USE_FLAG="-prof-use" 8999 LLVM_PROF_MERGER="true" 9000 LLVM_PROF_FILE="" 9001 ;; 9002esac 9003 9004# BOLT optimization. Always configured after PGO since it always runs after PGO. 9005Py_BOLT='false' 9006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-bolt" >&5 9007printf %s "checking for --enable-bolt... " >&6; } 9008# Check whether --enable-bolt was given. 9009if test ${enable_bolt+y} 9010then : 9011 enableval=$enable_bolt; 9012if test "$enableval" != no 9013then 9014 Py_BOLT='true' 9015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9016printf "%s\n" "yes" >&6; }; 9017else 9018 Py_BOLT='false' 9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9020printf "%s\n" "no" >&6; }; 9021fi 9022else $as_nop 9023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9024printf "%s\n" "no" >&6; } 9025fi 9026 9027 9028 9029if test "$Py_BOLT" = 'true' ; then 9030 PREBOLT_RULE="${DEF_MAKE_ALL_RULE}" 9031 DEF_MAKE_ALL_RULE="bolt-opt" 9032 DEF_MAKE_RULE="build_all" 9033 9034 # -fno-reorder-blocks-and-partition is required for bolt to work. 9035 # Possibly GCC only. 9036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fno-reorder-blocks-and-partition" >&5 9037printf %s "checking whether C compiler accepts -fno-reorder-blocks-and-partition... " >&6; } 9038if test ${ax_cv_check_cflags___fno_reorder_blocks_and_partition+y} 9039then : 9040 printf %s "(cached) " >&6 9041else $as_nop 9042 9043 ax_check_save_flags=$CFLAGS 9044 CFLAGS="$CFLAGS -fno-reorder-blocks-and-partition" 9045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9046/* end confdefs.h. */ 9047 9048int 9049main (void) 9050{ 9051 9052 ; 9053 return 0; 9054} 9055_ACEOF 9056if ac_fn_c_try_compile "$LINENO" 9057then : 9058 ax_cv_check_cflags___fno_reorder_blocks_and_partition=yes 9059else $as_nop 9060 ax_cv_check_cflags___fno_reorder_blocks_and_partition=no 9061fi 9062rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9063 CFLAGS=$ax_check_save_flags 9064fi 9065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&5 9066printf "%s\n" "$ax_cv_check_cflags___fno_reorder_blocks_and_partition" >&6; } 9067if test "x$ax_cv_check_cflags___fno_reorder_blocks_and_partition" = xyes 9068then : 9069 9070 CFLAGS_NODIST="$CFLAGS_NODIST -fno-reorder-blocks-and-partition" 9071 9072else $as_nop 9073 : 9074fi 9075 9076 9077 # These flags are required for bolt to work: 9078 LDFLAGS_NODIST="$LDFLAGS_NODIST -Wl,--emit-relocs" 9079 9080 # These flags are required to get good performance from bolt: 9081 CFLAGS_NODIST="$CFLAGS_NODIST -fno-pie" 9082 # We want to add these no-pie flags to linking executables but not shared libraries: 9083 LINKCC="$LINKCC -fno-pie -no-pie" 9084 9085 if test -n "$ac_tool_prefix"; then 9086 # Extract the first word of "${ac_tool_prefix}llvm-bolt", so it can be a program name with args. 9087set dummy ${ac_tool_prefix}llvm-bolt; ac_word=$2 9088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9089printf %s "checking for $ac_word... " >&6; } 9090if test ${ac_cv_path_LLVM_BOLT+y} 9091then : 9092 printf %s "(cached) " >&6 9093else $as_nop 9094 case $LLVM_BOLT in 9095 [\\/]* | ?:[\\/]*) 9096 ac_cv_path_LLVM_BOLT="$LLVM_BOLT" # Let the user override the test with a path. 9097 ;; 9098 *) 9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9100for as_dir in ${llvm_path} 9101do 9102 IFS=$as_save_IFS 9103 case $as_dir in #((( 9104 '') as_dir=./ ;; 9105 */) ;; 9106 *) as_dir=$as_dir/ ;; 9107 esac 9108 for ac_exec_ext in '' $ac_executable_extensions; do 9109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9110 ac_cv_path_LLVM_BOLT="$as_dir$ac_word$ac_exec_ext" 9111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9112 break 2 9113 fi 9114done 9115 done 9116IFS=$as_save_IFS 9117 9118 ;; 9119esac 9120fi 9121LLVM_BOLT=$ac_cv_path_LLVM_BOLT 9122if test -n "$LLVM_BOLT"; then 9123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LLVM_BOLT" >&5 9124printf "%s\n" "$LLVM_BOLT" >&6; } 9125else 9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9127printf "%s\n" "no" >&6; } 9128fi 9129 9130 9131fi 9132if test -z "$ac_cv_path_LLVM_BOLT"; then 9133 ac_pt_LLVM_BOLT=$LLVM_BOLT 9134 # Extract the first word of "llvm-bolt", so it can be a program name with args. 9135set dummy llvm-bolt; ac_word=$2 9136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9137printf %s "checking for $ac_word... " >&6; } 9138if test ${ac_cv_path_ac_pt_LLVM_BOLT+y} 9139then : 9140 printf %s "(cached) " >&6 9141else $as_nop 9142 case $ac_pt_LLVM_BOLT in 9143 [\\/]* | ?:[\\/]*) 9144 ac_cv_path_ac_pt_LLVM_BOLT="$ac_pt_LLVM_BOLT" # Let the user override the test with a path. 9145 ;; 9146 *) 9147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9148for as_dir in ${llvm_path} 9149do 9150 IFS=$as_save_IFS 9151 case $as_dir in #((( 9152 '') as_dir=./ ;; 9153 */) ;; 9154 *) as_dir=$as_dir/ ;; 9155 esac 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_ac_pt_LLVM_BOLT="$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 9160 break 2 9161 fi 9162done 9163 done 9164IFS=$as_save_IFS 9165 9166 ;; 9167esac 9168fi 9169ac_pt_LLVM_BOLT=$ac_cv_path_ac_pt_LLVM_BOLT 9170if test -n "$ac_pt_LLVM_BOLT"; then 9171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_BOLT" >&5 9172printf "%s\n" "$ac_pt_LLVM_BOLT" >&6; } 9173else 9174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9175printf "%s\n" "no" >&6; } 9176fi 9177 9178 if test "x$ac_pt_LLVM_BOLT" = x; then 9179 LLVM_BOLT="''" 9180 else 9181 case $cross_compiling:$ac_tool_warned in 9182yes:) 9183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9184printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9185ac_tool_warned=yes ;; 9186esac 9187 LLVM_BOLT=$ac_pt_LLVM_BOLT 9188 fi 9189else 9190 LLVM_BOLT="$ac_cv_path_LLVM_BOLT" 9191fi 9192 9193 if test -n "${LLVM_BOLT}" -a -x "${LLVM_BOLT}" 9194 then 9195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found llvm-bolt\"" >&5 9196printf "%s\n" "\"Found llvm-bolt\"" >&6; } 9197 else 9198 as_fn_error $? "llvm-bolt is required for a --enable-bolt build but could not be found." "$LINENO" 5 9199 fi 9200 9201 9202 if test -n "$ac_tool_prefix"; then 9203 # Extract the first word of "${ac_tool_prefix}merge-fdata", so it can be a program name with args. 9204set dummy ${ac_tool_prefix}merge-fdata; ac_word=$2 9205{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9206printf %s "checking for $ac_word... " >&6; } 9207if test ${ac_cv_path_MERGE_FDATA+y} 9208then : 9209 printf %s "(cached) " >&6 9210else $as_nop 9211 case $MERGE_FDATA in 9212 [\\/]* | ?:[\\/]*) 9213 ac_cv_path_MERGE_FDATA="$MERGE_FDATA" # Let the user override the test with a path. 9214 ;; 9215 *) 9216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9217for as_dir in ${llvm_path} 9218do 9219 IFS=$as_save_IFS 9220 case $as_dir in #((( 9221 '') as_dir=./ ;; 9222 */) ;; 9223 *) as_dir=$as_dir/ ;; 9224 esac 9225 for ac_exec_ext in '' $ac_executable_extensions; do 9226 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9227 ac_cv_path_MERGE_FDATA="$as_dir$ac_word$ac_exec_ext" 9228 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9229 break 2 9230 fi 9231done 9232 done 9233IFS=$as_save_IFS 9234 9235 ;; 9236esac 9237fi 9238MERGE_FDATA=$ac_cv_path_MERGE_FDATA 9239if test -n "$MERGE_FDATA"; then 9240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MERGE_FDATA" >&5 9241printf "%s\n" "$MERGE_FDATA" >&6; } 9242else 9243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9244printf "%s\n" "no" >&6; } 9245fi 9246 9247 9248fi 9249if test -z "$ac_cv_path_MERGE_FDATA"; then 9250 ac_pt_MERGE_FDATA=$MERGE_FDATA 9251 # Extract the first word of "merge-fdata", so it can be a program name with args. 9252set dummy merge-fdata; ac_word=$2 9253{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9254printf %s "checking for $ac_word... " >&6; } 9255if test ${ac_cv_path_ac_pt_MERGE_FDATA+y} 9256then : 9257 printf %s "(cached) " >&6 9258else $as_nop 9259 case $ac_pt_MERGE_FDATA in 9260 [\\/]* | ?:[\\/]*) 9261 ac_cv_path_ac_pt_MERGE_FDATA="$ac_pt_MERGE_FDATA" # Let the user override the test with a path. 9262 ;; 9263 *) 9264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9265for as_dir in ${llvm_path} 9266do 9267 IFS=$as_save_IFS 9268 case $as_dir in #((( 9269 '') as_dir=./ ;; 9270 */) ;; 9271 *) as_dir=$as_dir/ ;; 9272 esac 9273 for ac_exec_ext in '' $ac_executable_extensions; do 9274 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 9275 ac_cv_path_ac_pt_MERGE_FDATA="$as_dir$ac_word$ac_exec_ext" 9276 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 9277 break 2 9278 fi 9279done 9280 done 9281IFS=$as_save_IFS 9282 9283 ;; 9284esac 9285fi 9286ac_pt_MERGE_FDATA=$ac_cv_path_ac_pt_MERGE_FDATA 9287if test -n "$ac_pt_MERGE_FDATA"; then 9288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MERGE_FDATA" >&5 9289printf "%s\n" "$ac_pt_MERGE_FDATA" >&6; } 9290else 9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 9292printf "%s\n" "no" >&6; } 9293fi 9294 9295 if test "x$ac_pt_MERGE_FDATA" = x; then 9296 MERGE_FDATA="''" 9297 else 9298 case $cross_compiling:$ac_tool_warned in 9299yes:) 9300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9301printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9302ac_tool_warned=yes ;; 9303esac 9304 MERGE_FDATA=$ac_pt_MERGE_FDATA 9305 fi 9306else 9307 MERGE_FDATA="$ac_cv_path_MERGE_FDATA" 9308fi 9309 9310 if test -n "${MERGE_FDATA}" -a -x "${MERGE_FDATA}" 9311 then 9312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Found merge-fdata\"" >&5 9313printf "%s\n" "\"Found merge-fdata\"" >&6; } 9314 else 9315 as_fn_error $? "merge-fdata is required for a --enable-bolt build but could not be found." "$LINENO" 5 9316 fi 9317fi 9318 9319 9320BOLT_BINARIES='$(BUILDPYTHON)' 9321if test "x$enable_shared" = xyes 9322then : 9323 9324 BOLT_BINARIES="${BOLT_BINARIES} \$(INSTSONAME)" 9325 9326fi 9327 9328 9329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_INSTRUMENT_FLAGS" >&5 9330printf %s "checking BOLT_INSTRUMENT_FLAGS... " >&6; } 9331if test -z "${BOLT_INSTRUMENT_FLAGS}" 9332then 9333 BOLT_INSTRUMENT_FLAGS= 9334fi 9335{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_INSTRUMENT_FLAGS" >&5 9336printf "%s\n" "$BOLT_INSTRUMENT_FLAGS" >&6; } 9337 9338 9339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BOLT_APPLY_FLAGS" >&5 9340printf %s "checking BOLT_APPLY_FLAGS... " >&6; } 9341if test -z "${BOLT_APPLY_FLAGS}" 9342then 9343 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 " 9344 9345fi 9346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BOLT_APPLY_FLAGS" >&5 9347printf "%s\n" "$BOLT_APPLY_FLAGS" >&6; } 9348 9349# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be 9350# merged with this chunk of code? 9351 9352# Optimizer/debugger flags 9353# ------------------------ 9354# (The following bit of code is complicated enough - please keep things 9355# indented properly. Just pretend you're editing Python code. ;-) 9356 9357# There are two parallel sets of case statements below, one that checks to 9358# see if OPT was set and one that does BASECFLAGS setting based upon 9359# compiler and platform. BASECFLAGS tweaks need to be made even if the 9360# user set OPT. 9361 9362case $CC in 9363 *clang*) 9364 cc_is_clang=1 9365 ;; 9366 *) 9367 if $CC --version 2>&1 | grep -q clang 9368 then 9369 cc_is_clang=1 9370 else 9371 cc_is_clang= 9372 fi 9373esac 9374 9375save_CFLAGS=$CFLAGS 9376CFLAGS="-fstrict-overflow -fno-strict-overflow" 9377{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fstrict-overflow and -fno-strict-overflow" >&5 9378printf %s "checking if $CC supports -fstrict-overflow and -fno-strict-overflow... " >&6; } 9379if test ${ac_cv_cc_supports_fstrict_overflow+y} 9380then : 9381 printf %s "(cached) " >&6 9382else $as_nop 9383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9384/* end confdefs.h. */ 9385 9386int 9387main (void) 9388{ 9389 9390 ; 9391 return 0; 9392} 9393_ACEOF 9394if ac_fn_c_try_compile "$LINENO" 9395then : 9396 ac_cv_cc_supports_fstrict_overflow=yes 9397else $as_nop 9398 ac_cv_cc_supports_fstrict_overflow=no 9399 9400fi 9401rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9402 9403fi 9404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_fstrict_overflow" >&5 9405printf "%s\n" "$ac_cv_cc_supports_fstrict_overflow" >&6; } 9406CFLAGS=$save_CFLAGS 9407 9408if test "x$ac_cv_cc_supports_fstrict_overflow" = xyes 9409then : 9410 STRICT_OVERFLOW_CFLAGS="-fstrict-overflow" 9411 NO_STRICT_OVERFLOW_CFLAGS="-fno-strict-overflow" 9412else $as_nop 9413 STRICT_OVERFLOW_CFLAGS="" 9414 NO_STRICT_OVERFLOW_CFLAGS="" 9415fi 9416 9417{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-strict-overflow" >&5 9418printf %s "checking for --with-strict-overflow... " >&6; } 9419 9420# Check whether --with-strict-overflow was given. 9421if test ${with_strict_overflow+y} 9422then : 9423 withval=$with_strict_overflow; 9424 if test "x$ac_cv_cc_supports_fstrict_overflow" = xno 9425then : 9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&5 9427printf "%s\n" "$as_me: WARNING: --with-strict-overflow=yes requires a compiler that supports -fstrict-overflow" >&2;} 9428fi 9429 9430else $as_nop 9431 with_strict_overflow=no 9432 9433fi 9434 9435{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_strict_overflow" >&5 9436printf "%s\n" "$with_strict_overflow" >&6; } 9437 9438# Check if CC supports -Og optimization level 9439save_CFLAGS=$CFLAGS 9440CFLAGS="-Og" 9441{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Og optimization level" >&5 9442printf %s "checking if $CC supports -Og optimization level... " >&6; } 9443if test ${ac_cv_cc_supports_og+y} 9444then : 9445 printf %s "(cached) " >&6 9446else $as_nop 9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9448/* end confdefs.h. */ 9449 9450 9451int 9452main (void) 9453{ 9454 9455 ; 9456 return 0; 9457} 9458 9459_ACEOF 9460if ac_fn_c_try_compile "$LINENO" 9461then : 9462 9463 ac_cv_cc_supports_og=yes 9464 9465else $as_nop 9466 9467 ac_cv_cc_supports_og=no 9468 9469fi 9470rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9471 9472fi 9473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_supports_og" >&5 9474printf "%s\n" "$ac_cv_cc_supports_og" >&6; } 9475CFLAGS=$save_CFLAGS 9476 9477# Optimization messes up debuggers, so turn it off for 9478# debug builds. 9479PYDEBUG_CFLAGS="-O0" 9480if test "x$ac_cv_cc_supports_og" = xyes 9481then : 9482 PYDEBUG_CFLAGS="-Og" 9483fi 9484 9485# tweak OPT based on compiler and platform, only if the user didn't set 9486# it on the command line 9487 9488 9489if test "${OPT-unset}" = "unset" 9490then 9491 case $GCC in 9492 yes) 9493 if test -n "${cc_is_clang}" 9494 then 9495 # bpo-30104: disable strict aliasing to compile correctly dtoa.c, 9496 # see Makefile.pre.in for more information 9497 CFLAGS_ALIASING="-fno-strict-aliasing" 9498 fi 9499 9500 case $ac_cv_prog_cc_g in 9501 yes) 9502 if test "$Py_DEBUG" = 'true' ; then 9503 OPT="-g $PYDEBUG_CFLAGS -Wall" 9504 else 9505 OPT="-g -O3 -Wall" 9506 fi 9507 ;; 9508 *) 9509 OPT="-O3 -Wall" 9510 ;; 9511 esac 9512 9513 case $ac_sys_system in 9514 SCO_SV*) OPT="$OPT -m486 -DSCO5" 9515 ;; 9516 esac 9517 ;; 9518 9519 *) 9520 OPT="-O" 9521 ;; 9522 esac 9523fi 9524 9525# WASM flags 9526case $ac_sys_system in #( 9527 Emscripten) : 9528 9529 if test "x$Py_DEBUG" = xyes 9530then : 9531 wasm_debug=yes 9532else $as_nop 9533 wasm_debug=no 9534fi 9535 9536 as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH -sTOTAL_MEMORY=20971520" 9537 9538 as_fn_append LDFLAGS_NODIST " -sWASM_BIGINT" 9539 9540 as_fn_append LDFLAGS_NODIST " -sFORCE_FILESYSTEM -lidbfs.js -lnodefs.js -lproxyfs.js -lworkerfs.js" 9541 9542 if test "x$enable_wasm_dynamic_linking" = xyes 9543then : 9544 9545 as_fn_append LINKFORSHARED " -sMAIN_MODULE" 9546 9547fi 9548 9549 if test "x$enable_wasm_pthreads" = xyes 9550then : 9551 9552 as_fn_append CFLAGS_NODIST " -pthread" 9553 as_fn_append LDFLAGS_NODIST " -sUSE_PTHREADS" 9554 as_fn_append LINKFORSHARED " -sPROXY_TO_PTHREAD" 9555 9556fi 9557 9558 case $ac_sys_emscripten_target in #( 9559 browser*) : 9560 9561 if test "x$ac_sys_emscripten_target" = xbrowser-debug 9562then : 9563 wasm_debug=yes 9564fi 9565 as_fn_append LINKFORSHARED " --preload-file=\$(WASM_ASSETS_DIR)" 9566 WASM_ASSETS_DIR=".\$(prefix)" 9567 WASM_STDLIB="\$(WASM_ASSETS_DIR)/local/lib/python\$(VERSION)/os.py" 9568 WASM_LINKFORSHARED_DEBUG="-gsource-map --emit-symbol-map" 9569 ;; #( 9570 node*) : 9571 9572 if test "x$ac_sys_emscripten_target" = xnode-debug 9573then : 9574 wasm_debug=yes 9575fi 9576 as_fn_append LDFLAGS_NODIST " -sALLOW_MEMORY_GROWTH -sNODERAWFS" 9577 as_fn_append LINKFORSHARED " -sEXIT_RUNTIME" 9578 WASM_LINKFORSHARED_DEBUG="-gseparate-dwarf --emit-symbol-map" 9579 9580 ;; #( 9581 *) : 9582 ;; 9583esac 9584 9585 if test "x$wasm_debug" = xyes 9586then : 9587 9588 as_fn_append LDFLAGS_NODIST " -sASSERTIONS" 9589 as_fn_append LINKFORSHARED " $WASM_LINKFORSHARED_DEBUG" 9590 9591else $as_nop 9592 9593 as_fn_append LINKFORSHARED " -O2 -g0" 9594 9595fi 9596 ;; #( 9597 WASI) : 9598 9599 9600printf "%s\n" "#define _WASI_EMULATED_SIGNAL 1" >>confdefs.h 9601 9602 9603printf "%s\n" "#define _WASI_EMULATED_GETPID 1" >>confdefs.h 9604 9605 9606printf "%s\n" "#define _WASI_EMULATED_PROCESS_CLOCKS 1" >>confdefs.h 9607 9608 LIBS="$LIBS -lwasi-emulated-signal -lwasi-emulated-getpid -lwasi-emulated-process-clocks" 9609 echo "#define _WASI_EMULATED_SIGNAL 1" >> confdefs.h 9610 9611 if test "x$enable_wasm_pthreads" = xyes 9612then : 9613 9614 # Note: update CFLAGS because ac_compile/ac_link needs this too. 9615 # without this, configure fails to find pthread_create, sem_init, 9616 # etc because they are only available in the sysroot for 9617 # wasm32-wasi-threads. 9618 # Note: wasi-threads requires --import-memory. 9619 # Note: wasi requires --export-memory. 9620 # Note: --export-memory is implicit unless --import-memory is given 9621 # Note: this requires LLVM >= 16. 9622 as_fn_append CFLAGS " -target wasm32-wasi-threads -pthread" 9623 as_fn_append CFLAGS_NODIST " -target wasm32-wasi-threads -pthread" 9624 as_fn_append LDFLAGS_NODIST " -target wasm32-wasi-threads -pthread" 9625 as_fn_append LDFLAGS_NODIST " -Wl,--import-memory" 9626 as_fn_append LDFLAGS_NODIST " -Wl,--export-memory" 9627 as_fn_append LDFLAGS_NODIST " -Wl,--max-memory=10485760" 9628 9629fi 9630 9631 as_fn_append LDFLAGS_NODIST " -z stack-size=8388608 -Wl,--stack-first -Wl,--initial-memory=20971520" 9632 9633 ;; #( 9634 *) : 9635 ;; 9636esac 9637 9638case $enable_wasm_dynamic_linking in #( 9639 yes) : 9640 ac_cv_func_dlopen=yes ;; #( 9641 no) : 9642 ac_cv_func_dlopen=no ;; #( 9643 missing) : 9644 9645 ;; #( 9646 *) : 9647 ;; 9648esac 9649 9650 9651 9652 9653 9654 9655 9656 9657# The -arch flags for universal builds on macOS 9658UNIVERSAL_ARCH_FLAGS= 9659 9660 9661 9662 9663# tweak BASECFLAGS based on compiler and platform 9664if test "x$with_strict_overflow" = xyes 9665then : 9666 BASECFLAGS="$BASECFLAGS $STRICT_OVERFLOW_CFLAGS" 9667else $as_nop 9668 BASECFLAGS="$BASECFLAGS $NO_STRICT_OVERFLOW_CFLAGS" 9669fi 9670 9671case $GCC in 9672yes) 9673 CFLAGS_NODIST="$CFLAGS_NODIST -std=c11" 9674 9675 9676 9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can add -Wextra" >&5 9678printf %s "checking if we can add -Wextra... " >&6; } 9679if test ${ac_cv_enable_extra_warning+y} 9680then : 9681 printf %s "(cached) " >&6 9682else $as_nop 9683 9684 py_cflags=$CFLAGS 9685 as_fn_append CFLAGS " -Wextra -Werror" 9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9687/* end confdefs.h. */ 9688 9689int 9690main (void) 9691{ 9692 9693 ; 9694 return 0; 9695} 9696_ACEOF 9697if ac_fn_c_try_compile "$LINENO" 9698then : 9699 ac_cv_enable_extra_warning=yes 9700else $as_nop 9701 ac_cv_enable_extra_warning=no 9702fi 9703rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9704 CFLAGS=$py_cflags 9705 9706fi 9707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_extra_warning" >&5 9708printf "%s\n" "$ac_cv_enable_extra_warning" >&6; } 9709 9710 9711 if test "x$ac_cv_enable_extra_warning" = xyes 9712then : 9713 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" 9714fi 9715 9716 # Python doesn't violate C99 aliasing rules, but older versions of 9717 # GCC produce warnings for legal Python code. Enable 9718 # -fno-strict-aliasing on versions of GCC that support but produce 9719 # warnings. See Issue3326 9720 ac_save_cc="$CC" 9721 CC="$CC -fno-strict-aliasing" 9722 save_CFLAGS="$CFLAGS" 9723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 9724printf %s "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } 9725if test ${ac_cv_no_strict_aliasing+y} 9726then : 9727 printf %s "(cached) " >&6 9728else $as_nop 9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9730/* end confdefs.h. */ 9731 9732 9733int 9734main (void) 9735{ 9736 9737 ; 9738 return 0; 9739} 9740 9741_ACEOF 9742if ac_fn_c_try_compile "$LINENO" 9743then : 9744 9745 CC="$ac_save_cc -fstrict-aliasing" 9746 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" 9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9748/* end confdefs.h. */ 9749 9750 void f(int **x) {} 9751int 9752main (void) 9753{ 9754double *x; f((int **) &x); 9755 ; 9756 return 0; 9757} 9758 9759_ACEOF 9760if ac_fn_c_try_compile "$LINENO" 9761then : 9762 9763 ac_cv_no_strict_aliasing=no 9764 9765else $as_nop 9766 9767 ac_cv_no_strict_aliasing=yes 9768 9769fi 9770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9771 9772else $as_nop 9773 9774 ac_cv_no_strict_aliasing=no 9775 9776fi 9777rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9778fi 9779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 9780printf "%s\n" "$ac_cv_no_strict_aliasing" >&6; } 9781 CFLAGS="$save_CFLAGS" 9782 CC="$ac_save_cc" 9783 if test "x$ac_cv_no_strict_aliasing" = xyes 9784then : 9785 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" 9786fi 9787 9788 # ICC doesn't recognize the option, but only emits a warning 9789 ## XXX does it emit an unused result warning and can it be disabled? 9790 case "$CC_BASENAME" in #( 9791 *icc*) : 9792 ac_cv_disable_unused_result_warning=no 9793 9794 9795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-result warning" >&5 9796printf %s "checking if we can disable $CC unused-result warning... " >&6; } 9797if test ${ac_cv_disable_unused_result_warning+y} 9798then : 9799 printf %s "(cached) " >&6 9800else $as_nop 9801 9802 py_cflags=$CFLAGS 9803 as_fn_append CFLAGS " -Wunused-result -Werror" 9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9805/* end confdefs.h. */ 9806 9807int 9808main (void) 9809{ 9810 9811 ; 9812 return 0; 9813} 9814_ACEOF 9815if ac_fn_c_try_compile "$LINENO" 9816then : 9817 ac_cv_disable_unused_result_warning=yes 9818else $as_nop 9819 ac_cv_disable_unused_result_warning=no 9820fi 9821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9822 CFLAGS=$py_cflags 9823 9824fi 9825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 9826printf "%s\n" "$ac_cv_disable_unused_result_warning" >&6; } 9827 9828 ;; #( 9829 *) : 9830 ;; 9831esac 9832 if test "x$ac_cv_disable_unused_result_warning" = xyes 9833then : 9834 BASECFLAGS="$BASECFLAGS -Wno-unused-result" 9835 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" 9836fi 9837 9838 9839 9840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC unused-parameter warning" >&5 9841printf %s "checking if we can disable $CC unused-parameter warning... " >&6; } 9842if test ${ac_cv_disable_unused_parameter_warning+y} 9843then : 9844 printf %s "(cached) " >&6 9845else $as_nop 9846 9847 py_cflags=$CFLAGS 9848 as_fn_append CFLAGS " -Wunused-parameter -Werror" 9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9850/* end confdefs.h. */ 9851 9852int 9853main (void) 9854{ 9855 9856 ; 9857 return 0; 9858} 9859_ACEOF 9860if ac_fn_c_try_compile "$LINENO" 9861then : 9862 ac_cv_disable_unused_parameter_warning=yes 9863else $as_nop 9864 ac_cv_disable_unused_parameter_warning=no 9865fi 9866rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9867 CFLAGS=$py_cflags 9868 9869fi 9870{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 9871printf "%s\n" "$ac_cv_disable_unused_parameter_warning" >&6; } 9872 9873 9874 if test "x$ac_cv_disable_unused_parameter_warning" = xyes 9875then : 9876 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" 9877fi 9878 9879 9880 9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC int-conversion warning" >&5 9882printf %s "checking if we can disable $CC int-conversion warning... " >&6; } 9883if test ${ac_cv_disable_int_conversion_warning+y} 9884then : 9885 printf %s "(cached) " >&6 9886else $as_nop 9887 9888 py_cflags=$CFLAGS 9889 as_fn_append CFLAGS " -Wint-conversion -Werror" 9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9891/* end confdefs.h. */ 9892 9893int 9894main (void) 9895{ 9896 9897 ; 9898 return 0; 9899} 9900_ACEOF 9901if ac_fn_c_try_compile "$LINENO" 9902then : 9903 ac_cv_disable_int_conversion_warning=yes 9904else $as_nop 9905 ac_cv_disable_int_conversion_warning=no 9906fi 9907rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9908 CFLAGS=$py_cflags 9909 9910fi 9911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_int_conversion_warning" >&5 9912printf "%s\n" "$ac_cv_disable_int_conversion_warning" >&6; } 9913 9914 9915 if test "x$ac_cv_disable_int_conversion" = xyes 9916then : 9917 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-int-conversion" 9918fi 9919 9920 9921 9922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can disable $CC missing-field-initializers warning" >&5 9923printf %s "checking if we can disable $CC missing-field-initializers warning... " >&6; } 9924if test ${ac_cv_disable_missing_field_initializers_warning+y} 9925then : 9926 printf %s "(cached) " >&6 9927else $as_nop 9928 9929 py_cflags=$CFLAGS 9930 as_fn_append CFLAGS " -Wmissing-field-initializers -Werror" 9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9932/* end confdefs.h. */ 9933 9934int 9935main (void) 9936{ 9937 9938 ; 9939 return 0; 9940} 9941_ACEOF 9942if ac_fn_c_try_compile "$LINENO" 9943then : 9944 ac_cv_disable_missing_field_initializers_warning=yes 9945else $as_nop 9946 ac_cv_disable_missing_field_initializers_warning=no 9947fi 9948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9949 CFLAGS=$py_cflags 9950 9951fi 9952{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers_warning" >&5 9953printf "%s\n" "$ac_cv_disable_missing_field_initializers_warning" >&6; } 9954 9955 9956 if test "x$ac_cv_disable_missing_field_initializers_warning" = xyes 9957then : 9958 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" 9959fi 9960 9961 9962 9963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC sign-compare warning" >&5 9964printf %s "checking if we can enable $CC sign-compare warning... " >&6; } 9965if test ${ac_cv_enable_sign_compare_warning+y} 9966then : 9967 printf %s "(cached) " >&6 9968else $as_nop 9969 9970 py_cflags=$CFLAGS 9971 as_fn_append CFLAGS " -Wsign-compare -Werror" 9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9973/* end confdefs.h. */ 9974 9975int 9976main (void) 9977{ 9978 9979 ; 9980 return 0; 9981} 9982_ACEOF 9983if ac_fn_c_try_compile "$LINENO" 9984then : 9985 ac_cv_enable_sign_compare_warning=yes 9986else $as_nop 9987 ac_cv_enable_sign_compare_warning=no 9988fi 9989rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 9990 CFLAGS=$py_cflags 9991 9992fi 9993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 9994printf "%s\n" "$ac_cv_enable_sign_compare_warning" >&6; } 9995 9996 9997 if test "x$ac_cv_enable_sign_compare_warning" = xyes 9998then : 9999 BASECFLAGS="$BASECFLAGS -Wsign-compare" 10000fi 10001 10002 10003 10004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC unreachable-code warning" >&5 10005printf %s "checking if we can enable $CC unreachable-code warning... " >&6; } 10006if test ${ac_cv_enable_unreachable_code_warning+y} 10007then : 10008 printf %s "(cached) " >&6 10009else $as_nop 10010 10011 py_cflags=$CFLAGS 10012 as_fn_append CFLAGS " -Wunreachable-code -Werror" 10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10014/* end confdefs.h. */ 10015 10016int 10017main (void) 10018{ 10019 10020 ; 10021 return 0; 10022} 10023_ACEOF 10024if ac_fn_c_try_compile "$LINENO" 10025then : 10026 ac_cv_enable_unreachable_code_warning=yes 10027else $as_nop 10028 ac_cv_enable_unreachable_code_warning=no 10029fi 10030rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10031 CFLAGS=$py_cflags 10032 10033fi 10034{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 10035printf "%s\n" "$ac_cv_enable_unreachable_code_warning" >&6; } 10036 10037 10038 # Don't enable unreachable code warning in debug mode, since it usually 10039 # results in non-standard code paths. 10040 # Issue #24324: Unfortunately, the unreachable code warning does not work 10041 # correctly on gcc and has been silently removed from the compiler. 10042 # It is supported on clang but on OS X systems gcc may be an alias 10043 # for clang. Try to determine if the compiler is not really gcc and, 10044 # if so, only then enable the warning. 10045 if test $ac_cv_enable_unreachable_code_warning = yes && \ 10046 test "$Py_DEBUG" != "true" && \ 10047 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" 10048 then 10049 BASECFLAGS="$BASECFLAGS -Wunreachable-code" 10050 else 10051 ac_cv_enable_unreachable_code_warning=no 10052 fi 10053 10054 10055 10056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can enable $CC strict-prototypes warning" >&5 10057printf %s "checking if we can enable $CC strict-prototypes warning... " >&6; } 10058if test ${ac_cv_enable_strict_prototypes_warning+y} 10059then : 10060 printf %s "(cached) " >&6 10061else $as_nop 10062 10063 py_cflags=$CFLAGS 10064 as_fn_append CFLAGS " -Wstrict-prototypes -Werror" 10065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10066/* end confdefs.h. */ 10067 10068int 10069main (void) 10070{ 10071 10072 ; 10073 return 0; 10074} 10075_ACEOF 10076if ac_fn_c_try_compile "$LINENO" 10077then : 10078 ac_cv_enable_strict_prototypes_warning=yes 10079else $as_nop 10080 ac_cv_enable_strict_prototypes_warning=no 10081fi 10082rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10083 CFLAGS=$py_cflags 10084 10085fi 10086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 10087printf "%s\n" "$ac_cv_enable_strict_prototypes_warning" >&6; } 10088 10089 10090 if test "x$ac_cv_enable_strict_prototypes_warning" = xyes 10091then : 10092 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" 10093fi 10094 10095 ac_save_cc="$CC" 10096 CC="$CC -Werror=implicit-function-declaration" 10097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 10098printf %s "checking if we can make implicit function declaration an error in $CC... " >&6; } 10099if test ${ac_cv_enable_implicit_function_declaration_error+y} 10100then : 10101 printf %s "(cached) " >&6 10102else $as_nop 10103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10104/* end confdefs.h. */ 10105 10106 10107int 10108main (void) 10109{ 10110 10111 ; 10112 return 0; 10113} 10114 10115_ACEOF 10116if ac_fn_c_try_compile "$LINENO" 10117then : 10118 10119 ac_cv_enable_implicit_function_declaration_error=yes 10120 10121else $as_nop 10122 10123 ac_cv_enable_implicit_function_declaration_error=no 10124 10125fi 10126rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10127fi 10128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 10129printf "%s\n" "$ac_cv_enable_implicit_function_declaration_error" >&6; } 10130 CC="$ac_save_cc" 10131 10132 if test "x$ac_cv_enable_implicit_function_declaration_error" = xyes 10133then : 10134 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" 10135fi 10136 10137 ac_save_cc="$CC" 10138 CC="$CC -fvisibility=hidden" 10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5 10140printf %s "checking if we can use visibility in $CC... " >&6; } 10141if test ${ac_cv_enable_visibility+y} 10142then : 10143 printf %s "(cached) " >&6 10144else $as_nop 10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10146/* end confdefs.h. */ 10147 10148 10149int 10150main (void) 10151{ 10152 10153 ; 10154 return 0; 10155} 10156 10157_ACEOF 10158if ac_fn_c_try_compile "$LINENO" 10159then : 10160 10161 ac_cv_enable_visibility=yes 10162 10163else $as_nop 10164 10165 ac_cv_enable_visibility=no 10166 10167fi 10168rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 10169fi 10170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5 10171printf "%s\n" "$ac_cv_enable_visibility" >&6; } 10172 CC="$ac_save_cc" 10173 10174 if test "x$ac_cv_enable_visibility" = xyes 10175then : 10176 CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden" 10177fi 10178 10179 # if using gcc on alpha, use -mieee to get (near) full IEEE 754 10180 # support. Without this, treatment of subnormals doesn't follow 10181 # the standard. 10182 case $host in 10183 alpha*) 10184 BASECFLAGS="$BASECFLAGS -mieee" 10185 ;; 10186 esac 10187 10188 case $ac_sys_system in 10189 SCO_SV*) 10190 BASECFLAGS="$BASECFLAGS -m486 -DSCO5" 10191 ;; 10192 10193 Darwin*) 10194 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd 10195 # used to be here, but non-Apple gcc doesn't accept them. 10196 if test "${CC}" = gcc 10197 then 10198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 10199printf %s "checking which compiler should be used... " >&6; } 10200 case "${UNIVERSALSDK}" in 10201 */MacOSX10.4u.sdk) 10202 # Build using 10.4 SDK, force usage of gcc when the 10203 # compiler is gcc, otherwise the user will get very 10204 # confusing error messages when building on OSX 10.6 10205 CC=gcc-4.0 10206 CPP=cpp-4.0 10207 ;; 10208 esac 10209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 10210printf "%s\n" "$CC" >&6; } 10211 fi 10212 10213 LIPO_INTEL64_FLAGS="" 10214 if test "${enable_universalsdk}" 10215 then 10216 case "$UNIVERSAL_ARCHS" in 10217 32-bit) 10218 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" 10219 LIPO_32BIT_FLAGS="" 10220 ARCH_RUN_32BIT="" 10221 ;; 10222 64-bit) 10223 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" 10224 LIPO_32BIT_FLAGS="" 10225 ARCH_RUN_32BIT="true" 10226 ;; 10227 all) 10228 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" 10229 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 10230 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 10231 ;; 10232 universal2) 10233 UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64" 10234 LIPO_32BIT_FLAGS="" 10235 LIPO_INTEL64_FLAGS="-extract x86_64" 10236 ARCH_RUN_32BIT="true" 10237 ;; 10238 intel) 10239 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" 10240 LIPO_32BIT_FLAGS="-extract i386" 10241 ARCH_RUN_32BIT="/usr/bin/arch -i386" 10242 ;; 10243 intel-32) 10244 UNIVERSAL_ARCH_FLAGS="-arch i386" 10245 LIPO_32BIT_FLAGS="" 10246 ARCH_RUN_32BIT="" 10247 ;; 10248 intel-64) 10249 UNIVERSAL_ARCH_FLAGS="-arch x86_64" 10250 LIPO_32BIT_FLAGS="" 10251 ARCH_RUN_32BIT="true" 10252 ;; 10253 3-way) 10254 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" 10255 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 10256 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 10257 ;; 10258 *) 10259 as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5 10260 ;; 10261 esac 10262 10263 if test "${UNIVERSALSDK}" != "/" 10264 then 10265 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" 10266 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" 10267 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" 10268 else 10269 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" 10270 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" 10271 fi 10272 fi 10273 10274 # Calculate an appropriate deployment target for this build: 10275 # The deployment target value is used explicitly to enable certain 10276 # features are enabled (such as builtin libedit support for readline) 10277 # through the use of Apple's Availability Macros and is used as a 10278 # component of the string returned by distutils.get_platform(). 10279 # 10280 # Use the value from: 10281 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified 10282 # 2. the operating system version of the build machine if >= 10.6 10283 # 3. If running on OS X 10.3 through 10.5, use the legacy tests 10284 # below to pick either 10.3, 10.4, or 10.5 as the target. 10285 # 4. If we are running on OS X 10.2 or earlier, good luck! 10286 10287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 10288printf %s "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } 10289 cur_target_major=`sw_vers -productVersion | \ 10290 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 10291 cur_target_minor=`sw_vers -productVersion | \ 10292 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 10293 cur_target="${cur_target_major}.${cur_target_minor}" 10294 if test ${cur_target_major} -eq 10 && \ 10295 test ${cur_target_minor} -ge 3 && \ 10296 test ${cur_target_minor} -le 5 10297 then 10298 # OS X 10.3 through 10.5 10299 cur_target=10.3 10300 if test ${enable_universalsdk} 10301 then 10302 case "$UNIVERSAL_ARCHS" in 10303 all|3-way|intel|64-bit) 10304 # These configurations were first supported in 10.5 10305 cur_target='10.5' 10306 ;; 10307 esac 10308 else 10309 if test `/usr/bin/arch` = "i386" 10310 then 10311 # 10.4 was the first release to support Intel archs 10312 cur_target="10.4" 10313 fi 10314 fi 10315 fi 10316 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} 10317 10318 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the 10319 # environment with a value that is the same as what we'll use 10320 # in the Makefile to ensure that we'll get the same compiler 10321 # environment during configure and build time. 10322 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" 10323 export MACOSX_DEPLOYMENT_TARGET 10324 EXPORT_MACOSX_DEPLOYMENT_TARGET='' 10325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 10326printf "%s\n" "$MACOSX_DEPLOYMENT_TARGET" >&6; } 10327 10328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5 10329printf %s "checking if specified universal architectures work... " >&6; } 10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10331/* end confdefs.h. */ 10332#include <stdio.h> 10333int 10334main (void) 10335{ 10336printf("%d", 42); 10337 ; 10338 return 0; 10339} 10340_ACEOF 10341if ac_fn_c_try_link "$LINENO" 10342then : 10343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10344printf "%s\n" "yes" >&6; } 10345else $as_nop 10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 10347printf "%s\n" "no" >&6; } 10348 as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5 10349 10350fi 10351rm -f core conftest.err conftest.$ac_objext conftest.beam \ 10352 conftest$ac_exeext conftest.$ac_ext 10353 10354 # end of Darwin* tests 10355 ;; 10356 esac 10357 ;; 10358 10359*) 10360 case $ac_sys_system in 10361 OpenUNIX*|UnixWare*) 10362 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " 10363 ;; 10364 SCO_SV*) 10365 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" 10366 ;; 10367 esac 10368 ;; 10369esac 10370 10371case "$CC_BASENAME" in 10372*mpicc*) 10373 CFLAGS_NODIST="$CFLAGS_NODIST" 10374 ;; 10375*icc*) 10376 # ICC needs -fp-model strict or floats behave badly 10377 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" 10378 ;; 10379*xlc*) 10380 CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1" 10381 ;; 10382esac 10383 10384if test "$assertions" = 'true'; then 10385 : 10386else 10387 OPT="-DNDEBUG $OPT" 10388fi 10389 10390if test "$ac_arch_flags" 10391then 10392 BASECFLAGS="$BASECFLAGS $ac_arch_flags" 10393fi 10394 10395# On some compilers, pthreads are available without further options 10396# (e.g. MacOS X). On some of these systems, the compiler will not 10397# complain if unaccepted options are passed (e.g. gcc on Mac OS X). 10398# So we have to see first whether pthreads are available without 10399# options before we can check whether -Kpthread improves anything. 10400{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 10401printf %s "checking whether pthreads are available without options... " >&6; } 10402if test ${ac_cv_pthread_is_default+y} 10403then : 10404 printf %s "(cached) " >&6 10405else $as_nop 10406 if test "$cross_compiling" = yes 10407then : 10408 ac_cv_pthread_is_default=no 10409else $as_nop 10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10411/* end confdefs.h. */ 10412 10413#include <stdio.h> 10414#include <pthread.h> 10415 10416void* routine(void* p){return NULL;} 10417 10418int main(void){ 10419 pthread_t p; 10420 if(pthread_create(&p,NULL,routine,NULL)!=0) 10421 return 1; 10422 (void)pthread_detach(p); 10423 return 0; 10424} 10425 10426_ACEOF 10427if ac_fn_c_try_run "$LINENO" 10428then : 10429 10430 ac_cv_pthread_is_default=yes 10431 ac_cv_kthread=no 10432 ac_cv_pthread=no 10433 10434else $as_nop 10435 ac_cv_pthread_is_default=no 10436fi 10437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10438 conftest.$ac_objext conftest.beam conftest.$ac_ext 10439fi 10440 10441 10442fi 10443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 10444printf "%s\n" "$ac_cv_pthread_is_default" >&6; } 10445 10446 10447if test $ac_cv_pthread_is_default = yes 10448then 10449 ac_cv_kpthread=no 10450else 10451# -Kpthread, if available, provides the right #defines 10452# and linker options to make pthread_create available 10453# Some compilers won't report that they do not support -Kpthread, 10454# so we need to run a program to see whether it really made the 10455# function available. 10456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 10457printf %s "checking whether $CC accepts -Kpthread... " >&6; } 10458if test ${ac_cv_kpthread+y} 10459then : 10460 printf %s "(cached) " >&6 10461else $as_nop 10462 ac_save_cc="$CC" 10463CC="$CC -Kpthread" 10464if test "$cross_compiling" = yes 10465then : 10466 ac_cv_kpthread=no 10467else $as_nop 10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10469/* end confdefs.h. */ 10470 10471#include <stdio.h> 10472#include <pthread.h> 10473 10474void* routine(void* p){return NULL;} 10475 10476int main(void){ 10477 pthread_t p; 10478 if(pthread_create(&p,NULL,routine,NULL)!=0) 10479 return 1; 10480 (void)pthread_detach(p); 10481 return 0; 10482} 10483 10484_ACEOF 10485if ac_fn_c_try_run "$LINENO" 10486then : 10487 ac_cv_kpthread=yes 10488else $as_nop 10489 ac_cv_kpthread=no 10490fi 10491rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10492 conftest.$ac_objext conftest.beam conftest.$ac_ext 10493fi 10494 10495CC="$ac_save_cc" 10496fi 10497{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 10498printf "%s\n" "$ac_cv_kpthread" >&6; } 10499fi 10500 10501if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no 10502then 10503# -Kthread, if available, provides the right #defines 10504# and linker options to make pthread_create available 10505# Some compilers won't report that they do not support -Kthread, 10506# so we need to run a program to see whether it really made the 10507# function available. 10508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 10509printf %s "checking whether $CC accepts -Kthread... " >&6; } 10510if test ${ac_cv_kthread+y} 10511then : 10512 printf %s "(cached) " >&6 10513else $as_nop 10514 ac_save_cc="$CC" 10515CC="$CC -Kthread" 10516if test "$cross_compiling" = yes 10517then : 10518 ac_cv_kthread=no 10519else $as_nop 10520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10521/* end confdefs.h. */ 10522 10523#include <stdio.h> 10524#include <pthread.h> 10525 10526void* routine(void* p){return NULL;} 10527 10528int main(void){ 10529 pthread_t p; 10530 if(pthread_create(&p,NULL,routine,NULL)!=0) 10531 return 1; 10532 (void)pthread_detach(p); 10533 return 0; 10534} 10535 10536_ACEOF 10537if ac_fn_c_try_run "$LINENO" 10538then : 10539 ac_cv_kthread=yes 10540else $as_nop 10541 ac_cv_kthread=no 10542fi 10543rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10544 conftest.$ac_objext conftest.beam conftest.$ac_ext 10545fi 10546 10547CC="$ac_save_cc" 10548fi 10549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 10550printf "%s\n" "$ac_cv_kthread" >&6; } 10551fi 10552 10553if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no 10554then 10555# -pthread, if available, provides the right #defines 10556# and linker options to make pthread_create available 10557# Some compilers won't report that they do not support -pthread, 10558# so we need to run a program to see whether it really made the 10559# function available. 10560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 10561printf %s "checking whether $CC accepts -pthread... " >&6; } 10562if test ${ac_cv_pthread+y} 10563then : 10564 printf %s "(cached) " >&6 10565else $as_nop 10566 ac_save_cc="$CC" 10567CC="$CC -pthread" 10568if test "$cross_compiling" = yes 10569then : 10570 ac_cv_pthread=no 10571else $as_nop 10572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10573/* end confdefs.h. */ 10574 10575#include <stdio.h> 10576#include <pthread.h> 10577 10578void* routine(void* p){return NULL;} 10579 10580int main(void){ 10581 pthread_t p; 10582 if(pthread_create(&p,NULL,routine,NULL)!=0) 10583 return 1; 10584 (void)pthread_detach(p); 10585 return 0; 10586} 10587 10588_ACEOF 10589if ac_fn_c_try_run "$LINENO" 10590then : 10591 ac_cv_pthread=yes 10592else $as_nop 10593 ac_cv_pthread=no 10594fi 10595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10596 conftest.$ac_objext conftest.beam conftest.$ac_ext 10597fi 10598 10599CC="$ac_save_cc" 10600fi 10601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 10602printf "%s\n" "$ac_cv_pthread" >&6; } 10603fi 10604 10605# If we have set a CC compiler flag for thread support then 10606# check if it works for CXX, too. 10607if test ! -z "$CXX" 10608then 10609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 10610printf %s "checking whether $CXX also accepts flags for thread support... " >&6; } 10611if test ${ac_cv_cxx_thread+y} 10612then : 10613 printf %s "(cached) " >&6 10614else $as_nop 10615 ac_save_cxx="$CXX" 10616 10617if test "$ac_cv_kpthread" = "yes" 10618then 10619 CXX="$CXX -Kpthread" 10620 ac_cv_cxx_thread=yes 10621elif test "$ac_cv_kthread" = "yes" 10622then 10623 CXX="$CXX -Kthread" 10624 ac_cv_cxx_thread=yes 10625elif test "$ac_cv_pthread" = "yes" 10626then 10627 CXX="$CXX -pthread" 10628 ac_cv_cxx_thread=yes 10629else 10630 ac_cv_cxx_thread=no 10631fi 10632 10633if test $ac_cv_cxx_thread = yes 10634then 10635 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext 10636 $CXX -c conftest.$ac_ext 2>&5 10637 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ 10638 && test -s conftest$ac_exeext && ./conftest$ac_exeext 10639 then 10640 ac_cv_cxx_thread=yes 10641 else 10642 ac_cv_cxx_thread=no 10643 fi 10644 rm -fr conftest* 10645fi 10646CXX="$ac_save_cxx" 10647fi 10648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 10649printf "%s\n" "$ac_cv_cxx_thread" >&6; } 10650else 10651 ac_cv_cxx_thread=no 10652fi 10653 10654 10655 10656printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 10657 10658 10659# checks for header files 10660ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default" 10661if test "x$ac_cv_header_alloca_h" = xyes 10662then : 10663 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h 10664 10665fi 10666ac_fn_c_check_header_compile "$LINENO" "asm/types.h" "ac_cv_header_asm_types_h" "$ac_includes_default" 10667if test "x$ac_cv_header_asm_types_h" = xyes 10668then : 10669 printf "%s\n" "#define HAVE_ASM_TYPES_H 1" >>confdefs.h 10670 10671fi 10672ac_fn_c_check_header_compile "$LINENO" "bluetooth.h" "ac_cv_header_bluetooth_h" "$ac_includes_default" 10673if test "x$ac_cv_header_bluetooth_h" = xyes 10674then : 10675 printf "%s\n" "#define HAVE_BLUETOOTH_H 1" >>confdefs.h 10676 10677fi 10678ac_fn_c_check_header_compile "$LINENO" "conio.h" "ac_cv_header_conio_h" "$ac_includes_default" 10679if test "x$ac_cv_header_conio_h" = xyes 10680then : 10681 printf "%s\n" "#define HAVE_CONIO_H 1" >>confdefs.h 10682 10683fi 10684ac_fn_c_check_header_compile "$LINENO" "direct.h" "ac_cv_header_direct_h" "$ac_includes_default" 10685if test "x$ac_cv_header_direct_h" = xyes 10686then : 10687 printf "%s\n" "#define HAVE_DIRECT_H 1" >>confdefs.h 10688 10689fi 10690ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" 10691if test "x$ac_cv_header_dlfcn_h" = xyes 10692then : 10693 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h 10694 10695fi 10696ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default" 10697if test "x$ac_cv_header_endian_h" = xyes 10698then : 10699 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h 10700 10701fi 10702ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" 10703if test "x$ac_cv_header_errno_h" = xyes 10704then : 10705 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h 10706 10707fi 10708ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 10709if test "x$ac_cv_header_fcntl_h" = xyes 10710then : 10711 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 10712 10713fi 10714ac_fn_c_check_header_compile "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default" 10715if test "x$ac_cv_header_grp_h" = xyes 10716then : 10717 printf "%s\n" "#define HAVE_GRP_H 1" >>confdefs.h 10718 10719fi 10720ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "$ac_includes_default" 10721if test "x$ac_cv_header_io_h" = xyes 10722then : 10723 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h 10724 10725fi 10726ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" 10727if test "x$ac_cv_header_langinfo_h" = xyes 10728then : 10729 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h 10730 10731fi 10732ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 10733if test "x$ac_cv_header_libintl_h" = xyes 10734then : 10735 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h 10736 10737fi 10738ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" 10739if test "x$ac_cv_header_libutil_h" = xyes 10740then : 10741 printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h 10742 10743fi 10744ac_fn_c_check_header_compile "$LINENO" "linux/auxvec.h" "ac_cv_header_linux_auxvec_h" "$ac_includes_default" 10745if test "x$ac_cv_header_linux_auxvec_h" = xyes 10746then : 10747 printf "%s\n" "#define HAVE_LINUX_AUXVEC_H 1" >>confdefs.h 10748 10749fi 10750ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default" 10751if test "x$ac_cv_header_sys_auxv_h" = xyes 10752then : 10753 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h 10754 10755fi 10756ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" 10757if test "x$ac_cv_header_linux_fs_h" = xyes 10758then : 10759 printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h 10760 10761fi 10762ac_fn_c_check_header_compile "$LINENO" "linux/limits.h" "ac_cv_header_linux_limits_h" "$ac_includes_default" 10763if test "x$ac_cv_header_linux_limits_h" = xyes 10764then : 10765 printf "%s\n" "#define HAVE_LINUX_LIMITS_H 1" >>confdefs.h 10766 10767fi 10768ac_fn_c_check_header_compile "$LINENO" "linux/memfd.h" "ac_cv_header_linux_memfd_h" "$ac_includes_default" 10769if test "x$ac_cv_header_linux_memfd_h" = xyes 10770then : 10771 printf "%s\n" "#define HAVE_LINUX_MEMFD_H 1" >>confdefs.h 10772 10773fi 10774ac_fn_c_check_header_compile "$LINENO" "linux/random.h" "ac_cv_header_linux_random_h" "$ac_includes_default" 10775if test "x$ac_cv_header_linux_random_h" = xyes 10776then : 10777 printf "%s\n" "#define HAVE_LINUX_RANDOM_H 1" >>confdefs.h 10778 10779fi 10780ac_fn_c_check_header_compile "$LINENO" "linux/soundcard.h" "ac_cv_header_linux_soundcard_h" "$ac_includes_default" 10781if test "x$ac_cv_header_linux_soundcard_h" = xyes 10782then : 10783 printf "%s\n" "#define HAVE_LINUX_SOUNDCARD_H 1" >>confdefs.h 10784 10785fi 10786ac_fn_c_check_header_compile "$LINENO" "linux/tipc.h" "ac_cv_header_linux_tipc_h" "$ac_includes_default" 10787if test "x$ac_cv_header_linux_tipc_h" = xyes 10788then : 10789 printf "%s\n" "#define HAVE_LINUX_TIPC_H 1" >>confdefs.h 10790 10791fi 10792ac_fn_c_check_header_compile "$LINENO" "linux/wait.h" "ac_cv_header_linux_wait_h" "$ac_includes_default" 10793if test "x$ac_cv_header_linux_wait_h" = xyes 10794then : 10795 printf "%s\n" "#define HAVE_LINUX_WAIT_H 1" >>confdefs.h 10796 10797fi 10798ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default" 10799if test "x$ac_cv_header_netdb_h" = xyes 10800then : 10801 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h 10802 10803fi 10804ac_fn_c_check_header_compile "$LINENO" "net/ethernet.h" "ac_cv_header_net_ethernet_h" "$ac_includes_default" 10805if test "x$ac_cv_header_net_ethernet_h" = xyes 10806then : 10807 printf "%s\n" "#define HAVE_NET_ETHERNET_H 1" >>confdefs.h 10808 10809fi 10810ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 10811if test "x$ac_cv_header_netinet_in_h" = xyes 10812then : 10813 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h 10814 10815fi 10816ac_fn_c_check_header_compile "$LINENO" "netpacket/packet.h" "ac_cv_header_netpacket_packet_h" "$ac_includes_default" 10817if test "x$ac_cv_header_netpacket_packet_h" = xyes 10818then : 10819 printf "%s\n" "#define HAVE_NETPACKET_PACKET_H 1" >>confdefs.h 10820 10821fi 10822ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default" 10823if test "x$ac_cv_header_poll_h" = xyes 10824then : 10825 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h 10826 10827fi 10828ac_fn_c_check_header_compile "$LINENO" "process.h" "ac_cv_header_process_h" "$ac_includes_default" 10829if test "x$ac_cv_header_process_h" = xyes 10830then : 10831 printf "%s\n" "#define HAVE_PROCESS_H 1" >>confdefs.h 10832 10833fi 10834ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 10835if test "x$ac_cv_header_pthread_h" = xyes 10836then : 10837 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h 10838 10839fi 10840ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" 10841if test "x$ac_cv_header_pty_h" = xyes 10842then : 10843 printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h 10844 10845fi 10846ac_fn_c_check_header_compile "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default" 10847if test "x$ac_cv_header_sched_h" = xyes 10848then : 10849 printf "%s\n" "#define HAVE_SCHED_H 1" >>confdefs.h 10850 10851fi 10852ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default" 10853if test "x$ac_cv_header_setjmp_h" = xyes 10854then : 10855 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h 10856 10857fi 10858ac_fn_c_check_header_compile "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" 10859if test "x$ac_cv_header_shadow_h" = xyes 10860then : 10861 printf "%s\n" "#define HAVE_SHADOW_H 1" >>confdefs.h 10862 10863fi 10864ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 10865if test "x$ac_cv_header_signal_h" = xyes 10866then : 10867 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 10868 10869fi 10870ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default" 10871if test "x$ac_cv_header_spawn_h" = xyes 10872then : 10873 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h 10874 10875fi 10876ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" 10877if test "x$ac_cv_header_stropts_h" = xyes 10878then : 10879 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h 10880 10881fi 10882ac_fn_c_check_header_compile "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default" 10883if test "x$ac_cv_header_sys_audioio_h" = xyes 10884then : 10885 printf "%s\n" "#define HAVE_SYS_AUDIOIO_H 1" >>confdefs.h 10886 10887fi 10888ac_fn_c_check_header_compile "$LINENO" "sys/bsdtty.h" "ac_cv_header_sys_bsdtty_h" "$ac_includes_default" 10889if test "x$ac_cv_header_sys_bsdtty_h" = xyes 10890then : 10891 printf "%s\n" "#define HAVE_SYS_BSDTTY_H 1" >>confdefs.h 10892 10893fi 10894ac_fn_c_check_header_compile "$LINENO" "sys/devpoll.h" "ac_cv_header_sys_devpoll_h" "$ac_includes_default" 10895if test "x$ac_cv_header_sys_devpoll_h" = xyes 10896then : 10897 printf "%s\n" "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h 10898 10899fi 10900ac_fn_c_check_header_compile "$LINENO" "sys/endian.h" "ac_cv_header_sys_endian_h" "$ac_includes_default" 10901if test "x$ac_cv_header_sys_endian_h" = xyes 10902then : 10903 printf "%s\n" "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h 10904 10905fi 10906ac_fn_c_check_header_compile "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default" 10907if test "x$ac_cv_header_sys_epoll_h" = xyes 10908then : 10909 printf "%s\n" "#define HAVE_SYS_EPOLL_H 1" >>confdefs.h 10910 10911fi 10912ac_fn_c_check_header_compile "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default" 10913if test "x$ac_cv_header_sys_event_h" = xyes 10914then : 10915 printf "%s\n" "#define HAVE_SYS_EVENT_H 1" >>confdefs.h 10916 10917fi 10918ac_fn_c_check_header_compile "$LINENO" "sys/eventfd.h" "ac_cv_header_sys_eventfd_h" "$ac_includes_default" 10919if test "x$ac_cv_header_sys_eventfd_h" = xyes 10920then : 10921 printf "%s\n" "#define HAVE_SYS_EVENTFD_H 1" >>confdefs.h 10922 10923fi 10924ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default" 10925if test "x$ac_cv_header_sys_file_h" = xyes 10926then : 10927 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h 10928 10929fi 10930ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 10931if test "x$ac_cv_header_sys_ioctl_h" = xyes 10932then : 10933 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h 10934 10935fi 10936ac_fn_c_check_header_compile "$LINENO" "sys/kern_control.h" "ac_cv_header_sys_kern_control_h" "$ac_includes_default" 10937if test "x$ac_cv_header_sys_kern_control_h" = xyes 10938then : 10939 printf "%s\n" "#define HAVE_SYS_KERN_CONTROL_H 1" >>confdefs.h 10940 10941fi 10942ac_fn_c_check_header_compile "$LINENO" "sys/loadavg.h" "ac_cv_header_sys_loadavg_h" "$ac_includes_default" 10943if test "x$ac_cv_header_sys_loadavg_h" = xyes 10944then : 10945 printf "%s\n" "#define HAVE_SYS_LOADAVG_H 1" >>confdefs.h 10946 10947fi 10948ac_fn_c_check_header_compile "$LINENO" "sys/lock.h" "ac_cv_header_sys_lock_h" "$ac_includes_default" 10949if test "x$ac_cv_header_sys_lock_h" = xyes 10950then : 10951 printf "%s\n" "#define HAVE_SYS_LOCK_H 1" >>confdefs.h 10952 10953fi 10954ac_fn_c_check_header_compile "$LINENO" "sys/memfd.h" "ac_cv_header_sys_memfd_h" "$ac_includes_default" 10955if test "x$ac_cv_header_sys_memfd_h" = xyes 10956then : 10957 printf "%s\n" "#define HAVE_SYS_MEMFD_H 1" >>confdefs.h 10958 10959fi 10960ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 10961if test "x$ac_cv_header_sys_mkdev_h" = xyes 10962then : 10963 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h 10964 10965fi 10966ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 10967if test "x$ac_cv_header_sys_mman_h" = xyes 10968then : 10969 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h 10970 10971fi 10972ac_fn_c_check_header_compile "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default" 10973if test "x$ac_cv_header_sys_modem_h" = xyes 10974then : 10975 printf "%s\n" "#define HAVE_SYS_MODEM_H 1" >>confdefs.h 10976 10977fi 10978ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 10979if test "x$ac_cv_header_sys_param_h" = xyes 10980then : 10981 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h 10982 10983fi 10984ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default" 10985if test "x$ac_cv_header_sys_poll_h" = xyes 10986then : 10987 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h 10988 10989fi 10990ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default" 10991if test "x$ac_cv_header_sys_random_h" = xyes 10992then : 10993 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h 10994 10995fi 10996ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default" 10997if test "x$ac_cv_header_sys_resource_h" = xyes 10998then : 10999 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h 11000 11001fi 11002ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" 11003if test "x$ac_cv_header_sys_select_h" = xyes 11004then : 11005 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h 11006 11007fi 11008ac_fn_c_check_header_compile "$LINENO" "sys/sendfile.h" "ac_cv_header_sys_sendfile_h" "$ac_includes_default" 11009if test "x$ac_cv_header_sys_sendfile_h" = xyes 11010then : 11011 printf "%s\n" "#define HAVE_SYS_SENDFILE_H 1" >>confdefs.h 11012 11013fi 11014ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 11015if test "x$ac_cv_header_sys_socket_h" = xyes 11016then : 11017 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h 11018 11019fi 11020ac_fn_c_check_header_compile "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default" 11021if test "x$ac_cv_header_sys_soundcard_h" = xyes 11022then : 11023 printf "%s\n" "#define HAVE_SYS_SOUNDCARD_H 1" >>confdefs.h 11024 11025fi 11026ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" 11027if test "x$ac_cv_header_sys_stat_h" = xyes 11028then : 11029 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h 11030 11031fi 11032ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" 11033if test "x$ac_cv_header_sys_statvfs_h" = xyes 11034then : 11035 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h 11036 11037fi 11038ac_fn_c_check_header_compile "$LINENO" "sys/sys_domain.h" "ac_cv_header_sys_sys_domain_h" "$ac_includes_default" 11039if test "x$ac_cv_header_sys_sys_domain_h" = xyes 11040then : 11041 printf "%s\n" "#define HAVE_SYS_SYS_DOMAIN_H 1" >>confdefs.h 11042 11043fi 11044ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default" 11045if test "x$ac_cv_header_sys_syscall_h" = xyes 11046then : 11047 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h 11048 11049fi 11050ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 11051if test "x$ac_cv_header_sys_sysmacros_h" = xyes 11052then : 11053 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h 11054 11055fi 11056ac_fn_c_check_header_compile "$LINENO" "sys/termio.h" "ac_cv_header_sys_termio_h" "$ac_includes_default" 11057if test "x$ac_cv_header_sys_termio_h" = xyes 11058then : 11059 printf "%s\n" "#define HAVE_SYS_TERMIO_H 1" >>confdefs.h 11060 11061fi 11062ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" 11063if test "x$ac_cv_header_sys_time_h" = xyes 11064then : 11065 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h 11066 11067fi 11068ac_fn_c_check_header_compile "$LINENO" "sys/times.h" "ac_cv_header_sys_times_h" "$ac_includes_default" 11069if test "x$ac_cv_header_sys_times_h" = xyes 11070then : 11071 printf "%s\n" "#define HAVE_SYS_TIMES_H 1" >>confdefs.h 11072 11073fi 11074ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" 11075if test "x$ac_cv_header_sys_timerfd_h" = xyes 11076then : 11077 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h 11078 11079fi 11080ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 11081if test "x$ac_cv_header_sys_types_h" = xyes 11082then : 11083 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h 11084 11085fi 11086ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default" 11087if test "x$ac_cv_header_sys_uio_h" = xyes 11088then : 11089 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h 11090 11091fi 11092ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 11093if test "x$ac_cv_header_sys_un_h" = xyes 11094then : 11095 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h 11096 11097fi 11098ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default" 11099if test "x$ac_cv_header_sys_utsname_h" = xyes 11100then : 11101 printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h 11102 11103fi 11104ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 11105if test "x$ac_cv_header_sys_wait_h" = xyes 11106then : 11107 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 11108 11109fi 11110ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default" 11111if test "x$ac_cv_header_sys_xattr_h" = xyes 11112then : 11113 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h 11114 11115fi 11116ac_fn_c_check_header_compile "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default" 11117if test "x$ac_cv_header_sysexits_h" = xyes 11118then : 11119 printf "%s\n" "#define HAVE_SYSEXITS_H 1" >>confdefs.h 11120 11121fi 11122ac_fn_c_check_header_compile "$LINENO" "syslog.h" "ac_cv_header_syslog_h" "$ac_includes_default" 11123if test "x$ac_cv_header_syslog_h" = xyes 11124then : 11125 printf "%s\n" "#define HAVE_SYSLOG_H 1" >>confdefs.h 11126 11127fi 11128ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" 11129if test "x$ac_cv_header_termios_h" = xyes 11130then : 11131 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h 11132 11133fi 11134ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" 11135if test "x$ac_cv_header_util_h" = xyes 11136then : 11137 printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h 11138 11139fi 11140ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" 11141if test "x$ac_cv_header_utime_h" = xyes 11142then : 11143 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h 11144 11145fi 11146ac_fn_c_check_header_compile "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default" 11147if test "x$ac_cv_header_utmp_h" = xyes 11148then : 11149 printf "%s\n" "#define HAVE_UTMP_H 1" >>confdefs.h 11150 11151fi 11152 11153ac_header_dirent=no 11154for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 11155 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 11156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 11157printf %s "checking for $ac_hdr that defines DIR... " >&6; } 11158if eval test \${$as_ac_Header+y} 11159then : 11160 printf %s "(cached) " >&6 11161else $as_nop 11162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11163/* end confdefs.h. */ 11164#include <sys/types.h> 11165#include <$ac_hdr> 11166 11167int 11168main (void) 11169{ 11170if ((DIR *) 0) 11171return 0; 11172 ; 11173 return 0; 11174} 11175_ACEOF 11176if ac_fn_c_try_compile "$LINENO" 11177then : 11178 eval "$as_ac_Header=yes" 11179else $as_nop 11180 eval "$as_ac_Header=no" 11181fi 11182rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11183fi 11184eval ac_res=\$$as_ac_Header 11185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11186printf "%s\n" "$ac_res" >&6; } 11187if eval test \"x\$"$as_ac_Header"\" = x"yes" 11188then : 11189 cat >>confdefs.h <<_ACEOF 11190#define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1 11191_ACEOF 11192 11193ac_header_dirent=$ac_hdr; break 11194fi 11195 11196done 11197# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 11198if test $ac_header_dirent = dirent.h; then 11199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 11200printf %s "checking for library containing opendir... " >&6; } 11201if test ${ac_cv_search_opendir+y} 11202then : 11203 printf %s "(cached) " >&6 11204else $as_nop 11205 ac_func_search_save_LIBS=$LIBS 11206cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11207/* end confdefs.h. */ 11208 11209/* Override any GCC internal prototype to avoid an error. 11210 Use char because int might match the return type of a GCC 11211 builtin and then its argument prototype would still apply. */ 11212char opendir (); 11213int 11214main (void) 11215{ 11216return opendir (); 11217 ; 11218 return 0; 11219} 11220_ACEOF 11221for ac_lib in '' dir 11222do 11223 if test -z "$ac_lib"; then 11224 ac_res="none required" 11225 else 11226 ac_res=-l$ac_lib 11227 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11228 fi 11229 if ac_fn_c_try_link "$LINENO" 11230then : 11231 ac_cv_search_opendir=$ac_res 11232fi 11233rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11234 conftest$ac_exeext 11235 if test ${ac_cv_search_opendir+y} 11236then : 11237 break 11238fi 11239done 11240if test ${ac_cv_search_opendir+y} 11241then : 11242 11243else $as_nop 11244 ac_cv_search_opendir=no 11245fi 11246rm conftest.$ac_ext 11247LIBS=$ac_func_search_save_LIBS 11248fi 11249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11250printf "%s\n" "$ac_cv_search_opendir" >&6; } 11251ac_res=$ac_cv_search_opendir 11252if test "$ac_res" != no 11253then : 11254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11255 11256fi 11257 11258else 11259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 11260printf %s "checking for library containing opendir... " >&6; } 11261if test ${ac_cv_search_opendir+y} 11262then : 11263 printf %s "(cached) " >&6 11264else $as_nop 11265 ac_func_search_save_LIBS=$LIBS 11266cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11267/* end confdefs.h. */ 11268 11269/* Override any GCC internal prototype to avoid an error. 11270 Use char because int might match the return type of a GCC 11271 builtin and then its argument prototype would still apply. */ 11272char opendir (); 11273int 11274main (void) 11275{ 11276return opendir (); 11277 ; 11278 return 0; 11279} 11280_ACEOF 11281for ac_lib in '' x 11282do 11283 if test -z "$ac_lib"; then 11284 ac_res="none required" 11285 else 11286 ac_res=-l$ac_lib 11287 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11288 fi 11289 if ac_fn_c_try_link "$LINENO" 11290then : 11291 ac_cv_search_opendir=$ac_res 11292fi 11293rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11294 conftest$ac_exeext 11295 if test ${ac_cv_search_opendir+y} 11296then : 11297 break 11298fi 11299done 11300if test ${ac_cv_search_opendir+y} 11301then : 11302 11303else $as_nop 11304 ac_cv_search_opendir=no 11305fi 11306rm conftest.$ac_ext 11307LIBS=$ac_func_search_save_LIBS 11308fi 11309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11310printf "%s\n" "$ac_cv_search_opendir" >&6; } 11311ac_res=$ac_cv_search_opendir 11312if test "$ac_res" != no 11313then : 11314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11315 11316fi 11317 11318fi 11319 11320 11321ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 11322if test "x$ac_cv_header_sys_mkdev_h" = xyes 11323then : 11324 11325printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h 11326 11327fi 11328 11329if test $ac_cv_header_sys_mkdev_h = no; then 11330 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 11331if test "x$ac_cv_header_sys_sysmacros_h" = xyes 11332then : 11333 11334printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 11335 11336fi 11337 11338fi 11339 11340 11341# bluetooth/bluetooth.h has been known to not compile with -std=c99. 11342# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 11343SAVE_CFLAGS=$CFLAGS 11344CFLAGS="-std=c99 $CFLAGS" 11345ac_fn_c_check_header_compile "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" 11346if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes 11347then : 11348 printf "%s\n" "#define HAVE_BLUETOOTH_BLUETOOTH_H 1" >>confdefs.h 11349 11350fi 11351 11352CFLAGS=$SAVE_CFLAGS 11353 11354# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. 11355ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> 11356#include <stdlib.h> 11357#include <stddef.h> 11358#ifdef HAVE_SYS_SOCKET_H 11359# include <sys/socket.h> 11360#endif 11361 11362" 11363if test "x$ac_cv_header_net_if_h" = xyes 11364then : 11365 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h 11366 11367fi 11368 11369 11370# On Linux, netlink.h requires asm/types.h 11371# On FreeBSD, netlink.h is located in netlink/netlink.h 11372ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 11373#ifdef HAVE_ASM_TYPES_H 11374#include <asm/types.h> 11375#endif 11376#ifdef HAVE_SYS_SOCKET_H 11377#include <sys/socket.h> 11378#endif 11379 11380" 11381if test "x$ac_cv_header_linux_netlink_h" = xyes 11382then : 11383 printf "%s\n" "#define HAVE_LINUX_NETLINK_H 1" >>confdefs.h 11384 11385fi 11386ac_fn_c_check_header_compile "$LINENO" "netlink/netlink.h" "ac_cv_header_netlink_netlink_h" " 11387#ifdef HAVE_ASM_TYPES_H 11388#include <asm/types.h> 11389#endif 11390#ifdef HAVE_SYS_SOCKET_H 11391#include <sys/socket.h> 11392#endif 11393 11394" 11395if test "x$ac_cv_header_netlink_netlink_h" = xyes 11396then : 11397 printf "%s\n" "#define HAVE_NETLINK_NETLINK_H 1" >>confdefs.h 11398 11399fi 11400 11401 11402# On Linux, qrtr.h requires asm/types.h 11403ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" " 11404#ifdef HAVE_ASM_TYPES_H 11405#include <asm/types.h> 11406#endif 11407#ifdef HAVE_SYS_SOCKET_H 11408#include <sys/socket.h> 11409#endif 11410 11411" 11412if test "x$ac_cv_header_linux_qrtr_h" = xyes 11413then : 11414 printf "%s\n" "#define HAVE_LINUX_QRTR_H 1" >>confdefs.h 11415 11416fi 11417 11418 11419ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " 11420#ifdef HAVE_SYS_SOCKET_H 11421#include <sys/socket.h> 11422#endif 11423 11424" 11425if test "x$ac_cv_header_linux_vm_sockets_h" = xyes 11426then : 11427 printf "%s\n" "#define HAVE_LINUX_VM_SOCKETS_H 1" >>confdefs.h 11428 11429fi 11430 11431 11432# On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h 11433# On NetBSD, netcan/can.h requires sys/socket.h 11434ac_fn_c_check_header_compile "$LINENO" "linux/can.h" "ac_cv_header_linux_can_h" " 11435#ifdef HAVE_SYS_SOCKET_H 11436#include <sys/socket.h> 11437#endif 11438 11439" 11440if test "x$ac_cv_header_linux_can_h" = xyes 11441then : 11442 printf "%s\n" "#define HAVE_LINUX_CAN_H 1" >>confdefs.h 11443 11444fi 11445ac_fn_c_check_header_compile "$LINENO" "linux/can/bcm.h" "ac_cv_header_linux_can_bcm_h" " 11446#ifdef HAVE_SYS_SOCKET_H 11447#include <sys/socket.h> 11448#endif 11449 11450" 11451if test "x$ac_cv_header_linux_can_bcm_h" = xyes 11452then : 11453 printf "%s\n" "#define HAVE_LINUX_CAN_BCM_H 1" >>confdefs.h 11454 11455fi 11456ac_fn_c_check_header_compile "$LINENO" "linux/can/j1939.h" "ac_cv_header_linux_can_j1939_h" " 11457#ifdef HAVE_SYS_SOCKET_H 11458#include <sys/socket.h> 11459#endif 11460 11461" 11462if test "x$ac_cv_header_linux_can_j1939_h" = xyes 11463then : 11464 printf "%s\n" "#define HAVE_LINUX_CAN_J1939_H 1" >>confdefs.h 11465 11466fi 11467ac_fn_c_check_header_compile "$LINENO" "linux/can/raw.h" "ac_cv_header_linux_can_raw_h" " 11468#ifdef HAVE_SYS_SOCKET_H 11469#include <sys/socket.h> 11470#endif 11471 11472" 11473if test "x$ac_cv_header_linux_can_raw_h" = xyes 11474then : 11475 printf "%s\n" "#define HAVE_LINUX_CAN_RAW_H 1" >>confdefs.h 11476 11477fi 11478ac_fn_c_check_header_compile "$LINENO" "netcan/can.h" "ac_cv_header_netcan_can_h" " 11479#ifdef HAVE_SYS_SOCKET_H 11480#include <sys/socket.h> 11481#endif 11482 11483" 11484if test "x$ac_cv_header_netcan_can_h" = xyes 11485then : 11486 printf "%s\n" "#define HAVE_NETCAN_CAN_H 1" >>confdefs.h 11487 11488fi 11489 11490 11491# Check for clock_t in time.h. 11492ac_fn_c_check_type "$LINENO" "clock_t" "ac_cv_type_clock_t" "#include <time.h> 11493" 11494if test "x$ac_cv_type_clock_t" = xyes 11495then : 11496 11497printf "%s\n" "#define HAVE_CLOCK_T 1" >>confdefs.h 11498 11499 11500else $as_nop 11501 11502printf "%s\n" "#define clock_t long" >>confdefs.h 11503 11504fi 11505 11506 11507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 11508printf %s "checking for makedev... " >&6; } 11509if test ${ac_cv_func_makedev+y} 11510then : 11511 printf %s "(cached) " >&6 11512else $as_nop 11513 11514cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11515/* end confdefs.h. */ 11516 11517#if defined(MAJOR_IN_MKDEV) 11518#include <sys/mkdev.h> 11519#elif defined(MAJOR_IN_SYSMACROS) 11520#include <sys/sysmacros.h> 11521#else 11522#include <sys/types.h> 11523#endif 11524 11525int 11526main (void) 11527{ 11528 11529 makedev(0, 0) 11530 ; 11531 return 0; 11532} 11533 11534_ACEOF 11535if ac_fn_c_try_link "$LINENO" 11536then : 11537 ac_cv_func_makedev=yes 11538else $as_nop 11539 ac_cv_func_makedev=no 11540fi 11541rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11542 conftest$ac_exeext conftest.$ac_ext 11543 11544fi 11545{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_makedev" >&5 11546printf "%s\n" "$ac_cv_func_makedev" >&6; } 11547 11548if test "x$ac_cv_func_makedev" = xyes 11549then : 11550 11551 11552printf "%s\n" "#define HAVE_MAKEDEV 1" >>confdefs.h 11553 11554 11555fi 11556 11557# byte swapping 11558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 11559printf %s "checking for le64toh... " >&6; } 11560if test ${ac_cv_func_le64toh+y} 11561then : 11562 printf %s "(cached) " >&6 11563else $as_nop 11564 11565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11566/* end confdefs.h. */ 11567 11568#ifdef HAVE_ENDIAN_H 11569#include <endian.h> 11570#elif defined(HAVE_SYS_ENDIAN_H) 11571#include <sys/endian.h> 11572#endif 11573 11574int 11575main (void) 11576{ 11577 11578 le64toh(1) 11579 ; 11580 return 0; 11581} 11582 11583_ACEOF 11584if ac_fn_c_try_link "$LINENO" 11585then : 11586 ac_cv_func_le64toh=yes 11587else $as_nop 11588 ac_cv_func_le64toh=no 11589fi 11590rm -f core conftest.err conftest.$ac_objext conftest.beam \ 11591 conftest$ac_exeext conftest.$ac_ext 11592 11593fi 11594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_le64toh" >&5 11595printf "%s\n" "$ac_cv_func_le64toh" >&6; } 11596 11597if test "x$ac_cv_func_le64toh" = xyes 11598then : 11599 11600 11601printf "%s\n" "#define HAVE_HTOLE64 1" >>confdefs.h 11602 11603 11604fi 11605 11606use_lfs=yes 11607# Don't use largefile support for GNU/Hurd 11608case $ac_sys_system in GNU*) 11609 use_lfs=no 11610esac 11611 11612if test "$use_lfs" = "yes"; then 11613# Two defines needed to enable largefile support on various platforms 11614# These may affect some typedefs 11615case $ac_sys_system/$ac_sys_release in 11616AIX*) 11617 11618printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h 11619 11620 ;; 11621esac 11622 11623printf "%s\n" "#define _LARGEFILE_SOURCE 1" >>confdefs.h 11624 11625 11626printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h 11627 11628fi 11629 11630# Add some code to confdefs.h so that the test for off_t works on SCO 11631cat >> confdefs.h <<\EOF 11632#if defined(SCO_DS) 11633#undef _OFF_T 11634#endif 11635EOF 11636 11637# Type availability checks 11638ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 11639if test "x$ac_cv_type_mode_t" = xyes 11640then : 11641 11642else $as_nop 11643 11644printf "%s\n" "#define mode_t int" >>confdefs.h 11645 11646fi 11647 11648ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 11649if test "x$ac_cv_type_off_t" = xyes 11650then : 11651 11652else $as_nop 11653 11654printf "%s\n" "#define off_t long int" >>confdefs.h 11655 11656fi 11657 11658 11659 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 11660" 11661if test "x$ac_cv_type_pid_t" = xyes 11662then : 11663 11664else $as_nop 11665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11666/* end confdefs.h. */ 11667 11668 #if defined _WIN64 && !defined __CYGWIN__ 11669 LLP64 11670 #endif 11671 11672int 11673main (void) 11674{ 11675 11676 ; 11677 return 0; 11678} 11679 11680_ACEOF 11681if ac_fn_c_try_compile "$LINENO" 11682then : 11683 ac_pid_type='int' 11684else $as_nop 11685 ac_pid_type='__int64' 11686fi 11687rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 11688 11689printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 11690 11691 11692fi 11693 11694 11695 11696printf "%s\n" "#define RETSIGTYPE void" >>confdefs.h 11697 11698ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 11699if test "x$ac_cv_type_size_t" = xyes 11700then : 11701 11702else $as_nop 11703 11704printf "%s\n" "#define size_t unsigned int" >>confdefs.h 11705 11706fi 11707 11708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 11709printf %s "checking for uid_t in sys/types.h... " >&6; } 11710if test ${ac_cv_type_uid_t+y} 11711then : 11712 printf %s "(cached) " >&6 11713else $as_nop 11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11715/* end confdefs.h. */ 11716#include <sys/types.h> 11717 11718_ACEOF 11719if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11720 $EGREP "uid_t" >/dev/null 2>&1 11721then : 11722 ac_cv_type_uid_t=yes 11723else $as_nop 11724 ac_cv_type_uid_t=no 11725fi 11726rm -rf conftest* 11727 11728fi 11729{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 11730printf "%s\n" "$ac_cv_type_uid_t" >&6; } 11731if test $ac_cv_type_uid_t = no; then 11732 11733printf "%s\n" "#define uid_t int" >>confdefs.h 11734 11735 11736printf "%s\n" "#define gid_t int" >>confdefs.h 11737 11738fi 11739 11740 11741ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 11742if test "x$ac_cv_type_ssize_t" = xyes 11743then : 11744 11745printf "%s\n" "#define HAVE_SSIZE_T 1" >>confdefs.h 11746 11747 11748fi 11749 11750ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" 11751if test "x$ac_cv_type___uint128_t" = xyes 11752then : 11753 11754printf "%s\n" "#define HAVE___UINT128_T 1" >>confdefs.h 11755 11756 11757printf "%s\n" "#define HAVE_GCC_UINT128_T 1" >>confdefs.h 11758 11759fi 11760 11761 11762# Sizes and alignments of various common basic types 11763# ANSI C requires sizeof(char) == 1, so no need to check it 11764# The cast to long int works around a bug in the HP C Compiler 11765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11767# This bug is HP SR number 8606223364. 11768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 11769printf %s "checking size of int... " >&6; } 11770if test ${ac_cv_sizeof_int+y} 11771then : 11772 printf %s "(cached) " >&6 11773else $as_nop 11774 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" 11775then : 11776 11777else $as_nop 11778 if test "$ac_cv_type_int" = yes; then 11779 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11780printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11781as_fn_error 77 "cannot compute sizeof (int) 11782See \`config.log' for more details" "$LINENO" 5; } 11783 else 11784 ac_cv_sizeof_int=0 11785 fi 11786fi 11787 11788fi 11789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 11790printf "%s\n" "$ac_cv_sizeof_int" >&6; } 11791 11792 11793 11794printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h 11795 11796 11797# The cast to long int works around a bug in the HP C Compiler 11798# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11799# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11800# This bug is HP SR number 8606223364. 11801{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 11802printf %s "checking size of long... " >&6; } 11803if test ${ac_cv_sizeof_long+y} 11804then : 11805 printf %s "(cached) " >&6 11806else $as_nop 11807 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" 11808then : 11809 11810else $as_nop 11811 if test "$ac_cv_type_long" = yes; then 11812 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11813printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11814as_fn_error 77 "cannot compute sizeof (long) 11815See \`config.log' for more details" "$LINENO" 5; } 11816 else 11817 ac_cv_sizeof_long=0 11818 fi 11819fi 11820 11821fi 11822{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 11823printf "%s\n" "$ac_cv_sizeof_long" >&6; } 11824 11825 11826 11827printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h 11828 11829 11830# The cast to long int works around a bug in the HP C Compiler, 11831# see AC_CHECK_SIZEOF for more information. 11832{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of long" >&5 11833printf %s "checking alignment of long... " >&6; } 11834if test ${ac_cv_alignof_long+y} 11835then : 11836 printf %s "(cached) " >&6 11837else $as_nop 11838 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_long" "$ac_includes_default 11839typedef struct { char x; long y; } ac__type_alignof_;" 11840then : 11841 11842else $as_nop 11843 if test "$ac_cv_type_long" = yes; then 11844 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11845printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11846as_fn_error 77 "cannot compute alignment of long 11847See \`config.log' for more details" "$LINENO" 5; } 11848 else 11849 ac_cv_alignof_long=0 11850 fi 11851fi 11852 11853fi 11854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_long" >&5 11855printf "%s\n" "$ac_cv_alignof_long" >&6; } 11856 11857 11858 11859printf "%s\n" "#define ALIGNOF_LONG $ac_cv_alignof_long" >>confdefs.h 11860 11861 11862# The cast to long int works around a bug in the HP C Compiler 11863# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11864# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11865# This bug is HP SR number 8606223364. 11866{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 11867printf %s "checking size of long long... " >&6; } 11868if test ${ac_cv_sizeof_long_long+y} 11869then : 11870 printf %s "(cached) " >&6 11871else $as_nop 11872 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default" 11873then : 11874 11875else $as_nop 11876 if test "$ac_cv_type_long_long" = yes; then 11877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11878printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11879as_fn_error 77 "cannot compute sizeof (long long) 11880See \`config.log' for more details" "$LINENO" 5; } 11881 else 11882 ac_cv_sizeof_long_long=0 11883 fi 11884fi 11885 11886fi 11887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 11888printf "%s\n" "$ac_cv_sizeof_long_long" >&6; } 11889 11890 11891 11892printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h 11893 11894 11895# The cast to long int works around a bug in the HP C Compiler 11896# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11897# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11898# This bug is HP SR number 8606223364. 11899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 11900printf %s "checking size of void *... " >&6; } 11901if test ${ac_cv_sizeof_void_p+y} 11902then : 11903 printf %s "(cached) " >&6 11904else $as_nop 11905 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default" 11906then : 11907 11908else $as_nop 11909 if test "$ac_cv_type_void_p" = yes; then 11910 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11911printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11912as_fn_error 77 "cannot compute sizeof (void *) 11913See \`config.log' for more details" "$LINENO" 5; } 11914 else 11915 ac_cv_sizeof_void_p=0 11916 fi 11917fi 11918 11919fi 11920{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 11921printf "%s\n" "$ac_cv_sizeof_void_p" >&6; } 11922 11923 11924 11925printf "%s\n" "#define SIZEOF_VOID_P $ac_cv_sizeof_void_p" >>confdefs.h 11926 11927 11928# The cast to long int works around a bug in the HP C Compiler 11929# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11930# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11931# This bug is HP SR number 8606223364. 11932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 11933printf %s "checking size of short... " >&6; } 11934if test ${ac_cv_sizeof_short+y} 11935then : 11936 printf %s "(cached) " >&6 11937else $as_nop 11938 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default" 11939then : 11940 11941else $as_nop 11942 if test "$ac_cv_type_short" = yes; then 11943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11944printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11945as_fn_error 77 "cannot compute sizeof (short) 11946See \`config.log' for more details" "$LINENO" 5; } 11947 else 11948 ac_cv_sizeof_short=0 11949 fi 11950fi 11951 11952fi 11953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 11954printf "%s\n" "$ac_cv_sizeof_short" >&6; } 11955 11956 11957 11958printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h 11959 11960 11961# The cast to long int works around a bug in the HP C Compiler 11962# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11963# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11964# This bug is HP SR number 8606223364. 11965{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 11966printf %s "checking size of float... " >&6; } 11967if test ${ac_cv_sizeof_float+y} 11968then : 11969 printf %s "(cached) " >&6 11970else $as_nop 11971 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default" 11972then : 11973 11974else $as_nop 11975 if test "$ac_cv_type_float" = yes; then 11976 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11977printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 11978as_fn_error 77 "cannot compute sizeof (float) 11979See \`config.log' for more details" "$LINENO" 5; } 11980 else 11981 ac_cv_sizeof_float=0 11982 fi 11983fi 11984 11985fi 11986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 11987printf "%s\n" "$ac_cv_sizeof_float" >&6; } 11988 11989 11990 11991printf "%s\n" "#define SIZEOF_FLOAT $ac_cv_sizeof_float" >>confdefs.h 11992 11993 11994# The cast to long int works around a bug in the HP C Compiler 11995# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 11996# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 11997# This bug is HP SR number 8606223364. 11998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 11999printf %s "checking size of double... " >&6; } 12000if test ${ac_cv_sizeof_double+y} 12001then : 12002 printf %s "(cached) " >&6 12003else $as_nop 12004 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default" 12005then : 12006 12007else $as_nop 12008 if test "$ac_cv_type_double" = yes; then 12009 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12010printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12011as_fn_error 77 "cannot compute sizeof (double) 12012See \`config.log' for more details" "$LINENO" 5; } 12013 else 12014 ac_cv_sizeof_double=0 12015 fi 12016fi 12017 12018fi 12019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 12020printf "%s\n" "$ac_cv_sizeof_double" >&6; } 12021 12022 12023 12024printf "%s\n" "#define SIZEOF_DOUBLE $ac_cv_sizeof_double" >>confdefs.h 12025 12026 12027# The cast to long int works around a bug in the HP C Compiler 12028# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12029# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12030# This bug is HP SR number 8606223364. 12031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 12032printf %s "checking size of fpos_t... " >&6; } 12033if test ${ac_cv_sizeof_fpos_t+y} 12034then : 12035 printf %s "(cached) " >&6 12036else $as_nop 12037 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default" 12038then : 12039 12040else $as_nop 12041 if test "$ac_cv_type_fpos_t" = yes; then 12042 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12043printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12044as_fn_error 77 "cannot compute sizeof (fpos_t) 12045See \`config.log' for more details" "$LINENO" 5; } 12046 else 12047 ac_cv_sizeof_fpos_t=0 12048 fi 12049fi 12050 12051fi 12052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 12053printf "%s\n" "$ac_cv_sizeof_fpos_t" >&6; } 12054 12055 12056 12057printf "%s\n" "#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t" >>confdefs.h 12058 12059 12060# The cast to long int works around a bug in the HP C Compiler 12061# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12062# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12063# This bug is HP SR number 8606223364. 12064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 12065printf %s "checking size of size_t... " >&6; } 12066if test ${ac_cv_sizeof_size_t+y} 12067then : 12068 printf %s "(cached) " >&6 12069else $as_nop 12070 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" 12071then : 12072 12073else $as_nop 12074 if test "$ac_cv_type_size_t" = yes; then 12075 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12076printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12077as_fn_error 77 "cannot compute sizeof (size_t) 12078See \`config.log' for more details" "$LINENO" 5; } 12079 else 12080 ac_cv_sizeof_size_t=0 12081 fi 12082fi 12083 12084fi 12085{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 12086printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } 12087 12088 12089 12090printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h 12091 12092 12093# The cast to long int works around a bug in the HP C Compiler, 12094# see AC_CHECK_SIZEOF for more information. 12095{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of size_t" >&5 12096printf %s "checking alignment of size_t... " >&6; } 12097if test ${ac_cv_alignof_size_t+y} 12098then : 12099 printf %s "(cached) " >&6 12100else $as_nop 12101 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_size_t" "$ac_includes_default 12102typedef struct { char x; size_t y; } ac__type_alignof_;" 12103then : 12104 12105else $as_nop 12106 if test "$ac_cv_type_size_t" = yes; then 12107 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12108printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12109as_fn_error 77 "cannot compute alignment of size_t 12110See \`config.log' for more details" "$LINENO" 5; } 12111 else 12112 ac_cv_alignof_size_t=0 12113 fi 12114fi 12115 12116fi 12117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_size_t" >&5 12118printf "%s\n" "$ac_cv_alignof_size_t" >&6; } 12119 12120 12121 12122printf "%s\n" "#define ALIGNOF_SIZE_T $ac_cv_alignof_size_t" >>confdefs.h 12123 12124 12125# The cast to long int works around a bug in the HP C Compiler 12126# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12127# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12128# This bug is HP SR number 8606223364. 12129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 12130printf %s "checking size of pid_t... " >&6; } 12131if test ${ac_cv_sizeof_pid_t+y} 12132then : 12133 printf %s "(cached) " >&6 12134else $as_nop 12135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default" 12136then : 12137 12138else $as_nop 12139 if test "$ac_cv_type_pid_t" = yes; then 12140 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12141printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12142as_fn_error 77 "cannot compute sizeof (pid_t) 12143See \`config.log' for more details" "$LINENO" 5; } 12144 else 12145 ac_cv_sizeof_pid_t=0 12146 fi 12147fi 12148 12149fi 12150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 12151printf "%s\n" "$ac_cv_sizeof_pid_t" >&6; } 12152 12153 12154 12155printf "%s\n" "#define SIZEOF_PID_T $ac_cv_sizeof_pid_t" >>confdefs.h 12156 12157 12158# The cast to long int works around a bug in the HP C Compiler 12159# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12160# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12161# This bug is HP SR number 8606223364. 12162{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 12163printf %s "checking size of uintptr_t... " >&6; } 12164if test ${ac_cv_sizeof_uintptr_t+y} 12165then : 12166 printf %s "(cached) " >&6 12167else $as_nop 12168 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default" 12169then : 12170 12171else $as_nop 12172 if test "$ac_cv_type_uintptr_t" = yes; then 12173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12174printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12175as_fn_error 77 "cannot compute sizeof (uintptr_t) 12176See \`config.log' for more details" "$LINENO" 5; } 12177 else 12178 ac_cv_sizeof_uintptr_t=0 12179 fi 12180fi 12181 12182fi 12183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 12184printf "%s\n" "$ac_cv_sizeof_uintptr_t" >&6; } 12185 12186 12187 12188printf "%s\n" "#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t" >>confdefs.h 12189 12190 12191# The cast to long int works around a bug in the HP C Compiler, 12192# see AC_CHECK_SIZEOF for more information. 12193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking alignment of max_align_t" >&5 12194printf %s "checking alignment of max_align_t... " >&6; } 12195if test ${ac_cv_alignof_max_align_t+y} 12196then : 12197 printf %s "(cached) " >&6 12198else $as_nop 12199 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_max_align_t" "$ac_includes_default 12200typedef struct { char x; max_align_t y; } ac__type_alignof_;" 12201then : 12202 12203else $as_nop 12204 if test "$ac_cv_type_max_align_t" = yes; then 12205 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12206printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12207as_fn_error 77 "cannot compute alignment of max_align_t 12208See \`config.log' for more details" "$LINENO" 5; } 12209 else 12210 ac_cv_alignof_max_align_t=0 12211 fi 12212fi 12213 12214fi 12215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_max_align_t" >&5 12216printf "%s\n" "$ac_cv_alignof_max_align_t" >&6; } 12217 12218 12219 12220printf "%s\n" "#define ALIGNOF_MAX_ALIGN_T $ac_cv_alignof_max_align_t" >>confdefs.h 12221 12222 12223 12224 12225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 12226printf %s "checking for long double... " >&6; } 12227if test ${ac_cv_type_long_double+y} 12228then : 12229 printf %s "(cached) " >&6 12230else $as_nop 12231 if test "$GCC" = yes; then 12232 ac_cv_type_long_double=yes 12233 else 12234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12235/* end confdefs.h. */ 12236/* The Stardent Vistra knows sizeof (long double), but does 12237 not support it. */ 12238 long double foo = 0.0L; 12239int 12240main (void) 12241{ 12242static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 12243 sizeof (double) <= sizeof (long double))]; 12244test_array [0] = 0; 12245return test_array [0]; 12246 12247 ; 12248 return 0; 12249} 12250_ACEOF 12251if ac_fn_c_try_compile "$LINENO" 12252then : 12253 ac_cv_type_long_double=yes 12254else $as_nop 12255 ac_cv_type_long_double=no 12256fi 12257rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12258 fi 12259fi 12260{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 12261printf "%s\n" "$ac_cv_type_long_double" >&6; } 12262 if test $ac_cv_type_long_double = yes; then 12263 12264printf "%s\n" "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 12265 12266 fi 12267 12268# The cast to long int works around a bug in the HP C Compiler 12269# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12270# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12271# This bug is HP SR number 8606223364. 12272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 12273printf %s "checking size of long double... " >&6; } 12274if test ${ac_cv_sizeof_long_double+y} 12275then : 12276 printf %s "(cached) " >&6 12277else $as_nop 12278 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default" 12279then : 12280 12281else $as_nop 12282 if test "$ac_cv_type_long_double" = yes; then 12283 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12284printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12285as_fn_error 77 "cannot compute sizeof (long double) 12286See \`config.log' for more details" "$LINENO" 5; } 12287 else 12288 ac_cv_sizeof_long_double=0 12289 fi 12290fi 12291 12292fi 12293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 12294printf "%s\n" "$ac_cv_sizeof_long_double" >&6; } 12295 12296 12297 12298printf "%s\n" "#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double" >>confdefs.h 12299 12300 12301 12302# The cast to long int works around a bug in the HP C Compiler 12303# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12304# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12305# This bug is HP SR number 8606223364. 12306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 12307printf %s "checking size of _Bool... " >&6; } 12308if test ${ac_cv_sizeof__Bool+y} 12309then : 12310 printf %s "(cached) " >&6 12311else $as_nop 12312 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default" 12313then : 12314 12315else $as_nop 12316 if test "$ac_cv_type__Bool" = yes; then 12317 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12318printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12319as_fn_error 77 "cannot compute sizeof (_Bool) 12320See \`config.log' for more details" "$LINENO" 5; } 12321 else 12322 ac_cv_sizeof__Bool=0 12323 fi 12324fi 12325 12326fi 12327{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 12328printf "%s\n" "$ac_cv_sizeof__Bool" >&6; } 12329 12330 12331 12332printf "%s\n" "#define SIZEOF__BOOL $ac_cv_sizeof__Bool" >>confdefs.h 12333 12334 12335 12336# The cast to long int works around a bug in the HP C Compiler 12337# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12338# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12339# This bug is HP SR number 8606223364. 12340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 12341printf %s "checking size of off_t... " >&6; } 12342if test ${ac_cv_sizeof_off_t+y} 12343then : 12344 printf %s "(cached) " >&6 12345else $as_nop 12346 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " 12347#ifdef HAVE_SYS_TYPES_H 12348#include <sys/types.h> 12349#endif 12350 12351" 12352then : 12353 12354else $as_nop 12355 if test "$ac_cv_type_off_t" = yes; then 12356 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12357printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12358as_fn_error 77 "cannot compute sizeof (off_t) 12359See \`config.log' for more details" "$LINENO" 5; } 12360 else 12361 ac_cv_sizeof_off_t=0 12362 fi 12363fi 12364 12365fi 12366{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 12367printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } 12368 12369 12370 12371printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h 12372 12373 12374 12375{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 12376printf %s "checking whether to enable large file support... " >&6; } 12377if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ 12378 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then 12379 have_largefile_support="yes" 12380else 12381 have_largefile_support="no" 12382fi 12383case $ac_sys_system in #( 12384 Emscripten) : 12385 have_largefile_support="no" 12386 ;; #( 12387 *) : 12388 ;; 12389esac 12390if test "x$have_largefile_support" = xyes 12391then : 12392 12393 12394printf "%s\n" "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h 12395 12396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12397printf "%s\n" "yes" >&6; } 12398 12399else $as_nop 12400 12401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12402printf "%s\n" "no" >&6; } 12403 12404fi 12405 12406# The cast to long int works around a bug in the HP C Compiler 12407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12409# This bug is HP SR number 8606223364. 12410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 12411printf %s "checking size of time_t... " >&6; } 12412if test ${ac_cv_sizeof_time_t+y} 12413then : 12414 printf %s "(cached) " >&6 12415else $as_nop 12416 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 12417#ifdef HAVE_SYS_TYPES_H 12418#include <sys/types.h> 12419#endif 12420#ifdef HAVE_TIME_H 12421#include <time.h> 12422#endif 12423 12424" 12425then : 12426 12427else $as_nop 12428 if test "$ac_cv_type_time_t" = yes; then 12429 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12430printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12431as_fn_error 77 "cannot compute sizeof (time_t) 12432See \`config.log' for more details" "$LINENO" 5; } 12433 else 12434 ac_cv_sizeof_time_t=0 12435 fi 12436fi 12437 12438fi 12439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 12440printf "%s\n" "$ac_cv_sizeof_time_t" >&6; } 12441 12442 12443 12444printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h 12445 12446 12447 12448# if have pthread_t then define SIZEOF_PTHREAD_T 12449ac_save_cc="$CC" 12450if test "$ac_cv_kpthread" = "yes" 12451then CC="$CC -Kpthread" 12452elif test "$ac_cv_kthread" = "yes" 12453then CC="$CC -Kthread" 12454elif test "$ac_cv_pthread" = "yes" 12455then CC="$CC -pthread" 12456fi 12457 12458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 12459printf %s "checking for pthread_t... " >&6; } 12460if test ${ac_cv_have_pthread_t+y} 12461then : 12462 printf %s "(cached) " >&6 12463else $as_nop 12464 12465cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12466/* end confdefs.h. */ 12467 12468 #include <pthread.h> 12469int 12470main (void) 12471{ 12472pthread_t x; x = *(pthread_t*)0; 12473 ; 12474 return 0; 12475} 12476 12477_ACEOF 12478if ac_fn_c_try_compile "$LINENO" 12479then : 12480 ac_cv_have_pthread_t=yes 12481else $as_nop 12482 ac_cv_have_pthread_t=no 12483fi 12484rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12485 12486fi 12487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_pthread_t" >&5 12488printf "%s\n" "$ac_cv_have_pthread_t" >&6; } 12489if test "x$ac_cv_have_pthread_t" = xyes 12490then : 12491 12492 # The cast to long int works around a bug in the HP C Compiler 12493# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12494# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12495# This bug is HP SR number 8606223364. 12496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 12497printf %s "checking size of pthread_t... " >&6; } 12498if test ${ac_cv_sizeof_pthread_t+y} 12499then : 12500 printf %s "(cached) " >&6 12501else $as_nop 12502 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 12503#ifdef HAVE_PTHREAD_H 12504#include <pthread.h> 12505#endif 12506 12507" 12508then : 12509 12510else $as_nop 12511 if test "$ac_cv_type_pthread_t" = yes; then 12512 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12513printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12514as_fn_error 77 "cannot compute sizeof (pthread_t) 12515See \`config.log' for more details" "$LINENO" 5; } 12516 else 12517 ac_cv_sizeof_pthread_t=0 12518 fi 12519fi 12520 12521fi 12522{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 12523printf "%s\n" "$ac_cv_sizeof_pthread_t" >&6; } 12524 12525 12526 12527printf "%s\n" "#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t" >>confdefs.h 12528 12529 12530 12531fi 12532 12533# Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. 12534# This checking will be unnecessary after removing deprecated TLS API. 12535# The cast to long int works around a bug in the HP C Compiler 12536# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12537# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12538# This bug is HP SR number 8606223364. 12539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 12540printf %s "checking size of pthread_key_t... " >&6; } 12541if test ${ac_cv_sizeof_pthread_key_t+y} 12542then : 12543 printf %s "(cached) " >&6 12544else $as_nop 12545 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> 12546" 12547then : 12548 12549else $as_nop 12550 if test "$ac_cv_type_pthread_key_t" = yes; then 12551 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12552printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 12553as_fn_error 77 "cannot compute sizeof (pthread_key_t) 12554See \`config.log' for more details" "$LINENO" 5; } 12555 else 12556 ac_cv_sizeof_pthread_key_t=0 12557 fi 12558fi 12559 12560fi 12561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 12562printf "%s\n" "$ac_cv_sizeof_pthread_key_t" >&6; } 12563 12564 12565 12566printf "%s\n" "#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t" >>confdefs.h 12567 12568 12569{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 12570printf %s "checking whether pthread_key_t is compatible with int... " >&6; } 12571if test ${ac_cv_pthread_key_t_is_arithmetic_type+y} 12572then : 12573 printf %s "(cached) " >&6 12574else $as_nop 12575 12576if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579#include <pthread.h> 12580int 12581main (void) 12582{ 12583pthread_key_t k; k * 1; 12584 ; 12585 return 0; 12586} 12587_ACEOF 12588if ac_fn_c_try_compile "$LINENO" 12589then : 12590 ac_cv_pthread_key_t_is_arithmetic_type=yes 12591else $as_nop 12592 ac_cv_pthread_key_t_is_arithmetic_type=no 12593 12594fi 12595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12596else 12597 ac_cv_pthread_key_t_is_arithmetic_type=no 12598fi 12599 12600fi 12601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_key_t_is_arithmetic_type" >&5 12602printf "%s\n" "$ac_cv_pthread_key_t_is_arithmetic_type" >&6; } 12603if test "x$ac_cv_pthread_key_t_is_arithmetic_type" = xyes 12604then : 12605 12606 12607printf "%s\n" "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h 12608 12609 12610fi 12611 12612CC="$ac_save_cc" 12613 12614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 12615printf %s "checking for --enable-framework... " >&6; } 12616if test "$enable_framework" 12617then 12618 BASECFLAGS="$BASECFLAGS -fno-common -dynamic" 12619 # -F. is needed to allow linking to the framework while 12620 # in the build location. 12621 12622printf "%s\n" "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h 12623 12624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12625printf "%s\n" "yes" >&6; } 12626 if test $enable_shared = "yes" 12627 then 12628 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 12629 fi 12630else 12631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12632printf "%s\n" "no" >&6; } 12633fi 12634 12635# Check for --with-dsymutil 12636 12637 12638DSYMUTIL= 12639DSYMUTIL_PATH= 12640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dsymutil" >&5 12641printf %s "checking for --with-dsymutil... " >&6; } 12642 12643# Check whether --with-dsymutil was given. 12644if test ${with_dsymutil+y} 12645then : 12646 withval=$with_dsymutil; 12647if test "$withval" != no 12648then 12649 if test "$MACHDEP" != "darwin"; then 12650 as_fn_error $? "dsymutil debug linking is only available in macOS." "$LINENO" 5 12651 fi 12652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12653printf "%s\n" "yes" >&6; }; 12654 DSYMUTIL='true' 12655else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12656printf "%s\n" "no" >&6; }; DSYMUTIL= 12657fi 12658else $as_nop 12659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12660printf "%s\n" "no" >&6; } 12661fi 12662 12663 12664if test "$DSYMUTIL"; then 12665 # Extract the first word of "dsymutil", so it can be a program name with args. 12666set dummy dsymutil; ac_word=$2 12667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12668printf %s "checking for $ac_word... " >&6; } 12669if test ${ac_cv_path_DSYMUTIL_PATH+y} 12670then : 12671 printf %s "(cached) " >&6 12672else $as_nop 12673 case $DSYMUTIL_PATH in 12674 [\\/]* | ?:[\\/]*) 12675 ac_cv_path_DSYMUTIL_PATH="$DSYMUTIL_PATH" # Let the user override the test with a path. 12676 ;; 12677 *) 12678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12679for as_dir in $PATH 12680do 12681 IFS=$as_save_IFS 12682 case $as_dir in #((( 12683 '') as_dir=./ ;; 12684 */) ;; 12685 *) as_dir=$as_dir/ ;; 12686 esac 12687 for ac_exec_ext in '' $ac_executable_extensions; do 12688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 12689 ac_cv_path_DSYMUTIL_PATH="$as_dir$ac_word$ac_exec_ext" 12690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 12691 break 2 12692 fi 12693done 12694 done 12695IFS=$as_save_IFS 12696 12697 test -z "$ac_cv_path_DSYMUTIL_PATH" && ac_cv_path_DSYMUTIL_PATH="not found" 12698 ;; 12699esac 12700fi 12701DSYMUTIL_PATH=$ac_cv_path_DSYMUTIL_PATH 12702if test -n "$DSYMUTIL_PATH"; then 12703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_PATH" >&5 12704printf "%s\n" "$DSYMUTIL_PATH" >&6; } 12705else 12706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12707printf "%s\n" "no" >&6; } 12708fi 12709 12710 12711 if test "$DSYMUTIL_PATH" = "not found"; then 12712 as_fn_error $? "dsymutil command not found on \$PATH" "$LINENO" 5 12713 fi 12714fi 12715 12716{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 12717printf %s "checking for dyld... " >&6; } 12718case $ac_sys_system/$ac_sys_release in 12719 Darwin/*) 12720 12721printf "%s\n" "#define WITH_DYLD 1" >>confdefs.h 12722 12723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 12724printf "%s\n" "always on for Darwin" >&6; } 12725 ;; 12726 *) 12727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12728printf "%s\n" "no" >&6; } 12729 ;; 12730esac 12731 12732{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 12733printf %s "checking for --with-address-sanitizer... " >&6; } 12734 12735# Check whether --with-address_sanitizer was given. 12736if test ${with_address_sanitizer+y} 12737then : 12738 withval=$with_address_sanitizer; 12739{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 12740printf "%s\n" "$withval" >&6; } 12741BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" 12742LDFLAGS="-fsanitize=address $LDFLAGS" 12743# ASan works by controlling memory allocation, our own malloc interferes. 12744with_pymalloc="no" 12745 12746else $as_nop 12747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12748printf "%s\n" "no" >&6; } 12749fi 12750 12751 12752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 12753printf %s "checking for --with-memory-sanitizer... " >&6; } 12754 12755# Check whether --with-memory_sanitizer was given. 12756if test ${with_memory_sanitizer+y} 12757then : 12758 withval=$with_memory_sanitizer; 12759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 12760printf "%s\n" "$withval" >&6; } 12761{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fsanitize=memory" >&5 12762printf %s "checking whether C compiler accepts -fsanitize=memory... " >&6; } 12763if test ${ax_cv_check_cflags___fsanitize_memory+y} 12764then : 12765 printf %s "(cached) " >&6 12766else $as_nop 12767 12768 ax_check_save_flags=$CFLAGS 12769 CFLAGS="$CFLAGS -fsanitize=memory" 12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12771/* end confdefs.h. */ 12772 12773int 12774main (void) 12775{ 12776 12777 ; 12778 return 0; 12779} 12780_ACEOF 12781if ac_fn_c_try_compile "$LINENO" 12782then : 12783 ax_cv_check_cflags___fsanitize_memory=yes 12784else $as_nop 12785 ax_cv_check_cflags___fsanitize_memory=no 12786fi 12787rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 12788 CFLAGS=$ax_check_save_flags 12789fi 12790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fsanitize_memory" >&5 12791printf "%s\n" "$ax_cv_check_cflags___fsanitize_memory" >&6; } 12792if test "x$ax_cv_check_cflags___fsanitize_memory" = xyes 12793then : 12794 12795BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" 12796LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" 12797 12798else $as_nop 12799 as_fn_error $? "The selected compiler doesn't support memory sanitizer" "$LINENO" 5 12800fi 12801 12802# MSan works by controlling memory allocation, our own malloc interferes. 12803with_pymalloc="no" 12804 12805else $as_nop 12806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12807printf "%s\n" "no" >&6; } 12808fi 12809 12810 12811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 12812printf %s "checking for --with-undefined-behavior-sanitizer... " >&6; } 12813 12814# Check whether --with-undefined_behavior_sanitizer was given. 12815if test ${with_undefined_behavior_sanitizer+y} 12816then : 12817 withval=$with_undefined_behavior_sanitizer; 12818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 12819printf "%s\n" "$withval" >&6; } 12820BASECFLAGS="-fsanitize=undefined $BASECFLAGS" 12821LDFLAGS="-fsanitize=undefined $LDFLAGS" 12822with_ubsan="yes" 12823 12824else $as_nop 12825 12826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12827printf "%s\n" "no" >&6; } 12828with_ubsan="no" 12829 12830fi 12831 12832 12833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-thread-sanitizer" >&5 12834printf %s "checking for --with-thread-sanitizer... " >&6; } 12835 12836# Check whether --with-thread_sanitizer was given. 12837if test ${with_thread_sanitizer+y} 12838then : 12839 withval=$with_thread_sanitizer; 12840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 12841printf "%s\n" "$withval" >&6; } 12842BASECFLAGS="-fsanitize=thread $BASECFLAGS" 12843LDFLAGS="-fsanitize=thread $LDFLAGS" 12844with_tsan="yes" 12845 12846else $as_nop 12847 12848{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 12849printf "%s\n" "no" >&6; } 12850with_tsan="no" 12851 12852fi 12853 12854 12855# Set info about shared libraries. 12856 12857 12858 12859 12860 12861 12862 12863# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) 12864# -- usually .so, .sl on HP-UX, .dll on Cygwin 12865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 12866printf %s "checking the extension of shared libraries... " >&6; } 12867if test -z "$SHLIB_SUFFIX"; then 12868 case $ac_sys_system in 12869 hp*|HP*) 12870 case `uname -m` in 12871 ia64) SHLIB_SUFFIX=.so;; 12872 *) SHLIB_SUFFIX=.sl;; 12873 esac 12874 ;; 12875 CYGWIN*) SHLIB_SUFFIX=.dll;; 12876 *) SHLIB_SUFFIX=.so;; 12877 esac 12878fi 12879{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 12880printf "%s\n" "$SHLIB_SUFFIX" >&6; } 12881 12882# LDSHARED is the ld *command* used to create shared library 12883# -- "cc -G" on SunOS 5.x. 12884# (Shared libraries in this instance are shared modules to be loaded into 12885# Python, as opposed to building Python itself as a shared library.) 12886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 12887printf %s "checking LDSHARED... " >&6; } 12888if test -z "$LDSHARED" 12889then 12890 case $ac_sys_system/$ac_sys_release in 12891 AIX*) 12892 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" 12893 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" 12894 ;; 12895 SunOS/5*) 12896 if test "$GCC" = "yes" ; then 12897 LDSHARED='$(CC) -shared' 12898 LDCXXSHARED='$(CXX) -shared' 12899 else 12900 LDSHARED='$(CC) -G' 12901 LDCXXSHARED='$(CXX) -G' 12902 fi ;; 12903 hp*|HP*) 12904 if test "$GCC" = "yes" ; then 12905 LDSHARED='$(CC) -shared' 12906 LDCXXSHARED='$(CXX) -shared' 12907 else 12908 LDSHARED='$(CC) -b' 12909 LDCXXSHARED='$(CXX) -b' 12910 fi ;; 12911 Darwin/1.3*) 12912 LDSHARED='$(CC) -bundle' 12913 LDCXXSHARED='$(CXX) -bundle' 12914 if test "$enable_framework" ; then 12915 # Link against the framework. All externals should be defined. 12916 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12917 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12918 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12919 else 12920 # No framework. Ignore undefined symbols, assuming they come from Python 12921 LDSHARED="$LDSHARED -undefined suppress" 12922 LDCXXSHARED="$LDCXXSHARED -undefined suppress" 12923 fi ;; 12924 Darwin/1.4*|Darwin/5.*|Darwin/6.*) 12925 LDSHARED='$(CC) -bundle' 12926 LDCXXSHARED='$(CXX) -bundle' 12927 if test "$enable_framework" ; then 12928 # Link against the framework. All externals should be defined. 12929 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12930 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12931 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 12932 else 12933 # No framework, use the Python app as bundle-loader 12934 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 12935 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 12936 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 12937 fi ;; 12938 Darwin/*) 12939 # Use -undefined dynamic_lookup whenever possible (10.3 and later). 12940 # This allows an extension to be used in any Python 12941 12942 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 12943 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 12944 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 12945 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 12946 if test ${dep_target_major} -eq 10 && \ 12947 test ${dep_target_minor} -le 2 12948 then 12949 # building for OS X 10.0 through 10.2 12950 as_fn_error $? "MACOSX_DEPLOYMENT_TARGET too old ($MACOSX_DEPLOYMENT_TARGET), only 10.3 or later is supported" "$LINENO" 5 12951 else 12952 # building for OS X 10.3 and later 12953 LDSHARED='$(CC) -bundle -undefined dynamic_lookup' 12954 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' 12955 BLDSHARED="$LDSHARED" 12956 fi 12957 ;; 12958 iOS/*) 12959 LDSHARED='$(CC) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)' 12960 LDCXXSHARED='$(CXX) -dynamiclib -F . -framework $(PYTHONFRAMEWORK)' 12961 BLDSHARED="$LDSHARED" 12962 ;; 12963 Emscripten*|WASI*) 12964 LDSHARED='$(CC) -shared' 12965 LDCXXSHARED='$(CXX) -shared';; 12966 Linux*|GNU*|QNX*|VxWorks*|Haiku*) 12967 LDSHARED='$(CC) -shared' 12968 LDCXXSHARED='$(CXX) -shared';; 12969 FreeBSD*) 12970 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 12971 then 12972 LDSHARED='$(CC) -shared' 12973 LDCXXSHARED='$(CXX) -shared' 12974 else 12975 LDSHARED="ld -Bshareable" 12976 fi;; 12977 OpenBSD*) 12978 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 12979 then 12980 LDSHARED='$(CC) -shared $(CCSHARED)' 12981 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 12982 else 12983 case `uname -r` in 12984 [01].* | 2.[0-7] | 2.[0-7].*) 12985 LDSHARED="ld -Bshareable ${LDFLAGS}" 12986 ;; 12987 *) 12988 LDSHARED='$(CC) -shared $(CCSHARED)' 12989 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 12990 ;; 12991 esac 12992 fi;; 12993 NetBSD*|DragonFly*) 12994 LDSHARED='$(CC) -shared' 12995 LDCXXSHARED='$(CXX) -shared';; 12996 OpenUNIX*|UnixWare*) 12997 if test "$GCC" = "yes" ; then 12998 LDSHARED='$(CC) -shared' 12999 LDCXXSHARED='$(CXX) -shared' 13000 else 13001 LDSHARED='$(CC) -G' 13002 LDCXXSHARED='$(CXX) -G' 13003 fi;; 13004 SCO_SV*) 13005 LDSHARED='$(CC) -Wl,-G,-Bexport' 13006 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; 13007 WASI*) 13008 if test "x$enable_wasm_dynamic_linking" = xyes 13009then : 13010 13011 13012fi;; 13013 CYGWIN*) 13014 LDSHARED="gcc -shared -Wl,--enable-auto-image-base" 13015 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; 13016 *) LDSHARED="ld";; 13017 esac 13018fi 13019 13020if test "$enable_wasm_dynamic_linking" = "yes" -a "$ac_sys_system" = "Emscripten"; then 13021 BLDSHARED='$(CC) -shared -sSIDE_MODULE=1' 13022fi 13023 13024{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 13025printf "%s\n" "$LDSHARED" >&6; } 13026LDCXXSHARED=${LDCXXSHARED-$LDSHARED} 13027 13028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking BLDSHARED flags" >&5 13029printf %s "checking BLDSHARED flags... " >&6; } 13030BLDSHARED=${BLDSHARED-$LDSHARED} 13031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLDSHARED" >&5 13032printf "%s\n" "$BLDSHARED" >&6; } 13033 13034# CCSHARED are the C *flags* used to create objects to go into a shared 13035# library (module) -- this is only needed for a few systems 13036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 13037printf %s "checking CCSHARED... " >&6; } 13038if test -z "$CCSHARED" 13039then 13040 case $ac_sys_system/$ac_sys_release in 13041 SunOS*) if test "$GCC" = yes; 13042 then CCSHARED="-fPIC"; 13043 elif test `uname -p` = sparc; 13044 then CCSHARED="-xcode=pic32"; 13045 else CCSHARED="-Kpic"; 13046 fi;; 13047 hp*|HP*) if test "$GCC" = yes; 13048 then CCSHARED="-fPIC"; 13049 else CCSHARED="+z"; 13050 fi;; 13051 Linux*|GNU*) CCSHARED="-fPIC";; 13052 Emscripten*|WASI*) 13053 if test "x$enable_wasm_dynamic_linking" = xyes 13054then : 13055 13056 CCSHARED="-fPIC" 13057 13058fi;; 13059 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 13060 Haiku*) CCSHARED="-fPIC";; 13061 OpenUNIX*|UnixWare*) 13062 if test "$GCC" = "yes" 13063 then CCSHARED="-fPIC" 13064 else CCSHARED="-KPIC" 13065 fi;; 13066 SCO_SV*) 13067 if test "$GCC" = "yes" 13068 then CCSHARED="-fPIC" 13069 else CCSHARED="-Kpic -belf" 13070 fi;; 13071 VxWorks*) 13072 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic" 13073 esac 13074fi 13075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 13076printf "%s\n" "$CCSHARED" >&6; } 13077# LINKFORSHARED are the flags passed to the $(CC) command that links 13078# the python executable -- this is only needed for a few systems 13079{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 13080printf %s "checking LINKFORSHARED... " >&6; } 13081if test -z "$LINKFORSHARED" 13082then 13083 case $ac_sys_system/$ac_sys_release in 13084 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; 13085 hp*|HP*) 13086 LINKFORSHARED="-Wl,-E -Wl,+s";; 13087# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 13088 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; 13089 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 13090 # -u libsys_s pulls in all symbols in libsys 13091 Darwin/*|iOS/*) 13092 LINKFORSHARED="$extra_undefs -framework CoreFoundation" 13093 13094 # Issue #18075: the default maximum stack size (8MBytes) is too 13095 # small for the default recursion limit. Increase the stack size 13096 # to ensure that tests don't crash 13097 stack_size="1000000" # 16 MB 13098 if test "$with_ubsan" = "yes" 13099 then 13100 # Undefined behavior sanitizer requires an even deeper stack 13101 stack_size="4000000" # 64 MB 13102 fi 13103 13104 13105printf "%s\n" "#define THREAD_STACK_SIZE 0x$stack_size" >>confdefs.h 13106 13107 13108 if test $ac_sys_system = "Darwin"; then 13109 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED" 13110 13111 if test "$enable_framework"; then 13112 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 13113 fi 13114 LINKFORSHARED="$LINKFORSHARED" 13115 elif test $ac_sys_system = "iOS"; then 13116 LINKFORSHARED="-Wl,-stack_size,$stack_size $LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/$(PYTHONFRAMEWORK)' 13117 fi 13118 ;; 13119 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; 13120 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; 13121 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; 13122 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) 13123 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 13124 then 13125 LINKFORSHARED="-Wl,--export-dynamic" 13126 fi;; 13127 SunOS/5*) case $CC in 13128 *gcc*) 13129 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null 13130 then 13131 LINKFORSHARED="-Xlinker --export-dynamic" 13132 fi;; 13133 esac;; 13134 CYGWIN*) 13135 if test $enable_shared = "no" 13136 then 13137 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' 13138 fi;; 13139 QNX*) 13140 # -Wl,-E causes the symbols to be added to the dynamic 13141 # symbol table so that they can be found when a module 13142 # is loaded. -N 2048K causes the stack size to be set 13143 # to 2048 kilobytes so that the stack doesn't overflow 13144 # when running test_compile.py. 13145 LINKFORSHARED='-Wl,-E -N 2048K';; 13146 VxWorks*) 13147 LINKFORSHARED='-Wl,-export-dynamic';; 13148 esac 13149fi 13150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 13151printf "%s\n" "$LINKFORSHARED" >&6; } 13152 13153 13154 13155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 13156printf %s "checking CFLAGSFORSHARED... " >&6; } 13157if test ! "$LIBRARY" = "$LDLIBRARY" 13158then 13159 case $ac_sys_system in 13160 CYGWIN*) 13161 # Cygwin needs CCSHARED when building extension DLLs 13162 # but not when building the interpreter DLL. 13163 CFLAGSFORSHARED='';; 13164 *) 13165 CFLAGSFORSHARED='$(CCSHARED)' 13166 esac 13167fi 13168 13169if test "x$enable_wasm_dynamic_linking" = xyes 13170then : 13171 13172 CFLAGSFORSHARED='$(CCSHARED)' 13173 13174fi 13175 13176{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 13177printf "%s\n" "$CFLAGSFORSHARED" >&6; } 13178 13179# SHLIBS are libraries (except -lc and -lm) to link to the python shared 13180# library (with --enable-shared). 13181# For platforms on which shared libraries are not allowed to have unresolved 13182# symbols, this must be set to $(LIBS) (expanded by make). We do this even 13183# if it is not required, since it creates a dependency of the shared library 13184# to LIBS. This, in turn, means that applications linking the shared libpython 13185# don't need to link LIBS explicitly. The default should be only changed 13186# on systems where this approach causes problems. 13187 13188{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 13189printf %s "checking SHLIBS... " >&6; } 13190case "$ac_sys_system" in 13191 *) 13192 SHLIBS='$(LIBS)';; 13193esac 13194{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 13195printf "%s\n" "$SHLIBS" >&6; } 13196 13197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking perf trampoline" >&5 13198printf %s "checking perf trampoline... " >&6; } 13199case $PLATFORM_TRIPLET in #( 13200 x86_64-linux-gnu) : 13201 perf_trampoline=yes ;; #( 13202 aarch64-linux-gnu) : 13203 perf_trampoline=yes ;; #( 13204 *) : 13205 perf_trampoline=no 13206 ;; 13207esac 13208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perf_trampoline" >&5 13209printf "%s\n" "$perf_trampoline" >&6; } 13210 13211if test "x$perf_trampoline" = xyes 13212then : 13213 13214 13215printf "%s\n" "#define PY_HAVE_PERF_TRAMPOLINE 1" >>confdefs.h 13216 13217 PERF_TRAMPOLINE_OBJ=Python/asm_trampoline.o 13218 13219 if test "x$Py_DEBUG" = xtrue 13220then : 13221 13222 as_fn_append BASECFLAGS " -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" 13223 13224fi 13225 13226fi 13227 13228 13229# checks for libraries 13230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 13231printf %s "checking for sendfile in -lsendfile... " >&6; } 13232if test ${ac_cv_lib_sendfile_sendfile+y} 13233then : 13234 printf %s "(cached) " >&6 13235else $as_nop 13236 ac_check_lib_save_LIBS=$LIBS 13237LIBS="-lsendfile $LIBS" 13238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13239/* end confdefs.h. */ 13240 13241/* Override any GCC internal prototype to avoid an error. 13242 Use char because int might match the return type of a GCC 13243 builtin and then its argument prototype would still apply. */ 13244char sendfile (); 13245int 13246main (void) 13247{ 13248return sendfile (); 13249 ; 13250 return 0; 13251} 13252_ACEOF 13253if ac_fn_c_try_link "$LINENO" 13254then : 13255 ac_cv_lib_sendfile_sendfile=yes 13256else $as_nop 13257 ac_cv_lib_sendfile_sendfile=no 13258fi 13259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13260 conftest$ac_exeext conftest.$ac_ext 13261LIBS=$ac_check_lib_save_LIBS 13262fi 13263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 13264printf "%s\n" "$ac_cv_lib_sendfile_sendfile" >&6; } 13265if test "x$ac_cv_lib_sendfile_sendfile" = xyes 13266then : 13267 printf "%s\n" "#define HAVE_LIBSENDFILE 1" >>confdefs.h 13268 13269 LIBS="-lsendfile $LIBS" 13270 13271fi 13272 13273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13274printf %s "checking for dlopen in -ldl... " >&6; } 13275if test ${ac_cv_lib_dl_dlopen+y} 13276then : 13277 printf %s "(cached) " >&6 13278else $as_nop 13279 ac_check_lib_save_LIBS=$LIBS 13280LIBS="-ldl $LIBS" 13281cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13282/* end confdefs.h. */ 13283 13284/* Override any GCC internal prototype to avoid an error. 13285 Use char because int might match the return type of a GCC 13286 builtin and then its argument prototype would still apply. */ 13287char dlopen (); 13288int 13289main (void) 13290{ 13291return dlopen (); 13292 ; 13293 return 0; 13294} 13295_ACEOF 13296if ac_fn_c_try_link "$LINENO" 13297then : 13298 ac_cv_lib_dl_dlopen=yes 13299else $as_nop 13300 ac_cv_lib_dl_dlopen=no 13301fi 13302rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13303 conftest$ac_exeext conftest.$ac_ext 13304LIBS=$ac_check_lib_save_LIBS 13305fi 13306{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13307printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } 13308if test "x$ac_cv_lib_dl_dlopen" = xyes 13309then : 13310 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h 13311 13312 LIBS="-ldl $LIBS" 13313 13314fi 13315 # Dynamic linking for SunOS/Solaris and SYSV 13316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13317printf %s "checking for shl_load in -ldld... " >&6; } 13318if test ${ac_cv_lib_dld_shl_load+y} 13319then : 13320 printf %s "(cached) " >&6 13321else $as_nop 13322 ac_check_lib_save_LIBS=$LIBS 13323LIBS="-ldld $LIBS" 13324cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13325/* end confdefs.h. */ 13326 13327/* Override any GCC internal prototype to avoid an error. 13328 Use char because int might match the return type of a GCC 13329 builtin and then its argument prototype would still apply. */ 13330char shl_load (); 13331int 13332main (void) 13333{ 13334return shl_load (); 13335 ; 13336 return 0; 13337} 13338_ACEOF 13339if ac_fn_c_try_link "$LINENO" 13340then : 13341 ac_cv_lib_dld_shl_load=yes 13342else $as_nop 13343 ac_cv_lib_dld_shl_load=no 13344fi 13345rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13346 conftest$ac_exeext conftest.$ac_ext 13347LIBS=$ac_check_lib_save_LIBS 13348fi 13349{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13350printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } 13351if test "x$ac_cv_lib_dld_shl_load" = xyes 13352then : 13353 printf "%s\n" "#define HAVE_LIBDLD 1" >>confdefs.h 13354 13355 LIBS="-ldld $LIBS" 13356 13357fi 13358 # Dynamic linking for HP-UX 13359 13360 13361 13362 13363 13364have_uuid=missing 13365 13366 for ac_header in uuid.h 13367do : 13368 ac_fn_c_check_header_compile "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default" 13369if test "x$ac_cv_header_uuid_h" = xyes 13370then : 13371 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h 13372 13373 for ac_func in uuid_create uuid_enc_be 13374do : 13375 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 13376ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13377if eval test \"x\$"$as_ac_var"\" = x"yes" 13378then : 13379 cat >>confdefs.h <<_ACEOF 13380#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 13381_ACEOF 13382 have_uuid=yes 13383 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""} 13384 LIBUUID_LIBS=${LIBUUID_LIBS-""} 13385 13386fi 13387 13388done 13389 13390fi 13391 13392done 13393 13394if test "x$have_uuid" = xmissing 13395then : 13396 13397 13398pkg_failed=no 13399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid >= 2.20" >&5 13400printf %s "checking for uuid >= 2.20... " >&6; } 13401 13402if test -n "$LIBUUID_CFLAGS"; then 13403 pkg_cv_LIBUUID_CFLAGS="$LIBUUID_CFLAGS" 13404 elif test -n "$PKG_CONFIG"; then 13405 if test -n "$PKG_CONFIG" && \ 13406 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5 13407 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5 13408 ac_status=$? 13409 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13410 test $ac_status = 0; }; then 13411 pkg_cv_LIBUUID_CFLAGS=`$PKG_CONFIG --cflags "uuid >= 2.20" 2>/dev/null` 13412 test "x$?" != "x0" && pkg_failed=yes 13413else 13414 pkg_failed=yes 13415fi 13416 else 13417 pkg_failed=untried 13418fi 13419if test -n "$LIBUUID_LIBS"; then 13420 pkg_cv_LIBUUID_LIBS="$LIBUUID_LIBS" 13421 elif test -n "$PKG_CONFIG"; then 13422 if test -n "$PKG_CONFIG" && \ 13423 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"uuid >= 2.20\""; } >&5 13424 ($PKG_CONFIG --exists --print-errors "uuid >= 2.20") 2>&5 13425 ac_status=$? 13426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13427 test $ac_status = 0; }; then 13428 pkg_cv_LIBUUID_LIBS=`$PKG_CONFIG --libs "uuid >= 2.20" 2>/dev/null` 13429 test "x$?" != "x0" && pkg_failed=yes 13430else 13431 pkg_failed=yes 13432fi 13433 else 13434 pkg_failed=untried 13435fi 13436 13437 13438 13439if test $pkg_failed = yes; then 13440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13441printf "%s\n" "no" >&6; } 13442 13443if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 13444 _pkg_short_errors_supported=yes 13445else 13446 _pkg_short_errors_supported=no 13447fi 13448 if test $_pkg_short_errors_supported = yes; then 13449 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "uuid >= 2.20" 2>&1` 13450 else 13451 LIBUUID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "uuid >= 2.20" 2>&1` 13452 fi 13453 # Put the nasty error message in config.log where it belongs 13454 echo "$LIBUUID_PKG_ERRORS" >&5 13455 13456 13457 save_CFLAGS=$CFLAGS 13458save_CPPFLAGS=$CPPFLAGS 13459save_LDFLAGS=$LDFLAGS 13460save_LIBS=$LIBS 13461 13462 13463 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS" 13464 LDFLAGS="$LDFLAGS $LIBUUID_LIBS" 13465 for ac_header in uuid/uuid.h 13466do : 13467 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 13468if test "x$ac_cv_header_uuid_uuid_h" = xyes 13469then : 13470 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h 13471 13472 py_check_lib_save_LIBS=$LIBS 13473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5 13474printf %s "checking for uuid_generate_time in -luuid... " >&6; } 13475if test ${ac_cv_lib_uuid_uuid_generate_time+y} 13476then : 13477 printf %s "(cached) " >&6 13478else $as_nop 13479 ac_check_lib_save_LIBS=$LIBS 13480LIBS="-luuid $LIBS" 13481cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13482/* end confdefs.h. */ 13483 13484/* Override any GCC internal prototype to avoid an error. 13485 Use char because int might match the return type of a GCC 13486 builtin and then its argument prototype would still apply. */ 13487char uuid_generate_time (); 13488int 13489main (void) 13490{ 13491return uuid_generate_time (); 13492 ; 13493 return 0; 13494} 13495_ACEOF 13496if ac_fn_c_try_link "$LINENO" 13497then : 13498 ac_cv_lib_uuid_uuid_generate_time=yes 13499else $as_nop 13500 ac_cv_lib_uuid_uuid_generate_time=no 13501fi 13502rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13503 conftest$ac_exeext conftest.$ac_ext 13504LIBS=$ac_check_lib_save_LIBS 13505fi 13506{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5 13507printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; } 13508if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes 13509then : 13510 have_uuid=yes 13511fi 13512 13513LIBS=$py_check_lib_save_LIBS 13514 13515 py_check_lib_save_LIBS=$LIBS 13516{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5 13517printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; } 13518if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y} 13519then : 13520 printf %s "(cached) " >&6 13521else $as_nop 13522 ac_check_lib_save_LIBS=$LIBS 13523LIBS="-luuid $LIBS" 13524cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13525/* end confdefs.h. */ 13526 13527/* Override any GCC internal prototype to avoid an error. 13528 Use char because int might match the return type of a GCC 13529 builtin and then its argument prototype would still apply. */ 13530char uuid_generate_time_safe (); 13531int 13532main (void) 13533{ 13534return uuid_generate_time_safe (); 13535 ; 13536 return 0; 13537} 13538_ACEOF 13539if ac_fn_c_try_link "$LINENO" 13540then : 13541 ac_cv_lib_uuid_uuid_generate_time_safe=yes 13542else $as_nop 13543 ac_cv_lib_uuid_uuid_generate_time_safe=no 13544fi 13545rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13546 conftest$ac_exeext conftest.$ac_ext 13547LIBS=$ac_check_lib_save_LIBS 13548fi 13549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5 13550printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; } 13551if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes 13552then : 13553 have_uuid=yes 13554 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h 13555 13556fi 13557 13558LIBS=$py_check_lib_save_LIBS 13559 13560fi 13561 13562done 13563 if test "x$have_uuid" = xyes 13564then : 13565 13566 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""} 13567 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"} 13568 13569fi 13570 13571CFLAGS=$save_CFLAGS 13572CPPFLAGS=$save_CPPFLAGS 13573LDFLAGS=$save_LDFLAGS 13574LIBS=$save_LIBS 13575 13576 13577 13578 13579elif test $pkg_failed = untried; then 13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13581printf "%s\n" "no" >&6; } 13582 13583 save_CFLAGS=$CFLAGS 13584save_CPPFLAGS=$CPPFLAGS 13585save_LDFLAGS=$LDFLAGS 13586save_LIBS=$LIBS 13587 13588 13589 CPPFLAGS="$CPPFLAGS $LIBUUID_CFLAGS" 13590 LDFLAGS="$LDFLAGS $LIBUUID_LIBS" 13591 for ac_header in uuid/uuid.h 13592do : 13593 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 13594if test "x$ac_cv_header_uuid_uuid_h" = xyes 13595then : 13596 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h 13597 13598 py_check_lib_save_LIBS=$LIBS 13599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time in -luuid" >&5 13600printf %s "checking for uuid_generate_time in -luuid... " >&6; } 13601if test ${ac_cv_lib_uuid_uuid_generate_time+y} 13602then : 13603 printf %s "(cached) " >&6 13604else $as_nop 13605 ac_check_lib_save_LIBS=$LIBS 13606LIBS="-luuid $LIBS" 13607cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13608/* end confdefs.h. */ 13609 13610/* Override any GCC internal prototype to avoid an error. 13611 Use char because int might match the return type of a GCC 13612 builtin and then its argument prototype would still apply. */ 13613char uuid_generate_time (); 13614int 13615main (void) 13616{ 13617return uuid_generate_time (); 13618 ; 13619 return 0; 13620} 13621_ACEOF 13622if ac_fn_c_try_link "$LINENO" 13623then : 13624 ac_cv_lib_uuid_uuid_generate_time=yes 13625else $as_nop 13626 ac_cv_lib_uuid_uuid_generate_time=no 13627fi 13628rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13629 conftest$ac_exeext conftest.$ac_ext 13630LIBS=$ac_check_lib_save_LIBS 13631fi 13632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time" >&5 13633printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time" >&6; } 13634if test "x$ac_cv_lib_uuid_uuid_generate_time" = xyes 13635then : 13636 have_uuid=yes 13637fi 13638 13639LIBS=$py_check_lib_save_LIBS 13640 13641 py_check_lib_save_LIBS=$LIBS 13642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe in -luuid" >&5 13643printf %s "checking for uuid_generate_time_safe in -luuid... " >&6; } 13644if test ${ac_cv_lib_uuid_uuid_generate_time_safe+y} 13645then : 13646 printf %s "(cached) " >&6 13647else $as_nop 13648 ac_check_lib_save_LIBS=$LIBS 13649LIBS="-luuid $LIBS" 13650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13651/* end confdefs.h. */ 13652 13653/* Override any GCC internal prototype to avoid an error. 13654 Use char because int might match the return type of a GCC 13655 builtin and then its argument prototype would still apply. */ 13656char uuid_generate_time_safe (); 13657int 13658main (void) 13659{ 13660return uuid_generate_time_safe (); 13661 ; 13662 return 0; 13663} 13664_ACEOF 13665if ac_fn_c_try_link "$LINENO" 13666then : 13667 ac_cv_lib_uuid_uuid_generate_time_safe=yes 13668else $as_nop 13669 ac_cv_lib_uuid_uuid_generate_time_safe=no 13670fi 13671rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13672 conftest$ac_exeext conftest.$ac_ext 13673LIBS=$ac_check_lib_save_LIBS 13674fi 13675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate_time_safe" >&5 13676printf "%s\n" "$ac_cv_lib_uuid_uuid_generate_time_safe" >&6; } 13677if test "x$ac_cv_lib_uuid_uuid_generate_time_safe" = xyes 13678then : 13679 have_uuid=yes 13680 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h 13681 13682fi 13683 13684LIBS=$py_check_lib_save_LIBS 13685 13686fi 13687 13688done 13689 if test "x$have_uuid" = xyes 13690then : 13691 13692 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""} 13693 LIBUUID_LIBS=${LIBUUID_LIBS-"-luuid"} 13694 13695fi 13696 13697CFLAGS=$save_CFLAGS 13698CPPFLAGS=$save_CPPFLAGS 13699LDFLAGS=$save_LDFLAGS 13700LIBS=$save_LIBS 13701 13702 13703 13704 13705else 13706 LIBUUID_CFLAGS=$pkg_cv_LIBUUID_CFLAGS 13707 LIBUUID_LIBS=$pkg_cv_LIBUUID_LIBS 13708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13709printf "%s\n" "yes" >&6; } 13710 have_uuid=yes 13711 printf "%s\n" "#define HAVE_UUID_H 1" >>confdefs.h 13712 13713 printf "%s\n" "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h 13714 13715 13716fi 13717 13718fi 13719 13720if test "x$have_uuid" = xmissing 13721then : 13722 13723 for ac_header in uuid/uuid.h 13724do : 13725 ac_fn_c_check_header_compile "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default" 13726if test "x$ac_cv_header_uuid_uuid_h" = xyes 13727then : 13728 printf "%s\n" "#define HAVE_UUID_UUID_H 1" >>confdefs.h 13729 13730 ac_fn_c_check_func "$LINENO" "uuid_generate_time" "ac_cv_func_uuid_generate_time" 13731if test "x$ac_cv_func_uuid_generate_time" = xyes 13732then : 13733 13734 have_uuid=yes 13735 LIBUUID_CFLAGS=${LIBUUID_CFLAGS-""} 13736 LIBUUID_LIBS=${LIBUUID_LIBS-""} 13737 13738fi 13739 13740 13741fi 13742 13743done 13744 13745fi 13746 13747if test "x$have_uuid" = xmissing 13748then : 13749 have_uuid=no 13750fi 13751 13752# 'Real Time' functions on Solaris 13753# posix4 on Solaris 2.6 13754# pthread (first!) on Linux 13755{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 13756printf %s "checking for library containing sem_init... " >&6; } 13757if test ${ac_cv_search_sem_init+y} 13758then : 13759 printf %s "(cached) " >&6 13760else $as_nop 13761 ac_func_search_save_LIBS=$LIBS 13762cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13763/* end confdefs.h. */ 13764 13765/* Override any GCC internal prototype to avoid an error. 13766 Use char because int might match the return type of a GCC 13767 builtin and then its argument prototype would still apply. */ 13768char sem_init (); 13769int 13770main (void) 13771{ 13772return sem_init (); 13773 ; 13774 return 0; 13775} 13776_ACEOF 13777for ac_lib in '' pthread rt posix4 13778do 13779 if test -z "$ac_lib"; then 13780 ac_res="none required" 13781 else 13782 ac_res=-l$ac_lib 13783 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13784 fi 13785 if ac_fn_c_try_link "$LINENO" 13786then : 13787 ac_cv_search_sem_init=$ac_res 13788fi 13789rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13790 conftest$ac_exeext 13791 if test ${ac_cv_search_sem_init+y} 13792then : 13793 break 13794fi 13795done 13796if test ${ac_cv_search_sem_init+y} 13797then : 13798 13799else $as_nop 13800 ac_cv_search_sem_init=no 13801fi 13802rm conftest.$ac_ext 13803LIBS=$ac_func_search_save_LIBS 13804fi 13805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 13806printf "%s\n" "$ac_cv_search_sem_init" >&6; } 13807ac_res=$ac_cv_search_sem_init 13808if test "$ac_res" != no 13809then : 13810 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13811 13812fi 13813 13814 13815# check if we need libintl for locale functions 13816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 13817printf %s "checking for textdomain in -lintl... " >&6; } 13818if test ${ac_cv_lib_intl_textdomain+y} 13819then : 13820 printf %s "(cached) " >&6 13821else $as_nop 13822 ac_check_lib_save_LIBS=$LIBS 13823LIBS="-lintl $LIBS" 13824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13825/* end confdefs.h. */ 13826 13827/* Override any GCC internal prototype to avoid an error. 13828 Use char because int might match the return type of a GCC 13829 builtin and then its argument prototype would still apply. */ 13830char textdomain (); 13831int 13832main (void) 13833{ 13834return textdomain (); 13835 ; 13836 return 0; 13837} 13838_ACEOF 13839if ac_fn_c_try_link "$LINENO" 13840then : 13841 ac_cv_lib_intl_textdomain=yes 13842else $as_nop 13843 ac_cv_lib_intl_textdomain=no 13844fi 13845rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13846 conftest$ac_exeext conftest.$ac_ext 13847LIBS=$ac_check_lib_save_LIBS 13848fi 13849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 13850printf "%s\n" "$ac_cv_lib_intl_textdomain" >&6; } 13851if test "x$ac_cv_lib_intl_textdomain" = xyes 13852then : 13853 13854printf "%s\n" "#define WITH_LIBINTL 1" >>confdefs.h 13855 13856 LIBS="-lintl $LIBS" 13857fi 13858 13859 13860# checks for system dependent C++ extensions support 13861case "$ac_sys_system" in 13862 AIX*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 13863printf %s "checking for genuine AIX C++ extensions support... " >&6; } 13864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13865/* end confdefs.h. */ 13866 13867 #include <load.h> 13868int 13869main (void) 13870{ 13871loadAndInit("", 0, "") 13872 ; 13873 return 0; 13874} 13875 13876_ACEOF 13877if ac_fn_c_try_link "$LINENO" 13878then : 13879 13880 13881printf "%s\n" "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h 13882 13883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13884printf "%s\n" "yes" >&6; } 13885 13886else $as_nop 13887 13888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 13889printf "%s\n" "no" >&6; } 13890 13891fi 13892rm -f core conftest.err conftest.$ac_objext conftest.beam \ 13893 conftest$ac_exeext conftest.$ac_ext 13894# BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag 13895# of the AIX system used to build/package Python executable. This tag serves 13896# as a baseline for bdist module packages 13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5 13898printf %s "checking for the system builddate... " >&6; } 13899 AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }') 13900 13901printf "%s\n" "#define AIX_BUILDDATE $AIX_BUILDDATE" >>confdefs.h 13902 13903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5 13904printf "%s\n" "$AIX_BUILDDATE" >&6; } 13905 ;; 13906 *) ;; 13907esac 13908 13909# check for systems that require aligned memory access 13910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 13911printf %s "checking aligned memory access is required... " >&6; } 13912if test ${ac_cv_aligned_required+y} 13913then : 13914 printf %s "(cached) " >&6 13915else $as_nop 13916 if test "$cross_compiling" = yes 13917then : 13918 13919# "yes" changes the hash function to FNV, which causes problems with Numba 13920# (https://github.com/numba/numba/blob/0.59.0/numba/cpython/hashing.py#L470). 13921if test "$ac_sys_system" = "Linux-android"; then 13922 ac_cv_aligned_required=no 13923else 13924 ac_cv_aligned_required=yes 13925fi 13926else $as_nop 13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13928/* end confdefs.h. */ 13929 13930int main(void) 13931{ 13932 char s[16]; 13933 int i, *p1, *p2; 13934 for (i=0; i < 16; i++) 13935 s[i] = i; 13936 p1 = (int*)(s+1); 13937 p2 = (int*)(s+2); 13938 if (*p1 == *p2) 13939 return 1; 13940 return 0; 13941} 13942_ACEOF 13943if ac_fn_c_try_run "$LINENO" 13944then : 13945 ac_cv_aligned_required=no 13946else $as_nop 13947 ac_cv_aligned_required=yes 13948fi 13949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13950 conftest.$ac_objext conftest.beam conftest.$ac_ext 13951fi 13952 13953 13954fi 13955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 13956printf "%s\n" "$ac_cv_aligned_required" >&6; } 13957if test "$ac_cv_aligned_required" = yes ; then 13958 13959printf "%s\n" "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h 13960 13961fi 13962 13963# str, bytes and memoryview hash algorithm 13964 13965 13966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 13967printf %s "checking for --with-hash-algorithm... " >&6; } 13968 13969# Check whether --with-hash_algorithm was given. 13970if test ${with_hash_algorithm+y} 13971then : 13972 withval=$with_hash_algorithm; 13973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 13974printf "%s\n" "$withval" >&6; } 13975case "$withval" in 13976 siphash13) 13977 printf "%s\n" "#define Py_HASH_ALGORITHM 3" >>confdefs.h 13978 13979 ;; 13980 siphash24) 13981 printf "%s\n" "#define Py_HASH_ALGORITHM 1" >>confdefs.h 13982 13983 ;; 13984 fnv) 13985 printf "%s\n" "#define Py_HASH_ALGORITHM 2" >>confdefs.h 13986 13987 ;; 13988 *) 13989 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 13990 ;; 13991esac 13992 13993else $as_nop 13994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default" >&5 13995printf "%s\n" "default" >&6; } 13996fi 13997 13998 13999validate_tzpath() { 14000 # Checks that each element of the path is an absolute path 14001 if test -z "$1"; then 14002 # Empty string is allowed: it indicates no system TZPATH 14003 return 0 14004 fi 14005 14006 # Bad paths are those that don't start with / 14007 if ( echo $1 | grep '\(^\|:\)\([^/]\|$\)' > /dev/null); then 14008 as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5 14009 return 1; 14010 fi 14011} 14012 14013TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo" 14014{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5 14015printf %s "checking for --with-tzpath... " >&6; } 14016 14017# Check whether --with-tzpath was given. 14018if test ${with_tzpath+y} 14019then : 14020 withval=$with_tzpath; 14021case "$withval" in 14022 yes) 14023 as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5 14024 ;; 14025 *) 14026 validate_tzpath "$withval" 14027 TZPATH="$withval" 14028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5 14029printf "%s\n" "\"$withval\"" >&6; } 14030 ;; 14031esac 14032 14033else $as_nop 14034 validate_tzpath "$TZPATH" 14035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5 14036printf "%s\n" "\"$TZPATH\"" >&6; } 14037fi 14038 14039 14040 14041# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. 14042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 14043printf %s "checking for t_open in -lnsl... " >&6; } 14044if test ${ac_cv_lib_nsl_t_open+y} 14045then : 14046 printf %s "(cached) " >&6 14047else $as_nop 14048 ac_check_lib_save_LIBS=$LIBS 14049LIBS="-lnsl $LIBS" 14050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14051/* end confdefs.h. */ 14052 14053/* Override any GCC internal prototype to avoid an error. 14054 Use char because int might match the return type of a GCC 14055 builtin and then its argument prototype would still apply. */ 14056char t_open (); 14057int 14058main (void) 14059{ 14060return t_open (); 14061 ; 14062 return 0; 14063} 14064_ACEOF 14065if ac_fn_c_try_link "$LINENO" 14066then : 14067 ac_cv_lib_nsl_t_open=yes 14068else $as_nop 14069 ac_cv_lib_nsl_t_open=no 14070fi 14071rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14072 conftest$ac_exeext conftest.$ac_ext 14073LIBS=$ac_check_lib_save_LIBS 14074fi 14075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 14076printf "%s\n" "$ac_cv_lib_nsl_t_open" >&6; } 14077if test "x$ac_cv_lib_nsl_t_open" = xyes 14078then : 14079 LIBS="-lnsl $LIBS" 14080fi 14081 # SVR4 14082{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 14083printf %s "checking for socket in -lsocket... " >&6; } 14084if test ${ac_cv_lib_socket_socket+y} 14085then : 14086 printf %s "(cached) " >&6 14087else $as_nop 14088 ac_check_lib_save_LIBS=$LIBS 14089LIBS="-lsocket $LIBS $LIBS" 14090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14091/* end confdefs.h. */ 14092 14093/* Override any GCC internal prototype to avoid an error. 14094 Use char because int might match the return type of a GCC 14095 builtin and then its argument prototype would still apply. */ 14096char socket (); 14097int 14098main (void) 14099{ 14100return socket (); 14101 ; 14102 return 0; 14103} 14104_ACEOF 14105if ac_fn_c_try_link "$LINENO" 14106then : 14107 ac_cv_lib_socket_socket=yes 14108else $as_nop 14109 ac_cv_lib_socket_socket=no 14110fi 14111rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14112 conftest$ac_exeext conftest.$ac_ext 14113LIBS=$ac_check_lib_save_LIBS 14114fi 14115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 14116printf "%s\n" "$ac_cv_lib_socket_socket" >&6; } 14117if test "x$ac_cv_lib_socket_socket" = xyes 14118then : 14119 LIBS="-lsocket $LIBS" 14120fi 14121 # SVR4 sockets 14122 14123case $ac_sys_system/$ac_sys_release in 14124 Haiku*) 14125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lnetwork" >&5 14126printf %s "checking for socket in -lnetwork... " >&6; } 14127if test ${ac_cv_lib_network_socket+y} 14128then : 14129 printf %s "(cached) " >&6 14130else $as_nop 14131 ac_check_lib_save_LIBS=$LIBS 14132LIBS="-lnetwork $LIBS $LIBS" 14133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14134/* end confdefs.h. */ 14135 14136/* Override any GCC internal prototype to avoid an error. 14137 Use char because int might match the return type of a GCC 14138 builtin and then its argument prototype would still apply. */ 14139char socket (); 14140int 14141main (void) 14142{ 14143return socket (); 14144 ; 14145 return 0; 14146} 14147_ACEOF 14148if ac_fn_c_try_link "$LINENO" 14149then : 14150 ac_cv_lib_network_socket=yes 14151else $as_nop 14152 ac_cv_lib_network_socket=no 14153fi 14154rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14155 conftest$ac_exeext conftest.$ac_ext 14156LIBS=$ac_check_lib_save_LIBS 14157fi 14158{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_socket" >&5 14159printf "%s\n" "$ac_cv_lib_network_socket" >&6; } 14160if test "x$ac_cv_lib_network_socket" = xyes 14161then : 14162 LIBS="-lnetwork $LIBS" 14163fi 14164 14165 ;; 14166esac 14167 14168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 14169printf %s "checking for --with-libs... " >&6; } 14170 14171# Check whether --with-libs was given. 14172if test ${with_libs+y} 14173then : 14174 withval=$with_libs; 14175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 14176printf "%s\n" "$withval" >&6; } 14177LIBS="$withval $LIBS" 14178 14179else $as_nop 14180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14181printf "%s\n" "no" >&6; } 14182fi 14183 14184 14185# Check for use of the system expat library 14186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 14187printf %s "checking for --with-system-expat... " >&6; } 14188 14189# Check whether --with-system_expat was given. 14190if test ${with_system_expat+y} 14191then : 14192 withval=$with_system_expat; 14193else $as_nop 14194 with_system_expat="no" 14195fi 14196 14197 14198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 14199printf "%s\n" "$with_system_expat" >&6; } 14200 14201if test "x$with_system_expat" = xyes 14202then : 14203 14204 LIBEXPAT_CFLAGS=${LIBEXPAT_CFLAGS-""} 14205 LIBEXPAT_LDFLAGS=${LIBEXPAT_LDFLAGS-"-lexpat"} 14206 LIBEXPAT_INTERNAL= 14207 14208else $as_nop 14209 14210 LIBEXPAT_CFLAGS="-I\$(srcdir)/Modules/expat" 14211 LIBEXPAT_LDFLAGS="-lm \$(LIBEXPAT_A)" 14212 LIBEXPAT_INTERNAL="\$(LIBEXPAT_HEADERS) \$(LIBEXPAT_A)" 14213 14214fi 14215 14216 14217 14218 14219have_libffi=missing 14220if test "x$ac_sys_system" = xDarwin 14221then : 14222 14223 save_CFLAGS=$CFLAGS 14224save_CPPFLAGS=$CPPFLAGS 14225save_LDFLAGS=$LDFLAGS 14226save_LIBS=$LIBS 14227 14228 14229 CFLAGS="-I${SDKROOT}/usr/include/ffi $CFLAGS" 14230 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 14231if test "x$ac_cv_header_ffi_h" = xyes 14232then : 14233 14234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5 14235printf %s "checking for ffi_call in -lffi... " >&6; } 14236if test ${ac_cv_lib_ffi_ffi_call+y} 14237then : 14238 printf %s "(cached) " >&6 14239else $as_nop 14240 ac_check_lib_save_LIBS=$LIBS 14241LIBS="-lffi $LIBS" 14242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14243/* end confdefs.h. */ 14244 14245/* Override any GCC internal prototype to avoid an error. 14246 Use char because int might match the return type of a GCC 14247 builtin and then its argument prototype would still apply. */ 14248char ffi_call (); 14249int 14250main (void) 14251{ 14252return ffi_call (); 14253 ; 14254 return 0; 14255} 14256_ACEOF 14257if ac_fn_c_try_link "$LINENO" 14258then : 14259 ac_cv_lib_ffi_ffi_call=yes 14260else $as_nop 14261 ac_cv_lib_ffi_ffi_call=no 14262fi 14263rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14264 conftest$ac_exeext conftest.$ac_ext 14265LIBS=$ac_check_lib_save_LIBS 14266fi 14267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5 14268printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; } 14269if test "x$ac_cv_lib_ffi_ffi_call" = xyes 14270then : 14271 14272 have_libffi=yes 14273 LIBFFI_CFLAGS="-I${SDKROOT}/usr/include/ffi -DUSING_APPLE_OS_LIBFFI=1" 14274 LIBFFI_LIBS="-lffi" 14275 14276fi 14277 14278 14279fi 14280 14281 14282CFLAGS=$save_CFLAGS 14283CPPFLAGS=$save_CPPFLAGS 14284LDFLAGS=$save_LDFLAGS 14285LIBS=$save_LIBS 14286 14287 14288 14289fi 14290if test "x$have_libffi" = xmissing 14291then : 14292 14293 14294pkg_failed=no 14295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libffi" >&5 14296printf %s "checking for libffi... " >&6; } 14297 14298if test -n "$LIBFFI_CFLAGS"; then 14299 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 14300 elif test -n "$PKG_CONFIG"; then 14301 if test -n "$PKG_CONFIG" && \ 14302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 14303 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 14304 ac_status=$? 14305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14306 test $ac_status = 0; }; then 14307 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 14308 test "x$?" != "x0" && pkg_failed=yes 14309else 14310 pkg_failed=yes 14311fi 14312 else 14313 pkg_failed=untried 14314fi 14315if test -n "$LIBFFI_LIBS"; then 14316 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 14317 elif test -n "$PKG_CONFIG"; then 14318 if test -n "$PKG_CONFIG" && \ 14319 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 14320 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 14321 ac_status=$? 14322 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14323 test $ac_status = 0; }; then 14324 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 14325 test "x$?" != "x0" && pkg_failed=yes 14326else 14327 pkg_failed=yes 14328fi 14329 else 14330 pkg_failed=untried 14331fi 14332 14333 14334 14335if test $pkg_failed = yes; then 14336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14337printf "%s\n" "no" >&6; } 14338 14339if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14340 _pkg_short_errors_supported=yes 14341else 14342 _pkg_short_errors_supported=no 14343fi 14344 if test $_pkg_short_errors_supported = yes; then 14345 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libffi" 2>&1` 14346 else 14347 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libffi" 2>&1` 14348 fi 14349 # Put the nasty error message in config.log where it belongs 14350 echo "$LIBFFI_PKG_ERRORS" >&5 14351 14352 14353 save_CFLAGS=$CFLAGS 14354save_CPPFLAGS=$CPPFLAGS 14355save_LDFLAGS=$LDFLAGS 14356save_LIBS=$LIBS 14357 14358 14359 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS" 14360 LDFLAGS="$LDFLAGS $LIBFFI_LIBS" 14361 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 14362if test "x$ac_cv_header_ffi_h" = xyes 14363then : 14364 14365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5 14366printf %s "checking for ffi_call in -lffi... " >&6; } 14367if test ${ac_cv_lib_ffi_ffi_call+y} 14368then : 14369 printf %s "(cached) " >&6 14370else $as_nop 14371 ac_check_lib_save_LIBS=$LIBS 14372LIBS="-lffi $LIBS" 14373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14374/* end confdefs.h. */ 14375 14376/* Override any GCC internal prototype to avoid an error. 14377 Use char because int might match the return type of a GCC 14378 builtin and then its argument prototype would still apply. */ 14379char ffi_call (); 14380int 14381main (void) 14382{ 14383return ffi_call (); 14384 ; 14385 return 0; 14386} 14387_ACEOF 14388if ac_fn_c_try_link "$LINENO" 14389then : 14390 ac_cv_lib_ffi_ffi_call=yes 14391else $as_nop 14392 ac_cv_lib_ffi_ffi_call=no 14393fi 14394rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14395 conftest$ac_exeext conftest.$ac_ext 14396LIBS=$ac_check_lib_save_LIBS 14397fi 14398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5 14399printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; } 14400if test "x$ac_cv_lib_ffi_ffi_call" = xyes 14401then : 14402 14403 have_libffi=yes 14404 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""} 14405 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"} 14406 14407else $as_nop 14408 have_libffi=no 14409fi 14410 14411 14412fi 14413 14414 14415CFLAGS=$save_CFLAGS 14416CPPFLAGS=$save_CPPFLAGS 14417LDFLAGS=$save_LDFLAGS 14418LIBS=$save_LIBS 14419 14420 14421 14422elif test $pkg_failed = untried; then 14423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14424printf "%s\n" "no" >&6; } 14425 14426 save_CFLAGS=$CFLAGS 14427save_CPPFLAGS=$CPPFLAGS 14428save_LDFLAGS=$LDFLAGS 14429save_LIBS=$LIBS 14430 14431 14432 CPPFLAGS="$CPPFLAGS $LIBFFI_CFLAGS" 14433 LDFLAGS="$LDFLAGS $LIBFFI_LIBS" 14434 ac_fn_c_check_header_compile "$LINENO" "ffi.h" "ac_cv_header_ffi_h" "$ac_includes_default" 14435if test "x$ac_cv_header_ffi_h" = xyes 14436then : 14437 14438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_call in -lffi" >&5 14439printf %s "checking for ffi_call in -lffi... " >&6; } 14440if test ${ac_cv_lib_ffi_ffi_call+y} 14441then : 14442 printf %s "(cached) " >&6 14443else $as_nop 14444 ac_check_lib_save_LIBS=$LIBS 14445LIBS="-lffi $LIBS" 14446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14447/* end confdefs.h. */ 14448 14449/* Override any GCC internal prototype to avoid an error. 14450 Use char because int might match the return type of a GCC 14451 builtin and then its argument prototype would still apply. */ 14452char ffi_call (); 14453int 14454main (void) 14455{ 14456return ffi_call (); 14457 ; 14458 return 0; 14459} 14460_ACEOF 14461if ac_fn_c_try_link "$LINENO" 14462then : 14463 ac_cv_lib_ffi_ffi_call=yes 14464else $as_nop 14465 ac_cv_lib_ffi_ffi_call=no 14466fi 14467rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14468 conftest$ac_exeext conftest.$ac_ext 14469LIBS=$ac_check_lib_save_LIBS 14470fi 14471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ffi_ffi_call" >&5 14472printf "%s\n" "$ac_cv_lib_ffi_ffi_call" >&6; } 14473if test "x$ac_cv_lib_ffi_ffi_call" = xyes 14474then : 14475 14476 have_libffi=yes 14477 LIBFFI_CFLAGS=${LIBFFI_CFLAGS-""} 14478 LIBFFI_LIBS=${LIBFFI_LIBS-"-lffi"} 14479 14480else $as_nop 14481 have_libffi=no 14482fi 14483 14484 14485fi 14486 14487 14488CFLAGS=$save_CFLAGS 14489CPPFLAGS=$save_CPPFLAGS 14490LDFLAGS=$save_LDFLAGS 14491LIBS=$save_LIBS 14492 14493 14494 14495else 14496 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 14497 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14499printf "%s\n" "yes" >&6; } 14500 have_libffi=yes 14501fi 14502 14503fi 14504 14505if test "x$have_libffi" = xyes 14506then : 14507 14508 ctypes_malloc_closure=no 14509 case $ac_sys_system in #( 14510 Darwin) : 14511 14512 ctypes_malloc_closure=yes 14513 ;; #( 14514 iOS) : 14515 14516 ctypes_malloc_closure=yes 14517 ;; #( 14518 sunos5) : 14519 as_fn_append LIBFFI_LIBS " -mimpure-text" 14520 ;; #( 14521 *) : 14522 ;; 14523esac 14524 if test "x$ctypes_malloc_closure" = xyes 14525then : 14526 14527 MODULE__CTYPES_MALLOC_CLOSURE=_ctypes/malloc_closure.c 14528 as_fn_append LIBFFI_CFLAGS " -DUSING_MALLOC_CLOSURE_DOT_C=1" 14529 14530fi 14531 14532 14533 if test "x$ac_cv_lib_dl_dlopen" = xyes 14534then : 14535 as_fn_append LIBFFI_LIBS " -ldl" 14536fi 14537 14538 save_CFLAGS=$CFLAGS 14539save_CPPFLAGS=$CPPFLAGS 14540save_LDFLAGS=$LDFLAGS 14541save_LIBS=$LIBS 14542 14543 14544 CFLAGS="$LIBFFI_CFLAGS $CFLAGS" 14545 LDFLAGS="$LIBFFI_LIBS $LDFLAGS" 14546 14547 14548 14549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_cif_var" >&5 14550printf %s "checking for ffi_prep_cif_var... " >&6; } 14551if test ${ac_cv_func_ffi_prep_cif_var+y} 14552then : 14553 printf %s "(cached) " >&6 14554else $as_nop 14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14556/* end confdefs.h. */ 14557#include <ffi.h> 14558int 14559main (void) 14560{ 14561void *x=ffi_prep_cif_var 14562 ; 14563 return 0; 14564} 14565_ACEOF 14566if ac_fn_c_try_compile "$LINENO" 14567then : 14568 ac_cv_func_ffi_prep_cif_var=yes 14569else $as_nop 14570 ac_cv_func_ffi_prep_cif_var=no 14571fi 14572rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14573 14574fi 14575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_cif_var" >&5 14576printf "%s\n" "$ac_cv_func_ffi_prep_cif_var" >&6; } 14577 if test "x$ac_cv_func_ffi_prep_cif_var" = xyes 14578then : 14579 14580printf "%s\n" "#define HAVE_FFI_PREP_CIF_VAR 1" >>confdefs.h 14581 14582fi 14583 14584 14585 14586 14587 14588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_prep_closure_loc" >&5 14589printf %s "checking for ffi_prep_closure_loc... " >&6; } 14590if test ${ac_cv_func_ffi_prep_closure_loc+y} 14591then : 14592 printf %s "(cached) " >&6 14593else $as_nop 14594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14595/* end confdefs.h. */ 14596#include <ffi.h> 14597int 14598main (void) 14599{ 14600void *x=ffi_prep_closure_loc 14601 ; 14602 return 0; 14603} 14604_ACEOF 14605if ac_fn_c_try_compile "$LINENO" 14606then : 14607 ac_cv_func_ffi_prep_closure_loc=yes 14608else $as_nop 14609 ac_cv_func_ffi_prep_closure_loc=no 14610fi 14611rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14612 14613fi 14614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_prep_closure_loc" >&5 14615printf "%s\n" "$ac_cv_func_ffi_prep_closure_loc" >&6; } 14616 if test "x$ac_cv_func_ffi_prep_closure_loc" = xyes 14617then : 14618 14619printf "%s\n" "#define HAVE_FFI_PREP_CLOSURE_LOC 1" >>confdefs.h 14620 14621fi 14622 14623 14624 14625 14626 14627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ffi_closure_alloc" >&5 14628printf %s "checking for ffi_closure_alloc... " >&6; } 14629if test ${ac_cv_func_ffi_closure_alloc+y} 14630then : 14631 printf %s "(cached) " >&6 14632else $as_nop 14633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14634/* end confdefs.h. */ 14635#include <ffi.h> 14636int 14637main (void) 14638{ 14639void *x=ffi_closure_alloc 14640 ; 14641 return 0; 14642} 14643_ACEOF 14644if ac_fn_c_try_compile "$LINENO" 14645then : 14646 ac_cv_func_ffi_closure_alloc=yes 14647else $as_nop 14648 ac_cv_func_ffi_closure_alloc=no 14649fi 14650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 14651 14652fi 14653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ffi_closure_alloc" >&5 14654printf "%s\n" "$ac_cv_func_ffi_closure_alloc" >&6; } 14655 if test "x$ac_cv_func_ffi_closure_alloc" = xyes 14656then : 14657 14658printf "%s\n" "#define HAVE_FFI_CLOSURE_ALLOC 1" >>confdefs.h 14659 14660fi 14661 14662 14663 14664 14665CFLAGS=$save_CFLAGS 14666CPPFLAGS=$save_CPPFLAGS 14667LDFLAGS=$save_LDFLAGS 14668LIBS=$save_LIBS 14669 14670 14671 14672fi 14673 14674# Check for use of the system libmpdec library 14675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 14676printf %s "checking for --with-system-libmpdec... " >&6; } 14677 14678# Check whether --with-system_libmpdec was given. 14679if test ${with_system_libmpdec+y} 14680then : 14681 withval=$with_system_libmpdec; 14682else $as_nop 14683 with_system_libmpdec="yes" 14684fi 14685 14686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 14687printf "%s\n" "$with_system_libmpdec" >&6; } 14688 14689 14690 14691if test "x$with_system_libmpdec" = xyes 14692then : 14693 14694pkg_failed=no 14695{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmpdec >= 2.5.0" >&5 14696printf %s "checking for libmpdec >= 2.5.0... " >&6; } 14697 14698if test -n "$LIBMPDEC_CFLAGS"; then 14699 pkg_cv_LIBMPDEC_CFLAGS="$LIBMPDEC_CFLAGS" 14700 elif test -n "$PKG_CONFIG"; then 14701 if test -n "$PKG_CONFIG" && \ 14702 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec >= 2.5.0\""; } >&5 14703 ($PKG_CONFIG --exists --print-errors "libmpdec >= 2.5.0") 2>&5 14704 ac_status=$? 14705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14706 test $ac_status = 0; }; then 14707 pkg_cv_LIBMPDEC_CFLAGS=`$PKG_CONFIG --cflags "libmpdec >= 2.5.0" 2>/dev/null` 14708 test "x$?" != "x0" && pkg_failed=yes 14709else 14710 pkg_failed=yes 14711fi 14712 else 14713 pkg_failed=untried 14714fi 14715if test -n "$LIBMPDEC_LIBS"; then 14716 pkg_cv_LIBMPDEC_LIBS="$LIBMPDEC_LIBS" 14717 elif test -n "$PKG_CONFIG"; then 14718 if test -n "$PKG_CONFIG" && \ 14719 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmpdec >= 2.5.0\""; } >&5 14720 ($PKG_CONFIG --exists --print-errors "libmpdec >= 2.5.0") 2>&5 14721 ac_status=$? 14722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14723 test $ac_status = 0; }; then 14724 pkg_cv_LIBMPDEC_LIBS=`$PKG_CONFIG --libs "libmpdec >= 2.5.0" 2>/dev/null` 14725 test "x$?" != "x0" && pkg_failed=yes 14726else 14727 pkg_failed=yes 14728fi 14729 else 14730 pkg_failed=untried 14731fi 14732 14733 14734 14735if test $pkg_failed = yes; then 14736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14737printf "%s\n" "no" >&6; } 14738 14739if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14740 _pkg_short_errors_supported=yes 14741else 14742 _pkg_short_errors_supported=no 14743fi 14744 if test $_pkg_short_errors_supported = yes; then 14745 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmpdec >= 2.5.0" 2>&1` 14746 else 14747 LIBMPDEC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmpdec >= 2.5.0" 2>&1` 14748 fi 14749 # Put the nasty error message in config.log where it belongs 14750 echo "$LIBMPDEC_PKG_ERRORS" >&5 14751 14752 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""} 14753 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"} 14754 LIBMPDEC_INTERNAL= 14755elif test $pkg_failed = untried; then 14756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 14757printf "%s\n" "no" >&6; } 14758 LIBMPDEC_CFLAGS=${LIBMPDEC_CFLAGS-""} 14759 LIBMPDEC_LIBS=${LIBMPDEC_LIBS-"-lmpdec -lm"} 14760 LIBMPDEC_INTERNAL= 14761else 14762 LIBMPDEC_CFLAGS=$pkg_cv_LIBMPDEC_CFLAGS 14763 LIBMPDEC_LIBS=$pkg_cv_LIBMPDEC_LIBS 14764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14765printf "%s\n" "yes" >&6; } 14766 14767fi 14768else $as_nop 14769 LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec" 14770 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)" 14771 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)" 14772 have_mpdec=yes 14773 with_system_libmpdec=no 14774fi 14775 14776if test "x$with_system_libmpdec" = xyes 14777then : 14778 save_CFLAGS=$CFLAGS 14779save_CPPFLAGS=$CPPFLAGS 14780save_LDFLAGS=$LDFLAGS 14781save_LIBS=$LIBS 14782 14783 14784 CPPFLAGS="$LIBMPDEC_CFLAGS $CPPFLAGS" 14785 LIBS="$LIBMPDEC_LIBS $LIBS" 14786 14787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14788/* end confdefs.h. */ 14789 14790 14791 #include <mpdecimal.h> 14792 #if MPD_VERSION_HEX < 0x02050000 14793 # error "mpdecimal 2.5.0 or higher required" 14794 #endif 14795 14796int 14797main (void) 14798{ 14799const char *x = mpd_version(); 14800 ; 14801 return 0; 14802} 14803_ACEOF 14804if ac_fn_c_try_link "$LINENO" 14805then : 14806 have_mpdec=yes 14807else $as_nop 14808 have_mpdec=no 14809fi 14810rm -f core conftest.err conftest.$ac_objext conftest.beam \ 14811 conftest$ac_exeext conftest.$ac_ext 14812 14813CFLAGS=$save_CFLAGS 14814CPPFLAGS=$save_CPPFLAGS 14815LDFLAGS=$save_LDFLAGS 14816LIBS=$save_LIBS 14817 14818 14819else $as_nop 14820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the bundled copy of libmpdecimal is scheduled for removal in Python 3.15; consider using a system installed mpdecimal library." >&5 14821printf "%s\n" "$as_me: WARNING: the bundled copy of libmpdecimal is scheduled for removal in Python 3.15; consider using a system installed mpdecimal library." >&2;} 14822fi 14823 14824if test "$with_system_libmpdec" = "yes" && test "$have_mpdec" = "no" 14825then : 14826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no system libmpdecimal found; falling back to bundled libmpdecimal (deprecated and scheduled for removal in Python 3.15)" >&5 14827printf "%s\n" "$as_me: WARNING: no system libmpdecimal found; falling back to bundled libmpdecimal (deprecated and scheduled for removal in Python 3.15)" >&2;} 14828 LIBMPDEC_CFLAGS="-I\$(srcdir)/Modules/_decimal/libmpdec" 14829 LIBMPDEC_LIBS="-lm \$(LIBMPDEC_A)" 14830 LIBMPDEC_INTERNAL="\$(LIBMPDEC_HEADERS) \$(LIBMPDEC_A)" 14831 have_mpdec=yes 14832 with_system_libmpdec=no 14833fi 14834 14835# Disable forced inlining in debug builds, see GH-94847 14836if test "x$with_pydebug" = xyes 14837then : 14838 as_fn_append LIBMPDEC_CFLAGS " -DTEST_COVERAGE" 14839fi 14840 14841# Check whether _decimal should use a coroutine-local or thread-local context 14842{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 14843printf %s "checking for --with-decimal-contextvar... " >&6; } 14844 14845# Check whether --with-decimal_contextvar was given. 14846if test ${with_decimal_contextvar+y} 14847then : 14848 withval=$with_decimal_contextvar; 14849else $as_nop 14850 with_decimal_contextvar="yes" 14851fi 14852 14853 14854if test "$with_decimal_contextvar" != "no" 14855then 14856 14857printf "%s\n" "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h 14858 14859fi 14860 14861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 14862printf "%s\n" "$with_decimal_contextvar" >&6; } 14863 14864if test "x$with_system_libmpdec" = xno 14865then : 14866 # Check for libmpdec machine flavor 14867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for decimal libmpdec machine" >&5 14868printf %s "checking for decimal libmpdec machine... " >&6; } 14869 case $ac_sys_system in #( 14870 Darwin*) : 14871 libmpdec_system=Darwin ;; #( 14872 SunOS*) : 14873 libmpdec_system=sunos ;; #( 14874 *) : 14875 libmpdec_system=other 14876 ;; 14877esac 14878 14879 libmpdec_machine=unknown 14880 if test "$libmpdec_system" = Darwin; then 14881 # universal here means: build libmpdec with the same arch options 14882 # the python interpreter was built with 14883 libmpdec_machine=universal 14884 elif test $ac_cv_sizeof_size_t -eq 8; then 14885 if test "$ac_cv_gcc_asm_for_x64" = yes; then 14886 libmpdec_machine=x64 14887 elif test "$ac_cv_type___uint128_t" = yes; then 14888 libmpdec_machine=uint128 14889 else 14890 libmpdec_machine=ansi64 14891 fi 14892 elif test $ac_cv_sizeof_size_t -eq 4; then 14893 if test "$ac_cv_gcc_asm_for_x87" = yes -a "$libmpdec_system" != sunos; then 14894 case $CC in #( 14895 *gcc*) : 14896 libmpdec_machine=ppro ;; #( 14897 *clang*) : 14898 libmpdec_machine=ppro ;; #( 14899 *) : 14900 libmpdec_machine=ansi32 14901 ;; 14902esac 14903 else 14904 libmpdec_machine=ansi32 14905 fi 14906 fi 14907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $libmpdec_machine" >&5 14908printf "%s\n" "$libmpdec_machine" >&6; } 14909 14910 case $libmpdec_machine in #( 14911 x64) : 14912 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DASM=1" ;; #( 14913 uint128) : 14914 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1 -DHAVE_UINT128_T=1" ;; #( 14915 ansi64) : 14916 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_64=1 -DANSI=1" ;; #( 14917 ppro) : 14918 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DASM=1 -Wno-unknown-pragmas" ;; #( 14919 ansi32) : 14920 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1" ;; #( 14921 ansi-legacy) : 14922 as_fn_append LIBMPDEC_CFLAGS " -DCONFIG_32=1 -DANSI=1 -DLEGACY_COMPILER=1" ;; #( 14923 universal) : 14924 as_fn_append LIBMPDEC_CFLAGS " -DUNIVERSAL=1" ;; #( 14925 *) : 14926 as_fn_error $? "_decimal: unsupported architecture" "$LINENO" 5 14927 ;; 14928esac 14929fi 14930 14931if test "$have_ipa_pure_const_bug" = yes; then 14932 # Some versions of gcc miscompile inline asm: 14933 # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 14934 # https://gcc.gnu.org/ml/gcc/2010-11/msg00366.html 14935 as_fn_append LIBMPDEC_CFLAGS " -fno-ipa-pure-const" 14936fi 14937 14938if test "$have_glibc_memmove_bug" = yes; then 14939 # _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: 14940 # https://sourceware.org/ml/libc-alpha/2010-12/msg00009.html 14941 as_fn_append LIBMPDEC_CFLAGS " -U_FORTIFY_SOURCE" 14942fi 14943 14944 14945 14946 14947 14948 14949 14950 14951 if test "$ac_sys_system" = "Emscripten" -a -z "$LIBSQLITE3_CFLAGS" -a -z "$LIBSQLITE3_LIBS" 14952then : 14953 14954 LIBSQLITE3_CFLAGS="-sUSE_SQLITE3" 14955 LIBSQLITE3_LIBS="-sUSE_SQLITE3" 14956 14957fi 14958 14959 14960 14961 14962 14963pkg_failed=no 14964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.15.2" >&5 14965printf %s "checking for sqlite3 >= 3.15.2... " >&6; } 14966 14967if test -n "$LIBSQLITE3_CFLAGS"; then 14968 pkg_cv_LIBSQLITE3_CFLAGS="$LIBSQLITE3_CFLAGS" 14969 elif test -n "$PKG_CONFIG"; then 14970 if test -n "$PKG_CONFIG" && \ 14971 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5 14972 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5 14973 ac_status=$? 14974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14975 test $ac_status = 0; }; then 14976 pkg_cv_LIBSQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.15.2" 2>/dev/null` 14977 test "x$?" != "x0" && pkg_failed=yes 14978else 14979 pkg_failed=yes 14980fi 14981 else 14982 pkg_failed=untried 14983fi 14984if test -n "$LIBSQLITE3_LIBS"; then 14985 pkg_cv_LIBSQLITE3_LIBS="$LIBSQLITE3_LIBS" 14986 elif test -n "$PKG_CONFIG"; then 14987 if test -n "$PKG_CONFIG" && \ 14988 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.15.2\""; } >&5 14989 ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.15.2") 2>&5 14990 ac_status=$? 14991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14992 test $ac_status = 0; }; then 14993 pkg_cv_LIBSQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.15.2" 2>/dev/null` 14994 test "x$?" != "x0" && pkg_failed=yes 14995else 14996 pkg_failed=yes 14997fi 14998 else 14999 pkg_failed=untried 15000fi 15001 15002 15003 15004if test $pkg_failed = yes; then 15005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15006printf "%s\n" "no" >&6; } 15007 15008if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15009 _pkg_short_errors_supported=yes 15010else 15011 _pkg_short_errors_supported=no 15012fi 15013 if test $_pkg_short_errors_supported = yes; then 15014 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1` 15015 else 15016 LIBSQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.15.2" 2>&1` 15017 fi 15018 # Put the nasty error message in config.log where it belongs 15019 echo "$LIBSQLITE3_PKG_ERRORS" >&5 15020 15021 15022 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""} 15023 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"} 15024 15025 15026elif test $pkg_failed = untried; then 15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15028printf "%s\n" "no" >&6; } 15029 15030 LIBSQLITE3_CFLAGS=${LIBSQLITE3_CFLAGS-""} 15031 LIBSQLITE3_LIBS=${LIBSQLITE3_LIBS-"-lsqlite3"} 15032 15033 15034else 15035 LIBSQLITE3_CFLAGS=$pkg_cv_LIBSQLITE3_CFLAGS 15036 LIBSQLITE3_LIBS=$pkg_cv_LIBSQLITE3_LIBS 15037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15038printf "%s\n" "yes" >&6; } 15039 15040fi 15041as_fn_append LIBSQLITE3_CFLAGS ' -I$(srcdir)/Modules/_sqlite' 15042 15043 15044 15045save_CFLAGS=$CFLAGS 15046save_CPPFLAGS=$CPPFLAGS 15047save_LDFLAGS=$LDFLAGS 15048save_LIBS=$LIBS 15049 15050 15051 CPPFLAGS="$CPPFLAGS $LIBSQLITE3_CFLAGS" 15052 LDFLAGS="$LIBSQLITE3_LIBS $LDFLAGS" 15053 15054 ac_fn_c_check_header_compile "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 15055if test "x$ac_cv_header_sqlite3_h" = xyes 15056then : 15057 15058 have_sqlite3=yes 15059 15060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15061/* end confdefs.h. */ 15062 15063 15064 #include <sqlite3.h> 15065 #if SQLITE_VERSION_NUMBER < 3015002 15066 # error "SQLite 3.15.2 or higher required" 15067 #endif 15068 15069int 15070main (void) 15071{ 15072 15073 ; 15074 return 0; 15075} 15076 15077_ACEOF 15078if ac_fn_c_try_compile "$LINENO" 15079then : 15080 15081 have_supported_sqlite3=yes 15082 15083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_bind_double in -lsqlite3" >&5 15084printf %s "checking for sqlite3_bind_double in -lsqlite3... " >&6; } 15085if test ${ac_cv_lib_sqlite3_sqlite3_bind_double+y} 15086then : 15087 printf %s "(cached) " >&6 15088else $as_nop 15089 ac_check_lib_save_LIBS=$LIBS 15090LIBS="-lsqlite3 $LIBS" 15091cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15092/* end confdefs.h. */ 15093 15094/* Override any GCC internal prototype to avoid an error. 15095 Use char because int might match the return type of a GCC 15096 builtin and then its argument prototype would still apply. */ 15097char sqlite3_bind_double (); 15098int 15099main (void) 15100{ 15101return sqlite3_bind_double (); 15102 ; 15103 return 0; 15104} 15105_ACEOF 15106if ac_fn_c_try_link "$LINENO" 15107then : 15108 ac_cv_lib_sqlite3_sqlite3_bind_double=yes 15109else $as_nop 15110 ac_cv_lib_sqlite3_sqlite3_bind_double=no 15111fi 15112rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15113 conftest$ac_exeext conftest.$ac_ext 15114LIBS=$ac_check_lib_save_LIBS 15115fi 15116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_bind_double" >&5 15117printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_bind_double" >&6; } 15118if test "x$ac_cv_lib_sqlite3_sqlite3_bind_double" = xyes 15119then : 15120 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 15121 15122 LIBS="-lsqlite3 $LIBS" 15123 15124else $as_nop 15125 15126 have_supported_sqlite3=no 15127 15128fi 15129 15130 15131 15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_decltype in -lsqlite3" >&5 15133printf %s "checking for sqlite3_column_decltype in -lsqlite3... " >&6; } 15134if test ${ac_cv_lib_sqlite3_sqlite3_column_decltype+y} 15135then : 15136 printf %s "(cached) " >&6 15137else $as_nop 15138 ac_check_lib_save_LIBS=$LIBS 15139LIBS="-lsqlite3 $LIBS" 15140cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141/* end confdefs.h. */ 15142 15143/* Override any GCC internal prototype to avoid an error. 15144 Use char because int might match the return type of a GCC 15145 builtin and then its argument prototype would still apply. */ 15146char sqlite3_column_decltype (); 15147int 15148main (void) 15149{ 15150return sqlite3_column_decltype (); 15151 ; 15152 return 0; 15153} 15154_ACEOF 15155if ac_fn_c_try_link "$LINENO" 15156then : 15157 ac_cv_lib_sqlite3_sqlite3_column_decltype=yes 15158else $as_nop 15159 ac_cv_lib_sqlite3_sqlite3_column_decltype=no 15160fi 15161rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15162 conftest$ac_exeext conftest.$ac_ext 15163LIBS=$ac_check_lib_save_LIBS 15164fi 15165{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_decltype" >&5 15166printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_decltype" >&6; } 15167if test "x$ac_cv_lib_sqlite3_sqlite3_column_decltype" = xyes 15168then : 15169 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 15170 15171 LIBS="-lsqlite3 $LIBS" 15172 15173else $as_nop 15174 15175 have_supported_sqlite3=no 15176 15177fi 15178 15179 15180 15181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_column_double in -lsqlite3" >&5 15182printf %s "checking for sqlite3_column_double in -lsqlite3... " >&6; } 15183if test ${ac_cv_lib_sqlite3_sqlite3_column_double+y} 15184then : 15185 printf %s "(cached) " >&6 15186else $as_nop 15187 ac_check_lib_save_LIBS=$LIBS 15188LIBS="-lsqlite3 $LIBS" 15189cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15190/* end confdefs.h. */ 15191 15192/* Override any GCC internal prototype to avoid an error. 15193 Use char because int might match the return type of a GCC 15194 builtin and then its argument prototype would still apply. */ 15195char sqlite3_column_double (); 15196int 15197main (void) 15198{ 15199return sqlite3_column_double (); 15200 ; 15201 return 0; 15202} 15203_ACEOF 15204if ac_fn_c_try_link "$LINENO" 15205then : 15206 ac_cv_lib_sqlite3_sqlite3_column_double=yes 15207else $as_nop 15208 ac_cv_lib_sqlite3_sqlite3_column_double=no 15209fi 15210rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15211 conftest$ac_exeext conftest.$ac_ext 15212LIBS=$ac_check_lib_save_LIBS 15213fi 15214{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_column_double" >&5 15215printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_column_double" >&6; } 15216if test "x$ac_cv_lib_sqlite3_sqlite3_column_double" = xyes 15217then : 15218 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 15219 15220 LIBS="-lsqlite3 $LIBS" 15221 15222else $as_nop 15223 15224 have_supported_sqlite3=no 15225 15226fi 15227 15228 15229 15230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_complete in -lsqlite3" >&5 15231printf %s "checking for sqlite3_complete in -lsqlite3... " >&6; } 15232if test ${ac_cv_lib_sqlite3_sqlite3_complete+y} 15233then : 15234 printf %s "(cached) " >&6 15235else $as_nop 15236 ac_check_lib_save_LIBS=$LIBS 15237LIBS="-lsqlite3 $LIBS" 15238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15239/* end confdefs.h. */ 15240 15241/* Override any GCC internal prototype to avoid an error. 15242 Use char because int might match the return type of a GCC 15243 builtin and then its argument prototype would still apply. */ 15244char sqlite3_complete (); 15245int 15246main (void) 15247{ 15248return sqlite3_complete (); 15249 ; 15250 return 0; 15251} 15252_ACEOF 15253if ac_fn_c_try_link "$LINENO" 15254then : 15255 ac_cv_lib_sqlite3_sqlite3_complete=yes 15256else $as_nop 15257 ac_cv_lib_sqlite3_sqlite3_complete=no 15258fi 15259rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15260 conftest$ac_exeext conftest.$ac_ext 15261LIBS=$ac_check_lib_save_LIBS 15262fi 15263{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_complete" >&5 15264printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_complete" >&6; } 15265if test "x$ac_cv_lib_sqlite3_sqlite3_complete" = xyes 15266then : 15267 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 15268 15269 LIBS="-lsqlite3 $LIBS" 15270 15271else $as_nop 15272 15273 have_supported_sqlite3=no 15274 15275fi 15276 15277 15278 15279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_progress_handler in -lsqlite3" >&5 15280printf %s "checking for sqlite3_progress_handler in -lsqlite3... " >&6; } 15281if test ${ac_cv_lib_sqlite3_sqlite3_progress_handler+y} 15282then : 15283 printf %s "(cached) " >&6 15284else $as_nop 15285 ac_check_lib_save_LIBS=$LIBS 15286LIBS="-lsqlite3 $LIBS" 15287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15288/* end confdefs.h. */ 15289 15290/* Override any GCC internal prototype to avoid an error. 15291 Use char because int might match the return type of a GCC 15292 builtin and then its argument prototype would still apply. */ 15293char sqlite3_progress_handler (); 15294int 15295main (void) 15296{ 15297return sqlite3_progress_handler (); 15298 ; 15299 return 0; 15300} 15301_ACEOF 15302if ac_fn_c_try_link "$LINENO" 15303then : 15304 ac_cv_lib_sqlite3_sqlite3_progress_handler=yes 15305else $as_nop 15306 ac_cv_lib_sqlite3_sqlite3_progress_handler=no 15307fi 15308rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15309 conftest$ac_exeext conftest.$ac_ext 15310LIBS=$ac_check_lib_save_LIBS 15311fi 15312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_progress_handler" >&5 15313printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_progress_handler" >&6; } 15314if test "x$ac_cv_lib_sqlite3_sqlite3_progress_handler" = xyes 15315then : 15316 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 15317 15318 LIBS="-lsqlite3 $LIBS" 15319 15320else $as_nop 15321 15322 have_supported_sqlite3=no 15323 15324fi 15325 15326 15327 15328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_result_double in -lsqlite3" >&5 15329printf %s "checking for sqlite3_result_double in -lsqlite3... " >&6; } 15330if test ${ac_cv_lib_sqlite3_sqlite3_result_double+y} 15331then : 15332 printf %s "(cached) " >&6 15333else $as_nop 15334 ac_check_lib_save_LIBS=$LIBS 15335LIBS="-lsqlite3 $LIBS" 15336cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15337/* end confdefs.h. */ 15338 15339/* Override any GCC internal prototype to avoid an error. 15340 Use char because int might match the return type of a GCC 15341 builtin and then its argument prototype would still apply. */ 15342char sqlite3_result_double (); 15343int 15344main (void) 15345{ 15346return sqlite3_result_double (); 15347 ; 15348 return 0; 15349} 15350_ACEOF 15351if ac_fn_c_try_link "$LINENO" 15352then : 15353 ac_cv_lib_sqlite3_sqlite3_result_double=yes 15354else $as_nop 15355 ac_cv_lib_sqlite3_sqlite3_result_double=no 15356fi 15357rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15358 conftest$ac_exeext conftest.$ac_ext 15359LIBS=$ac_check_lib_save_LIBS 15360fi 15361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_result_double" >&5 15362printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_result_double" >&6; } 15363if test "x$ac_cv_lib_sqlite3_sqlite3_result_double" = xyes 15364then : 15365 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 15366 15367 LIBS="-lsqlite3 $LIBS" 15368 15369else $as_nop 15370 15371 have_supported_sqlite3=no 15372 15373fi 15374 15375 15376 15377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_set_authorizer in -lsqlite3" >&5 15378printf %s "checking for sqlite3_set_authorizer in -lsqlite3... " >&6; } 15379if test ${ac_cv_lib_sqlite3_sqlite3_set_authorizer+y} 15380then : 15381 printf %s "(cached) " >&6 15382else $as_nop 15383 ac_check_lib_save_LIBS=$LIBS 15384LIBS="-lsqlite3 $LIBS" 15385cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15386/* end confdefs.h. */ 15387 15388/* Override any GCC internal prototype to avoid an error. 15389 Use char because int might match the return type of a GCC 15390 builtin and then its argument prototype would still apply. */ 15391char sqlite3_set_authorizer (); 15392int 15393main (void) 15394{ 15395return sqlite3_set_authorizer (); 15396 ; 15397 return 0; 15398} 15399_ACEOF 15400if ac_fn_c_try_link "$LINENO" 15401then : 15402 ac_cv_lib_sqlite3_sqlite3_set_authorizer=yes 15403else $as_nop 15404 ac_cv_lib_sqlite3_sqlite3_set_authorizer=no 15405fi 15406rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15407 conftest$ac_exeext conftest.$ac_ext 15408LIBS=$ac_check_lib_save_LIBS 15409fi 15410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&5 15411printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_set_authorizer" >&6; } 15412if test "x$ac_cv_lib_sqlite3_sqlite3_set_authorizer" = xyes 15413then : 15414 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 15415 15416 LIBS="-lsqlite3 $LIBS" 15417 15418else $as_nop 15419 15420 have_supported_sqlite3=no 15421 15422fi 15423 15424 15425 15426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace_v2 in -lsqlite3" >&5 15427printf %s "checking for sqlite3_trace_v2 in -lsqlite3... " >&6; } 15428if test ${ac_cv_lib_sqlite3_sqlite3_trace_v2+y} 15429then : 15430 printf %s "(cached) " >&6 15431else $as_nop 15432 ac_check_lib_save_LIBS=$LIBS 15433LIBS="-lsqlite3 $LIBS" 15434cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15435/* end confdefs.h. */ 15436 15437/* Override any GCC internal prototype to avoid an error. 15438 Use char because int might match the return type of a GCC 15439 builtin and then its argument prototype would still apply. */ 15440char sqlite3_trace_v2 (); 15441int 15442main (void) 15443{ 15444return sqlite3_trace_v2 (); 15445 ; 15446 return 0; 15447} 15448_ACEOF 15449if ac_fn_c_try_link "$LINENO" 15450then : 15451 ac_cv_lib_sqlite3_sqlite3_trace_v2=yes 15452else $as_nop 15453 ac_cv_lib_sqlite3_sqlite3_trace_v2=no 15454fi 15455rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15456 conftest$ac_exeext conftest.$ac_ext 15457LIBS=$ac_check_lib_save_LIBS 15458fi 15459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace_v2" >&5 15460printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace_v2" >&6; } 15461if test "x$ac_cv_lib_sqlite3_sqlite3_trace_v2" = xyes 15462then : 15463 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 15464 15465 LIBS="-lsqlite3 $LIBS" 15466 15467else $as_nop 15468 15469 15470 15471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_trace in -lsqlite3" >&5 15472printf %s "checking for sqlite3_trace in -lsqlite3... " >&6; } 15473if test ${ac_cv_lib_sqlite3_sqlite3_trace+y} 15474then : 15475 printf %s "(cached) " >&6 15476else $as_nop 15477 ac_check_lib_save_LIBS=$LIBS 15478LIBS="-lsqlite3 $LIBS" 15479cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15480/* end confdefs.h. */ 15481 15482/* Override any GCC internal prototype to avoid an error. 15483 Use char because int might match the return type of a GCC 15484 builtin and then its argument prototype would still apply. */ 15485char sqlite3_trace (); 15486int 15487main (void) 15488{ 15489return sqlite3_trace (); 15490 ; 15491 return 0; 15492} 15493_ACEOF 15494if ac_fn_c_try_link "$LINENO" 15495then : 15496 ac_cv_lib_sqlite3_sqlite3_trace=yes 15497else $as_nop 15498 ac_cv_lib_sqlite3_sqlite3_trace=no 15499fi 15500rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15501 conftest$ac_exeext conftest.$ac_ext 15502LIBS=$ac_check_lib_save_LIBS 15503fi 15504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_trace" >&5 15505printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_trace" >&6; } 15506if test "x$ac_cv_lib_sqlite3_sqlite3_trace" = xyes 15507then : 15508 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 15509 15510 LIBS="-lsqlite3 $LIBS" 15511 15512else $as_nop 15513 15514 have_supported_sqlite3=no 15515 15516fi 15517 15518 15519 15520 15521fi 15522 15523 15524 15525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_value_double in -lsqlite3" >&5 15526printf %s "checking for sqlite3_value_double in -lsqlite3... " >&6; } 15527if test ${ac_cv_lib_sqlite3_sqlite3_value_double+y} 15528then : 15529 printf %s "(cached) " >&6 15530else $as_nop 15531 ac_check_lib_save_LIBS=$LIBS 15532LIBS="-lsqlite3 $LIBS" 15533cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15534/* end confdefs.h. */ 15535 15536/* Override any GCC internal prototype to avoid an error. 15537 Use char because int might match the return type of a GCC 15538 builtin and then its argument prototype would still apply. */ 15539char sqlite3_value_double (); 15540int 15541main (void) 15542{ 15543return sqlite3_value_double (); 15544 ; 15545 return 0; 15546} 15547_ACEOF 15548if ac_fn_c_try_link "$LINENO" 15549then : 15550 ac_cv_lib_sqlite3_sqlite3_value_double=yes 15551else $as_nop 15552 ac_cv_lib_sqlite3_sqlite3_value_double=no 15553fi 15554rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15555 conftest$ac_exeext conftest.$ac_ext 15556LIBS=$ac_check_lib_save_LIBS 15557fi 15558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_value_double" >&5 15559printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_value_double" >&6; } 15560if test "x$ac_cv_lib_sqlite3_sqlite3_value_double" = xyes 15561then : 15562 printf "%s\n" "#define HAVE_LIBSQLITE3 1" >>confdefs.h 15563 15564 LIBS="-lsqlite3 $LIBS" 15565 15566else $as_nop 15567 15568 have_supported_sqlite3=no 15569 15570fi 15571 15572 15573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_load_extension in -lsqlite3" >&5 15574printf %s "checking for sqlite3_load_extension in -lsqlite3... " >&6; } 15575if test ${ac_cv_lib_sqlite3_sqlite3_load_extension+y} 15576then : 15577 printf %s "(cached) " >&6 15578else $as_nop 15579 ac_check_lib_save_LIBS=$LIBS 15580LIBS="-lsqlite3 $LIBS" 15581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15582/* end confdefs.h. */ 15583 15584/* Override any GCC internal prototype to avoid an error. 15585 Use char because int might match the return type of a GCC 15586 builtin and then its argument prototype would still apply. */ 15587char sqlite3_load_extension (); 15588int 15589main (void) 15590{ 15591return sqlite3_load_extension (); 15592 ; 15593 return 0; 15594} 15595_ACEOF 15596if ac_fn_c_try_link "$LINENO" 15597then : 15598 ac_cv_lib_sqlite3_sqlite3_load_extension=yes 15599else $as_nop 15600 ac_cv_lib_sqlite3_sqlite3_load_extension=no 15601fi 15602rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15603 conftest$ac_exeext conftest.$ac_ext 15604LIBS=$ac_check_lib_save_LIBS 15605fi 15606{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_load_extension" >&5 15607printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_load_extension" >&6; } 15608if test "x$ac_cv_lib_sqlite3_sqlite3_load_extension" = xyes 15609then : 15610 have_sqlite3_load_extension=yes 15611else $as_nop 15612 have_sqlite3_load_extension=no 15613 15614fi 15615 15616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3_serialize in -lsqlite3" >&5 15617printf %s "checking for sqlite3_serialize in -lsqlite3... " >&6; } 15618if test ${ac_cv_lib_sqlite3_sqlite3_serialize+y} 15619then : 15620 printf %s "(cached) " >&6 15621else $as_nop 15622 ac_check_lib_save_LIBS=$LIBS 15623LIBS="-lsqlite3 $LIBS" 15624cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15625/* end confdefs.h. */ 15626 15627/* Override any GCC internal prototype to avoid an error. 15628 Use char because int might match the return type of a GCC 15629 builtin and then its argument prototype would still apply. */ 15630char sqlite3_serialize (); 15631int 15632main (void) 15633{ 15634return sqlite3_serialize (); 15635 ; 15636 return 0; 15637} 15638_ACEOF 15639if ac_fn_c_try_link "$LINENO" 15640then : 15641 ac_cv_lib_sqlite3_sqlite3_serialize=yes 15642else $as_nop 15643 ac_cv_lib_sqlite3_sqlite3_serialize=no 15644fi 15645rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15646 conftest$ac_exeext conftest.$ac_ext 15647LIBS=$ac_check_lib_save_LIBS 15648fi 15649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_serialize" >&5 15650printf "%s\n" "$ac_cv_lib_sqlite3_sqlite3_serialize" >&6; } 15651if test "x$ac_cv_lib_sqlite3_sqlite3_serialize" = xyes 15652then : 15653 15654 15655printf "%s\n" "#define PY_SQLITE_HAVE_SERIALIZE 1" >>confdefs.h 15656 15657 15658fi 15659 15660 15661else $as_nop 15662 15663 have_supported_sqlite3=no 15664 15665fi 15666rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 15667 15668fi 15669 15670 15671CFLAGS=$save_CFLAGS 15672CPPFLAGS=$save_CPPFLAGS 15673LDFLAGS=$save_LDFLAGS 15674LIBS=$save_LIBS 15675 15676 15677 15678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 15679printf %s "checking for --enable-loadable-sqlite-extensions... " >&6; } 15680# Check whether --enable-loadable-sqlite-extensions was given. 15681if test ${enable_loadable_sqlite_extensions+y} 15682then : 15683 enableval=$enable_loadable_sqlite_extensions; 15684 if test "x$have_sqlite3_load_extension" = xno 15685then : 15686 15687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: n/a" >&5 15688printf "%s\n" "n/a" >&6; } 15689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Your version of SQLite does not support loadable extensions" >&5 15690printf "%s\n" "$as_me: WARNING: Your version of SQLite does not support loadable extensions" >&2;} 15691 15692else $as_nop 15693 15694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15695printf "%s\n" "yes" >&6; } 15696 15697printf "%s\n" "#define PY_SQLITE_ENABLE_LOAD_EXTENSION 1" >>confdefs.h 15698 15699 15700fi 15701 15702else $as_nop 15703 15704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15705printf "%s\n" "no" >&6; } 15706 15707 15708fi 15709 15710 15711found_tcltk=no 15712for _QUERY in \ 15713 "tcl >= 8.5.12 tk >= 8.5.12" \ 15714 "tcl8.6 tk8.6" \ 15715 "tcl86 tk86" \ 15716 "tcl8.5 >= 8.5.12 tk8.5 >= 8.5.12" \ 15717 "tcl85 >= 8.5.12 tk85 >= 8.5.12" \ 15718; do 15719 if test -n "$PKG_CONFIG" && \ 15720 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5 15721 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5 15722 ac_status=$? 15723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15724 test $ac_status = 0; }; then 15725 15726 15727pkg_failed=no 15728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $_QUERY" >&5 15729printf %s "checking for $_QUERY... " >&6; } 15730 15731if test -n "$TCLTK_CFLAGS"; then 15732 pkg_cv_TCLTK_CFLAGS="$TCLTK_CFLAGS" 15733 elif test -n "$PKG_CONFIG"; then 15734 if test -n "$PKG_CONFIG" && \ 15735 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5 15736 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5 15737 ac_status=$? 15738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15739 test $ac_status = 0; }; then 15740 pkg_cv_TCLTK_CFLAGS=`$PKG_CONFIG --cflags "$_QUERY" 2>/dev/null` 15741 test "x$?" != "x0" && pkg_failed=yes 15742else 15743 pkg_failed=yes 15744fi 15745 else 15746 pkg_failed=untried 15747fi 15748if test -n "$TCLTK_LIBS"; then 15749 pkg_cv_TCLTK_LIBS="$TCLTK_LIBS" 15750 elif test -n "$PKG_CONFIG"; then 15751 if test -n "$PKG_CONFIG" && \ 15752 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$_QUERY\""; } >&5 15753 ($PKG_CONFIG --exists --print-errors "$_QUERY") 2>&5 15754 ac_status=$? 15755 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15756 test $ac_status = 0; }; then 15757 pkg_cv_TCLTK_LIBS=`$PKG_CONFIG --libs "$_QUERY" 2>/dev/null` 15758 test "x$?" != "x0" && pkg_failed=yes 15759else 15760 pkg_failed=yes 15761fi 15762 else 15763 pkg_failed=untried 15764fi 15765 15766 15767 15768if test $pkg_failed = yes; then 15769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15770printf "%s\n" "no" >&6; } 15771 15772if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15773 _pkg_short_errors_supported=yes 15774else 15775 _pkg_short_errors_supported=no 15776fi 15777 if test $_pkg_short_errors_supported = yes; then 15778 TCLTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$_QUERY" 2>&1` 15779 else 15780 TCLTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$_QUERY" 2>&1` 15781 fi 15782 # Put the nasty error message in config.log where it belongs 15783 echo "$TCLTK_PKG_ERRORS" >&5 15784 15785 found_tcltk=no 15786elif test $pkg_failed = untried; then 15787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15788printf "%s\n" "no" >&6; } 15789 found_tcltk=no 15790else 15791 TCLTK_CFLAGS=$pkg_cv_TCLTK_CFLAGS 15792 TCLTK_LIBS=$pkg_cv_TCLTK_LIBS 15793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15794printf "%s\n" "yes" >&6; } 15795 found_tcltk=yes 15796fi 15797 15798fi 15799 if test "x$found_tcltk" = xyes 15800then : 15801 break 15802fi 15803done 15804 15805if test "x$found_tcltk" = xno 15806then : 15807 15808 TCLTK_CFLAGS=${TCLTK_CFLAGS-""} 15809 TCLTK_LIBS=${TCLTK_LIBS-""} 15810 15811fi 15812 15813case $ac_sys_system in #( 15814 FreeBSD*) : 15815 15816 if test -n "$PKG_CONFIG" && \ 15817 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 15818 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 15819 ac_status=$? 15820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15821 test $ac_status = 0; }; then 15822 15823 15824pkg_failed=no 15825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5 15826printf %s "checking for x11... " >&6; } 15827 15828if test -n "$X11_CFLAGS"; then 15829 pkg_cv_X11_CFLAGS="$X11_CFLAGS" 15830 elif test -n "$PKG_CONFIG"; then 15831 if test -n "$PKG_CONFIG" && \ 15832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 15833 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 15834 ac_status=$? 15835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15836 test $ac_status = 0; }; then 15837 pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null` 15838 test "x$?" != "x0" && pkg_failed=yes 15839else 15840 pkg_failed=yes 15841fi 15842 else 15843 pkg_failed=untried 15844fi 15845if test -n "$X11_LIBS"; then 15846 pkg_cv_X11_LIBS="$X11_LIBS" 15847 elif test -n "$PKG_CONFIG"; then 15848 if test -n "$PKG_CONFIG" && \ 15849 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5 15850 ($PKG_CONFIG --exists --print-errors "x11") 2>&5 15851 ac_status=$? 15852 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15853 test $ac_status = 0; }; then 15854 pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null` 15855 test "x$?" != "x0" && pkg_failed=yes 15856else 15857 pkg_failed=yes 15858fi 15859 else 15860 pkg_failed=untried 15861fi 15862 15863 15864 15865if test $pkg_failed = yes; then 15866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15867printf "%s\n" "no" >&6; } 15868 15869if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 15870 _pkg_short_errors_supported=yes 15871else 15872 _pkg_short_errors_supported=no 15873fi 15874 if test $_pkg_short_errors_supported = yes; then 15875 X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1` 15876 else 15877 X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1` 15878 fi 15879 # Put the nasty error message in config.log where it belongs 15880 echo "$X11_PKG_ERRORS" >&5 15881 15882 as_fn_error $? "Package requirements (x11) were not met: 15883 15884$X11_PKG_ERRORS 15885 15886Consider adjusting the PKG_CONFIG_PATH environment variable if you 15887installed software in a non-standard prefix. 15888 15889Alternatively, you may set the environment variables X11_CFLAGS 15890and X11_LIBS to avoid the need to call pkg-config. 15891See the pkg-config man page for more details." "$LINENO" 5 15892elif test $pkg_failed = untried; then 15893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 15894printf "%s\n" "no" >&6; } 15895 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15896printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 15897as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 15898is in your PATH or set the PKG_CONFIG environment variable to the full 15899path to pkg-config. 15900 15901Alternatively, you may set the environment variables X11_CFLAGS 15902and X11_LIBS to avoid the need to call pkg-config. 15903See the pkg-config man page for more details. 15904 15905To get pkg-config, see <http://pkg-config.freedesktop.org/>. 15906See \`config.log' for more details" "$LINENO" 5; } 15907else 15908 X11_CFLAGS=$pkg_cv_X11_CFLAGS 15909 X11_LIBS=$pkg_cv_X11_LIBS 15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15911printf "%s\n" "yes" >&6; } 15912 15913 TCLTK_CFLAGS="$TCLTK_CFLAGS $X11_CFLAGS" 15914 TCLTK_LIBS="$TCLTK_LIBS $X11_LIBS" 15915 15916fi 15917 15918fi 15919 15920 ;; #( 15921 *) : 15922 ;; 15923esac 15924 15925save_CFLAGS=$CFLAGS 15926save_CPPFLAGS=$CPPFLAGS 15927save_LDFLAGS=$LDFLAGS 15928save_LIBS=$LIBS 15929 15930 15931 CPPFLAGS="$CPPFLAGS $TCLTK_CFLAGS" 15932 LIBS="$TCLTK_LIBS $LDFLAGS" 15933 15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15935/* end confdefs.h. */ 15936 15937 15938 #include <tcl.h> 15939 #include <tk.h> 15940 #if defined(TK_HEX_VERSION) 15941 # if TK_HEX_VERSION < 0x0805020c 15942 # error "Tk older than 8.5.12 not supported" 15943 # endif 15944 #endif 15945 #if (TCL_MAJOR_VERSION < 8) || \ 15946 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION < 5)) || \ 15947 ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION == 5) && (TCL_RELEASE_SERIAL < 12)) 15948 # error "Tcl older than 8.5.12 not supported" 15949 #endif 15950 #if (TK_MAJOR_VERSION < 8) || \ 15951 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION < 5)) || \ 15952 ((TK_MAJOR_VERSION == 8) && (TK_MINOR_VERSION == 5) && (TK_RELEASE_SERIAL < 12)) 15953 # error "Tk older than 8.5.12 not supported" 15954 #endif 15955 15956int 15957main (void) 15958{ 15959 15960 void *x1 = Tcl_Init; 15961 void *x2 = Tk_Init; 15962 15963 ; 15964 return 0; 15965} 15966 15967_ACEOF 15968if ac_fn_c_try_link "$LINENO" 15969then : 15970 15971 have_tcltk=yes 15972 as_fn_append TCLTK_CFLAGS " -Wno-strict-prototypes -DWITH_APPINIT=1" 15973 15974else $as_nop 15975 15976 have_tcltk=no 15977 15978fi 15979rm -f core conftest.err conftest.$ac_objext conftest.beam \ 15980 conftest$ac_exeext conftest.$ac_ext 15981 15982CFLAGS=$save_CFLAGS 15983CPPFLAGS=$save_CPPFLAGS 15984LDFLAGS=$save_LDFLAGS 15985LIBS=$save_LIBS 15986 15987 15988 15989 15990 15991save_CFLAGS=$CFLAGS 15992save_CPPFLAGS=$CPPFLAGS 15993save_LDFLAGS=$LDFLAGS 15994save_LIBS=$LIBS 15995 15996 15997 CPPFLAGS="$CPPFLAGS $GDBM_CFLAGS" 15998 LDFLAGS="$GDBM_LIBS $LDFLAGS" 15999 for ac_header in gdbm.h 16000do : 16001 ac_fn_c_check_header_compile "$LINENO" "gdbm.h" "ac_cv_header_gdbm_h" "$ac_includes_default" 16002if test "x$ac_cv_header_gdbm_h" = xyes 16003then : 16004 printf "%s\n" "#define HAVE_GDBM_H 1" >>confdefs.h 16005 16006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdbm_open in -lgdbm" >&5 16007printf %s "checking for gdbm_open in -lgdbm... " >&6; } 16008if test ${ac_cv_lib_gdbm_gdbm_open+y} 16009then : 16010 printf %s "(cached) " >&6 16011else $as_nop 16012 ac_check_lib_save_LIBS=$LIBS 16013LIBS="-lgdbm $LIBS" 16014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16015/* end confdefs.h. */ 16016 16017/* Override any GCC internal prototype to avoid an error. 16018 Use char because int might match the return type of a GCC 16019 builtin and then its argument prototype would still apply. */ 16020char gdbm_open (); 16021int 16022main (void) 16023{ 16024return gdbm_open (); 16025 ; 16026 return 0; 16027} 16028_ACEOF 16029if ac_fn_c_try_link "$LINENO" 16030then : 16031 ac_cv_lib_gdbm_gdbm_open=yes 16032else $as_nop 16033 ac_cv_lib_gdbm_gdbm_open=no 16034fi 16035rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16036 conftest$ac_exeext conftest.$ac_ext 16037LIBS=$ac_check_lib_save_LIBS 16038fi 16039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gdbm_gdbm_open" >&5 16040printf "%s\n" "$ac_cv_lib_gdbm_gdbm_open" >&6; } 16041if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes 16042then : 16043 16044 have_gdbm=yes 16045 GDBM_LIBS=${GDBM_LIBS-"-lgdbm"} 16046 16047else $as_nop 16048 have_gdbm=no 16049fi 16050 16051 16052else $as_nop 16053 have_gdbm=no 16054fi 16055 16056done 16057 16058CFLAGS=$save_CFLAGS 16059CPPFLAGS=$save_CPPFLAGS 16060LDFLAGS=$save_LDFLAGS 16061LIBS=$save_LIBS 16062 16063 16064 16065 for ac_header in ndbm.h 16066do : 16067 ac_fn_c_check_header_compile "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default" 16068if test "x$ac_cv_header_ndbm_h" = xyes 16069then : 16070 printf "%s\n" "#define HAVE_NDBM_H 1" >>confdefs.h 16071 16072 save_CFLAGS=$CFLAGS 16073save_CPPFLAGS=$CPPFLAGS 16074save_LDFLAGS=$LDFLAGS 16075save_LIBS=$LIBS 16076 16077 16078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5 16079printf %s "checking for library containing dbm_open... " >&6; } 16080if test ${ac_cv_search_dbm_open+y} 16081then : 16082 printf %s "(cached) " >&6 16083else $as_nop 16084 ac_func_search_save_LIBS=$LIBS 16085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16086/* end confdefs.h. */ 16087 16088/* Override any GCC internal prototype to avoid an error. 16089 Use char because int might match the return type of a GCC 16090 builtin and then its argument prototype would still apply. */ 16091char dbm_open (); 16092int 16093main (void) 16094{ 16095return dbm_open (); 16096 ; 16097 return 0; 16098} 16099_ACEOF 16100for ac_lib in '' ndbm gdbm_compat 16101do 16102 if test -z "$ac_lib"; then 16103 ac_res="none required" 16104 else 16105 ac_res=-l$ac_lib 16106 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16107 fi 16108 if ac_fn_c_try_link "$LINENO" 16109then : 16110 ac_cv_search_dbm_open=$ac_res 16111fi 16112rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16113 conftest$ac_exeext 16114 if test ${ac_cv_search_dbm_open+y} 16115then : 16116 break 16117fi 16118done 16119if test ${ac_cv_search_dbm_open+y} 16120then : 16121 16122else $as_nop 16123 ac_cv_search_dbm_open=no 16124fi 16125rm conftest.$ac_ext 16126LIBS=$ac_func_search_save_LIBS 16127fi 16128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5 16129printf "%s\n" "$ac_cv_search_dbm_open" >&6; } 16130ac_res=$ac_cv_search_dbm_open 16131if test "$ac_res" != no 16132then : 16133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16134 16135fi 16136 16137 16138CFLAGS=$save_CFLAGS 16139CPPFLAGS=$save_CPPFLAGS 16140LDFLAGS=$save_LDFLAGS 16141LIBS=$save_LIBS 16142 16143 16144 16145fi 16146 16147done 16148 16149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ndbm presence and linker args" >&5 16150printf %s "checking for ndbm presence and linker args... " >&6; } 16151case $ac_cv_search_dbm_open in #( 16152 *ndbm*|*gdbm_compat*) : 16153 16154 dbm_ndbm="$ac_cv_search_dbm_open" 16155 have_ndbm=yes 16156 ;; #( 16157 none*) : 16158 16159 dbm_ndbm="" 16160 have_ndbm=yes 16161 ;; #( 16162 no) : 16163 have_ndbm=no 16164 ;; #( 16165 *) : 16166 ;; 16167esac 16168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ndbm ($dbm_ndbm)" >&5 16169printf "%s\n" "$have_ndbm ($dbm_ndbm)" >&6; } 16170 16171{ ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;} 16172if test ${ac_cv_header_gdbm_slash_ndbm_h+y} 16173then : 16174 printf %s "(cached) " >&6 16175else $as_nop 16176 16177 ac_fn_c_check_header_compile "$LINENO" "gdbm/ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default" 16178if test "x$ac_cv_header_gdbm_ndbm_h" = xyes 16179then : 16180 ac_cv_header_gdbm_slash_ndbm_h=yes 16181else $as_nop 16182 ac_cv_header_gdbm_slash_ndbm_h=no 16183 16184fi 16185 16186 16187fi 16188 16189if test "x$ac_cv_header_gdbm_slash_ndbm_h" = xyes 16190then : 16191 16192 16193printf "%s\n" "#define HAVE_GDBM_NDBM_H 1" >>confdefs.h 16194 16195 16196fi 16197 16198{ ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;} 16199if test ${ac_cv_header_gdbm_dash_ndbm_h+y} 16200then : 16201 printf %s "(cached) " >&6 16202else $as_nop 16203 16204 ac_fn_c_check_header_compile "$LINENO" "gdbm-ndbm.h" "ac_cv_header_gdbm_ndbm_h" "$ac_includes_default" 16205if test "x$ac_cv_header_gdbm_ndbm_h" = xyes 16206then : 16207 ac_cv_header_gdbm_dash_ndbm_h=yes 16208else $as_nop 16209 ac_cv_header_gdbm_dash_ndbm_h=no 16210 16211fi 16212 16213 16214fi 16215 16216if test "x$ac_cv_header_gdbm_dash_ndbm_h" = xyes 16217then : 16218 16219 16220printf "%s\n" "#define HAVE_GDBM_DASH_NDBM_H 1" >>confdefs.h 16221 16222 16223fi 16224{ ac_cv_header_gdbm_ndbm_h=; unset ac_cv_header_gdbm_ndbm_h;} 16225 16226if test "$ac_cv_header_gdbm_slash_ndbm_h" = yes -o "$ac_cv_header_gdbm_dash_ndbm_h" = yes; then 16227 { ac_cv_search_dbm_open=; unset ac_cv_search_dbm_open;} 16228 save_CFLAGS=$CFLAGS 16229save_CPPFLAGS=$CPPFLAGS 16230save_LDFLAGS=$LDFLAGS 16231save_LIBS=$LIBS 16232 16233 16234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing dbm_open" >&5 16235printf %s "checking for library containing dbm_open... " >&6; } 16236if test ${ac_cv_search_dbm_open+y} 16237then : 16238 printf %s "(cached) " >&6 16239else $as_nop 16240 ac_func_search_save_LIBS=$LIBS 16241cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16242/* end confdefs.h. */ 16243 16244/* Override any GCC internal prototype to avoid an error. 16245 Use char because int might match the return type of a GCC 16246 builtin and then its argument prototype would still apply. */ 16247char dbm_open (); 16248int 16249main (void) 16250{ 16251return dbm_open (); 16252 ; 16253 return 0; 16254} 16255_ACEOF 16256for ac_lib in '' gdbm_compat 16257do 16258 if test -z "$ac_lib"; then 16259 ac_res="none required" 16260 else 16261 ac_res=-l$ac_lib 16262 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16263 fi 16264 if ac_fn_c_try_link "$LINENO" 16265then : 16266 ac_cv_search_dbm_open=$ac_res 16267fi 16268rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16269 conftest$ac_exeext 16270 if test ${ac_cv_search_dbm_open+y} 16271then : 16272 break 16273fi 16274done 16275if test ${ac_cv_search_dbm_open+y} 16276then : 16277 16278else $as_nop 16279 ac_cv_search_dbm_open=no 16280fi 16281rm conftest.$ac_ext 16282LIBS=$ac_func_search_save_LIBS 16283fi 16284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dbm_open" >&5 16285printf "%s\n" "$ac_cv_search_dbm_open" >&6; } 16286ac_res=$ac_cv_search_dbm_open 16287if test "$ac_res" != no 16288then : 16289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 16290 have_gdbm_compat=yes 16291else $as_nop 16292 have_gdbm_compat=no 16293fi 16294 16295 16296CFLAGS=$save_CFLAGS 16297CPPFLAGS=$save_CPPFLAGS 16298LDFLAGS=$save_LDFLAGS 16299LIBS=$save_LIBS 16300 16301 16302fi 16303 16304# Check for libdb >= 5 with dbm_open() 16305# db.h re-defines the name of the function 16306 for ac_header in db.h 16307do : 16308 ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default" 16309if test "x$ac_cv_header_db_h" = xyes 16310then : 16311 printf "%s\n" "#define HAVE_DB_H 1" >>confdefs.h 16312 16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdb" >&5 16314printf %s "checking for libdb... " >&6; } 16315if test ${ac_cv_have_libdb+y} 16316then : 16317 printf %s "(cached) " >&6 16318else $as_nop 16319 16320 save_CFLAGS=$CFLAGS 16321save_CPPFLAGS=$CPPFLAGS 16322save_LDFLAGS=$LDFLAGS 16323save_LIBS=$LIBS 16324 16325 16326 LIBS="$LIBS -ldb" 16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16328/* end confdefs.h. */ 16329 16330 #define DB_DBM_HSEARCH 1 16331 #include <db.h> 16332 #if DB_VERSION_MAJOR < 5 16333 #error "dh.h: DB_VERSION_MAJOR < 5 is not supported." 16334 #endif 16335 16336int 16337main (void) 16338{ 16339DBM *dbm = dbm_open(NULL, 0, 0) 16340 ; 16341 return 0; 16342} 16343 16344_ACEOF 16345if ac_fn_c_try_link "$LINENO" 16346then : 16347 ac_cv_have_libdb=yes 16348else $as_nop 16349 ac_cv_have_libdb=no 16350fi 16351rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16352 conftest$ac_exeext conftest.$ac_ext 16353 16354CFLAGS=$save_CFLAGS 16355CPPFLAGS=$save_CPPFLAGS 16356LDFLAGS=$save_LDFLAGS 16357LIBS=$save_LIBS 16358 16359 16360 16361fi 16362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_libdb" >&5 16363printf "%s\n" "$ac_cv_have_libdb" >&6; } 16364 if test "x$ac_cv_have_libdb" = xyes 16365then : 16366 16367 16368printf "%s\n" "#define HAVE_LIBDB 1" >>confdefs.h 16369 16370 16371fi 16372 16373fi 16374 16375done 16376 16377# Check for --with-dbmliborder 16378{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 16379printf %s "checking for --with-dbmliborder... " >&6; } 16380 16381# Check whether --with-dbmliborder was given. 16382if test ${with_dbmliborder+y} 16383then : 16384 withval=$with_dbmliborder; 16385else $as_nop 16386 with_dbmliborder=gdbm:ndbm:bdb 16387fi 16388 16389 16390have_gdbm_dbmliborder=no 16391as_save_IFS=$IFS 16392IFS=: 16393for db in $with_dbmliborder; do 16394 case $db in #( 16395 ndbm) : 16396 ;; #( 16397 gdbm) : 16398 have_gdbm_dbmliborder=yes ;; #( 16399 bdb) : 16400 ;; #( 16401 *) : 16402 with_dbmliborder=error 16403 ;; 16404esac 16405done 16406IFS=$as_save_IFS 16407if test "x$with_dbmliborder" = xerror 16408then : 16409 16410 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:... (gdbm:ndbm:bdb)" "$LINENO" 5 16411 16412fi 16413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 16414printf "%s\n" "$with_dbmliborder" >&6; } 16415 16416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dbm module CFLAGS and LIBS" >&5 16417printf %s "checking for _dbm module CFLAGS and LIBS... " >&6; } 16418have_dbm=no 16419as_save_IFS=$IFS 16420IFS=: 16421for db in $with_dbmliborder; do 16422 case "$db" in 16423 ndbm) 16424 if test "$have_ndbm" = yes; then 16425 DBM_CFLAGS="-DUSE_NDBM" 16426 DBM_LIBS="$dbm_ndbm" 16427 have_dbm=yes 16428 break 16429 fi 16430 ;; 16431 gdbm) 16432 if test "$have_gdbm_compat" = yes; then 16433 DBM_CFLAGS="-DUSE_GDBM_COMPAT" 16434 DBM_LIBS="-lgdbm_compat" 16435 have_dbm=yes 16436 break 16437 fi 16438 ;; 16439 bdb) 16440 if test "$ac_cv_have_libdb" = yes; then 16441 DBM_CFLAGS="-DUSE_BERKDB" 16442 DBM_LIBS="-ldb" 16443 have_dbm=yes 16444 break 16445 fi 16446 ;; 16447 esac 16448done 16449IFS=$as_save_IFS 16450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DBM_CFLAGS $DBM_LIBS" >&5 16451printf "%s\n" "$DBM_CFLAGS $DBM_LIBS" >&6; } 16452 16453# Templates for things AC_DEFINEd more than once. 16454# For a single AC_DEFINE, no template is needed. 16455 16456 16457if test "$ac_cv_pthread_is_default" = yes 16458then 16459 # Defining _REENTRANT on system with POSIX threads should not hurt. 16460 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h 16461 16462 posix_threads=yes 16463 if test "$ac_sys_system" = "SunOS"; then 16464 CFLAGS="$CFLAGS -D_REENTRANT" 16465 fi 16466elif test "$ac_cv_kpthread" = "yes" 16467then 16468 CC="$CC -Kpthread" 16469 if test "$ac_cv_cxx_thread" = "yes"; then 16470 CXX="$CXX -Kpthread" 16471 fi 16472 posix_threads=yes 16473elif test "$ac_cv_kthread" = "yes" 16474then 16475 CC="$CC -Kthread" 16476 if test "$ac_cv_cxx_thread" = "yes"; then 16477 CXX="$CXX -Kthread" 16478 fi 16479 posix_threads=yes 16480elif test "$ac_cv_pthread" = "yes" 16481then 16482 CC="$CC -pthread" 16483 if test "$ac_cv_cxx_thread" = "yes"; then 16484 CXX="$CXX -pthread" 16485 fi 16486 posix_threads=yes 16487else 16488 if test ! -z "$withval" -a -d "$withval" 16489 then LDFLAGS="$LDFLAGS -L$withval" 16490 fi 16491 16492 # According to the POSIX spec, a pthreads implementation must 16493 # define _POSIX_THREADS in unistd.h. Some apparently don't 16494 # (e.g. gnu pth with pthread emulation) 16495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 16496printf %s "checking for _POSIX_THREADS in unistd.h... " >&6; } 16497 16498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS defined in unistd.h" >&5 16499printf %s "checking for _POSIX_THREADS defined in unistd.h... " >&6; } 16500if test ${ac_cv_defined__POSIX_THREADS_unistd_h+y} 16501then : 16502 printf %s "(cached) " >&6 16503else $as_nop 16504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16505/* end confdefs.h. */ 16506#include <unistd.h> 16507int 16508main (void) 16509{ 16510 16511 #ifdef _POSIX_THREADS 16512 int ok; 16513 (void)ok; 16514 #else 16515 choke me 16516 #endif 16517 16518 ; 16519 return 0; 16520} 16521_ACEOF 16522if ac_fn_c_try_compile "$LINENO" 16523then : 16524 ac_cv_defined__POSIX_THREADS_unistd_h=yes 16525else $as_nop 16526 ac_cv_defined__POSIX_THREADS_unistd_h=no 16527fi 16528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16529fi 16530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__POSIX_THREADS_unistd_h" >&5 16531printf "%s\n" "$ac_cv_defined__POSIX_THREADS_unistd_h" >&6; } 16532if test $ac_cv_defined__POSIX_THREADS_unistd_h != "no" 16533then : 16534 unistd_defines_pthreads=yes 16535else $as_nop 16536 unistd_defines_pthreads=no 16537fi 16538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 16539printf "%s\n" "$unistd_defines_pthreads" >&6; } 16540 16541 printf "%s\n" "#define _REENTRANT 1" >>confdefs.h 16542 16543 # Just looking for pthread_create in libpthread is not enough: 16544 # on HP/UX, pthread.h renames pthread_create to a different symbol name. 16545 # So we really have to include pthread.h, and then link. 16546 _libs=$LIBS 16547 LIBS="$LIBS -lpthread" 16548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 16549printf %s "checking for pthread_create in -lpthread... " >&6; } 16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16551/* end confdefs.h. */ 16552 16553#include <stdio.h> 16554#include <stdlib.h> 16555#include <pthread.h> 16556 16557void * start_routine (void *arg) { exit (0); } 16558int 16559main (void) 16560{ 16561 16562pthread_create (NULL, NULL, start_routine, NULL) 16563 ; 16564 return 0; 16565} 16566_ACEOF 16567if ac_fn_c_try_link "$LINENO" 16568then : 16569 16570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16571printf "%s\n" "yes" >&6; } 16572 posix_threads=yes 16573 16574else $as_nop 16575 16576 LIBS=$_libs 16577 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" 16578if test "x$ac_cv_func_pthread_detach" = xyes 16579then : 16580 16581 posix_threads=yes 16582 16583else $as_nop 16584 16585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 16586printf %s "checking for pthread_create in -lpthreads... " >&6; } 16587if test ${ac_cv_lib_pthreads_pthread_create+y} 16588then : 16589 printf %s "(cached) " >&6 16590else $as_nop 16591 ac_check_lib_save_LIBS=$LIBS 16592LIBS="-lpthreads $LIBS" 16593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16594/* end confdefs.h. */ 16595 16596/* Override any GCC internal prototype to avoid an error. 16597 Use char because int might match the return type of a GCC 16598 builtin and then its argument prototype would still apply. */ 16599char pthread_create (); 16600int 16601main (void) 16602{ 16603return pthread_create (); 16604 ; 16605 return 0; 16606} 16607_ACEOF 16608if ac_fn_c_try_link "$LINENO" 16609then : 16610 ac_cv_lib_pthreads_pthread_create=yes 16611else $as_nop 16612 ac_cv_lib_pthreads_pthread_create=no 16613fi 16614rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16615 conftest$ac_exeext conftest.$ac_ext 16616LIBS=$ac_check_lib_save_LIBS 16617fi 16618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 16619printf "%s\n" "$ac_cv_lib_pthreads_pthread_create" >&6; } 16620if test "x$ac_cv_lib_pthreads_pthread_create" = xyes 16621then : 16622 16623 posix_threads=yes 16624 LIBS="$LIBS -lpthreads" 16625 16626else $as_nop 16627 16628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 16629printf %s "checking for pthread_create in -lc_r... " >&6; } 16630if test ${ac_cv_lib_c_r_pthread_create+y} 16631then : 16632 printf %s "(cached) " >&6 16633else $as_nop 16634 ac_check_lib_save_LIBS=$LIBS 16635LIBS="-lc_r $LIBS" 16636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16637/* end confdefs.h. */ 16638 16639/* Override any GCC internal prototype to avoid an error. 16640 Use char because int might match the return type of a GCC 16641 builtin and then its argument prototype would still apply. */ 16642char pthread_create (); 16643int 16644main (void) 16645{ 16646return pthread_create (); 16647 ; 16648 return 0; 16649} 16650_ACEOF 16651if ac_fn_c_try_link "$LINENO" 16652then : 16653 ac_cv_lib_c_r_pthread_create=yes 16654else $as_nop 16655 ac_cv_lib_c_r_pthread_create=no 16656fi 16657rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16658 conftest$ac_exeext conftest.$ac_ext 16659LIBS=$ac_check_lib_save_LIBS 16660fi 16661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 16662printf "%s\n" "$ac_cv_lib_c_r_pthread_create" >&6; } 16663if test "x$ac_cv_lib_c_r_pthread_create" = xyes 16664then : 16665 16666 posix_threads=yes 16667 LIBS="$LIBS -lc_r" 16668 16669else $as_nop 16670 16671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 16672printf %s "checking for __pthread_create_system in -lpthread... " >&6; } 16673if test ${ac_cv_lib_pthread___pthread_create_system+y} 16674then : 16675 printf %s "(cached) " >&6 16676else $as_nop 16677 ac_check_lib_save_LIBS=$LIBS 16678LIBS="-lpthread $LIBS" 16679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16680/* end confdefs.h. */ 16681 16682/* Override any GCC internal prototype to avoid an error. 16683 Use char because int might match the return type of a GCC 16684 builtin and then its argument prototype would still apply. */ 16685char __pthread_create_system (); 16686int 16687main (void) 16688{ 16689return __pthread_create_system (); 16690 ; 16691 return 0; 16692} 16693_ACEOF 16694if ac_fn_c_try_link "$LINENO" 16695then : 16696 ac_cv_lib_pthread___pthread_create_system=yes 16697else $as_nop 16698 ac_cv_lib_pthread___pthread_create_system=no 16699fi 16700rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16701 conftest$ac_exeext conftest.$ac_ext 16702LIBS=$ac_check_lib_save_LIBS 16703fi 16704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 16705printf "%s\n" "$ac_cv_lib_pthread___pthread_create_system" >&6; } 16706if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes 16707then : 16708 16709 posix_threads=yes 16710 LIBS="$LIBS -lpthread" 16711 16712else $as_nop 16713 16714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 16715printf %s "checking for pthread_create in -lcma... " >&6; } 16716if test ${ac_cv_lib_cma_pthread_create+y} 16717then : 16718 printf %s "(cached) " >&6 16719else $as_nop 16720 ac_check_lib_save_LIBS=$LIBS 16721LIBS="-lcma $LIBS" 16722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16723/* end confdefs.h. */ 16724 16725/* Override any GCC internal prototype to avoid an error. 16726 Use char because int might match the return type of a GCC 16727 builtin and then its argument prototype would still apply. */ 16728char pthread_create (); 16729int 16730main (void) 16731{ 16732return pthread_create (); 16733 ; 16734 return 0; 16735} 16736_ACEOF 16737if ac_fn_c_try_link "$LINENO" 16738then : 16739 ac_cv_lib_cma_pthread_create=yes 16740else $as_nop 16741 ac_cv_lib_cma_pthread_create=no 16742fi 16743rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16744 conftest$ac_exeext conftest.$ac_ext 16745LIBS=$ac_check_lib_save_LIBS 16746fi 16747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 16748printf "%s\n" "$ac_cv_lib_cma_pthread_create" >&6; } 16749if test "x$ac_cv_lib_cma_pthread_create" = xyes 16750then : 16751 16752 posix_threads=yes 16753 LIBS="$LIBS -lcma" 16754 16755else $as_nop 16756 16757 case $ac_sys_system in #( 16758 WASI) : 16759 posix_threads=stub ;; #( 16760 *) : 16761 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 16762 ;; 16763esac 16764 16765fi 16766 16767fi 16768 16769fi 16770 16771fi 16772 16773fi 16774 16775fi 16776rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16777 conftest$ac_exeext conftest.$ac_ext 16778 16779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 16780printf %s "checking for usconfig in -lmpc... " >&6; } 16781if test ${ac_cv_lib_mpc_usconfig+y} 16782then : 16783 printf %s "(cached) " >&6 16784else $as_nop 16785 ac_check_lib_save_LIBS=$LIBS 16786LIBS="-lmpc $LIBS" 16787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16788/* end confdefs.h. */ 16789 16790/* Override any GCC internal prototype to avoid an error. 16791 Use char because int might match the return type of a GCC 16792 builtin and then its argument prototype would still apply. */ 16793char usconfig (); 16794int 16795main (void) 16796{ 16797return usconfig (); 16798 ; 16799 return 0; 16800} 16801_ACEOF 16802if ac_fn_c_try_link "$LINENO" 16803then : 16804 ac_cv_lib_mpc_usconfig=yes 16805else $as_nop 16806 ac_cv_lib_mpc_usconfig=no 16807fi 16808rm -f core conftest.err conftest.$ac_objext conftest.beam \ 16809 conftest$ac_exeext conftest.$ac_ext 16810LIBS=$ac_check_lib_save_LIBS 16811fi 16812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 16813printf "%s\n" "$ac_cv_lib_mpc_usconfig" >&6; } 16814if test "x$ac_cv_lib_mpc_usconfig" = xyes 16815then : 16816 16817 LIBS="$LIBS -lmpc" 16818 16819fi 16820 16821 16822fi 16823 16824if test "$posix_threads" = "yes"; then 16825 if test "$unistd_defines_pthreads" = "no"; then 16826 16827printf "%s\n" "#define _POSIX_THREADS 1" >>confdefs.h 16828 16829 fi 16830 16831 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. 16832 case $ac_sys_system/$ac_sys_release in 16833 SunOS/5.6) 16834printf "%s\n" "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h 16835 16836 ;; 16837 SunOS/5.8) 16838printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 16839 16840 ;; 16841 AIX/*) 16842printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 16843 16844 ;; 16845 NetBSD/*) 16846printf "%s\n" "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 16847 16848 ;; 16849 esac 16850 16851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 16852printf %s "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } 16853if test ${ac_cv_pthread_system_supported+y} 16854then : 16855 printf %s "(cached) " >&6 16856else $as_nop 16857 if test "$cross_compiling" = yes 16858then : 16859 ac_cv_pthread_system_supported=no 16860else $as_nop 16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16862/* end confdefs.h. */ 16863 16864 #include <stdio.h> 16865 #include <pthread.h> 16866 void *foo(void *parm) { 16867 return NULL; 16868 } 16869 int main(void) { 16870 pthread_attr_t attr; 16871 pthread_t id; 16872 if (pthread_attr_init(&attr)) return (-1); 16873 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1); 16874 if (pthread_create(&id, &attr, foo, NULL)) return (-1); 16875 return (0); 16876 } 16877_ACEOF 16878if ac_fn_c_try_run "$LINENO" 16879then : 16880 ac_cv_pthread_system_supported=yes 16881else $as_nop 16882 ac_cv_pthread_system_supported=no 16883fi 16884rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16885 conftest.$ac_objext conftest.beam conftest.$ac_ext 16886fi 16887 16888 16889fi 16890{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 16891printf "%s\n" "$ac_cv_pthread_system_supported" >&6; } 16892 if test "$ac_cv_pthread_system_supported" = "yes"; then 16893 16894printf "%s\n" "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h 16895 16896 fi 16897 16898 for ac_func in pthread_sigmask 16899do : 16900 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" 16901if test "x$ac_cv_func_pthread_sigmask" = xyes 16902then : 16903 printf "%s\n" "#define HAVE_PTHREAD_SIGMASK 1" >>confdefs.h 16904 case $ac_sys_system in 16905 CYGWIN*) 16906 16907printf "%s\n" "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h 16908 16909 ;; 16910 esac 16911fi 16912 16913done 16914 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" 16915if test "x$ac_cv_func_pthread_getcpuclockid" = xyes 16916then : 16917 printf "%s\n" "#define HAVE_PTHREAD_GETCPUCLOCKID 1" >>confdefs.h 16918 16919fi 16920 16921fi 16922 16923if test "x$posix_threads" = xstub 16924then : 16925 16926 16927printf "%s\n" "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h 16928 16929 16930fi 16931 16932# Check for enable-ipv6 16933 16934{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 16935printf %s "checking if --enable-ipv6 is specified... " >&6; } 16936# Check whether --enable-ipv6 was given. 16937if test ${enable_ipv6+y} 16938then : 16939 enableval=$enable_ipv6; case "$enableval" in 16940 no) 16941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 16942printf "%s\n" "no" >&6; } 16943 ipv6=no 16944 ;; 16945 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16946printf "%s\n" "yes" >&6; } 16947 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h 16948 16949 ipv6=yes 16950 ;; 16951 esac 16952else $as_nop 16953 16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16955/* end confdefs.h. */ 16956 /* AF_INET6 available check */ 16957#include <sys/types.h> 16958#include <sys/socket.h> 16959int 16960main (void) 16961{ 16962int domain = AF_INET6; 16963 ; 16964 return 0; 16965} 16966_ACEOF 16967if ac_fn_c_try_compile "$LINENO" 16968then : 16969 16970 ipv6=yes 16971 16972else $as_nop 16973 16974 ipv6=no 16975 16976fi 16977rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 16978 16979case $ac_sys_system in #( 16980 WASI) : 16981 ipv6=no 16982 ;; #( 16983 *) : 16984 ;; 16985esac 16986 16987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6" >&5 16988printf "%s\n" "$ipv6" >&6; } 16989 16990if test "$ipv6" = "yes"; then 16991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 16992printf %s "checking if RFC2553 API is available... " >&6; } 16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16994/* end confdefs.h. */ 16995 16996 #include <sys/types.h> 16997#include <netinet/in.h> 16998int 16999main (void) 17000{ 17001struct sockaddr_in6 x; 17002 x.sin6_scope_id; 17003 ; 17004 return 0; 17005} 17006 17007_ACEOF 17008if ac_fn_c_try_compile "$LINENO" 17009then : 17010 17011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17012printf "%s\n" "yes" >&6; } 17013 ipv6=yes 17014 17015else $as_nop 17016 17017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17018printf "%s\n" "no" >&6; } 17019 ipv6=no 17020 17021fi 17022rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17023fi 17024 17025if test "$ipv6" = "yes"; then 17026 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h 17027 17028fi 17029 17030fi 17031 17032 17033ipv6type=unknown 17034ipv6lib=none 17035ipv6trylibc=no 17036 17037if test "$ipv6" = yes -a "$cross_compiling" = no; then 17038 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; 17039 do 17040 case $i in 17041 inria) 17042 17043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IPV6_INRIA_VERSION defined in netinet/in.h" >&5 17044printf %s "checking for IPV6_INRIA_VERSION defined in netinet/in.h... " >&6; } 17045if test ${ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h+y} 17046then : 17047 printf %s "(cached) " >&6 17048else $as_nop 17049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17050/* end confdefs.h. */ 17051#include <netinet/in.h> 17052int 17053main (void) 17054{ 17055 17056 #ifdef IPV6_INRIA_VERSION 17057 int ok; 17058 (void)ok; 17059 #else 17060 choke me 17061 #endif 17062 17063 ; 17064 return 0; 17065} 17066_ACEOF 17067if ac_fn_c_try_compile "$LINENO" 17068then : 17069 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=yes 17070else $as_nop 17071 ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h=no 17072fi 17073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17074fi 17075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&5 17076printf "%s\n" "$ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h" >&6; } 17077if test $ac_cv_defined_IPV6_INRIA_VERSION_netinet_in_h != "no" 17078then : 17079 ipv6type=$i 17080fi 17081 ;; 17082 kame) 17083 17084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __KAME__ defined in netinet/in.h" >&5 17085printf %s "checking for __KAME__ defined in netinet/in.h... " >&6; } 17086if test ${ac_cv_defined___KAME___netinet_in_h+y} 17087then : 17088 printf %s "(cached) " >&6 17089else $as_nop 17090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17091/* end confdefs.h. */ 17092#include <netinet/in.h> 17093int 17094main (void) 17095{ 17096 17097 #ifdef __KAME__ 17098 int ok; 17099 (void)ok; 17100 #else 17101 choke me 17102 #endif 17103 17104 ; 17105 return 0; 17106} 17107_ACEOF 17108if ac_fn_c_try_compile "$LINENO" 17109then : 17110 ac_cv_defined___KAME___netinet_in_h=yes 17111else $as_nop 17112 ac_cv_defined___KAME___netinet_in_h=no 17113fi 17114rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17115fi 17116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___KAME___netinet_in_h" >&5 17117printf "%s\n" "$ac_cv_defined___KAME___netinet_in_h" >&6; } 17118if test $ac_cv_defined___KAME___netinet_in_h != "no" 17119then : 17120 ipv6type=$i 17121 ipv6lib=inet6 17122 ipv6libdir=/usr/local/v6/lib 17123 ipv6trylibc=yes 17124fi 17125 ;; 17126 linux-glibc) 17127 17128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __GLIBC__ defined in features.h" >&5 17129printf %s "checking for __GLIBC__ defined in features.h... " >&6; } 17130if test ${ac_cv_defined___GLIBC___features_h+y} 17131then : 17132 printf %s "(cached) " >&6 17133else $as_nop 17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17135/* end confdefs.h. */ 17136#include <features.h> 17137int 17138main (void) 17139{ 17140 17141 #ifdef __GLIBC__ 17142 int ok; 17143 (void)ok; 17144 #else 17145 choke me 17146 #endif 17147 17148 ; 17149 return 0; 17150} 17151_ACEOF 17152if ac_fn_c_try_compile "$LINENO" 17153then : 17154 ac_cv_defined___GLIBC___features_h=yes 17155else $as_nop 17156 ac_cv_defined___GLIBC___features_h=no 17157fi 17158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17159fi 17160{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___GLIBC___features_h" >&5 17161printf "%s\n" "$ac_cv_defined___GLIBC___features_h" >&6; } 17162if test $ac_cv_defined___GLIBC___features_h != "no" 17163then : 17164 ipv6type=$i 17165 ipv6trylibc=yes 17166fi 17167 ;; 17168 linux-inet6) 17169 if test -d /usr/inet6; then 17170 ipv6type=$i 17171 ipv6lib=inet6 17172 ipv6libdir=/usr/inet6/lib 17173 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" 17174 fi 17175 ;; 17176 solaris) 17177 if test -f /etc/netconfig; then 17178 if $GREP -q tcp6 /etc/netconfig; then 17179 ipv6type=$i 17180 ipv6trylibc=yes 17181 fi 17182 fi 17183 ;; 17184 toshiba) 17185 17186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _TOSHIBA_INET6 defined in sys/param.h" >&5 17187printf %s "checking for _TOSHIBA_INET6 defined in sys/param.h... " >&6; } 17188if test ${ac_cv_defined__TOSHIBA_INET6_sys_param_h+y} 17189then : 17190 printf %s "(cached) " >&6 17191else $as_nop 17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17193/* end confdefs.h. */ 17194#include <sys/param.h> 17195int 17196main (void) 17197{ 17198 17199 #ifdef _TOSHIBA_INET6 17200 int ok; 17201 (void)ok; 17202 #else 17203 choke me 17204 #endif 17205 17206 ; 17207 return 0; 17208} 17209_ACEOF 17210if ac_fn_c_try_compile "$LINENO" 17211then : 17212 ac_cv_defined__TOSHIBA_INET6_sys_param_h=yes 17213else $as_nop 17214 ac_cv_defined__TOSHIBA_INET6_sys_param_h=no 17215fi 17216rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17217fi 17218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&5 17219printf "%s\n" "$ac_cv_defined__TOSHIBA_INET6_sys_param_h" >&6; } 17220if test $ac_cv_defined__TOSHIBA_INET6_sys_param_h != "no" 17221then : 17222 ipv6type=$i 17223 ipv6lib=inet6 17224 ipv6libdir=/usr/local/v6/lib 17225fi 17226 ;; 17227 v6d) 17228 17229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h" >&5 17230printf %s "checking for __V6D__ defined in /usr/local/v6/include/sys/v6config.h... " >&6; } 17231if test ${ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h+y} 17232then : 17233 printf %s "(cached) " >&6 17234else $as_nop 17235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17236/* end confdefs.h. */ 17237#include </usr/local/v6/include/sys/v6config.h> 17238int 17239main (void) 17240{ 17241 17242 #ifdef __V6D__ 17243 int ok; 17244 (void)ok; 17245 #else 17246 choke me 17247 #endif 17248 17249 ; 17250 return 0; 17251} 17252_ACEOF 17253if ac_fn_c_try_compile "$LINENO" 17254then : 17255 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=yes 17256else $as_nop 17257 ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h=no 17258fi 17259rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17260fi 17261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&5 17262printf "%s\n" "$ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h" >&6; } 17263if test $ac_cv_defined___V6D____usr_local_v6_include_sys_v6config_h != "no" 17264then : 17265 ipv6type=$i 17266 ipv6lib=v6 17267 ipv6libdir=/usr/local/v6/lib 17268 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" 17269fi 17270 ;; 17271 zeta) 17272 17273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _ZETA_MINAMI_INET6 defined in sys/param.h" >&5 17274printf %s "checking for _ZETA_MINAMI_INET6 defined in sys/param.h... " >&6; } 17275if test ${ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h+y} 17276then : 17277 printf %s "(cached) " >&6 17278else $as_nop 17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17280/* end confdefs.h. */ 17281#include <sys/param.h> 17282int 17283main (void) 17284{ 17285 17286 #ifdef _ZETA_MINAMI_INET6 17287 int ok; 17288 (void)ok; 17289 #else 17290 choke me 17291 #endif 17292 17293 ; 17294 return 0; 17295} 17296_ACEOF 17297if ac_fn_c_try_compile "$LINENO" 17298then : 17299 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=yes 17300else $as_nop 17301 ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h=no 17302fi 17303rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17304fi 17305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&5 17306printf "%s\n" "$ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h" >&6; } 17307if test $ac_cv_defined__ZETA_MINAMI_INET6_sys_param_h != "no" 17308then : 17309 ipv6type=$i 17310 ipv6lib=inet6 17311 ipv6libdir=/usr/local/v6/lib 17312fi 17313 ;; 17314 esac 17315 if test "$ipv6type" != "unknown"; then 17316 break 17317 fi 17318 done 17319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 17320printf %s "checking ipv6 stack type... " >&6; } 17321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 17322printf "%s\n" "$ipv6type" >&6; } 17323fi 17324 17325if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 17326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ipv6 library" >&5 17327printf %s "checking ipv6 library... " >&6; } 17328 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 17329 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: lib$ipv6lib" >&5 17331printf "%s\n" "lib$ipv6lib" >&6; } 17332 else 17333 if test "x$ipv6trylibc" = xyes 17334then : 17335 17336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libc" >&5 17337printf "%s\n" "libc" >&6; } 17338 17339else $as_nop 17340 17341 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 17342 17343fi 17344 fi 17345fi 17346 17347 17348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking CAN_RAW_FD_FRAMES" >&5 17349printf %s "checking CAN_RAW_FD_FRAMES... " >&6; } 17350if test ${ac_cv_can_raw_fd_frames+y} 17351then : 17352 printf %s "(cached) " >&6 17353else $as_nop 17354 17355cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17356/* end confdefs.h. */ 17357 /* CAN_RAW_FD_FRAMES available check */ 17358#include <linux/can/raw.h> 17359int 17360main (void) 17361{ 17362int can_raw_fd_frames = CAN_RAW_FD_FRAMES; 17363 ; 17364 return 0; 17365} 17366_ACEOF 17367if ac_fn_c_try_compile "$LINENO" 17368then : 17369 ac_cv_can_raw_fd_frames=yes 17370else $as_nop 17371 ac_cv_can_raw_fd_frames=no 17372fi 17373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17374 17375fi 17376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_fd_frames" >&5 17377printf "%s\n" "$ac_cv_can_raw_fd_frames" >&6; } 17378if test "x$ac_cv_can_raw_fd_frames" = xyes 17379then : 17380 17381 17382printf "%s\n" "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h 17383 17384 17385fi 17386 17387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5 17388printf %s "checking for CAN_RAW_JOIN_FILTERS... " >&6; } 17389if test ${ac_cv_can_raw_join_filters+y} 17390then : 17391 printf %s "(cached) " >&6 17392else $as_nop 17393 17394cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17395/* end confdefs.h. */ 17396 17397#include <linux/can/raw.h> 17398int 17399main (void) 17400{ 17401int can_raw_join_filters = CAN_RAW_JOIN_FILTERS; 17402 ; 17403 return 0; 17404} 17405_ACEOF 17406if ac_fn_c_try_compile "$LINENO" 17407then : 17408 ac_cv_can_raw_join_filters=yes 17409else $as_nop 17410 ac_cv_can_raw_join_filters=no 17411fi 17412rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 17413 17414fi 17415{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_can_raw_join_filters" >&5 17416printf "%s\n" "$ac_cv_can_raw_join_filters" >&6; } 17417if test "x$ac_cv_can_raw_join_filters" = xyes 17418then : 17419 17420 17421printf "%s\n" "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h 17422 17423 17424fi 17425 17426# Check for --with-doc-strings 17427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 17428printf %s "checking for --with-doc-strings... " >&6; } 17429 17430# Check whether --with-doc-strings was given. 17431if test ${with_doc_strings+y} 17432then : 17433 withval=$with_doc_strings; 17434fi 17435 17436 17437if test -z "$with_doc_strings" 17438then with_doc_strings="yes" 17439fi 17440if test "$with_doc_strings" != "no" 17441then 17442 17443printf "%s\n" "#define WITH_DOC_STRINGS 1" >>confdefs.h 17444 17445fi 17446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 17447printf "%s\n" "$with_doc_strings" >&6; } 17448 17449# Check for stdatomic.h, required for mimalloc. 17450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 17451printf %s "checking for stdatomic.h... " >&6; } 17452if test ${ac_cv_header_stdatomic_h+y} 17453then : 17454 printf %s "(cached) " >&6 17455else $as_nop 17456 17457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17458/* end confdefs.h. */ 17459 17460 17461 #include <stdatomic.h> 17462 atomic_int int_var; 17463 atomic_uintptr_t uintptr_var; 17464 int main() { 17465 atomic_store_explicit(&int_var, 5, memory_order_relaxed); 17466 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); 17467 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); 17468 return 0; 17469 } 17470 17471 17472_ACEOF 17473if ac_fn_c_try_link "$LINENO" 17474then : 17475 ac_cv_header_stdatomic_h=yes 17476else $as_nop 17477 ac_cv_header_stdatomic_h=no 17478fi 17479rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17480 conftest$ac_exeext conftest.$ac_ext 17481 17482fi 17483{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdatomic_h" >&5 17484printf "%s\n" "$ac_cv_header_stdatomic_h" >&6; } 17485 17486if test "x$ac_cv_header_stdatomic_h" = xyes 17487then : 17488 17489 17490printf "%s\n" "#define HAVE_STD_ATOMIC 1" >>confdefs.h 17491 17492 17493fi 17494 17495# Check for GCC >= 4.7 and clang __atomic builtin functions 17496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for builtin __atomic_load_n and __atomic_store_n functions" >&5 17497printf %s "checking for builtin __atomic_load_n and __atomic_store_n functions... " >&6; } 17498if test ${ac_cv_builtin_atomic+y} 17499then : 17500 printf %s "(cached) " >&6 17501else $as_nop 17502 17503cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17504/* end confdefs.h. */ 17505 17506 17507 int val; 17508 int main() { 17509 __atomic_store_n(&val, 1, __ATOMIC_SEQ_CST); 17510 (void)__atomic_load_n(&val, __ATOMIC_SEQ_CST); 17511 return 0; 17512 } 17513 17514 17515_ACEOF 17516if ac_fn_c_try_link "$LINENO" 17517then : 17518 ac_cv_builtin_atomic=yes 17519else $as_nop 17520 ac_cv_builtin_atomic=no 17521fi 17522rm -f core conftest.err conftest.$ac_objext conftest.beam \ 17523 conftest$ac_exeext conftest.$ac_ext 17524 17525fi 17526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_builtin_atomic" >&5 17527printf "%s\n" "$ac_cv_builtin_atomic" >&6; } 17528 17529if test "x$ac_cv_builtin_atomic" = xyes 17530then : 17531 17532 17533printf "%s\n" "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h 17534 17535 17536fi 17537 17538# --with-mimalloc 17539{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-mimalloc" >&5 17540printf %s "checking for --with-mimalloc... " >&6; } 17541 17542# Check whether --with-mimalloc was given. 17543if test ${with_mimalloc+y} 17544then : 17545 withval=$with_mimalloc; 17546else $as_nop 17547 with_mimalloc="$ac_cv_header_stdatomic_h" 17548 17549fi 17550 17551 17552if test "$with_mimalloc" != no; then 17553 if test "$ac_cv_header_stdatomic_h" != yes; then 17554 # mimalloc-atomic.h wants C11 stdatomic.h on POSIX 17555 as_fn_error $? "mimalloc requires stdatomic.h, use --without-mimalloc to disable mimalloc." "$LINENO" 5 17556 fi 17557 with_mimalloc=yes 17558 17559printf "%s\n" "#define WITH_MIMALLOC 1" >>confdefs.h 17560 17561 MIMALLOC_HEADERS='$(MIMALLOC_HEADERS)' 17562 17563elif test "$disable_gil" = "yes"; then 17564 as_fn_error $? "--disable-gil requires mimalloc memory allocator (--with-mimalloc)." "$LINENO" 5 17565fi 17566 17567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_mimalloc" >&5 17568printf "%s\n" "$with_mimalloc" >&6; } 17569INSTALL_MIMALLOC=$with_mimalloc 17570 17571 17572 17573# Check for Python-specific malloc support 17574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 17575printf %s "checking for --with-pymalloc... " >&6; } 17576 17577# Check whether --with-pymalloc was given. 17578if test ${with_pymalloc+y} 17579then : 17580 withval=$with_pymalloc; 17581fi 17582 17583 17584if test -z "$with_pymalloc" 17585then 17586 case $ac_sys_system in #( 17587 Emscripten) : 17588 with_pymalloc="no" ;; #( 17589 WASI) : 17590 with_pymalloc="no" ;; #( 17591 *) : 17592 with_pymalloc="yes" 17593 ;; 17594esac 17595fi 17596if test "$with_pymalloc" != "no" 17597then 17598 17599printf "%s\n" "#define WITH_PYMALLOC 1" >>confdefs.h 17600 17601fi 17602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 17603printf "%s\n" "$with_pymalloc" >&6; } 17604 17605# Check whether objects such as float, tuple and dict are using 17606# freelists to optimization memory allocation. 17607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-freelists" >&5 17608printf %s "checking for --with-freelists... " >&6; } 17609 17610# Check whether --with-freelists was given. 17611if test ${with_freelists+y} 17612then : 17613 withval=$with_freelists; 17614fi 17615 17616 17617if test -z "$with_freelists" 17618then 17619 with_freelists="yes" 17620fi 17621if test "$with_freelists" != "no" 17622then 17623 17624printf "%s\n" "#define WITH_FREELISTS 1" >>confdefs.h 17625 17626fi 17627{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_freelists" >&5 17628printf "%s\n" "$with_freelists" >&6; } 17629 17630# Check for --with-c-locale-coercion 17631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 17632printf %s "checking for --with-c-locale-coercion... " >&6; } 17633 17634# Check whether --with-c-locale-coercion was given. 17635if test ${with_c_locale_coercion+y} 17636then : 17637 withval=$with_c_locale_coercion; 17638fi 17639 17640 17641if test -z "$with_c_locale_coercion" 17642then 17643 with_c_locale_coercion="yes" 17644fi 17645if test "$with_c_locale_coercion" != "no" 17646then 17647 17648printf "%s\n" "#define PY_COERCE_C_LOCALE 1" >>confdefs.h 17649 17650fi 17651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 17652printf "%s\n" "$with_c_locale_coercion" >&6; } 17653 17654# Check for Valgrind support 17655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 17656printf %s "checking for --with-valgrind... " >&6; } 17657 17658# Check whether --with-valgrind was given. 17659if test ${with_valgrind+y} 17660then : 17661 withval=$with_valgrind; 17662else $as_nop 17663 with_valgrind=no 17664 17665fi 17666 17667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 17668printf "%s\n" "$with_valgrind" >&6; } 17669if test "$with_valgrind" != no; then 17670 ac_fn_c_check_header_compile "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 17671if test "x$ac_cv_header_valgrind_valgrind_h" = xyes 17672then : 17673 17674printf "%s\n" "#define WITH_VALGRIND 1" >>confdefs.h 17675 17676else $as_nop 17677 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 17678 17679fi 17680 17681 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" 17682fi 17683 17684# Check for DTrace support 17685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 17686printf %s "checking for --with-dtrace... " >&6; } 17687 17688# Check whether --with-dtrace was given. 17689if test ${with_dtrace+y} 17690then : 17691 withval=$with_dtrace; 17692else $as_nop 17693 with_dtrace=no 17694fi 17695 17696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 17697printf "%s\n" "$with_dtrace" >&6; } 17698 17699 17700 17701 17702 17703DTRACE= 17704DTRACE_HEADERS= 17705DTRACE_OBJS= 17706 17707if test "$with_dtrace" = "yes" 17708then 17709 # Extract the first word of "dtrace", so it can be a program name with args. 17710set dummy dtrace; ac_word=$2 17711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17712printf %s "checking for $ac_word... " >&6; } 17713if test ${ac_cv_path_DTRACE+y} 17714then : 17715 printf %s "(cached) " >&6 17716else $as_nop 17717 case $DTRACE in 17718 [\\/]* | ?:[\\/]*) 17719 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 17720 ;; 17721 *) 17722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17723for as_dir in $PATH 17724do 17725 IFS=$as_save_IFS 17726 case $as_dir in #((( 17727 '') as_dir=./ ;; 17728 */) ;; 17729 *) as_dir=$as_dir/ ;; 17730 esac 17731 for ac_exec_ext in '' $ac_executable_extensions; do 17732 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 17733 ac_cv_path_DTRACE="$as_dir$ac_word$ac_exec_ext" 17734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 17735 break 2 17736 fi 17737done 17738 done 17739IFS=$as_save_IFS 17740 17741 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" 17742 ;; 17743esac 17744fi 17745DTRACE=$ac_cv_path_DTRACE 17746if test -n "$DTRACE"; then 17747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 17748printf "%s\n" "$DTRACE" >&6; } 17749else 17750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 17751printf "%s\n" "no" >&6; } 17752fi 17753 17754 17755 if test "$DTRACE" = "not found"; then 17756 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 17757 fi 17758 17759printf "%s\n" "#define WITH_DTRACE 1" >>confdefs.h 17760 17761 DTRACE_HEADERS="Include/pydtrace_probes.h" 17762 17763 # On OS X, DTrace providers do not need to be explicitly compiled and 17764 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF 17765 # generation flag '-G'. We check for presence of this flag, rather than 17766 # hardcoding support by OS, in the interest of robustness. 17767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 17768printf %s "checking whether DTrace probes require linking... " >&6; } 17769if test ${ac_cv_dtrace_link+y} 17770then : 17771 printf %s "(cached) " >&6 17772else $as_nop 17773 ac_cv_dtrace_link=no 17774 echo 'BEGIN{}' > conftest.d 17775 "$DTRACE" $DFLAGS -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ 17776 ac_cv_dtrace_link=yes 17777 17778fi 17779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 17780printf "%s\n" "$ac_cv_dtrace_link" >&6; } 17781 if test "$ac_cv_dtrace_link" = "yes"; then 17782 DTRACE_OBJS="Python/pydtrace.o" 17783 fi 17784fi 17785 17786PLATFORM_HEADERS= 17787PLATFORM_OBJS= 17788 17789case $ac_sys_system in #( 17790 Emscripten) : 17791 17792 as_fn_append PLATFORM_OBJS ' Python/emscripten_signal.o Python/emscripten_trampoline.o' 17793 as_fn_append PLATFORM_HEADERS ' $(srcdir)/Include/internal/pycore_emscripten_signal.h $(srcdir)/Include/internal/pycore_emscripten_trampoline.h' 17794 ;; #( 17795 *) : 17796 ;; 17797esac 17798 17799 17800 17801# -I${DLINCLDIR} is added to the compile rule for importdl.o 17802 17803DLINCLDIR=. 17804 17805# the dlopen() function means we might want to use dynload_shlib.o. some 17806# platforms have dlopen(), but don't want to use it. 17807ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 17808if test "x$ac_cv_func_dlopen" = xyes 17809then : 17810 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h 17811 17812fi 17813 17814 17815# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic 17816# loading of modules. 17817 17818{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 17819printf %s "checking DYNLOADFILE... " >&6; } 17820if test -z "$DYNLOADFILE" 17821then 17822 case $ac_sys_system/$ac_sys_release in 17823 hp*|HP*) DYNLOADFILE="dynload_hpux.o";; 17824 *) 17825 # use dynload_shlib.c and dlopen() if we have it; otherwise stub 17826 # out any dynamic loading 17827 if test "$ac_cv_func_dlopen" = yes 17828 then DYNLOADFILE="dynload_shlib.o" 17829 else DYNLOADFILE="dynload_stub.o" 17830 fi 17831 ;; 17832 esac 17833fi 17834{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 17835printf "%s\n" "$DYNLOADFILE" >&6; } 17836if test "$DYNLOADFILE" != "dynload_stub.o" 17837then 17838 17839printf "%s\n" "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h 17840 17841fi 17842 17843# MACHDEP_OBJS can be set to platform-specific object files needed by Python 17844 17845 17846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 17847printf %s "checking MACHDEP_OBJS... " >&6; } 17848if test -z "$MACHDEP_OBJS" 17849then 17850 MACHDEP_OBJS=$extra_machdep_objs 17851else 17852 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" 17853fi 17854if test -z "$MACHDEP_OBJS"; then 17855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 17856printf "%s\n" "none" >&6; } 17857else 17858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 17859printf "%s\n" "$MACHDEP_OBJS" >&6; } 17860fi 17861 17862if test "$ac_sys_system" = "Linux-android"; then 17863 # When these functions are used in an unprivileged process, they crash rather 17864 # than returning an error. 17865 blocked_funcs="chroot initgroups setegid seteuid setgid sethostname 17866 setregid setresgid setresuid setreuid setuid" 17867 17868 # These functions are unimplemented and always return an error 17869 # (https://android.googlesource.com/platform/system/sepolicy/+/refs/heads/android13-release/public/domain.te#1044) 17870 blocked_funcs="$blocked_funcs sem_open sem_unlink" 17871 17872 # Before API level 23, when fchmodat is called with the unimplemented flag 17873 # AT_SYMLINK_NOFOLLOW, instead of returning ENOTSUP as it should, it actually 17874 # follows the symlink. 17875 if test "$ANDROID_API_LEVEL" -lt 23; then 17876 blocked_funcs="$blocked_funcs fchmodat" 17877 fi 17878 17879 for name in $blocked_funcs; do 17880 as_func_var=`printf "%s\n" "ac_cv_func_$name" | $as_tr_sh` 17881 17882 eval "$as_func_var=no" 17883 17884 done 17885fi 17886 17887# checks for library functions 17888ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4" 17889if test "x$ac_cv_func_accept4" = xyes 17890then : 17891 printf "%s\n" "#define HAVE_ACCEPT4 1" >>confdefs.h 17892 17893fi 17894ac_fn_c_check_func "$LINENO" "alarm" "ac_cv_func_alarm" 17895if test "x$ac_cv_func_alarm" = xyes 17896then : 17897 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h 17898 17899fi 17900ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" 17901if test "x$ac_cv_func_bind_textdomain_codeset" = xyes 17902then : 17903 printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h 17904 17905fi 17906ac_fn_c_check_func "$LINENO" "chmod" "ac_cv_func_chmod" 17907if test "x$ac_cv_func_chmod" = xyes 17908then : 17909 printf "%s\n" "#define HAVE_CHMOD 1" >>confdefs.h 17910 17911fi 17912ac_fn_c_check_func "$LINENO" "chown" "ac_cv_func_chown" 17913if test "x$ac_cv_func_chown" = xyes 17914then : 17915 printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h 17916 17917fi 17918ac_fn_c_check_func "$LINENO" "clock" "ac_cv_func_clock" 17919if test "x$ac_cv_func_clock" = xyes 17920then : 17921 printf "%s\n" "#define HAVE_CLOCK 1" >>confdefs.h 17922 17923fi 17924ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom" 17925if test "x$ac_cv_func_closefrom" = xyes 17926then : 17927 printf "%s\n" "#define HAVE_CLOSEFROM 1" >>confdefs.h 17928 17929fi 17930ac_fn_c_check_func "$LINENO" "close_range" "ac_cv_func_close_range" 17931if test "x$ac_cv_func_close_range" = xyes 17932then : 17933 printf "%s\n" "#define HAVE_CLOSE_RANGE 1" >>confdefs.h 17934 17935fi 17936ac_fn_c_check_func "$LINENO" "confstr" "ac_cv_func_confstr" 17937if test "x$ac_cv_func_confstr" = xyes 17938then : 17939 printf "%s\n" "#define HAVE_CONFSTR 1" >>confdefs.h 17940 17941fi 17942ac_fn_c_check_func "$LINENO" "copy_file_range" "ac_cv_func_copy_file_range" 17943if test "x$ac_cv_func_copy_file_range" = xyes 17944then : 17945 printf "%s\n" "#define HAVE_COPY_FILE_RANGE 1" >>confdefs.h 17946 17947fi 17948ac_fn_c_check_func "$LINENO" "ctermid" "ac_cv_func_ctermid" 17949if test "x$ac_cv_func_ctermid" = xyes 17950then : 17951 printf "%s\n" "#define HAVE_CTERMID 1" >>confdefs.h 17952 17953fi 17954ac_fn_c_check_func "$LINENO" "dup" "ac_cv_func_dup" 17955if test "x$ac_cv_func_dup" = xyes 17956then : 17957 printf "%s\n" "#define HAVE_DUP 1" >>confdefs.h 17958 17959fi 17960ac_fn_c_check_func "$LINENO" "dup3" "ac_cv_func_dup3" 17961if test "x$ac_cv_func_dup3" = xyes 17962then : 17963 printf "%s\n" "#define HAVE_DUP3 1" >>confdefs.h 17964 17965fi 17966ac_fn_c_check_func "$LINENO" "execv" "ac_cv_func_execv" 17967if test "x$ac_cv_func_execv" = xyes 17968then : 17969 printf "%s\n" "#define HAVE_EXECV 1" >>confdefs.h 17970 17971fi 17972ac_fn_c_check_func "$LINENO" "explicit_bzero" "ac_cv_func_explicit_bzero" 17973if test "x$ac_cv_func_explicit_bzero" = xyes 17974then : 17975 printf "%s\n" "#define HAVE_EXPLICIT_BZERO 1" >>confdefs.h 17976 17977fi 17978ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset" 17979if test "x$ac_cv_func_explicit_memset" = xyes 17980then : 17981 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h 17982 17983fi 17984ac_fn_c_check_func "$LINENO" "faccessat" "ac_cv_func_faccessat" 17985if test "x$ac_cv_func_faccessat" = xyes 17986then : 17987 printf "%s\n" "#define HAVE_FACCESSAT 1" >>confdefs.h 17988 17989fi 17990ac_fn_c_check_func "$LINENO" "fchmod" "ac_cv_func_fchmod" 17991if test "x$ac_cv_func_fchmod" = xyes 17992then : 17993 printf "%s\n" "#define HAVE_FCHMOD 1" >>confdefs.h 17994 17995fi 17996ac_fn_c_check_func "$LINENO" "fchmodat" "ac_cv_func_fchmodat" 17997if test "x$ac_cv_func_fchmodat" = xyes 17998then : 17999 printf "%s\n" "#define HAVE_FCHMODAT 1" >>confdefs.h 18000 18001fi 18002ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown" 18003if test "x$ac_cv_func_fchown" = xyes 18004then : 18005 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h 18006 18007fi 18008ac_fn_c_check_func "$LINENO" "fchownat" "ac_cv_func_fchownat" 18009if test "x$ac_cv_func_fchownat" = xyes 18010then : 18011 printf "%s\n" "#define HAVE_FCHOWNAT 1" >>confdefs.h 18012 18013fi 18014ac_fn_c_check_func "$LINENO" "fdopendir" "ac_cv_func_fdopendir" 18015if test "x$ac_cv_func_fdopendir" = xyes 18016then : 18017 printf "%s\n" "#define HAVE_FDOPENDIR 1" >>confdefs.h 18018 18019fi 18020ac_fn_c_check_func "$LINENO" "fdwalk" "ac_cv_func_fdwalk" 18021if test "x$ac_cv_func_fdwalk" = xyes 18022then : 18023 printf "%s\n" "#define HAVE_FDWALK 1" >>confdefs.h 18024 18025fi 18026ac_fn_c_check_func "$LINENO" "fexecve" "ac_cv_func_fexecve" 18027if test "x$ac_cv_func_fexecve" = xyes 18028then : 18029 printf "%s\n" "#define HAVE_FEXECVE 1" >>confdefs.h 18030 18031fi 18032ac_fn_c_check_func "$LINENO" "fork" "ac_cv_func_fork" 18033if test "x$ac_cv_func_fork" = xyes 18034then : 18035 printf "%s\n" "#define HAVE_FORK 1" >>confdefs.h 18036 18037fi 18038ac_fn_c_check_func "$LINENO" "fork1" "ac_cv_func_fork1" 18039if test "x$ac_cv_func_fork1" = xyes 18040then : 18041 printf "%s\n" "#define HAVE_FORK1 1" >>confdefs.h 18042 18043fi 18044ac_fn_c_check_func "$LINENO" "fpathconf" "ac_cv_func_fpathconf" 18045if test "x$ac_cv_func_fpathconf" = xyes 18046then : 18047 printf "%s\n" "#define HAVE_FPATHCONF 1" >>confdefs.h 18048 18049fi 18050ac_fn_c_check_func "$LINENO" "fstatat" "ac_cv_func_fstatat" 18051if test "x$ac_cv_func_fstatat" = xyes 18052then : 18053 printf "%s\n" "#define HAVE_FSTATAT 1" >>confdefs.h 18054 18055fi 18056ac_fn_c_check_func "$LINENO" "ftime" "ac_cv_func_ftime" 18057if test "x$ac_cv_func_ftime" = xyes 18058then : 18059 printf "%s\n" "#define HAVE_FTIME 1" >>confdefs.h 18060 18061fi 18062ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" 18063if test "x$ac_cv_func_ftruncate" = xyes 18064then : 18065 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h 18066 18067fi 18068ac_fn_c_check_func "$LINENO" "futimens" "ac_cv_func_futimens" 18069if test "x$ac_cv_func_futimens" = xyes 18070then : 18071 printf "%s\n" "#define HAVE_FUTIMENS 1" >>confdefs.h 18072 18073fi 18074ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes" 18075if test "x$ac_cv_func_futimes" = xyes 18076then : 18077 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h 18078 18079fi 18080ac_fn_c_check_func "$LINENO" "futimesat" "ac_cv_func_futimesat" 18081if test "x$ac_cv_func_futimesat" = xyes 18082then : 18083 printf "%s\n" "#define HAVE_FUTIMESAT 1" >>confdefs.h 18084 18085fi 18086ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror" 18087if test "x$ac_cv_func_gai_strerror" = xyes 18088then : 18089 printf "%s\n" "#define HAVE_GAI_STRERROR 1" >>confdefs.h 18090 18091fi 18092ac_fn_c_check_func "$LINENO" "getegid" "ac_cv_func_getegid" 18093if test "x$ac_cv_func_getegid" = xyes 18094then : 18095 printf "%s\n" "#define HAVE_GETEGID 1" >>confdefs.h 18096 18097fi 18098ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" 18099if test "x$ac_cv_func_geteuid" = xyes 18100then : 18101 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h 18102 18103fi 18104ac_fn_c_check_func "$LINENO" "getgid" "ac_cv_func_getgid" 18105if test "x$ac_cv_func_getgid" = xyes 18106then : 18107 printf "%s\n" "#define HAVE_GETGID 1" >>confdefs.h 18108 18109fi 18110ac_fn_c_check_func "$LINENO" "getgrent" "ac_cv_func_getgrent" 18111if test "x$ac_cv_func_getgrent" = xyes 18112then : 18113 printf "%s\n" "#define HAVE_GETGRENT 1" >>confdefs.h 18114 18115fi 18116ac_fn_c_check_func "$LINENO" "getgrgid" "ac_cv_func_getgrgid" 18117if test "x$ac_cv_func_getgrgid" = xyes 18118then : 18119 printf "%s\n" "#define HAVE_GETGRGID 1" >>confdefs.h 18120 18121fi 18122ac_fn_c_check_func "$LINENO" "getgrgid_r" "ac_cv_func_getgrgid_r" 18123if test "x$ac_cv_func_getgrgid_r" = xyes 18124then : 18125 printf "%s\n" "#define HAVE_GETGRGID_R 1" >>confdefs.h 18126 18127fi 18128ac_fn_c_check_func "$LINENO" "getgrnam_r" "ac_cv_func_getgrnam_r" 18129if test "x$ac_cv_func_getgrnam_r" = xyes 18130then : 18131 printf "%s\n" "#define HAVE_GETGRNAM_R 1" >>confdefs.h 18132 18133fi 18134ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" 18135if test "x$ac_cv_func_getgrouplist" = xyes 18136then : 18137 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h 18138 18139fi 18140ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname" 18141if test "x$ac_cv_func_gethostname" = xyes 18142then : 18143 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h 18144 18145fi 18146ac_fn_c_check_func "$LINENO" "getitimer" "ac_cv_func_getitimer" 18147if test "x$ac_cv_func_getitimer" = xyes 18148then : 18149 printf "%s\n" "#define HAVE_GETITIMER 1" >>confdefs.h 18150 18151fi 18152ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18153if test "x$ac_cv_func_getloadavg" = xyes 18154then : 18155 printf "%s\n" "#define HAVE_GETLOADAVG 1" >>confdefs.h 18156 18157fi 18158ac_fn_c_check_func "$LINENO" "getlogin" "ac_cv_func_getlogin" 18159if test "x$ac_cv_func_getlogin" = xyes 18160then : 18161 printf "%s\n" "#define HAVE_GETLOGIN 1" >>confdefs.h 18162 18163fi 18164ac_fn_c_check_func "$LINENO" "getpeername" "ac_cv_func_getpeername" 18165if test "x$ac_cv_func_getpeername" = xyes 18166then : 18167 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h 18168 18169fi 18170ac_fn_c_check_func "$LINENO" "getpgid" "ac_cv_func_getpgid" 18171if test "x$ac_cv_func_getpgid" = xyes 18172then : 18173 printf "%s\n" "#define HAVE_GETPGID 1" >>confdefs.h 18174 18175fi 18176ac_fn_c_check_func "$LINENO" "getpid" "ac_cv_func_getpid" 18177if test "x$ac_cv_func_getpid" = xyes 18178then : 18179 printf "%s\n" "#define HAVE_GETPID 1" >>confdefs.h 18180 18181fi 18182ac_fn_c_check_func "$LINENO" "getppid" "ac_cv_func_getppid" 18183if test "x$ac_cv_func_getppid" = xyes 18184then : 18185 printf "%s\n" "#define HAVE_GETPPID 1" >>confdefs.h 18186 18187fi 18188ac_fn_c_check_func "$LINENO" "getpriority" "ac_cv_func_getpriority" 18189if test "x$ac_cv_func_getpriority" = xyes 18190then : 18191 printf "%s\n" "#define HAVE_GETPRIORITY 1" >>confdefs.h 18192 18193fi 18194ac_fn_c_check_func "$LINENO" "_getpty" "ac_cv_func__getpty" 18195if test "x$ac_cv_func__getpty" = xyes 18196then : 18197 printf "%s\n" "#define HAVE__GETPTY 1" >>confdefs.h 18198 18199fi 18200ac_fn_c_check_func "$LINENO" "getpwent" "ac_cv_func_getpwent" 18201if test "x$ac_cv_func_getpwent" = xyes 18202then : 18203 printf "%s\n" "#define HAVE_GETPWENT 1" >>confdefs.h 18204 18205fi 18206ac_fn_c_check_func "$LINENO" "getpwnam_r" "ac_cv_func_getpwnam_r" 18207if test "x$ac_cv_func_getpwnam_r" = xyes 18208then : 18209 printf "%s\n" "#define HAVE_GETPWNAM_R 1" >>confdefs.h 18210 18211fi 18212ac_fn_c_check_func "$LINENO" "getpwuid" "ac_cv_func_getpwuid" 18213if test "x$ac_cv_func_getpwuid" = xyes 18214then : 18215 printf "%s\n" "#define HAVE_GETPWUID 1" >>confdefs.h 18216 18217fi 18218ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r" 18219if test "x$ac_cv_func_getpwuid_r" = xyes 18220then : 18221 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h 18222 18223fi 18224ac_fn_c_check_func "$LINENO" "getresgid" "ac_cv_func_getresgid" 18225if test "x$ac_cv_func_getresgid" = xyes 18226then : 18227 printf "%s\n" "#define HAVE_GETRESGID 1" >>confdefs.h 18228 18229fi 18230ac_fn_c_check_func "$LINENO" "getresuid" "ac_cv_func_getresuid" 18231if test "x$ac_cv_func_getresuid" = xyes 18232then : 18233 printf "%s\n" "#define HAVE_GETRESUID 1" >>confdefs.h 18234 18235fi 18236ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage" 18237if test "x$ac_cv_func_getrusage" = xyes 18238then : 18239 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h 18240 18241fi 18242ac_fn_c_check_func "$LINENO" "getsid" "ac_cv_func_getsid" 18243if test "x$ac_cv_func_getsid" = xyes 18244then : 18245 printf "%s\n" "#define HAVE_GETSID 1" >>confdefs.h 18246 18247fi 18248ac_fn_c_check_func "$LINENO" "getspent" "ac_cv_func_getspent" 18249if test "x$ac_cv_func_getspent" = xyes 18250then : 18251 printf "%s\n" "#define HAVE_GETSPENT 1" >>confdefs.h 18252 18253fi 18254ac_fn_c_check_func "$LINENO" "getspnam" "ac_cv_func_getspnam" 18255if test "x$ac_cv_func_getspnam" = xyes 18256then : 18257 printf "%s\n" "#define HAVE_GETSPNAM 1" >>confdefs.h 18258 18259fi 18260ac_fn_c_check_func "$LINENO" "getuid" "ac_cv_func_getuid" 18261if test "x$ac_cv_func_getuid" = xyes 18262then : 18263 printf "%s\n" "#define HAVE_GETUID 1" >>confdefs.h 18264 18265fi 18266ac_fn_c_check_func "$LINENO" "getwd" "ac_cv_func_getwd" 18267if test "x$ac_cv_func_getwd" = xyes 18268then : 18269 printf "%s\n" "#define HAVE_GETWD 1" >>confdefs.h 18270 18271fi 18272ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 18273if test "x$ac_cv_func_grantpt" = xyes 18274then : 18275 printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h 18276 18277fi 18278ac_fn_c_check_func "$LINENO" "if_nameindex" "ac_cv_func_if_nameindex" 18279if test "x$ac_cv_func_if_nameindex" = xyes 18280then : 18281 printf "%s\n" "#define HAVE_IF_NAMEINDEX 1" >>confdefs.h 18282 18283fi 18284ac_fn_c_check_func "$LINENO" "initgroups" "ac_cv_func_initgroups" 18285if test "x$ac_cv_func_initgroups" = xyes 18286then : 18287 printf "%s\n" "#define HAVE_INITGROUPS 1" >>confdefs.h 18288 18289fi 18290ac_fn_c_check_func "$LINENO" "kill" "ac_cv_func_kill" 18291if test "x$ac_cv_func_kill" = xyes 18292then : 18293 printf "%s\n" "#define HAVE_KILL 1" >>confdefs.h 18294 18295fi 18296ac_fn_c_check_func "$LINENO" "killpg" "ac_cv_func_killpg" 18297if test "x$ac_cv_func_killpg" = xyes 18298then : 18299 printf "%s\n" "#define HAVE_KILLPG 1" >>confdefs.h 18300 18301fi 18302ac_fn_c_check_func "$LINENO" "lchown" "ac_cv_func_lchown" 18303if test "x$ac_cv_func_lchown" = xyes 18304then : 18305 printf "%s\n" "#define HAVE_LCHOWN 1" >>confdefs.h 18306 18307fi 18308ac_fn_c_check_func "$LINENO" "linkat" "ac_cv_func_linkat" 18309if test "x$ac_cv_func_linkat" = xyes 18310then : 18311 printf "%s\n" "#define HAVE_LINKAT 1" >>confdefs.h 18312 18313fi 18314ac_fn_c_check_func "$LINENO" "lockf" "ac_cv_func_lockf" 18315if test "x$ac_cv_func_lockf" = xyes 18316then : 18317 printf "%s\n" "#define HAVE_LOCKF 1" >>confdefs.h 18318 18319fi 18320ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" 18321if test "x$ac_cv_func_lstat" = xyes 18322then : 18323 printf "%s\n" "#define HAVE_LSTAT 1" >>confdefs.h 18324 18325fi 18326ac_fn_c_check_func "$LINENO" "lutimes" "ac_cv_func_lutimes" 18327if test "x$ac_cv_func_lutimes" = xyes 18328then : 18329 printf "%s\n" "#define HAVE_LUTIMES 1" >>confdefs.h 18330 18331fi 18332ac_fn_c_check_func "$LINENO" "madvise" "ac_cv_func_madvise" 18333if test "x$ac_cv_func_madvise" = xyes 18334then : 18335 printf "%s\n" "#define HAVE_MADVISE 1" >>confdefs.h 18336 18337fi 18338ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc" 18339if test "x$ac_cv_func_mbrtowc" = xyes 18340then : 18341 printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h 18342 18343fi 18344ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" 18345if test "x$ac_cv_func_memrchr" = xyes 18346then : 18347 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h 18348 18349fi 18350ac_fn_c_check_func "$LINENO" "mkdirat" "ac_cv_func_mkdirat" 18351if test "x$ac_cv_func_mkdirat" = xyes 18352then : 18353 printf "%s\n" "#define HAVE_MKDIRAT 1" >>confdefs.h 18354 18355fi 18356ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo" 18357if test "x$ac_cv_func_mkfifo" = xyes 18358then : 18359 printf "%s\n" "#define HAVE_MKFIFO 1" >>confdefs.h 18360 18361fi 18362ac_fn_c_check_func "$LINENO" "mkfifoat" "ac_cv_func_mkfifoat" 18363if test "x$ac_cv_func_mkfifoat" = xyes 18364then : 18365 printf "%s\n" "#define HAVE_MKFIFOAT 1" >>confdefs.h 18366 18367fi 18368ac_fn_c_check_func "$LINENO" "mknod" "ac_cv_func_mknod" 18369if test "x$ac_cv_func_mknod" = xyes 18370then : 18371 printf "%s\n" "#define HAVE_MKNOD 1" >>confdefs.h 18372 18373fi 18374ac_fn_c_check_func "$LINENO" "mknodat" "ac_cv_func_mknodat" 18375if test "x$ac_cv_func_mknodat" = xyes 18376then : 18377 printf "%s\n" "#define HAVE_MKNODAT 1" >>confdefs.h 18378 18379fi 18380ac_fn_c_check_func "$LINENO" "mktime" "ac_cv_func_mktime" 18381if test "x$ac_cv_func_mktime" = xyes 18382then : 18383 printf "%s\n" "#define HAVE_MKTIME 1" >>confdefs.h 18384 18385fi 18386ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" 18387if test "x$ac_cv_func_mmap" = xyes 18388then : 18389 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h 18390 18391fi 18392ac_fn_c_check_func "$LINENO" "mremap" "ac_cv_func_mremap" 18393if test "x$ac_cv_func_mremap" = xyes 18394then : 18395 printf "%s\n" "#define HAVE_MREMAP 1" >>confdefs.h 18396 18397fi 18398ac_fn_c_check_func "$LINENO" "nice" "ac_cv_func_nice" 18399if test "x$ac_cv_func_nice" = xyes 18400then : 18401 printf "%s\n" "#define HAVE_NICE 1" >>confdefs.h 18402 18403fi 18404ac_fn_c_check_func "$LINENO" "openat" "ac_cv_func_openat" 18405if test "x$ac_cv_func_openat" = xyes 18406then : 18407 printf "%s\n" "#define HAVE_OPENAT 1" >>confdefs.h 18408 18409fi 18410ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir" 18411if test "x$ac_cv_func_opendir" = xyes 18412then : 18413 printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h 18414 18415fi 18416ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf" 18417if test "x$ac_cv_func_pathconf" = xyes 18418then : 18419 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h 18420 18421fi 18422ac_fn_c_check_func "$LINENO" "pause" "ac_cv_func_pause" 18423if test "x$ac_cv_func_pause" = xyes 18424then : 18425 printf "%s\n" "#define HAVE_PAUSE 1" >>confdefs.h 18426 18427fi 18428ac_fn_c_check_func "$LINENO" "pipe" "ac_cv_func_pipe" 18429if test "x$ac_cv_func_pipe" = xyes 18430then : 18431 printf "%s\n" "#define HAVE_PIPE 1" >>confdefs.h 18432 18433fi 18434ac_fn_c_check_func "$LINENO" "pipe2" "ac_cv_func_pipe2" 18435if test "x$ac_cv_func_pipe2" = xyes 18436then : 18437 printf "%s\n" "#define HAVE_PIPE2 1" >>confdefs.h 18438 18439fi 18440ac_fn_c_check_func "$LINENO" "plock" "ac_cv_func_plock" 18441if test "x$ac_cv_func_plock" = xyes 18442then : 18443 printf "%s\n" "#define HAVE_PLOCK 1" >>confdefs.h 18444 18445fi 18446ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" 18447if test "x$ac_cv_func_poll" = xyes 18448then : 18449 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h 18450 18451fi 18452ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" 18453if test "x$ac_cv_func_posix_fadvise" = xyes 18454then : 18455 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h 18456 18457fi 18458ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate" 18459if test "x$ac_cv_func_posix_fallocate" = xyes 18460then : 18461 printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h 18462 18463fi 18464ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt" 18465if test "x$ac_cv_func_posix_openpt" = xyes 18466then : 18467 printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h 18468 18469fi 18470ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" 18471if test "x$ac_cv_func_posix_spawn" = xyes 18472then : 18473 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h 18474 18475fi 18476ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp" 18477if test "x$ac_cv_func_posix_spawnp" = xyes 18478then : 18479 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h 18480 18481fi 18482ac_fn_c_check_func "$LINENO" "posix_spawn_file_actions_addclosefrom_np" "ac_cv_func_posix_spawn_file_actions_addclosefrom_np" 18483if test "x$ac_cv_func_posix_spawn_file_actions_addclosefrom_np" = xyes 18484then : 18485 printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSEFROM_NP 1" >>confdefs.h 18486 18487fi 18488ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread" 18489if test "x$ac_cv_func_pread" = xyes 18490then : 18491 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h 18492 18493fi 18494ac_fn_c_check_func "$LINENO" "preadv" "ac_cv_func_preadv" 18495if test "x$ac_cv_func_preadv" = xyes 18496then : 18497 printf "%s\n" "#define HAVE_PREADV 1" >>confdefs.h 18498 18499fi 18500ac_fn_c_check_func "$LINENO" "preadv2" "ac_cv_func_preadv2" 18501if test "x$ac_cv_func_preadv2" = xyes 18502then : 18503 printf "%s\n" "#define HAVE_PREADV2 1" >>confdefs.h 18504 18505fi 18506ac_fn_c_check_func "$LINENO" "process_vm_readv" "ac_cv_func_process_vm_readv" 18507if test "x$ac_cv_func_process_vm_readv" = xyes 18508then : 18509 printf "%s\n" "#define HAVE_PROCESS_VM_READV 1" >>confdefs.h 18510 18511fi 18512ac_fn_c_check_func "$LINENO" "pthread_cond_timedwait_relative_np" "ac_cv_func_pthread_cond_timedwait_relative_np" 18513if test "x$ac_cv_func_pthread_cond_timedwait_relative_np" = xyes 18514then : 18515 printf "%s\n" "#define HAVE_PTHREAD_COND_TIMEDWAIT_RELATIVE_NP 1" >>confdefs.h 18516 18517fi 18518ac_fn_c_check_func "$LINENO" "pthread_condattr_setclock" "ac_cv_func_pthread_condattr_setclock" 18519if test "x$ac_cv_func_pthread_condattr_setclock" = xyes 18520then : 18521 printf "%s\n" "#define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h 18522 18523fi 18524ac_fn_c_check_func "$LINENO" "pthread_init" "ac_cv_func_pthread_init" 18525if test "x$ac_cv_func_pthread_init" = xyes 18526then : 18527 printf "%s\n" "#define HAVE_PTHREAD_INIT 1" >>confdefs.h 18528 18529fi 18530ac_fn_c_check_func "$LINENO" "pthread_kill" "ac_cv_func_pthread_kill" 18531if test "x$ac_cv_func_pthread_kill" = xyes 18532then : 18533 printf "%s\n" "#define HAVE_PTHREAD_KILL 1" >>confdefs.h 18534 18535fi 18536ac_fn_c_check_func "$LINENO" "ptsname" "ac_cv_func_ptsname" 18537if test "x$ac_cv_func_ptsname" = xyes 18538then : 18539 printf "%s\n" "#define HAVE_PTSNAME 1" >>confdefs.h 18540 18541fi 18542ac_fn_c_check_func "$LINENO" "ptsname_r" "ac_cv_func_ptsname_r" 18543if test "x$ac_cv_func_ptsname_r" = xyes 18544then : 18545 printf "%s\n" "#define HAVE_PTSNAME_R 1" >>confdefs.h 18546 18547fi 18548ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite" 18549if test "x$ac_cv_func_pwrite" = xyes 18550then : 18551 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h 18552 18553fi 18554ac_fn_c_check_func "$LINENO" "pwritev" "ac_cv_func_pwritev" 18555if test "x$ac_cv_func_pwritev" = xyes 18556then : 18557 printf "%s\n" "#define HAVE_PWRITEV 1" >>confdefs.h 18558 18559fi 18560ac_fn_c_check_func "$LINENO" "pwritev2" "ac_cv_func_pwritev2" 18561if test "x$ac_cv_func_pwritev2" = xyes 18562then : 18563 printf "%s\n" "#define HAVE_PWRITEV2 1" >>confdefs.h 18564 18565fi 18566ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink" 18567if test "x$ac_cv_func_readlink" = xyes 18568then : 18569 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h 18570 18571fi 18572ac_fn_c_check_func "$LINENO" "readlinkat" "ac_cv_func_readlinkat" 18573if test "x$ac_cv_func_readlinkat" = xyes 18574then : 18575 printf "%s\n" "#define HAVE_READLINKAT 1" >>confdefs.h 18576 18577fi 18578ac_fn_c_check_func "$LINENO" "readv" "ac_cv_func_readv" 18579if test "x$ac_cv_func_readv" = xyes 18580then : 18581 printf "%s\n" "#define HAVE_READV 1" >>confdefs.h 18582 18583fi 18584ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" 18585if test "x$ac_cv_func_realpath" = xyes 18586then : 18587 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h 18588 18589fi 18590ac_fn_c_check_func "$LINENO" "renameat" "ac_cv_func_renameat" 18591if test "x$ac_cv_func_renameat" = xyes 18592then : 18593 printf "%s\n" "#define HAVE_RENAMEAT 1" >>confdefs.h 18594 18595fi 18596ac_fn_c_check_func "$LINENO" "rtpSpawn" "ac_cv_func_rtpSpawn" 18597if test "x$ac_cv_func_rtpSpawn" = xyes 18598then : 18599 printf "%s\n" "#define HAVE_RTPSPAWN 1" >>confdefs.h 18600 18601fi 18602ac_fn_c_check_func "$LINENO" "sched_get_priority_max" "ac_cv_func_sched_get_priority_max" 18603if test "x$ac_cv_func_sched_get_priority_max" = xyes 18604then : 18605 printf "%s\n" "#define HAVE_SCHED_GET_PRIORITY_MAX 1" >>confdefs.h 18606 18607fi 18608ac_fn_c_check_func "$LINENO" "sched_rr_get_interval" "ac_cv_func_sched_rr_get_interval" 18609if test "x$ac_cv_func_sched_rr_get_interval" = xyes 18610then : 18611 printf "%s\n" "#define HAVE_SCHED_RR_GET_INTERVAL 1" >>confdefs.h 18612 18613fi 18614ac_fn_c_check_func "$LINENO" "sched_setaffinity" "ac_cv_func_sched_setaffinity" 18615if test "x$ac_cv_func_sched_setaffinity" = xyes 18616then : 18617 printf "%s\n" "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h 18618 18619fi 18620ac_fn_c_check_func "$LINENO" "sched_setparam" "ac_cv_func_sched_setparam" 18621if test "x$ac_cv_func_sched_setparam" = xyes 18622then : 18623 printf "%s\n" "#define HAVE_SCHED_SETPARAM 1" >>confdefs.h 18624 18625fi 18626ac_fn_c_check_func "$LINENO" "sched_setscheduler" "ac_cv_func_sched_setscheduler" 18627if test "x$ac_cv_func_sched_setscheduler" = xyes 18628then : 18629 printf "%s\n" "#define HAVE_SCHED_SETSCHEDULER 1" >>confdefs.h 18630 18631fi 18632ac_fn_c_check_func "$LINENO" "sem_clockwait" "ac_cv_func_sem_clockwait" 18633if test "x$ac_cv_func_sem_clockwait" = xyes 18634then : 18635 printf "%s\n" "#define HAVE_SEM_CLOCKWAIT 1" >>confdefs.h 18636 18637fi 18638ac_fn_c_check_func "$LINENO" "sem_getvalue" "ac_cv_func_sem_getvalue" 18639if test "x$ac_cv_func_sem_getvalue" = xyes 18640then : 18641 printf "%s\n" "#define HAVE_SEM_GETVALUE 1" >>confdefs.h 18642 18643fi 18644ac_fn_c_check_func "$LINENO" "sem_open" "ac_cv_func_sem_open" 18645if test "x$ac_cv_func_sem_open" = xyes 18646then : 18647 printf "%s\n" "#define HAVE_SEM_OPEN 1" >>confdefs.h 18648 18649fi 18650ac_fn_c_check_func "$LINENO" "sem_timedwait" "ac_cv_func_sem_timedwait" 18651if test "x$ac_cv_func_sem_timedwait" = xyes 18652then : 18653 printf "%s\n" "#define HAVE_SEM_TIMEDWAIT 1" >>confdefs.h 18654 18655fi 18656ac_fn_c_check_func "$LINENO" "sem_unlink" "ac_cv_func_sem_unlink" 18657if test "x$ac_cv_func_sem_unlink" = xyes 18658then : 18659 printf "%s\n" "#define HAVE_SEM_UNLINK 1" >>confdefs.h 18660 18661fi 18662ac_fn_c_check_func "$LINENO" "sendfile" "ac_cv_func_sendfile" 18663if test "x$ac_cv_func_sendfile" = xyes 18664then : 18665 printf "%s\n" "#define HAVE_SENDFILE 1" >>confdefs.h 18666 18667fi 18668ac_fn_c_check_func "$LINENO" "setegid" "ac_cv_func_setegid" 18669if test "x$ac_cv_func_setegid" = xyes 18670then : 18671 printf "%s\n" "#define HAVE_SETEGID 1" >>confdefs.h 18672 18673fi 18674ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 18675if test "x$ac_cv_func_seteuid" = xyes 18676then : 18677 printf "%s\n" "#define HAVE_SETEUID 1" >>confdefs.h 18678 18679fi 18680ac_fn_c_check_func "$LINENO" "setgid" "ac_cv_func_setgid" 18681if test "x$ac_cv_func_setgid" = xyes 18682then : 18683 printf "%s\n" "#define HAVE_SETGID 1" >>confdefs.h 18684 18685fi 18686ac_fn_c_check_func "$LINENO" "sethostname" "ac_cv_func_sethostname" 18687if test "x$ac_cv_func_sethostname" = xyes 18688then : 18689 printf "%s\n" "#define HAVE_SETHOSTNAME 1" >>confdefs.h 18690 18691fi 18692ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" 18693if test "x$ac_cv_func_setitimer" = xyes 18694then : 18695 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h 18696 18697fi 18698ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 18699if test "x$ac_cv_func_setlocale" = xyes 18700then : 18701 printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h 18702 18703fi 18704ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" 18705if test "x$ac_cv_func_setpgid" = xyes 18706then : 18707 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h 18708 18709fi 18710ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 18711if test "x$ac_cv_func_setpgrp" = xyes 18712then : 18713 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h 18714 18715fi 18716ac_fn_c_check_func "$LINENO" "setpriority" "ac_cv_func_setpriority" 18717if test "x$ac_cv_func_setpriority" = xyes 18718then : 18719 printf "%s\n" "#define HAVE_SETPRIORITY 1" >>confdefs.h 18720 18721fi 18722ac_fn_c_check_func "$LINENO" "setregid" "ac_cv_func_setregid" 18723if test "x$ac_cv_func_setregid" = xyes 18724then : 18725 printf "%s\n" "#define HAVE_SETREGID 1" >>confdefs.h 18726 18727fi 18728ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid" 18729if test "x$ac_cv_func_setresgid" = xyes 18730then : 18731 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h 18732 18733fi 18734ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid" 18735if test "x$ac_cv_func_setresuid" = xyes 18736then : 18737 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h 18738 18739fi 18740ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 18741if test "x$ac_cv_func_setreuid" = xyes 18742then : 18743 printf "%s\n" "#define HAVE_SETREUID 1" >>confdefs.h 18744 18745fi 18746ac_fn_c_check_func "$LINENO" "setsid" "ac_cv_func_setsid" 18747if test "x$ac_cv_func_setsid" = xyes 18748then : 18749 printf "%s\n" "#define HAVE_SETSID 1" >>confdefs.h 18750 18751fi 18752ac_fn_c_check_func "$LINENO" "setuid" "ac_cv_func_setuid" 18753if test "x$ac_cv_func_setuid" = xyes 18754then : 18755 printf "%s\n" "#define HAVE_SETUID 1" >>confdefs.h 18756 18757fi 18758ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf" 18759if test "x$ac_cv_func_setvbuf" = xyes 18760then : 18761 printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h 18762 18763fi 18764ac_fn_c_check_func "$LINENO" "shutdown" "ac_cv_func_shutdown" 18765if test "x$ac_cv_func_shutdown" = xyes 18766then : 18767 printf "%s\n" "#define HAVE_SHUTDOWN 1" >>confdefs.h 18768 18769fi 18770ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 18771if test "x$ac_cv_func_sigaction" = xyes 18772then : 18773 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h 18774 18775fi 18776ac_fn_c_check_func "$LINENO" "sigaltstack" "ac_cv_func_sigaltstack" 18777if test "x$ac_cv_func_sigaltstack" = xyes 18778then : 18779 printf "%s\n" "#define HAVE_SIGALTSTACK 1" >>confdefs.h 18780 18781fi 18782ac_fn_c_check_func "$LINENO" "sigfillset" "ac_cv_func_sigfillset" 18783if test "x$ac_cv_func_sigfillset" = xyes 18784then : 18785 printf "%s\n" "#define HAVE_SIGFILLSET 1" >>confdefs.h 18786 18787fi 18788ac_fn_c_check_func "$LINENO" "siginterrupt" "ac_cv_func_siginterrupt" 18789if test "x$ac_cv_func_siginterrupt" = xyes 18790then : 18791 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h 18792 18793fi 18794ac_fn_c_check_func "$LINENO" "sigpending" "ac_cv_func_sigpending" 18795if test "x$ac_cv_func_sigpending" = xyes 18796then : 18797 printf "%s\n" "#define HAVE_SIGPENDING 1" >>confdefs.h 18798 18799fi 18800ac_fn_c_check_func "$LINENO" "sigrelse" "ac_cv_func_sigrelse" 18801if test "x$ac_cv_func_sigrelse" = xyes 18802then : 18803 printf "%s\n" "#define HAVE_SIGRELSE 1" >>confdefs.h 18804 18805fi 18806ac_fn_c_check_func "$LINENO" "sigtimedwait" "ac_cv_func_sigtimedwait" 18807if test "x$ac_cv_func_sigtimedwait" = xyes 18808then : 18809 printf "%s\n" "#define HAVE_SIGTIMEDWAIT 1" >>confdefs.h 18810 18811fi 18812ac_fn_c_check_func "$LINENO" "sigwait" "ac_cv_func_sigwait" 18813if test "x$ac_cv_func_sigwait" = xyes 18814then : 18815 printf "%s\n" "#define HAVE_SIGWAIT 1" >>confdefs.h 18816 18817fi 18818ac_fn_c_check_func "$LINENO" "sigwaitinfo" "ac_cv_func_sigwaitinfo" 18819if test "x$ac_cv_func_sigwaitinfo" = xyes 18820then : 18821 printf "%s\n" "#define HAVE_SIGWAITINFO 1" >>confdefs.h 18822 18823fi 18824ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" 18825if test "x$ac_cv_func_snprintf" = xyes 18826then : 18827 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h 18828 18829fi 18830ac_fn_c_check_func "$LINENO" "splice" "ac_cv_func_splice" 18831if test "x$ac_cv_func_splice" = xyes 18832then : 18833 printf "%s\n" "#define HAVE_SPLICE 1" >>confdefs.h 18834 18835fi 18836ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 18837if test "x$ac_cv_func_strftime" = xyes 18838then : 18839 printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h 18840 18841fi 18842ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy" 18843if test "x$ac_cv_func_strlcpy" = xyes 18844then : 18845 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h 18846 18847fi 18848ac_fn_c_check_func "$LINENO" "strsignal" "ac_cv_func_strsignal" 18849if test "x$ac_cv_func_strsignal" = xyes 18850then : 18851 printf "%s\n" "#define HAVE_STRSIGNAL 1" >>confdefs.h 18852 18853fi 18854ac_fn_c_check_func "$LINENO" "symlinkat" "ac_cv_func_symlinkat" 18855if test "x$ac_cv_func_symlinkat" = xyes 18856then : 18857 printf "%s\n" "#define HAVE_SYMLINKAT 1" >>confdefs.h 18858 18859fi 18860ac_fn_c_check_func "$LINENO" "sync" "ac_cv_func_sync" 18861if test "x$ac_cv_func_sync" = xyes 18862then : 18863 printf "%s\n" "#define HAVE_SYNC 1" >>confdefs.h 18864 18865fi 18866ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 18867if test "x$ac_cv_func_sysconf" = xyes 18868then : 18869 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 18870 18871fi 18872ac_fn_c_check_func "$LINENO" "tcgetpgrp" "ac_cv_func_tcgetpgrp" 18873if test "x$ac_cv_func_tcgetpgrp" = xyes 18874then : 18875 printf "%s\n" "#define HAVE_TCGETPGRP 1" >>confdefs.h 18876 18877fi 18878ac_fn_c_check_func "$LINENO" "tcsetpgrp" "ac_cv_func_tcsetpgrp" 18879if test "x$ac_cv_func_tcsetpgrp" = xyes 18880then : 18881 printf "%s\n" "#define HAVE_TCSETPGRP 1" >>confdefs.h 18882 18883fi 18884ac_fn_c_check_func "$LINENO" "tempnam" "ac_cv_func_tempnam" 18885if test "x$ac_cv_func_tempnam" = xyes 18886then : 18887 printf "%s\n" "#define HAVE_TEMPNAM 1" >>confdefs.h 18888 18889fi 18890ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm" 18891if test "x$ac_cv_func_timegm" = xyes 18892then : 18893 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h 18894 18895fi 18896ac_fn_c_check_func "$LINENO" "times" "ac_cv_func_times" 18897if test "x$ac_cv_func_times" = xyes 18898then : 18899 printf "%s\n" "#define HAVE_TIMES 1" >>confdefs.h 18900 18901fi 18902ac_fn_c_check_func "$LINENO" "tmpfile" "ac_cv_func_tmpfile" 18903if test "x$ac_cv_func_tmpfile" = xyes 18904then : 18905 printf "%s\n" "#define HAVE_TMPFILE 1" >>confdefs.h 18906 18907fi 18908ac_fn_c_check_func "$LINENO" "tmpnam" "ac_cv_func_tmpnam" 18909if test "x$ac_cv_func_tmpnam" = xyes 18910then : 18911 printf "%s\n" "#define HAVE_TMPNAM 1" >>confdefs.h 18912 18913fi 18914ac_fn_c_check_func "$LINENO" "tmpnam_r" "ac_cv_func_tmpnam_r" 18915if test "x$ac_cv_func_tmpnam_r" = xyes 18916then : 18917 printf "%s\n" "#define HAVE_TMPNAM_R 1" >>confdefs.h 18918 18919fi 18920ac_fn_c_check_func "$LINENO" "truncate" "ac_cv_func_truncate" 18921if test "x$ac_cv_func_truncate" = xyes 18922then : 18923 printf "%s\n" "#define HAVE_TRUNCATE 1" >>confdefs.h 18924 18925fi 18926ac_fn_c_check_func "$LINENO" "ttyname" "ac_cv_func_ttyname" 18927if test "x$ac_cv_func_ttyname" = xyes 18928then : 18929 printf "%s\n" "#define HAVE_TTYNAME 1" >>confdefs.h 18930 18931fi 18932ac_fn_c_check_func "$LINENO" "umask" "ac_cv_func_umask" 18933if test "x$ac_cv_func_umask" = xyes 18934then : 18935 printf "%s\n" "#define HAVE_UMASK 1" >>confdefs.h 18936 18937fi 18938ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname" 18939if test "x$ac_cv_func_uname" = xyes 18940then : 18941 printf "%s\n" "#define HAVE_UNAME 1" >>confdefs.h 18942 18943fi 18944ac_fn_c_check_func "$LINENO" "unlinkat" "ac_cv_func_unlinkat" 18945if test "x$ac_cv_func_unlinkat" = xyes 18946then : 18947 printf "%s\n" "#define HAVE_UNLINKAT 1" >>confdefs.h 18948 18949fi 18950ac_fn_c_check_func "$LINENO" "unlockpt" "ac_cv_func_unlockpt" 18951if test "x$ac_cv_func_unlockpt" = xyes 18952then : 18953 printf "%s\n" "#define HAVE_UNLOCKPT 1" >>confdefs.h 18954 18955fi 18956ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat" 18957if test "x$ac_cv_func_utimensat" = xyes 18958then : 18959 printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h 18960 18961fi 18962ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes" 18963if test "x$ac_cv_func_utimes" = xyes 18964then : 18965 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h 18966 18967fi 18968ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork" 18969if test "x$ac_cv_func_vfork" = xyes 18970then : 18971 printf "%s\n" "#define HAVE_VFORK 1" >>confdefs.h 18972 18973fi 18974ac_fn_c_check_func "$LINENO" "wait" "ac_cv_func_wait" 18975if test "x$ac_cv_func_wait" = xyes 18976then : 18977 printf "%s\n" "#define HAVE_WAIT 1" >>confdefs.h 18978 18979fi 18980ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3" 18981if test "x$ac_cv_func_wait3" = xyes 18982then : 18983 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h 18984 18985fi 18986ac_fn_c_check_func "$LINENO" "wait4" "ac_cv_func_wait4" 18987if test "x$ac_cv_func_wait4" = xyes 18988then : 18989 printf "%s\n" "#define HAVE_WAIT4 1" >>confdefs.h 18990 18991fi 18992ac_fn_c_check_func "$LINENO" "waitid" "ac_cv_func_waitid" 18993if test "x$ac_cv_func_waitid" = xyes 18994then : 18995 printf "%s\n" "#define HAVE_WAITID 1" >>confdefs.h 18996 18997fi 18998ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" 18999if test "x$ac_cv_func_waitpid" = xyes 19000then : 19001 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h 19002 19003fi 19004ac_fn_c_check_func "$LINENO" "wcscoll" "ac_cv_func_wcscoll" 19005if test "x$ac_cv_func_wcscoll" = xyes 19006then : 19007 printf "%s\n" "#define HAVE_WCSCOLL 1" >>confdefs.h 19008 19009fi 19010ac_fn_c_check_func "$LINENO" "wcsftime" "ac_cv_func_wcsftime" 19011if test "x$ac_cv_func_wcsftime" = xyes 19012then : 19013 printf "%s\n" "#define HAVE_WCSFTIME 1" >>confdefs.h 19014 19015fi 19016ac_fn_c_check_func "$LINENO" "wcsxfrm" "ac_cv_func_wcsxfrm" 19017if test "x$ac_cv_func_wcsxfrm" = xyes 19018then : 19019 printf "%s\n" "#define HAVE_WCSXFRM 1" >>confdefs.h 19020 19021fi 19022ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp" 19023if test "x$ac_cv_func_wmemcmp" = xyes 19024then : 19025 printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h 19026 19027fi 19028ac_fn_c_check_func "$LINENO" "writev" "ac_cv_func_writev" 19029if test "x$ac_cv_func_writev" = xyes 19030then : 19031 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h 19032 19033fi 19034 19035 19036# Force lchmod off for Linux. Linux disallows changing the mode of symbolic 19037# links. Some libc implementations have a stub lchmod implementation that always 19038# returns an error. 19039if test "$MACHDEP" != linux; then 19040 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" 19041if test "x$ac_cv_func_lchmod" = xyes 19042then : 19043 printf "%s\n" "#define HAVE_LCHMOD 1" >>confdefs.h 19044 19045fi 19046 19047fi 19048 19049# iOS defines some system methods that can be linked (so they are 19050# found by configure), but either raise a compilation error (because the 19051# header definition prevents usage - autoconf doesn't use the headers), or 19052# raise an error if used at runtime. Force these symbols off. 19053if test "$ac_sys_system" != "iOS" ; then 19054 ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy" 19055if test "x$ac_cv_func_getentropy" = xyes 19056then : 19057 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h 19058 19059fi 19060ac_fn_c_check_func "$LINENO" "getgroups" "ac_cv_func_getgroups" 19061if test "x$ac_cv_func_getgroups" = xyes 19062then : 19063 printf "%s\n" "#define HAVE_GETGROUPS 1" >>confdefs.h 19064 19065fi 19066ac_fn_c_check_func "$LINENO" "system" "ac_cv_func_system" 19067if test "x$ac_cv_func_system" = xyes 19068then : 19069 printf "%s\n" "#define HAVE_SYSTEM 1" >>confdefs.h 19070 19071fi 19072 19073fi 19074 19075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 19076printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 19077if test ${ac_cv_c_undeclared_builtin_options+y} 19078then : 19079 printf %s "(cached) " >&6 19080else $as_nop 19081 ac_save_CFLAGS=$CFLAGS 19082 ac_cv_c_undeclared_builtin_options='cannot detect' 19083 for ac_arg in '' -fno-builtin; do 19084 CFLAGS="$ac_save_CFLAGS $ac_arg" 19085 # This test program should *not* compile successfully. 19086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19087/* end confdefs.h. */ 19088 19089int 19090main (void) 19091{ 19092(void) strchr; 19093 ; 19094 return 0; 19095} 19096_ACEOF 19097if ac_fn_c_try_compile "$LINENO" 19098then : 19099 19100else $as_nop 19101 # This test program should compile successfully. 19102 # No library function is consistently available on 19103 # freestanding implementations, so test against a dummy 19104 # declaration. Include always-available headers on the 19105 # off chance that they somehow elicit warnings. 19106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19107/* end confdefs.h. */ 19108#include <float.h> 19109#include <limits.h> 19110#include <stdarg.h> 19111#include <stddef.h> 19112extern void ac_decl (int, char *); 19113 19114int 19115main (void) 19116{ 19117(void) ac_decl (0, (char *) 0); 19118 (void) ac_decl; 19119 19120 ; 19121 return 0; 19122} 19123_ACEOF 19124if ac_fn_c_try_compile "$LINENO" 19125then : 19126 if test x"$ac_arg" = x 19127then : 19128 ac_cv_c_undeclared_builtin_options='none needed' 19129else $as_nop 19130 ac_cv_c_undeclared_builtin_options=$ac_arg 19131fi 19132 break 19133fi 19134rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19135fi 19136rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19137 done 19138 CFLAGS=$ac_save_CFLAGS 19139 19140fi 19141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 19142printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 19143 case $ac_cv_c_undeclared_builtin_options in #( 19144 'cannot detect') : 19145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 19146printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 19147as_fn_error $? "cannot make $CC report undeclared builtins 19148See \`config.log' for more details" "$LINENO" 5; } ;; #( 19149 'none needed') : 19150 ac_c_undeclared_builtin_options='' ;; #( 19151 *) : 19152 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 19153esac 19154 19155ac_fn_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> 19156 #include <dirent.h> 19157" "$ac_c_undeclared_builtin_options" "CFLAGS" 19158if test "x$ac_cv_have_decl_dirfd" = xyes 19159then : 19160 19161printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h 19162 19163fi 19164 19165# For some functions, having a definition is not sufficient, since 19166# we want to take their address. 19167 19168 19169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 19170printf %s "checking for chroot... " >&6; } 19171if test ${ac_cv_func_chroot+y} 19172then : 19173 printf %s "(cached) " >&6 19174else $as_nop 19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19176/* end confdefs.h. */ 19177#include <unistd.h> 19178int 19179main (void) 19180{ 19181void *x=chroot 19182 ; 19183 return 0; 19184} 19185_ACEOF 19186if ac_fn_c_try_compile "$LINENO" 19187then : 19188 ac_cv_func_chroot=yes 19189else $as_nop 19190 ac_cv_func_chroot=no 19191fi 19192rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19193 19194fi 19195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chroot" >&5 19196printf "%s\n" "$ac_cv_func_chroot" >&6; } 19197 if test "x$ac_cv_func_chroot" = xyes 19198then : 19199 19200printf "%s\n" "#define HAVE_CHROOT 1" >>confdefs.h 19201 19202fi 19203 19204 19205 19206 19207 19208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for link" >&5 19209printf %s "checking for link... " >&6; } 19210if test ${ac_cv_func_link+y} 19211then : 19212 printf %s "(cached) " >&6 19213else $as_nop 19214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19215/* end confdefs.h. */ 19216#include <unistd.h> 19217int 19218main (void) 19219{ 19220void *x=link 19221 ; 19222 return 0; 19223} 19224_ACEOF 19225if ac_fn_c_try_compile "$LINENO" 19226then : 19227 ac_cv_func_link=yes 19228else $as_nop 19229 ac_cv_func_link=no 19230fi 19231rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19232 19233fi 19234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_link" >&5 19235printf "%s\n" "$ac_cv_func_link" >&6; } 19236 if test "x$ac_cv_func_link" = xyes 19237then : 19238 19239printf "%s\n" "#define HAVE_LINK 1" >>confdefs.h 19240 19241fi 19242 19243 19244 19245 19246 19247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 19248printf %s "checking for symlink... " >&6; } 19249if test ${ac_cv_func_symlink+y} 19250then : 19251 printf %s "(cached) " >&6 19252else $as_nop 19253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19254/* end confdefs.h. */ 19255#include <unistd.h> 19256int 19257main (void) 19258{ 19259void *x=symlink 19260 ; 19261 return 0; 19262} 19263_ACEOF 19264if ac_fn_c_try_compile "$LINENO" 19265then : 19266 ac_cv_func_symlink=yes 19267else $as_nop 19268 ac_cv_func_symlink=no 19269fi 19270rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19271 19272fi 19273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_symlink" >&5 19274printf "%s\n" "$ac_cv_func_symlink" >&6; } 19275 if test "x$ac_cv_func_symlink" = xyes 19276then : 19277 19278printf "%s\n" "#define HAVE_SYMLINK 1" >>confdefs.h 19279 19280fi 19281 19282 19283 19284 19285 19286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 19287printf %s "checking for fchdir... " >&6; } 19288if test ${ac_cv_func_fchdir+y} 19289then : 19290 printf %s "(cached) " >&6 19291else $as_nop 19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19293/* end confdefs.h. */ 19294#include <unistd.h> 19295int 19296main (void) 19297{ 19298void *x=fchdir 19299 ; 19300 return 0; 19301} 19302_ACEOF 19303if ac_fn_c_try_compile "$LINENO" 19304then : 19305 ac_cv_func_fchdir=yes 19306else $as_nop 19307 ac_cv_func_fchdir=no 19308fi 19309rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19310 19311fi 19312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fchdir" >&5 19313printf "%s\n" "$ac_cv_func_fchdir" >&6; } 19314 if test "x$ac_cv_func_fchdir" = xyes 19315then : 19316 19317printf "%s\n" "#define HAVE_FCHDIR 1" >>confdefs.h 19318 19319fi 19320 19321 19322 19323 19324 19325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 19326printf %s "checking for fsync... " >&6; } 19327if test ${ac_cv_func_fsync+y} 19328then : 19329 printf %s "(cached) " >&6 19330else $as_nop 19331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19332/* end confdefs.h. */ 19333#include <unistd.h> 19334int 19335main (void) 19336{ 19337void *x=fsync 19338 ; 19339 return 0; 19340} 19341_ACEOF 19342if ac_fn_c_try_compile "$LINENO" 19343then : 19344 ac_cv_func_fsync=yes 19345else $as_nop 19346 ac_cv_func_fsync=no 19347fi 19348rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19349 19350fi 19351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fsync" >&5 19352printf "%s\n" "$ac_cv_func_fsync" >&6; } 19353 if test "x$ac_cv_func_fsync" = xyes 19354then : 19355 19356printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h 19357 19358fi 19359 19360 19361 19362 19363 19364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 19365printf %s "checking for fdatasync... " >&6; } 19366if test ${ac_cv_func_fdatasync+y} 19367then : 19368 printf %s "(cached) " >&6 19369else $as_nop 19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19371/* end confdefs.h. */ 19372#include <unistd.h> 19373int 19374main (void) 19375{ 19376void *x=fdatasync 19377 ; 19378 return 0; 19379} 19380_ACEOF 19381if ac_fn_c_try_compile "$LINENO" 19382then : 19383 ac_cv_func_fdatasync=yes 19384else $as_nop 19385 ac_cv_func_fdatasync=no 19386fi 19387rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19388 19389fi 19390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fdatasync" >&5 19391printf "%s\n" "$ac_cv_func_fdatasync" >&6; } 19392 if test "x$ac_cv_func_fdatasync" = xyes 19393then : 19394 19395printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h 19396 19397fi 19398 19399 19400 19401 19402 19403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create" >&5 19404printf %s "checking for epoll_create... " >&6; } 19405if test ${ac_cv_func_epoll_create+y} 19406then : 19407 printf %s "(cached) " >&6 19408else $as_nop 19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19410/* end confdefs.h. */ 19411#include <sys/epoll.h> 19412int 19413main (void) 19414{ 19415void *x=epoll_create 19416 ; 19417 return 0; 19418} 19419_ACEOF 19420if ac_fn_c_try_compile "$LINENO" 19421then : 19422 ac_cv_func_epoll_create=yes 19423else $as_nop 19424 ac_cv_func_epoll_create=no 19425fi 19426rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19427 19428fi 19429{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create" >&5 19430printf "%s\n" "$ac_cv_func_epoll_create" >&6; } 19431 if test "x$ac_cv_func_epoll_create" = xyes 19432then : 19433 19434printf "%s\n" "#define HAVE_EPOLL 1" >>confdefs.h 19435 19436fi 19437 19438 19439 19440 19441 19442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 19443printf %s "checking for epoll_create1... " >&6; } 19444if test ${ac_cv_func_epoll_create1+y} 19445then : 19446 printf %s "(cached) " >&6 19447else $as_nop 19448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19449/* end confdefs.h. */ 19450#include <sys/epoll.h> 19451int 19452main (void) 19453{ 19454void *x=epoll_create1 19455 ; 19456 return 0; 19457} 19458_ACEOF 19459if ac_fn_c_try_compile "$LINENO" 19460then : 19461 ac_cv_func_epoll_create1=yes 19462else $as_nop 19463 ac_cv_func_epoll_create1=no 19464fi 19465rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19466 19467fi 19468{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_epoll_create1" >&5 19469printf "%s\n" "$ac_cv_func_epoll_create1" >&6; } 19470 if test "x$ac_cv_func_epoll_create1" = xyes 19471then : 19472 19473printf "%s\n" "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 19474 19475fi 19476 19477 19478 19479 19480 19481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 19482printf %s "checking for kqueue... " >&6; } 19483if test ${ac_cv_func_kqueue+y} 19484then : 19485 printf %s "(cached) " >&6 19486else $as_nop 19487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19488/* end confdefs.h. */ 19489 19490#include <sys/types.h> 19491#include <sys/event.h> 19492 19493int 19494main (void) 19495{ 19496void *x=kqueue 19497 ; 19498 return 0; 19499} 19500_ACEOF 19501if ac_fn_c_try_compile "$LINENO" 19502then : 19503 ac_cv_func_kqueue=yes 19504else $as_nop 19505 ac_cv_func_kqueue=no 19506fi 19507rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19508 19509fi 19510{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_kqueue" >&5 19511printf "%s\n" "$ac_cv_func_kqueue" >&6; } 19512 if test "x$ac_cv_func_kqueue" = xyes 19513then : 19514 19515printf "%s\n" "#define HAVE_KQUEUE 1" >>confdefs.h 19516 19517fi 19518 19519 19520 19521 19522 19523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 19524printf %s "checking for prlimit... " >&6; } 19525if test ${ac_cv_func_prlimit+y} 19526then : 19527 printf %s "(cached) " >&6 19528else $as_nop 19529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19530/* end confdefs.h. */ 19531 19532#include <sys/time.h> 19533#include <sys/resource.h> 19534 19535int 19536main (void) 19537{ 19538void *x=prlimit 19539 ; 19540 return 0; 19541} 19542_ACEOF 19543if ac_fn_c_try_compile "$LINENO" 19544then : 19545 ac_cv_func_prlimit=yes 19546else $as_nop 19547 ac_cv_func_prlimit=no 19548fi 19549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19550 19551fi 19552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_prlimit" >&5 19553printf "%s\n" "$ac_cv_func_prlimit" >&6; } 19554 if test "x$ac_cv_func_prlimit" = xyes 19555then : 19556 19557printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h 19558 19559fi 19560 19561 19562 19563 19564 19565 19566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5 19567printf %s "checking for _dyld_shared_cache_contains_path... " >&6; } 19568if test ${ac_cv_func__dyld_shared_cache_contains_path+y} 19569then : 19570 printf %s "(cached) " >&6 19571else $as_nop 19572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19573/* end confdefs.h. */ 19574#include <mach-o/dyld.h> 19575int 19576main (void) 19577{ 19578void *x=_dyld_shared_cache_contains_path 19579 ; 19580 return 0; 19581} 19582_ACEOF 19583if ac_fn_c_try_compile "$LINENO" 19584then : 19585 ac_cv_func__dyld_shared_cache_contains_path=yes 19586else $as_nop 19587 ac_cv_func__dyld_shared_cache_contains_path=no 19588fi 19589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19590 19591fi 19592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func__dyld_shared_cache_contains_path" >&5 19593printf "%s\n" "$ac_cv_func__dyld_shared_cache_contains_path" >&6; } 19594 if test "x$ac_cv_func__dyld_shared_cache_contains_path" = xyes 19595then : 19596 19597printf "%s\n" "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h 19598 19599fi 19600 19601 19602 19603 19604 19605 19606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 19607printf %s "checking for memfd_create... " >&6; } 19608if test ${ac_cv_func_memfd_create+y} 19609then : 19610 printf %s "(cached) " >&6 19611else $as_nop 19612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19613/* end confdefs.h. */ 19614 19615#ifdef HAVE_SYS_MMAN_H 19616#include <sys/mman.h> 19617#endif 19618#ifdef HAVE_SYS_MEMFD_H 19619#include <sys/memfd.h> 19620#endif 19621 19622int 19623main (void) 19624{ 19625void *x=memfd_create 19626 ; 19627 return 0; 19628} 19629_ACEOF 19630if ac_fn_c_try_compile "$LINENO" 19631then : 19632 ac_cv_func_memfd_create=yes 19633else $as_nop 19634 ac_cv_func_memfd_create=no 19635fi 19636rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19637 19638fi 19639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memfd_create" >&5 19640printf "%s\n" "$ac_cv_func_memfd_create" >&6; } 19641 if test "x$ac_cv_func_memfd_create" = xyes 19642then : 19643 19644printf "%s\n" "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 19645 19646fi 19647 19648 19649 19650 19651 19652 19653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for eventfd" >&5 19654printf %s "checking for eventfd... " >&6; } 19655if test ${ac_cv_func_eventfd+y} 19656then : 19657 printf %s "(cached) " >&6 19658else $as_nop 19659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19660/* end confdefs.h. */ 19661 19662#ifdef HAVE_SYS_EVENTFD_H 19663#include <sys/eventfd.h> 19664#endif 19665 19666int 19667main (void) 19668{ 19669void *x=eventfd 19670 ; 19671 return 0; 19672} 19673_ACEOF 19674if ac_fn_c_try_compile "$LINENO" 19675then : 19676 ac_cv_func_eventfd=yes 19677else $as_nop 19678 ac_cv_func_eventfd=no 19679fi 19680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19681 19682fi 19683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_eventfd" >&5 19684printf "%s\n" "$ac_cv_func_eventfd" >&6; } 19685 if test "x$ac_cv_func_eventfd" = xyes 19686then : 19687 19688printf "%s\n" "#define HAVE_EVENTFD 1" >>confdefs.h 19689 19690fi 19691 19692 19693 19694 19695 19696 19697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timerfd_create" >&5 19698printf %s "checking for timerfd_create... " >&6; } 19699if test ${ac_cv_func_timerfd_create+y} 19700then : 19701 printf %s "(cached) " >&6 19702else $as_nop 19703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19704/* end confdefs.h. */ 19705 19706#ifdef HAVE_SYS_TIMERFD_H 19707#include <sys/timerfd.h> 19708#endif 19709 19710int 19711main (void) 19712{ 19713void *x=timerfd_create 19714 ; 19715 return 0; 19716} 19717_ACEOF 19718if ac_fn_c_try_compile "$LINENO" 19719then : 19720 ac_cv_func_timerfd_create=yes 19721else $as_nop 19722 ac_cv_func_timerfd_create=no 19723fi 19724rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19725 19726fi 19727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_timerfd_create" >&5 19728printf "%s\n" "$ac_cv_func_timerfd_create" >&6; } 19729 if test "x$ac_cv_func_timerfd_create" = xyes 19730then : 19731 19732printf "%s\n" "#define HAVE_TIMERFD_CREATE 1" >>confdefs.h 19733 19734fi 19735 19736 19737 19738 19739# On some systems (eg. FreeBSD 5), we would find a definition of the 19740# functions ctermid_r, setgroups in the library, but no prototype 19741# (e.g. because we use _XOPEN_SOURCE). See whether we can take their 19742# address to avoid compiler warnings and potential miscompilations 19743# because of the missing prototypes. 19744 19745 19746 19747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 19748printf %s "checking for ctermid_r... " >&6; } 19749if test ${ac_cv_func_ctermid_r+y} 19750then : 19751 printf %s "(cached) " >&6 19752else $as_nop 19753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19754/* end confdefs.h. */ 19755#include <stdio.h> 19756int 19757main (void) 19758{ 19759void *x=ctermid_r 19760 ; 19761 return 0; 19762} 19763_ACEOF 19764if ac_fn_c_try_compile "$LINENO" 19765then : 19766 ac_cv_func_ctermid_r=yes 19767else $as_nop 19768 ac_cv_func_ctermid_r=no 19769fi 19770rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19771 19772fi 19773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_ctermid_r" >&5 19774printf "%s\n" "$ac_cv_func_ctermid_r" >&6; } 19775 if test "x$ac_cv_func_ctermid_r" = xyes 19776then : 19777 19778printf "%s\n" "#define HAVE_CTERMID_R 1" >>confdefs.h 19779 19780fi 19781 19782 19783 19784 19785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 19786printf %s "checking for flock declaration... " >&6; } 19787if test ${ac_cv_flock_decl+y} 19788then : 19789 printf %s "(cached) " >&6 19790else $as_nop 19791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19792/* end confdefs.h. */ 19793#include <sys/file.h> 19794int 19795main (void) 19796{ 19797void* p = flock 19798 19799 ; 19800 return 0; 19801} 19802_ACEOF 19803if ac_fn_c_try_compile "$LINENO" 19804then : 19805 ac_cv_flock_decl=yes 19806else $as_nop 19807 ac_cv_flock_decl=no 19808 19809fi 19810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19811 19812fi 19813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 19814printf "%s\n" "$ac_cv_flock_decl" >&6; } 19815if test "x$ac_cv_flock_decl" = xyes 19816then : 19817 19818 for ac_func in flock 19819do : 19820 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 19821if test "x$ac_cv_func_flock" = xyes 19822then : 19823 printf "%s\n" "#define HAVE_FLOCK 1" >>confdefs.h 19824 19825else $as_nop 19826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 19827printf %s "checking for flock in -lbsd... " >&6; } 19828if test ${ac_cv_lib_bsd_flock+y} 19829then : 19830 printf %s "(cached) " >&6 19831else $as_nop 19832 ac_check_lib_save_LIBS=$LIBS 19833LIBS="-lbsd $LIBS" 19834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19835/* end confdefs.h. */ 19836 19837/* Override any GCC internal prototype to avoid an error. 19838 Use char because int might match the return type of a GCC 19839 builtin and then its argument prototype would still apply. */ 19840char flock (); 19841int 19842main (void) 19843{ 19844return flock (); 19845 ; 19846 return 0; 19847} 19848_ACEOF 19849if ac_fn_c_try_link "$LINENO" 19850then : 19851 ac_cv_lib_bsd_flock=yes 19852else $as_nop 19853 ac_cv_lib_bsd_flock=no 19854fi 19855rm -f core conftest.err conftest.$ac_objext conftest.beam \ 19856 conftest$ac_exeext conftest.$ac_ext 19857LIBS=$ac_check_lib_save_LIBS 19858fi 19859{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 19860printf "%s\n" "$ac_cv_lib_bsd_flock" >&6; } 19861if test "x$ac_cv_lib_bsd_flock" = xyes 19862then : 19863 FCNTL_LIBS="-lbsd" 19864fi 19865 19866fi 19867 19868done 19869fi 19870 19871 19872 19873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 19874printf %s "checking for getpagesize... " >&6; } 19875if test ${ac_cv_func_getpagesize+y} 19876then : 19877 printf %s "(cached) " >&6 19878else $as_nop 19879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19880/* end confdefs.h. */ 19881#include <unistd.h> 19882int 19883main (void) 19884{ 19885void *x=getpagesize 19886 ; 19887 return 0; 19888} 19889_ACEOF 19890if ac_fn_c_try_compile "$LINENO" 19891then : 19892 ac_cv_func_getpagesize=yes 19893else $as_nop 19894 ac_cv_func_getpagesize=no 19895fi 19896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19897 19898fi 19899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpagesize" >&5 19900printf "%s\n" "$ac_cv_func_getpagesize" >&6; } 19901 if test "x$ac_cv_func_getpagesize" = xyes 19902then : 19903 19904printf "%s\n" "#define HAVE_GETPAGESIZE 1" >>confdefs.h 19905 19906fi 19907 19908 19909 19910 19911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 19912printf %s "checking for broken unsetenv... " >&6; } 19913if test ${ac_cv_broken_unsetenv+y} 19914then : 19915 printf %s "(cached) " >&6 19916else $as_nop 19917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19918/* end confdefs.h. */ 19919#include <stdlib.h> 19920int 19921main (void) 19922{ 19923int res = unsetenv("DUMMY") 19924 ; 19925 return 0; 19926} 19927_ACEOF 19928if ac_fn_c_try_compile "$LINENO" 19929then : 19930 ac_cv_broken_unsetenv=no 19931else $as_nop 19932 ac_cv_broken_unsetenv=yes 19933 19934fi 19935rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 19936 19937fi 19938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_unsetenv" >&5 19939printf "%s\n" "$ac_cv_broken_unsetenv" >&6; } 19940if test "x$ac_cv_broken_unsetenv" = xyes 19941then : 19942 19943 19944printf "%s\n" "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h 19945 19946 19947fi 19948 19949for ac_prog in true 19950do 19951 # Extract the first word of "$ac_prog", so it can be a program name with args. 19952set dummy $ac_prog; ac_word=$2 19953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19954printf %s "checking for $ac_word... " >&6; } 19955if test ${ac_cv_prog_TRUE+y} 19956then : 19957 printf %s "(cached) " >&6 19958else $as_nop 19959 if test -n "$TRUE"; then 19960 ac_cv_prog_TRUE="$TRUE" # Let the user override the test. 19961else 19962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19963for as_dir in $PATH 19964do 19965 IFS=$as_save_IFS 19966 case $as_dir in #((( 19967 '') as_dir=./ ;; 19968 */) ;; 19969 *) as_dir=$as_dir/ ;; 19970 esac 19971 for ac_exec_ext in '' $ac_executable_extensions; do 19972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 19973 ac_cv_prog_TRUE="$ac_prog" 19974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 19975 break 2 19976 fi 19977done 19978 done 19979IFS=$as_save_IFS 19980 19981fi 19982fi 19983TRUE=$ac_cv_prog_TRUE 19984if test -n "$TRUE"; then 19985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 19986printf "%s\n" "$TRUE" >&6; } 19987else 19988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 19989printf "%s\n" "no" >&6; } 19990fi 19991 19992 19993 test -n "$TRUE" && break 19994done 19995test -n "$TRUE" || TRUE="/bin/true" 19996 19997 19998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 19999printf %s "checking for inet_aton in -lc... " >&6; } 20000if test ${ac_cv_lib_c_inet_aton+y} 20001then : 20002 printf %s "(cached) " >&6 20003else $as_nop 20004 ac_check_lib_save_LIBS=$LIBS 20005LIBS="-lc $LIBS" 20006cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20007/* end confdefs.h. */ 20008 20009/* Override any GCC internal prototype to avoid an error. 20010 Use char because int might match the return type of a GCC 20011 builtin and then its argument prototype would still apply. */ 20012char inet_aton (); 20013int 20014main (void) 20015{ 20016return inet_aton (); 20017 ; 20018 return 0; 20019} 20020_ACEOF 20021if ac_fn_c_try_link "$LINENO" 20022then : 20023 ac_cv_lib_c_inet_aton=yes 20024else $as_nop 20025 ac_cv_lib_c_inet_aton=no 20026fi 20027rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20028 conftest$ac_exeext conftest.$ac_ext 20029LIBS=$ac_check_lib_save_LIBS 20030fi 20031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 20032printf "%s\n" "$ac_cv_lib_c_inet_aton" >&6; } 20033if test "x$ac_cv_lib_c_inet_aton" = xyes 20034then : 20035 $ac_cv_prog_TRUE 20036else $as_nop 20037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 20038printf %s "checking for inet_aton in -lresolv... " >&6; } 20039if test ${ac_cv_lib_resolv_inet_aton+y} 20040then : 20041 printf %s "(cached) " >&6 20042else $as_nop 20043 ac_check_lib_save_LIBS=$LIBS 20044LIBS="-lresolv $LIBS" 20045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20046/* end confdefs.h. */ 20047 20048/* Override any GCC internal prototype to avoid an error. 20049 Use char because int might match the return type of a GCC 20050 builtin and then its argument prototype would still apply. */ 20051char inet_aton (); 20052int 20053main (void) 20054{ 20055return inet_aton (); 20056 ; 20057 return 0; 20058} 20059_ACEOF 20060if ac_fn_c_try_link "$LINENO" 20061then : 20062 ac_cv_lib_resolv_inet_aton=yes 20063else $as_nop 20064 ac_cv_lib_resolv_inet_aton=no 20065fi 20066rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20067 conftest$ac_exeext conftest.$ac_ext 20068LIBS=$ac_check_lib_save_LIBS 20069fi 20070{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 20071printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; } 20072if test "x$ac_cv_lib_resolv_inet_aton" = xyes 20073then : 20074 printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h 20075 20076 LIBS="-lresolv $LIBS" 20077 20078fi 20079 20080 20081fi 20082 20083 20084# On Tru64, chflags seems to be present, but calling it will 20085# exit Python 20086{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 20087printf %s "checking for chflags... " >&6; } 20088if test ${ac_cv_have_chflags+y} 20089then : 20090 printf %s "(cached) " >&6 20091else $as_nop 20092 if test "$cross_compiling" = yes 20093then : 20094 ac_cv_have_chflags=cross 20095else $as_nop 20096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20097/* end confdefs.h. */ 20098 20099#include <sys/stat.h> 20100#include <unistd.h> 20101int main(int argc, char *argv[]) 20102{ 20103 if(chflags(argv[0], 0) != 0) 20104 return 1; 20105 return 0; 20106} 20107 20108_ACEOF 20109if ac_fn_c_try_run "$LINENO" 20110then : 20111 ac_cv_have_chflags=yes 20112else $as_nop 20113 ac_cv_have_chflags=no 20114fi 20115rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20116 conftest.$ac_objext conftest.beam conftest.$ac_ext 20117fi 20118 20119 20120fi 20121{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 20122printf "%s\n" "$ac_cv_have_chflags" >&6; } 20123if test "$ac_cv_have_chflags" = cross ; then 20124 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" 20125if test "x$ac_cv_func_chflags" = xyes 20126then : 20127 ac_cv_have_chflags="yes" 20128else $as_nop 20129 ac_cv_have_chflags="no" 20130fi 20131 20132fi 20133if test "$ac_cv_have_chflags" = yes ; then 20134 20135printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h 20136 20137fi 20138 20139{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 20140printf %s "checking for lchflags... " >&6; } 20141if test ${ac_cv_have_lchflags+y} 20142then : 20143 printf %s "(cached) " >&6 20144else $as_nop 20145 if test "$cross_compiling" = yes 20146then : 20147 ac_cv_have_lchflags=cross 20148else $as_nop 20149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20150/* end confdefs.h. */ 20151 20152#include <sys/stat.h> 20153#include <unistd.h> 20154int main(int argc, char *argv[]) 20155{ 20156 if(lchflags(argv[0], 0) != 0) 20157 return 1; 20158 return 0; 20159} 20160 20161_ACEOF 20162if ac_fn_c_try_run "$LINENO" 20163then : 20164 ac_cv_have_lchflags=yes 20165else $as_nop 20166 ac_cv_have_lchflags=no 20167fi 20168rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20169 conftest.$ac_objext conftest.beam conftest.$ac_ext 20170fi 20171 20172 20173fi 20174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 20175printf "%s\n" "$ac_cv_have_lchflags" >&6; } 20176if test "$ac_cv_have_lchflags" = cross ; then 20177 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" 20178if test "x$ac_cv_func_lchflags" = xyes 20179then : 20180 ac_cv_have_lchflags="yes" 20181else $as_nop 20182 ac_cv_have_lchflags="no" 20183fi 20184 20185fi 20186if test "$ac_cv_have_lchflags" = yes ; then 20187 20188printf "%s\n" "#define HAVE_LCHFLAGS 1" >>confdefs.h 20189 20190fi 20191 20192 20193 20194 20195 20196 20197 if test "$ac_sys_system" = "Emscripten" -a -z "$ZLIB_CFLAGS" -a -z "$ZLIB_LIBS" 20198then : 20199 20200 ZLIB_CFLAGS="-sUSE_ZLIB" 20201 ZLIB_LIBS="-sUSE_ZLIB" 20202 20203fi 20204 20205 20206 20207 20208 20209pkg_failed=no 20210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib >= 1.2.0" >&5 20211printf %s "checking for zlib >= 1.2.0... " >&6; } 20212 20213if test -n "$ZLIB_CFLAGS"; then 20214 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS" 20215 elif test -n "$PKG_CONFIG"; then 20216 if test -n "$PKG_CONFIG" && \ 20217 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5 20218 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5 20219 ac_status=$? 20220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20221 test $ac_status = 0; }; then 20222 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.2.0" 2>/dev/null` 20223 test "x$?" != "x0" && pkg_failed=yes 20224else 20225 pkg_failed=yes 20226fi 20227 else 20228 pkg_failed=untried 20229fi 20230if test -n "$ZLIB_LIBS"; then 20231 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS" 20232 elif test -n "$PKG_CONFIG"; then 20233 if test -n "$PKG_CONFIG" && \ 20234 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.2.0\""; } >&5 20235 ($PKG_CONFIG --exists --print-errors "zlib >= 1.2.0") 2>&5 20236 ac_status=$? 20237 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20238 test $ac_status = 0; }; then 20239 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib >= 1.2.0" 2>/dev/null` 20240 test "x$?" != "x0" && pkg_failed=yes 20241else 20242 pkg_failed=yes 20243fi 20244 else 20245 pkg_failed=untried 20246fi 20247 20248 20249 20250if test $pkg_failed = yes; then 20251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20252printf "%s\n" "no" >&6; } 20253 20254if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20255 _pkg_short_errors_supported=yes 20256else 20257 _pkg_short_errors_supported=no 20258fi 20259 if test $_pkg_short_errors_supported = yes; then 20260 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1` 20261 else 20262 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.2.0" 2>&1` 20263 fi 20264 # Put the nasty error message in config.log where it belongs 20265 echo "$ZLIB_PKG_ERRORS" >&5 20266 20267 20268 save_CFLAGS=$CFLAGS 20269save_CPPFLAGS=$CPPFLAGS 20270save_LDFLAGS=$LDFLAGS 20271save_LIBS=$LIBS 20272 20273 20274 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS" 20275 LDFLAGS="$LDFLAGS $ZLIB_LIBS" 20276 for ac_header in zlib.h 20277do : 20278 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 20279if test "x$ac_cv_header_zlib_h" = xyes 20280then : 20281 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 20282 20283 py_check_lib_save_LIBS=$LIBS 20284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 20285printf %s "checking for gzread in -lz... " >&6; } 20286if test ${ac_cv_lib_z_gzread+y} 20287then : 20288 printf %s "(cached) " >&6 20289else $as_nop 20290 ac_check_lib_save_LIBS=$LIBS 20291LIBS="-lz $LIBS" 20292cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20293/* end confdefs.h. */ 20294 20295/* Override any GCC internal prototype to avoid an error. 20296 Use char because int might match the return type of a GCC 20297 builtin and then its argument prototype would still apply. */ 20298char gzread (); 20299int 20300main (void) 20301{ 20302return gzread (); 20303 ; 20304 return 0; 20305} 20306_ACEOF 20307if ac_fn_c_try_link "$LINENO" 20308then : 20309 ac_cv_lib_z_gzread=yes 20310else $as_nop 20311 ac_cv_lib_z_gzread=no 20312fi 20313rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20314 conftest$ac_exeext conftest.$ac_ext 20315LIBS=$ac_check_lib_save_LIBS 20316fi 20317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 20318printf "%s\n" "$ac_cv_lib_z_gzread" >&6; } 20319if test "x$ac_cv_lib_z_gzread" = xyes 20320then : 20321 have_zlib=yes 20322else $as_nop 20323 have_zlib=no 20324fi 20325 20326LIBS=$py_check_lib_save_LIBS 20327 20328 20329else $as_nop 20330 have_zlib=no 20331fi 20332 20333done 20334 if test "x$have_zlib" = xyes 20335then : 20336 20337 ZLIB_CFLAGS=${ZLIB_CFLAGS-""} 20338 ZLIB_LIBS=${ZLIB_LIBS-"-lz"} 20339 py_check_lib_save_LIBS=$LIBS 20340{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 20341printf %s "checking for inflateCopy in -lz... " >&6; } 20342if test ${ac_cv_lib_z_inflateCopy+y} 20343then : 20344 printf %s "(cached) " >&6 20345else $as_nop 20346 ac_check_lib_save_LIBS=$LIBS 20347LIBS="-lz $LIBS" 20348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20349/* end confdefs.h. */ 20350 20351/* Override any GCC internal prototype to avoid an error. 20352 Use char because int might match the return type of a GCC 20353 builtin and then its argument prototype would still apply. */ 20354char inflateCopy (); 20355int 20356main (void) 20357{ 20358return inflateCopy (); 20359 ; 20360 return 0; 20361} 20362_ACEOF 20363if ac_fn_c_try_link "$LINENO" 20364then : 20365 ac_cv_lib_z_inflateCopy=yes 20366else $as_nop 20367 ac_cv_lib_z_inflateCopy=no 20368fi 20369rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20370 conftest$ac_exeext conftest.$ac_ext 20371LIBS=$ac_check_lib_save_LIBS 20372fi 20373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 20374printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; } 20375if test "x$ac_cv_lib_z_inflateCopy" = xyes 20376then : 20377 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h 20378 20379fi 20380 20381LIBS=$py_check_lib_save_LIBS 20382 20383 20384fi 20385 20386CFLAGS=$save_CFLAGS 20387CPPFLAGS=$save_CPPFLAGS 20388LDFLAGS=$save_LDFLAGS 20389LIBS=$save_LIBS 20390 20391 20392 20393elif test $pkg_failed = untried; then 20394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20395printf "%s\n" "no" >&6; } 20396 20397 save_CFLAGS=$CFLAGS 20398save_CPPFLAGS=$CPPFLAGS 20399save_LDFLAGS=$LDFLAGS 20400save_LIBS=$LIBS 20401 20402 20403 CPPFLAGS="$CPPFLAGS $ZLIB_CFLAGS" 20404 LDFLAGS="$LDFLAGS $ZLIB_LIBS" 20405 for ac_header in zlib.h 20406do : 20407 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" 20408if test "x$ac_cv_header_zlib_h" = xyes 20409then : 20410 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h 20411 20412 py_check_lib_save_LIBS=$LIBS 20413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5 20414printf %s "checking for gzread in -lz... " >&6; } 20415if test ${ac_cv_lib_z_gzread+y} 20416then : 20417 printf %s "(cached) " >&6 20418else $as_nop 20419 ac_check_lib_save_LIBS=$LIBS 20420LIBS="-lz $LIBS" 20421cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20422/* end confdefs.h. */ 20423 20424/* Override any GCC internal prototype to avoid an error. 20425 Use char because int might match the return type of a GCC 20426 builtin and then its argument prototype would still apply. */ 20427char gzread (); 20428int 20429main (void) 20430{ 20431return gzread (); 20432 ; 20433 return 0; 20434} 20435_ACEOF 20436if ac_fn_c_try_link "$LINENO" 20437then : 20438 ac_cv_lib_z_gzread=yes 20439else $as_nop 20440 ac_cv_lib_z_gzread=no 20441fi 20442rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20443 conftest$ac_exeext conftest.$ac_ext 20444LIBS=$ac_check_lib_save_LIBS 20445fi 20446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5 20447printf "%s\n" "$ac_cv_lib_z_gzread" >&6; } 20448if test "x$ac_cv_lib_z_gzread" = xyes 20449then : 20450 have_zlib=yes 20451else $as_nop 20452 have_zlib=no 20453fi 20454 20455LIBS=$py_check_lib_save_LIBS 20456 20457 20458else $as_nop 20459 have_zlib=no 20460fi 20461 20462done 20463 if test "x$have_zlib" = xyes 20464then : 20465 20466 ZLIB_CFLAGS=${ZLIB_CFLAGS-""} 20467 ZLIB_LIBS=${ZLIB_LIBS-"-lz"} 20468 py_check_lib_save_LIBS=$LIBS 20469{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 20470printf %s "checking for inflateCopy in -lz... " >&6; } 20471if test ${ac_cv_lib_z_inflateCopy+y} 20472then : 20473 printf %s "(cached) " >&6 20474else $as_nop 20475 ac_check_lib_save_LIBS=$LIBS 20476LIBS="-lz $LIBS" 20477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20478/* end confdefs.h. */ 20479 20480/* Override any GCC internal prototype to avoid an error. 20481 Use char because int might match the return type of a GCC 20482 builtin and then its argument prototype would still apply. */ 20483char inflateCopy (); 20484int 20485main (void) 20486{ 20487return inflateCopy (); 20488 ; 20489 return 0; 20490} 20491_ACEOF 20492if ac_fn_c_try_link "$LINENO" 20493then : 20494 ac_cv_lib_z_inflateCopy=yes 20495else $as_nop 20496 ac_cv_lib_z_inflateCopy=no 20497fi 20498rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20499 conftest$ac_exeext conftest.$ac_ext 20500LIBS=$ac_check_lib_save_LIBS 20501fi 20502{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 20503printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; } 20504if test "x$ac_cv_lib_z_inflateCopy" = xyes 20505then : 20506 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h 20507 20508fi 20509 20510LIBS=$py_check_lib_save_LIBS 20511 20512 20513fi 20514 20515CFLAGS=$save_CFLAGS 20516CPPFLAGS=$save_CPPFLAGS 20517LDFLAGS=$save_LDFLAGS 20518LIBS=$save_LIBS 20519 20520 20521 20522else 20523 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS 20524 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS 20525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20526printf "%s\n" "yes" >&6; } 20527 20528 have_zlib=yes 20529 printf "%s\n" "#define HAVE_ZLIB_COPY 1" >>confdefs.h 20530 20531 20532fi 20533 20534if test "x$have_zlib" = xyes 20535then : 20536 20537 BINASCII_CFLAGS="-DUSE_ZLIB_CRC32 $ZLIB_CFLAGS" 20538 BINASCII_LIBS="$ZLIB_LIBS" 20539 20540fi 20541 20542 20543 20544 20545 if test "$ac_sys_system" = "Emscripten" -a -z "$BZIP2_CFLAGS" -a -z "$BZIP2_LIBS" 20546then : 20547 20548 BZIP2_CFLAGS="-sUSE_BZIP2" 20549 BZIP2_LIBS="-sUSE_BZIP2" 20550 20551fi 20552 20553 20554 20555 20556 20557pkg_failed=no 20558{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bzip2" >&5 20559printf %s "checking for bzip2... " >&6; } 20560 20561if test -n "$BZIP2_CFLAGS"; then 20562 pkg_cv_BZIP2_CFLAGS="$BZIP2_CFLAGS" 20563 elif test -n "$PKG_CONFIG"; then 20564 if test -n "$PKG_CONFIG" && \ 20565 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5 20566 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5 20567 ac_status=$? 20568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20569 test $ac_status = 0; }; then 20570 pkg_cv_BZIP2_CFLAGS=`$PKG_CONFIG --cflags "bzip2" 2>/dev/null` 20571 test "x$?" != "x0" && pkg_failed=yes 20572else 20573 pkg_failed=yes 20574fi 20575 else 20576 pkg_failed=untried 20577fi 20578if test -n "$BZIP2_LIBS"; then 20579 pkg_cv_BZIP2_LIBS="$BZIP2_LIBS" 20580 elif test -n "$PKG_CONFIG"; then 20581 if test -n "$PKG_CONFIG" && \ 20582 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"bzip2\""; } >&5 20583 ($PKG_CONFIG --exists --print-errors "bzip2") 2>&5 20584 ac_status=$? 20585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20586 test $ac_status = 0; }; then 20587 pkg_cv_BZIP2_LIBS=`$PKG_CONFIG --libs "bzip2" 2>/dev/null` 20588 test "x$?" != "x0" && pkg_failed=yes 20589else 20590 pkg_failed=yes 20591fi 20592 else 20593 pkg_failed=untried 20594fi 20595 20596 20597 20598if test $pkg_failed = yes; then 20599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20600printf "%s\n" "no" >&6; } 20601 20602if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20603 _pkg_short_errors_supported=yes 20604else 20605 _pkg_short_errors_supported=no 20606fi 20607 if test $_pkg_short_errors_supported = yes; then 20608 BZIP2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "bzip2" 2>&1` 20609 else 20610 BZIP2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "bzip2" 2>&1` 20611 fi 20612 # Put the nasty error message in config.log where it belongs 20613 echo "$BZIP2_PKG_ERRORS" >&5 20614 20615 20616 save_CFLAGS=$CFLAGS 20617save_CPPFLAGS=$CPPFLAGS 20618save_LDFLAGS=$LDFLAGS 20619save_LIBS=$LIBS 20620 20621 20622 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS" 20623 LDFLAGS="$LDFLAGS $BZIP2_LIBS" 20624 for ac_header in bzlib.h 20625do : 20626 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 20627if test "x$ac_cv_header_bzlib_h" = xyes 20628then : 20629 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h 20630 20631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5 20632printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; } 20633if test ${ac_cv_lib_bz2_BZ2_bzCompress+y} 20634then : 20635 printf %s "(cached) " >&6 20636else $as_nop 20637 ac_check_lib_save_LIBS=$LIBS 20638LIBS="-lbz2 $LIBS" 20639cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20640/* end confdefs.h. */ 20641 20642/* Override any GCC internal prototype to avoid an error. 20643 Use char because int might match the return type of a GCC 20644 builtin and then its argument prototype would still apply. */ 20645char BZ2_bzCompress (); 20646int 20647main (void) 20648{ 20649return BZ2_bzCompress (); 20650 ; 20651 return 0; 20652} 20653_ACEOF 20654if ac_fn_c_try_link "$LINENO" 20655then : 20656 ac_cv_lib_bz2_BZ2_bzCompress=yes 20657else $as_nop 20658 ac_cv_lib_bz2_BZ2_bzCompress=no 20659fi 20660rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20661 conftest$ac_exeext conftest.$ac_ext 20662LIBS=$ac_check_lib_save_LIBS 20663fi 20664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5 20665printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; } 20666if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes 20667then : 20668 have_bzip2=yes 20669else $as_nop 20670 have_bzip2=no 20671fi 20672 20673 20674else $as_nop 20675 have_bzip2=no 20676fi 20677 20678done 20679 if test "x$have_bzip2" = xyes 20680then : 20681 20682 BZIP2_CFLAGS=${BZIP2_CFLAGS-""} 20683 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"} 20684 20685fi 20686 20687CFLAGS=$save_CFLAGS 20688CPPFLAGS=$save_CPPFLAGS 20689LDFLAGS=$save_LDFLAGS 20690LIBS=$save_LIBS 20691 20692 20693 20694elif test $pkg_failed = untried; then 20695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20696printf "%s\n" "no" >&6; } 20697 20698 save_CFLAGS=$CFLAGS 20699save_CPPFLAGS=$CPPFLAGS 20700save_LDFLAGS=$LDFLAGS 20701save_LIBS=$LIBS 20702 20703 20704 CPPFLAGS="$CPPFLAGS $BZIP2_CFLAGS" 20705 LDFLAGS="$LDFLAGS $BZIP2_LIBS" 20706 for ac_header in bzlib.h 20707do : 20708 ac_fn_c_check_header_compile "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default" 20709if test "x$ac_cv_header_bzlib_h" = xyes 20710then : 20711 printf "%s\n" "#define HAVE_BZLIB_H 1" >>confdefs.h 20712 20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzCompress in -lbz2" >&5 20714printf %s "checking for BZ2_bzCompress in -lbz2... " >&6; } 20715if test ${ac_cv_lib_bz2_BZ2_bzCompress+y} 20716then : 20717 printf %s "(cached) " >&6 20718else $as_nop 20719 ac_check_lib_save_LIBS=$LIBS 20720LIBS="-lbz2 $LIBS" 20721cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20722/* end confdefs.h. */ 20723 20724/* Override any GCC internal prototype to avoid an error. 20725 Use char because int might match the return type of a GCC 20726 builtin and then its argument prototype would still apply. */ 20727char BZ2_bzCompress (); 20728int 20729main (void) 20730{ 20731return BZ2_bzCompress (); 20732 ; 20733 return 0; 20734} 20735_ACEOF 20736if ac_fn_c_try_link "$LINENO" 20737then : 20738 ac_cv_lib_bz2_BZ2_bzCompress=yes 20739else $as_nop 20740 ac_cv_lib_bz2_BZ2_bzCompress=no 20741fi 20742rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20743 conftest$ac_exeext conftest.$ac_ext 20744LIBS=$ac_check_lib_save_LIBS 20745fi 20746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzCompress" >&5 20747printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzCompress" >&6; } 20748if test "x$ac_cv_lib_bz2_BZ2_bzCompress" = xyes 20749then : 20750 have_bzip2=yes 20751else $as_nop 20752 have_bzip2=no 20753fi 20754 20755 20756else $as_nop 20757 have_bzip2=no 20758fi 20759 20760done 20761 if test "x$have_bzip2" = xyes 20762then : 20763 20764 BZIP2_CFLAGS=${BZIP2_CFLAGS-""} 20765 BZIP2_LIBS=${BZIP2_LIBS-"-lbz2"} 20766 20767fi 20768 20769CFLAGS=$save_CFLAGS 20770CPPFLAGS=$save_CPPFLAGS 20771LDFLAGS=$save_LDFLAGS 20772LIBS=$save_LIBS 20773 20774 20775 20776else 20777 BZIP2_CFLAGS=$pkg_cv_BZIP2_CFLAGS 20778 BZIP2_LIBS=$pkg_cv_BZIP2_LIBS 20779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20780printf "%s\n" "yes" >&6; } 20781 have_bzip2=yes 20782fi 20783 20784 20785pkg_failed=no 20786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for liblzma" >&5 20787printf %s "checking for liblzma... " >&6; } 20788 20789if test -n "$LIBLZMA_CFLAGS"; then 20790 pkg_cv_LIBLZMA_CFLAGS="$LIBLZMA_CFLAGS" 20791 elif test -n "$PKG_CONFIG"; then 20792 if test -n "$PKG_CONFIG" && \ 20793 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5 20794 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5 20795 ac_status=$? 20796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20797 test $ac_status = 0; }; then 20798 pkg_cv_LIBLZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma" 2>/dev/null` 20799 test "x$?" != "x0" && pkg_failed=yes 20800else 20801 pkg_failed=yes 20802fi 20803 else 20804 pkg_failed=untried 20805fi 20806if test -n "$LIBLZMA_LIBS"; then 20807 pkg_cv_LIBLZMA_LIBS="$LIBLZMA_LIBS" 20808 elif test -n "$PKG_CONFIG"; then 20809 if test -n "$PKG_CONFIG" && \ 20810 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma\""; } >&5 20811 ($PKG_CONFIG --exists --print-errors "liblzma") 2>&5 20812 ac_status=$? 20813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20814 test $ac_status = 0; }; then 20815 pkg_cv_LIBLZMA_LIBS=`$PKG_CONFIG --libs "liblzma" 2>/dev/null` 20816 test "x$?" != "x0" && pkg_failed=yes 20817else 20818 pkg_failed=yes 20819fi 20820 else 20821 pkg_failed=untried 20822fi 20823 20824 20825 20826if test $pkg_failed = yes; then 20827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20828printf "%s\n" "no" >&6; } 20829 20830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 20831 _pkg_short_errors_supported=yes 20832else 20833 _pkg_short_errors_supported=no 20834fi 20835 if test $_pkg_short_errors_supported = yes; then 20836 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "liblzma" 2>&1` 20837 else 20838 LIBLZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "liblzma" 2>&1` 20839 fi 20840 # Put the nasty error message in config.log where it belongs 20841 echo "$LIBLZMA_PKG_ERRORS" >&5 20842 20843 20844 save_CFLAGS=$CFLAGS 20845save_CPPFLAGS=$CPPFLAGS 20846save_LDFLAGS=$LDFLAGS 20847save_LIBS=$LIBS 20848 20849 20850 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS" 20851 LDFLAGS="$LDFLAGS $LIBLZMA_LIBS" 20852 for ac_header in lzma.h 20853do : 20854 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 20855if test "x$ac_cv_header_lzma_h" = xyes 20856then : 20857 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h 20858 20859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5 20860printf %s "checking for lzma_easy_encoder in -llzma... " >&6; } 20861if test ${ac_cv_lib_lzma_lzma_easy_encoder+y} 20862then : 20863 printf %s "(cached) " >&6 20864else $as_nop 20865 ac_check_lib_save_LIBS=$LIBS 20866LIBS="-llzma $LIBS" 20867cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20868/* end confdefs.h. */ 20869 20870/* Override any GCC internal prototype to avoid an error. 20871 Use char because int might match the return type of a GCC 20872 builtin and then its argument prototype would still apply. */ 20873char lzma_easy_encoder (); 20874int 20875main (void) 20876{ 20877return lzma_easy_encoder (); 20878 ; 20879 return 0; 20880} 20881_ACEOF 20882if ac_fn_c_try_link "$LINENO" 20883then : 20884 ac_cv_lib_lzma_lzma_easy_encoder=yes 20885else $as_nop 20886 ac_cv_lib_lzma_lzma_easy_encoder=no 20887fi 20888rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20889 conftest$ac_exeext conftest.$ac_ext 20890LIBS=$ac_check_lib_save_LIBS 20891fi 20892{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5 20893printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; } 20894if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes 20895then : 20896 have_liblzma=yes 20897else $as_nop 20898 have_liblzma=no 20899fi 20900 20901 20902else $as_nop 20903 have_liblzma=no 20904fi 20905 20906done 20907 if test "x$have_liblzma" = xyes 20908then : 20909 20910 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""} 20911 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"} 20912 20913fi 20914 20915CFLAGS=$save_CFLAGS 20916CPPFLAGS=$save_CPPFLAGS 20917LDFLAGS=$save_LDFLAGS 20918LIBS=$save_LIBS 20919 20920 20921 20922elif test $pkg_failed = untried; then 20923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 20924printf "%s\n" "no" >&6; } 20925 20926 save_CFLAGS=$CFLAGS 20927save_CPPFLAGS=$CPPFLAGS 20928save_LDFLAGS=$LDFLAGS 20929save_LIBS=$LIBS 20930 20931 20932 CPPFLAGS="$CPPFLAGS $LIBLZMA_CFLAGS" 20933 LDFLAGS="$LDFLAGS $LIBLZMA_LIBS" 20934 for ac_header in lzma.h 20935do : 20936 ac_fn_c_check_header_compile "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default" 20937if test "x$ac_cv_header_lzma_h" = xyes 20938then : 20939 printf "%s\n" "#define HAVE_LZMA_H 1" >>confdefs.h 20940 20941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lzma_easy_encoder in -llzma" >&5 20942printf %s "checking for lzma_easy_encoder in -llzma... " >&6; } 20943if test ${ac_cv_lib_lzma_lzma_easy_encoder+y} 20944then : 20945 printf %s "(cached) " >&6 20946else $as_nop 20947 ac_check_lib_save_LIBS=$LIBS 20948LIBS="-llzma $LIBS" 20949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20950/* end confdefs.h. */ 20951 20952/* Override any GCC internal prototype to avoid an error. 20953 Use char because int might match the return type of a GCC 20954 builtin and then its argument prototype would still apply. */ 20955char lzma_easy_encoder (); 20956int 20957main (void) 20958{ 20959return lzma_easy_encoder (); 20960 ; 20961 return 0; 20962} 20963_ACEOF 20964if ac_fn_c_try_link "$LINENO" 20965then : 20966 ac_cv_lib_lzma_lzma_easy_encoder=yes 20967else $as_nop 20968 ac_cv_lib_lzma_lzma_easy_encoder=no 20969fi 20970rm -f core conftest.err conftest.$ac_objext conftest.beam \ 20971 conftest$ac_exeext conftest.$ac_ext 20972LIBS=$ac_check_lib_save_LIBS 20973fi 20974{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_easy_encoder" >&5 20975printf "%s\n" "$ac_cv_lib_lzma_lzma_easy_encoder" >&6; } 20976if test "x$ac_cv_lib_lzma_lzma_easy_encoder" = xyes 20977then : 20978 have_liblzma=yes 20979else $as_nop 20980 have_liblzma=no 20981fi 20982 20983 20984else $as_nop 20985 have_liblzma=no 20986fi 20987 20988done 20989 if test "x$have_liblzma" = xyes 20990then : 20991 20992 LIBLZMA_CFLAGS=${LIBLZMA_CFLAGS-""} 20993 LIBLZMA_LIBS=${LIBLZMA_LIBS-"-llzma"} 20994 20995fi 20996 20997CFLAGS=$save_CFLAGS 20998CPPFLAGS=$save_CPPFLAGS 20999LDFLAGS=$save_LDFLAGS 21000LIBS=$save_LIBS 21001 21002 21003 21004else 21005 LIBLZMA_CFLAGS=$pkg_cv_LIBLZMA_CFLAGS 21006 LIBLZMA_LIBS=$pkg_cv_LIBLZMA_LIBS 21007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21008printf "%s\n" "yes" >&6; } 21009 have_liblzma=yes 21010fi 21011 21012 21013 21014 21015 21016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 21017printf %s "checking for hstrerror... " >&6; } 21018if test ${ac_cv_func_hstrerror+y} 21019then : 21020 printf %s "(cached) " >&6 21021else $as_nop 21022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21023/* end confdefs.h. */ 21024#include <netdb.h> 21025int 21026main (void) 21027{ 21028void *x=hstrerror 21029 ; 21030 return 0; 21031} 21032_ACEOF 21033if ac_fn_c_try_compile "$LINENO" 21034then : 21035 ac_cv_func_hstrerror=yes 21036else $as_nop 21037 ac_cv_func_hstrerror=no 21038fi 21039rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21040 21041fi 21042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_hstrerror" >&5 21043printf "%s\n" "$ac_cv_func_hstrerror" >&6; } 21044 if test "x$ac_cv_func_hstrerror" = xyes 21045then : 21046 21047printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h 21048 21049fi 21050 21051 21052 21053 21054 21055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyname" >&5 21056printf %s "checking for getservbyname... " >&6; } 21057if test ${ac_cv_func_getservbyname+y} 21058then : 21059 printf %s "(cached) " >&6 21060else $as_nop 21061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21062/* end confdefs.h. */ 21063#include <netdb.h> 21064int 21065main (void) 21066{ 21067void *x=getservbyname 21068 ; 21069 return 0; 21070} 21071_ACEOF 21072if ac_fn_c_try_compile "$LINENO" 21073then : 21074 ac_cv_func_getservbyname=yes 21075else $as_nop 21076 ac_cv_func_getservbyname=no 21077fi 21078rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21079 21080fi 21081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyname" >&5 21082printf "%s\n" "$ac_cv_func_getservbyname" >&6; } 21083 if test "x$ac_cv_func_getservbyname" = xyes 21084then : 21085 21086printf "%s\n" "#define HAVE_GETSERVBYNAME 1" >>confdefs.h 21087 21088fi 21089 21090 21091 21092 21093 21094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getservbyport" >&5 21095printf %s "checking for getservbyport... " >&6; } 21096if test ${ac_cv_func_getservbyport+y} 21097then : 21098 printf %s "(cached) " >&6 21099else $as_nop 21100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21101/* end confdefs.h. */ 21102#include <netdb.h> 21103int 21104main (void) 21105{ 21106void *x=getservbyport 21107 ; 21108 return 0; 21109} 21110_ACEOF 21111if ac_fn_c_try_compile "$LINENO" 21112then : 21113 ac_cv_func_getservbyport=yes 21114else $as_nop 21115 ac_cv_func_getservbyport=no 21116fi 21117rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21118 21119fi 21120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getservbyport" >&5 21121printf "%s\n" "$ac_cv_func_getservbyport" >&6; } 21122 if test "x$ac_cv_func_getservbyport" = xyes 21123then : 21124 21125printf "%s\n" "#define HAVE_GETSERVBYPORT 1" >>confdefs.h 21126 21127fi 21128 21129 21130 21131 21132 21133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname" >&5 21134printf %s "checking for gethostbyname... " >&6; } 21135if test ${ac_cv_func_gethostbyname+y} 21136then : 21137 printf %s "(cached) " >&6 21138else $as_nop 21139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21140/* end confdefs.h. */ 21141#include <netdb.h> 21142int 21143main (void) 21144{ 21145void *x=gethostbyname 21146 ; 21147 return 0; 21148} 21149_ACEOF 21150if ac_fn_c_try_compile "$LINENO" 21151then : 21152 ac_cv_func_gethostbyname=yes 21153else $as_nop 21154 ac_cv_func_gethostbyname=no 21155fi 21156rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21157 21158fi 21159{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyname" >&5 21160printf "%s\n" "$ac_cv_func_gethostbyname" >&6; } 21161 if test "x$ac_cv_func_gethostbyname" = xyes 21162then : 21163 21164printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 21165 21166fi 21167 21168 21169 21170 21171 21172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyaddr" >&5 21173printf %s "checking for gethostbyaddr... " >&6; } 21174if test ${ac_cv_func_gethostbyaddr+y} 21175then : 21176 printf %s "(cached) " >&6 21177else $as_nop 21178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21179/* end confdefs.h. */ 21180#include <netdb.h> 21181int 21182main (void) 21183{ 21184void *x=gethostbyaddr 21185 ; 21186 return 0; 21187} 21188_ACEOF 21189if ac_fn_c_try_compile "$LINENO" 21190then : 21191 ac_cv_func_gethostbyaddr=yes 21192else $as_nop 21193 ac_cv_func_gethostbyaddr=no 21194fi 21195rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21196 21197fi 21198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_gethostbyaddr" >&5 21199printf "%s\n" "$ac_cv_func_gethostbyaddr" >&6; } 21200 if test "x$ac_cv_func_gethostbyaddr" = xyes 21201then : 21202 21203printf "%s\n" "#define HAVE_GETHOSTBYADDR 1" >>confdefs.h 21204 21205fi 21206 21207 21208 21209 21210 21211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprotobyname" >&5 21212printf %s "checking for getprotobyname... " >&6; } 21213if test ${ac_cv_func_getprotobyname+y} 21214then : 21215 printf %s "(cached) " >&6 21216else $as_nop 21217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21218/* end confdefs.h. */ 21219#include <netdb.h> 21220int 21221main (void) 21222{ 21223void *x=getprotobyname 21224 ; 21225 return 0; 21226} 21227_ACEOF 21228if ac_fn_c_try_compile "$LINENO" 21229then : 21230 ac_cv_func_getprotobyname=yes 21231else $as_nop 21232 ac_cv_func_getprotobyname=no 21233fi 21234rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21235 21236fi 21237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getprotobyname" >&5 21238printf "%s\n" "$ac_cv_func_getprotobyname" >&6; } 21239 if test "x$ac_cv_func_getprotobyname" = xyes 21240then : 21241 21242printf "%s\n" "#define HAVE_GETPROTOBYNAME 1" >>confdefs.h 21243 21244fi 21245 21246 21247 21248 21249 21250 21251 21252 21253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 21254printf %s "checking for inet_aton... " >&6; } 21255if test ${ac_cv_func_inet_aton+y} 21256then : 21257 printf %s "(cached) " >&6 21258else $as_nop 21259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21260/* end confdefs.h. */ 21261 21262#include <sys/types.h> 21263#include <sys/socket.h> 21264#include <netinet/in.h> 21265#include <arpa/inet.h> 21266 21267int 21268main (void) 21269{ 21270void *x=inet_aton 21271 ; 21272 return 0; 21273} 21274_ACEOF 21275if ac_fn_c_try_compile "$LINENO" 21276then : 21277 ac_cv_func_inet_aton=yes 21278else $as_nop 21279 ac_cv_func_inet_aton=no 21280fi 21281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21282 21283fi 21284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_aton" >&5 21285printf "%s\n" "$ac_cv_func_inet_aton" >&6; } 21286 if test "x$ac_cv_func_inet_aton" = xyes 21287then : 21288 21289printf "%s\n" "#define HAVE_INET_ATON 1" >>confdefs.h 21290 21291fi 21292 21293 21294 21295 21296 21297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_ntoa" >&5 21298printf %s "checking for inet_ntoa... " >&6; } 21299if test ${ac_cv_func_inet_ntoa+y} 21300then : 21301 printf %s "(cached) " >&6 21302else $as_nop 21303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21304/* end confdefs.h. */ 21305 21306#include <sys/types.h> 21307#include <sys/socket.h> 21308#include <netinet/in.h> 21309#include <arpa/inet.h> 21310 21311int 21312main (void) 21313{ 21314void *x=inet_ntoa 21315 ; 21316 return 0; 21317} 21318_ACEOF 21319if ac_fn_c_try_compile "$LINENO" 21320then : 21321 ac_cv_func_inet_ntoa=yes 21322else $as_nop 21323 ac_cv_func_inet_ntoa=no 21324fi 21325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21326 21327fi 21328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_ntoa" >&5 21329printf "%s\n" "$ac_cv_func_inet_ntoa" >&6; } 21330 if test "x$ac_cv_func_inet_ntoa" = xyes 21331then : 21332 21333printf "%s\n" "#define HAVE_INET_NTOA 1" >>confdefs.h 21334 21335fi 21336 21337 21338 21339 21340 21341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 21342printf %s "checking for inet_pton... " >&6; } 21343if test ${ac_cv_func_inet_pton+y} 21344then : 21345 printf %s "(cached) " >&6 21346else $as_nop 21347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21348/* end confdefs.h. */ 21349 21350#include <sys/types.h> 21351#include <sys/socket.h> 21352#include <netinet/in.h> 21353#include <arpa/inet.h> 21354 21355int 21356main (void) 21357{ 21358void *x=inet_pton 21359 ; 21360 return 0; 21361} 21362_ACEOF 21363if ac_fn_c_try_compile "$LINENO" 21364then : 21365 ac_cv_func_inet_pton=yes 21366else $as_nop 21367 ac_cv_func_inet_pton=no 21368fi 21369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21370 21371fi 21372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_inet_pton" >&5 21373printf "%s\n" "$ac_cv_func_inet_pton" >&6; } 21374 if test "x$ac_cv_func_inet_pton" = xyes 21375then : 21376 21377printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h 21378 21379fi 21380 21381 21382 21383 21384 21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getpeername" >&5 21386printf %s "checking for getpeername... " >&6; } 21387if test ${ac_cv_func_getpeername+y} 21388then : 21389 printf %s "(cached) " >&6 21390else $as_nop 21391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21392/* end confdefs.h. */ 21393 21394#include <sys/types.h> 21395#include <sys/socket.h> 21396#include <netinet/in.h> 21397#include <arpa/inet.h> 21398 21399int 21400main (void) 21401{ 21402void *x=getpeername 21403 ; 21404 return 0; 21405} 21406_ACEOF 21407if ac_fn_c_try_compile "$LINENO" 21408then : 21409 ac_cv_func_getpeername=yes 21410else $as_nop 21411 ac_cv_func_getpeername=no 21412fi 21413rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21414 21415fi 21416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpeername" >&5 21417printf "%s\n" "$ac_cv_func_getpeername" >&6; } 21418 if test "x$ac_cv_func_getpeername" = xyes 21419then : 21420 21421printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h 21422 21423fi 21424 21425 21426 21427 21428 21429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getsockname" >&5 21430printf %s "checking for getsockname... " >&6; } 21431if test ${ac_cv_func_getsockname+y} 21432then : 21433 printf %s "(cached) " >&6 21434else $as_nop 21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21436/* end confdefs.h. */ 21437 21438#include <sys/types.h> 21439#include <sys/socket.h> 21440#include <netinet/in.h> 21441#include <arpa/inet.h> 21442 21443int 21444main (void) 21445{ 21446void *x=getsockname 21447 ; 21448 return 0; 21449} 21450_ACEOF 21451if ac_fn_c_try_compile "$LINENO" 21452then : 21453 ac_cv_func_getsockname=yes 21454else $as_nop 21455 ac_cv_func_getsockname=no 21456fi 21457rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21458 21459fi 21460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getsockname" >&5 21461printf "%s\n" "$ac_cv_func_getsockname" >&6; } 21462 if test "x$ac_cv_func_getsockname" = xyes 21463then : 21464 21465printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h 21466 21467fi 21468 21469 21470 21471 21472 21473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for accept" >&5 21474printf %s "checking for accept... " >&6; } 21475if test ${ac_cv_func_accept+y} 21476then : 21477 printf %s "(cached) " >&6 21478else $as_nop 21479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21480/* end confdefs.h. */ 21481 21482#include <sys/types.h> 21483#include <sys/socket.h> 21484#include <netinet/in.h> 21485#include <arpa/inet.h> 21486 21487int 21488main (void) 21489{ 21490void *x=accept 21491 ; 21492 return 0; 21493} 21494_ACEOF 21495if ac_fn_c_try_compile "$LINENO" 21496then : 21497 ac_cv_func_accept=yes 21498else $as_nop 21499 ac_cv_func_accept=no 21500fi 21501rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21502 21503fi 21504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept" >&5 21505printf "%s\n" "$ac_cv_func_accept" >&6; } 21506 if test "x$ac_cv_func_accept" = xyes 21507then : 21508 21509printf "%s\n" "#define HAVE_ACCEPT 1" >>confdefs.h 21510 21511fi 21512 21513 21514 21515 21516 21517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bind" >&5 21518printf %s "checking for bind... " >&6; } 21519if test ${ac_cv_func_bind+y} 21520then : 21521 printf %s "(cached) " >&6 21522else $as_nop 21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21524/* end confdefs.h. */ 21525 21526#include <sys/types.h> 21527#include <sys/socket.h> 21528#include <netinet/in.h> 21529#include <arpa/inet.h> 21530 21531int 21532main (void) 21533{ 21534void *x=bind 21535 ; 21536 return 0; 21537} 21538_ACEOF 21539if ac_fn_c_try_compile "$LINENO" 21540then : 21541 ac_cv_func_bind=yes 21542else $as_nop 21543 ac_cv_func_bind=no 21544fi 21545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21546 21547fi 21548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_bind" >&5 21549printf "%s\n" "$ac_cv_func_bind" >&6; } 21550 if test "x$ac_cv_func_bind" = xyes 21551then : 21552 21553printf "%s\n" "#define HAVE_BIND 1" >>confdefs.h 21554 21555fi 21556 21557 21558 21559 21560 21561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect" >&5 21562printf %s "checking for connect... " >&6; } 21563if test ${ac_cv_func_connect+y} 21564then : 21565 printf %s "(cached) " >&6 21566else $as_nop 21567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21568/* end confdefs.h. */ 21569 21570#include <sys/types.h> 21571#include <sys/socket.h> 21572#include <netinet/in.h> 21573#include <arpa/inet.h> 21574 21575int 21576main (void) 21577{ 21578void *x=connect 21579 ; 21580 return 0; 21581} 21582_ACEOF 21583if ac_fn_c_try_compile "$LINENO" 21584then : 21585 ac_cv_func_connect=yes 21586else $as_nop 21587 ac_cv_func_connect=no 21588fi 21589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21590 21591fi 21592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_connect" >&5 21593printf "%s\n" "$ac_cv_func_connect" >&6; } 21594 if test "x$ac_cv_func_connect" = xyes 21595then : 21596 21597printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h 21598 21599fi 21600 21601 21602 21603 21604 21605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for listen" >&5 21606printf %s "checking for listen... " >&6; } 21607if test ${ac_cv_func_listen+y} 21608then : 21609 printf %s "(cached) " >&6 21610else $as_nop 21611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21612/* end confdefs.h. */ 21613 21614#include <sys/types.h> 21615#include <sys/socket.h> 21616#include <netinet/in.h> 21617#include <arpa/inet.h> 21618 21619int 21620main (void) 21621{ 21622void *x=listen 21623 ; 21624 return 0; 21625} 21626_ACEOF 21627if ac_fn_c_try_compile "$LINENO" 21628then : 21629 ac_cv_func_listen=yes 21630else $as_nop 21631 ac_cv_func_listen=no 21632fi 21633rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21634 21635fi 21636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_listen" >&5 21637printf "%s\n" "$ac_cv_func_listen" >&6; } 21638 if test "x$ac_cv_func_listen" = xyes 21639then : 21640 21641printf "%s\n" "#define HAVE_LISTEN 1" >>confdefs.h 21642 21643fi 21644 21645 21646 21647 21648 21649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recvfrom" >&5 21650printf %s "checking for recvfrom... " >&6; } 21651if test ${ac_cv_func_recvfrom+y} 21652then : 21653 printf %s "(cached) " >&6 21654else $as_nop 21655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21656/* end confdefs.h. */ 21657 21658#include <sys/types.h> 21659#include <sys/socket.h> 21660#include <netinet/in.h> 21661#include <arpa/inet.h> 21662 21663int 21664main (void) 21665{ 21666void *x=recvfrom 21667 ; 21668 return 0; 21669} 21670_ACEOF 21671if ac_fn_c_try_compile "$LINENO" 21672then : 21673 ac_cv_func_recvfrom=yes 21674else $as_nop 21675 ac_cv_func_recvfrom=no 21676fi 21677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21678 21679fi 21680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_recvfrom" >&5 21681printf "%s\n" "$ac_cv_func_recvfrom" >&6; } 21682 if test "x$ac_cv_func_recvfrom" = xyes 21683then : 21684 21685printf "%s\n" "#define HAVE_RECVFROM 1" >>confdefs.h 21686 21687fi 21688 21689 21690 21691 21692 21693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sendto" >&5 21694printf %s "checking for sendto... " >&6; } 21695if test ${ac_cv_func_sendto+y} 21696then : 21697 printf %s "(cached) " >&6 21698else $as_nop 21699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21700/* end confdefs.h. */ 21701 21702#include <sys/types.h> 21703#include <sys/socket.h> 21704#include <netinet/in.h> 21705#include <arpa/inet.h> 21706 21707int 21708main (void) 21709{ 21710void *x=sendto 21711 ; 21712 return 0; 21713} 21714_ACEOF 21715if ac_fn_c_try_compile "$LINENO" 21716then : 21717 ac_cv_func_sendto=yes 21718else $as_nop 21719 ac_cv_func_sendto=no 21720fi 21721rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21722 21723fi 21724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_sendto" >&5 21725printf "%s\n" "$ac_cv_func_sendto" >&6; } 21726 if test "x$ac_cv_func_sendto" = xyes 21727then : 21728 21729printf "%s\n" "#define HAVE_SENDTO 1" >>confdefs.h 21730 21731fi 21732 21733 21734 21735 21736 21737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setsockopt" >&5 21738printf %s "checking for setsockopt... " >&6; } 21739if test ${ac_cv_func_setsockopt+y} 21740then : 21741 printf %s "(cached) " >&6 21742else $as_nop 21743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21744/* end confdefs.h. */ 21745 21746#include <sys/types.h> 21747#include <sys/socket.h> 21748#include <netinet/in.h> 21749#include <arpa/inet.h> 21750 21751int 21752main (void) 21753{ 21754void *x=setsockopt 21755 ; 21756 return 0; 21757} 21758_ACEOF 21759if ac_fn_c_try_compile "$LINENO" 21760then : 21761 ac_cv_func_setsockopt=yes 21762else $as_nop 21763 ac_cv_func_setsockopt=no 21764fi 21765rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21766 21767fi 21768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setsockopt" >&5 21769printf "%s\n" "$ac_cv_func_setsockopt" >&6; } 21770 if test "x$ac_cv_func_setsockopt" = xyes 21771then : 21772 21773printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h 21774 21775fi 21776 21777 21778 21779 21780 21781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket" >&5 21782printf %s "checking for socket... " >&6; } 21783if test ${ac_cv_func_socket+y} 21784then : 21785 printf %s "(cached) " >&6 21786else $as_nop 21787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21788/* end confdefs.h. */ 21789 21790#include <sys/types.h> 21791#include <sys/socket.h> 21792#include <netinet/in.h> 21793#include <arpa/inet.h> 21794 21795int 21796main (void) 21797{ 21798void *x=socket 21799 ; 21800 return 0; 21801} 21802_ACEOF 21803if ac_fn_c_try_compile "$LINENO" 21804then : 21805 ac_cv_func_socket=yes 21806else $as_nop 21807 ac_cv_func_socket=no 21808fi 21809rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21810 21811fi 21812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socket" >&5 21813printf "%s\n" "$ac_cv_func_socket" >&6; } 21814 if test "x$ac_cv_func_socket" = xyes 21815then : 21816 21817printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h 21818 21819fi 21820 21821 21822 21823 21824# On some systems, setgroups is in unistd.h, on others, in grp.h 21825 21826 21827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 21828printf %s "checking for setgroups... " >&6; } 21829if test ${ac_cv_func_setgroups+y} 21830then : 21831 printf %s "(cached) " >&6 21832else $as_nop 21833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21834/* end confdefs.h. */ 21835 21836#include <unistd.h> 21837#ifdef HAVE_GRP_H 21838#include <grp.h> 21839#endif 21840 21841int 21842main (void) 21843{ 21844void *x=setgroups 21845 ; 21846 return 0; 21847} 21848_ACEOF 21849if ac_fn_c_try_compile "$LINENO" 21850then : 21851 ac_cv_func_setgroups=yes 21852else $as_nop 21853 ac_cv_func_setgroups=no 21854fi 21855rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 21856 21857fi 21858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setgroups" >&5 21859printf "%s\n" "$ac_cv_func_setgroups" >&6; } 21860 if test "x$ac_cv_func_setgroups" = xyes 21861then : 21862 21863printf "%s\n" "#define HAVE_SETGROUPS 1" >>confdefs.h 21864 21865fi 21866 21867 21868 21869 21870# check for openpty, login_tty, and forkpty 21871 21872 21873 for ac_func in openpty 21874do : 21875 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 21876if test "x$ac_cv_func_openpty" = xyes 21877then : 21878 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h 21879 21880else $as_nop 21881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 21882printf %s "checking for openpty in -lutil... " >&6; } 21883if test ${ac_cv_lib_util_openpty+y} 21884then : 21885 printf %s "(cached) " >&6 21886else $as_nop 21887 ac_check_lib_save_LIBS=$LIBS 21888LIBS="-lutil $LIBS" 21889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21890/* end confdefs.h. */ 21891 21892/* Override any GCC internal prototype to avoid an error. 21893 Use char because int might match the return type of a GCC 21894 builtin and then its argument prototype would still apply. */ 21895char openpty (); 21896int 21897main (void) 21898{ 21899return openpty (); 21900 ; 21901 return 0; 21902} 21903_ACEOF 21904if ac_fn_c_try_link "$LINENO" 21905then : 21906 ac_cv_lib_util_openpty=yes 21907else $as_nop 21908 ac_cv_lib_util_openpty=no 21909fi 21910rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21911 conftest$ac_exeext conftest.$ac_ext 21912LIBS=$ac_check_lib_save_LIBS 21913fi 21914{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 21915printf "%s\n" "$ac_cv_lib_util_openpty" >&6; } 21916if test "x$ac_cv_lib_util_openpty" = xyes 21917then : 21918 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h 21919 LIBS="$LIBS -lutil" 21920else $as_nop 21921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 21922printf %s "checking for openpty in -lbsd... " >&6; } 21923if test ${ac_cv_lib_bsd_openpty+y} 21924then : 21925 printf %s "(cached) " >&6 21926else $as_nop 21927 ac_check_lib_save_LIBS=$LIBS 21928LIBS="-lbsd $LIBS" 21929cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21930/* end confdefs.h. */ 21931 21932/* Override any GCC internal prototype to avoid an error. 21933 Use char because int might match the return type of a GCC 21934 builtin and then its argument prototype would still apply. */ 21935char openpty (); 21936int 21937main (void) 21938{ 21939return openpty (); 21940 ; 21941 return 0; 21942} 21943_ACEOF 21944if ac_fn_c_try_link "$LINENO" 21945then : 21946 ac_cv_lib_bsd_openpty=yes 21947else $as_nop 21948 ac_cv_lib_bsd_openpty=no 21949fi 21950rm -f core conftest.err conftest.$ac_objext conftest.beam \ 21951 conftest$ac_exeext conftest.$ac_ext 21952LIBS=$ac_check_lib_save_LIBS 21953fi 21954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 21955printf "%s\n" "$ac_cv_lib_bsd_openpty" >&6; } 21956if test "x$ac_cv_lib_bsd_openpty" = xyes 21957then : 21958 printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h 21959 LIBS="$LIBS -lbsd" 21960fi 21961 21962fi 21963 21964fi 21965 21966done 21967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing login_tty" >&5 21968printf %s "checking for library containing login_tty... " >&6; } 21969if test ${ac_cv_search_login_tty+y} 21970then : 21971 printf %s "(cached) " >&6 21972else $as_nop 21973 ac_func_search_save_LIBS=$LIBS 21974cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21975/* end confdefs.h. */ 21976 21977/* Override any GCC internal prototype to avoid an error. 21978 Use char because int might match the return type of a GCC 21979 builtin and then its argument prototype would still apply. */ 21980char login_tty (); 21981int 21982main (void) 21983{ 21984return login_tty (); 21985 ; 21986 return 0; 21987} 21988_ACEOF 21989for ac_lib in '' util 21990do 21991 if test -z "$ac_lib"; then 21992 ac_res="none required" 21993 else 21994 ac_res=-l$ac_lib 21995 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21996 fi 21997 if ac_fn_c_try_link "$LINENO" 21998then : 21999 ac_cv_search_login_tty=$ac_res 22000fi 22001rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22002 conftest$ac_exeext 22003 if test ${ac_cv_search_login_tty+y} 22004then : 22005 break 22006fi 22007done 22008if test ${ac_cv_search_login_tty+y} 22009then : 22010 22011else $as_nop 22012 ac_cv_search_login_tty=no 22013fi 22014rm conftest.$ac_ext 22015LIBS=$ac_func_search_save_LIBS 22016fi 22017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_login_tty" >&5 22018printf "%s\n" "$ac_cv_search_login_tty" >&6; } 22019ac_res=$ac_cv_search_login_tty 22020if test "$ac_res" != no 22021then : 22022 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22023 22024printf "%s\n" "#define HAVE_LOGIN_TTY 1" >>confdefs.h 22025 22026 22027fi 22028 22029 22030 for ac_func in forkpty 22031do : 22032 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" 22033if test "x$ac_cv_func_forkpty" = xyes 22034then : 22035 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h 22036 22037else $as_nop 22038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 22039printf %s "checking for forkpty in -lutil... " >&6; } 22040if test ${ac_cv_lib_util_forkpty+y} 22041then : 22042 printf %s "(cached) " >&6 22043else $as_nop 22044 ac_check_lib_save_LIBS=$LIBS 22045LIBS="-lutil $LIBS" 22046cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22047/* end confdefs.h. */ 22048 22049/* Override any GCC internal prototype to avoid an error. 22050 Use char because int might match the return type of a GCC 22051 builtin and then its argument prototype would still apply. */ 22052char forkpty (); 22053int 22054main (void) 22055{ 22056return forkpty (); 22057 ; 22058 return 0; 22059} 22060_ACEOF 22061if ac_fn_c_try_link "$LINENO" 22062then : 22063 ac_cv_lib_util_forkpty=yes 22064else $as_nop 22065 ac_cv_lib_util_forkpty=no 22066fi 22067rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22068 conftest$ac_exeext conftest.$ac_ext 22069LIBS=$ac_check_lib_save_LIBS 22070fi 22071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 22072printf "%s\n" "$ac_cv_lib_util_forkpty" >&6; } 22073if test "x$ac_cv_lib_util_forkpty" = xyes 22074then : 22075 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h 22076 LIBS="$LIBS -lutil" 22077else $as_nop 22078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 22079printf %s "checking for forkpty in -lbsd... " >&6; } 22080if test ${ac_cv_lib_bsd_forkpty+y} 22081then : 22082 printf %s "(cached) " >&6 22083else $as_nop 22084 ac_check_lib_save_LIBS=$LIBS 22085LIBS="-lbsd $LIBS" 22086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22087/* end confdefs.h. */ 22088 22089/* Override any GCC internal prototype to avoid an error. 22090 Use char because int might match the return type of a GCC 22091 builtin and then its argument prototype would still apply. */ 22092char forkpty (); 22093int 22094main (void) 22095{ 22096return forkpty (); 22097 ; 22098 return 0; 22099} 22100_ACEOF 22101if ac_fn_c_try_link "$LINENO" 22102then : 22103 ac_cv_lib_bsd_forkpty=yes 22104else $as_nop 22105 ac_cv_lib_bsd_forkpty=no 22106fi 22107rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22108 conftest$ac_exeext conftest.$ac_ext 22109LIBS=$ac_check_lib_save_LIBS 22110fi 22111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 22112printf "%s\n" "$ac_cv_lib_bsd_forkpty" >&6; } 22113if test "x$ac_cv_lib_bsd_forkpty" = xyes 22114then : 22115 printf "%s\n" "#define HAVE_FORKPTY 1" >>confdefs.h 22116 LIBS="$LIBS -lbsd" 22117fi 22118 22119fi 22120 22121fi 22122 22123done 22124 22125# check for long file support functions 22126ac_fn_c_check_func "$LINENO" "fseek64" "ac_cv_func_fseek64" 22127if test "x$ac_cv_func_fseek64" = xyes 22128then : 22129 printf "%s\n" "#define HAVE_FSEEK64 1" >>confdefs.h 22130 22131fi 22132ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" 22133if test "x$ac_cv_func_fseeko" = xyes 22134then : 22135 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h 22136 22137fi 22138ac_fn_c_check_func "$LINENO" "fstatvfs" "ac_cv_func_fstatvfs" 22139if test "x$ac_cv_func_fstatvfs" = xyes 22140then : 22141 printf "%s\n" "#define HAVE_FSTATVFS 1" >>confdefs.h 22142 22143fi 22144ac_fn_c_check_func "$LINENO" "ftell64" "ac_cv_func_ftell64" 22145if test "x$ac_cv_func_ftell64" = xyes 22146then : 22147 printf "%s\n" "#define HAVE_FTELL64 1" >>confdefs.h 22148 22149fi 22150ac_fn_c_check_func "$LINENO" "ftello" "ac_cv_func_ftello" 22151if test "x$ac_cv_func_ftello" = xyes 22152then : 22153 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h 22154 22155fi 22156ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" 22157if test "x$ac_cv_func_statvfs" = xyes 22158then : 22159 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h 22160 22161fi 22162 22163 22164ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 22165if test "x$ac_cv_func_dup2" = xyes 22166then : 22167 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h 22168 22169else $as_nop 22170 case " $LIBOBJS " in 22171 *" dup2.$ac_objext "* ) ;; 22172 *) LIBOBJS="$LIBOBJS dup2.$ac_objext" 22173 ;; 22174esac 22175 22176fi 22177 22178 22179 for ac_func in getpgrp 22180do : 22181 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 22182if test "x$ac_cv_func_getpgrp" = xyes 22183then : 22184 printf "%s\n" "#define HAVE_GETPGRP 1" >>confdefs.h 22185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22186/* end confdefs.h. */ 22187#include <unistd.h> 22188int 22189main (void) 22190{ 22191getpgrp(0); 22192 ; 22193 return 0; 22194} 22195_ACEOF 22196if ac_fn_c_try_compile "$LINENO" 22197then : 22198 22199printf "%s\n" "#define GETPGRP_HAVE_ARG 1" >>confdefs.h 22200 22201fi 22202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22203fi 22204 22205done 22206 22207 for ac_func in setpgrp 22208do : 22209 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 22210if test "x$ac_cv_func_setpgrp" = xyes 22211then : 22212 printf "%s\n" "#define HAVE_SETPGRP 1" >>confdefs.h 22213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22214/* end confdefs.h. */ 22215#include <unistd.h> 22216int 22217main (void) 22218{ 22219setpgrp(0,0); 22220 ; 22221 return 0; 22222} 22223_ACEOF 22224if ac_fn_c_try_compile "$LINENO" 22225then : 22226 22227printf "%s\n" "#define SETPGRP_HAVE_ARG 1" >>confdefs.h 22228 22229fi 22230rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22231fi 22232 22233done 22234 22235# check for namespace functions 22236ac_fn_c_check_func "$LINENO" "setns" "ac_cv_func_setns" 22237if test "x$ac_cv_func_setns" = xyes 22238then : 22239 printf "%s\n" "#define HAVE_SETNS 1" >>confdefs.h 22240 22241fi 22242ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare" 22243if test "x$ac_cv_func_unshare" = xyes 22244then : 22245 printf "%s\n" "#define HAVE_UNSHARE 1" >>confdefs.h 22246 22247fi 22248 22249 22250 22251 for ac_func in clock_gettime 22252do : 22253 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 22254if test "x$ac_cv_func_clock_gettime" = xyes 22255then : 22256 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 22257 22258else $as_nop 22259 22260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 22261printf %s "checking for clock_gettime in -lrt... " >&6; } 22262if test ${ac_cv_lib_rt_clock_gettime+y} 22263then : 22264 printf %s "(cached) " >&6 22265else $as_nop 22266 ac_check_lib_save_LIBS=$LIBS 22267LIBS="-lrt $LIBS" 22268cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22269/* end confdefs.h. */ 22270 22271/* Override any GCC internal prototype to avoid an error. 22272 Use char because int might match the return type of a GCC 22273 builtin and then its argument prototype would still apply. */ 22274char clock_gettime (); 22275int 22276main (void) 22277{ 22278return clock_gettime (); 22279 ; 22280 return 0; 22281} 22282_ACEOF 22283if ac_fn_c_try_link "$LINENO" 22284then : 22285 ac_cv_lib_rt_clock_gettime=yes 22286else $as_nop 22287 ac_cv_lib_rt_clock_gettime=no 22288fi 22289rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22290 conftest$ac_exeext conftest.$ac_ext 22291LIBS=$ac_check_lib_save_LIBS 22292fi 22293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 22294printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } 22295if test "x$ac_cv_lib_rt_clock_gettime" = xyes 22296then : 22297 22298 LIBS="$LIBS -lrt" 22299 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 22300 22301 22302printf "%s\n" "#define TIMEMODULE_LIB rt" >>confdefs.h 22303 22304 22305fi 22306 22307 22308fi 22309 22310done 22311 22312 22313 for ac_func in clock_getres 22314do : 22315 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" 22316if test "x$ac_cv_func_clock_getres" = xyes 22317then : 22318 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h 22319 22320else $as_nop 22321 22322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 22323printf %s "checking for clock_getres in -lrt... " >&6; } 22324if test ${ac_cv_lib_rt_clock_getres+y} 22325then : 22326 printf %s "(cached) " >&6 22327else $as_nop 22328 ac_check_lib_save_LIBS=$LIBS 22329LIBS="-lrt $LIBS" 22330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22331/* end confdefs.h. */ 22332 22333/* Override any GCC internal prototype to avoid an error. 22334 Use char because int might match the return type of a GCC 22335 builtin and then its argument prototype would still apply. */ 22336char clock_getres (); 22337int 22338main (void) 22339{ 22340return clock_getres (); 22341 ; 22342 return 0; 22343} 22344_ACEOF 22345if ac_fn_c_try_link "$LINENO" 22346then : 22347 ac_cv_lib_rt_clock_getres=yes 22348else $as_nop 22349 ac_cv_lib_rt_clock_getres=no 22350fi 22351rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22352 conftest$ac_exeext conftest.$ac_ext 22353LIBS=$ac_check_lib_save_LIBS 22354fi 22355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 22356printf "%s\n" "$ac_cv_lib_rt_clock_getres" >&6; } 22357if test "x$ac_cv_lib_rt_clock_getres" = xyes 22358then : 22359 22360 printf "%s\n" "#define HAVE_CLOCK_GETRES 1" >>confdefs.h 22361 22362 22363fi 22364 22365 22366fi 22367 22368done 22369 22370# On Android and iOS, clock_settime can be linked (so it is found by 22371# configure), but when used in an unprivileged process, it crashes rather than 22372# returning an error. Force the symbol off. 22373if test "$ac_sys_system" != "Linux-android" && test "$ac_sys_system" != "iOS" 22374then 22375 22376 for ac_func in clock_settime 22377do : 22378 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" 22379if test "x$ac_cv_func_clock_settime" = xyes 22380then : 22381 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h 22382 22383else $as_nop 22384 22385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 22386printf %s "checking for clock_settime in -lrt... " >&6; } 22387if test ${ac_cv_lib_rt_clock_settime+y} 22388then : 22389 printf %s "(cached) " >&6 22390else $as_nop 22391 ac_check_lib_save_LIBS=$LIBS 22392LIBS="-lrt $LIBS" 22393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22394/* end confdefs.h. */ 22395 22396/* Override any GCC internal prototype to avoid an error. 22397 Use char because int might match the return type of a GCC 22398 builtin and then its argument prototype would still apply. */ 22399char clock_settime (); 22400int 22401main (void) 22402{ 22403return clock_settime (); 22404 ; 22405 return 0; 22406} 22407_ACEOF 22408if ac_fn_c_try_link "$LINENO" 22409then : 22410 ac_cv_lib_rt_clock_settime=yes 22411else $as_nop 22412 ac_cv_lib_rt_clock_settime=no 22413fi 22414rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22415 conftest$ac_exeext conftest.$ac_ext 22416LIBS=$ac_check_lib_save_LIBS 22417fi 22418{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 22419printf "%s\n" "$ac_cv_lib_rt_clock_settime" >&6; } 22420if test "x$ac_cv_lib_rt_clock_settime" = xyes 22421then : 22422 22423 printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h 22424 22425 22426fi 22427 22428 22429fi 22430 22431done 22432fi 22433 22434# On Android before API level 23, clock_nanosleep returns the wrong value when 22435# interrupted by a signal (https://issuetracker.google.com/issues/216495770). 22436if ! { test "$ac_sys_system" = "Linux-android" && 22437 test "$ANDROID_API_LEVEL" -lt 23; }; then 22438 22439 for ac_func in clock_nanosleep 22440do : 22441 ac_fn_c_check_func "$LINENO" "clock_nanosleep" "ac_cv_func_clock_nanosleep" 22442if test "x$ac_cv_func_clock_nanosleep" = xyes 22443then : 22444 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h 22445 22446else $as_nop 22447 22448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_nanosleep in -lrt" >&5 22449printf %s "checking for clock_nanosleep in -lrt... " >&6; } 22450if test ${ac_cv_lib_rt_clock_nanosleep+y} 22451then : 22452 printf %s "(cached) " >&6 22453else $as_nop 22454 ac_check_lib_save_LIBS=$LIBS 22455LIBS="-lrt $LIBS" 22456cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22457/* end confdefs.h. */ 22458 22459/* Override any GCC internal prototype to avoid an error. 22460 Use char because int might match the return type of a GCC 22461 builtin and then its argument prototype would still apply. */ 22462char clock_nanosleep (); 22463int 22464main (void) 22465{ 22466return clock_nanosleep (); 22467 ; 22468 return 0; 22469} 22470_ACEOF 22471if ac_fn_c_try_link "$LINENO" 22472then : 22473 ac_cv_lib_rt_clock_nanosleep=yes 22474else $as_nop 22475 ac_cv_lib_rt_clock_nanosleep=no 22476fi 22477rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22478 conftest$ac_exeext conftest.$ac_ext 22479LIBS=$ac_check_lib_save_LIBS 22480fi 22481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_nanosleep" >&5 22482printf "%s\n" "$ac_cv_lib_rt_clock_nanosleep" >&6; } 22483if test "x$ac_cv_lib_rt_clock_nanosleep" = xyes 22484then : 22485 22486 printf "%s\n" "#define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h 22487 22488 22489fi 22490 22491 22492fi 22493 22494done 22495fi 22496 22497 22498 for ac_func in nanosleep 22499do : 22500 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 22501if test "x$ac_cv_func_nanosleep" = xyes 22502then : 22503 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 22504 22505else $as_nop 22506 22507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 22508printf %s "checking for nanosleep in -lrt... " >&6; } 22509if test ${ac_cv_lib_rt_nanosleep+y} 22510then : 22511 printf %s "(cached) " >&6 22512else $as_nop 22513 ac_check_lib_save_LIBS=$LIBS 22514LIBS="-lrt $LIBS" 22515cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22516/* end confdefs.h. */ 22517 22518/* Override any GCC internal prototype to avoid an error. 22519 Use char because int might match the return type of a GCC 22520 builtin and then its argument prototype would still apply. */ 22521char nanosleep (); 22522int 22523main (void) 22524{ 22525return nanosleep (); 22526 ; 22527 return 0; 22528} 22529_ACEOF 22530if ac_fn_c_try_link "$LINENO" 22531then : 22532 ac_cv_lib_rt_nanosleep=yes 22533else $as_nop 22534 ac_cv_lib_rt_nanosleep=no 22535fi 22536rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22537 conftest$ac_exeext conftest.$ac_ext 22538LIBS=$ac_check_lib_save_LIBS 22539fi 22540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 22541printf "%s\n" "$ac_cv_lib_rt_nanosleep" >&6; } 22542if test "x$ac_cv_lib_rt_nanosleep" = xyes 22543then : 22544 22545 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h 22546 22547 22548fi 22549 22550 22551fi 22552 22553done 22554 22555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for major, minor, and makedev" >&5 22556printf %s "checking for major, minor, and makedev... " >&6; } 22557if test ${ac_cv_device_macros+y} 22558then : 22559 printf %s "(cached) " >&6 22560else $as_nop 22561 22562cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22563/* end confdefs.h. */ 22564 22565#if defined(MAJOR_IN_MKDEV) 22566#include <sys/mkdev.h> 22567#elif defined(MAJOR_IN_SYSMACROS) 22568#include <sys/types.h> 22569#include <sys/sysmacros.h> 22570#else 22571#include <sys/types.h> 22572#endif 22573 22574int 22575main (void) 22576{ 22577 22578 makedev(major(0),minor(0)); 22579 22580 ; 22581 return 0; 22582} 22583_ACEOF 22584if ac_fn_c_try_link "$LINENO" 22585then : 22586 ac_cv_device_macros=yes 22587else $as_nop 22588 ac_cv_device_macros=no 22589fi 22590rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22591 conftest$ac_exeext conftest.$ac_ext 22592 22593fi 22594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_device_macros" >&5 22595printf "%s\n" "$ac_cv_device_macros" >&6; } 22596if test "x$ac_cv_device_macros" = xyes 22597then : 22598 22599 22600printf "%s\n" "#define HAVE_DEVICE_MACROS 1" >>confdefs.h 22601 22602 22603fi 22604 22605 22606printf "%s\n" "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 22607 22608 22609# On OSF/1 V5.1, getaddrinfo is available, but a define 22610# for [no]getaddrinfo in netdb.h. 22611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 22612printf %s "checking for getaddrinfo... " >&6; } 22613if test ${ac_cv_func_getaddrinfo+y} 22614then : 22615 printf %s "(cached) " >&6 22616else $as_nop 22617 22618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22619/* end confdefs.h. */ 22620 22621#include <sys/types.h> 22622#include <sys/socket.h> 22623#include <netdb.h> 22624#include <stdio.h> 22625 22626int 22627main (void) 22628{ 22629getaddrinfo(NULL, NULL, NULL, NULL); 22630 ; 22631 return 0; 22632} 22633_ACEOF 22634if ac_fn_c_try_link "$LINENO" 22635then : 22636 ac_cv_func_getaddrinfo=yes 22637else $as_nop 22638 ac_cv_func_getaddrinfo=no 22639fi 22640rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22641 conftest$ac_exeext conftest.$ac_ext 22642 22643fi 22644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getaddrinfo" >&5 22645printf "%s\n" "$ac_cv_func_getaddrinfo" >&6; } 22646 22647if test "x$ac_cv_func_getaddrinfo" = xyes 22648then : 22649 22650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 22651printf %s "checking getaddrinfo bug... " >&6; } 22652if test ${ac_cv_buggy_getaddrinfo+y} 22653then : 22654 printf %s "(cached) " >&6 22655else $as_nop 22656 if test "$cross_compiling" = yes 22657then : 22658 22659if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then 22660 ac_cv_buggy_getaddrinfo="no" 22661elif test "${enable_ipv6+set}" = set; then 22662 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" 22663else 22664 ac_cv_buggy_getaddrinfo=yes 22665fi 22666else $as_nop 22667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22668/* end confdefs.h. */ 22669 22670#include <stdio.h> 22671#include <sys/types.h> 22672#include <netdb.h> 22673#include <string.h> 22674#include <sys/socket.h> 22675#include <netinet/in.h> 22676 22677int main(void) 22678{ 22679 int passive, gaierr, inet4 = 0, inet6 = 0; 22680 struct addrinfo hints, *ai, *aitop; 22681 char straddr[INET6_ADDRSTRLEN], strport[16]; 22682 22683 for (passive = 0; passive <= 1; passive++) { 22684 memset(&hints, 0, sizeof(hints)); 22685 hints.ai_family = AF_UNSPEC; 22686 hints.ai_flags = passive ? AI_PASSIVE : 0; 22687 hints.ai_socktype = SOCK_STREAM; 22688 hints.ai_protocol = IPPROTO_TCP; 22689 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 22690 (void)gai_strerror(gaierr); 22691 goto bad; 22692 } 22693 for (ai = aitop; ai; ai = ai->ai_next) { 22694 if (ai->ai_addr == NULL || 22695 ai->ai_addrlen == 0 || 22696 getnameinfo(ai->ai_addr, ai->ai_addrlen, 22697 straddr, sizeof(straddr), strport, sizeof(strport), 22698 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 22699 goto bad; 22700 } 22701 switch (ai->ai_family) { 22702 case AF_INET: 22703 if (strcmp(strport, "54321") != 0) { 22704 goto bad; 22705 } 22706 if (passive) { 22707 if (strcmp(straddr, "0.0.0.0") != 0) { 22708 goto bad; 22709 } 22710 } else { 22711 if (strcmp(straddr, "127.0.0.1") != 0) { 22712 goto bad; 22713 } 22714 } 22715 inet4++; 22716 break; 22717 case AF_INET6: 22718 if (strcmp(strport, "54321") != 0) { 22719 goto bad; 22720 } 22721 if (passive) { 22722 if (strcmp(straddr, "::") != 0) { 22723 goto bad; 22724 } 22725 } else { 22726 if (strcmp(straddr, "::1") != 0) { 22727 goto bad; 22728 } 22729 } 22730 inet6++; 22731 break; 22732 case AF_UNSPEC: 22733 goto bad; 22734 break; 22735 default: 22736 /* another family support? */ 22737 break; 22738 } 22739 } 22740 freeaddrinfo(aitop); 22741 aitop = NULL; 22742 } 22743 22744 if (!(inet4 == 0 || inet4 == 2)) 22745 goto bad; 22746 if (!(inet6 == 0 || inet6 == 2)) 22747 goto bad; 22748 22749 if (aitop) 22750 freeaddrinfo(aitop); 22751 return 0; 22752 22753 bad: 22754 if (aitop) 22755 freeaddrinfo(aitop); 22756 return 1; 22757} 22758 22759_ACEOF 22760if ac_fn_c_try_run "$LINENO" 22761then : 22762 ac_cv_buggy_getaddrinfo=no 22763else $as_nop 22764 ac_cv_buggy_getaddrinfo=yes 22765fi 22766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 22767 conftest.$ac_objext conftest.beam conftest.$ac_ext 22768fi 22769 22770fi 22771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 22772printf "%s\n" "$ac_cv_buggy_getaddrinfo" >&6; } 22773 22774 22775fi 22776 22777if test "$ac_cv_func_getaddrinfo" = no -o "$ac_cv_buggy_getaddrinfo" = yes 22778then 22779 if test "x$ipv6" = xyes 22780then : 22781 22782 as_fn_error $? "You must get working getaddrinfo() function or pass the \"--disable-ipv6\" option to configure." "$LINENO" 5 22783 22784fi 22785else 22786 22787printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h 22788 22789fi 22790 22791ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 22792if test "x$ac_cv_func_getnameinfo" = xyes 22793then : 22794 printf "%s\n" "#define HAVE_GETNAMEINFO 1" >>confdefs.h 22795 22796fi 22797 22798 22799# checks for structures 22800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 22801printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } 22802if test ${ac_cv_struct_tm+y} 22803then : 22804 printf %s "(cached) " >&6 22805else $as_nop 22806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22807/* end confdefs.h. */ 22808#include <sys/types.h> 22809#include <time.h> 22810 22811int 22812main (void) 22813{ 22814struct tm tm; 22815 int *p = &tm.tm_sec; 22816 return !p; 22817 ; 22818 return 0; 22819} 22820_ACEOF 22821if ac_fn_c_try_compile "$LINENO" 22822then : 22823 ac_cv_struct_tm=time.h 22824else $as_nop 22825 ac_cv_struct_tm=sys/time.h 22826fi 22827rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 22828fi 22829{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 22830printf "%s\n" "$ac_cv_struct_tm" >&6; } 22831if test $ac_cv_struct_tm = sys/time.h; then 22832 22833printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h 22834 22835fi 22836 22837ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 22838#include <$ac_cv_struct_tm> 22839 22840" 22841if test "x$ac_cv_member_struct_tm_tm_zone" = xyes 22842then : 22843 22844printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h 22845 22846 22847fi 22848 22849if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 22850 22851printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h 22852 22853else 22854 ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 22855" "$ac_c_undeclared_builtin_options" "CFLAGS" 22856if test "x$ac_cv_have_decl_tzname" = xyes 22857then : 22858 ac_have_decl=1 22859else $as_nop 22860 ac_have_decl=0 22861fi 22862printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h 22863 22864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 22865printf %s "checking for tzname... " >&6; } 22866if test ${ac_cv_var_tzname+y} 22867then : 22868 printf %s "(cached) " >&6 22869else $as_nop 22870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22871/* end confdefs.h. */ 22872#include <time.h> 22873#if !HAVE_DECL_TZNAME 22874extern char *tzname[]; 22875#endif 22876 22877int 22878main (void) 22879{ 22880return tzname[0][0]; 22881 ; 22882 return 0; 22883} 22884_ACEOF 22885if ac_fn_c_try_link "$LINENO" 22886then : 22887 ac_cv_var_tzname=yes 22888else $as_nop 22889 ac_cv_var_tzname=no 22890fi 22891rm -f core conftest.err conftest.$ac_objext conftest.beam \ 22892 conftest$ac_exeext conftest.$ac_ext 22893fi 22894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 22895printf "%s\n" "$ac_cv_var_tzname" >&6; } 22896 if test $ac_cv_var_tzname = yes; then 22897 22898printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h 22899 22900 fi 22901fi 22902 22903ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 22904if test "x$ac_cv_member_struct_stat_st_rdev" = xyes 22905then : 22906 22907printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h 22908 22909 22910fi 22911 22912ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 22913if test "x$ac_cv_member_struct_stat_st_blksize" = xyes 22914then : 22915 22916printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h 22917 22918 22919fi 22920 22921ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" 22922if test "x$ac_cv_member_struct_stat_st_flags" = xyes 22923then : 22924 22925printf "%s\n" "#define HAVE_STRUCT_STAT_ST_FLAGS 1" >>confdefs.h 22926 22927 22928fi 22929 22930ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" 22931if test "x$ac_cv_member_struct_stat_st_gen" = xyes 22932then : 22933 22934printf "%s\n" "#define HAVE_STRUCT_STAT_ST_GEN 1" >>confdefs.h 22935 22936 22937fi 22938 22939ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" 22940if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes 22941then : 22942 22943printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" >>confdefs.h 22944 22945 22946fi 22947 22948ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 22949if test "x$ac_cv_member_struct_stat_st_blocks" = xyes 22950then : 22951 22952printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h 22953 22954 22955fi 22956 22957ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " 22958 #include <sys/types.h> 22959 #include <pwd.h> 22960 22961" 22962if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes 22963then : 22964 22965printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_GECOS 1" >>confdefs.h 22966 22967 22968fi 22969ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " 22970 #include <sys/types.h> 22971 #include <pwd.h> 22972 22973" 22974if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes 22975then : 22976 22977printf "%s\n" "#define HAVE_STRUCT_PASSWD_PW_PASSWD 1" >>confdefs.h 22978 22979 22980fi 22981 22982# Issue #21085: In Cygwin, siginfo_t does not have si_band field. 22983ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> 22984" 22985if test "x$ac_cv_member_siginfo_t_si_band" = xyes 22986then : 22987 22988printf "%s\n" "#define HAVE_SIGINFO_T_SI_BAND 1" >>confdefs.h 22989 22990 22991fi 22992 22993 22994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 22995printf %s "checking for time.h that defines altzone... " >&6; } 22996if test ${ac_cv_header_time_altzone+y} 22997then : 22998 printf %s "(cached) " >&6 22999else $as_nop 23000 23001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23002/* end confdefs.h. */ 23003#include <time.h> 23004int 23005main (void) 23006{ 23007return altzone; 23008 ; 23009 return 0; 23010} 23011_ACEOF 23012if ac_fn_c_try_compile "$LINENO" 23013then : 23014 ac_cv_header_time_altzone=yes 23015else $as_nop 23016 ac_cv_header_time_altzone=no 23017fi 23018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23019 23020fi 23021{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 23022printf "%s\n" "$ac_cv_header_time_altzone" >&6; } 23023if test $ac_cv_header_time_altzone = yes; then 23024 23025printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h 23026 23027fi 23028 23029{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 23030printf %s "checking for addrinfo... " >&6; } 23031if test ${ac_cv_struct_addrinfo+y} 23032then : 23033 printf %s "(cached) " >&6 23034else $as_nop 23035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23036/* end confdefs.h. */ 23037#include <netdb.h> 23038int 23039main (void) 23040{ 23041struct addrinfo a 23042 ; 23043 return 0; 23044} 23045_ACEOF 23046if ac_fn_c_try_compile "$LINENO" 23047then : 23048 ac_cv_struct_addrinfo=yes 23049else $as_nop 23050 ac_cv_struct_addrinfo=no 23051fi 23052rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23053fi 23054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 23055printf "%s\n" "$ac_cv_struct_addrinfo" >&6; } 23056if test $ac_cv_struct_addrinfo = yes; then 23057 23058printf "%s\n" "#define HAVE_ADDRINFO 1" >>confdefs.h 23059 23060fi 23061 23062{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 23063printf %s "checking for sockaddr_storage... " >&6; } 23064if test ${ac_cv_struct_sockaddr_storage+y} 23065then : 23066 printf %s "(cached) " >&6 23067else $as_nop 23068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23069/* end confdefs.h. */ 23070 23071# include <sys/types.h> 23072# include <sys/socket.h> 23073int 23074main (void) 23075{ 23076struct sockaddr_storage s 23077 ; 23078 return 0; 23079} 23080_ACEOF 23081if ac_fn_c_try_compile "$LINENO" 23082then : 23083 ac_cv_struct_sockaddr_storage=yes 23084else $as_nop 23085 ac_cv_struct_sockaddr_storage=no 23086fi 23087rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23088fi 23089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 23090printf "%s\n" "$ac_cv_struct_sockaddr_storage" >&6; } 23091if test $ac_cv_struct_sockaddr_storage = yes; then 23092 23093printf "%s\n" "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h 23094 23095fi 23096 23097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 23098printf %s "checking for sockaddr_alg... " >&6; } 23099if test ${ac_cv_struct_sockaddr_alg+y} 23100then : 23101 printf %s "(cached) " >&6 23102else $as_nop 23103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23104/* end confdefs.h. */ 23105 23106# include <sys/types.h> 23107# include <sys/socket.h> 23108# include <linux/if_alg.h> 23109int 23110main (void) 23111{ 23112struct sockaddr_alg s 23113 ; 23114 return 0; 23115} 23116_ACEOF 23117if ac_fn_c_try_compile "$LINENO" 23118then : 23119 ac_cv_struct_sockaddr_alg=yes 23120else $as_nop 23121 ac_cv_struct_sockaddr_alg=no 23122fi 23123rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23124fi 23125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 23126printf "%s\n" "$ac_cv_struct_sockaddr_alg" >&6; } 23127if test $ac_cv_struct_sockaddr_alg = yes; then 23128 23129printf "%s\n" "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h 23130 23131fi 23132 23133# checks for compiler characteristics 23134 23135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 23136printf %s "checking for an ANSI C-conforming const... " >&6; } 23137if test ${ac_cv_c_const+y} 23138then : 23139 printf %s "(cached) " >&6 23140else $as_nop 23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23142/* end confdefs.h. */ 23143 23144int 23145main (void) 23146{ 23147 23148#ifndef __cplusplus 23149 /* Ultrix mips cc rejects this sort of thing. */ 23150 typedef int charset[2]; 23151 const charset cs = { 0, 0 }; 23152 /* SunOS 4.1.1 cc rejects this. */ 23153 char const *const *pcpcc; 23154 char **ppc; 23155 /* NEC SVR4.0.2 mips cc rejects this. */ 23156 struct point {int x, y;}; 23157 static struct point const zero = {0,0}; 23158 /* IBM XL C 1.02.0.0 rejects this. 23159 It does not let you subtract one const X* pointer from another in 23160 an arm of an if-expression whose if-part is not a constant 23161 expression */ 23162 const char *g = "string"; 23163 pcpcc = &g + (g ? g-g : 0); 23164 /* HPUX 7.0 cc rejects these. */ 23165 ++pcpcc; 23166 ppc = (char**) pcpcc; 23167 pcpcc = (char const *const *) ppc; 23168 { /* SCO 3.2v4 cc rejects this sort of thing. */ 23169 char tx; 23170 char *t = &tx; 23171 char const *s = 0 ? (char *) 0 : (char const *) 0; 23172 23173 *t++ = 0; 23174 if (s) return 0; 23175 } 23176 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 23177 int x[] = {25, 17}; 23178 const int *foo = &x[0]; 23179 ++foo; 23180 } 23181 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 23182 typedef const int *iptr; 23183 iptr p = 0; 23184 ++p; 23185 } 23186 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying 23187 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 23188 struct s { int j; const int *ap[3]; } bx; 23189 struct s *b = &bx; b->j = 5; 23190 } 23191 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 23192 const int foo = 10; 23193 if (!foo) return 0; 23194 } 23195 return !cs[0] && !zero.x; 23196#endif 23197 23198 ; 23199 return 0; 23200} 23201_ACEOF 23202if ac_fn_c_try_compile "$LINENO" 23203then : 23204 ac_cv_c_const=yes 23205else $as_nop 23206 ac_cv_c_const=no 23207fi 23208rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23209fi 23210{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 23211printf "%s\n" "$ac_cv_c_const" >&6; } 23212if test $ac_cv_c_const = no; then 23213 23214printf "%s\n" "#define const /**/" >>confdefs.h 23215 23216fi 23217 23218 23219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 23220printf %s "checking for working signed char... " >&6; } 23221if test ${ac_cv_working_signed_char_c+y} 23222then : 23223 printf %s "(cached) " >&6 23224else $as_nop 23225 23226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23227/* end confdefs.h. */ 23228 23229int 23230main (void) 23231{ 23232signed char c; 23233 ; 23234 return 0; 23235} 23236_ACEOF 23237if ac_fn_c_try_compile "$LINENO" 23238then : 23239 ac_cv_working_signed_char_c=yes 23240else $as_nop 23241 ac_cv_working_signed_char_c=no 23242fi 23243rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23244 23245fi 23246{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_signed_char_c" >&5 23247printf "%s\n" "$ac_cv_working_signed_char_c" >&6; } 23248if test "x$ac_cv_working_signed_char_c" = xno 23249then : 23250 23251 23252printf "%s\n" "#define signed /**/" >>confdefs.h 23253 23254 23255fi 23256 23257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 23258printf %s "checking for prototypes... " >&6; } 23259if test ${ac_cv_function_prototypes+y} 23260then : 23261 printf %s "(cached) " >&6 23262else $as_nop 23263 23264cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23265/* end confdefs.h. */ 23266int foo(int x) { return 0; } 23267int 23268main (void) 23269{ 23270return foo(10); 23271 ; 23272 return 0; 23273} 23274_ACEOF 23275if ac_fn_c_try_compile "$LINENO" 23276then : 23277 ac_cv_function_prototypes=yes 23278else $as_nop 23279 ac_cv_function_prototypes=no 23280fi 23281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23282 23283fi 23284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_function_prototypes" >&5 23285printf "%s\n" "$ac_cv_function_prototypes" >&6; } 23286if test "x$ac_cv_function_prototypes" = xyes 23287then : 23288 23289 23290printf "%s\n" "#define HAVE_PROTOTYPES 1" >>confdefs.h 23291 23292 23293fi 23294 23295 23296# check for socketpair 23297 23298 23299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 23300printf %s "checking for socketpair... " >&6; } 23301if test ${ac_cv_func_socketpair+y} 23302then : 23303 printf %s "(cached) " >&6 23304else $as_nop 23305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23306/* end confdefs.h. */ 23307 23308#include <sys/types.h> 23309#include <sys/socket.h> 23310 23311int 23312main (void) 23313{ 23314void *x=socketpair 23315 ; 23316 return 0; 23317} 23318_ACEOF 23319if ac_fn_c_try_compile "$LINENO" 23320then : 23321 ac_cv_func_socketpair=yes 23322else $as_nop 23323 ac_cv_func_socketpair=no 23324fi 23325rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23326 23327fi 23328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_socketpair" >&5 23329printf "%s\n" "$ac_cv_func_socketpair" >&6; } 23330 if test "x$ac_cv_func_socketpair" = xyes 23331then : 23332 23333printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h 23334 23335fi 23336 23337 23338 23339 23340# check if sockaddr has sa_len member 23341{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 23342printf %s "checking if sockaddr has sa_len member... " >&6; } 23343if test ${ac_cv_struct_sockaddr_sa_len+y} 23344then : 23345 printf %s "(cached) " >&6 23346else $as_nop 23347 23348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23349/* end confdefs.h. */ 23350#include <sys/types.h> 23351#include <sys/socket.h> 23352int 23353main (void) 23354{ 23355struct sockaddr x; 23356x.sa_len = 0; 23357 ; 23358 return 0; 23359} 23360_ACEOF 23361if ac_fn_c_try_compile "$LINENO" 23362then : 23363 ac_cv_struct_sockaddr_sa_len=yes 23364else $as_nop 23365 ac_cv_struct_sockaddr_sa_len=no 23366fi 23367rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23368 23369fi 23370{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5 23371printf "%s\n" "$ac_cv_struct_sockaddr_sa_len" >&6; } 23372if test "x$ac_cv_struct_sockaddr_sa_len" = xyes 23373then : 23374 23375 23376printf "%s\n" "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 23377 23378 23379fi 23380 23381# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( 23382 23383 23384ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 23385if test "x$ac_cv_func_gethostbyname_r" = xyes 23386then : 23387 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 23388 23389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 23390printf %s "checking gethostbyname_r with 6 args... " >&6; } 23391 OLD_CFLAGS=$CFLAGS 23392 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 23393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23394/* end confdefs.h. */ 23395 23396# include <netdb.h> 23397 23398int 23399main (void) 23400{ 23401 23402 char *name; 23403 struct hostent *he, *res; 23404 char buffer[2048]; 23405 int buflen = 2048; 23406 int h_errnop; 23407 23408 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) 23409 23410 ; 23411 return 0; 23412} 23413_ACEOF 23414if ac_fn_c_try_compile "$LINENO" 23415then : 23416 23417 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 23418 23419 23420printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 23421 23422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23423printf "%s\n" "yes" >&6; } 23424 23425else $as_nop 23426 23427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23428printf "%s\n" "no" >&6; } 23429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 23430printf %s "checking gethostbyname_r with 5 args... " >&6; } 23431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23432/* end confdefs.h. */ 23433 23434# include <netdb.h> 23435 23436int 23437main (void) 23438{ 23439 23440 char *name; 23441 struct hostent *he; 23442 char buffer[2048]; 23443 int buflen = 2048; 23444 int h_errnop; 23445 23446 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) 23447 23448 ; 23449 return 0; 23450} 23451_ACEOF 23452if ac_fn_c_try_compile "$LINENO" 23453then : 23454 23455 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 23456 23457 23458printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 23459 23460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23461printf "%s\n" "yes" >&6; } 23462 23463else $as_nop 23464 23465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23466printf "%s\n" "no" >&6; } 23467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 23468printf %s "checking gethostbyname_r with 3 args... " >&6; } 23469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23470/* end confdefs.h. */ 23471 23472# include <netdb.h> 23473 23474int 23475main (void) 23476{ 23477 23478 char *name; 23479 struct hostent *he; 23480 struct hostent_data data; 23481 23482 (void) gethostbyname_r(name, he, &data); 23483 23484 ; 23485 return 0; 23486} 23487_ACEOF 23488if ac_fn_c_try_compile "$LINENO" 23489then : 23490 23491 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 23492 23493 23494printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 23495 23496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 23497printf "%s\n" "yes" >&6; } 23498 23499else $as_nop 23500 23501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 23502printf "%s\n" "no" >&6; } 23503 23504fi 23505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23506 23507fi 23508rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23509 23510fi 23511rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 23512 CFLAGS=$OLD_CFLAGS 23513 23514else $as_nop 23515 23516 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 23517if test "x$ac_cv_func_gethostbyname" = xyes 23518then : 23519 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h 23520 23521fi 23522 23523 23524fi 23525 23526 23527 23528 23529 23530 23531 23532# checks for system services 23533# (none yet) 23534 23535# Linux requires this for correct f.p. operations 23536ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" 23537if test "x$ac_cv_func___fpu_control" = xyes 23538then : 23539 23540else $as_nop 23541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 23542printf %s "checking for __fpu_control in -lieee... " >&6; } 23543if test ${ac_cv_lib_ieee___fpu_control+y} 23544then : 23545 printf %s "(cached) " >&6 23546else $as_nop 23547 ac_check_lib_save_LIBS=$LIBS 23548LIBS="-lieee $LIBS" 23549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23550/* end confdefs.h. */ 23551 23552/* Override any GCC internal prototype to avoid an error. 23553 Use char because int might match the return type of a GCC 23554 builtin and then its argument prototype would still apply. */ 23555char __fpu_control (); 23556int 23557main (void) 23558{ 23559return __fpu_control (); 23560 ; 23561 return 0; 23562} 23563_ACEOF 23564if ac_fn_c_try_link "$LINENO" 23565then : 23566 ac_cv_lib_ieee___fpu_control=yes 23567else $as_nop 23568 ac_cv_lib_ieee___fpu_control=no 23569fi 23570rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23571 conftest$ac_exeext conftest.$ac_ext 23572LIBS=$ac_check_lib_save_LIBS 23573fi 23574{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 23575printf "%s\n" "$ac_cv_lib_ieee___fpu_control" >&6; } 23576if test "x$ac_cv_lib_ieee___fpu_control" = xyes 23577then : 23578 printf "%s\n" "#define HAVE_LIBIEEE 1" >>confdefs.h 23579 23580 LIBS="-lieee $LIBS" 23581 23582fi 23583 23584 23585fi 23586 23587 23588# check for --with-libm=... 23589 23590case $ac_sys_system in 23591Darwin) ;; 23592*) LIBM=-lm 23593esac 23594{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 23595printf %s "checking for --with-libm=STRING... " >&6; } 23596 23597# Check whether --with-libm was given. 23598if test ${with_libm+y} 23599then : 23600 withval=$with_libm; 23601if test "$withval" = no 23602then LIBM= 23603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 23604printf "%s\n" "force LIBM empty" >&6; } 23605elif test "$withval" != yes 23606then LIBM=$withval 23607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 23608printf "%s\n" "set LIBM=\"$withval\"" >&6; } 23609else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 23610fi 23611else $as_nop 23612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 23613printf "%s\n" "default LIBM=\"$LIBM\"" >&6; } 23614fi 23615 23616 23617# check for --with-libc=... 23618 23619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 23620printf %s "checking for --with-libc=STRING... " >&6; } 23621 23622# Check whether --with-libc was given. 23623if test ${with_libc+y} 23624then : 23625 withval=$with_libc; 23626if test "$withval" = no 23627then LIBC= 23628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 23629printf "%s\n" "force LIBC empty" >&6; } 23630elif test "$withval" != yes 23631then LIBC=$withval 23632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 23633printf "%s\n" "set LIBC=\"$withval\"" >&6; } 23634else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 23635fi 23636else $as_nop 23637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 23638printf "%s\n" "default LIBC=\"$LIBC\"" >&6; } 23639fi 23640 23641 23642# ************************************** 23643# * Check for gcc x64 inline assembler * 23644# ************************************** 23645 23646 23647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 23648printf %s "checking for x64 gcc inline assembler... " >&6; } 23649if test ${ac_cv_gcc_asm_for_x64+y} 23650then : 23651 printf %s "(cached) " >&6 23652else $as_nop 23653 23654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23655/* end confdefs.h. */ 23656 23657int 23658main (void) 23659{ 23660 23661 __asm__ __volatile__ ("movq %rcx, %rax"); 23662 23663 ; 23664 return 0; 23665} 23666_ACEOF 23667if ac_fn_c_try_link "$LINENO" 23668then : 23669 ac_cv_gcc_asm_for_x64=yes 23670else $as_nop 23671 ac_cv_gcc_asm_for_x64=no 23672fi 23673rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23674 conftest$ac_exeext conftest.$ac_ext 23675 23676fi 23677{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x64" >&5 23678printf "%s\n" "$ac_cv_gcc_asm_for_x64" >&6; } 23679 23680if test "x$ac_cv_gcc_asm_for_x64" = xyes 23681then : 23682 23683 23684printf "%s\n" "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h 23685 23686 23687fi 23688 23689# ************************************************** 23690# * Check for various properties of floating point * 23691# ************************************************** 23692 23693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5 23694printf %s "checking whether float word ordering is bigendian... " >&6; } 23695if test ${ax_cv_c_float_words_bigendian+y} 23696then : 23697 printf %s "(cached) " >&6 23698else $as_nop 23699 23700 23701ax_cv_c_float_words_bigendian=unknown 23702cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23703/* end confdefs.h. */ 23704 23705 23706#include <stdlib.h> 23707 23708static double m[] = {9.090423496703681e+223, 0.0}; 23709 23710int main (int argc, char *argv[]) 23711{ 23712 m[atoi (argv[1])] += atof (argv[2]); 23713 return m[atoi (argv[3])] > 0.0; 23714} 23715 23716 23717_ACEOF 23718if ac_fn_c_try_link "$LINENO" 23719then : 23720 23721 23722if grep noonsees conftest$EXEEXT >/dev/null ; then 23723 ax_cv_c_float_words_bigendian=yes 23724fi 23725if grep seesnoon conftest$EXEEXT >/dev/null ; then 23726 if test "$ax_cv_c_float_words_bigendian" = unknown; then 23727 ax_cv_c_float_words_bigendian=no 23728 else 23729 ax_cv_c_float_words_bigendian=unknown 23730 fi 23731fi 23732 23733 23734fi 23735rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23736 conftest$ac_exeext conftest.$ac_ext 23737fi 23738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5 23739printf "%s\n" "$ax_cv_c_float_words_bigendian" >&6; } 23740 23741case $ax_cv_c_float_words_bigendian in 23742 yes) 23743 23744printf "%s\n" "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h 23745 ;; 23746 no) 23747 23748printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h 23749 ;; 23750 *) 23751 case $host_cpu in #( 23752 *arm*) : 23753 # Some ARM platforms use a mixed-endian representation for 23754 # doubles. While Python doesn't currently have full support 23755 # for these platforms (see e.g., issue 1762561), we can at 23756 # least make sure that float <-> string conversions work. 23757 # FLOAT_WORDS_BIGENDIAN doesn't actually detect this case, 23758 # but if it's not big or little, then it must be this? 23759 23760printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h 23761 ;; #( 23762 wasm*) : 23763 23764printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h 23765 ;; #( 23766 *) : 23767 ;; 23768esac ;; 23769esac 23770 23771 23772 23773# The short float repr introduced in Python 3.1 requires the 23774# correctly-rounded string <-> double conversion functions from 23775# Python/dtoa.c, which in turn require that the FPU uses 53-bit 23776# rounding; this is a problem on x86, where the x87 FPU has a default 23777# rounding precision of 64 bits. For gcc/x86, we can fix this by 23778# using inline assembler to get and set the x87 FPU control word. 23779 23780# This inline assembler syntax may also work for suncc and icc, 23781# so we try it on all platforms. 23782 23783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 23784printf %s "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } 23785if test ${ac_cv_gcc_asm_for_x87+y} 23786then : 23787 printf %s "(cached) " >&6 23788else $as_nop 23789 23790cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23791/* end confdefs.h. */ 23792 23793int 23794main (void) 23795{ 23796 23797 unsigned short cw; 23798 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); 23799 __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); 23800 23801 ; 23802 return 0; 23803} 23804_ACEOF 23805if ac_fn_c_try_link "$LINENO" 23806then : 23807 ac_cv_gcc_asm_for_x87=yes 23808else $as_nop 23809 ac_cv_gcc_asm_for_x87=no 23810fi 23811rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23812 conftest$ac_exeext conftest.$ac_ext 23813 23814fi 23815{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_x87" >&5 23816printf "%s\n" "$ac_cv_gcc_asm_for_x87" >&6; } 23817if test "x$ac_cv_gcc_asm_for_x87" = xyes 23818then : 23819 23820 23821printf "%s\n" "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h 23822 23823 23824fi 23825 23826{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 23827printf %s "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } 23828if test ${ac_cv_gcc_asm_for_mc68881+y} 23829then : 23830 printf %s "(cached) " >&6 23831else $as_nop 23832 23833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23834/* end confdefs.h. */ 23835 23836int 23837main (void) 23838{ 23839 23840 unsigned int fpcr; 23841 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); 23842 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); 23843 23844 ; 23845 return 0; 23846} 23847_ACEOF 23848if ac_fn_c_try_link "$LINENO" 23849then : 23850 ac_cv_gcc_asm_for_mc68881=yes 23851else $as_nop 23852 ac_cv_gcc_asm_for_mc68881=no 23853fi 23854rm -f core conftest.err conftest.$ac_objext conftest.beam \ 23855 conftest$ac_exeext conftest.$ac_ext 23856 23857fi 23858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_asm_for_mc68881" >&5 23859printf "%s\n" "$ac_cv_gcc_asm_for_mc68881" >&6; } 23860if test "x$ac_cv_gcc_asm_for_mc68881" = xyes 23861then : 23862 23863 23864printf "%s\n" "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h 23865 23866 23867fi 23868 23869# Detect whether system arithmetic is subject to x87-style double 23870# rounding issues. The result of this test has little meaning on non 23871# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding 23872# mode is round-to-nearest and double rounding issues are present, and 23873# 0 otherwise. See https://github.com/python/cpython/issues/47186 for more info. 23874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 23875printf %s "checking for x87-style double rounding... " >&6; } 23876if test ${ac_cv_x87_double_rounding+y} 23877then : 23878 printf %s "(cached) " >&6 23879else $as_nop 23880 23881# $BASECFLAGS may affect the result 23882ac_save_cc="$CC" 23883CC="$CC $BASECFLAGS" 23884if test "$cross_compiling" = yes 23885then : 23886 ac_cv_x87_double_rounding=no 23887else $as_nop 23888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23889/* end confdefs.h. */ 23890 23891#include <stdlib.h> 23892#include <math.h> 23893int main(void) { 23894 volatile double x, y, z; 23895 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ 23896 x = 0.99999999999999989; /* 1-2**-53 */ 23897 y = 1./x; 23898 if (y != 1.) 23899 exit(0); 23900 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ 23901 x = 1e16; 23902 y = 2.99999; 23903 z = x + y; 23904 if (z != 1e16+4.) 23905 exit(0); 23906 /* both tests show evidence of double rounding */ 23907 exit(1); 23908} 23909 23910_ACEOF 23911if ac_fn_c_try_run "$LINENO" 23912then : 23913 ac_cv_x87_double_rounding=no 23914else $as_nop 23915 ac_cv_x87_double_rounding=yes 23916fi 23917rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23918 conftest.$ac_objext conftest.beam conftest.$ac_ext 23919fi 23920 23921CC="$ac_save_cc" 23922 23923fi 23924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 23925printf "%s\n" "$ac_cv_x87_double_rounding" >&6; } 23926 23927if test "x$ac_cv_x87_double_rounding" = xyes 23928then : 23929 23930 23931printf "%s\n" "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h 23932 23933 23934fi 23935 23936# ************************************ 23937# * Check for mathematical functions * 23938# ************************************ 23939 23940LIBS_SAVE=$LIBS 23941LIBS="$LIBS $LIBM" 23942 23943 23944 for ac_func in acosh asinh atanh erf erfc expm1 log1p log2 23945do : 23946 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 23947ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 23948if eval test \"x\$"$as_ac_var"\" = x"yes" 23949then : 23950 cat >>confdefs.h <<_ACEOF 23951#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 23952_ACEOF 23953 23954else $as_nop 23955 as_fn_error $? "Python requires C99 compatible libm" "$LINENO" 5 23956 23957fi 23958 23959done 23960LIBS=$LIBS_SAVE 23961 23962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 23963printf %s "checking whether POSIX semaphores are enabled... " >&6; } 23964if test ${ac_cv_posix_semaphores_enabled+y} 23965then : 23966 printf %s "(cached) " >&6 23967else $as_nop 23968 if test "$cross_compiling" = yes 23969then : 23970 ac_cv_posix_semaphores_enabled=yes 23971else $as_nop 23972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23973/* end confdefs.h. */ 23974 23975 23976 #include <unistd.h> 23977 #include <fcntl.h> 23978 #include <stdio.h> 23979 #include <semaphore.h> 23980 #include <sys/stat.h> 23981 23982 int main(void) { 23983 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); 23984 if (a == SEM_FAILED) { 23985 perror("sem_open"); 23986 return 1; 23987 } 23988 sem_close(a); 23989 sem_unlink("/autoconf"); 23990 return 0; 23991 } 23992 23993 23994_ACEOF 23995if ac_fn_c_try_run "$LINENO" 23996then : 23997 ac_cv_posix_semaphores_enabled=yes 23998else $as_nop 23999 ac_cv_posix_semaphores_enabled=no 24000fi 24001rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24002 conftest.$ac_objext conftest.beam conftest.$ac_ext 24003fi 24004 24005 24006fi 24007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 24008printf "%s\n" "$ac_cv_posix_semaphores_enabled" >&6; } 24009if test "x$ac_cv_posix_semaphores_enabled" = xno 24010then : 24011 24012 24013printf "%s\n" "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h 24014 24015 24016fi 24017 24018{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 24019printf %s "checking for broken sem_getvalue... " >&6; } 24020if test ${ac_cv_broken_sem_getvalue+y} 24021then : 24022 printf %s "(cached) " >&6 24023else $as_nop 24024 if test "$cross_compiling" = yes 24025then : 24026 ac_cv_broken_sem_getvalue=yes 24027else $as_nop 24028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24029/* end confdefs.h. */ 24030 24031 24032 #include <unistd.h> 24033 #include <fcntl.h> 24034 #include <stdio.h> 24035 #include <semaphore.h> 24036 #include <sys/stat.h> 24037 24038 int main(void){ 24039 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); 24040 int count; 24041 int res; 24042 if(a==SEM_FAILED){ 24043 perror("sem_open"); 24044 return 1; 24045 24046 } 24047 res = sem_getvalue(a, &count); 24048 sem_close(a); 24049 sem_unlink("/autocftw"); 24050 return res==-1 ? 1 : 0; 24051 } 24052 24053 24054_ACEOF 24055if ac_fn_c_try_run "$LINENO" 24056then : 24057 ac_cv_broken_sem_getvalue=no 24058else $as_nop 24059 ac_cv_broken_sem_getvalue=yes 24060fi 24061rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24062 conftest.$ac_objext conftest.beam conftest.$ac_ext 24063fi 24064 24065 24066fi 24067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 24068printf "%s\n" "$ac_cv_broken_sem_getvalue" >&6; } 24069if test "x$ac_cv_broken_sem_getvalue" = xyes 24070then : 24071 24072 24073printf "%s\n" "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h 24074 24075 24076fi 24077 24078ac_fn_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> 24079" "$ac_c_undeclared_builtin_options" "CFLAGS" 24080if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes 24081then : 24082 ac_have_decl=1 24083else $as_nop 24084 ac_have_decl=0 24085fi 24086printf "%s\n" "#define HAVE_DECL_RTLD_LAZY $ac_have_decl" >>confdefs.h 24087ac_fn_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> 24088" "$ac_c_undeclared_builtin_options" "CFLAGS" 24089if test "x$ac_cv_have_decl_RTLD_NOW" = xyes 24090then : 24091 ac_have_decl=1 24092else $as_nop 24093 ac_have_decl=0 24094fi 24095printf "%s\n" "#define HAVE_DECL_RTLD_NOW $ac_have_decl" >>confdefs.h 24096ac_fn_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> 24097" "$ac_c_undeclared_builtin_options" "CFLAGS" 24098if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes 24099then : 24100 ac_have_decl=1 24101else $as_nop 24102 ac_have_decl=0 24103fi 24104printf "%s\n" "#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl" >>confdefs.h 24105ac_fn_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> 24106" "$ac_c_undeclared_builtin_options" "CFLAGS" 24107if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes 24108then : 24109 ac_have_decl=1 24110else $as_nop 24111 ac_have_decl=0 24112fi 24113printf "%s\n" "#define HAVE_DECL_RTLD_LOCAL $ac_have_decl" >>confdefs.h 24114ac_fn_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> 24115" "$ac_c_undeclared_builtin_options" "CFLAGS" 24116if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes 24117then : 24118 ac_have_decl=1 24119else $as_nop 24120 ac_have_decl=0 24121fi 24122printf "%s\n" "#define HAVE_DECL_RTLD_NODELETE $ac_have_decl" >>confdefs.h 24123ac_fn_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> 24124" "$ac_c_undeclared_builtin_options" "CFLAGS" 24125if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes 24126then : 24127 ac_have_decl=1 24128else $as_nop 24129 ac_have_decl=0 24130fi 24131printf "%s\n" "#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl" >>confdefs.h 24132ac_fn_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> 24133" "$ac_c_undeclared_builtin_options" "CFLAGS" 24134if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes 24135then : 24136 ac_have_decl=1 24137else $as_nop 24138 ac_have_decl=0 24139fi 24140printf "%s\n" "#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl" >>confdefs.h 24141ac_fn_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> 24142" "$ac_c_undeclared_builtin_options" "CFLAGS" 24143if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes 24144then : 24145 ac_have_decl=1 24146else $as_nop 24147 ac_have_decl=0 24148fi 24149printf "%s\n" "#define HAVE_DECL_RTLD_MEMBER $ac_have_decl" >>confdefs.h 24150 24151 24152# determine what size digit to use for Python's longs 24153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 24154printf %s "checking digit size for Python's longs... " >&6; } 24155# Check whether --enable-big-digits was given. 24156if test ${enable_big_digits+y} 24157then : 24158 enableval=$enable_big_digits; case $enable_big_digits in 24159yes) 24160 enable_big_digits=30 ;; 24161no) 24162 enable_big_digits=15 ;; 2416315|30) 24164 ;; 24165*) 24166 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; 24167esac 24168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 24169printf "%s\n" "$enable_big_digits" >&6; } 24170 24171printf "%s\n" "#define PYLONG_BITS_IN_DIGIT $enable_big_digits" >>confdefs.h 24172 24173 24174else $as_nop 24175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 24176printf "%s\n" "no value specified" >&6; } 24177fi 24178 24179 24180# check for wchar.h 24181ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 24182if test "x$ac_cv_header_wchar_h" = xyes 24183then : 24184 24185 24186printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h 24187 24188 wchar_h="yes" 24189 24190else $as_nop 24191 wchar_h="no" 24192 24193fi 24194 24195 24196# determine wchar_t size 24197if test "$wchar_h" = yes 24198then 24199 # The cast to long int works around a bug in the HP C Compiler 24200# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 24201# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 24202# This bug is HP SR number 8606223364. 24203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 24204printf %s "checking size of wchar_t... " >&6; } 24205if test ${ac_cv_sizeof_wchar_t+y} 24206then : 24207 printf %s "(cached) " >&6 24208else $as_nop 24209 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> 24210" 24211then : 24212 24213else $as_nop 24214 if test "$ac_cv_type_wchar_t" = yes; then 24215 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24216printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 24217as_fn_error 77 "cannot compute sizeof (wchar_t) 24218See \`config.log' for more details" "$LINENO" 5; } 24219 else 24220 ac_cv_sizeof_wchar_t=0 24221 fi 24222fi 24223 24224fi 24225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 24226printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; } 24227 24228 24229 24230printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h 24231 24232 24233fi 24234 24235# check whether wchar_t is signed or not 24236if test "$wchar_h" = yes 24237then 24238 # check whether wchar_t is signed or not 24239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 24240printf %s "checking whether wchar_t is signed... " >&6; } 24241if test ${ac_cv_wchar_t_signed+y} 24242then : 24243 printf %s "(cached) " >&6 24244else $as_nop 24245 24246 if test "$cross_compiling" = yes 24247then : 24248 ac_cv_wchar_t_signed=yes 24249else $as_nop 24250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24251/* end confdefs.h. */ 24252 24253 #include <wchar.h> 24254 int main() 24255 { 24256 /* Success: exit code 0 */ 24257 return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); 24258 } 24259 24260_ACEOF 24261if ac_fn_c_try_run "$LINENO" 24262then : 24263 ac_cv_wchar_t_signed=yes 24264else $as_nop 24265 ac_cv_wchar_t_signed=no 24266fi 24267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24268 conftest.$ac_objext conftest.beam conftest.$ac_ext 24269fi 24270 24271fi 24272{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 24273printf "%s\n" "$ac_cv_wchar_t_signed" >&6; } 24274fi 24275 24276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 24277printf %s "checking whether wchar_t is usable... " >&6; } 24278# wchar_t is only usable if it maps to an unsigned type 24279if test "$ac_cv_sizeof_wchar_t" -ge 2 \ 24280 -a "$ac_cv_wchar_t_signed" = "no" 24281then 24282 24283printf "%s\n" "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h 24284 24285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24286printf "%s\n" "yes" >&6; } 24287else 24288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24289printf "%s\n" "no" >&6; } 24290fi 24291 24292case $ac_sys_system/$ac_sys_release in 24293SunOS/*) 24294 if test -f /etc/os-release; then 24295 OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release) 24296 if test "x$OS_NAME" = "xOracle Solaris"; then 24297 # bpo-43667: In Oracle Solaris, the internal form of wchar_t in 24298 # non-Unicode locales is not Unicode and hence cannot be used directly. 24299 # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html 24300 24301printf "%s\n" "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h 24302 24303 fi 24304 fi 24305 ;; 24306esac 24307 24308# check for endianness 24309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 24310printf %s "checking whether byte ordering is bigendian... " >&6; } 24311if test ${ac_cv_c_bigendian+y} 24312then : 24313 printf %s "(cached) " >&6 24314else $as_nop 24315 ac_cv_c_bigendian=unknown 24316 # See if we're dealing with a universal compiler. 24317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24318/* end confdefs.h. */ 24319#ifndef __APPLE_CC__ 24320 not a universal capable compiler 24321 #endif 24322 typedef int dummy; 24323 24324_ACEOF 24325if ac_fn_c_try_compile "$LINENO" 24326then : 24327 24328 # Check for potential -arch flags. It is not universal unless 24329 # there are at least two -arch flags with different values. 24330 ac_arch= 24331 ac_prev= 24332 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 24333 if test -n "$ac_prev"; then 24334 case $ac_word in 24335 i?86 | x86_64 | ppc | ppc64) 24336 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 24337 ac_arch=$ac_word 24338 else 24339 ac_cv_c_bigendian=universal 24340 break 24341 fi 24342 ;; 24343 esac 24344 ac_prev= 24345 elif test "x$ac_word" = "x-arch"; then 24346 ac_prev=arch 24347 fi 24348 done 24349fi 24350rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24351 if test $ac_cv_c_bigendian = unknown; then 24352 # See if sys/param.h defines the BYTE_ORDER macro. 24353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24354/* end confdefs.h. */ 24355#include <sys/types.h> 24356 #include <sys/param.h> 24357 24358int 24359main (void) 24360{ 24361#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 24362 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 24363 && LITTLE_ENDIAN) 24364 bogus endian macros 24365 #endif 24366 24367 ; 24368 return 0; 24369} 24370_ACEOF 24371if ac_fn_c_try_compile "$LINENO" 24372then : 24373 # It does; now see whether it defined to BIG_ENDIAN or not. 24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24375/* end confdefs.h. */ 24376#include <sys/types.h> 24377 #include <sys/param.h> 24378 24379int 24380main (void) 24381{ 24382#if BYTE_ORDER != BIG_ENDIAN 24383 not big endian 24384 #endif 24385 24386 ; 24387 return 0; 24388} 24389_ACEOF 24390if ac_fn_c_try_compile "$LINENO" 24391then : 24392 ac_cv_c_bigendian=yes 24393else $as_nop 24394 ac_cv_c_bigendian=no 24395fi 24396rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24397fi 24398rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24399 fi 24400 if test $ac_cv_c_bigendian = unknown; then 24401 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 24402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24403/* end confdefs.h. */ 24404#include <limits.h> 24405 24406int 24407main (void) 24408{ 24409#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 24410 bogus endian macros 24411 #endif 24412 24413 ; 24414 return 0; 24415} 24416_ACEOF 24417if ac_fn_c_try_compile "$LINENO" 24418then : 24419 # It does; now see whether it defined to _BIG_ENDIAN or not. 24420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24421/* end confdefs.h. */ 24422#include <limits.h> 24423 24424int 24425main (void) 24426{ 24427#ifndef _BIG_ENDIAN 24428 not big endian 24429 #endif 24430 24431 ; 24432 return 0; 24433} 24434_ACEOF 24435if ac_fn_c_try_compile "$LINENO" 24436then : 24437 ac_cv_c_bigendian=yes 24438else $as_nop 24439 ac_cv_c_bigendian=no 24440fi 24441rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24442fi 24443rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24444 fi 24445 if test $ac_cv_c_bigendian = unknown; then 24446 # Compile a test program. 24447 if test "$cross_compiling" = yes 24448then : 24449 # Try to guess by grepping values from an object file. 24450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24451/* end confdefs.h. */ 24452unsigned short int ascii_mm[] = 24453 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 24454 unsigned short int ascii_ii[] = 24455 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 24456 int use_ascii (int i) { 24457 return ascii_mm[i] + ascii_ii[i]; 24458 } 24459 unsigned short int ebcdic_ii[] = 24460 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 24461 unsigned short int ebcdic_mm[] = 24462 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 24463 int use_ebcdic (int i) { 24464 return ebcdic_mm[i] + ebcdic_ii[i]; 24465 } 24466 extern int foo; 24467 24468int 24469main (void) 24470{ 24471return use_ascii (foo) == use_ebcdic (foo); 24472 ; 24473 return 0; 24474} 24475_ACEOF 24476if ac_fn_c_try_compile "$LINENO" 24477then : 24478 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 24479 ac_cv_c_bigendian=yes 24480 fi 24481 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 24482 if test "$ac_cv_c_bigendian" = unknown; then 24483 ac_cv_c_bigendian=no 24484 else 24485 # finding both strings is unlikely to happen, but who knows? 24486 ac_cv_c_bigendian=unknown 24487 fi 24488 fi 24489fi 24490rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 24491else $as_nop 24492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24493/* end confdefs.h. */ 24494$ac_includes_default 24495int 24496main (void) 24497{ 24498 24499 /* Are we little or big endian? From Harbison&Steele. */ 24500 union 24501 { 24502 long int l; 24503 char c[sizeof (long int)]; 24504 } u; 24505 u.l = 1; 24506 return u.c[sizeof (long int) - 1] == 1; 24507 24508 ; 24509 return 0; 24510} 24511_ACEOF 24512if ac_fn_c_try_run "$LINENO" 24513then : 24514 ac_cv_c_bigendian=no 24515else $as_nop 24516 ac_cv_c_bigendian=yes 24517fi 24518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24519 conftest.$ac_objext conftest.beam conftest.$ac_ext 24520fi 24521 24522 fi 24523fi 24524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 24525printf "%s\n" "$ac_cv_c_bigendian" >&6; } 24526 case $ac_cv_c_bigendian in #( 24527 yes) 24528 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h 24529;; #( 24530 no) 24531 ;; #( 24532 universal) 24533 24534printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 24535 24536 ;; #( 24537 *) 24538 as_fn_error $? "unknown endianness 24539 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 24540 esac 24541 24542 24543# ABI version string for Python extension modules. This appears between the 24544# periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated 24545# from the following attributes which affect the ABI of this Python build (in 24546# this order): 24547# 24548# * The Python implementation (always 'cpython-' for us) 24549# * The major and minor version numbers 24550# * --disable-gil (adds a 't') 24551# * --with-pydebug (adds a 'd') 24552# 24553# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, 24554# would get a shared library ABI version tag of 'cpython-32dmu' and shared 24555# libraries would be named 'foo.cpython-32dmu.so'. 24556# 24557# In Python 3.2 and older, --with-wide-unicode added a 'u' flag. 24558# In Python 3.7 and older, --with-pymalloc added a 'm' flag. 24559 24560{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 24561printf %s "checking ABIFLAGS... " >&6; } 24562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 24563printf "%s\n" "$ABIFLAGS" >&6; } 24564{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 24565printf %s "checking SOABI... " >&6; } 24566SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${SOABI_PLATFORM:+-$SOABI_PLATFORM} 24567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 24568printf "%s\n" "$SOABI" >&6; } 24569 24570# Release build, debug build (Py_DEBUG), and trace refs build (Py_TRACE_REFS) 24571# are ABI compatible 24572if test "$Py_DEBUG" = 'true'; then 24573 # Similar to SOABI but remove "d" flag from ABIFLAGS 24574 24575 ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${SOABI_PLATFORM:+-$SOABI_PLATFORM} 24576 24577printf "%s\n" "#define ALT_SOABI \"${ALT_SOABI}\"" >>confdefs.h 24578 24579fi 24580 24581 24582EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX} 24583 24584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 24585printf %s "checking LDVERSION... " >&6; } 24586LDVERSION='$(VERSION)$(ABIFLAGS)' 24587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 24588printf "%s\n" "$LDVERSION" >&6; } 24589 24590# Configure the flags and dependencies used when compiling shared modules. 24591# Do not rename LIBPYTHON - it's accessed via sysconfig by package build 24592# systems (e.g. Meson) to decide whether to link extension modules against 24593# libpython. 24594 24595 24596MODULE_DEPS_SHARED='$(MODULE_DEPS_STATIC) $(EXPORTSYMS)' 24597LIBPYTHON='' 24598 24599# On Android and Cygwin the shared libraries must be linked with libpython. 24600if test "$PY_ENABLE_SHARED" = "1" && ( test -n "$ANDROID_API_LEVEL" || test "$MACHDEP" = "cygwin"); then 24601 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(LDLIBRARY)" 24602 LIBPYTHON="\$(BLDLIBRARY)" 24603fi 24604 24605# On iOS the shared libraries must be linked with the Python framework 24606if test "$ac_sys_system" = "iOS"; then 24607 MODULE_DEPS_SHARED="$MODULE_DEPS_SHARED \$(PYTHONFRAMEWORKDIR)/\$(PYTHONFRAMEWORK)" 24608fi 24609 24610 24611 24612BINLIBDEST='$(LIBDIR)/python$(VERSION)$(ABI_THREAD)' 24613 24614 24615# Check for --with-platlibdir 24616# /usr/$PLATLIBDIR/python$(VERSION)$(ABI_THREAD) 24617 24618PLATLIBDIR="lib" 24619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5 24620printf %s "checking for --with-platlibdir... " >&6; } 24621 24622# Check whether --with-platlibdir was given. 24623if test ${with_platlibdir+y} 24624then : 24625 withval=$with_platlibdir; 24626# ignore 3 options: 24627# --with-platlibdir 24628# --with-platlibdir= 24629# --without-platlibdir 24630if test -n "$withval" -a "$withval" != yes -a "$withval" != no 24631then 24632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24633printf "%s\n" "yes" >&6; } 24634 PLATLIBDIR="$withval" 24635 BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)$(ABI_THREAD)' 24636else 24637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24638printf "%s\n" "no" >&6; } 24639fi 24640else $as_nop 24641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24642printf "%s\n" "no" >&6; } 24643fi 24644 24645 24646 24647 24648if test x$PLATFORM_TRIPLET = x; then 24649 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}" 24650else 24651 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}${ABI_THREAD}/config-${LDVERSION}-${PLATFORM_TRIPLET}" 24652fi 24653 24654 24655# Check for --with-wheel-pkg-dir=PATH 24656 24657WHEEL_PKG_DIR="" 24658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-wheel-pkg-dir" >&5 24659printf %s "checking for --with-wheel-pkg-dir... " >&6; } 24660 24661# Check whether --with-wheel-pkg-dir was given. 24662if test ${with_wheel_pkg_dir+y} 24663then : 24664 withval=$with_wheel_pkg_dir; 24665if test -n "$withval"; then 24666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24667printf "%s\n" "yes" >&6; } 24668 WHEEL_PKG_DIR="$withval" 24669else 24670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24671printf "%s\n" "no" >&6; } 24672fi 24673else $as_nop 24674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24675printf "%s\n" "no" >&6; } 24676fi 24677 24678 24679# Check whether right shifting a negative integer extends the sign bit 24680# or fills with zeros (like the Cray J90, according to Tim Peters). 24681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 24682printf %s "checking whether right shift extends the sign bit... " >&6; } 24683if test ${ac_cv_rshift_extends_sign+y} 24684then : 24685 printf %s "(cached) " >&6 24686else $as_nop 24687 24688if test "$cross_compiling" = yes 24689then : 24690 ac_cv_rshift_extends_sign=yes 24691else $as_nop 24692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24693/* end confdefs.h. */ 24694 24695int main(void) 24696{ 24697 return (((-1)>>3 == -1) ? 0 : 1); 24698} 24699 24700_ACEOF 24701if ac_fn_c_try_run "$LINENO" 24702then : 24703 ac_cv_rshift_extends_sign=yes 24704else $as_nop 24705 ac_cv_rshift_extends_sign=no 24706fi 24707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24708 conftest.$ac_objext conftest.beam conftest.$ac_ext 24709fi 24710 24711fi 24712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 24713printf "%s\n" "$ac_cv_rshift_extends_sign" >&6; } 24714if test "$ac_cv_rshift_extends_sign" = no 24715then 24716 24717printf "%s\n" "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h 24718 24719fi 24720 24721# check for getc_unlocked and related locking functions 24722{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 24723printf %s "checking for getc_unlocked() and friends... " >&6; } 24724if test ${ac_cv_have_getc_unlocked+y} 24725then : 24726 printf %s "(cached) " >&6 24727else $as_nop 24728 24729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24730/* end confdefs.h. */ 24731#include <stdio.h> 24732int 24733main (void) 24734{ 24735 24736 FILE *f = fopen("/dev/null", "r"); 24737 flockfile(f); 24738 getc_unlocked(f); 24739 funlockfile(f); 24740 24741 ; 24742 return 0; 24743} 24744_ACEOF 24745if ac_fn_c_try_link "$LINENO" 24746then : 24747 ac_cv_have_getc_unlocked=yes 24748else $as_nop 24749 ac_cv_have_getc_unlocked=no 24750fi 24751rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24752 conftest$ac_exeext conftest.$ac_ext 24753fi 24754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 24755printf "%s\n" "$ac_cv_have_getc_unlocked" >&6; } 24756if test "$ac_cv_have_getc_unlocked" = yes 24757then 24758 24759printf "%s\n" "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h 24760 24761fi 24762 24763 24764 24765 24766 24767# Check whether --with-readline was given. 24768if test ${with_readline+y} 24769then : 24770 withval=$with_readline; 24771 case $with_readline in #( 24772 editline|edit) : 24773 with_readline=edit ;; #( 24774 yes|readline) : 24775 with_readline=readline ;; #( 24776 no) : 24777 ;; #( 24778 *) : 24779 as_fn_error $? "proper usage is --with(out)-readline[=editline|readline|no]" "$LINENO" 5 24780 ;; 24781esac 24782 24783else $as_nop 24784 with_readline=readline 24785 24786fi 24787 24788 24789if test "x$with_readline" = xreadline 24790then : 24791 24792 24793pkg_failed=no 24794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline" >&5 24795printf %s "checking for readline... " >&6; } 24796 24797if test -n "$LIBREADLINE_CFLAGS"; then 24798 pkg_cv_LIBREADLINE_CFLAGS="$LIBREADLINE_CFLAGS" 24799 elif test -n "$PKG_CONFIG"; then 24800 if test -n "$PKG_CONFIG" && \ 24801 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 24802 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 24803 ac_status=$? 24804 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24805 test $ac_status = 0; }; then 24806 pkg_cv_LIBREADLINE_CFLAGS=`$PKG_CONFIG --cflags "readline" 2>/dev/null` 24807 test "x$?" != "x0" && pkg_failed=yes 24808else 24809 pkg_failed=yes 24810fi 24811 else 24812 pkg_failed=untried 24813fi 24814if test -n "$LIBREADLINE_LIBS"; then 24815 pkg_cv_LIBREADLINE_LIBS="$LIBREADLINE_LIBS" 24816 elif test -n "$PKG_CONFIG"; then 24817 if test -n "$PKG_CONFIG" && \ 24818 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"readline\""; } >&5 24819 ($PKG_CONFIG --exists --print-errors "readline") 2>&5 24820 ac_status=$? 24821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 24822 test $ac_status = 0; }; then 24823 pkg_cv_LIBREADLINE_LIBS=`$PKG_CONFIG --libs "readline" 2>/dev/null` 24824 test "x$?" != "x0" && pkg_failed=yes 24825else 24826 pkg_failed=yes 24827fi 24828 else 24829 pkg_failed=untried 24830fi 24831 24832 24833 24834if test $pkg_failed = yes; then 24835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24836printf "%s\n" "no" >&6; } 24837 24838if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 24839 _pkg_short_errors_supported=yes 24840else 24841 _pkg_short_errors_supported=no 24842fi 24843 if test $_pkg_short_errors_supported = yes; then 24844 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "readline" 2>&1` 24845 else 24846 LIBREADLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "readline" 2>&1` 24847 fi 24848 # Put the nasty error message in config.log where it belongs 24849 echo "$LIBREADLINE_PKG_ERRORS" >&5 24850 24851 24852 save_CFLAGS=$CFLAGS 24853save_CPPFLAGS=$CPPFLAGS 24854save_LDFLAGS=$LDFLAGS 24855save_LIBS=$LIBS 24856 24857 24858 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS" 24859 LDFLAGS="$LDFLAGS $LIBREADLINE_LIBS" 24860 for ac_header in readline/readline.h 24861do : 24862 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 24863if test "x$ac_cv_header_readline_readline_h" = xyes 24864then : 24865 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 24866 24867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 24868printf %s "checking for readline in -lreadline... " >&6; } 24869if test ${ac_cv_lib_readline_readline+y} 24870then : 24871 printf %s "(cached) " >&6 24872else $as_nop 24873 ac_check_lib_save_LIBS=$LIBS 24874LIBS="-lreadline $LIBS" 24875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24876/* end confdefs.h. */ 24877 24878/* Override any GCC internal prototype to avoid an error. 24879 Use char because int might match the return type of a GCC 24880 builtin and then its argument prototype would still apply. */ 24881char readline (); 24882int 24883main (void) 24884{ 24885return readline (); 24886 ; 24887 return 0; 24888} 24889_ACEOF 24890if ac_fn_c_try_link "$LINENO" 24891then : 24892 ac_cv_lib_readline_readline=yes 24893else $as_nop 24894 ac_cv_lib_readline_readline=no 24895fi 24896rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24897 conftest$ac_exeext conftest.$ac_ext 24898LIBS=$ac_check_lib_save_LIBS 24899fi 24900{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 24901printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } 24902if test "x$ac_cv_lib_readline_readline" = xyes 24903then : 24904 24905 LIBREADLINE=readline 24906 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""} 24907 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"} 24908 24909else $as_nop 24910 with_readline=no 24911fi 24912 24913 24914else $as_nop 24915 with_readline=no 24916fi 24917 24918done 24919 24920CFLAGS=$save_CFLAGS 24921CPPFLAGS=$save_CPPFLAGS 24922LDFLAGS=$save_LDFLAGS 24923LIBS=$save_LIBS 24924 24925 24926 24927elif test $pkg_failed = untried; then 24928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 24929printf "%s\n" "no" >&6; } 24930 24931 save_CFLAGS=$CFLAGS 24932save_CPPFLAGS=$CPPFLAGS 24933save_LDFLAGS=$LDFLAGS 24934save_LIBS=$LIBS 24935 24936 24937 CPPFLAGS="$CPPFLAGS $LIBREADLINE_CFLAGS" 24938 LDFLAGS="$LDFLAGS $LIBREADLINE_LIBS" 24939 for ac_header in readline/readline.h 24940do : 24941 ac_fn_c_check_header_compile "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 24942if test "x$ac_cv_header_readline_readline_h" = xyes 24943then : 24944 printf "%s\n" "#define HAVE_READLINE_READLINE_H 1" >>confdefs.h 24945 24946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 24947printf %s "checking for readline in -lreadline... " >&6; } 24948if test ${ac_cv_lib_readline_readline+y} 24949then : 24950 printf %s "(cached) " >&6 24951else $as_nop 24952 ac_check_lib_save_LIBS=$LIBS 24953LIBS="-lreadline $LIBS" 24954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24955/* end confdefs.h. */ 24956 24957/* Override any GCC internal prototype to avoid an error. 24958 Use char because int might match the return type of a GCC 24959 builtin and then its argument prototype would still apply. */ 24960char readline (); 24961int 24962main (void) 24963{ 24964return readline (); 24965 ; 24966 return 0; 24967} 24968_ACEOF 24969if ac_fn_c_try_link "$LINENO" 24970then : 24971 ac_cv_lib_readline_readline=yes 24972else $as_nop 24973 ac_cv_lib_readline_readline=no 24974fi 24975rm -f core conftest.err conftest.$ac_objext conftest.beam \ 24976 conftest$ac_exeext conftest.$ac_ext 24977LIBS=$ac_check_lib_save_LIBS 24978fi 24979{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 24980printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } 24981if test "x$ac_cv_lib_readline_readline" = xyes 24982then : 24983 24984 LIBREADLINE=readline 24985 READLINE_CFLAGS=${LIBREADLINE_CFLAGS-""} 24986 READLINE_LIBS=${LIBREADLINE_LIBS-"-lreadline"} 24987 24988else $as_nop 24989 with_readline=no 24990fi 24991 24992 24993else $as_nop 24994 with_readline=no 24995fi 24996 24997done 24998 24999CFLAGS=$save_CFLAGS 25000CPPFLAGS=$save_CPPFLAGS 25001LDFLAGS=$save_LDFLAGS 25002LIBS=$save_LIBS 25003 25004 25005 25006else 25007 LIBREADLINE_CFLAGS=$pkg_cv_LIBREADLINE_CFLAGS 25008 LIBREADLINE_LIBS=$pkg_cv_LIBREADLINE_LIBS 25009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25010printf "%s\n" "yes" >&6; } 25011 25012 LIBREADLINE=readline 25013 READLINE_CFLAGS=$LIBREADLINE_CFLAGS 25014 READLINE_LIBS=$LIBREADLINE_LIBS 25015 25016fi 25017 25018fi 25019 25020if test "x$with_readline" = xedit 25021then : 25022 25023 25024pkg_failed=no 25025{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 25026printf %s "checking for libedit... " >&6; } 25027 25028if test -n "$LIBEDIT_CFLAGS"; then 25029 pkg_cv_LIBEDIT_CFLAGS="$LIBEDIT_CFLAGS" 25030 elif test -n "$PKG_CONFIG"; then 25031 if test -n "$PKG_CONFIG" && \ 25032 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 25033 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 25034 ac_status=$? 25035 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25036 test $ac_status = 0; }; then 25037 pkg_cv_LIBEDIT_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` 25038 test "x$?" != "x0" && pkg_failed=yes 25039else 25040 pkg_failed=yes 25041fi 25042 else 25043 pkg_failed=untried 25044fi 25045if test -n "$LIBEDIT_LIBS"; then 25046 pkg_cv_LIBEDIT_LIBS="$LIBEDIT_LIBS" 25047 elif test -n "$PKG_CONFIG"; then 25048 if test -n "$PKG_CONFIG" && \ 25049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 25050 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 25051 ac_status=$? 25052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25053 test $ac_status = 0; }; then 25054 pkg_cv_LIBEDIT_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` 25055 test "x$?" != "x0" && pkg_failed=yes 25056else 25057 pkg_failed=yes 25058fi 25059 else 25060 pkg_failed=untried 25061fi 25062 25063 25064 25065if test $pkg_failed = yes; then 25066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25067printf "%s\n" "no" >&6; } 25068 25069if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25070 _pkg_short_errors_supported=yes 25071else 25072 _pkg_short_errors_supported=no 25073fi 25074 if test $_pkg_short_errors_supported = yes; then 25075 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` 25076 else 25077 LIBEDIT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` 25078 fi 25079 # Put the nasty error message in config.log where it belongs 25080 echo "$LIBEDIT_PKG_ERRORS" >&5 25081 25082 25083 save_CFLAGS=$CFLAGS 25084save_CPPFLAGS=$CPPFLAGS 25085save_LDFLAGS=$LDFLAGS 25086save_LIBS=$LIBS 25087 25088 25089 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS" 25090 LDFLAGS="$LDFLAGS $LIBEDIT_LIBS" 25091 for ac_header in editline/readline.h 25092do : 25093 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 25094if test "x$ac_cv_header_editline_readline_h" = xyes 25095then : 25096 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h 25097 25098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 25099printf %s "checking for readline in -ledit... " >&6; } 25100if test ${ac_cv_lib_edit_readline+y} 25101then : 25102 printf %s "(cached) " >&6 25103else $as_nop 25104 ac_check_lib_save_LIBS=$LIBS 25105LIBS="-ledit $LIBS" 25106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25107/* end confdefs.h. */ 25108 25109/* Override any GCC internal prototype to avoid an error. 25110 Use char because int might match the return type of a GCC 25111 builtin and then its argument prototype would still apply. */ 25112char readline (); 25113int 25114main (void) 25115{ 25116return readline (); 25117 ; 25118 return 0; 25119} 25120_ACEOF 25121if ac_fn_c_try_link "$LINENO" 25122then : 25123 ac_cv_lib_edit_readline=yes 25124else $as_nop 25125 ac_cv_lib_edit_readline=no 25126fi 25127rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25128 conftest$ac_exeext conftest.$ac_ext 25129LIBS=$ac_check_lib_save_LIBS 25130fi 25131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 25132printf "%s\n" "$ac_cv_lib_edit_readline" >&6; } 25133if test "x$ac_cv_lib_edit_readline" = xyes 25134then : 25135 25136 LIBREADLINE=edit 25137 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h 25138 25139 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""} 25140 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"} 25141 25142else $as_nop 25143 with_readline=no 25144fi 25145 25146 25147else $as_nop 25148 with_readline=no 25149fi 25150 25151done 25152 25153CFLAGS=$save_CFLAGS 25154CPPFLAGS=$save_CPPFLAGS 25155LDFLAGS=$save_LDFLAGS 25156LIBS=$save_LIBS 25157 25158 25159 25160elif test $pkg_failed = untried; then 25161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25162printf "%s\n" "no" >&6; } 25163 25164 save_CFLAGS=$CFLAGS 25165save_CPPFLAGS=$CPPFLAGS 25166save_LDFLAGS=$LDFLAGS 25167save_LIBS=$LIBS 25168 25169 25170 CPPFLAGS="$CPPFLAGS $LIBEDIT_CFLAGS" 25171 LDFLAGS="$LDFLAGS $LIBEDIT_LIBS" 25172 for ac_header in editline/readline.h 25173do : 25174 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 25175if test "x$ac_cv_header_editline_readline_h" = xyes 25176then : 25177 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h 25178 25179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 25180printf %s "checking for readline in -ledit... " >&6; } 25181if test ${ac_cv_lib_edit_readline+y} 25182then : 25183 printf %s "(cached) " >&6 25184else $as_nop 25185 ac_check_lib_save_LIBS=$LIBS 25186LIBS="-ledit $LIBS" 25187cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25188/* end confdefs.h. */ 25189 25190/* Override any GCC internal prototype to avoid an error. 25191 Use char because int might match the return type of a GCC 25192 builtin and then its argument prototype would still apply. */ 25193char readline (); 25194int 25195main (void) 25196{ 25197return readline (); 25198 ; 25199 return 0; 25200} 25201_ACEOF 25202if ac_fn_c_try_link "$LINENO" 25203then : 25204 ac_cv_lib_edit_readline=yes 25205else $as_nop 25206 ac_cv_lib_edit_readline=no 25207fi 25208rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25209 conftest$ac_exeext conftest.$ac_ext 25210LIBS=$ac_check_lib_save_LIBS 25211fi 25212{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 25213printf "%s\n" "$ac_cv_lib_edit_readline" >&6; } 25214if test "x$ac_cv_lib_edit_readline" = xyes 25215then : 25216 25217 LIBREADLINE=edit 25218 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h 25219 25220 READLINE_CFLAGS=${LIBEDIT_CFLAGS-""} 25221 READLINE_LIBS=${LIBEDIT_LIBS-"-ledit"} 25222 25223else $as_nop 25224 with_readline=no 25225fi 25226 25227 25228else $as_nop 25229 with_readline=no 25230fi 25231 25232done 25233 25234CFLAGS=$save_CFLAGS 25235CPPFLAGS=$save_CPPFLAGS 25236LDFLAGS=$save_LDFLAGS 25237LIBS=$save_LIBS 25238 25239 25240 25241else 25242 LIBEDIT_CFLAGS=$pkg_cv_LIBEDIT_CFLAGS 25243 LIBEDIT_LIBS=$pkg_cv_LIBEDIT_LIBS 25244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25245printf "%s\n" "yes" >&6; } 25246 25247 printf "%s\n" "#define WITH_EDITLINE 1" >>confdefs.h 25248 25249 LIBREADLINE=edit 25250 READLINE_CFLAGS=$LIBEDIT_CFLAGS 25251 READLINE_LIBS=$LIBEDIT_LIBS 25252 25253fi 25254 25255fi 25256 25257READLINE_CFLAGS=$(echo $READLINE_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g') 25258 25259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link readline" >&5 25260printf %s "checking how to link readline... " >&6; } 25261if test "x$with_readline" = xno 25262then : 25263 25264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25265printf "%s\n" "no" >&6; } 25266 25267else $as_nop 25268 25269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&5 25270printf "%s\n" "$with_readline (CFLAGS: $READLINE_CFLAGS, LIBS: $READLINE_LIBS)" >&6; } 25271 25272 save_CFLAGS=$CFLAGS 25273save_CPPFLAGS=$CPPFLAGS 25274save_LDFLAGS=$LDFLAGS 25275save_LIBS=$LIBS 25276 25277 25278 CPPFLAGS="$CPPFLAGS $READLINE_CFLAGS" 25279 LIBS="$READLINE_LIBS $LIBS" 25280 LIBS_SAVE=$LIBS 25281 25282 25283 25284 # check for readline 2.2 25285 ac_fn_check_decl "$LINENO" "rl_completion_append_character" "ac_cv_have_decl_rl_completion_append_character" " 25286 #include <stdio.h> /* Must be first for Gnu Readline */ 25287 #ifdef WITH_EDITLINE 25288 # include <editline/readline.h> 25289 #else 25290 # include <readline/readline.h> 25291 # include <readline/history.h> 25292 #endif 25293 25294" "$ac_c_undeclared_builtin_options" "CFLAGS" 25295if test "x$ac_cv_have_decl_rl_completion_append_character" = xyes 25296then : 25297 25298 25299printf "%s\n" "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h 25300 25301 25302fi 25303 25304 ac_fn_check_decl "$LINENO" "rl_completion_suppress_append" "ac_cv_have_decl_rl_completion_suppress_append" " 25305 #include <stdio.h> /* Must be first for Gnu Readline */ 25306 #ifdef WITH_EDITLINE 25307 # include <editline/readline.h> 25308 #else 25309 # include <readline/readline.h> 25310 # include <readline/history.h> 25311 #endif 25312 25313" "$ac_c_undeclared_builtin_options" "CFLAGS" 25314if test "x$ac_cv_have_decl_rl_completion_suppress_append" = xyes 25315then : 25316 25317 25318printf "%s\n" "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h 25319 25320 25321fi 25322 25323 # check for readline 4.0 25324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -l$LIBREADLINE" >&5 25325printf %s "checking for rl_pre_input_hook in -l$LIBREADLINE... " >&6; } 25326if test ${ac_cv_readline_rl_pre_input_hook+y} 25327then : 25328 printf %s "(cached) " >&6 25329else $as_nop 25330 25331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25332/* end confdefs.h. */ 25333 25334 #include <stdio.h> /* Must be first for Gnu Readline */ 25335 #ifdef WITH_EDITLINE 25336 # include <editline/readline.h> 25337 #else 25338 # include <readline/readline.h> 25339 # include <readline/history.h> 25340 #endif 25341 25342int 25343main (void) 25344{ 25345void *x = rl_pre_input_hook 25346 ; 25347 return 0; 25348} 25349_ACEOF 25350if ac_fn_c_try_link "$LINENO" 25351then : 25352 ac_cv_readline_rl_pre_input_hook=yes 25353else $as_nop 25354 ac_cv_readline_rl_pre_input_hook=no 25355 25356fi 25357rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25358 conftest$ac_exeext conftest.$ac_ext 25359 25360fi 25361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_pre_input_hook" >&5 25362printf "%s\n" "$ac_cv_readline_rl_pre_input_hook" >&6; } 25363 if test "x$ac_cv_readline_rl_pre_input_hook" = xyes 25364then : 25365 25366 25367printf "%s\n" "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h 25368 25369 25370fi 25371 25372 # also in 4.0 25373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -l$LIBREADLINE" >&5 25374printf %s "checking for rl_completion_display_matches_hook in -l$LIBREADLINE... " >&6; } 25375if test ${ac_cv_readline_rl_completion_display_matches_hook+y} 25376then : 25377 printf %s "(cached) " >&6 25378else $as_nop 25379 25380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25381/* end confdefs.h. */ 25382 25383 #include <stdio.h> /* Must be first for Gnu Readline */ 25384 #ifdef WITH_EDITLINE 25385 # include <editline/readline.h> 25386 #else 25387 # include <readline/readline.h> 25388 # include <readline/history.h> 25389 #endif 25390 25391int 25392main (void) 25393{ 25394void *x = rl_completion_display_matches_hook 25395 ; 25396 return 0; 25397} 25398_ACEOF 25399if ac_fn_c_try_link "$LINENO" 25400then : 25401 ac_cv_readline_rl_completion_display_matches_hook=yes 25402else $as_nop 25403 ac_cv_readline_rl_completion_display_matches_hook=no 25404 25405fi 25406rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25407 conftest$ac_exeext conftest.$ac_ext 25408 25409fi 25410{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_display_matches_hook" >&5 25411printf "%s\n" "$ac_cv_readline_rl_completion_display_matches_hook" >&6; } 25412 if test "x$ac_cv_readline_rl_completion_display_matches_hook" = xyes 25413then : 25414 25415 25416printf "%s\n" "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h 25417 25418 25419fi 25420 25421 # also in 4.0, but not in editline 25422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -l$LIBREADLINE" >&5 25423printf %s "checking for rl_resize_terminal in -l$LIBREADLINE... " >&6; } 25424if test ${ac_cv_readline_rl_resize_terminal+y} 25425then : 25426 printf %s "(cached) " >&6 25427else $as_nop 25428 25429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25430/* end confdefs.h. */ 25431 25432 #include <stdio.h> /* Must be first for Gnu Readline */ 25433 #ifdef WITH_EDITLINE 25434 # include <editline/readline.h> 25435 #else 25436 # include <readline/readline.h> 25437 # include <readline/history.h> 25438 #endif 25439 25440int 25441main (void) 25442{ 25443void *x = rl_resize_terminal 25444 ; 25445 return 0; 25446} 25447_ACEOF 25448if ac_fn_c_try_link "$LINENO" 25449then : 25450 ac_cv_readline_rl_resize_terminal=yes 25451else $as_nop 25452 ac_cv_readline_rl_resize_terminal=no 25453 25454fi 25455rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25456 conftest$ac_exeext conftest.$ac_ext 25457 25458fi 25459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_resize_terminal" >&5 25460printf "%s\n" "$ac_cv_readline_rl_resize_terminal" >&6; } 25461 if test "x$ac_cv_readline_rl_resize_terminal" = xyes 25462then : 25463 25464 25465printf "%s\n" "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h 25466 25467 25468fi 25469 25470 # check for readline 4.2 25471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -l$LIBREADLINE" >&5 25472printf %s "checking for rl_completion_matches in -l$LIBREADLINE... " >&6; } 25473if test ${ac_cv_readline_rl_completion_matches+y} 25474then : 25475 printf %s "(cached) " >&6 25476else $as_nop 25477 25478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25479/* end confdefs.h. */ 25480 25481 #include <stdio.h> /* Must be first for Gnu Readline */ 25482 #ifdef WITH_EDITLINE 25483 # include <editline/readline.h> 25484 #else 25485 # include <readline/readline.h> 25486 # include <readline/history.h> 25487 #endif 25488 25489int 25490main (void) 25491{ 25492void *x = rl_completion_matches 25493 ; 25494 return 0; 25495} 25496_ACEOF 25497if ac_fn_c_try_link "$LINENO" 25498then : 25499 ac_cv_readline_rl_completion_matches=yes 25500else $as_nop 25501 ac_cv_readline_rl_completion_matches=no 25502 25503fi 25504rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25505 conftest$ac_exeext conftest.$ac_ext 25506 25507fi 25508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_completion_matches" >&5 25509printf "%s\n" "$ac_cv_readline_rl_completion_matches" >&6; } 25510 if test "x$ac_cv_readline_rl_completion_matches" = xyes 25511then : 25512 25513 25514printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h 25515 25516 25517fi 25518 25519 # also in readline 4.2 25520 ac_fn_check_decl "$LINENO" "rl_catch_signals" "ac_cv_have_decl_rl_catch_signals" " 25521 #include <stdio.h> /* Must be first for Gnu Readline */ 25522 #ifdef WITH_EDITLINE 25523 # include <editline/readline.h> 25524 #else 25525 # include <readline/readline.h> 25526 # include <readline/history.h> 25527 #endif 25528 25529" "$ac_c_undeclared_builtin_options" "CFLAGS" 25530if test "x$ac_cv_have_decl_rl_catch_signals" = xyes 25531then : 25532 25533 25534printf "%s\n" "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h 25535 25536 25537fi 25538 25539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for append_history in -l$LIBREADLINE" >&5 25540printf %s "checking for append_history in -l$LIBREADLINE... " >&6; } 25541if test ${ac_cv_readline_append_history+y} 25542then : 25543 printf %s "(cached) " >&6 25544else $as_nop 25545 25546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25547/* end confdefs.h. */ 25548 25549 #include <stdio.h> /* Must be first for Gnu Readline */ 25550 #ifdef WITH_EDITLINE 25551 # include <editline/readline.h> 25552 #else 25553 # include <readline/readline.h> 25554 # include <readline/history.h> 25555 #endif 25556 25557int 25558main (void) 25559{ 25560void *x = append_history 25561 ; 25562 return 0; 25563} 25564_ACEOF 25565if ac_fn_c_try_link "$LINENO" 25566then : 25567 ac_cv_readline_append_history=yes 25568else $as_nop 25569 ac_cv_readline_append_history=no 25570 25571fi 25572rm -f core conftest.err conftest.$ac_objext conftest.beam \ 25573 conftest$ac_exeext conftest.$ac_ext 25574 25575fi 25576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_append_history" >&5 25577printf "%s\n" "$ac_cv_readline_append_history" >&6; } 25578 if test "x$ac_cv_readline_append_history" = xyes 25579then : 25580 25581 25582printf "%s\n" "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h 25583 25584 25585fi 25586 25587 # in readline as well as newer editline (April 2023) 25588 ac_fn_c_check_type "$LINENO" "rl_compdisp_func_t" "ac_cv_type_rl_compdisp_func_t" " 25589 #include <stdio.h> /* Must be first for Gnu Readline */ 25590 #ifdef WITH_EDITLINE 25591 # include <editline/readline.h> 25592 #else 25593 # include <readline/readline.h> 25594 # include <readline/history.h> 25595 #endif 25596 25597" 25598if test "x$ac_cv_type_rl_compdisp_func_t" = xyes 25599then : 25600 25601printf "%s\n" "#define HAVE_RL_COMPDISP_FUNC_T 1" >>confdefs.h 25602 25603 25604fi 25605 25606 25607 # Some editline versions declare rl_startup_hook as taking no args, others 25608 # declare it as taking 2. 25609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if rl_startup_hook takes arguments" >&5 25610printf %s "checking if rl_startup_hook takes arguments... " >&6; } 25611if test ${ac_cv_readline_rl_startup_hook_takes_args+y} 25612then : 25613 printf %s "(cached) " >&6 25614else $as_nop 25615 25616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25617/* end confdefs.h. */ 25618 25619 #include <stdio.h> /* Must be first for Gnu Readline */ 25620 #ifdef WITH_EDITLINE 25621 # include <editline/readline.h> 25622 #else 25623 # include <readline/readline.h> 25624 # include <readline/history.h> 25625 #endif 25626 25627 extern int test_hook_func(const char *text, int state); 25628int 25629main (void) 25630{ 25631rl_startup_hook=test_hook_func; 25632 ; 25633 return 0; 25634} 25635_ACEOF 25636if ac_fn_c_try_compile "$LINENO" 25637then : 25638 ac_cv_readline_rl_startup_hook_takes_args=yes 25639else $as_nop 25640 ac_cv_readline_rl_startup_hook_takes_args=no 25641 25642fi 25643rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25644 25645fi 25646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_readline_rl_startup_hook_takes_args" >&5 25647printf "%s\n" "$ac_cv_readline_rl_startup_hook_takes_args" >&6; } 25648 if test "x$ac_cv_readline_rl_startup_hook_takes_args" = xyes 25649then : 25650 25651 25652printf "%s\n" "#define Py_RL_STARTUP_HOOK_TAKES_ARGS 1" >>confdefs.h 25653 25654 25655fi 25656 25657 25658 25659CFLAGS=$save_CFLAGS 25660CPPFLAGS=$save_CPPFLAGS 25661LDFLAGS=$save_LDFLAGS 25662LIBS=$save_LIBS 25663 25664 25665fi 25666 25667{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 25668printf %s "checking for broken nice()... " >&6; } 25669if test ${ac_cv_broken_nice+y} 25670then : 25671 printf %s "(cached) " >&6 25672else $as_nop 25673 25674if test "$cross_compiling" = yes 25675then : 25676 ac_cv_broken_nice=no 25677else $as_nop 25678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25679/* end confdefs.h. */ 25680 25681#include <stdlib.h> 25682#include <unistd.h> 25683int main(void) 25684{ 25685 int val1 = nice(1); 25686 if (val1 != -1 && val1 == nice(2)) 25687 exit(0); 25688 exit(1); 25689} 25690 25691_ACEOF 25692if ac_fn_c_try_run "$LINENO" 25693then : 25694 ac_cv_broken_nice=yes 25695else $as_nop 25696 ac_cv_broken_nice=no 25697fi 25698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25699 conftest.$ac_objext conftest.beam conftest.$ac_ext 25700fi 25701 25702fi 25703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 25704printf "%s\n" "$ac_cv_broken_nice" >&6; } 25705if test "$ac_cv_broken_nice" = yes 25706then 25707 25708printf "%s\n" "#define HAVE_BROKEN_NICE 1" >>confdefs.h 25709 25710fi 25711 25712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 25713printf %s "checking for broken poll()... " >&6; } 25714if test ${ac_cv_broken_poll+y} 25715then : 25716 printf %s "(cached) " >&6 25717else $as_nop 25718 if test "$cross_compiling" = yes 25719then : 25720 ac_cv_broken_poll=no 25721else $as_nop 25722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25723/* end confdefs.h. */ 25724 25725#include <poll.h> 25726#include <unistd.h> 25727 25728int main(void) 25729{ 25730 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; 25731 int poll_test; 25732 25733 close (42); 25734 25735 poll_test = poll(&poll_struct, 1, 0); 25736 if (poll_test < 0) 25737 return 0; 25738 else if (poll_test == 0 && poll_struct.revents != POLLNVAL) 25739 return 0; 25740 else 25741 return 1; 25742} 25743 25744_ACEOF 25745if ac_fn_c_try_run "$LINENO" 25746then : 25747 ac_cv_broken_poll=yes 25748else $as_nop 25749 ac_cv_broken_poll=no 25750fi 25751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25752 conftest.$ac_objext conftest.beam conftest.$ac_ext 25753fi 25754 25755fi 25756{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 25757printf "%s\n" "$ac_cv_broken_poll" >&6; } 25758if test "$ac_cv_broken_poll" = yes 25759then 25760 25761printf "%s\n" "#define HAVE_BROKEN_POLL 1" >>confdefs.h 25762 25763fi 25764 25765# check tzset(3) exists and works like we expect it to 25766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 25767printf %s "checking for working tzset()... " >&6; } 25768if test ${ac_cv_working_tzset+y} 25769then : 25770 printf %s "(cached) " >&6 25771else $as_nop 25772 25773if test "$cross_compiling" = yes 25774then : 25775 ac_cv_working_tzset=no 25776else $as_nop 25777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25778/* end confdefs.h. */ 25779 25780#include <stdlib.h> 25781#include <time.h> 25782#include <string.h> 25783 25784#if HAVE_TZNAME 25785extern char *tzname[]; 25786#endif 25787 25788int main(void) 25789{ 25790 /* Note that we need to ensure that not only does tzset(3) 25791 do 'something' with localtime, but it works as documented 25792 in the library reference and as expected by the test suite. 25793 This includes making sure that tzname is set properly if 25794 tm->tm_zone does not exist since it is the alternative way 25795 of getting timezone info. 25796 25797 Red Hat 6.2 doesn't understand the southern hemisphere 25798 after New Year's Day. 25799 */ 25800 25801 time_t groundhogday = 1044144000; /* GMT-based */ 25802 time_t midyear = groundhogday + (365 * 24 * 3600 / 2); 25803 25804 putenv("TZ=UTC+0"); 25805 tzset(); 25806 if (localtime(&groundhogday)->tm_hour != 0) 25807 exit(1); 25808#if HAVE_TZNAME 25809 /* For UTC, tzname[1] is sometimes "", sometimes " " */ 25810 if (strcmp(tzname[0], "UTC") || 25811 (tzname[1][0] != 0 && tzname[1][0] != ' ')) 25812 exit(1); 25813#endif 25814 25815 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); 25816 tzset(); 25817 if (localtime(&groundhogday)->tm_hour != 19) 25818 exit(1); 25819#if HAVE_TZNAME 25820 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) 25821 exit(1); 25822#endif 25823 25824 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); 25825 tzset(); 25826 if (localtime(&groundhogday)->tm_hour != 11) 25827 exit(1); 25828#if HAVE_TZNAME 25829 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) 25830 exit(1); 25831#endif 25832 25833#if HAVE_STRUCT_TM_TM_ZONE 25834 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) 25835 exit(1); 25836 if (strcmp(localtime(&midyear)->tm_zone, "AEST")) 25837 exit(1); 25838#endif 25839 25840 exit(0); 25841} 25842 25843_ACEOF 25844if ac_fn_c_try_run "$LINENO" 25845then : 25846 ac_cv_working_tzset=yes 25847else $as_nop 25848 ac_cv_working_tzset=no 25849fi 25850rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25851 conftest.$ac_objext conftest.beam conftest.$ac_ext 25852fi 25853 25854fi 25855{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 25856printf "%s\n" "$ac_cv_working_tzset" >&6; } 25857if test "$ac_cv_working_tzset" = yes 25858then 25859 25860printf "%s\n" "#define HAVE_WORKING_TZSET 1" >>confdefs.h 25861 25862fi 25863 25864# Look for subsecond timestamps in struct stat 25865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 25866printf %s "checking for tv_nsec in struct stat... " >&6; } 25867if test ${ac_cv_stat_tv_nsec+y} 25868then : 25869 printf %s "(cached) " >&6 25870else $as_nop 25871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25872/* end confdefs.h. */ 25873#include <sys/stat.h> 25874int 25875main (void) 25876{ 25877 25878struct stat st; 25879st.st_mtim.tv_nsec = 1; 25880 25881 ; 25882 return 0; 25883} 25884_ACEOF 25885if ac_fn_c_try_compile "$LINENO" 25886then : 25887 ac_cv_stat_tv_nsec=yes 25888else $as_nop 25889 ac_cv_stat_tv_nsec=no 25890fi 25891rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25892fi 25893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 25894printf "%s\n" "$ac_cv_stat_tv_nsec" >&6; } 25895if test "$ac_cv_stat_tv_nsec" = yes 25896then 25897 25898printf "%s\n" "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h 25899 25900fi 25901 25902# Look for BSD style subsecond timestamps in struct stat 25903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 25904printf %s "checking for tv_nsec2 in struct stat... " >&6; } 25905if test ${ac_cv_stat_tv_nsec2+y} 25906then : 25907 printf %s "(cached) " >&6 25908else $as_nop 25909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25910/* end confdefs.h. */ 25911#include <sys/stat.h> 25912int 25913main (void) 25914{ 25915 25916struct stat st; 25917st.st_mtimespec.tv_nsec = 1; 25918 25919 ; 25920 return 0; 25921} 25922_ACEOF 25923if ac_fn_c_try_compile "$LINENO" 25924then : 25925 ac_cv_stat_tv_nsec2=yes 25926else $as_nop 25927 ac_cv_stat_tv_nsec2=no 25928fi 25929rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 25930fi 25931{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 25932printf "%s\n" "$ac_cv_stat_tv_nsec2" >&6; } 25933if test "$ac_cv_stat_tv_nsec2" = yes 25934then 25935 25936printf "%s\n" "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h 25937 25938fi 25939 25940have_curses=no 25941have_panel=no 25942 25943 25944 25945# Check for ncursesw/panelw first. If that fails, try ncurses/panel. 25946 25947 25948 25949pkg_failed=no 25950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw" >&5 25951printf %s "checking for ncursesw... " >&6; } 25952 25953if test -n "$CURSES_CFLAGS"; then 25954 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS" 25955 elif test -n "$PKG_CONFIG"; then 25956 if test -n "$PKG_CONFIG" && \ 25957 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5 25958 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5 25959 ac_status=$? 25960 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25961 test $ac_status = 0; }; then 25962 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncursesw" 2>/dev/null` 25963 test "x$?" != "x0" && pkg_failed=yes 25964else 25965 pkg_failed=yes 25966fi 25967 else 25968 pkg_failed=untried 25969fi 25970if test -n "$CURSES_LIBS"; then 25971 pkg_cv_CURSES_LIBS="$CURSES_LIBS" 25972 elif test -n "$PKG_CONFIG"; then 25973 if test -n "$PKG_CONFIG" && \ 25974 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw\""; } >&5 25975 ($PKG_CONFIG --exists --print-errors "ncursesw") 2>&5 25976 ac_status=$? 25977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25978 test $ac_status = 0; }; then 25979 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncursesw" 2>/dev/null` 25980 test "x$?" != "x0" && pkg_failed=yes 25981else 25982 pkg_failed=yes 25983fi 25984 else 25985 pkg_failed=untried 25986fi 25987 25988 25989 25990if test $pkg_failed = yes; then 25991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 25992printf "%s\n" "no" >&6; } 25993 25994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 25995 _pkg_short_errors_supported=yes 25996else 25997 _pkg_short_errors_supported=no 25998fi 25999 if test $_pkg_short_errors_supported = yes; then 26000 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw" 2>&1` 26001 else 26002 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw" 2>&1` 26003 fi 26004 # Put the nasty error message in config.log where it belongs 26005 echo "$CURSES_PKG_ERRORS" >&5 26006 26007 have_curses=no 26008elif test $pkg_failed = untried; then 26009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26010printf "%s\n" "no" >&6; } 26011 have_curses=no 26012else 26013 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS 26014 CURSES_LIBS=$pkg_cv_CURSES_LIBS 26015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26016printf "%s\n" "yes" >&6; } 26017 26018printf "%s\n" "#define HAVE_NCURSESW 1" >>confdefs.h 26019 26020 have_curses=yes 26021 26022pkg_failed=no 26023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panelw" >&5 26024printf %s "checking for panelw... " >&6; } 26025 26026if test -n "$PANEL_CFLAGS"; then 26027 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS" 26028 elif test -n "$PKG_CONFIG"; then 26029 if test -n "$PKG_CONFIG" && \ 26030 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5 26031 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5 26032 ac_status=$? 26033 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26034 test $ac_status = 0; }; then 26035 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panelw" 2>/dev/null` 26036 test "x$?" != "x0" && pkg_failed=yes 26037else 26038 pkg_failed=yes 26039fi 26040 else 26041 pkg_failed=untried 26042fi 26043if test -n "$PANEL_LIBS"; then 26044 pkg_cv_PANEL_LIBS="$PANEL_LIBS" 26045 elif test -n "$PKG_CONFIG"; then 26046 if test -n "$PKG_CONFIG" && \ 26047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panelw\""; } >&5 26048 ($PKG_CONFIG --exists --print-errors "panelw") 2>&5 26049 ac_status=$? 26050 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26051 test $ac_status = 0; }; then 26052 pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "panelw" 2>/dev/null` 26053 test "x$?" != "x0" && pkg_failed=yes 26054else 26055 pkg_failed=yes 26056fi 26057 else 26058 pkg_failed=untried 26059fi 26060 26061 26062 26063if test $pkg_failed = yes; then 26064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26065printf "%s\n" "no" >&6; } 26066 26067if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26068 _pkg_short_errors_supported=yes 26069else 26070 _pkg_short_errors_supported=no 26071fi 26072 if test $_pkg_short_errors_supported = yes; then 26073 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panelw" 2>&1` 26074 else 26075 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panelw" 2>&1` 26076 fi 26077 # Put the nasty error message in config.log where it belongs 26078 echo "$PANEL_PKG_ERRORS" >&5 26079 26080 have_panel=no 26081elif test $pkg_failed = untried; then 26082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26083printf "%s\n" "no" >&6; } 26084 have_panel=no 26085else 26086 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS 26087 PANEL_LIBS=$pkg_cv_PANEL_LIBS 26088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26089printf "%s\n" "yes" >&6; } 26090 26091printf "%s\n" "#define HAVE_PANELW 1" >>confdefs.h 26092 26093 have_panel=yes 26094fi 26095fi 26096 26097 26098if test "x$have_curses" = xno 26099then : 26100 26101 26102 26103pkg_failed=no 26104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5 26105printf %s "checking for ncurses... " >&6; } 26106 26107if test -n "$CURSES_CFLAGS"; then 26108 pkg_cv_CURSES_CFLAGS="$CURSES_CFLAGS" 26109 elif test -n "$PKG_CONFIG"; then 26110 if test -n "$PKG_CONFIG" && \ 26111 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5 26112 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5 26113 ac_status=$? 26114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26115 test $ac_status = 0; }; then 26116 pkg_cv_CURSES_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null` 26117 test "x$?" != "x0" && pkg_failed=yes 26118else 26119 pkg_failed=yes 26120fi 26121 else 26122 pkg_failed=untried 26123fi 26124if test -n "$CURSES_LIBS"; then 26125 pkg_cv_CURSES_LIBS="$CURSES_LIBS" 26126 elif test -n "$PKG_CONFIG"; then 26127 if test -n "$PKG_CONFIG" && \ 26128 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5 26129 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5 26130 ac_status=$? 26131 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26132 test $ac_status = 0; }; then 26133 pkg_cv_CURSES_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null` 26134 test "x$?" != "x0" && pkg_failed=yes 26135else 26136 pkg_failed=yes 26137fi 26138 else 26139 pkg_failed=untried 26140fi 26141 26142 26143 26144if test $pkg_failed = yes; then 26145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26146printf "%s\n" "no" >&6; } 26147 26148if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26149 _pkg_short_errors_supported=yes 26150else 26151 _pkg_short_errors_supported=no 26152fi 26153 if test $_pkg_short_errors_supported = yes; then 26154 CURSES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1` 26155 else 26156 CURSES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1` 26157 fi 26158 # Put the nasty error message in config.log where it belongs 26159 echo "$CURSES_PKG_ERRORS" >&5 26160 26161 have_curses=no 26162elif test $pkg_failed = untried; then 26163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26164printf "%s\n" "no" >&6; } 26165 have_curses=no 26166else 26167 CURSES_CFLAGS=$pkg_cv_CURSES_CFLAGS 26168 CURSES_LIBS=$pkg_cv_CURSES_LIBS 26169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26170printf "%s\n" "yes" >&6; } 26171 26172printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h 26173 26174 have_curses=yes 26175 26176pkg_failed=no 26177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for panel" >&5 26178printf %s "checking for panel... " >&6; } 26179 26180if test -n "$PANEL_CFLAGS"; then 26181 pkg_cv_PANEL_CFLAGS="$PANEL_CFLAGS" 26182 elif test -n "$PKG_CONFIG"; then 26183 if test -n "$PKG_CONFIG" && \ 26184 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5 26185 ($PKG_CONFIG --exists --print-errors "panel") 2>&5 26186 ac_status=$? 26187 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26188 test $ac_status = 0; }; then 26189 pkg_cv_PANEL_CFLAGS=`$PKG_CONFIG --cflags "panel" 2>/dev/null` 26190 test "x$?" != "x0" && pkg_failed=yes 26191else 26192 pkg_failed=yes 26193fi 26194 else 26195 pkg_failed=untried 26196fi 26197if test -n "$PANEL_LIBS"; then 26198 pkg_cv_PANEL_LIBS="$PANEL_LIBS" 26199 elif test -n "$PKG_CONFIG"; then 26200 if test -n "$PKG_CONFIG" && \ 26201 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"panel\""; } >&5 26202 ($PKG_CONFIG --exists --print-errors "panel") 2>&5 26203 ac_status=$? 26204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26205 test $ac_status = 0; }; then 26206 pkg_cv_PANEL_LIBS=`$PKG_CONFIG --libs "panel" 2>/dev/null` 26207 test "x$?" != "x0" && pkg_failed=yes 26208else 26209 pkg_failed=yes 26210fi 26211 else 26212 pkg_failed=untried 26213fi 26214 26215 26216 26217if test $pkg_failed = yes; then 26218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26219printf "%s\n" "no" >&6; } 26220 26221if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 26222 _pkg_short_errors_supported=yes 26223else 26224 _pkg_short_errors_supported=no 26225fi 26226 if test $_pkg_short_errors_supported = yes; then 26227 PANEL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "panel" 2>&1` 26228 else 26229 PANEL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "panel" 2>&1` 26230 fi 26231 # Put the nasty error message in config.log where it belongs 26232 echo "$PANEL_PKG_ERRORS" >&5 26233 26234 have_panel=no 26235elif test $pkg_failed = untried; then 26236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 26237printf "%s\n" "no" >&6; } 26238 have_panel=no 26239else 26240 PANEL_CFLAGS=$pkg_cv_PANEL_CFLAGS 26241 PANEL_LIBS=$pkg_cv_PANEL_LIBS 26242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26243printf "%s\n" "yes" >&6; } 26244 26245printf "%s\n" "#define HAVE_PANEL 1" >>confdefs.h 26246 26247 have_panel=yes 26248fi 26249fi 26250 26251 26252fi 26253 26254save_CFLAGS=$CFLAGS 26255save_CPPFLAGS=$CPPFLAGS 26256save_LDFLAGS=$LDFLAGS 26257save_LIBS=$LIBS 26258 26259 26260 # Make sure we've got the header defines. 26261 as_fn_append CPPFLAGS " $CURSES_CFLAGS $PANEL_CFLAGS" 26262 ac_fn_c_check_header_compile "$LINENO" "ncursesw/curses.h" "ac_cv_header_ncursesw_curses_h" "$ac_includes_default" 26263if test "x$ac_cv_header_ncursesw_curses_h" = xyes 26264then : 26265 printf "%s\n" "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h 26266 26267fi 26268ac_fn_c_check_header_compile "$LINENO" "ncursesw/ncurses.h" "ac_cv_header_ncursesw_ncurses_h" "$ac_includes_default" 26269if test "x$ac_cv_header_ncursesw_ncurses_h" = xyes 26270then : 26271 printf "%s\n" "#define HAVE_NCURSESW_NCURSES_H 1" >>confdefs.h 26272 26273fi 26274ac_fn_c_check_header_compile "$LINENO" "ncursesw/panel.h" "ac_cv_header_ncursesw_panel_h" "$ac_includes_default" 26275if test "x$ac_cv_header_ncursesw_panel_h" = xyes 26276then : 26277 printf "%s\n" "#define HAVE_NCURSESW_PANEL_H 1" >>confdefs.h 26278 26279fi 26280ac_fn_c_check_header_compile "$LINENO" "ncurses/curses.h" "ac_cv_header_ncurses_curses_h" "$ac_includes_default" 26281if test "x$ac_cv_header_ncurses_curses_h" = xyes 26282then : 26283 printf "%s\n" "#define HAVE_NCURSES_CURSES_H 1" >>confdefs.h 26284 26285fi 26286ac_fn_c_check_header_compile "$LINENO" "ncurses/ncurses.h" "ac_cv_header_ncurses_ncurses_h" "$ac_includes_default" 26287if test "x$ac_cv_header_ncurses_ncurses_h" = xyes 26288then : 26289 printf "%s\n" "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h 26290 26291fi 26292ac_fn_c_check_header_compile "$LINENO" "ncurses/panel.h" "ac_cv_header_ncurses_panel_h" "$ac_includes_default" 26293if test "x$ac_cv_header_ncurses_panel_h" = xyes 26294then : 26295 printf "%s\n" "#define HAVE_NCURSES_PANEL_H 1" >>confdefs.h 26296 26297fi 26298ac_fn_c_check_header_compile "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 26299if test "x$ac_cv_header_curses_h" = xyes 26300then : 26301 printf "%s\n" "#define HAVE_CURSES_H 1" >>confdefs.h 26302 26303fi 26304ac_fn_c_check_header_compile "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" 26305if test "x$ac_cv_header_ncurses_h" = xyes 26306then : 26307 printf "%s\n" "#define HAVE_NCURSES_H 1" >>confdefs.h 26308 26309fi 26310ac_fn_c_check_header_compile "$LINENO" "panel.h" "ac_cv_header_panel_h" "$ac_includes_default" 26311if test "x$ac_cv_header_panel_h" = xyes 26312then : 26313 printf "%s\n" "#define HAVE_PANEL_H 1" >>confdefs.h 26314 26315fi 26316 26317 26318 # Check that we're able to link with crucial curses/panel functions. This 26319 # also serves as a fallback in case pkg-config failed. 26320 as_fn_append LIBS " $CURSES_LIBS $PANEL_LIBS" 26321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5 26322printf %s "checking for library containing initscr... " >&6; } 26323if test ${ac_cv_search_initscr+y} 26324then : 26325 printf %s "(cached) " >&6 26326else $as_nop 26327 ac_func_search_save_LIBS=$LIBS 26328cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26329/* end confdefs.h. */ 26330 26331/* Override any GCC internal prototype to avoid an error. 26332 Use char because int might match the return type of a GCC 26333 builtin and then its argument prototype would still apply. */ 26334char initscr (); 26335int 26336main (void) 26337{ 26338return initscr (); 26339 ; 26340 return 0; 26341} 26342_ACEOF 26343for ac_lib in '' ncursesw ncurses 26344do 26345 if test -z "$ac_lib"; then 26346 ac_res="none required" 26347 else 26348 ac_res=-l$ac_lib 26349 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26350 fi 26351 if ac_fn_c_try_link "$LINENO" 26352then : 26353 ac_cv_search_initscr=$ac_res 26354fi 26355rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26356 conftest$ac_exeext 26357 if test ${ac_cv_search_initscr+y} 26358then : 26359 break 26360fi 26361done 26362if test ${ac_cv_search_initscr+y} 26363then : 26364 26365else $as_nop 26366 ac_cv_search_initscr=no 26367fi 26368rm conftest.$ac_ext 26369LIBS=$ac_func_search_save_LIBS 26370fi 26371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5 26372printf "%s\n" "$ac_cv_search_initscr" >&6; } 26373ac_res=$ac_cv_search_initscr 26374if test "$ac_res" != no 26375then : 26376 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26377 if test "x$have_curses" = xno 26378then : 26379 have_curses=yes 26380 CURSES_LIBS=${CURSES_LIBS-"$ac_cv_search_initscr"} 26381fi 26382else $as_nop 26383 have_curses=no 26384fi 26385 26386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing update_panels" >&5 26387printf %s "checking for library containing update_panels... " >&6; } 26388if test ${ac_cv_search_update_panels+y} 26389then : 26390 printf %s "(cached) " >&6 26391else $as_nop 26392 ac_func_search_save_LIBS=$LIBS 26393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26394/* end confdefs.h. */ 26395 26396/* Override any GCC internal prototype to avoid an error. 26397 Use char because int might match the return type of a GCC 26398 builtin and then its argument prototype would still apply. */ 26399char update_panels (); 26400int 26401main (void) 26402{ 26403return update_panels (); 26404 ; 26405 return 0; 26406} 26407_ACEOF 26408for ac_lib in '' panelw panel 26409do 26410 if test -z "$ac_lib"; then 26411 ac_res="none required" 26412 else 26413 ac_res=-l$ac_lib 26414 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 26415 fi 26416 if ac_fn_c_try_link "$LINENO" 26417then : 26418 ac_cv_search_update_panels=$ac_res 26419fi 26420rm -f core conftest.err conftest.$ac_objext conftest.beam \ 26421 conftest$ac_exeext 26422 if test ${ac_cv_search_update_panels+y} 26423then : 26424 break 26425fi 26426done 26427if test ${ac_cv_search_update_panels+y} 26428then : 26429 26430else $as_nop 26431 ac_cv_search_update_panels=no 26432fi 26433rm conftest.$ac_ext 26434LIBS=$ac_func_search_save_LIBS 26435fi 26436{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_update_panels" >&5 26437printf "%s\n" "$ac_cv_search_update_panels" >&6; } 26438ac_res=$ac_cv_search_update_panels 26439if test "$ac_res" != no 26440then : 26441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 26442 if test "x$have_panel" = xno 26443then : 26444 have_panel=yes 26445 PANEL_LIBS=${PANEL_LIBS-"$ac_cv_search_update_panels"} 26446fi 26447else $as_nop 26448 have_panel=no 26449fi 26450 26451 26452 26453 26454if test "have_curses" != "no" 26455then : 26456 26457CURSES_CFLAGS=$(echo $CURSES_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g') 26458 26459if test "x$ac_sys_system" = xDarwin 26460then : 26461 26462 26463 as_fn_append CURSES_CFLAGS " -D_XOPEN_SOURCE_EXTENDED=1" 26464 26465fi 26466 26467PANEL_CFLAGS=$(echo $PANEL_CFLAGS | sed 's/-D_XOPEN_SOURCE=600//g') 26468 26469# On Solaris, term.h requires curses.h 26470ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " 26471#define NCURSES_OPAQUE 0 26472#if defined(HAVE_NCURSESW_NCURSES_H) 26473# include <ncursesw/ncurses.h> 26474#elif defined(HAVE_NCURSESW_CURSES_H) 26475# include <ncursesw/curses.h> 26476#elif defined(HAVE_NCURSES_NCURSES_H) 26477# include <ncurses/ncurses.h> 26478#elif defined(HAVE_NCURSES_CURSES_H) 26479# include <ncurses/curses.h> 26480#elif defined(HAVE_NCURSES_H) 26481# include <ncurses.h> 26482#elif defined(HAVE_CURSES_H) 26483# include <curses.h> 26484#endif 26485 26486" 26487if test "x$ac_cv_header_term_h" = xyes 26488then : 26489 printf "%s\n" "#define HAVE_TERM_H 1" >>confdefs.h 26490 26491fi 26492 26493 26494# On HP/UX 11.0, mvwdelch is a block with a return statement 26495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 26496printf %s "checking whether mvwdelch is an expression... " >&6; } 26497if test ${ac_cv_mvwdelch_is_expression+y} 26498then : 26499 printf %s "(cached) " >&6 26500else $as_nop 26501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26502/* end confdefs.h. */ 26503 26504#define NCURSES_OPAQUE 0 26505#if defined(HAVE_NCURSESW_NCURSES_H) 26506# include <ncursesw/ncurses.h> 26507#elif defined(HAVE_NCURSESW_CURSES_H) 26508# include <ncursesw/curses.h> 26509#elif defined(HAVE_NCURSES_NCURSES_H) 26510# include <ncurses/ncurses.h> 26511#elif defined(HAVE_NCURSES_CURSES_H) 26512# include <ncurses/curses.h> 26513#elif defined(HAVE_NCURSES_H) 26514# include <ncurses.h> 26515#elif defined(HAVE_CURSES_H) 26516# include <curses.h> 26517#endif 26518 26519int 26520main (void) 26521{ 26522 26523 int rtn; 26524 rtn = mvwdelch(0,0,0); 26525 26526 ; 26527 return 0; 26528} 26529_ACEOF 26530if ac_fn_c_try_compile "$LINENO" 26531then : 26532 ac_cv_mvwdelch_is_expression=yes 26533else $as_nop 26534 ac_cv_mvwdelch_is_expression=no 26535fi 26536rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26537fi 26538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 26539printf "%s\n" "$ac_cv_mvwdelch_is_expression" >&6; } 26540 26541if test "$ac_cv_mvwdelch_is_expression" = yes 26542then 26543 26544printf "%s\n" "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h 26545 26546fi 26547 26548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 26549printf %s "checking whether WINDOW has _flags... " >&6; } 26550if test ${ac_cv_window_has_flags+y} 26551then : 26552 printf %s "(cached) " >&6 26553else $as_nop 26554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26555/* end confdefs.h. */ 26556 26557#define NCURSES_OPAQUE 0 26558#if defined(HAVE_NCURSESW_NCURSES_H) 26559# include <ncursesw/ncurses.h> 26560#elif defined(HAVE_NCURSESW_CURSES_H) 26561# include <ncursesw/curses.h> 26562#elif defined(HAVE_NCURSES_NCURSES_H) 26563# include <ncurses/ncurses.h> 26564#elif defined(HAVE_NCURSES_CURSES_H) 26565# include <ncurses/curses.h> 26566#elif defined(HAVE_NCURSES_H) 26567# include <ncurses.h> 26568#elif defined(HAVE_CURSES_H) 26569# include <curses.h> 26570#endif 26571 26572int 26573main (void) 26574{ 26575 26576 WINDOW *w; 26577 w->_flags = 0; 26578 26579 ; 26580 return 0; 26581} 26582_ACEOF 26583if ac_fn_c_try_compile "$LINENO" 26584then : 26585 ac_cv_window_has_flags=yes 26586else $as_nop 26587 ac_cv_window_has_flags=no 26588fi 26589rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26590fi 26591{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 26592printf "%s\n" "$ac_cv_window_has_flags" >&6; } 26593 26594 26595if test "$ac_cv_window_has_flags" = yes 26596then 26597 26598printf "%s\n" "#define WINDOW_HAS_FLAGS 1" >>confdefs.h 26599 26600fi 26601 26602 26603 26604 26605 26606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_pad" >&5 26607printf %s "checking for curses function is_pad... " >&6; } 26608if test ${ac_cv_lib_curses_is_pad+y} 26609then : 26610 printf %s "(cached) " >&6 26611else $as_nop 26612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26613/* end confdefs.h. */ 26614 26615#define NCURSES_OPAQUE 0 26616#if defined(HAVE_NCURSESW_NCURSES_H) 26617# include <ncursesw/ncurses.h> 26618#elif defined(HAVE_NCURSESW_CURSES_H) 26619# include <ncursesw/curses.h> 26620#elif defined(HAVE_NCURSES_NCURSES_H) 26621# include <ncurses/ncurses.h> 26622#elif defined(HAVE_NCURSES_CURSES_H) 26623# include <ncurses/curses.h> 26624#elif defined(HAVE_NCURSES_H) 26625# include <ncurses.h> 26626#elif defined(HAVE_CURSES_H) 26627# include <curses.h> 26628#endif 26629 26630int 26631main (void) 26632{ 26633 26634 #ifndef is_pad 26635 void *x=is_pad 26636 #endif 26637 26638 ; 26639 return 0; 26640} 26641_ACEOF 26642if ac_fn_c_try_compile "$LINENO" 26643then : 26644 ac_cv_lib_curses_is_pad=yes 26645else $as_nop 26646 ac_cv_lib_curses_is_pad=no 26647fi 26648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26649 26650fi 26651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_pad" >&5 26652printf "%s\n" "$ac_cv_lib_curses_is_pad" >&6; } 26653 if test "x$ac_cv_lib_curses_is_pad" = xyes 26654then : 26655 26656printf "%s\n" "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h 26657 26658fi 26659 26660 26661 26662 26663 26664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function is_term_resized" >&5 26665printf %s "checking for curses function is_term_resized... " >&6; } 26666if test ${ac_cv_lib_curses_is_term_resized+y} 26667then : 26668 printf %s "(cached) " >&6 26669else $as_nop 26670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26671/* end confdefs.h. */ 26672 26673#define NCURSES_OPAQUE 0 26674#if defined(HAVE_NCURSESW_NCURSES_H) 26675# include <ncursesw/ncurses.h> 26676#elif defined(HAVE_NCURSESW_CURSES_H) 26677# include <ncursesw/curses.h> 26678#elif defined(HAVE_NCURSES_NCURSES_H) 26679# include <ncurses/ncurses.h> 26680#elif defined(HAVE_NCURSES_CURSES_H) 26681# include <ncurses/curses.h> 26682#elif defined(HAVE_NCURSES_H) 26683# include <ncurses.h> 26684#elif defined(HAVE_CURSES_H) 26685# include <curses.h> 26686#endif 26687 26688int 26689main (void) 26690{ 26691 26692 #ifndef is_term_resized 26693 void *x=is_term_resized 26694 #endif 26695 26696 ; 26697 return 0; 26698} 26699_ACEOF 26700if ac_fn_c_try_compile "$LINENO" 26701then : 26702 ac_cv_lib_curses_is_term_resized=yes 26703else $as_nop 26704 ac_cv_lib_curses_is_term_resized=no 26705fi 26706rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26707 26708fi 26709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_is_term_resized" >&5 26710printf "%s\n" "$ac_cv_lib_curses_is_term_resized" >&6; } 26711 if test "x$ac_cv_lib_curses_is_term_resized" = xyes 26712then : 26713 26714printf "%s\n" "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h 26715 26716fi 26717 26718 26719 26720 26721 26722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resize_term" >&5 26723printf %s "checking for curses function resize_term... " >&6; } 26724if test ${ac_cv_lib_curses_resize_term+y} 26725then : 26726 printf %s "(cached) " >&6 26727else $as_nop 26728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26729/* end confdefs.h. */ 26730 26731#define NCURSES_OPAQUE 0 26732#if defined(HAVE_NCURSESW_NCURSES_H) 26733# include <ncursesw/ncurses.h> 26734#elif defined(HAVE_NCURSESW_CURSES_H) 26735# include <ncursesw/curses.h> 26736#elif defined(HAVE_NCURSES_NCURSES_H) 26737# include <ncurses/ncurses.h> 26738#elif defined(HAVE_NCURSES_CURSES_H) 26739# include <ncurses/curses.h> 26740#elif defined(HAVE_NCURSES_H) 26741# include <ncurses.h> 26742#elif defined(HAVE_CURSES_H) 26743# include <curses.h> 26744#endif 26745 26746int 26747main (void) 26748{ 26749 26750 #ifndef resize_term 26751 void *x=resize_term 26752 #endif 26753 26754 ; 26755 return 0; 26756} 26757_ACEOF 26758if ac_fn_c_try_compile "$LINENO" 26759then : 26760 ac_cv_lib_curses_resize_term=yes 26761else $as_nop 26762 ac_cv_lib_curses_resize_term=no 26763fi 26764rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26765 26766fi 26767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resize_term" >&5 26768printf "%s\n" "$ac_cv_lib_curses_resize_term" >&6; } 26769 if test "x$ac_cv_lib_curses_resize_term" = xyes 26770then : 26771 26772printf "%s\n" "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h 26773 26774fi 26775 26776 26777 26778 26779 26780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function resizeterm" >&5 26781printf %s "checking for curses function resizeterm... " >&6; } 26782if test ${ac_cv_lib_curses_resizeterm+y} 26783then : 26784 printf %s "(cached) " >&6 26785else $as_nop 26786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26787/* end confdefs.h. */ 26788 26789#define NCURSES_OPAQUE 0 26790#if defined(HAVE_NCURSESW_NCURSES_H) 26791# include <ncursesw/ncurses.h> 26792#elif defined(HAVE_NCURSESW_CURSES_H) 26793# include <ncursesw/curses.h> 26794#elif defined(HAVE_NCURSES_NCURSES_H) 26795# include <ncurses/ncurses.h> 26796#elif defined(HAVE_NCURSES_CURSES_H) 26797# include <ncurses/curses.h> 26798#elif defined(HAVE_NCURSES_H) 26799# include <ncurses.h> 26800#elif defined(HAVE_CURSES_H) 26801# include <curses.h> 26802#endif 26803 26804int 26805main (void) 26806{ 26807 26808 #ifndef resizeterm 26809 void *x=resizeterm 26810 #endif 26811 26812 ; 26813 return 0; 26814} 26815_ACEOF 26816if ac_fn_c_try_compile "$LINENO" 26817then : 26818 ac_cv_lib_curses_resizeterm=yes 26819else $as_nop 26820 ac_cv_lib_curses_resizeterm=no 26821fi 26822rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26823 26824fi 26825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_resizeterm" >&5 26826printf "%s\n" "$ac_cv_lib_curses_resizeterm" >&6; } 26827 if test "x$ac_cv_lib_curses_resizeterm" = xyes 26828then : 26829 26830printf "%s\n" "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h 26831 26832fi 26833 26834 26835 26836 26837 26838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function immedok" >&5 26839printf %s "checking for curses function immedok... " >&6; } 26840if test ${ac_cv_lib_curses_immedok+y} 26841then : 26842 printf %s "(cached) " >&6 26843else $as_nop 26844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26845/* end confdefs.h. */ 26846 26847#define NCURSES_OPAQUE 0 26848#if defined(HAVE_NCURSESW_NCURSES_H) 26849# include <ncursesw/ncurses.h> 26850#elif defined(HAVE_NCURSESW_CURSES_H) 26851# include <ncursesw/curses.h> 26852#elif defined(HAVE_NCURSES_NCURSES_H) 26853# include <ncurses/ncurses.h> 26854#elif defined(HAVE_NCURSES_CURSES_H) 26855# include <ncurses/curses.h> 26856#elif defined(HAVE_NCURSES_H) 26857# include <ncurses.h> 26858#elif defined(HAVE_CURSES_H) 26859# include <curses.h> 26860#endif 26861 26862int 26863main (void) 26864{ 26865 26866 #ifndef immedok 26867 void *x=immedok 26868 #endif 26869 26870 ; 26871 return 0; 26872} 26873_ACEOF 26874if ac_fn_c_try_compile "$LINENO" 26875then : 26876 ac_cv_lib_curses_immedok=yes 26877else $as_nop 26878 ac_cv_lib_curses_immedok=no 26879fi 26880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26881 26882fi 26883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_immedok" >&5 26884printf "%s\n" "$ac_cv_lib_curses_immedok" >&6; } 26885 if test "x$ac_cv_lib_curses_immedok" = xyes 26886then : 26887 26888printf "%s\n" "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h 26889 26890fi 26891 26892 26893 26894 26895 26896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function syncok" >&5 26897printf %s "checking for curses function syncok... " >&6; } 26898if test ${ac_cv_lib_curses_syncok+y} 26899then : 26900 printf %s "(cached) " >&6 26901else $as_nop 26902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26903/* end confdefs.h. */ 26904 26905#define NCURSES_OPAQUE 0 26906#if defined(HAVE_NCURSESW_NCURSES_H) 26907# include <ncursesw/ncurses.h> 26908#elif defined(HAVE_NCURSESW_CURSES_H) 26909# include <ncursesw/curses.h> 26910#elif defined(HAVE_NCURSES_NCURSES_H) 26911# include <ncurses/ncurses.h> 26912#elif defined(HAVE_NCURSES_CURSES_H) 26913# include <ncurses/curses.h> 26914#elif defined(HAVE_NCURSES_H) 26915# include <ncurses.h> 26916#elif defined(HAVE_CURSES_H) 26917# include <curses.h> 26918#endif 26919 26920int 26921main (void) 26922{ 26923 26924 #ifndef syncok 26925 void *x=syncok 26926 #endif 26927 26928 ; 26929 return 0; 26930} 26931_ACEOF 26932if ac_fn_c_try_compile "$LINENO" 26933then : 26934 ac_cv_lib_curses_syncok=yes 26935else $as_nop 26936 ac_cv_lib_curses_syncok=no 26937fi 26938rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26939 26940fi 26941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_syncok" >&5 26942printf "%s\n" "$ac_cv_lib_curses_syncok" >&6; } 26943 if test "x$ac_cv_lib_curses_syncok" = xyes 26944then : 26945 26946printf "%s\n" "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h 26947 26948fi 26949 26950 26951 26952 26953 26954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function wchgat" >&5 26955printf %s "checking for curses function wchgat... " >&6; } 26956if test ${ac_cv_lib_curses_wchgat+y} 26957then : 26958 printf %s "(cached) " >&6 26959else $as_nop 26960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26961/* end confdefs.h. */ 26962 26963#define NCURSES_OPAQUE 0 26964#if defined(HAVE_NCURSESW_NCURSES_H) 26965# include <ncursesw/ncurses.h> 26966#elif defined(HAVE_NCURSESW_CURSES_H) 26967# include <ncursesw/curses.h> 26968#elif defined(HAVE_NCURSES_NCURSES_H) 26969# include <ncurses/ncurses.h> 26970#elif defined(HAVE_NCURSES_CURSES_H) 26971# include <ncurses/curses.h> 26972#elif defined(HAVE_NCURSES_H) 26973# include <ncurses.h> 26974#elif defined(HAVE_CURSES_H) 26975# include <curses.h> 26976#endif 26977 26978int 26979main (void) 26980{ 26981 26982 #ifndef wchgat 26983 void *x=wchgat 26984 #endif 26985 26986 ; 26987 return 0; 26988} 26989_ACEOF 26990if ac_fn_c_try_compile "$LINENO" 26991then : 26992 ac_cv_lib_curses_wchgat=yes 26993else $as_nop 26994 ac_cv_lib_curses_wchgat=no 26995fi 26996rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 26997 26998fi 26999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_wchgat" >&5 27000printf "%s\n" "$ac_cv_lib_curses_wchgat" >&6; } 27001 if test "x$ac_cv_lib_curses_wchgat" = xyes 27002then : 27003 27004printf "%s\n" "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h 27005 27006fi 27007 27008 27009 27010 27011 27012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function filter" >&5 27013printf %s "checking for curses function filter... " >&6; } 27014if test ${ac_cv_lib_curses_filter+y} 27015then : 27016 printf %s "(cached) " >&6 27017else $as_nop 27018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27019/* end confdefs.h. */ 27020 27021#define NCURSES_OPAQUE 0 27022#if defined(HAVE_NCURSESW_NCURSES_H) 27023# include <ncursesw/ncurses.h> 27024#elif defined(HAVE_NCURSESW_CURSES_H) 27025# include <ncursesw/curses.h> 27026#elif defined(HAVE_NCURSES_NCURSES_H) 27027# include <ncurses/ncurses.h> 27028#elif defined(HAVE_NCURSES_CURSES_H) 27029# include <ncurses/curses.h> 27030#elif defined(HAVE_NCURSES_H) 27031# include <ncurses.h> 27032#elif defined(HAVE_CURSES_H) 27033# include <curses.h> 27034#endif 27035 27036int 27037main (void) 27038{ 27039 27040 #ifndef filter 27041 void *x=filter 27042 #endif 27043 27044 ; 27045 return 0; 27046} 27047_ACEOF 27048if ac_fn_c_try_compile "$LINENO" 27049then : 27050 ac_cv_lib_curses_filter=yes 27051else $as_nop 27052 ac_cv_lib_curses_filter=no 27053fi 27054rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27055 27056fi 27057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_filter" >&5 27058printf "%s\n" "$ac_cv_lib_curses_filter" >&6; } 27059 if test "x$ac_cv_lib_curses_filter" = xyes 27060then : 27061 27062printf "%s\n" "#define HAVE_CURSES_FILTER 1" >>confdefs.h 27063 27064fi 27065 27066 27067 27068 27069 27070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function has_key" >&5 27071printf %s "checking for curses function has_key... " >&6; } 27072if test ${ac_cv_lib_curses_has_key+y} 27073then : 27074 printf %s "(cached) " >&6 27075else $as_nop 27076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27077/* end confdefs.h. */ 27078 27079#define NCURSES_OPAQUE 0 27080#if defined(HAVE_NCURSESW_NCURSES_H) 27081# include <ncursesw/ncurses.h> 27082#elif defined(HAVE_NCURSESW_CURSES_H) 27083# include <ncursesw/curses.h> 27084#elif defined(HAVE_NCURSES_NCURSES_H) 27085# include <ncurses/ncurses.h> 27086#elif defined(HAVE_NCURSES_CURSES_H) 27087# include <ncurses/curses.h> 27088#elif defined(HAVE_NCURSES_H) 27089# include <ncurses.h> 27090#elif defined(HAVE_CURSES_H) 27091# include <curses.h> 27092#endif 27093 27094int 27095main (void) 27096{ 27097 27098 #ifndef has_key 27099 void *x=has_key 27100 #endif 27101 27102 ; 27103 return 0; 27104} 27105_ACEOF 27106if ac_fn_c_try_compile "$LINENO" 27107then : 27108 ac_cv_lib_curses_has_key=yes 27109else $as_nop 27110 ac_cv_lib_curses_has_key=no 27111fi 27112rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27113 27114fi 27115{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_has_key" >&5 27116printf "%s\n" "$ac_cv_lib_curses_has_key" >&6; } 27117 if test "x$ac_cv_lib_curses_has_key" = xyes 27118then : 27119 27120printf "%s\n" "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h 27121 27122fi 27123 27124 27125 27126 27127 27128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function typeahead" >&5 27129printf %s "checking for curses function typeahead... " >&6; } 27130if test ${ac_cv_lib_curses_typeahead+y} 27131then : 27132 printf %s "(cached) " >&6 27133else $as_nop 27134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27135/* end confdefs.h. */ 27136 27137#define NCURSES_OPAQUE 0 27138#if defined(HAVE_NCURSESW_NCURSES_H) 27139# include <ncursesw/ncurses.h> 27140#elif defined(HAVE_NCURSESW_CURSES_H) 27141# include <ncursesw/curses.h> 27142#elif defined(HAVE_NCURSES_NCURSES_H) 27143# include <ncurses/ncurses.h> 27144#elif defined(HAVE_NCURSES_CURSES_H) 27145# include <ncurses/curses.h> 27146#elif defined(HAVE_NCURSES_H) 27147# include <ncurses.h> 27148#elif defined(HAVE_CURSES_H) 27149# include <curses.h> 27150#endif 27151 27152int 27153main (void) 27154{ 27155 27156 #ifndef typeahead 27157 void *x=typeahead 27158 #endif 27159 27160 ; 27161 return 0; 27162} 27163_ACEOF 27164if ac_fn_c_try_compile "$LINENO" 27165then : 27166 ac_cv_lib_curses_typeahead=yes 27167else $as_nop 27168 ac_cv_lib_curses_typeahead=no 27169fi 27170rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27171 27172fi 27173{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_typeahead" >&5 27174printf "%s\n" "$ac_cv_lib_curses_typeahead" >&6; } 27175 if test "x$ac_cv_lib_curses_typeahead" = xyes 27176then : 27177 27178printf "%s\n" "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h 27179 27180fi 27181 27182 27183 27184 27185 27186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for curses function use_env" >&5 27187printf %s "checking for curses function use_env... " >&6; } 27188if test ${ac_cv_lib_curses_use_env+y} 27189then : 27190 printf %s "(cached) " >&6 27191else $as_nop 27192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27193/* end confdefs.h. */ 27194 27195#define NCURSES_OPAQUE 0 27196#if defined(HAVE_NCURSESW_NCURSES_H) 27197# include <ncursesw/ncurses.h> 27198#elif defined(HAVE_NCURSESW_CURSES_H) 27199# include <ncursesw/curses.h> 27200#elif defined(HAVE_NCURSES_NCURSES_H) 27201# include <ncurses/ncurses.h> 27202#elif defined(HAVE_NCURSES_CURSES_H) 27203# include <ncurses/curses.h> 27204#elif defined(HAVE_NCURSES_H) 27205# include <ncurses.h> 27206#elif defined(HAVE_CURSES_H) 27207# include <curses.h> 27208#endif 27209 27210int 27211main (void) 27212{ 27213 27214 #ifndef use_env 27215 void *x=use_env 27216 #endif 27217 27218 ; 27219 return 0; 27220} 27221_ACEOF 27222if ac_fn_c_try_compile "$LINENO" 27223then : 27224 ac_cv_lib_curses_use_env=yes 27225else $as_nop 27226 ac_cv_lib_curses_use_env=no 27227fi 27228rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27229 27230fi 27231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_use_env" >&5 27232printf "%s\n" "$ac_cv_lib_curses_use_env" >&6; } 27233 if test "x$ac_cv_lib_curses_use_env" = xyes 27234then : 27235 27236printf "%s\n" "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h 27237 27238fi 27239 27240 27241 27242CPPFLAGS=$ac_save_cppflags 27243 27244fi 27245CFLAGS=$save_CFLAGS 27246CPPFLAGS=$save_CPPFLAGS 27247LDFLAGS=$save_LDFLAGS 27248LIBS=$save_LIBS 27249 27250 27251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 27252printf "%s\n" "$as_me: checking for device files" >&6;} 27253 27254if test "$ac_sys_system" = "Linux-android" || test "$ac_sys_system" = "iOS"; then 27255 ac_cv_file__dev_ptmx=no 27256 ac_cv_file__dev_ptc=no 27257else 27258 if test "x$cross_compiling" = xyes; then 27259 if test "${ac_cv_file__dev_ptmx+set}" != set; then 27260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 27261printf %s "checking for /dev/ptmx... " >&6; } 27262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 27263printf "%s\n" "not set" >&6; } 27264 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 27265 fi 27266 if test "${ac_cv_file__dev_ptc+set}" != set; then 27267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 27268printf %s "checking for /dev/ptc... " >&6; } 27269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not set" >&5 27270printf "%s\n" "not set" >&6; } 27271 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 27272 fi 27273 fi 27274 27275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 27276printf %s "checking for /dev/ptmx... " >&6; } 27277if test ${ac_cv_file__dev_ptmx+y} 27278then : 27279 printf %s "(cached) " >&6 27280else $as_nop 27281 test "$cross_compiling" = yes && 27282 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 27283if test -r "/dev/ptmx"; then 27284 ac_cv_file__dev_ptmx=yes 27285else 27286 ac_cv_file__dev_ptmx=no 27287fi 27288fi 27289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 27290printf "%s\n" "$ac_cv_file__dev_ptmx" >&6; } 27291if test "x$ac_cv_file__dev_ptmx" = xyes 27292then : 27293 27294fi 27295 27296 if test "x$ac_cv_file__dev_ptmx" = xyes; then 27297 27298printf "%s\n" "#define HAVE_DEV_PTMX 1" >>confdefs.h 27299 27300 fi 27301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 27302printf %s "checking for /dev/ptc... " >&6; } 27303if test ${ac_cv_file__dev_ptc+y} 27304then : 27305 printf %s "(cached) " >&6 27306else $as_nop 27307 test "$cross_compiling" = yes && 27308 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 27309if test -r "/dev/ptc"; then 27310 ac_cv_file__dev_ptc=yes 27311else 27312 ac_cv_file__dev_ptc=no 27313fi 27314fi 27315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 27316printf "%s\n" "$ac_cv_file__dev_ptc" >&6; } 27317if test "x$ac_cv_file__dev_ptc" = xyes 27318then : 27319 27320fi 27321 27322 if test "x$ac_cv_file__dev_ptc" = xyes; then 27323 27324printf "%s\n" "#define HAVE_DEV_PTC 1" >>confdefs.h 27325 27326 fi 27327fi 27328 27329if test $ac_sys_system = Darwin 27330then 27331 LIBS="$LIBS -framework CoreFoundation" 27332fi 27333 27334ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 27335#ifdef HAVE_SYS_TYPES_H 27336#include <sys/types.h> 27337#endif 27338#ifdef HAVE_SYS_SOCKET_H 27339#include <sys/socket.h> 27340#endif 27341 27342" 27343if test "x$ac_cv_type_socklen_t" = xyes 27344then : 27345 27346printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h 27347 27348 27349else $as_nop 27350 27351printf "%s\n" "#define socklen_t int" >>confdefs.h 27352 27353fi 27354 27355 27356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 27357printf %s "checking for broken mbstowcs... " >&6; } 27358if test ${ac_cv_broken_mbstowcs+y} 27359then : 27360 printf %s "(cached) " >&6 27361else $as_nop 27362 if test "$cross_compiling" = yes 27363then : 27364 ac_cv_broken_mbstowcs=no 27365else $as_nop 27366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27367/* end confdefs.h. */ 27368 27369#include <stddef.h> 27370#include <stdio.h> 27371#include <stdlib.h> 27372int main(void) { 27373 size_t len = -1; 27374 const char *str = "text"; 27375 len = mbstowcs(NULL, str, 0); 27376 return (len != 4); 27377} 27378 27379_ACEOF 27380if ac_fn_c_try_run "$LINENO" 27381then : 27382 ac_cv_broken_mbstowcs=no 27383else $as_nop 27384 ac_cv_broken_mbstowcs=yes 27385fi 27386rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27387 conftest.$ac_objext conftest.beam conftest.$ac_ext 27388fi 27389 27390fi 27391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 27392printf "%s\n" "$ac_cv_broken_mbstowcs" >&6; } 27393if test "$ac_cv_broken_mbstowcs" = yes 27394then 27395 27396printf "%s\n" "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h 27397 27398fi 27399 27400# Check for --with-computed-gotos 27401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 27402printf %s "checking for --with-computed-gotos... " >&6; } 27403 27404# Check whether --with-computed-gotos was given. 27405if test ${with_computed_gotos+y} 27406then : 27407 withval=$with_computed_gotos; 27408if test "$withval" = yes 27409then 27410 27411printf "%s\n" "#define USE_COMPUTED_GOTOS 1" >>confdefs.h 27412 27413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27414printf "%s\n" "yes" >&6; } 27415fi 27416if test "$withval" = no 27417then 27418 27419printf "%s\n" "#define USE_COMPUTED_GOTOS 0" >>confdefs.h 27420 27421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 27422printf "%s\n" "no" >&6; } 27423fi 27424 27425else $as_nop 27426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 27427printf "%s\n" "no value specified" >&6; } 27428fi 27429 27430 27431{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 27432printf %s "checking whether $CC supports computed gotos... " >&6; } 27433if test ${ac_cv_computed_gotos+y} 27434then : 27435 printf %s "(cached) " >&6 27436else $as_nop 27437 if test "$cross_compiling" = yes 27438then : 27439 if test "${with_computed_gotos+set}" = set; then 27440 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" 27441 else 27442 ac_cv_computed_gotos=no 27443 fi 27444else $as_nop 27445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27446/* end confdefs.h. */ 27447 27448int main(int argc, char **argv) 27449{ 27450 static void *targets[1] = { &&LABEL1 }; 27451 goto LABEL2; 27452LABEL1: 27453 return 0; 27454LABEL2: 27455 goto *targets[0]; 27456 return 1; 27457} 27458 27459_ACEOF 27460if ac_fn_c_try_run "$LINENO" 27461then : 27462 ac_cv_computed_gotos=yes 27463else $as_nop 27464 ac_cv_computed_gotos=no 27465fi 27466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27467 conftest.$ac_objext conftest.beam conftest.$ac_ext 27468fi 27469 27470fi 27471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 27472printf "%s\n" "$ac_cv_computed_gotos" >&6; } 27473case "$ac_cv_computed_gotos" in yes*) 27474 27475printf "%s\n" "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h 27476 27477esac 27478 27479case $ac_sys_system in 27480AIX*) 27481 27482printf "%s\n" "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h 27483 ;; 27484esac 27485 27486 27487 27488 27489for h in `(cd $srcdir;echo Python/thread_*.h)` 27490do 27491 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" 27492done 27493 27494 27495SRCDIRS="\ 27496 Modules \ 27497 Modules/_blake2 \ 27498 Modules/_ctypes \ 27499 Modules/_decimal \ 27500 Modules/_decimal/libmpdec \ 27501 Modules/_hacl \ 27502 Modules/_io \ 27503 Modules/_multiprocessing \ 27504 Modules/_sqlite \ 27505 Modules/_sre \ 27506 Modules/_testcapi \ 27507 Modules/_testinternalcapi \ 27508 Modules/_testlimitedcapi \ 27509 Modules/_xxtestfuzz \ 27510 Modules/cjkcodecs \ 27511 Modules/expat \ 27512 Objects \ 27513 Objects/mimalloc \ 27514 Objects/mimalloc/prim \ 27515 Parser \ 27516 Parser/tokenizer \ 27517 Parser/lexer \ 27518 Programs \ 27519 Python \ 27520 Python/frozen_modules" 27521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 27522printf %s "checking for build directories... " >&6; } 27523for dir in $SRCDIRS; do 27524 if test ! -d $dir; then 27525 mkdir $dir 27526 fi 27527done 27528{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 27529printf "%s\n" "done" >&6; } 27530 27531# Availability of -O2: 27532{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 27533printf %s "checking for -O2... " >&6; } 27534if test ${ac_cv_compile_o2+y} 27535then : 27536 printf %s "(cached) " >&6 27537else $as_nop 27538 27539saved_cflags="$CFLAGS" 27540CFLAGS="-O2" 27541cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27542/* end confdefs.h. */ 27543 27544int 27545main (void) 27546{ 27547 27548 ; 27549 return 0; 27550} 27551_ACEOF 27552if ac_fn_c_try_compile "$LINENO" 27553then : 27554 ac_cv_compile_o2=yes 27555else $as_nop 27556 ac_cv_compile_o2=no 27557fi 27558rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 27559CFLAGS="$saved_cflags" 27560 27561fi 27562{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_compile_o2" >&5 27563printf "%s\n" "$ac_cv_compile_o2" >&6; } 27564 27565# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: 27566# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html 27567{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 27568printf %s "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } 27569saved_cflags="$CFLAGS" 27570CFLAGS="-O2 -D_FORTIFY_SOURCE=2" 27571if test "$ac_cv_compile_o2" = no; then 27572 CFLAGS="" 27573fi 27574if test "$cross_compiling" = yes 27575then : 27576 have_glibc_memmove_bug=undefined 27577else $as_nop 27578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27579/* end confdefs.h. */ 27580 27581#include <stdio.h> 27582#include <stdlib.h> 27583#include <string.h> 27584void foo(void *p, void *q) { memmove(p, q, 19); } 27585int main(void) { 27586 char a[32] = "123456789000000000"; 27587 foo(&a[9], a); 27588 if (strcmp(a, "123456789123456789000000000") != 0) 27589 return 1; 27590 foo(a, &a[9]); 27591 if (strcmp(a, "123456789000000000") != 0) 27592 return 1; 27593 return 0; 27594} 27595 27596_ACEOF 27597if ac_fn_c_try_run "$LINENO" 27598then : 27599 have_glibc_memmove_bug=no 27600else $as_nop 27601 have_glibc_memmove_bug=yes 27602fi 27603rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27604 conftest.$ac_objext conftest.beam conftest.$ac_ext 27605fi 27606 27607CFLAGS="$saved_cflags" 27608{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 27609printf "%s\n" "$have_glibc_memmove_bug" >&6; } 27610if test "$have_glibc_memmove_bug" = yes; then 27611 27612printf "%s\n" "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h 27613 27614fi 27615 27616if test "$ac_cv_gcc_asm_for_x87" = yes; then 27617 # Some versions of gcc miscompile inline asm: 27618 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 27619 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html 27620 case $CC in 27621 *gcc*) 27622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 27623printf %s "checking for gcc ipa-pure-const bug... " >&6; } 27624 saved_cflags="$CFLAGS" 27625 CFLAGS="-O2" 27626 if test "$cross_compiling" = yes 27627then : 27628 have_ipa_pure_const_bug=undefined 27629else $as_nop 27630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27631/* end confdefs.h. */ 27632 27633 __attribute__((noinline)) int 27634 foo(int *p) { 27635 int r; 27636 asm ( "movl \$6, (%1)\n\t" 27637 "xorl %0, %0\n\t" 27638 : "=r" (r) : "r" (p) : "memory" 27639 ); 27640 return r; 27641 } 27642 int main(void) { 27643 int p = 8; 27644 if ((foo(&p) ? : p) != 6) 27645 return 1; 27646 return 0; 27647 } 27648 27649_ACEOF 27650if ac_fn_c_try_run "$LINENO" 27651then : 27652 have_ipa_pure_const_bug=no 27653else $as_nop 27654 have_ipa_pure_const_bug=yes 27655fi 27656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 27657 conftest.$ac_objext conftest.beam conftest.$ac_ext 27658fi 27659 27660 CFLAGS="$saved_cflags" 27661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 27662printf "%s\n" "$have_ipa_pure_const_bug" >&6; } 27663 if test "$have_ipa_pure_const_bug" = yes; then 27664 27665printf "%s\n" "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h 27666 27667 fi 27668 ;; 27669 esac 27670fi 27671 27672# ensurepip option 27673{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 27674printf %s "checking for ensurepip... " >&6; } 27675 27676# Check whether --with-ensurepip was given. 27677if test ${with_ensurepip+y} 27678then : 27679 withval=$with_ensurepip; 27680else $as_nop 27681 27682 case $ac_sys_system in #( 27683 Emscripten) : 27684 with_ensurepip=no ;; #( 27685 WASI) : 27686 with_ensurepip=no ;; #( 27687 iOS) : 27688 with_ensurepip=no ;; #( 27689 *) : 27690 with_ensurepip=upgrade 27691 ;; 27692esac 27693 27694fi 27695 27696case $with_ensurepip in #( 27697 yes|upgrade) : 27698 ENSUREPIP=upgrade ;; #( 27699 install) : 27700 ENSUREPIP=install ;; #( 27701 no) : 27702 ENSUREPIP=no ;; #( 27703 *) : 27704 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; 27705esac 27706{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 27707printf "%s\n" "$ENSUREPIP" >&6; } 27708 27709 27710# check if the dirent structure of a d_type field and DT_UNKNOWN is defined 27711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 27712printf %s "checking if the dirent structure of a d_type field... " >&6; } 27713if test ${ac_cv_dirent_d_type+y} 27714then : 27715 printf %s "(cached) " >&6 27716else $as_nop 27717 27718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27719/* end confdefs.h. */ 27720 27721 27722 #include <dirent.h> 27723 27724 int main(void) { 27725 struct dirent entry; 27726 return entry.d_type == DT_UNKNOWN; 27727 } 27728 27729 27730_ACEOF 27731if ac_fn_c_try_link "$LINENO" 27732then : 27733 ac_cv_dirent_d_type=yes 27734else $as_nop 27735 ac_cv_dirent_d_type=no 27736fi 27737rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27738 conftest$ac_exeext conftest.$ac_ext 27739 27740fi 27741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dirent_d_type" >&5 27742printf "%s\n" "$ac_cv_dirent_d_type" >&6; } 27743 27744if test "x$ac_cv_dirent_d_type" = xyes 27745then : 27746 27747 27748printf "%s\n" "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h 27749 27750 27751fi 27752 27753# check if the Linux getrandom() syscall is available 27754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 27755printf %s "checking for the Linux getrandom() syscall... " >&6; } 27756if test ${ac_cv_getrandom_syscall+y} 27757then : 27758 printf %s "(cached) " >&6 27759else $as_nop 27760 27761cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27762/* end confdefs.h. */ 27763 27764 27765 #include <stddef.h> 27766 #include <unistd.h> 27767 #include <sys/syscall.h> 27768 #include <linux/random.h> 27769 27770 int main(void) { 27771 char buffer[1]; 27772 const size_t buflen = sizeof(buffer); 27773 const int flags = GRND_NONBLOCK; 27774 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ 27775 (void)syscall(SYS_getrandom, buffer, buflen, flags); 27776 return 0; 27777 } 27778 27779 27780_ACEOF 27781if ac_fn_c_try_link "$LINENO" 27782then : 27783 ac_cv_getrandom_syscall=yes 27784else $as_nop 27785 ac_cv_getrandom_syscall=no 27786fi 27787rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27788 conftest$ac_exeext conftest.$ac_ext 27789 27790fi 27791{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_getrandom_syscall" >&5 27792printf "%s\n" "$ac_cv_getrandom_syscall" >&6; } 27793 27794if test "x$ac_cv_getrandom_syscall" = xyes 27795then : 27796 27797 27798printf "%s\n" "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h 27799 27800 27801fi 27802 27803# check if the getrandom() function is available 27804# the test was written for the Solaris function of <sys/random.h> 27805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 27806printf %s "checking for the getrandom() function... " >&6; } 27807if test ${ac_cv_func_getrandom+y} 27808then : 27809 printf %s "(cached) " >&6 27810else $as_nop 27811 27812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27813/* end confdefs.h. */ 27814 27815 27816 #include <stddef.h> 27817 #include <sys/random.h> 27818 27819 int main(void) { 27820 char buffer[1]; 27821 const size_t buflen = sizeof(buffer); 27822 const int flags = 0; 27823 /* ignore the result, Python checks for ENOSYS at runtime */ 27824 (void)getrandom(buffer, buflen, flags); 27825 return 0; 27826 } 27827 27828 27829_ACEOF 27830if ac_fn_c_try_link "$LINENO" 27831then : 27832 ac_cv_func_getrandom=yes 27833else $as_nop 27834 ac_cv_func_getrandom=no 27835fi 27836rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27837 conftest$ac_exeext conftest.$ac_ext 27838 27839fi 27840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getrandom" >&5 27841printf "%s\n" "$ac_cv_func_getrandom" >&6; } 27842 27843if test "x$ac_cv_func_getrandom" = xyes 27844then : 27845 27846 27847printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h 27848 27849 27850fi 27851 27852# checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c 27853# shm_* may only be available if linking against librt 27854POSIXSHMEM_CFLAGS='-I$(srcdir)/Modules/_multiprocessing' 27855save_CFLAGS=$CFLAGS 27856save_CPPFLAGS=$CPPFLAGS 27857save_LDFLAGS=$LDFLAGS 27858save_LIBS=$LIBS 27859 27860 27861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 27862printf %s "checking for library containing shm_open... " >&6; } 27863if test ${ac_cv_search_shm_open+y} 27864then : 27865 printf %s "(cached) " >&6 27866else $as_nop 27867 ac_func_search_save_LIBS=$LIBS 27868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27869/* end confdefs.h. */ 27870 27871/* Override any GCC internal prototype to avoid an error. 27872 Use char because int might match the return type of a GCC 27873 builtin and then its argument prototype would still apply. */ 27874char shm_open (); 27875int 27876main (void) 27877{ 27878return shm_open (); 27879 ; 27880 return 0; 27881} 27882_ACEOF 27883for ac_lib in '' rt 27884do 27885 if test -z "$ac_lib"; then 27886 ac_res="none required" 27887 else 27888 ac_res=-l$ac_lib 27889 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 27890 fi 27891 if ac_fn_c_try_link "$LINENO" 27892then : 27893 ac_cv_search_shm_open=$ac_res 27894fi 27895rm -f core conftest.err conftest.$ac_objext conftest.beam \ 27896 conftest$ac_exeext 27897 if test ${ac_cv_search_shm_open+y} 27898then : 27899 break 27900fi 27901done 27902if test ${ac_cv_search_shm_open+y} 27903then : 27904 27905else $as_nop 27906 ac_cv_search_shm_open=no 27907fi 27908rm conftest.$ac_ext 27909LIBS=$ac_func_search_save_LIBS 27910fi 27911{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 27912printf "%s\n" "$ac_cv_search_shm_open" >&6; } 27913ac_res=$ac_cv_search_shm_open 27914if test "$ac_res" != no 27915then : 27916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 27917 27918fi 27919 27920 if test "x$ac_cv_search_shm_open" = x-lrt 27921then : 27922 POSIXSHMEM_LIBS="-lrt" 27923fi 27924 27925 save_ac_includes_default=$ac_includes_default 27926 ac_includes_default="\ 27927 ${ac_includes_default} 27928 #ifndef __cplusplus 27929 # ifdef HAVE_SYS_MMAN_H 27930 # include <sys/mman.h> 27931 # endif 27932 #endif 27933 " 27934 27935 for ac_func in shm_open shm_unlink 27936do : 27937 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh` 27938ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 27939if eval test \"x\$"$as_ac_var"\" = x"yes" 27940then : 27941 cat >>confdefs.h <<_ACEOF 27942#define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1 27943_ACEOF 27944 have_posix_shmem=yes 27945else $as_nop 27946 have_posix_shmem=no 27947fi 27948 27949done 27950 ac_includes_default=$save_ac_includes_default 27951 27952CFLAGS=$save_CFLAGS 27953CPPFLAGS=$save_CPPFLAGS 27954LDFLAGS=$save_LDFLAGS 27955LIBS=$save_LIBS 27956 27957 27958 27959# Check for usable OpenSSL 27960 27961 found=false 27962 27963# Check whether --with-openssl was given. 27964if test ${with_openssl+y} 27965then : 27966 withval=$with_openssl; 27967 case "$withval" in 27968 "" | y | ye | yes | n | no) 27969 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 27970 ;; 27971 *) ssldirs="$withval" 27972 ;; 27973 esac 27974 27975else $as_nop 27976 27977 # if pkg-config is installed and openssl has installed a .pc file, 27978 # then use that information and don't search ssldirs 27979 if test -n "$ac_tool_prefix"; then 27980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 27981set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 27982{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27983printf %s "checking for $ac_word... " >&6; } 27984if test ${ac_cv_prog_PKG_CONFIG+y} 27985then : 27986 printf %s "(cached) " >&6 27987else $as_nop 27988 if test -n "$PKG_CONFIG"; then 27989 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 27990else 27991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27992for as_dir in $PATH 27993do 27994 IFS=$as_save_IFS 27995 case $as_dir in #((( 27996 '') as_dir=./ ;; 27997 */) ;; 27998 *) as_dir=$as_dir/ ;; 27999 esac 28000 for ac_exec_ext in '' $ac_executable_extensions; do 28001 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28002 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 28003 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28004 break 2 28005 fi 28006done 28007 done 28008IFS=$as_save_IFS 28009 28010fi 28011fi 28012PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 28013if test -n "$PKG_CONFIG"; then 28014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 28015printf "%s\n" "$PKG_CONFIG" >&6; } 28016else 28017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28018printf "%s\n" "no" >&6; } 28019fi 28020 28021 28022fi 28023if test -z "$ac_cv_prog_PKG_CONFIG"; then 28024 ac_ct_PKG_CONFIG=$PKG_CONFIG 28025 # Extract the first word of "pkg-config", so it can be a program name with args. 28026set dummy pkg-config; ac_word=$2 28027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28028printf %s "checking for $ac_word... " >&6; } 28029if test ${ac_cv_prog_ac_ct_PKG_CONFIG+y} 28030then : 28031 printf %s "(cached) " >&6 28032else $as_nop 28033 if test -n "$ac_ct_PKG_CONFIG"; then 28034 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 28035else 28036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28037for as_dir in $PATH 28038do 28039 IFS=$as_save_IFS 28040 case $as_dir in #((( 28041 '') as_dir=./ ;; 28042 */) ;; 28043 *) as_dir=$as_dir/ ;; 28044 esac 28045 for ac_exec_ext in '' $ac_executable_extensions; do 28046 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 28047 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 28048 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 28049 break 2 28050 fi 28051done 28052 done 28053IFS=$as_save_IFS 28054 28055fi 28056fi 28057ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 28058if test -n "$ac_ct_PKG_CONFIG"; then 28059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 28060printf "%s\n" "$ac_ct_PKG_CONFIG" >&6; } 28061else 28062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28063printf "%s\n" "no" >&6; } 28064fi 28065 28066 if test "x$ac_ct_PKG_CONFIG" = x; then 28067 PKG_CONFIG="" 28068 else 28069 case $cross_compiling:$ac_tool_warned in 28070yes:) 28071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28072printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28073ac_tool_warned=yes ;; 28074esac 28075 PKG_CONFIG=$ac_ct_PKG_CONFIG 28076 fi 28077else 28078 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 28079fi 28080 28081 if test x"$PKG_CONFIG" != x""; then 28082 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 28083 if test $? = 0; then 28084 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 28085 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 28086 found=true 28087 fi 28088 fi 28089 28090 # no such luck; use some default ssldirs 28091 if ! $found; then 28092 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 28093 fi 28094 28095 28096fi 28097 28098 28099 28100 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 28101 # an 'openssl' subdirectory 28102 28103 if ! $found; then 28104 OPENSSL_INCLUDES= 28105 for ssldir in $ssldirs; do 28106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for include/openssl/ssl.h in $ssldir" >&5 28107printf %s "checking for include/openssl/ssl.h in $ssldir... " >&6; } 28108 if test -f "$ssldir/include/openssl/ssl.h"; then 28109 OPENSSL_INCLUDES="-I$ssldir/include" 28110 OPENSSL_LDFLAGS="-L$ssldir/lib" 28111 OPENSSL_LIBS="-lssl -lcrypto" 28112 found=true 28113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28114printf "%s\n" "yes" >&6; } 28115 break 28116 else 28117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28118printf "%s\n" "no" >&6; } 28119 fi 28120 done 28121 28122 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 28123 # it will just work! 28124 fi 28125 28126 # try the preprocessor and linker with our new flags, 28127 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 28128 28129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 28130printf %s "checking whether compiling and linking against OpenSSL works... " >&6; } 28131 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 28132 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 28133 28134 save_LIBS="$LIBS" 28135 save_LDFLAGS="$LDFLAGS" 28136 save_CPPFLAGS="$CPPFLAGS" 28137 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 28138 LIBS="$OPENSSL_LIBS $LIBS" 28139 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 28140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28141/* end confdefs.h. */ 28142#include <openssl/ssl.h> 28143int 28144main (void) 28145{ 28146SSL_new(NULL) 28147 ; 28148 return 0; 28149} 28150_ACEOF 28151if ac_fn_c_try_link "$LINENO" 28152then : 28153 28154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28155printf "%s\n" "yes" >&6; } 28156 have_openssl=yes 28157 28158else $as_nop 28159 28160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28161printf "%s\n" "no" >&6; } 28162 have_openssl=no 28163 28164fi 28165rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28166 conftest$ac_exeext conftest.$ac_ext 28167 CPPFLAGS="$save_CPPFLAGS" 28168 LDFLAGS="$save_LDFLAGS" 28169 LIBS="$save_LIBS" 28170 28171 28172 28173 28174 28175 28176# rpath to libssl and libcrypto 28177if test "x$GNULD" = xyes 28178then : 28179 28180 rpath_arg="-Wl,--enable-new-dtags,-rpath=" 28181 28182else $as_nop 28183 28184 if test "$ac_sys_system" = "Darwin" 28185 then 28186 rpath_arg="-Wl,-rpath," 28187 else 28188 rpath_arg="-Wl,-rpath=" 28189 fi 28190 28191fi 28192 28193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-openssl-rpath" >&5 28194printf %s "checking for --with-openssl-rpath... " >&6; } 28195 28196# Check whether --with-openssl-rpath was given. 28197if test ${with_openssl_rpath+y} 28198then : 28199 withval=$with_openssl_rpath; 28200else $as_nop 28201 with_openssl_rpath=no 28202 28203fi 28204 28205case $with_openssl_rpath in #( 28206 auto|yes) : 28207 28208 OPENSSL_RPATH=auto 28209 for arg in "$OPENSSL_LDFLAGS"; do 28210 case $arg in #( 28211 -L*) : 28212 OPENSSL_LDFLAGS_RPATH="$OPENSSL_LDFLAGS_RPATH ${rpath_arg}$(echo $arg | cut -c3-)" 28213 ;; #( 28214 *) : 28215 ;; 28216esac 28217 done 28218 ;; #( 28219 no) : 28220 OPENSSL_RPATH= ;; #( 28221 *) : 28222 if test -d "$with_openssl_rpath" 28223then : 28224 28225 OPENSSL_RPATH="$with_openssl_rpath" 28226 OPENSSL_LDFLAGS_RPATH="${rpath_arg}$with_openssl_rpath" 28227 28228else $as_nop 28229 as_fn_error $? "--with-openssl-rpath \"$with_openssl_rpath\" is not a directory" "$LINENO" 5 28230fi 28231 28232 ;; 28233esac 28234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_RPATH" >&5 28235printf "%s\n" "$OPENSSL_RPATH" >&6; } 28236 28237# This static linking is NOT OFFICIALLY SUPPORTED and not advertised. 28238# Requires static OpenSSL build with position-independent code. Some features 28239# like DSO engines or external OSSL providers don't work. Only tested with GCC 28240# and clang on X86_64. 28241if test "x$PY_UNSUPPORTED_OPENSSL_BUILD" = xstatic 28242then : 28243 28244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsupported static openssl build" >&5 28245printf %s "checking for unsupported static openssl build... " >&6; } 28246 new_OPENSSL_LIBS= 28247 for arg in $OPENSSL_LIBS; do 28248 case $arg in #( 28249 -l*) : 28250 28251 libname=$(echo $arg | cut -c3-) 28252 new_OPENSSL_LIBS="$new_OPENSSL_LIBS -l:lib${libname}.a -Wl,--exclude-libs,lib${libname}.a" 28253 ;; #( 28254 *) : 28255 new_OPENSSL_LIBS="$new_OPENSSL_LIBS $arg" 28256 ;; 28257esac 28258 done 28259 OPENSSL_LIBS="$new_OPENSSL_LIBS $ZLIB_LIBS" 28260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OPENSSL_LIBS" >&5 28261printf "%s\n" "$OPENSSL_LIBS" >&6; } 28262 28263fi 28264 28265LIBCRYPTO_LIBS= 28266for arg in $OPENSSL_LIBS; do 28267 case $arg in #( 28268 -l*ssl*|-Wl*ssl*) : 28269 ;; #( 28270 *) : 28271 LIBCRYPTO_LIBS="$LIBCRYPTO_LIBS $arg" 28272 ;; 28273esac 28274done 28275 28276# check if OpenSSL libraries work as expected 28277save_CFLAGS=$CFLAGS 28278save_CPPFLAGS=$CPPFLAGS 28279save_LDFLAGS=$LDFLAGS 28280save_LIBS=$LIBS 28281 28282 28283 LIBS="$LIBS $OPENSSL_LIBS" 28284 CFLAGS="$CFLAGS $OPENSSL_INCLUDES" 28285 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH" 28286 28287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required ssl module APIs" >&5 28288printf %s "checking whether OpenSSL provides required ssl module APIs... " >&6; } 28289if test ${ac_cv_working_openssl_ssl+y} 28290then : 28291 printf %s "(cached) " >&6 28292else $as_nop 28293 28294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28295/* end confdefs.h. */ 28296 28297 #include <openssl/opensslv.h> 28298 #include <openssl/ssl.h> 28299 #if OPENSSL_VERSION_NUMBER < 0x10101000L 28300 #error "OpenSSL >= 1.1.1 is required" 28301 #endif 28302 static void keylog_cb(const SSL *ssl, const char *line) {} 28303 28304int 28305main (void) 28306{ 28307 28308 SSL_CTX *ctx = SSL_CTX_new(TLS_client_method()); 28309 SSL_CTX_set_keylog_callback(ctx, keylog_cb); 28310 SSL *ssl = SSL_new(ctx); 28311 X509_VERIFY_PARAM *param = SSL_get0_param(ssl); 28312 X509_VERIFY_PARAM_set1_host(param, "python.org", 0); 28313 SSL_free(ssl); 28314 SSL_CTX_free(ctx); 28315 28316 ; 28317 return 0; 28318} 28319_ACEOF 28320if ac_fn_c_try_link "$LINENO" 28321then : 28322 ac_cv_working_openssl_ssl=yes 28323else $as_nop 28324 ac_cv_working_openssl_ssl=no 28325fi 28326rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28327 conftest$ac_exeext conftest.$ac_ext 28328 28329fi 28330{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_ssl" >&5 28331printf "%s\n" "$ac_cv_working_openssl_ssl" >&6; } 28332 28333CFLAGS=$save_CFLAGS 28334CPPFLAGS=$save_CPPFLAGS 28335LDFLAGS=$save_LDFLAGS 28336LIBS=$save_LIBS 28337 28338 28339 28340save_CFLAGS=$CFLAGS 28341save_CPPFLAGS=$CPPFLAGS 28342save_LDFLAGS=$LDFLAGS 28343save_LIBS=$LIBS 28344 28345 28346 LIBS="$LIBS $LIBCRYPTO_LIBS" 28347 CFLAGS="$CFLAGS $OPENSSL_INCLUDES" 28348 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH" 28349 28350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether OpenSSL provides required hashlib module APIs" >&5 28351printf %s "checking whether OpenSSL provides required hashlib module APIs... " >&6; } 28352if test ${ac_cv_working_openssl_hashlib+y} 28353then : 28354 printf %s "(cached) " >&6 28355else $as_nop 28356 28357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28358/* end confdefs.h. */ 28359 28360 #include <openssl/opensslv.h> 28361 #include <openssl/evp.h> 28362 #if OPENSSL_VERSION_NUMBER < 0x10101000L 28363 #error "OpenSSL >= 1.1.1 is required" 28364 #endif 28365 28366int 28367main (void) 28368{ 28369 28370 OBJ_nid2sn(NID_md5); 28371 OBJ_nid2sn(NID_sha1); 28372 OBJ_nid2sn(NID_sha3_512); 28373 OBJ_nid2sn(NID_blake2b512); 28374 EVP_PBE_scrypt(NULL, 0, NULL, 0, 2, 8, 1, 0, NULL, 0); 28375 28376 ; 28377 return 0; 28378} 28379_ACEOF 28380if ac_fn_c_try_link "$LINENO" 28381then : 28382 ac_cv_working_openssl_hashlib=yes 28383else $as_nop 28384 ac_cv_working_openssl_hashlib=no 28385fi 28386rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28387 conftest$ac_exeext conftest.$ac_ext 28388 28389fi 28390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_openssl_hashlib" >&5 28391printf "%s\n" "$ac_cv_working_openssl_hashlib" >&6; } 28392 28393CFLAGS=$save_CFLAGS 28394CPPFLAGS=$save_CPPFLAGS 28395LDFLAGS=$save_LDFLAGS 28396LIBS=$save_LIBS 28397 28398 28399 28400# ssl module default cipher suite string 28401 28402 28403 28404{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 28405printf %s "checking for --with-ssl-default-suites... " >&6; } 28406 28407# Check whether --with-ssl-default-suites was given. 28408if test ${with_ssl_default_suites+y} 28409then : 28410 withval=$with_ssl_default_suites; 28411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 28412printf "%s\n" "$withval" >&6; } 28413case "$withval" in 28414 python) 28415 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h 28416 28417 ;; 28418 openssl) 28419 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h 28420 28421 ;; 28422 *) 28423 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h 28424 28425 printf "%s\n" "#define PY_SSL_DEFAULT_CIPHER_STRING \"$withval\"" >>confdefs.h 28426 28427 ;; 28428esac 28429 28430else $as_nop 28431 28432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: python" >&5 28433printf "%s\n" "python" >&6; } 28434printf "%s\n" "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h 28435 28436 28437fi 28438 28439 28440# builtin hash modules 28441default_hashlib_hashes="md5,sha1,sha2,sha3,blake2" 28442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5 28443printf %s "checking for --with-builtin-hashlib-hashes... " >&6; } 28444 28445# Check whether --with-builtin-hashlib-hashes was given. 28446if test ${with_builtin_hashlib_hashes+y} 28447then : 28448 withval=$with_builtin_hashlib_hashes; 28449 case $with_builtin_hashlib_hashes in #( 28450 yes) : 28451 with_builtin_hashlib_hashes=$default_hashlib_hashes ;; #( 28452 no) : 28453 with_builtin_hashlib_hashes="" 28454 ;; #( 28455 *) : 28456 ;; 28457esac 28458 28459else $as_nop 28460 with_builtin_hashlib_hashes=$default_hashlib_hashes 28461fi 28462 28463 28464{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_builtin_hashlib_hashes" >&5 28465printf "%s\n" "$with_builtin_hashlib_hashes" >&6; } 28466 28467printf "%s\n" "#define PY_BUILTIN_HASHLIB_HASHES \"$with_builtin_hashlib_hashes\"" >>confdefs.h 28468 28469 28470as_save_IFS=$IFS 28471IFS=, 28472for builtin_hash in $with_builtin_hashlib_hashes; do 28473 case $builtin_hash in #( 28474 md5) : 28475 with_builtin_md5=yes ;; #( 28476 sha1) : 28477 with_builtin_sha1=yes ;; #( 28478 sha2) : 28479 with_builtin_sha2=yes ;; #( 28480 sha3) : 28481 with_builtin_sha3=yes ;; #( 28482 blake2) : 28483 with_builtin_blake2=yes 28484 ;; #( 28485 *) : 28486 ;; 28487esac 28488done 28489IFS=$as_save_IFS 28490 28491if test "x$with_builtin_blake2" = xyes 28492then : 28493 28494 28495pkg_failed=no 28496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libb2" >&5 28497printf %s "checking for libb2... " >&6; } 28498 28499if 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 28505 ac_status=$? 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 28510else 28511 pkg_failed=yes 28512fi 28513 else 28514 pkg_failed=untried 28515fi 28516if 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 28522 ac_status=$? 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 28527else 28528 pkg_failed=yes 28529fi 28530 else 28531 pkg_failed=untried 28532fi 28533 28534 28535 28536if test $pkg_failed = yes; then 28537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28538printf "%s\n" "no" >&6; } 28539 28540if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 28541 _pkg_short_errors_supported=yes 28542else 28543 _pkg_short_errors_supported=no 28544fi 28545 if test $_pkg_short_errors_supported = yes; then 28546 LIBB2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libb2" 2>&1` 28547 else 28548 LIBB2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libb2" 2>&1` 28549 fi 28550 # Put the nasty error message in config.log where it belongs 28551 echo "$LIBB2_PKG_ERRORS" >&5 28552 28553 have_libb2=no 28554elif test $pkg_failed = untried; then 28555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 28556printf "%s\n" "no" >&6; } 28557 have_libb2=no 28558else 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 28562printf "%s\n" "yes" >&6; } 28563 28564 have_libb2=yes 28565 28566printf "%s\n" "#define HAVE_LIBB2 1" >>confdefs.h 28567 28568 28569fi 28570 28571fi 28572 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 28576printf %s "checking for --disable-test-modules... " >&6; } 28577# Check whether --enable-test-modules was given. 28578if test ${enable_test_modules+y} 28579then : 28580 enableval=$enable_test_modules; 28581 if test "x$enable_test_modules" = xyes 28582then : 28583 TEST_MODULES=yes 28584else $as_nop 28585 TEST_MODULES=no 28586fi 28587 28588else $as_nop 28589 28590 case $ac_sys_system/$ac_sys_emscripten_target in #( 28591 Emscripten/browser*) : 28592 TEST_MODULES=no ;; #( 28593 *) : 28594 TEST_MODULES=yes 28595 ;; 28596esac 28597 28598fi 28599 28600{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TEST_MODULES" >&5 28601printf "%s\n" "$TEST_MODULES" >&6; } 28602 28603 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 28608# compiler flags. 28609# 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. 28612# 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. 28618save_CPPFLAGS=$CPPFLAGS 28619CPPFLAGS="${BASECPPFLAGS} -I. -I${srcdir}/Include ${CPPFLAGS}" 28620 28621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libatomic is needed by <pyatomic.h>" >&5 28622printf %s "checking whether libatomic is needed by <pyatomic.h>... " >&6; } 28623if test ${ac_cv_libatomic_needed+y} 28624then : 28625 printf %s "(cached) " >&6 28626else $as_nop 28627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28628/* end confdefs.h. */ 28629 28630// pyatomic.h needs uint64_t and Py_ssize_t types 28631#include <stdint.h> // int64_t, intptr_t 28632#ifdef HAVE_SYS_TYPES_H 28633# include <sys/types.h> // ssize_t 28634#endif 28635// Code adapted from Include/pyport.h 28636#if HAVE_SSIZE_T 28637typedef ssize_t Py_ssize_t; 28638#elif SIZEOF_VOID_P == SIZEOF_SIZE_T 28639typedef intptr_t Py_ssize_t; 28640#else 28641# error "unable to define Py_ssize_t" 28642#endif 28643 28644#include "pyatomic.h" 28645 28646int main() 28647{ 28648 uint64_t value; 28649 _Py_atomic_store_uint64(&value, 2); 28650 if (_Py_atomic_or_uint64(&value, 8) != 2) { 28651 return 1; // error 28652 } 28653 if (_Py_atomic_load_uint64(&value) != 10) { 28654 return 1; // error 28655 } 28656 uint8_t byte = 0xb8; 28657 if (_Py_atomic_or_uint8(&byte, 0x2d) != 0xb8) { 28658 return 1; // error 28659 } 28660 if (_Py_atomic_load_uint8(&byte) != 0xbd) { 28661 return 1; // error 28662 } 28663 return 0; // all good 28664} 28665 28666_ACEOF 28667if ac_fn_c_try_link "$LINENO" 28668then : 28669 ac_cv_libatomic_needed=no 28670else $as_nop 28671 ac_cv_libatomic_needed=yes 28672fi 28673rm -f core conftest.err conftest.$ac_objext conftest.beam \ 28674 conftest$ac_exeext conftest.$ac_ext 28675fi 28676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libatomic_needed" >&5 28677printf "%s\n" "$ac_cv_libatomic_needed" >&6; } 28678 28679if test "x$ac_cv_libatomic_needed" = xyes 28680then : 28681 LIBS="${LIBS} -latomic" 28682 LIBATOMIC=${LIBATOMIC-"-latomic"} 28683fi 28684CPPFLAGS=$save_CPPFLAGS 28685 28686 28687# stdlib 28688 28689 28690# stdlib not available 28691case $ac_sys_system in #( 28692 AIX) : 28693 28694 28695 py_cv_module__scproxy=n/a 28696 ;; #( 28697 VxWorks*) : 28698 28699 28700 py_cv_module__scproxy=n/a 28701 py_cv_module_termios=n/a 28702 py_cv_module_grp=n/a 28703 ;; #( 28704 Darwin) : 28705 ;; #( 28706 iOS) : 28707 28708 28709 28710 py_cv_module__curses=n/a 28711 py_cv_module__curses_panel=n/a 28712 py_cv_module__gdbm=n/a 28713 py_cv_module__multiprocessing=n/a 28714 py_cv_module__posixshmem=n/a 28715 py_cv_module__posixsubprocess=n/a 28716 py_cv_module__scproxy=n/a 28717 py_cv_module__tkinter=n/a 28718 py_cv_module_grp=n/a 28719 py_cv_module_nis=n/a 28720 py_cv_module_readline=n/a 28721 py_cv_module_pwd=n/a 28722 py_cv_module_spwd=n/a 28723 py_cv_module_syslog=n/a 28724 py_cv_module_=n/a 28725 28726 ;; #( 28727 CYGWIN*) : 28728 28729 28730 py_cv_module__scproxy=n/a 28731 ;; #( 28732 QNX*) : 28733 28734 28735 py_cv_module__scproxy=n/a 28736 ;; #( 28737 FreeBSD*) : 28738 28739 28740 py_cv_module__scproxy=n/a 28741 ;; #( 28742 Emscripten|WASI) : 28743 28744 28745 28746 py_cv_module__curses=n/a 28747 py_cv_module__curses_panel=n/a 28748 py_cv_module__dbm=n/a 28749 py_cv_module__gdbm=n/a 28750 py_cv_module__multiprocessing=n/a 28751 py_cv_module__posixshmem=n/a 28752 py_cv_module__posixsubprocess=n/a 28753 py_cv_module__scproxy=n/a 28754 py_cv_module__tkinter=n/a 28755 py_cv_module__interpreters=n/a 28756 py_cv_module__interpchannels=n/a 28757 py_cv_module__interpqueues=n/a 28758 py_cv_module_grp=n/a 28759 py_cv_module_pwd=n/a 28760 py_cv_module_resource=n/a 28761 py_cv_module_syslog=n/a 28762 py_cv_module_=n/a 28763 28764 case $ac_sys_system/$ac_sys_emscripten_target in #( 28765 Emscripten/browser*) : 28766 28767 28768 28769 py_cv_module_fcntl=n/a 28770 py_cv_module_readline=n/a 28771 py_cv_module_termios=n/a 28772 py_cv_module_=n/a 28773 28774 ;; #( 28775 Emscripten/node*) : 28776 ;; #( 28777 WASI/*) : 28778 28779 28780 28781 py_cv_module__ctypes_test=n/a 28782 py_cv_module__testexternalinspection=n/a 28783 py_cv_module__testimportmultiple=n/a 28784 py_cv_module__testmultiphase=n/a 28785 py_cv_module__testsinglephase=n/a 28786 py_cv_module_fcntl=n/a 28787 py_cv_module_mmap=n/a 28788 py_cv_module_termios=n/a 28789 py_cv_module_xxlimited=n/a 28790 py_cv_module_xxlimited_35=n/a 28791 py_cv_module_=n/a 28792 28793 28794 ;; #( 28795 *) : 28796 ;; 28797esac 28798 ;; #( 28799 *) : 28800 28801 28802 py_cv_module__scproxy=n/a 28803 28804 ;; 28805esac 28806 28807 28808case $host_cpu in #( 28809 wasm32|wasm64) : 28810 MODULE_BUILDTYPE=static ;; #( 28811 *) : 28812 MODULE_BUILDTYPE=${MODULE_BUILDTYPE:-shared} 28813 ;; 28814esac 28815 28816 28817 28818MODULE_BLOCK= 28819 28820 28821 28822 28823 28824 28825 if test "$py_cv_module__io" != "n/a" 28826then : 28827 py_cv_module__io=yes 28828fi 28829 if test "$py_cv_module__io" = yes; then 28830 MODULE__IO_TRUE= 28831 MODULE__IO_FALSE='#' 28832else 28833 MODULE__IO_TRUE='#' 28834 MODULE__IO_FALSE= 28835fi 28836 28837 as_fn_append MODULE_BLOCK "MODULE__IO_STATE=$py_cv_module__io$as_nl" 28838 if test "x$py_cv_module__io" = xyes 28839then : 28840 28841 as_fn_append MODULE_BLOCK "MODULE__IO_CFLAGS=-I\$(srcdir)/Modules/_io$as_nl" 28842 28843 28844fi 28845 28846 28847 if test "$py_cv_module_time" != "n/a" 28848then : 28849 py_cv_module_time=yes 28850fi 28851 if test "$py_cv_module_time" = yes; then 28852 MODULE_TIME_TRUE= 28853 MODULE_TIME_FALSE='#' 28854else 28855 MODULE_TIME_TRUE='#' 28856 MODULE_TIME_FALSE= 28857fi 28858 28859 as_fn_append MODULE_BLOCK "MODULE_TIME_STATE=$py_cv_module_time$as_nl" 28860 if test "x$py_cv_module_time" = xyes 28861then : 28862 28863 28864 as_fn_append MODULE_BLOCK "MODULE_TIME_LDFLAGS=$TIMEMODULE_LIB$as_nl" 28865 28866fi 28867 28868 28869 28870 if test "$py_cv_module_array" != "n/a" 28871then : 28872 py_cv_module_array=yes 28873fi 28874 if test "$py_cv_module_array" = yes; then 28875 MODULE_ARRAY_TRUE= 28876 MODULE_ARRAY_FALSE='#' 28877else 28878 MODULE_ARRAY_TRUE='#' 28879 MODULE_ARRAY_FALSE= 28880fi 28881 28882 as_fn_append MODULE_BLOCK "MODULE_ARRAY_STATE=$py_cv_module_array$as_nl" 28883 if test "x$py_cv_module_array" = xyes 28884then : 28885 28886 28887 28888 28889fi 28890 28891 28892 if test "$py_cv_module__asyncio" != "n/a" 28893then : 28894 py_cv_module__asyncio=yes 28895fi 28896 if test "$py_cv_module__asyncio" = yes; then 28897 MODULE__ASYNCIO_TRUE= 28898 MODULE__ASYNCIO_FALSE='#' 28899else 28900 MODULE__ASYNCIO_TRUE='#' 28901 MODULE__ASYNCIO_FALSE= 28902fi 28903 28904 as_fn_append MODULE_BLOCK "MODULE__ASYNCIO_STATE=$py_cv_module__asyncio$as_nl" 28905 if test "x$py_cv_module__asyncio" = xyes 28906then : 28907 28908 28909 28910 28911fi 28912 28913 28914 if test "$py_cv_module__bisect" != "n/a" 28915then : 28916 py_cv_module__bisect=yes 28917fi 28918 if test "$py_cv_module__bisect" = yes; then 28919 MODULE__BISECT_TRUE= 28920 MODULE__BISECT_FALSE='#' 28921else 28922 MODULE__BISECT_TRUE='#' 28923 MODULE__BISECT_FALSE= 28924fi 28925 28926 as_fn_append MODULE_BLOCK "MODULE__BISECT_STATE=$py_cv_module__bisect$as_nl" 28927 if test "x$py_cv_module__bisect" = xyes 28928then : 28929 28930 28931 28932 28933fi 28934 28935 28936 if test "$py_cv_module__contextvars" != "n/a" 28937then : 28938 py_cv_module__contextvars=yes 28939fi 28940 if test "$py_cv_module__contextvars" = yes; then 28941 MODULE__CONTEXTVARS_TRUE= 28942 MODULE__CONTEXTVARS_FALSE='#' 28943else 28944 MODULE__CONTEXTVARS_TRUE='#' 28945 MODULE__CONTEXTVARS_FALSE= 28946fi 28947 28948 as_fn_append MODULE_BLOCK "MODULE__CONTEXTVARS_STATE=$py_cv_module__contextvars$as_nl" 28949 if test "x$py_cv_module__contextvars" = xyes 28950then : 28951 28952 28953 28954 28955fi 28956 28957 28958 if test "$py_cv_module__csv" != "n/a" 28959then : 28960 py_cv_module__csv=yes 28961fi 28962 if test "$py_cv_module__csv" = yes; then 28963 MODULE__CSV_TRUE= 28964 MODULE__CSV_FALSE='#' 28965else 28966 MODULE__CSV_TRUE='#' 28967 MODULE__CSV_FALSE= 28968fi 28969 28970 as_fn_append MODULE_BLOCK "MODULE__CSV_STATE=$py_cv_module__csv$as_nl" 28971 if test "x$py_cv_module__csv" = xyes 28972then : 28973 28974 28975 28976 28977fi 28978 28979 28980 if test "$py_cv_module__heapq" != "n/a" 28981then : 28982 py_cv_module__heapq=yes 28983fi 28984 if test "$py_cv_module__heapq" = yes; then 28985 MODULE__HEAPQ_TRUE= 28986 MODULE__HEAPQ_FALSE='#' 28987else 28988 MODULE__HEAPQ_TRUE='#' 28989 MODULE__HEAPQ_FALSE= 28990fi 28991 28992 as_fn_append MODULE_BLOCK "MODULE__HEAPQ_STATE=$py_cv_module__heapq$as_nl" 28993 if test "x$py_cv_module__heapq" = xyes 28994then : 28995 28996 28997 28998 28999fi 29000 29001 29002 if test "$py_cv_module__json" != "n/a" 29003then : 29004 py_cv_module__json=yes 29005fi 29006 if test "$py_cv_module__json" = yes; then 29007 MODULE__JSON_TRUE= 29008 MODULE__JSON_FALSE='#' 29009else 29010 MODULE__JSON_TRUE='#' 29011 MODULE__JSON_FALSE= 29012fi 29013 29014 as_fn_append MODULE_BLOCK "MODULE__JSON_STATE=$py_cv_module__json$as_nl" 29015 if test "x$py_cv_module__json" = xyes 29016then : 29017 29018 29019 29020 29021fi 29022 29023 29024 if test "$py_cv_module__lsprof" != "n/a" 29025then : 29026 py_cv_module__lsprof=yes 29027fi 29028 if test "$py_cv_module__lsprof" = yes; then 29029 MODULE__LSPROF_TRUE= 29030 MODULE__LSPROF_FALSE='#' 29031else 29032 MODULE__LSPROF_TRUE='#' 29033 MODULE__LSPROF_FALSE= 29034fi 29035 29036 as_fn_append MODULE_BLOCK "MODULE__LSPROF_STATE=$py_cv_module__lsprof$as_nl" 29037 if test "x$py_cv_module__lsprof" = xyes 29038then : 29039 29040 29041 29042 29043fi 29044 29045 29046 if test "$py_cv_module__opcode" != "n/a" 29047then : 29048 py_cv_module__opcode=yes 29049fi 29050 if test "$py_cv_module__opcode" = yes; then 29051 MODULE__OPCODE_TRUE= 29052 MODULE__OPCODE_FALSE='#' 29053else 29054 MODULE__OPCODE_TRUE='#' 29055 MODULE__OPCODE_FALSE= 29056fi 29057 29058 as_fn_append MODULE_BLOCK "MODULE__OPCODE_STATE=$py_cv_module__opcode$as_nl" 29059 if test "x$py_cv_module__opcode" = xyes 29060then : 29061 29062 29063 29064 29065fi 29066 29067 29068 if test "$py_cv_module__pickle" != "n/a" 29069then : 29070 py_cv_module__pickle=yes 29071fi 29072 if test "$py_cv_module__pickle" = yes; then 29073 MODULE__PICKLE_TRUE= 29074 MODULE__PICKLE_FALSE='#' 29075else 29076 MODULE__PICKLE_TRUE='#' 29077 MODULE__PICKLE_FALSE= 29078fi 29079 29080 as_fn_append MODULE_BLOCK "MODULE__PICKLE_STATE=$py_cv_module__pickle$as_nl" 29081 if test "x$py_cv_module__pickle" = xyes 29082then : 29083 29084 29085 29086 29087fi 29088 29089 29090 if test "$py_cv_module__posixsubprocess" != "n/a" 29091then : 29092 py_cv_module__posixsubprocess=yes 29093fi 29094 if test "$py_cv_module__posixsubprocess" = yes; then 29095 MODULE__POSIXSUBPROCESS_TRUE= 29096 MODULE__POSIXSUBPROCESS_FALSE='#' 29097else 29098 MODULE__POSIXSUBPROCESS_TRUE='#' 29099 MODULE__POSIXSUBPROCESS_FALSE= 29100fi 29101 29102 as_fn_append MODULE_BLOCK "MODULE__POSIXSUBPROCESS_STATE=$py_cv_module__posixsubprocess$as_nl" 29103 if test "x$py_cv_module__posixsubprocess" = xyes 29104then : 29105 29106 29107 29108 29109fi 29110 29111 29112 if test "$py_cv_module__queue" != "n/a" 29113then : 29114 py_cv_module__queue=yes 29115fi 29116 if test "$py_cv_module__queue" = yes; then 29117 MODULE__QUEUE_TRUE= 29118 MODULE__QUEUE_FALSE='#' 29119else 29120 MODULE__QUEUE_TRUE='#' 29121 MODULE__QUEUE_FALSE= 29122fi 29123 29124 as_fn_append MODULE_BLOCK "MODULE__QUEUE_STATE=$py_cv_module__queue$as_nl" 29125 if test "x$py_cv_module__queue" = xyes 29126then : 29127 29128 29129 29130 29131fi 29132 29133 29134 if test "$py_cv_module__random" != "n/a" 29135then : 29136 py_cv_module__random=yes 29137fi 29138 if test "$py_cv_module__random" = yes; then 29139 MODULE__RANDOM_TRUE= 29140 MODULE__RANDOM_FALSE='#' 29141else 29142 MODULE__RANDOM_TRUE='#' 29143 MODULE__RANDOM_FALSE= 29144fi 29145 29146 as_fn_append MODULE_BLOCK "MODULE__RANDOM_STATE=$py_cv_module__random$as_nl" 29147 if test "x$py_cv_module__random" = xyes 29148then : 29149 29150 29151 29152 29153fi 29154 29155 29156 if test "$py_cv_module_select" != "n/a" 29157then : 29158 py_cv_module_select=yes 29159fi 29160 if test "$py_cv_module_select" = yes; then 29161 MODULE_SELECT_TRUE= 29162 MODULE_SELECT_FALSE='#' 29163else 29164 MODULE_SELECT_TRUE='#' 29165 MODULE_SELECT_FALSE= 29166fi 29167 29168 as_fn_append MODULE_BLOCK "MODULE_SELECT_STATE=$py_cv_module_select$as_nl" 29169 if test "x$py_cv_module_select" = xyes 29170then : 29171 29172 29173 29174 29175fi 29176 29177 29178 if test "$py_cv_module__struct" != "n/a" 29179then : 29180 py_cv_module__struct=yes 29181fi 29182 if test "$py_cv_module__struct" = yes; then 29183 MODULE__STRUCT_TRUE= 29184 MODULE__STRUCT_FALSE='#' 29185else 29186 MODULE__STRUCT_TRUE='#' 29187 MODULE__STRUCT_FALSE= 29188fi 29189 29190 as_fn_append MODULE_BLOCK "MODULE__STRUCT_STATE=$py_cv_module__struct$as_nl" 29191 if test "x$py_cv_module__struct" = xyes 29192then : 29193 29194 29195 29196 29197fi 29198 29199 29200 if test "$py_cv_module__typing" != "n/a" 29201then : 29202 py_cv_module__typing=yes 29203fi 29204 if test "$py_cv_module__typing" = yes; then 29205 MODULE__TYPING_TRUE= 29206 MODULE__TYPING_FALSE='#' 29207else 29208 MODULE__TYPING_TRUE='#' 29209 MODULE__TYPING_FALSE= 29210fi 29211 29212 as_fn_append MODULE_BLOCK "MODULE__TYPING_STATE=$py_cv_module__typing$as_nl" 29213 if test "x$py_cv_module__typing" = xyes 29214then : 29215 29216 29217 29218 29219fi 29220 29221 29222 if test "$py_cv_module__interpreters" != "n/a" 29223then : 29224 py_cv_module__interpreters=yes 29225fi 29226 if test "$py_cv_module__interpreters" = yes; then 29227 MODULE__INTERPRETERS_TRUE= 29228 MODULE__INTERPRETERS_FALSE='#' 29229else 29230 MODULE__INTERPRETERS_TRUE='#' 29231 MODULE__INTERPRETERS_FALSE= 29232fi 29233 29234 as_fn_append MODULE_BLOCK "MODULE__INTERPRETERS_STATE=$py_cv_module__interpreters$as_nl" 29235 if test "x$py_cv_module__interpreters" = xyes 29236then : 29237 29238 29239 29240 29241fi 29242 29243 29244 if test "$py_cv_module__interpchannels" != "n/a" 29245then : 29246 py_cv_module__interpchannels=yes 29247fi 29248 if test "$py_cv_module__interpchannels" = yes; then 29249 MODULE__INTERPCHANNELS_TRUE= 29250 MODULE__INTERPCHANNELS_FALSE='#' 29251else 29252 MODULE__INTERPCHANNELS_TRUE='#' 29253 MODULE__INTERPCHANNELS_FALSE= 29254fi 29255 29256 as_fn_append MODULE_BLOCK "MODULE__INTERPCHANNELS_STATE=$py_cv_module__interpchannels$as_nl" 29257 if test "x$py_cv_module__interpchannels" = xyes 29258then : 29259 29260 29261 29262 29263fi 29264 29265 29266 if test "$py_cv_module__interpqueues" != "n/a" 29267then : 29268 py_cv_module__interpqueues=yes 29269fi 29270 if test "$py_cv_module__interpqueues" = yes; then 29271 MODULE__INTERPQUEUES_TRUE= 29272 MODULE__INTERPQUEUES_FALSE='#' 29273else 29274 MODULE__INTERPQUEUES_TRUE='#' 29275 MODULE__INTERPQUEUES_FALSE= 29276fi 29277 29278 as_fn_append MODULE_BLOCK "MODULE__INTERPQUEUES_STATE=$py_cv_module__interpqueues$as_nl" 29279 if test "x$py_cv_module__interpqueues" = xyes 29280then : 29281 29282 29283 29284 29285fi 29286 29287 29288 if test "$py_cv_module__zoneinfo" != "n/a" 29289then : 29290 py_cv_module__zoneinfo=yes 29291fi 29292 if test "$py_cv_module__zoneinfo" = yes; then 29293 MODULE__ZONEINFO_TRUE= 29294 MODULE__ZONEINFO_FALSE='#' 29295else 29296 MODULE__ZONEINFO_TRUE='#' 29297 MODULE__ZONEINFO_FALSE= 29298fi 29299 29300 as_fn_append MODULE_BLOCK "MODULE__ZONEINFO_STATE=$py_cv_module__zoneinfo$as_nl" 29301 if test "x$py_cv_module__zoneinfo" = xyes 29302then : 29303 29304 29305 29306 29307fi 29308 29309 29310 29311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _multiprocessing" >&5 29312printf %s "checking for stdlib extension module _multiprocessing... " >&6; } 29313 if test "$py_cv_module__multiprocessing" != "n/a" 29314then : 29315 29316 if true 29317then : 29318 if test "$ac_cv_func_sem_unlink" = "yes" 29319then : 29320 py_cv_module__multiprocessing=yes 29321else $as_nop 29322 py_cv_module__multiprocessing=missing 29323fi 29324else $as_nop 29325 py_cv_module__multiprocessing=disabled 29326fi 29327 29328fi 29329 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_STATE=$py_cv_module__multiprocessing$as_nl" 29330 if test "x$py_cv_module__multiprocessing" = xyes 29331then : 29332 29333 as_fn_append MODULE_BLOCK "MODULE__MULTIPROCESSING_CFLAGS=-I\$(srcdir)/Modules/_multiprocessing$as_nl" 29334 29335 29336fi 29337 if test "$py_cv_module__multiprocessing" = yes; then 29338 MODULE__MULTIPROCESSING_TRUE= 29339 MODULE__MULTIPROCESSING_FALSE='#' 29340else 29341 MODULE__MULTIPROCESSING_TRUE='#' 29342 MODULE__MULTIPROCESSING_FALSE= 29343fi 29344 29345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__multiprocessing" >&5 29346printf "%s\n" "$py_cv_module__multiprocessing" >&6; } 29347 29348 29349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _posixshmem" >&5 29350printf %s "checking for stdlib extension module _posixshmem... " >&6; } 29351 if test "$py_cv_module__posixshmem" != "n/a" 29352then : 29353 29354 if true 29355then : 29356 if test "$have_posix_shmem" = "yes" 29357then : 29358 py_cv_module__posixshmem=yes 29359else $as_nop 29360 py_cv_module__posixshmem=missing 29361fi 29362else $as_nop 29363 py_cv_module__posixshmem=disabled 29364fi 29365 29366fi 29367 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_STATE=$py_cv_module__posixshmem$as_nl" 29368 if test "x$py_cv_module__posixshmem" = xyes 29369then : 29370 29371 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_CFLAGS=$POSIXSHMEM_CFLAGS$as_nl" 29372 as_fn_append MODULE_BLOCK "MODULE__POSIXSHMEM_LDFLAGS=$POSIXSHMEM_LIBS$as_nl" 29373 29374fi 29375 if test "$py_cv_module__posixshmem" = yes; then 29376 MODULE__POSIXSHMEM_TRUE= 29377 MODULE__POSIXSHMEM_FALSE='#' 29378else 29379 MODULE__POSIXSHMEM_TRUE='#' 29380 MODULE__POSIXSHMEM_FALSE= 29381fi 29382 29383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__posixshmem" >&5 29384printf "%s\n" "$py_cv_module__posixshmem" >&6; } 29385 29386 29387 29388 if test "$py_cv_module__statistics" != "n/a" 29389then : 29390 py_cv_module__statistics=yes 29391fi 29392 if test "$py_cv_module__statistics" = yes; then 29393 MODULE__STATISTICS_TRUE= 29394 MODULE__STATISTICS_FALSE='#' 29395else 29396 MODULE__STATISTICS_TRUE='#' 29397 MODULE__STATISTICS_FALSE= 29398fi 29399 29400 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_STATE=$py_cv_module__statistics$as_nl" 29401 if test "x$py_cv_module__statistics" = xyes 29402then : 29403 29404 29405 as_fn_append MODULE_BLOCK "MODULE__STATISTICS_LDFLAGS=$LIBM$as_nl" 29406 29407fi 29408 29409 29410 if test "$py_cv_module_cmath" != "n/a" 29411then : 29412 py_cv_module_cmath=yes 29413fi 29414 if test "$py_cv_module_cmath" = yes; then 29415 MODULE_CMATH_TRUE= 29416 MODULE_CMATH_FALSE='#' 29417else 29418 MODULE_CMATH_TRUE='#' 29419 MODULE_CMATH_FALSE= 29420fi 29421 29422 as_fn_append MODULE_BLOCK "MODULE_CMATH_STATE=$py_cv_module_cmath$as_nl" 29423 if test "x$py_cv_module_cmath" = xyes 29424then : 29425 29426 29427 as_fn_append MODULE_BLOCK "MODULE_CMATH_LDFLAGS=$LIBM$as_nl" 29428 29429fi 29430 29431 29432 if test "$py_cv_module_math" != "n/a" 29433then : 29434 py_cv_module_math=yes 29435fi 29436 if test "$py_cv_module_math" = yes; then 29437 MODULE_MATH_TRUE= 29438 MODULE_MATH_FALSE='#' 29439else 29440 MODULE_MATH_TRUE='#' 29441 MODULE_MATH_FALSE= 29442fi 29443 29444 as_fn_append MODULE_BLOCK "MODULE_MATH_STATE=$py_cv_module_math$as_nl" 29445 if test "x$py_cv_module_math" = xyes 29446then : 29447 29448 29449 as_fn_append MODULE_BLOCK "MODULE_MATH_LDFLAGS=$LIBM$as_nl" 29450 29451fi 29452 29453 29454 29455 if test "$py_cv_module__datetime" != "n/a" 29456then : 29457 py_cv_module__datetime=yes 29458fi 29459 if test "$py_cv_module__datetime" = yes; then 29460 MODULE__DATETIME_TRUE= 29461 MODULE__DATETIME_FALSE='#' 29462else 29463 MODULE__DATETIME_TRUE='#' 29464 MODULE__DATETIME_FALSE= 29465fi 29466 29467 as_fn_append MODULE_BLOCK "MODULE__DATETIME_STATE=$py_cv_module__datetime$as_nl" 29468 if test "x$py_cv_module__datetime" = xyes 29469then : 29470 29471 29472 as_fn_append MODULE_BLOCK "MODULE__DATETIME_LDFLAGS=$TIMEMODULE_LIB $LIBM$as_nl" 29473 29474fi 29475 29476 29477 29478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module fcntl" >&5 29479printf %s "checking for stdlib extension module fcntl... " >&6; } 29480 if test "$py_cv_module_fcntl" != "n/a" 29481then : 29482 29483 if true 29484then : 29485 if test "$ac_cv_header_sys_ioctl_h" = "yes" -a "$ac_cv_header_fcntl_h" = "yes" 29486then : 29487 py_cv_module_fcntl=yes 29488else $as_nop 29489 py_cv_module_fcntl=missing 29490fi 29491else $as_nop 29492 py_cv_module_fcntl=disabled 29493fi 29494 29495fi 29496 as_fn_append MODULE_BLOCK "MODULE_FCNTL_STATE=$py_cv_module_fcntl$as_nl" 29497 if test "x$py_cv_module_fcntl" = xyes 29498then : 29499 29500 29501 as_fn_append MODULE_BLOCK "MODULE_FCNTL_LDFLAGS=$FCNTL_LIBS$as_nl" 29502 29503fi 29504 if test "$py_cv_module_fcntl" = yes; then 29505 MODULE_FCNTL_TRUE= 29506 MODULE_FCNTL_FALSE='#' 29507else 29508 MODULE_FCNTL_TRUE='#' 29509 MODULE_FCNTL_FALSE= 29510fi 29511 29512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_fcntl" >&5 29513printf "%s\n" "$py_cv_module_fcntl" >&6; } 29514 29515 29516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module mmap" >&5 29517printf %s "checking for stdlib extension module mmap... " >&6; } 29518 if test "$py_cv_module_mmap" != "n/a" 29519then : 29520 29521 if true 29522then : 29523 if test "$ac_cv_header_sys_mman_h" = "yes" -a "$ac_cv_header_sys_stat_h" = "yes" 29524then : 29525 py_cv_module_mmap=yes 29526else $as_nop 29527 py_cv_module_mmap=missing 29528fi 29529else $as_nop 29530 py_cv_module_mmap=disabled 29531fi 29532 29533fi 29534 as_fn_append MODULE_BLOCK "MODULE_MMAP_STATE=$py_cv_module_mmap$as_nl" 29535 if test "x$py_cv_module_mmap" = xyes 29536then : 29537 29538 29539 29540 29541fi 29542 if test "$py_cv_module_mmap" = yes; then 29543 MODULE_MMAP_TRUE= 29544 MODULE_MMAP_FALSE='#' 29545else 29546 MODULE_MMAP_TRUE='#' 29547 MODULE_MMAP_FALSE= 29548fi 29549 29550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_mmap" >&5 29551printf "%s\n" "$py_cv_module_mmap" >&6; } 29552 29553 29554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _socket" >&5 29555printf %s "checking for stdlib extension module _socket... " >&6; } 29556 if test "$py_cv_module__socket" != "n/a" 29557then : 29558 29559 if true 29560then : 29561 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" 29562then : 29563 py_cv_module__socket=yes 29564else $as_nop 29565 py_cv_module__socket=missing 29566fi 29567else $as_nop 29568 py_cv_module__socket=disabled 29569fi 29570 29571fi 29572 as_fn_append MODULE_BLOCK "MODULE__SOCKET_STATE=$py_cv_module__socket$as_nl" 29573 if test "x$py_cv_module__socket" = xyes 29574then : 29575 29576 29577 29578 29579fi 29580 if test "$py_cv_module__socket" = yes; then 29581 MODULE__SOCKET_TRUE= 29582 MODULE__SOCKET_FALSE='#' 29583else 29584 MODULE__SOCKET_TRUE='#' 29585 MODULE__SOCKET_FALSE= 29586fi 29587 29588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__socket" >&5 29589printf "%s\n" "$py_cv_module__socket" >&6; } 29590 29591 29592 29593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module grp" >&5 29594printf %s "checking for stdlib extension module grp... " >&6; } 29595 if test "$py_cv_module_grp" != "n/a" 29596then : 29597 29598 if true 29599then : 29600 if test "$ac_cv_func_getgrent" = "yes" && 29601 { test "$ac_cv_func_getgrgid" = "yes" || test "$ac_cv_func_getgrgid_r" = "yes"; } 29602then : 29603 py_cv_module_grp=yes 29604else $as_nop 29605 py_cv_module_grp=missing 29606fi 29607else $as_nop 29608 py_cv_module_grp=disabled 29609fi 29610 29611fi 29612 as_fn_append MODULE_BLOCK "MODULE_GRP_STATE=$py_cv_module_grp$as_nl" 29613 if test "x$py_cv_module_grp" = xyes 29614then : 29615 29616 29617 29618 29619fi 29620 if test "$py_cv_module_grp" = yes; then 29621 MODULE_GRP_TRUE= 29622 MODULE_GRP_FALSE='#' 29623else 29624 MODULE_GRP_TRUE='#' 29625 MODULE_GRP_FALSE= 29626fi 29627 29628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_grp" >&5 29629printf "%s\n" "$py_cv_module_grp" >&6; } 29630 29631 29632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pwd" >&5 29633printf %s "checking for stdlib extension module pwd... " >&6; } 29634 if test "$py_cv_module_pwd" != "n/a" 29635then : 29636 29637 if true 29638then : 29639 if test "$ac_cv_func_getpwuid" = yes -o "$ac_cv_func_getpwuid_r" = yes 29640then : 29641 py_cv_module_pwd=yes 29642else $as_nop 29643 py_cv_module_pwd=missing 29644fi 29645else $as_nop 29646 py_cv_module_pwd=disabled 29647fi 29648 29649fi 29650 as_fn_append MODULE_BLOCK "MODULE_PWD_STATE=$py_cv_module_pwd$as_nl" 29651 if test "x$py_cv_module_pwd" = xyes 29652then : 29653 29654 29655 29656 29657fi 29658 if test "$py_cv_module_pwd" = yes; then 29659 MODULE_PWD_TRUE= 29660 MODULE_PWD_FALSE='#' 29661else 29662 MODULE_PWD_TRUE='#' 29663 MODULE_PWD_FALSE= 29664fi 29665 29666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pwd" >&5 29667printf "%s\n" "$py_cv_module_pwd" >&6; } 29668 29669 29670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module resource" >&5 29671printf %s "checking for stdlib extension module resource... " >&6; } 29672 if test "$py_cv_module_resource" != "n/a" 29673then : 29674 29675 if true 29676then : 29677 if test "$ac_cv_header_sys_resource_h" = yes 29678then : 29679 py_cv_module_resource=yes 29680else $as_nop 29681 py_cv_module_resource=missing 29682fi 29683else $as_nop 29684 py_cv_module_resource=disabled 29685fi 29686 29687fi 29688 as_fn_append MODULE_BLOCK "MODULE_RESOURCE_STATE=$py_cv_module_resource$as_nl" 29689 if test "x$py_cv_module_resource" = xyes 29690then : 29691 29692 29693 29694 29695fi 29696 if test "$py_cv_module_resource" = yes; then 29697 MODULE_RESOURCE_TRUE= 29698 MODULE_RESOURCE_FALSE='#' 29699else 29700 MODULE_RESOURCE_TRUE='#' 29701 MODULE_RESOURCE_FALSE= 29702fi 29703 29704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_resource" >&5 29705printf "%s\n" "$py_cv_module_resource" >&6; } 29706 29707 29708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _scproxy" >&5 29709printf %s "checking for stdlib extension module _scproxy... " >&6; } 29710 if test "$py_cv_module__scproxy" != "n/a" 29711then : 29712 29713 if test "$ac_sys_system" = "Darwin" 29714then : 29715 if true 29716then : 29717 py_cv_module__scproxy=yes 29718else $as_nop 29719 py_cv_module__scproxy=missing 29720fi 29721else $as_nop 29722 py_cv_module__scproxy=disabled 29723fi 29724 29725fi 29726 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_STATE=$py_cv_module__scproxy$as_nl" 29727 if test "x$py_cv_module__scproxy" = xyes 29728then : 29729 29730 29731 as_fn_append MODULE_BLOCK "MODULE__SCPROXY_LDFLAGS=-framework SystemConfiguration -framework CoreFoundation$as_nl" 29732 29733fi 29734 if test "$py_cv_module__scproxy" = yes; then 29735 MODULE__SCPROXY_TRUE= 29736 MODULE__SCPROXY_FALSE='#' 29737else 29738 MODULE__SCPROXY_TRUE='#' 29739 MODULE__SCPROXY_FALSE= 29740fi 29741 29742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__scproxy" >&5 29743printf "%s\n" "$py_cv_module__scproxy" >&6; } 29744 29745 29746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module syslog" >&5 29747printf %s "checking for stdlib extension module syslog... " >&6; } 29748 if test "$py_cv_module_syslog" != "n/a" 29749then : 29750 29751 if true 29752then : 29753 if test "$ac_cv_header_syslog_h" = yes 29754then : 29755 py_cv_module_syslog=yes 29756else $as_nop 29757 py_cv_module_syslog=missing 29758fi 29759else $as_nop 29760 py_cv_module_syslog=disabled 29761fi 29762 29763fi 29764 as_fn_append MODULE_BLOCK "MODULE_SYSLOG_STATE=$py_cv_module_syslog$as_nl" 29765 if test "x$py_cv_module_syslog" = xyes 29766then : 29767 29768 29769 29770 29771fi 29772 if test "$py_cv_module_syslog" = yes; then 29773 MODULE_SYSLOG_TRUE= 29774 MODULE_SYSLOG_FALSE='#' 29775else 29776 MODULE_SYSLOG_TRUE='#' 29777 MODULE_SYSLOG_FALSE= 29778fi 29779 29780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_syslog" >&5 29781printf "%s\n" "$py_cv_module_syslog" >&6; } 29782 29783 29784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module termios" >&5 29785printf %s "checking for stdlib extension module termios... " >&6; } 29786 if test "$py_cv_module_termios" != "n/a" 29787then : 29788 29789 if true 29790then : 29791 if test "$ac_cv_header_termios_h" = yes 29792then : 29793 py_cv_module_termios=yes 29794else $as_nop 29795 py_cv_module_termios=missing 29796fi 29797else $as_nop 29798 py_cv_module_termios=disabled 29799fi 29800 29801fi 29802 as_fn_append MODULE_BLOCK "MODULE_TERMIOS_STATE=$py_cv_module_termios$as_nl" 29803 if test "x$py_cv_module_termios" = xyes 29804then : 29805 29806 29807 29808 29809fi 29810 if test "$py_cv_module_termios" = yes; then 29811 MODULE_TERMIOS_TRUE= 29812 MODULE_TERMIOS_FALSE='#' 29813else 29814 MODULE_TERMIOS_TRUE='#' 29815 MODULE_TERMIOS_FALSE= 29816fi 29817 29818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_termios" >&5 29819printf "%s\n" "$py_cv_module_termios" >&6; } 29820 29821 29822 29823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module pyexpat" >&5 29824printf %s "checking for stdlib extension module pyexpat... " >&6; } 29825 if test "$py_cv_module_pyexpat" != "n/a" 29826then : 29827 29828 if true 29829then : 29830 if test "$ac_cv_header_sys_time_h" = "yes" 29831then : 29832 py_cv_module_pyexpat=yes 29833else $as_nop 29834 py_cv_module_pyexpat=missing 29835fi 29836else $as_nop 29837 py_cv_module_pyexpat=disabled 29838fi 29839 29840fi 29841 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_STATE=$py_cv_module_pyexpat$as_nl" 29842 if test "x$py_cv_module_pyexpat" = xyes 29843then : 29844 29845 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_CFLAGS=$LIBEXPAT_CFLAGS$as_nl" 29846 as_fn_append MODULE_BLOCK "MODULE_PYEXPAT_LDFLAGS=$LIBEXPAT_LDFLAGS$as_nl" 29847 29848fi 29849 if test "$py_cv_module_pyexpat" = yes; then 29850 MODULE_PYEXPAT_TRUE= 29851 MODULE_PYEXPAT_FALSE='#' 29852else 29853 MODULE_PYEXPAT_TRUE='#' 29854 MODULE_PYEXPAT_FALSE= 29855fi 29856 29857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_pyexpat" >&5 29858printf "%s\n" "$py_cv_module_pyexpat" >&6; } 29859 29860 29861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _elementtree" >&5 29862printf %s "checking for stdlib extension module _elementtree... " >&6; } 29863 if test "$py_cv_module__elementtree" != "n/a" 29864then : 29865 29866 if true 29867then : 29868 if true 29869then : 29870 py_cv_module__elementtree=yes 29871else $as_nop 29872 py_cv_module__elementtree=missing 29873fi 29874else $as_nop 29875 py_cv_module__elementtree=disabled 29876fi 29877 29878fi 29879 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_STATE=$py_cv_module__elementtree$as_nl" 29880 if test "x$py_cv_module__elementtree" = xyes 29881then : 29882 29883 as_fn_append MODULE_BLOCK "MODULE__ELEMENTTREE_CFLAGS=$LIBEXPAT_CFLAGS$as_nl" 29884 29885 29886fi 29887 if test "$py_cv_module__elementtree" = yes; then 29888 MODULE__ELEMENTTREE_TRUE= 29889 MODULE__ELEMENTTREE_FALSE='#' 29890else 29891 MODULE__ELEMENTTREE_TRUE='#' 29892 MODULE__ELEMENTTREE_FALSE= 29893fi 29894 29895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__elementtree" >&5 29896printf "%s\n" "$py_cv_module__elementtree" >&6; } 29897 29898 29899 if test "$py_cv_module__codecs_cn" != "n/a" 29900then : 29901 py_cv_module__codecs_cn=yes 29902fi 29903 if test "$py_cv_module__codecs_cn" = yes; then 29904 MODULE__CODECS_CN_TRUE= 29905 MODULE__CODECS_CN_FALSE='#' 29906else 29907 MODULE__CODECS_CN_TRUE='#' 29908 MODULE__CODECS_CN_FALSE= 29909fi 29910 29911 as_fn_append MODULE_BLOCK "MODULE__CODECS_CN_STATE=$py_cv_module__codecs_cn$as_nl" 29912 if test "x$py_cv_module__codecs_cn" = xyes 29913then : 29914 29915 29916 29917 29918fi 29919 29920 29921 if test "$py_cv_module__codecs_hk" != "n/a" 29922then : 29923 py_cv_module__codecs_hk=yes 29924fi 29925 if test "$py_cv_module__codecs_hk" = yes; then 29926 MODULE__CODECS_HK_TRUE= 29927 MODULE__CODECS_HK_FALSE='#' 29928else 29929 MODULE__CODECS_HK_TRUE='#' 29930 MODULE__CODECS_HK_FALSE= 29931fi 29932 29933 as_fn_append MODULE_BLOCK "MODULE__CODECS_HK_STATE=$py_cv_module__codecs_hk$as_nl" 29934 if test "x$py_cv_module__codecs_hk" = xyes 29935then : 29936 29937 29938 29939 29940fi 29941 29942 29943 if test "$py_cv_module__codecs_iso2022" != "n/a" 29944then : 29945 py_cv_module__codecs_iso2022=yes 29946fi 29947 if test "$py_cv_module__codecs_iso2022" = yes; then 29948 MODULE__CODECS_ISO2022_TRUE= 29949 MODULE__CODECS_ISO2022_FALSE='#' 29950else 29951 MODULE__CODECS_ISO2022_TRUE='#' 29952 MODULE__CODECS_ISO2022_FALSE= 29953fi 29954 29955 as_fn_append MODULE_BLOCK "MODULE__CODECS_ISO2022_STATE=$py_cv_module__codecs_iso2022$as_nl" 29956 if test "x$py_cv_module__codecs_iso2022" = xyes 29957then : 29958 29959 29960 29961 29962fi 29963 29964 29965 if test "$py_cv_module__codecs_jp" != "n/a" 29966then : 29967 py_cv_module__codecs_jp=yes 29968fi 29969 if test "$py_cv_module__codecs_jp" = yes; then 29970 MODULE__CODECS_JP_TRUE= 29971 MODULE__CODECS_JP_FALSE='#' 29972else 29973 MODULE__CODECS_JP_TRUE='#' 29974 MODULE__CODECS_JP_FALSE= 29975fi 29976 29977 as_fn_append MODULE_BLOCK "MODULE__CODECS_JP_STATE=$py_cv_module__codecs_jp$as_nl" 29978 if test "x$py_cv_module__codecs_jp" = xyes 29979then : 29980 29981 29982 29983 29984fi 29985 29986 29987 if test "$py_cv_module__codecs_kr" != "n/a" 29988then : 29989 py_cv_module__codecs_kr=yes 29990fi 29991 if test "$py_cv_module__codecs_kr" = yes; then 29992 MODULE__CODECS_KR_TRUE= 29993 MODULE__CODECS_KR_FALSE='#' 29994else 29995 MODULE__CODECS_KR_TRUE='#' 29996 MODULE__CODECS_KR_FALSE= 29997fi 29998 29999 as_fn_append MODULE_BLOCK "MODULE__CODECS_KR_STATE=$py_cv_module__codecs_kr$as_nl" 30000 if test "x$py_cv_module__codecs_kr" = xyes 30001then : 30002 30003 30004 30005 30006fi 30007 30008 30009 if test "$py_cv_module__codecs_tw" != "n/a" 30010then : 30011 py_cv_module__codecs_tw=yes 30012fi 30013 if test "$py_cv_module__codecs_tw" = yes; then 30014 MODULE__CODECS_TW_TRUE= 30015 MODULE__CODECS_TW_FALSE='#' 30016else 30017 MODULE__CODECS_TW_TRUE='#' 30018 MODULE__CODECS_TW_FALSE= 30019fi 30020 30021 as_fn_append MODULE_BLOCK "MODULE__CODECS_TW_STATE=$py_cv_module__codecs_tw$as_nl" 30022 if test "x$py_cv_module__codecs_tw" = xyes 30023then : 30024 30025 30026 30027 30028fi 30029 30030 30031 if test "$py_cv_module__multibytecodec" != "n/a" 30032then : 30033 py_cv_module__multibytecodec=yes 30034fi 30035 if test "$py_cv_module__multibytecodec" = yes; then 30036 MODULE__MULTIBYTECODEC_TRUE= 30037 MODULE__MULTIBYTECODEC_FALSE='#' 30038else 30039 MODULE__MULTIBYTECODEC_TRUE='#' 30040 MODULE__MULTIBYTECODEC_FALSE= 30041fi 30042 30043 as_fn_append MODULE_BLOCK "MODULE__MULTIBYTECODEC_STATE=$py_cv_module__multibytecodec$as_nl" 30044 if test "x$py_cv_module__multibytecodec" = xyes 30045then : 30046 30047 30048 30049 30050fi 30051 30052 30053 if test "$py_cv_module_unicodedata" != "n/a" 30054then : 30055 py_cv_module_unicodedata=yes 30056fi 30057 if test "$py_cv_module_unicodedata" = yes; then 30058 MODULE_UNICODEDATA_TRUE= 30059 MODULE_UNICODEDATA_FALSE='#' 30060else 30061 MODULE_UNICODEDATA_TRUE='#' 30062 MODULE_UNICODEDATA_FALSE= 30063fi 30064 30065 as_fn_append MODULE_BLOCK "MODULE_UNICODEDATA_STATE=$py_cv_module_unicodedata$as_nl" 30066 if test "x$py_cv_module_unicodedata" = xyes 30067then : 30068 30069 30070 30071 30072fi 30073 30074 30075 30076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _md5" >&5 30077printf %s "checking for stdlib extension module _md5... " >&6; } 30078 if test "$py_cv_module__md5" != "n/a" 30079then : 30080 30081 if test "$with_builtin_md5" = yes 30082then : 30083 if true 30084then : 30085 py_cv_module__md5=yes 30086else $as_nop 30087 py_cv_module__md5=missing 30088fi 30089else $as_nop 30090 py_cv_module__md5=disabled 30091fi 30092 30093fi 30094 as_fn_append MODULE_BLOCK "MODULE__MD5_STATE=$py_cv_module__md5$as_nl" 30095 if test "x$py_cv_module__md5" = xyes 30096then : 30097 30098 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" 30099 30100 30101fi 30102 if test "$py_cv_module__md5" = yes; then 30103 MODULE__MD5_TRUE= 30104 MODULE__MD5_FALSE='#' 30105else 30106 MODULE__MD5_TRUE='#' 30107 MODULE__MD5_FALSE= 30108fi 30109 30110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__md5" >&5 30111printf "%s\n" "$py_cv_module__md5" >&6; } 30112 30113 30114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha1" >&5 30115printf %s "checking for stdlib extension module _sha1... " >&6; } 30116 if test "$py_cv_module__sha1" != "n/a" 30117then : 30118 30119 if test "$with_builtin_sha1" = yes 30120then : 30121 if true 30122then : 30123 py_cv_module__sha1=yes 30124else $as_nop 30125 py_cv_module__sha1=missing 30126fi 30127else $as_nop 30128 py_cv_module__sha1=disabled 30129fi 30130 30131fi 30132 as_fn_append MODULE_BLOCK "MODULE__SHA1_STATE=$py_cv_module__sha1$as_nl" 30133 if test "x$py_cv_module__sha1" = xyes 30134then : 30135 30136 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" 30137 30138 30139fi 30140 if test "$py_cv_module__sha1" = yes; then 30141 MODULE__SHA1_TRUE= 30142 MODULE__SHA1_FALSE='#' 30143else 30144 MODULE__SHA1_TRUE='#' 30145 MODULE__SHA1_FALSE= 30146fi 30147 30148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha1" >&5 30149printf "%s\n" "$py_cv_module__sha1" >&6; } 30150 30151 30152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha2" >&5 30153printf %s "checking for stdlib extension module _sha2... " >&6; } 30154 if test "$py_cv_module__sha2" != "n/a" 30155then : 30156 30157 if test "$with_builtin_sha2" = yes 30158then : 30159 if true 30160then : 30161 py_cv_module__sha2=yes 30162else $as_nop 30163 py_cv_module__sha2=missing 30164fi 30165else $as_nop 30166 py_cv_module__sha2=disabled 30167fi 30168 30169fi 30170 as_fn_append MODULE_BLOCK "MODULE__SHA2_STATE=$py_cv_module__sha2$as_nl" 30171 if test "x$py_cv_module__sha2" = xyes 30172then : 30173 30174 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" 30175 30176 30177fi 30178 if test "$py_cv_module__sha2" = yes; then 30179 MODULE__SHA2_TRUE= 30180 MODULE__SHA2_FALSE='#' 30181else 30182 MODULE__SHA2_TRUE='#' 30183 MODULE__SHA2_FALSE= 30184fi 30185 30186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha2" >&5 30187printf "%s\n" "$py_cv_module__sha2" >&6; } 30188 30189 30190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sha3" >&5 30191printf %s "checking for stdlib extension module _sha3... " >&6; } 30192 if test "$py_cv_module__sha3" != "n/a" 30193then : 30194 30195 if test "$with_builtin_sha3" = yes 30196then : 30197 if true 30198then : 30199 py_cv_module__sha3=yes 30200else $as_nop 30201 py_cv_module__sha3=missing 30202fi 30203else $as_nop 30204 py_cv_module__sha3=disabled 30205fi 30206 30207fi 30208 as_fn_append MODULE_BLOCK "MODULE__SHA3_STATE=$py_cv_module__sha3$as_nl" 30209 if test "x$py_cv_module__sha3" = xyes 30210then : 30211 30212 30213 30214 30215fi 30216 if test "$py_cv_module__sha3" = yes; then 30217 MODULE__SHA3_TRUE= 30218 MODULE__SHA3_FALSE='#' 30219else 30220 MODULE__SHA3_TRUE='#' 30221 MODULE__SHA3_FALSE= 30222fi 30223 30224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sha3" >&5 30225printf "%s\n" "$py_cv_module__sha3" >&6; } 30226 30227 30228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _blake2" >&5 30229printf %s "checking for stdlib extension module _blake2... " >&6; } 30230 if test "$py_cv_module__blake2" != "n/a" 30231then : 30232 30233 if test "$with_builtin_blake2" = yes 30234then : 30235 if true 30236then : 30237 py_cv_module__blake2=yes 30238else $as_nop 30239 py_cv_module__blake2=missing 30240fi 30241else $as_nop 30242 py_cv_module__blake2=disabled 30243fi 30244 30245fi 30246 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_STATE=$py_cv_module__blake2$as_nl" 30247 if test "x$py_cv_module__blake2" = xyes 30248then : 30249 30250 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_CFLAGS=$LIBB2_CFLAGS$as_nl" 30251 as_fn_append MODULE_BLOCK "MODULE__BLAKE2_LDFLAGS=$LIBB2_LIBS$as_nl" 30252 30253fi 30254 if test "$py_cv_module__blake2" = yes; then 30255 MODULE__BLAKE2_TRUE= 30256 MODULE__BLAKE2_FALSE='#' 30257else 30258 MODULE__BLAKE2_TRUE='#' 30259 MODULE__BLAKE2_FALSE= 30260fi 30261 30262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__blake2" >&5 30263printf "%s\n" "$py_cv_module__blake2" >&6; } 30264 30265 30266 30267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes" >&5 30268printf %s "checking for stdlib extension module _ctypes... " >&6; } 30269 if test "$py_cv_module__ctypes" != "n/a" 30270then : 30271 30272 if true 30273then : 30274 if test "$have_libffi" = yes 30275then : 30276 py_cv_module__ctypes=yes 30277else $as_nop 30278 py_cv_module__ctypes=missing 30279fi 30280else $as_nop 30281 py_cv_module__ctypes=disabled 30282fi 30283 30284fi 30285 as_fn_append MODULE_BLOCK "MODULE__CTYPES_STATE=$py_cv_module__ctypes$as_nl" 30286 if test "x$py_cv_module__ctypes" = xyes 30287then : 30288 30289 as_fn_append MODULE_BLOCK "MODULE__CTYPES_CFLAGS=$NO_STRICT_OVERFLOW_CFLAGS $LIBFFI_CFLAGS$as_nl" 30290 as_fn_append MODULE_BLOCK "MODULE__CTYPES_LDFLAGS=$LIBFFI_LIBS$as_nl" 30291 30292fi 30293 if test "$py_cv_module__ctypes" = yes; then 30294 MODULE__CTYPES_TRUE= 30295 MODULE__CTYPES_FALSE='#' 30296else 30297 MODULE__CTYPES_TRUE='#' 30298 MODULE__CTYPES_FALSE= 30299fi 30300 30301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes" >&5 30302printf "%s\n" "$py_cv_module__ctypes" >&6; } 30303 30304 30305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses" >&5 30306printf %s "checking for stdlib extension module _curses... " >&6; } 30307 if test "$py_cv_module__curses" != "n/a" 30308then : 30309 30310 if true 30311then : 30312 if test "$have_curses" = "yes" 30313then : 30314 py_cv_module__curses=yes 30315else $as_nop 30316 py_cv_module__curses=missing 30317fi 30318else $as_nop 30319 py_cv_module__curses=disabled 30320fi 30321 30322fi 30323 as_fn_append MODULE_BLOCK "MODULE__CURSES_STATE=$py_cv_module__curses$as_nl" 30324 if test "x$py_cv_module__curses" = xyes 30325then : 30326 30327 as_fn_append MODULE_BLOCK "MODULE__CURSES_CFLAGS=$CURSES_CFLAGS$as_nl" 30328 as_fn_append MODULE_BLOCK "MODULE__CURSES_LDFLAGS=$CURSES_LIBS 30329$as_nl" 30330 30331fi 30332 if test "$py_cv_module__curses" = yes; then 30333 MODULE__CURSES_TRUE= 30334 MODULE__CURSES_FALSE='#' 30335else 30336 MODULE__CURSES_TRUE='#' 30337 MODULE__CURSES_FALSE= 30338fi 30339 30340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses" >&5 30341printf "%s\n" "$py_cv_module__curses" >&6; } 30342 30343 30344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _curses_panel" >&5 30345printf %s "checking for stdlib extension module _curses_panel... " >&6; } 30346 if test "$py_cv_module__curses_panel" != "n/a" 30347then : 30348 30349 if true 30350then : 30351 if test "$have_curses" = "yes" && test "$have_panel" = "yes" 30352then : 30353 py_cv_module__curses_panel=yes 30354else $as_nop 30355 py_cv_module__curses_panel=missing 30356fi 30357else $as_nop 30358 py_cv_module__curses_panel=disabled 30359fi 30360 30361fi 30362 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_STATE=$py_cv_module__curses_panel$as_nl" 30363 if test "x$py_cv_module__curses_panel" = xyes 30364then : 30365 30366 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_CFLAGS=$PANEL_CFLAGS $CURSES_CFLAGS$as_nl" 30367 as_fn_append MODULE_BLOCK "MODULE__CURSES_PANEL_LDFLAGS=$PANEL_LIBS $CURSES_LIBS 30368$as_nl" 30369 30370fi 30371 if test "$py_cv_module__curses_panel" = yes; then 30372 MODULE__CURSES_PANEL_TRUE= 30373 MODULE__CURSES_PANEL_FALSE='#' 30374else 30375 MODULE__CURSES_PANEL_TRUE='#' 30376 MODULE__CURSES_PANEL_FALSE= 30377fi 30378 30379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__curses_panel" >&5 30380printf "%s\n" "$py_cv_module__curses_panel" >&6; } 30381 30382 30383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _decimal" >&5 30384printf %s "checking for stdlib extension module _decimal... " >&6; } 30385 if test "$py_cv_module__decimal" != "n/a" 30386then : 30387 30388 if true 30389then : 30390 if test "$have_mpdec" = "yes" 30391then : 30392 py_cv_module__decimal=yes 30393else $as_nop 30394 py_cv_module__decimal=missing 30395fi 30396else $as_nop 30397 py_cv_module__decimal=disabled 30398fi 30399 30400fi 30401 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_STATE=$py_cv_module__decimal$as_nl" 30402 if test "x$py_cv_module__decimal" = xyes 30403then : 30404 30405 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_CFLAGS=$LIBMPDEC_CFLAGS$as_nl" 30406 as_fn_append MODULE_BLOCK "MODULE__DECIMAL_LDFLAGS=$LIBMPDEC_LIBS$as_nl" 30407 30408fi 30409 if test "$py_cv_module__decimal" = yes; then 30410 MODULE__DECIMAL_TRUE= 30411 MODULE__DECIMAL_FALSE='#' 30412else 30413 MODULE__DECIMAL_TRUE='#' 30414 MODULE__DECIMAL_FALSE= 30415fi 30416 30417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__decimal" >&5 30418printf "%s\n" "$py_cv_module__decimal" >&6; } 30419 30420 30421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _dbm" >&5 30422printf %s "checking for stdlib extension module _dbm... " >&6; } 30423 if test "$py_cv_module__dbm" != "n/a" 30424then : 30425 30426 if test -n "$with_dbmliborder" 30427then : 30428 if test "$have_dbm" != "no" 30429then : 30430 py_cv_module__dbm=yes 30431else $as_nop 30432 py_cv_module__dbm=missing 30433fi 30434else $as_nop 30435 py_cv_module__dbm=disabled 30436fi 30437 30438fi 30439 as_fn_append MODULE_BLOCK "MODULE__DBM_STATE=$py_cv_module__dbm$as_nl" 30440 if test "x$py_cv_module__dbm" = xyes 30441then : 30442 30443 as_fn_append MODULE_BLOCK "MODULE__DBM_CFLAGS=$DBM_CFLAGS$as_nl" 30444 as_fn_append MODULE_BLOCK "MODULE__DBM_LDFLAGS=$DBM_LIBS$as_nl" 30445 30446fi 30447 if test "$py_cv_module__dbm" = yes; then 30448 MODULE__DBM_TRUE= 30449 MODULE__DBM_FALSE='#' 30450else 30451 MODULE__DBM_TRUE='#' 30452 MODULE__DBM_FALSE= 30453fi 30454 30455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__dbm" >&5 30456printf "%s\n" "$py_cv_module__dbm" >&6; } 30457 30458 30459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _gdbm" >&5 30460printf %s "checking for stdlib extension module _gdbm... " >&6; } 30461 if test "$py_cv_module__gdbm" != "n/a" 30462then : 30463 30464 if test "$have_gdbm_dbmliborder" = yes 30465then : 30466 if test "$have_gdbm" = yes 30467then : 30468 py_cv_module__gdbm=yes 30469else $as_nop 30470 py_cv_module__gdbm=missing 30471fi 30472else $as_nop 30473 py_cv_module__gdbm=disabled 30474fi 30475 30476fi 30477 as_fn_append MODULE_BLOCK "MODULE__GDBM_STATE=$py_cv_module__gdbm$as_nl" 30478 if test "x$py_cv_module__gdbm" = xyes 30479then : 30480 30481 as_fn_append MODULE_BLOCK "MODULE__GDBM_CFLAGS=$GDBM_CFLAGS$as_nl" 30482 as_fn_append MODULE_BLOCK "MODULE__GDBM_LDFLAGS=$GDBM_LIBS$as_nl" 30483 30484fi 30485 if test "$py_cv_module__gdbm" = yes; then 30486 MODULE__GDBM_TRUE= 30487 MODULE__GDBM_FALSE='#' 30488else 30489 MODULE__GDBM_TRUE='#' 30490 MODULE__GDBM_FALSE= 30491fi 30492 30493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__gdbm" >&5 30494printf "%s\n" "$py_cv_module__gdbm" >&6; } 30495 30496 30497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module readline" >&5 30498printf %s "checking for stdlib extension module readline... " >&6; } 30499 if test "$py_cv_module_readline" != "n/a" 30500then : 30501 30502 if true 30503then : 30504 if test "$with_readline" != "no" 30505then : 30506 py_cv_module_readline=yes 30507else $as_nop 30508 py_cv_module_readline=missing 30509fi 30510else $as_nop 30511 py_cv_module_readline=disabled 30512fi 30513 30514fi 30515 as_fn_append MODULE_BLOCK "MODULE_READLINE_STATE=$py_cv_module_readline$as_nl" 30516 if test "x$py_cv_module_readline" = xyes 30517then : 30518 30519 as_fn_append MODULE_BLOCK "MODULE_READLINE_CFLAGS=$READLINE_CFLAGS$as_nl" 30520 as_fn_append MODULE_BLOCK "MODULE_READLINE_LDFLAGS=$READLINE_LIBS$as_nl" 30521 30522fi 30523 if test "$py_cv_module_readline" = yes; then 30524 MODULE_READLINE_TRUE= 30525 MODULE_READLINE_FALSE='#' 30526else 30527 MODULE_READLINE_TRUE='#' 30528 MODULE_READLINE_FALSE= 30529fi 30530 30531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_readline" >&5 30532printf "%s\n" "$py_cv_module_readline" >&6; } 30533 30534 30535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _sqlite3" >&5 30536printf %s "checking for stdlib extension module _sqlite3... " >&6; } 30537 if test "$py_cv_module__sqlite3" != "n/a" 30538then : 30539 30540 if test "$have_sqlite3" = "yes" 30541then : 30542 if test "$have_supported_sqlite3" = "yes" 30543then : 30544 py_cv_module__sqlite3=yes 30545else $as_nop 30546 py_cv_module__sqlite3=missing 30547fi 30548else $as_nop 30549 py_cv_module__sqlite3=disabled 30550fi 30551 30552fi 30553 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_STATE=$py_cv_module__sqlite3$as_nl" 30554 if test "x$py_cv_module__sqlite3" = xyes 30555then : 30556 30557 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_CFLAGS=$LIBSQLITE3_CFLAGS$as_nl" 30558 as_fn_append MODULE_BLOCK "MODULE__SQLITE3_LDFLAGS=$LIBSQLITE3_LIBS$as_nl" 30559 30560fi 30561 if test "$py_cv_module__sqlite3" = yes; then 30562 MODULE__SQLITE3_TRUE= 30563 MODULE__SQLITE3_FALSE='#' 30564else 30565 MODULE__SQLITE3_TRUE='#' 30566 MODULE__SQLITE3_FALSE= 30567fi 30568 30569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__sqlite3" >&5 30570printf "%s\n" "$py_cv_module__sqlite3" >&6; } 30571 30572 30573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _tkinter" >&5 30574printf %s "checking for stdlib extension module _tkinter... " >&6; } 30575 if test "$py_cv_module__tkinter" != "n/a" 30576then : 30577 30578 if true 30579then : 30580 if test "$have_tcltk" = "yes" 30581then : 30582 py_cv_module__tkinter=yes 30583else $as_nop 30584 py_cv_module__tkinter=missing 30585fi 30586else $as_nop 30587 py_cv_module__tkinter=disabled 30588fi 30589 30590fi 30591 as_fn_append MODULE_BLOCK "MODULE__TKINTER_STATE=$py_cv_module__tkinter$as_nl" 30592 if test "x$py_cv_module__tkinter" = xyes 30593then : 30594 30595 as_fn_append MODULE_BLOCK "MODULE__TKINTER_CFLAGS=$TCLTK_CFLAGS$as_nl" 30596 as_fn_append MODULE_BLOCK "MODULE__TKINTER_LDFLAGS=$TCLTK_LIBS$as_nl" 30597 30598fi 30599 if test "$py_cv_module__tkinter" = yes; then 30600 MODULE__TKINTER_TRUE= 30601 MODULE__TKINTER_FALSE='#' 30602else 30603 MODULE__TKINTER_TRUE='#' 30604 MODULE__TKINTER_FALSE= 30605fi 30606 30607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__tkinter" >&5 30608printf "%s\n" "$py_cv_module__tkinter" >&6; } 30609 30610 30611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _uuid" >&5 30612printf %s "checking for stdlib extension module _uuid... " >&6; } 30613 if test "$py_cv_module__uuid" != "n/a" 30614then : 30615 30616 if true 30617then : 30618 if test "$have_uuid" = "yes" 30619then : 30620 py_cv_module__uuid=yes 30621else $as_nop 30622 py_cv_module__uuid=missing 30623fi 30624else $as_nop 30625 py_cv_module__uuid=disabled 30626fi 30627 30628fi 30629 as_fn_append MODULE_BLOCK "MODULE__UUID_STATE=$py_cv_module__uuid$as_nl" 30630 if test "x$py_cv_module__uuid" = xyes 30631then : 30632 30633 as_fn_append MODULE_BLOCK "MODULE__UUID_CFLAGS=$LIBUUID_CFLAGS$as_nl" 30634 as_fn_append MODULE_BLOCK "MODULE__UUID_LDFLAGS=$LIBUUID_LIBS$as_nl" 30635 30636fi 30637 if test "$py_cv_module__uuid" = yes; then 30638 MODULE__UUID_TRUE= 30639 MODULE__UUID_FALSE='#' 30640else 30641 MODULE__UUID_TRUE='#' 30642 MODULE__UUID_FALSE= 30643fi 30644 30645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__uuid" >&5 30646printf "%s\n" "$py_cv_module__uuid" >&6; } 30647 30648 30649 30650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module zlib" >&5 30651printf %s "checking for stdlib extension module zlib... " >&6; } 30652 if test "$py_cv_module_zlib" != "n/a" 30653then : 30654 30655 if true 30656then : 30657 if test "$have_zlib" = yes 30658then : 30659 py_cv_module_zlib=yes 30660else $as_nop 30661 py_cv_module_zlib=missing 30662fi 30663else $as_nop 30664 py_cv_module_zlib=disabled 30665fi 30666 30667fi 30668 as_fn_append MODULE_BLOCK "MODULE_ZLIB_STATE=$py_cv_module_zlib$as_nl" 30669 if test "x$py_cv_module_zlib" = xyes 30670then : 30671 30672 as_fn_append MODULE_BLOCK "MODULE_ZLIB_CFLAGS=$ZLIB_CFLAGS$as_nl" 30673 as_fn_append MODULE_BLOCK "MODULE_ZLIB_LDFLAGS=$ZLIB_LIBS$as_nl" 30674 30675fi 30676 if test "$py_cv_module_zlib" = yes; then 30677 MODULE_ZLIB_TRUE= 30678 MODULE_ZLIB_FALSE='#' 30679else 30680 MODULE_ZLIB_TRUE='#' 30681 MODULE_ZLIB_FALSE= 30682fi 30683 30684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_zlib" >&5 30685printf "%s\n" "$py_cv_module_zlib" >&6; } 30686 30687 30688 if test "$py_cv_module_binascii" != "n/a" 30689then : 30690 py_cv_module_binascii=yes 30691fi 30692 if test "$py_cv_module_binascii" = yes; then 30693 MODULE_BINASCII_TRUE= 30694 MODULE_BINASCII_FALSE='#' 30695else 30696 MODULE_BINASCII_TRUE='#' 30697 MODULE_BINASCII_FALSE= 30698fi 30699 30700 as_fn_append MODULE_BLOCK "MODULE_BINASCII_STATE=$py_cv_module_binascii$as_nl" 30701 if test "x$py_cv_module_binascii" = xyes 30702then : 30703 30704 as_fn_append MODULE_BLOCK "MODULE_BINASCII_CFLAGS=$BINASCII_CFLAGS$as_nl" 30705 as_fn_append MODULE_BLOCK "MODULE_BINASCII_LDFLAGS=$BINASCII_LIBS$as_nl" 30706 30707fi 30708 30709 30710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _bz2" >&5 30711printf %s "checking for stdlib extension module _bz2... " >&6; } 30712 if test "$py_cv_module__bz2" != "n/a" 30713then : 30714 30715 if true 30716then : 30717 if test "$have_bzip2" = yes 30718then : 30719 py_cv_module__bz2=yes 30720else $as_nop 30721 py_cv_module__bz2=missing 30722fi 30723else $as_nop 30724 py_cv_module__bz2=disabled 30725fi 30726 30727fi 30728 as_fn_append MODULE_BLOCK "MODULE__BZ2_STATE=$py_cv_module__bz2$as_nl" 30729 if test "x$py_cv_module__bz2" = xyes 30730then : 30731 30732 as_fn_append MODULE_BLOCK "MODULE__BZ2_CFLAGS=$BZIP2_CFLAGS$as_nl" 30733 as_fn_append MODULE_BLOCK "MODULE__BZ2_LDFLAGS=$BZIP2_LIBS$as_nl" 30734 30735fi 30736 if test "$py_cv_module__bz2" = yes; then 30737 MODULE__BZ2_TRUE= 30738 MODULE__BZ2_FALSE='#' 30739else 30740 MODULE__BZ2_TRUE='#' 30741 MODULE__BZ2_FALSE= 30742fi 30743 30744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__bz2" >&5 30745printf "%s\n" "$py_cv_module__bz2" >&6; } 30746 30747 30748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _lzma" >&5 30749printf %s "checking for stdlib extension module _lzma... " >&6; } 30750 if test "$py_cv_module__lzma" != "n/a" 30751then : 30752 30753 if true 30754then : 30755 if test "$have_liblzma" = yes 30756then : 30757 py_cv_module__lzma=yes 30758else $as_nop 30759 py_cv_module__lzma=missing 30760fi 30761else $as_nop 30762 py_cv_module__lzma=disabled 30763fi 30764 30765fi 30766 as_fn_append MODULE_BLOCK "MODULE__LZMA_STATE=$py_cv_module__lzma$as_nl" 30767 if test "x$py_cv_module__lzma" = xyes 30768then : 30769 30770 as_fn_append MODULE_BLOCK "MODULE__LZMA_CFLAGS=$LIBLZMA_CFLAGS$as_nl" 30771 as_fn_append MODULE_BLOCK "MODULE__LZMA_LDFLAGS=$LIBLZMA_LIBS$as_nl" 30772 30773fi 30774 if test "$py_cv_module__lzma" = yes; then 30775 MODULE__LZMA_TRUE= 30776 MODULE__LZMA_FALSE='#' 30777else 30778 MODULE__LZMA_TRUE='#' 30779 MODULE__LZMA_FALSE= 30780fi 30781 30782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__lzma" >&5 30783printf "%s\n" "$py_cv_module__lzma" >&6; } 30784 30785 30786 30787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ssl" >&5 30788printf %s "checking for stdlib extension module _ssl... " >&6; } 30789 if test "$py_cv_module__ssl" != "n/a" 30790then : 30791 30792 if true 30793then : 30794 if test "$ac_cv_working_openssl_ssl" = yes 30795then : 30796 py_cv_module__ssl=yes 30797else $as_nop 30798 py_cv_module__ssl=missing 30799fi 30800else $as_nop 30801 py_cv_module__ssl=disabled 30802fi 30803 30804fi 30805 as_fn_append MODULE_BLOCK "MODULE__SSL_STATE=$py_cv_module__ssl$as_nl" 30806 if test "x$py_cv_module__ssl" = xyes 30807then : 30808 30809 as_fn_append MODULE_BLOCK "MODULE__SSL_CFLAGS=$OPENSSL_INCLUDES$as_nl" 30810 as_fn_append MODULE_BLOCK "MODULE__SSL_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $OPENSSL_LIBS$as_nl" 30811 30812fi 30813 if test "$py_cv_module__ssl" = yes; then 30814 MODULE__SSL_TRUE= 30815 MODULE__SSL_FALSE='#' 30816else 30817 MODULE__SSL_TRUE='#' 30818 MODULE__SSL_FALSE= 30819fi 30820 30821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ssl" >&5 30822printf "%s\n" "$py_cv_module__ssl" >&6; } 30823 30824 30825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _hashlib" >&5 30826printf %s "checking for stdlib extension module _hashlib... " >&6; } 30827 if test "$py_cv_module__hashlib" != "n/a" 30828then : 30829 30830 if true 30831then : 30832 if test "$ac_cv_working_openssl_hashlib" = yes 30833then : 30834 py_cv_module__hashlib=yes 30835else $as_nop 30836 py_cv_module__hashlib=missing 30837fi 30838else $as_nop 30839 py_cv_module__hashlib=disabled 30840fi 30841 30842fi 30843 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_STATE=$py_cv_module__hashlib$as_nl" 30844 if test "x$py_cv_module__hashlib" = xyes 30845then : 30846 30847 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_CFLAGS=$OPENSSL_INCLUDES$as_nl" 30848 as_fn_append MODULE_BLOCK "MODULE__HASHLIB_LDFLAGS=$OPENSSL_LDFLAGS $OPENSSL_LDFLAGS_RPATH $LIBCRYPTO_LIBS$as_nl" 30849 30850fi 30851 if test "$py_cv_module__hashlib" = yes; then 30852 MODULE__HASHLIB_TRUE= 30853 MODULE__HASHLIB_FALSE='#' 30854else 30855 MODULE__HASHLIB_TRUE='#' 30856 MODULE__HASHLIB_FALSE= 30857fi 30858 30859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__hashlib" >&5 30860printf "%s\n" "$py_cv_module__hashlib" >&6; } 30861 30862 30863 30864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testcapi" >&5 30865printf %s "checking for stdlib extension module _testcapi... " >&6; } 30866 if test "$py_cv_module__testcapi" != "n/a" 30867then : 30868 30869 if test "$TEST_MODULES" = yes 30870then : 30871 if true 30872then : 30873 py_cv_module__testcapi=yes 30874else $as_nop 30875 py_cv_module__testcapi=missing 30876fi 30877else $as_nop 30878 py_cv_module__testcapi=disabled 30879fi 30880 30881fi 30882 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_STATE=$py_cv_module__testcapi$as_nl" 30883 if test "x$py_cv_module__testcapi" = xyes 30884then : 30885 30886 30887 as_fn_append MODULE_BLOCK "MODULE__TESTCAPI_LDFLAGS=$LIBATOMIC$as_nl" 30888 30889fi 30890 if test "$py_cv_module__testcapi" = yes; then 30891 MODULE__TESTCAPI_TRUE= 30892 MODULE__TESTCAPI_FALSE='#' 30893else 30894 MODULE__TESTCAPI_TRUE='#' 30895 MODULE__TESTCAPI_FALSE= 30896fi 30897 30898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testcapi" >&5 30899printf "%s\n" "$py_cv_module__testcapi" >&6; } 30900 30901 30902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic" >&5 30903printf %s "checking for stdlib extension module _testclinic... " >&6; } 30904 if test "$py_cv_module__testclinic" != "n/a" 30905then : 30906 30907 if test "$TEST_MODULES" = yes 30908then : 30909 if true 30910then : 30911 py_cv_module__testclinic=yes 30912else $as_nop 30913 py_cv_module__testclinic=missing 30914fi 30915else $as_nop 30916 py_cv_module__testclinic=disabled 30917fi 30918 30919fi 30920 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_STATE=$py_cv_module__testclinic$as_nl" 30921 if test "x$py_cv_module__testclinic" = xyes 30922then : 30923 30924 30925 30926 30927fi 30928 if test "$py_cv_module__testclinic" = yes; then 30929 MODULE__TESTCLINIC_TRUE= 30930 MODULE__TESTCLINIC_FALSE='#' 30931else 30932 MODULE__TESTCLINIC_TRUE='#' 30933 MODULE__TESTCLINIC_FALSE= 30934fi 30935 30936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic" >&5 30937printf "%s\n" "$py_cv_module__testclinic" >&6; } 30938 30939 30940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testclinic_limited" >&5 30941printf %s "checking for stdlib extension module _testclinic_limited... " >&6; } 30942 if test "$py_cv_module__testclinic_limited" != "n/a" 30943then : 30944 30945 if test "$TEST_MODULES" = yes 30946then : 30947 if true 30948then : 30949 py_cv_module__testclinic_limited=yes 30950else $as_nop 30951 py_cv_module__testclinic_limited=missing 30952fi 30953else $as_nop 30954 py_cv_module__testclinic_limited=disabled 30955fi 30956 30957fi 30958 as_fn_append MODULE_BLOCK "MODULE__TESTCLINIC_LIMITED_STATE=$py_cv_module__testclinic_limited$as_nl" 30959 if test "x$py_cv_module__testclinic_limited" = xyes 30960then : 30961 30962 30963 30964 30965fi 30966 if test "$py_cv_module__testclinic_limited" = yes; then 30967 MODULE__TESTCLINIC_LIMITED_TRUE= 30968 MODULE__TESTCLINIC_LIMITED_FALSE='#' 30969else 30970 MODULE__TESTCLINIC_LIMITED_TRUE='#' 30971 MODULE__TESTCLINIC_LIMITED_FALSE= 30972fi 30973 30974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testclinic_limited" >&5 30975printf "%s\n" "$py_cv_module__testclinic_limited" >&6; } 30976 30977 30978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testlimitedcapi" >&5 30979printf %s "checking for stdlib extension module _testlimitedcapi... " >&6; } 30980 if test "$py_cv_module__testlimitedcapi" != "n/a" 30981then : 30982 30983 if test "$TEST_MODULES" = yes 30984then : 30985 if true 30986then : 30987 py_cv_module__testlimitedcapi=yes 30988else $as_nop 30989 py_cv_module__testlimitedcapi=missing 30990fi 30991else $as_nop 30992 py_cv_module__testlimitedcapi=disabled 30993fi 30994 30995fi 30996 as_fn_append MODULE_BLOCK "MODULE__TESTLIMITEDCAPI_STATE=$py_cv_module__testlimitedcapi$as_nl" 30997 if test "x$py_cv_module__testlimitedcapi" = xyes 30998then : 30999 31000 31001 31002 31003fi 31004 if test "$py_cv_module__testlimitedcapi" = yes; then 31005 MODULE__TESTLIMITEDCAPI_TRUE= 31006 MODULE__TESTLIMITEDCAPI_FALSE='#' 31007else 31008 MODULE__TESTLIMITEDCAPI_TRUE='#' 31009 MODULE__TESTLIMITEDCAPI_FALSE= 31010fi 31011 31012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testlimitedcapi" >&5 31013printf "%s\n" "$py_cv_module__testlimitedcapi" >&6; } 31014 31015 31016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testinternalcapi" >&5 31017printf %s "checking for stdlib extension module _testinternalcapi... " >&6; } 31018 if test "$py_cv_module__testinternalcapi" != "n/a" 31019then : 31020 31021 if test "$TEST_MODULES" = yes 31022then : 31023 if true 31024then : 31025 py_cv_module__testinternalcapi=yes 31026else $as_nop 31027 py_cv_module__testinternalcapi=missing 31028fi 31029else $as_nop 31030 py_cv_module__testinternalcapi=disabled 31031fi 31032 31033fi 31034 as_fn_append MODULE_BLOCK "MODULE__TESTINTERNALCAPI_STATE=$py_cv_module__testinternalcapi$as_nl" 31035 if test "x$py_cv_module__testinternalcapi" = xyes 31036then : 31037 31038 31039 31040 31041fi 31042 if test "$py_cv_module__testinternalcapi" = yes; then 31043 MODULE__TESTINTERNALCAPI_TRUE= 31044 MODULE__TESTINTERNALCAPI_FALSE='#' 31045else 31046 MODULE__TESTINTERNALCAPI_TRUE='#' 31047 MODULE__TESTINTERNALCAPI_FALSE= 31048fi 31049 31050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testinternalcapi" >&5 31051printf "%s\n" "$py_cv_module__testinternalcapi" >&6; } 31052 31053 31054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testbuffer" >&5 31055printf %s "checking for stdlib extension module _testbuffer... " >&6; } 31056 if test "$py_cv_module__testbuffer" != "n/a" 31057then : 31058 31059 if test "$TEST_MODULES" = yes 31060then : 31061 if true 31062then : 31063 py_cv_module__testbuffer=yes 31064else $as_nop 31065 py_cv_module__testbuffer=missing 31066fi 31067else $as_nop 31068 py_cv_module__testbuffer=disabled 31069fi 31070 31071fi 31072 as_fn_append MODULE_BLOCK "MODULE__TESTBUFFER_STATE=$py_cv_module__testbuffer$as_nl" 31073 if test "x$py_cv_module__testbuffer" = xyes 31074then : 31075 31076 31077 31078 31079fi 31080 if test "$py_cv_module__testbuffer" = yes; then 31081 MODULE__TESTBUFFER_TRUE= 31082 MODULE__TESTBUFFER_FALSE='#' 31083else 31084 MODULE__TESTBUFFER_TRUE='#' 31085 MODULE__TESTBUFFER_FALSE= 31086fi 31087 31088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testbuffer" >&5 31089printf "%s\n" "$py_cv_module__testbuffer" >&6; } 31090 31091 31092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testimportmultiple" >&5 31093printf %s "checking for stdlib extension module _testimportmultiple... " >&6; } 31094 if test "$py_cv_module__testimportmultiple" != "n/a" 31095then : 31096 31097 if test "$TEST_MODULES" = yes 31098then : 31099 if test "$ac_cv_func_dlopen" = yes 31100then : 31101 py_cv_module__testimportmultiple=yes 31102else $as_nop 31103 py_cv_module__testimportmultiple=missing 31104fi 31105else $as_nop 31106 py_cv_module__testimportmultiple=disabled 31107fi 31108 31109fi 31110 as_fn_append MODULE_BLOCK "MODULE__TESTIMPORTMULTIPLE_STATE=$py_cv_module__testimportmultiple$as_nl" 31111 if test "x$py_cv_module__testimportmultiple" = xyes 31112then : 31113 31114 31115 31116 31117fi 31118 if test "$py_cv_module__testimportmultiple" = yes; then 31119 MODULE__TESTIMPORTMULTIPLE_TRUE= 31120 MODULE__TESTIMPORTMULTIPLE_FALSE='#' 31121else 31122 MODULE__TESTIMPORTMULTIPLE_TRUE='#' 31123 MODULE__TESTIMPORTMULTIPLE_FALSE= 31124fi 31125 31126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testimportmultiple" >&5 31127printf "%s\n" "$py_cv_module__testimportmultiple" >&6; } 31128 31129 31130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testmultiphase" >&5 31131printf %s "checking for stdlib extension module _testmultiphase... " >&6; } 31132 if test "$py_cv_module__testmultiphase" != "n/a" 31133then : 31134 31135 if test "$TEST_MODULES" = yes 31136then : 31137 if test "$ac_cv_func_dlopen" = yes 31138then : 31139 py_cv_module__testmultiphase=yes 31140else $as_nop 31141 py_cv_module__testmultiphase=missing 31142fi 31143else $as_nop 31144 py_cv_module__testmultiphase=disabled 31145fi 31146 31147fi 31148 as_fn_append MODULE_BLOCK "MODULE__TESTMULTIPHASE_STATE=$py_cv_module__testmultiphase$as_nl" 31149 if test "x$py_cv_module__testmultiphase" = xyes 31150then : 31151 31152 31153 31154 31155fi 31156 if test "$py_cv_module__testmultiphase" = yes; then 31157 MODULE__TESTMULTIPHASE_TRUE= 31158 MODULE__TESTMULTIPHASE_FALSE='#' 31159else 31160 MODULE__TESTMULTIPHASE_TRUE='#' 31161 MODULE__TESTMULTIPHASE_FALSE= 31162fi 31163 31164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testmultiphase" >&5 31165printf "%s\n" "$py_cv_module__testmultiphase" >&6; } 31166 31167 31168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testsinglephase" >&5 31169printf %s "checking for stdlib extension module _testsinglephase... " >&6; } 31170 if test "$py_cv_module__testsinglephase" != "n/a" 31171then : 31172 31173 if test "$TEST_MODULES" = yes 31174then : 31175 if test "$ac_cv_func_dlopen" = yes 31176then : 31177 py_cv_module__testsinglephase=yes 31178else $as_nop 31179 py_cv_module__testsinglephase=missing 31180fi 31181else $as_nop 31182 py_cv_module__testsinglephase=disabled 31183fi 31184 31185fi 31186 as_fn_append MODULE_BLOCK "MODULE__TESTSINGLEPHASE_STATE=$py_cv_module__testsinglephase$as_nl" 31187 if test "x$py_cv_module__testsinglephase" = xyes 31188then : 31189 31190 31191 31192 31193fi 31194 if test "$py_cv_module__testsinglephase" = yes; then 31195 MODULE__TESTSINGLEPHASE_TRUE= 31196 MODULE__TESTSINGLEPHASE_FALSE='#' 31197else 31198 MODULE__TESTSINGLEPHASE_TRUE='#' 31199 MODULE__TESTSINGLEPHASE_FALSE= 31200fi 31201 31202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testsinglephase" >&5 31203printf "%s\n" "$py_cv_module__testsinglephase" >&6; } 31204 31205 31206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _testexternalinspection" >&5 31207printf %s "checking for stdlib extension module _testexternalinspection... " >&6; } 31208 if test "$py_cv_module__testexternalinspection" != "n/a" 31209then : 31210 31211 if test "$TEST_MODULES" = yes 31212then : 31213 if true 31214then : 31215 py_cv_module__testexternalinspection=yes 31216else $as_nop 31217 py_cv_module__testexternalinspection=missing 31218fi 31219else $as_nop 31220 py_cv_module__testexternalinspection=disabled 31221fi 31222 31223fi 31224 as_fn_append MODULE_BLOCK "MODULE__TESTEXTERNALINSPECTION_STATE=$py_cv_module__testexternalinspection$as_nl" 31225 if test "x$py_cv_module__testexternalinspection" = xyes 31226then : 31227 31228 31229 31230 31231fi 31232 if test "$py_cv_module__testexternalinspection" = yes; then 31233 MODULE__TESTEXTERNALINSPECTION_TRUE= 31234 MODULE__TESTEXTERNALINSPECTION_FALSE='#' 31235else 31236 MODULE__TESTEXTERNALINSPECTION_TRUE='#' 31237 MODULE__TESTEXTERNALINSPECTION_FALSE= 31238fi 31239 31240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__testexternalinspection" >&5 31241printf "%s\n" "$py_cv_module__testexternalinspection" >&6; } 31242 31243 31244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxsubtype" >&5 31245printf %s "checking for stdlib extension module xxsubtype... " >&6; } 31246 if test "$py_cv_module_xxsubtype" != "n/a" 31247then : 31248 31249 if test "$TEST_MODULES" = yes 31250then : 31251 if true 31252then : 31253 py_cv_module_xxsubtype=yes 31254else $as_nop 31255 py_cv_module_xxsubtype=missing 31256fi 31257else $as_nop 31258 py_cv_module_xxsubtype=disabled 31259fi 31260 31261fi 31262 as_fn_append MODULE_BLOCK "MODULE_XXSUBTYPE_STATE=$py_cv_module_xxsubtype$as_nl" 31263 if test "x$py_cv_module_xxsubtype" = xyes 31264then : 31265 31266 31267 31268 31269fi 31270 if test "$py_cv_module_xxsubtype" = yes; then 31271 MODULE_XXSUBTYPE_TRUE= 31272 MODULE_XXSUBTYPE_FALSE='#' 31273else 31274 MODULE_XXSUBTYPE_TRUE='#' 31275 MODULE_XXSUBTYPE_FALSE= 31276fi 31277 31278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxsubtype" >&5 31279printf "%s\n" "$py_cv_module_xxsubtype" >&6; } 31280 31281 31282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _xxtestfuzz" >&5 31283printf %s "checking for stdlib extension module _xxtestfuzz... " >&6; } 31284 if test "$py_cv_module__xxtestfuzz" != "n/a" 31285then : 31286 31287 if test "$TEST_MODULES" = yes 31288then : 31289 if true 31290then : 31291 py_cv_module__xxtestfuzz=yes 31292else $as_nop 31293 py_cv_module__xxtestfuzz=missing 31294fi 31295else $as_nop 31296 py_cv_module__xxtestfuzz=disabled 31297fi 31298 31299fi 31300 as_fn_append MODULE_BLOCK "MODULE__XXTESTFUZZ_STATE=$py_cv_module__xxtestfuzz$as_nl" 31301 if test "x$py_cv_module__xxtestfuzz" = xyes 31302then : 31303 31304 31305 31306 31307fi 31308 if test "$py_cv_module__xxtestfuzz" = yes; then 31309 MODULE__XXTESTFUZZ_TRUE= 31310 MODULE__XXTESTFUZZ_FALSE='#' 31311else 31312 MODULE__XXTESTFUZZ_TRUE='#' 31313 MODULE__XXTESTFUZZ_FALSE= 31314fi 31315 31316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__xxtestfuzz" >&5 31317printf "%s\n" "$py_cv_module__xxtestfuzz" >&6; } 31318 31319 31320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module _ctypes_test" >&5 31321printf %s "checking for stdlib extension module _ctypes_test... " >&6; } 31322 if test "$py_cv_module__ctypes_test" != "n/a" 31323then : 31324 31325 if test "$TEST_MODULES" = yes 31326then : 31327 if test "$have_libffi" = yes -a "$ac_cv_func_dlopen" = yes 31328then : 31329 py_cv_module__ctypes_test=yes 31330else $as_nop 31331 py_cv_module__ctypes_test=missing 31332fi 31333else $as_nop 31334 py_cv_module__ctypes_test=disabled 31335fi 31336 31337fi 31338 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_STATE=$py_cv_module__ctypes_test$as_nl" 31339 if test "x$py_cv_module__ctypes_test" = xyes 31340then : 31341 31342 31343 as_fn_append MODULE_BLOCK "MODULE__CTYPES_TEST_LDFLAGS=$LIBM$as_nl" 31344 31345fi 31346 if test "$py_cv_module__ctypes_test" = yes; then 31347 MODULE__CTYPES_TEST_TRUE= 31348 MODULE__CTYPES_TEST_FALSE='#' 31349else 31350 MODULE__CTYPES_TEST_TRUE='#' 31351 MODULE__CTYPES_TEST_FALSE= 31352fi 31353 31354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module__ctypes_test" >&5 31355printf "%s\n" "$py_cv_module__ctypes_test" >&6; } 31356 31357 31358 31359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited" >&5 31360printf %s "checking for stdlib extension module xxlimited... " >&6; } 31361 if test "$py_cv_module_xxlimited" != "n/a" 31362then : 31363 31364 if test "$TEST_MODULES" = yes 31365then : 31366 if test "$ac_cv_func_dlopen" = yes 31367then : 31368 py_cv_module_xxlimited=yes 31369else $as_nop 31370 py_cv_module_xxlimited=missing 31371fi 31372else $as_nop 31373 py_cv_module_xxlimited=disabled 31374fi 31375 31376fi 31377 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_STATE=$py_cv_module_xxlimited$as_nl" 31378 if test "x$py_cv_module_xxlimited" = xyes 31379then : 31380 31381 31382 31383 31384fi 31385 if test "$py_cv_module_xxlimited" = yes; then 31386 MODULE_XXLIMITED_TRUE= 31387 MODULE_XXLIMITED_FALSE='#' 31388else 31389 MODULE_XXLIMITED_TRUE='#' 31390 MODULE_XXLIMITED_FALSE= 31391fi 31392 31393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited" >&5 31394printf "%s\n" "$py_cv_module_xxlimited" >&6; } 31395 31396 31397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdlib extension module xxlimited_35" >&5 31398printf %s "checking for stdlib extension module xxlimited_35... " >&6; } 31399 if test "$py_cv_module_xxlimited_35" != "n/a" 31400then : 31401 31402 if test "$TEST_MODULES" = yes 31403then : 31404 if test "$ac_cv_func_dlopen" = yes 31405then : 31406 py_cv_module_xxlimited_35=yes 31407else $as_nop 31408 py_cv_module_xxlimited_35=missing 31409fi 31410else $as_nop 31411 py_cv_module_xxlimited_35=disabled 31412fi 31413 31414fi 31415 as_fn_append MODULE_BLOCK "MODULE_XXLIMITED_35_STATE=$py_cv_module_xxlimited_35$as_nl" 31416 if test "x$py_cv_module_xxlimited_35" = xyes 31417then : 31418 31419 31420 31421 31422fi 31423 if test "$py_cv_module_xxlimited_35" = yes; then 31424 MODULE_XXLIMITED_35_TRUE= 31425 MODULE_XXLIMITED_35_FALSE='#' 31426else 31427 MODULE_XXLIMITED_35_TRUE='#' 31428 MODULE_XXLIMITED_35_FALSE= 31429fi 31430 31431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $py_cv_module_xxlimited_35" >&5 31432printf "%s\n" "$py_cv_module_xxlimited_35" >&6; } 31433 31434 31435# substitute multiline block, must come after last PY_STDLIB_MOD() 31436 31437 31438# generate output files 31439ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh" 31440 31441ac_config_files="$ac_config_files Modules/Setup.bootstrap Modules/Setup.stdlib" 31442 31443ac_config_files="$ac_config_files Modules/ld_so_aix" 31444 31445# Generate files like pyconfig.h 31446cat >confcache <<\_ACEOF 31447# This file is a shell script that caches the results of configure 31448# tests run on this system so they can be shared between configure 31449# scripts and configure runs, see configure's option --config-cache. 31450# It is not useful on other systems. If it contains results you don't 31451# want to keep, you may remove or edit it. 31452# 31453# config.status only pays attention to the cache file if you give it 31454# the --recheck option to rerun configure. 31455# 31456# `ac_cv_env_foo' variables (set or unset) will be overridden when 31457# loading this file, other *unset* `ac_cv_foo' will be assigned the 31458# following values. 31459 31460_ACEOF 31461 31462# The following way of writing the cache mishandles newlines in values, 31463# but we know of no workaround that is simple, portable, and efficient. 31464# So, we kill variables containing newlines. 31465# Ultrix sh set writes to stderr and can't be redirected directly, 31466# and sets the high bit in the cache file unless we assign to the vars. 31467( 31468 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 31469 eval ac_val=\$$ac_var 31470 case $ac_val in #( 31471 *${as_nl}*) 31472 case $ac_var in #( 31473 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 31474printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 31475 esac 31476 case $ac_var in #( 31477 _ | IFS | as_nl) ;; #( 31478 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 31479 *) { eval $ac_var=; unset $ac_var;} ;; 31480 esac ;; 31481 esac 31482 done 31483 31484 (set) 2>&1 | 31485 case $as_nl`(ac_space=' '; set) 2>&1` in #( 31486 *${as_nl}ac_space=\ *) 31487 # `set' does not quote correctly, so add quotes: double-quote 31488 # substitution turns \\\\ into \\, and sed turns \\ into \. 31489 sed -n \ 31490 "s/'/'\\\\''/g; 31491 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 31492 ;; #( 31493 *) 31494 # `set' quotes correctly as required by POSIX, so do not add quotes. 31495 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 31496 ;; 31497 esac | 31498 sort 31499) | 31500 sed ' 31501 /^ac_cv_env_/b end 31502 t clear 31503 :clear 31504 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 31505 t end 31506 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 31507 :end' >>confcache 31508if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 31509 if test -w "$cache_file"; then 31510 if test "x$cache_file" != "x/dev/null"; then 31511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 31512printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 31513 if test ! -f "$cache_file" || test -h "$cache_file"; then 31514 cat confcache >"$cache_file" 31515 else 31516 case $cache_file in #( 31517 */* | ?:*) 31518 mv -f confcache "$cache_file"$$ && 31519 mv -f "$cache_file"$$ "$cache_file" ;; #( 31520 *) 31521 mv -f confcache "$cache_file" ;; 31522 esac 31523 fi 31524 fi 31525 else 31526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 31527printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 31528 fi 31529fi 31530rm -f confcache 31531 31532test "x$prefix" = xNONE && prefix=$ac_default_prefix 31533# Let make expand exec_prefix. 31534test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 31535 31536DEFS=-DHAVE_CONFIG_H 31537 31538ac_libobjs= 31539ac_ltlibobjs= 31540U= 31541for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 31542 # 1. Remove the extension, and $U if already installed. 31543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 31544 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 31545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 31546 # will be set to the directory where LIBOBJS objects are built. 31547 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 31548 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 31549done 31550LIBOBJS=$ac_libobjs 31551 31552LTLIBOBJS=$ac_ltlibobjs 31553 31554 31555 31556if test -z "${MODULE__IO_TRUE}" && test -z "${MODULE__IO_FALSE}"; then 31557 as_fn_error $? "conditional \"MODULE__IO\" was never defined. 31558Usually this means the macro was only invoked conditionally." "$LINENO" 5 31559fi 31560if test -z "${MODULE_TIME_TRUE}" && test -z "${MODULE_TIME_FALSE}"; then 31561 as_fn_error $? "conditional \"MODULE_TIME\" was never defined. 31562Usually this means the macro was only invoked conditionally." "$LINENO" 5 31563fi 31564if test -z "${MODULE_ARRAY_TRUE}" && test -z "${MODULE_ARRAY_FALSE}"; then 31565 as_fn_error $? "conditional \"MODULE_ARRAY\" was never defined. 31566Usually this means the macro was only invoked conditionally." "$LINENO" 5 31567fi 31568if test -z "${MODULE__ASYNCIO_TRUE}" && test -z "${MODULE__ASYNCIO_FALSE}"; then 31569 as_fn_error $? "conditional \"MODULE__ASYNCIO\" was never defined. 31570Usually this means the macro was only invoked conditionally." "$LINENO" 5 31571fi 31572if test -z "${MODULE__BISECT_TRUE}" && test -z "${MODULE__BISECT_FALSE}"; then 31573 as_fn_error $? "conditional \"MODULE__BISECT\" was never defined. 31574Usually this means the macro was only invoked conditionally." "$LINENO" 5 31575fi 31576if test -z "${MODULE__CONTEXTVARS_TRUE}" && test -z "${MODULE__CONTEXTVARS_FALSE}"; then 31577 as_fn_error $? "conditional \"MODULE__CONTEXTVARS\" was never defined. 31578Usually this means the macro was only invoked conditionally." "$LINENO" 5 31579fi 31580if test -z "${MODULE__CSV_TRUE}" && test -z "${MODULE__CSV_FALSE}"; then 31581 as_fn_error $? "conditional \"MODULE__CSV\" was never defined. 31582Usually this means the macro was only invoked conditionally." "$LINENO" 5 31583fi 31584if test -z "${MODULE__HEAPQ_TRUE}" && test -z "${MODULE__HEAPQ_FALSE}"; then 31585 as_fn_error $? "conditional \"MODULE__HEAPQ\" was never defined. 31586Usually this means the macro was only invoked conditionally." "$LINENO" 5 31587fi 31588if test -z "${MODULE__JSON_TRUE}" && test -z "${MODULE__JSON_FALSE}"; then 31589 as_fn_error $? "conditional \"MODULE__JSON\" was never defined. 31590Usually this means the macro was only invoked conditionally." "$LINENO" 5 31591fi 31592if test -z "${MODULE__LSPROF_TRUE}" && test -z "${MODULE__LSPROF_FALSE}"; then 31593 as_fn_error $? "conditional \"MODULE__LSPROF\" was never defined. 31594Usually this means the macro was only invoked conditionally." "$LINENO" 5 31595fi 31596if test -z "${MODULE__OPCODE_TRUE}" && test -z "${MODULE__OPCODE_FALSE}"; then 31597 as_fn_error $? "conditional \"MODULE__OPCODE\" was never defined. 31598Usually this means the macro was only invoked conditionally." "$LINENO" 5 31599fi 31600if test -z "${MODULE__PICKLE_TRUE}" && test -z "${MODULE__PICKLE_FALSE}"; then 31601 as_fn_error $? "conditional \"MODULE__PICKLE\" was never defined. 31602Usually this means the macro was only invoked conditionally." "$LINENO" 5 31603fi 31604if test -z "${MODULE__POSIXSUBPROCESS_TRUE}" && test -z "${MODULE__POSIXSUBPROCESS_FALSE}"; then 31605 as_fn_error $? "conditional \"MODULE__POSIXSUBPROCESS\" was never defined. 31606Usually this means the macro was only invoked conditionally." "$LINENO" 5 31607fi 31608if test -z "${MODULE__QUEUE_TRUE}" && test -z "${MODULE__QUEUE_FALSE}"; then 31609 as_fn_error $? "conditional \"MODULE__QUEUE\" was never defined. 31610Usually this means the macro was only invoked conditionally." "$LINENO" 5 31611fi 31612if test -z "${MODULE__RANDOM_TRUE}" && test -z "${MODULE__RANDOM_FALSE}"; then 31613 as_fn_error $? "conditional \"MODULE__RANDOM\" was never defined. 31614Usually this means the macro was only invoked conditionally." "$LINENO" 5 31615fi 31616if test -z "${MODULE_SELECT_TRUE}" && test -z "${MODULE_SELECT_FALSE}"; then 31617 as_fn_error $? "conditional \"MODULE_SELECT\" was never defined. 31618Usually this means the macro was only invoked conditionally." "$LINENO" 5 31619fi 31620if test -z "${MODULE__STRUCT_TRUE}" && test -z "${MODULE__STRUCT_FALSE}"; then 31621 as_fn_error $? "conditional \"MODULE__STRUCT\" was never defined. 31622Usually this means the macro was only invoked conditionally." "$LINENO" 5 31623fi 31624if test -z "${MODULE__TYPING_TRUE}" && test -z "${MODULE__TYPING_FALSE}"; then 31625 as_fn_error $? "conditional \"MODULE__TYPING\" was never defined. 31626Usually this means the macro was only invoked conditionally." "$LINENO" 5 31627fi 31628if test -z "${MODULE__INTERPRETERS_TRUE}" && test -z "${MODULE__INTERPRETERS_FALSE}"; then 31629 as_fn_error $? "conditional \"MODULE__INTERPRETERS\" was never defined. 31630Usually this means the macro was only invoked conditionally." "$LINENO" 5 31631fi 31632if test -z "${MODULE__INTERPCHANNELS_TRUE}" && test -z "${MODULE__INTERPCHANNELS_FALSE}"; then 31633 as_fn_error $? "conditional \"MODULE__INTERPCHANNELS\" was never defined. 31634Usually this means the macro was only invoked conditionally." "$LINENO" 5 31635fi 31636if test -z "${MODULE__INTERPQUEUES_TRUE}" && test -z "${MODULE__INTERPQUEUES_FALSE}"; then 31637 as_fn_error $? "conditional \"MODULE__INTERPQUEUES\" was never defined. 31638Usually this means the macro was only invoked conditionally." "$LINENO" 5 31639fi 31640if test -z "${MODULE__ZONEINFO_TRUE}" && test -z "${MODULE__ZONEINFO_FALSE}"; then 31641 as_fn_error $? "conditional \"MODULE__ZONEINFO\" was never defined. 31642Usually this means the macro was only invoked conditionally." "$LINENO" 5 31643fi 31644if test -z "${MODULE__MULTIPROCESSING_TRUE}" && test -z "${MODULE__MULTIPROCESSING_FALSE}"; then 31645 as_fn_error $? "conditional \"MODULE__MULTIPROCESSING\" was never defined. 31646Usually this means the macro was only invoked conditionally." "$LINENO" 5 31647fi 31648if test -z "${MODULE__POSIXSHMEM_TRUE}" && test -z "${MODULE__POSIXSHMEM_FALSE}"; then 31649 as_fn_error $? "conditional \"MODULE__POSIXSHMEM\" was never defined. 31650Usually this means the macro was only invoked conditionally." "$LINENO" 5 31651fi 31652if test -z "${MODULE__STATISTICS_TRUE}" && test -z "${MODULE__STATISTICS_FALSE}"; then 31653 as_fn_error $? "conditional \"MODULE__STATISTICS\" was never defined. 31654Usually this means the macro was only invoked conditionally." "$LINENO" 5 31655fi 31656if test -z "${MODULE_CMATH_TRUE}" && test -z "${MODULE_CMATH_FALSE}"; then 31657 as_fn_error $? "conditional \"MODULE_CMATH\" was never defined. 31658Usually this means the macro was only invoked conditionally." "$LINENO" 5 31659fi 31660if test -z "${MODULE_MATH_TRUE}" && test -z "${MODULE_MATH_FALSE}"; then 31661 as_fn_error $? "conditional \"MODULE_MATH\" was never defined. 31662Usually this means the macro was only invoked conditionally." "$LINENO" 5 31663fi 31664if test -z "${MODULE__DATETIME_TRUE}" && test -z "${MODULE__DATETIME_FALSE}"; then 31665 as_fn_error $? "conditional \"MODULE__DATETIME\" was never defined. 31666Usually this means the macro was only invoked conditionally." "$LINENO" 5 31667fi 31668if test -z "${MODULE_FCNTL_TRUE}" && test -z "${MODULE_FCNTL_FALSE}"; then 31669 as_fn_error $? "conditional \"MODULE_FCNTL\" was never defined. 31670Usually this means the macro was only invoked conditionally." "$LINENO" 5 31671fi 31672if test -z "${MODULE_MMAP_TRUE}" && test -z "${MODULE_MMAP_FALSE}"; then 31673 as_fn_error $? "conditional \"MODULE_MMAP\" was never defined. 31674Usually this means the macro was only invoked conditionally." "$LINENO" 5 31675fi 31676if test -z "${MODULE__SOCKET_TRUE}" && test -z "${MODULE__SOCKET_FALSE}"; then 31677 as_fn_error $? "conditional \"MODULE__SOCKET\" was never defined. 31678Usually this means the macro was only invoked conditionally." "$LINENO" 5 31679fi 31680if test -z "${MODULE_GRP_TRUE}" && test -z "${MODULE_GRP_FALSE}"; then 31681 as_fn_error $? "conditional \"MODULE_GRP\" was never defined. 31682Usually this means the macro was only invoked conditionally." "$LINENO" 5 31683fi 31684if test -z "${MODULE_PWD_TRUE}" && test -z "${MODULE_PWD_FALSE}"; then 31685 as_fn_error $? "conditional \"MODULE_PWD\" was never defined. 31686Usually this means the macro was only invoked conditionally." "$LINENO" 5 31687fi 31688if test -z "${MODULE_RESOURCE_TRUE}" && test -z "${MODULE_RESOURCE_FALSE}"; then 31689 as_fn_error $? "conditional \"MODULE_RESOURCE\" was never defined. 31690Usually this means the macro was only invoked conditionally." "$LINENO" 5 31691fi 31692if test -z "${MODULE__SCPROXY_TRUE}" && test -z "${MODULE__SCPROXY_FALSE}"; then 31693 as_fn_error $? "conditional \"MODULE__SCPROXY\" was never defined. 31694Usually this means the macro was only invoked conditionally." "$LINENO" 5 31695fi 31696if test -z "${MODULE_SYSLOG_TRUE}" && test -z "${MODULE_SYSLOG_FALSE}"; then 31697 as_fn_error $? "conditional \"MODULE_SYSLOG\" was never defined. 31698Usually this means the macro was only invoked conditionally." "$LINENO" 5 31699fi 31700if test -z "${MODULE_TERMIOS_TRUE}" && test -z "${MODULE_TERMIOS_FALSE}"; then 31701 as_fn_error $? "conditional \"MODULE_TERMIOS\" was never defined. 31702Usually this means the macro was only invoked conditionally." "$LINENO" 5 31703fi 31704if test -z "${MODULE_PYEXPAT_TRUE}" && test -z "${MODULE_PYEXPAT_FALSE}"; then 31705 as_fn_error $? "conditional \"MODULE_PYEXPAT\" was never defined. 31706Usually this means the macro was only invoked conditionally." "$LINENO" 5 31707fi 31708if test -z "${MODULE__ELEMENTTREE_TRUE}" && test -z "${MODULE__ELEMENTTREE_FALSE}"; then 31709 as_fn_error $? "conditional \"MODULE__ELEMENTTREE\" was never defined. 31710Usually this means the macro was only invoked conditionally." "$LINENO" 5 31711fi 31712if test -z "${MODULE__CODECS_CN_TRUE}" && test -z "${MODULE__CODECS_CN_FALSE}"; then 31713 as_fn_error $? "conditional \"MODULE__CODECS_CN\" was never defined. 31714Usually this means the macro was only invoked conditionally." "$LINENO" 5 31715fi 31716if test -z "${MODULE__CODECS_HK_TRUE}" && test -z "${MODULE__CODECS_HK_FALSE}"; then 31717 as_fn_error $? "conditional \"MODULE__CODECS_HK\" was never defined. 31718Usually this means the macro was only invoked conditionally." "$LINENO" 5 31719fi 31720if test -z "${MODULE__CODECS_ISO2022_TRUE}" && test -z "${MODULE__CODECS_ISO2022_FALSE}"; then 31721 as_fn_error $? "conditional \"MODULE__CODECS_ISO2022\" was never defined. 31722Usually this means the macro was only invoked conditionally." "$LINENO" 5 31723fi 31724if test -z "${MODULE__CODECS_JP_TRUE}" && test -z "${MODULE__CODECS_JP_FALSE}"; then 31725 as_fn_error $? "conditional \"MODULE__CODECS_JP\" was never defined. 31726Usually this means the macro was only invoked conditionally." "$LINENO" 5 31727fi 31728if test -z "${MODULE__CODECS_KR_TRUE}" && test -z "${MODULE__CODECS_KR_FALSE}"; then 31729 as_fn_error $? "conditional \"MODULE__CODECS_KR\" was never defined. 31730Usually this means the macro was only invoked conditionally." "$LINENO" 5 31731fi 31732if test -z "${MODULE__CODECS_TW_TRUE}" && test -z "${MODULE__CODECS_TW_FALSE}"; then 31733 as_fn_error $? "conditional \"MODULE__CODECS_TW\" was never defined. 31734Usually this means the macro was only invoked conditionally." "$LINENO" 5 31735fi 31736if test -z "${MODULE__MULTIBYTECODEC_TRUE}" && test -z "${MODULE__MULTIBYTECODEC_FALSE}"; then 31737 as_fn_error $? "conditional \"MODULE__MULTIBYTECODEC\" was never defined. 31738Usually this means the macro was only invoked conditionally." "$LINENO" 5 31739fi 31740if test -z "${MODULE_UNICODEDATA_TRUE}" && test -z "${MODULE_UNICODEDATA_FALSE}"; then 31741 as_fn_error $? "conditional \"MODULE_UNICODEDATA\" was never defined. 31742Usually this means the macro was only invoked conditionally." "$LINENO" 5 31743fi 31744if test -z "${MODULE__MD5_TRUE}" && test -z "${MODULE__MD5_FALSE}"; then 31745 as_fn_error $? "conditional \"MODULE__MD5\" was never defined. 31746Usually this means the macro was only invoked conditionally." "$LINENO" 5 31747fi 31748if test -z "${MODULE__SHA1_TRUE}" && test -z "${MODULE__SHA1_FALSE}"; then 31749 as_fn_error $? "conditional \"MODULE__SHA1\" was never defined. 31750Usually this means the macro was only invoked conditionally." "$LINENO" 5 31751fi 31752if test -z "${MODULE__SHA2_TRUE}" && test -z "${MODULE__SHA2_FALSE}"; then 31753 as_fn_error $? "conditional \"MODULE__SHA2\" was never defined. 31754Usually this means the macro was only invoked conditionally." "$LINENO" 5 31755fi 31756if test -z "${MODULE__SHA3_TRUE}" && test -z "${MODULE__SHA3_FALSE}"; then 31757 as_fn_error $? "conditional \"MODULE__SHA3\" was never defined. 31758Usually this means the macro was only invoked conditionally." "$LINENO" 5 31759fi 31760if test -z "${MODULE__BLAKE2_TRUE}" && test -z "${MODULE__BLAKE2_FALSE}"; then 31761 as_fn_error $? "conditional \"MODULE__BLAKE2\" was never defined. 31762Usually this means the macro was only invoked conditionally." "$LINENO" 5 31763fi 31764if test -z "${MODULE__CTYPES_TRUE}" && test -z "${MODULE__CTYPES_FALSE}"; then 31765 as_fn_error $? "conditional \"MODULE__CTYPES\" was never defined. 31766Usually this means the macro was only invoked conditionally." "$LINENO" 5 31767fi 31768if test -z "${MODULE__CURSES_TRUE}" && test -z "${MODULE__CURSES_FALSE}"; then 31769 as_fn_error $? "conditional \"MODULE__CURSES\" was never defined. 31770Usually this means the macro was only invoked conditionally." "$LINENO" 5 31771fi 31772if test -z "${MODULE__CURSES_PANEL_TRUE}" && test -z "${MODULE__CURSES_PANEL_FALSE}"; then 31773 as_fn_error $? "conditional \"MODULE__CURSES_PANEL\" was never defined. 31774Usually this means the macro was only invoked conditionally." "$LINENO" 5 31775fi 31776if test -z "${MODULE__DECIMAL_TRUE}" && test -z "${MODULE__DECIMAL_FALSE}"; then 31777 as_fn_error $? "conditional \"MODULE__DECIMAL\" was never defined. 31778Usually this means the macro was only invoked conditionally." "$LINENO" 5 31779fi 31780if test -z "${MODULE__DBM_TRUE}" && test -z "${MODULE__DBM_FALSE}"; then 31781 as_fn_error $? "conditional \"MODULE__DBM\" was never defined. 31782Usually this means the macro was only invoked conditionally." "$LINENO" 5 31783fi 31784if test -z "${MODULE__GDBM_TRUE}" && test -z "${MODULE__GDBM_FALSE}"; then 31785 as_fn_error $? "conditional \"MODULE__GDBM\" was never defined. 31786Usually this means the macro was only invoked conditionally." "$LINENO" 5 31787fi 31788if test -z "${MODULE_READLINE_TRUE}" && test -z "${MODULE_READLINE_FALSE}"; then 31789 as_fn_error $? "conditional \"MODULE_READLINE\" was never defined. 31790Usually this means the macro was only invoked conditionally." "$LINENO" 5 31791fi 31792if test -z "${MODULE__SQLITE3_TRUE}" && test -z "${MODULE__SQLITE3_FALSE}"; then 31793 as_fn_error $? "conditional \"MODULE__SQLITE3\" was never defined. 31794Usually this means the macro was only invoked conditionally." "$LINENO" 5 31795fi 31796if test -z "${MODULE__TKINTER_TRUE}" && test -z "${MODULE__TKINTER_FALSE}"; then 31797 as_fn_error $? "conditional \"MODULE__TKINTER\" was never defined. 31798Usually this means the macro was only invoked conditionally." "$LINENO" 5 31799fi 31800if test -z "${MODULE__UUID_TRUE}" && test -z "${MODULE__UUID_FALSE}"; then 31801 as_fn_error $? "conditional \"MODULE__UUID\" was never defined. 31802Usually this means the macro was only invoked conditionally." "$LINENO" 5 31803fi 31804if test -z "${MODULE_ZLIB_TRUE}" && test -z "${MODULE_ZLIB_FALSE}"; then 31805 as_fn_error $? "conditional \"MODULE_ZLIB\" was never defined. 31806Usually this means the macro was only invoked conditionally." "$LINENO" 5 31807fi 31808if test -z "${MODULE_BINASCII_TRUE}" && test -z "${MODULE_BINASCII_FALSE}"; then 31809 as_fn_error $? "conditional \"MODULE_BINASCII\" was never defined. 31810Usually this means the macro was only invoked conditionally." "$LINENO" 5 31811fi 31812if test -z "${MODULE__BZ2_TRUE}" && test -z "${MODULE__BZ2_FALSE}"; then 31813 as_fn_error $? "conditional \"MODULE__BZ2\" was never defined. 31814Usually this means the macro was only invoked conditionally." "$LINENO" 5 31815fi 31816if test -z "${MODULE__LZMA_TRUE}" && test -z "${MODULE__LZMA_FALSE}"; then 31817 as_fn_error $? "conditional \"MODULE__LZMA\" was never defined. 31818Usually this means the macro was only invoked conditionally." "$LINENO" 5 31819fi 31820if test -z "${MODULE__SSL_TRUE}" && test -z "${MODULE__SSL_FALSE}"; then 31821 as_fn_error $? "conditional \"MODULE__SSL\" was never defined. 31822Usually this means the macro was only invoked conditionally." "$LINENO" 5 31823fi 31824if test -z "${MODULE__HASHLIB_TRUE}" && test -z "${MODULE__HASHLIB_FALSE}"; then 31825 as_fn_error $? "conditional \"MODULE__HASHLIB\" was never defined. 31826Usually this means the macro was only invoked conditionally." "$LINENO" 5 31827fi 31828if test -z "${MODULE__TESTCAPI_TRUE}" && test -z "${MODULE__TESTCAPI_FALSE}"; then 31829 as_fn_error $? "conditional \"MODULE__TESTCAPI\" was never defined. 31830Usually this means the macro was only invoked conditionally." "$LINENO" 5 31831fi 31832if test -z "${MODULE__TESTCLINIC_TRUE}" && test -z "${MODULE__TESTCLINIC_FALSE}"; then 31833 as_fn_error $? "conditional \"MODULE__TESTCLINIC\" was never defined. 31834Usually this means the macro was only invoked conditionally." "$LINENO" 5 31835fi 31836if test -z "${MODULE__TESTCLINIC_LIMITED_TRUE}" && test -z "${MODULE__TESTCLINIC_LIMITED_FALSE}"; then 31837 as_fn_error $? "conditional \"MODULE__TESTCLINIC_LIMITED\" was never defined. 31838Usually this means the macro was only invoked conditionally." "$LINENO" 5 31839fi 31840if test -z "${MODULE__TESTLIMITEDCAPI_TRUE}" && test -z "${MODULE__TESTLIMITEDCAPI_FALSE}"; then 31841 as_fn_error $? "conditional \"MODULE__TESTLIMITEDCAPI\" was never defined. 31842Usually this means the macro was only invoked conditionally." "$LINENO" 5 31843fi 31844if test -z "${MODULE__TESTINTERNALCAPI_TRUE}" && test -z "${MODULE__TESTINTERNALCAPI_FALSE}"; then 31845 as_fn_error $? "conditional \"MODULE__TESTINTERNALCAPI\" was never defined. 31846Usually this means the macro was only invoked conditionally." "$LINENO" 5 31847fi 31848if test -z "${MODULE__TESTBUFFER_TRUE}" && test -z "${MODULE__TESTBUFFER_FALSE}"; then 31849 as_fn_error $? "conditional \"MODULE__TESTBUFFER\" was never defined. 31850Usually this means the macro was only invoked conditionally." "$LINENO" 5 31851fi 31852if test -z "${MODULE__TESTIMPORTMULTIPLE_TRUE}" && test -z "${MODULE__TESTIMPORTMULTIPLE_FALSE}"; then 31853 as_fn_error $? "conditional \"MODULE__TESTIMPORTMULTIPLE\" was never defined. 31854Usually this means the macro was only invoked conditionally." "$LINENO" 5 31855fi 31856if test -z "${MODULE__TESTMULTIPHASE_TRUE}" && test -z "${MODULE__TESTMULTIPHASE_FALSE}"; then 31857 as_fn_error $? "conditional \"MODULE__TESTMULTIPHASE\" was never defined. 31858Usually this means the macro was only invoked conditionally." "$LINENO" 5 31859fi 31860if test -z "${MODULE__TESTSINGLEPHASE_TRUE}" && test -z "${MODULE__TESTSINGLEPHASE_FALSE}"; then 31861 as_fn_error $? "conditional \"MODULE__TESTSINGLEPHASE\" was never defined. 31862Usually this means the macro was only invoked conditionally." "$LINENO" 5 31863fi 31864if test -z "${MODULE__TESTEXTERNALINSPECTION_TRUE}" && test -z "${MODULE__TESTEXTERNALINSPECTION_FALSE}"; then 31865 as_fn_error $? "conditional \"MODULE__TESTEXTERNALINSPECTION\" was never defined. 31866Usually this means the macro was only invoked conditionally." "$LINENO" 5 31867fi 31868if test -z "${MODULE_XXSUBTYPE_TRUE}" && test -z "${MODULE_XXSUBTYPE_FALSE}"; then 31869 as_fn_error $? "conditional \"MODULE_XXSUBTYPE\" was never defined. 31870Usually this means the macro was only invoked conditionally." "$LINENO" 5 31871fi 31872if test -z "${MODULE__XXTESTFUZZ_TRUE}" && test -z "${MODULE__XXTESTFUZZ_FALSE}"; then 31873 as_fn_error $? "conditional \"MODULE__XXTESTFUZZ\" was never defined. 31874Usually this means the macro was only invoked conditionally." "$LINENO" 5 31875fi 31876if test -z "${MODULE__CTYPES_TEST_TRUE}" && test -z "${MODULE__CTYPES_TEST_FALSE}"; then 31877 as_fn_error $? "conditional \"MODULE__CTYPES_TEST\" was never defined. 31878Usually this means the macro was only invoked conditionally." "$LINENO" 5 31879fi 31880if test -z "${MODULE_XXLIMITED_TRUE}" && test -z "${MODULE_XXLIMITED_FALSE}"; then 31881 as_fn_error $? "conditional \"MODULE_XXLIMITED\" was never defined. 31882Usually this means the macro was only invoked conditionally." "$LINENO" 5 31883fi 31884if test -z "${MODULE_XXLIMITED_35_TRUE}" && test -z "${MODULE_XXLIMITED_35_FALSE}"; then 31885 as_fn_error $? "conditional \"MODULE_XXLIMITED_35\" was never defined. 31886Usually this means the macro was only invoked conditionally." "$LINENO" 5 31887fi 31888 31889: "${CONFIG_STATUS=./config.status}" 31890ac_write_fail=0 31891ac_clean_files_save=$ac_clean_files 31892ac_clean_files="$ac_clean_files $CONFIG_STATUS" 31893{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 31894printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 31895as_write_fail=0 31896cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 31897#! $SHELL 31898# Generated by $as_me. 31899# Run this file to recreate the current configuration. 31900# Compiler output produced by configure, useful for debugging 31901# configure, is in config.log if it exists. 31902 31903debug=false 31904ac_cs_recheck=false 31905ac_cs_silent=false 31906 31907SHELL=\${CONFIG_SHELL-$SHELL} 31908export SHELL 31909_ASEOF 31910cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 31911## -------------------- ## 31912## M4sh Initialization. ## 31913## -------------------- ## 31914 31915# Be more Bourne compatible 31916DUALCASE=1; export DUALCASE # for MKS sh 31917as_nop=: 31918if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 31919then : 31920 emulate sh 31921 NULLCMD=: 31922 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 31923 # is contrary to our usage. Disable this feature. 31924 alias -g '${1+"$@"}'='"$@"' 31925 setopt NO_GLOB_SUBST 31926else $as_nop 31927 case `(set -o) 2>/dev/null` in #( 31928 *posix*) : 31929 set -o posix ;; #( 31930 *) : 31931 ;; 31932esac 31933fi 31934 31935 31936 31937# Reset variables that may have inherited troublesome values from 31938# the environment. 31939 31940# IFS needs to be set, to space, tab, and newline, in precisely that order. 31941# (If _AS_PATH_WALK were called with IFS unset, it would have the 31942# side effect of setting IFS to empty, thus disabling word splitting.) 31943# Quoting is to prevent editors from complaining about space-tab. 31944as_nl=' 31945' 31946export as_nl 31947IFS=" "" $as_nl" 31948 31949PS1='$ ' 31950PS2='> ' 31951PS4='+ ' 31952 31953# Ensure predictable behavior from utilities with locale-dependent output. 31954LC_ALL=C 31955export LC_ALL 31956LANGUAGE=C 31957export LANGUAGE 31958 31959# We cannot yet rely on "unset" to work, but we need these variables 31960# to be unset--not just set to an empty or harmless value--now, to 31961# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 31962# also avoids known problems related to "unset" and subshell syntax 31963# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 31964for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 31965do eval test \${$as_var+y} \ 31966 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 31967done 31968 31969# Ensure that fds 0, 1, and 2 are open. 31970if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 31971if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 31972if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 31973 31974# The user is always right. 31975if ${PATH_SEPARATOR+false} :; then 31976 PATH_SEPARATOR=: 31977 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 31978 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 31979 PATH_SEPARATOR=';' 31980 } 31981fi 31982 31983 31984# Find who we are. Look in the path if we contain no directory separator. 31985as_myself= 31986case $0 in #(( 31987 *[\\/]* ) as_myself=$0 ;; 31988 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31989for as_dir in $PATH 31990do 31991 IFS=$as_save_IFS 31992 case $as_dir in #((( 31993 '') as_dir=./ ;; 31994 */) ;; 31995 *) as_dir=$as_dir/ ;; 31996 esac 31997 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 31998 done 31999IFS=$as_save_IFS 32000 32001 ;; 32002esac 32003# We did not find ourselves, most probably we were run as `sh COMMAND' 32004# in which case we are not to be found in the path. 32005if test "x$as_myself" = x; then 32006 as_myself=$0 32007fi 32008if test ! -f "$as_myself"; then 32009 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 32010 exit 1 32011fi 32012 32013 32014 32015# as_fn_error STATUS ERROR [LINENO LOG_FD] 32016# ---------------------------------------- 32017# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 32018# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 32019# script with STATUS, using 1 if that was 0. 32020as_fn_error () 32021{ 32022 as_status=$1; test $as_status -eq 0 && as_status=1 32023 if test "$4"; then 32024 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 32025 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 32026 fi 32027 printf "%s\n" "$as_me: error: $2" >&2 32028 as_fn_exit $as_status 32029} # as_fn_error 32030 32031 32032 32033# as_fn_set_status STATUS 32034# ----------------------- 32035# Set $? to STATUS, without forking. 32036as_fn_set_status () 32037{ 32038 return $1 32039} # as_fn_set_status 32040 32041# as_fn_exit STATUS 32042# ----------------- 32043# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 32044as_fn_exit () 32045{ 32046 set +e 32047 as_fn_set_status $1 32048 exit $1 32049} # as_fn_exit 32050 32051# as_fn_unset VAR 32052# --------------- 32053# Portably unset VAR. 32054as_fn_unset () 32055{ 32056 { eval $1=; unset $1;} 32057} 32058as_unset=as_fn_unset 32059 32060# as_fn_append VAR VALUE 32061# ---------------------- 32062# Append the text in VALUE to the end of the definition contained in VAR. Take 32063# advantage of any shell optimizations that allow amortized linear growth over 32064# repeated appends, instead of the typical quadratic growth present in naive 32065# implementations. 32066if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 32067then : 32068 eval 'as_fn_append () 32069 { 32070 eval $1+=\$2 32071 }' 32072else $as_nop 32073 as_fn_append () 32074 { 32075 eval $1=\$$1\$2 32076 } 32077fi # as_fn_append 32078 32079# as_fn_arith ARG... 32080# ------------------ 32081# Perform arithmetic evaluation on the ARGs, and store the result in the 32082# global $as_val. Take advantage of shells that can avoid forks. The arguments 32083# must be portable across $(()) and expr. 32084if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 32085then : 32086 eval 'as_fn_arith () 32087 { 32088 as_val=$(( $* )) 32089 }' 32090else $as_nop 32091 as_fn_arith () 32092 { 32093 as_val=`expr "$@" || test $? -eq 1` 32094 } 32095fi # as_fn_arith 32096 32097 32098if expr a : '\(a\)' >/dev/null 2>&1 && 32099 test "X`expr 00001 : '.*\(...\)'`" = X001; then 32100 as_expr=expr 32101else 32102 as_expr=false 32103fi 32104 32105if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 32106 as_basename=basename 32107else 32108 as_basename=false 32109fi 32110 32111if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 32112 as_dirname=dirname 32113else 32114 as_dirname=false 32115fi 32116 32117as_me=`$as_basename -- "$0" || 32118$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 32119 X"$0" : 'X\(//\)$' \| \ 32120 X"$0" : 'X\(/\)' \| . 2>/dev/null || 32121printf "%s\n" X/"$0" | 32122 sed '/^.*\/\([^/][^/]*\)\/*$/{ 32123 s//\1/ 32124 q 32125 } 32126 /^X\/\(\/\/\)$/{ 32127 s//\1/ 32128 q 32129 } 32130 /^X\/\(\/\).*/{ 32131 s//\1/ 32132 q 32133 } 32134 s/.*/./; q'` 32135 32136# Avoid depending upon Character Ranges. 32137as_cr_letters='abcdefghijklmnopqrstuvwxyz' 32138as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 32139as_cr_Letters=$as_cr_letters$as_cr_LETTERS 32140as_cr_digits='0123456789' 32141as_cr_alnum=$as_cr_Letters$as_cr_digits 32142 32143 32144# Determine whether it's possible to make 'echo' print without a newline. 32145# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 32146# for compatibility with existing Makefiles. 32147ECHO_C= ECHO_N= ECHO_T= 32148case `echo -n x` in #((((( 32149-n*) 32150 case `echo 'xy\c'` in 32151 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 32152 xy) ECHO_C='\c';; 32153 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 32154 ECHO_T=' ';; 32155 esac;; 32156*) 32157 ECHO_N='-n';; 32158esac 32159 32160# For backward compatibility with old third-party macros, we provide 32161# the shell variables $as_echo and $as_echo_n. New code should use 32162# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 32163as_echo='printf %s\n' 32164as_echo_n='printf %s' 32165 32166rm -f conf$$ conf$$.exe conf$$.file 32167if test -d conf$$.dir; then 32168 rm -f conf$$.dir/conf$$.file 32169else 32170 rm -f conf$$.dir 32171 mkdir conf$$.dir 2>/dev/null 32172fi 32173if (echo >conf$$.file) 2>/dev/null; then 32174 if ln -s conf$$.file conf$$ 2>/dev/null; then 32175 as_ln_s='ln -s' 32176 # ... but there are two gotchas: 32177 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 32178 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 32179 # In both cases, we have to default to `cp -pR'. 32180 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 32181 as_ln_s='cp -pR' 32182 elif ln conf$$.file conf$$ 2>/dev/null; then 32183 as_ln_s=ln 32184 else 32185 as_ln_s='cp -pR' 32186 fi 32187else 32188 as_ln_s='cp -pR' 32189fi 32190rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 32191rmdir conf$$.dir 2>/dev/null 32192 32193 32194# as_fn_mkdir_p 32195# ------------- 32196# Create "$as_dir" as a directory, including parents if necessary. 32197as_fn_mkdir_p () 32198{ 32199 32200 case $as_dir in #( 32201 -*) as_dir=./$as_dir;; 32202 esac 32203 test -d "$as_dir" || eval $as_mkdir_p || { 32204 as_dirs= 32205 while :; do 32206 case $as_dir in #( 32207 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 32208 *) as_qdir=$as_dir;; 32209 esac 32210 as_dirs="'$as_qdir' $as_dirs" 32211 as_dir=`$as_dirname -- "$as_dir" || 32212$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32213 X"$as_dir" : 'X\(//\)[^/]' \| \ 32214 X"$as_dir" : 'X\(//\)$' \| \ 32215 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 32216printf "%s\n" X"$as_dir" | 32217 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32218 s//\1/ 32219 q 32220 } 32221 /^X\(\/\/\)[^/].*/{ 32222 s//\1/ 32223 q 32224 } 32225 /^X\(\/\/\)$/{ 32226 s//\1/ 32227 q 32228 } 32229 /^X\(\/\).*/{ 32230 s//\1/ 32231 q 32232 } 32233 s/.*/./; q'` 32234 test -d "$as_dir" && break 32235 done 32236 test -z "$as_dirs" || eval "mkdir $as_dirs" 32237 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 32238 32239 32240} # as_fn_mkdir_p 32241if mkdir -p . 2>/dev/null; then 32242 as_mkdir_p='mkdir -p "$as_dir"' 32243else 32244 test -d ./-p && rmdir ./-p 32245 as_mkdir_p=false 32246fi 32247 32248 32249# as_fn_executable_p FILE 32250# ----------------------- 32251# Test if FILE is an executable regular file. 32252as_fn_executable_p () 32253{ 32254 test -f "$1" && test -x "$1" 32255} # as_fn_executable_p 32256as_test_x='test -x' 32257as_executable_p=as_fn_executable_p 32258 32259# Sed expression to map a string onto a valid CPP name. 32260as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 32261 32262# Sed expression to map a string onto a valid variable name. 32263as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 32264 32265 32266exec 6>&1 32267## ----------------------------------- ## 32268## Main body of $CONFIG_STATUS script. ## 32269## ----------------------------------- ## 32270_ASEOF 32271test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 32272 32273cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32274# Save the log message, to keep $0 and so on meaningful, and to 32275# report actual input values of CONFIG_FILES etc. instead of their 32276# values after options handling. 32277ac_log=" 32278This file was extended by python $as_me 3.13, which was 32279generated by GNU Autoconf 2.71. Invocation command line was 32280 32281 CONFIG_FILES = $CONFIG_FILES 32282 CONFIG_HEADERS = $CONFIG_HEADERS 32283 CONFIG_LINKS = $CONFIG_LINKS 32284 CONFIG_COMMANDS = $CONFIG_COMMANDS 32285 $ $0 $@ 32286 32287on `(hostname || uname -n) 2>/dev/null | sed 1q` 32288" 32289 32290_ACEOF 32291 32292case $ac_config_files in *" 32293"*) set x $ac_config_files; shift; ac_config_files=$*;; 32294esac 32295 32296case $ac_config_headers in *" 32297"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 32298esac 32299 32300 32301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32302# Files that config.status was made for. 32303config_files="$ac_config_files" 32304config_headers="$ac_config_headers" 32305 32306_ACEOF 32307 32308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32309ac_cs_usage="\ 32310\`$as_me' instantiates files and other configuration actions 32311from templates according to the current configuration. Unless the files 32312and actions are specified as TAGs, all are instantiated by default. 32313 32314Usage: $0 [OPTION]... [TAG]... 32315 32316 -h, --help print this help, then exit 32317 -V, --version print version number and configuration settings, then exit 32318 --config print configuration, then exit 32319 -q, --quiet, --silent 32320 do not print progress messages 32321 -d, --debug don't remove temporary files 32322 --recheck update $as_me by reconfiguring in the same conditions 32323 --file=FILE[:TEMPLATE] 32324 instantiate the configuration file FILE 32325 --header=FILE[:TEMPLATE] 32326 instantiate the configuration header FILE 32327 32328Configuration files: 32329$config_files 32330 32331Configuration headers: 32332$config_headers 32333 32334Report bugs to <https://github.com/python/cpython/issues/>." 32335 32336_ACEOF 32337ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 32338ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 32339cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32340ac_cs_config='$ac_cs_config_escaped' 32341ac_cs_version="\\ 32342python config.status 3.13 32343configured by $0, generated by GNU Autoconf 2.71, 32344 with options \\"\$ac_cs_config\\" 32345 32346Copyright (C) 2021 Free Software Foundation, Inc. 32347This config.status script is free software; the Free Software Foundation 32348gives unlimited permission to copy, distribute and modify it." 32349 32350ac_pwd='$ac_pwd' 32351srcdir='$srcdir' 32352INSTALL='$INSTALL' 32353MKDIR_P='$MKDIR_P' 32354test -n "\$AWK" || AWK=awk 32355_ACEOF 32356 32357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32358# The default lists apply if the user does not specify any file. 32359ac_need_defaults=: 32360while test $# != 0 32361do 32362 case $1 in 32363 --*=?*) 32364 ac_option=`expr "X$1" : 'X\([^=]*\)='` 32365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 32366 ac_shift=: 32367 ;; 32368 --*=) 32369 ac_option=`expr "X$1" : 'X\([^=]*\)='` 32370 ac_optarg= 32371 ac_shift=: 32372 ;; 32373 *) 32374 ac_option=$1 32375 ac_optarg=$2 32376 ac_shift=shift 32377 ;; 32378 esac 32379 32380 case $ac_option in 32381 # Handling of the options. 32382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 32383 ac_cs_recheck=: ;; 32384 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 32385 printf "%s\n" "$ac_cs_version"; exit ;; 32386 --config | --confi | --conf | --con | --co | --c ) 32387 printf "%s\n" "$ac_cs_config"; exit ;; 32388 --debug | --debu | --deb | --de | --d | -d ) 32389 debug=: ;; 32390 --file | --fil | --fi | --f ) 32391 $ac_shift 32392 case $ac_optarg in 32393 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 32394 '') as_fn_error $? "missing file argument" ;; 32395 esac 32396 as_fn_append CONFIG_FILES " '$ac_optarg'" 32397 ac_need_defaults=false;; 32398 --header | --heade | --head | --hea ) 32399 $ac_shift 32400 case $ac_optarg in 32401 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 32402 esac 32403 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 32404 ac_need_defaults=false;; 32405 --he | --h) 32406 # Conflict between --help and --header 32407 as_fn_error $? "ambiguous option: \`$1' 32408Try \`$0 --help' for more information.";; 32409 --help | --hel | -h ) 32410 printf "%s\n" "$ac_cs_usage"; exit ;; 32411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 32412 | -silent | --silent | --silen | --sile | --sil | --si | --s) 32413 ac_cs_silent=: ;; 32414 32415 # This is an error. 32416 -*) as_fn_error $? "unrecognized option: \`$1' 32417Try \`$0 --help' for more information." ;; 32418 32419 *) as_fn_append ac_config_targets " $1" 32420 ac_need_defaults=false ;; 32421 32422 esac 32423 shift 32424done 32425 32426ac_configure_extra_args= 32427 32428if $ac_cs_silent; then 32429 exec 6>/dev/null 32430 ac_configure_extra_args="$ac_configure_extra_args --silent" 32431fi 32432 32433_ACEOF 32434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32435if \$ac_cs_recheck; then 32436 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 32437 shift 32438 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 32439 CONFIG_SHELL='$SHELL' 32440 export CONFIG_SHELL 32441 exec "\$@" 32442fi 32443 32444_ACEOF 32445cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32446exec 5>>config.log 32447{ 32448 echo 32449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 32450## Running $as_me. ## 32451_ASBOX 32452 printf "%s\n" "$ac_log" 32453} >&5 32454 32455_ACEOF 32456cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32457_ACEOF 32458 32459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32460 32461# Handling of arguments. 32462for ac_config_target in $ac_config_targets 32463do 32464 case $ac_config_target in 32465 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; 32466 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; 32467 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; 32468 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; 32469 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; 32470 "iOS/Resources/Info.plist") CONFIG_FILES="$CONFIG_FILES iOS/Resources/Info.plist" ;; 32471 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; 32472 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; 32473 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;; 32474 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; 32475 "Modules/Setup.bootstrap") CONFIG_FILES="$CONFIG_FILES Modules/Setup.bootstrap" ;; 32476 "Modules/Setup.stdlib") CONFIG_FILES="$CONFIG_FILES Modules/Setup.stdlib" ;; 32477 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; 32478 32479 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 32480 esac 32481done 32482 32483 32484# If the user did not use the arguments to specify the items to instantiate, 32485# then the envvar interface is used. Set only those that are not. 32486# We use the long form for the default assignment because of an extremely 32487# bizarre bug on SunOS 4.1.3. 32488if $ac_need_defaults; then 32489 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files 32490 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 32491fi 32492 32493# Have a temporary directory for convenience. Make it in the build tree 32494# simply because there is no reason against having it here, and in addition, 32495# creating and moving files from /tmp can sometimes cause problems. 32496# Hook for its removal unless debugging. 32497# Note that there is a small window in which the directory will not be cleaned: 32498# after its creation but before its name has been assigned to `$tmp'. 32499$debug || 32500{ 32501 tmp= ac_tmp= 32502 trap 'exit_status=$? 32503 : "${ac_tmp:=$tmp}" 32504 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 32505' 0 32506 trap 'as_fn_exit 1' 1 2 13 15 32507} 32508# Create a (secure) tmp directory for tmp files. 32509 32510{ 32511 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 32512 test -d "$tmp" 32513} || 32514{ 32515 tmp=./conf$$-$RANDOM 32516 (umask 077 && mkdir "$tmp") 32517} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 32518ac_tmp=$tmp 32519 32520# Set up the scripts for CONFIG_FILES section. 32521# No need to generate them if there are no CONFIG_FILES. 32522# This happens for instance with `./config.status config.h'. 32523if test -n "$CONFIG_FILES"; then 32524 32525 32526ac_cr=`echo X | tr X '\015'` 32527# On cygwin, bash can eat \r inside `` if the user requested igncr. 32528# But we know of no other shell where ac_cr would be empty at this 32529# point, so we can use a bashism as a fallback. 32530if test "x$ac_cr" = x; then 32531 eval ac_cr=\$\'\\r\' 32532fi 32533ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 32534if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 32535 ac_cs_awk_cr='\\r' 32536else 32537 ac_cs_awk_cr=$ac_cr 32538fi 32539 32540echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 32541_ACEOF 32542 32543 32544{ 32545 echo "cat >conf$$subs.awk <<_ACEOF" && 32546 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 32547 echo "_ACEOF" 32548} >conf$$subs.sh || 32549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32550ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 32551ac_delim='%!_!# ' 32552for ac_last_try in false false false false false :; do 32553 . ./conf$$subs.sh || 32554 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32555 32556 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 32557 if test $ac_delim_n = $ac_delim_num; then 32558 break 32559 elif $ac_last_try; then 32560 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 32561 else 32562 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32563 fi 32564done 32565rm -f conf$$subs.sh 32566 32567cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32568cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 32569_ACEOF 32570sed -n ' 32571h 32572s/^/S["/; s/!.*/"]=/ 32573p 32574g 32575s/^[^!]*!// 32576:repl 32577t repl 32578s/'"$ac_delim"'$// 32579t delim 32580:nl 32581h 32582s/\(.\{148\}\)..*/\1/ 32583t more1 32584s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 32585p 32586n 32587b repl 32588:more1 32589s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 32590p 32591g 32592s/.\{148\}// 32593t nl 32594:delim 32595h 32596s/\(.\{148\}\)..*/\1/ 32597t more2 32598s/["\\]/\\&/g; s/^/"/; s/$/"/ 32599p 32600b 32601:more2 32602s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 32603p 32604g 32605s/.\{148\}// 32606t delim 32607' <conf$$subs.awk | sed ' 32608/^[^""]/{ 32609 N 32610 s/\n// 32611} 32612' >>$CONFIG_STATUS || ac_write_fail=1 32613rm -f conf$$subs.awk 32614cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32615_ACAWK 32616cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 32617 for (key in S) S_is_set[key] = 1 32618 FS = "" 32619 32620} 32621{ 32622 line = $ 0 32623 nfields = split(line, field, "@") 32624 substed = 0 32625 len = length(field[1]) 32626 for (i = 2; i < nfields; i++) { 32627 key = field[i] 32628 keylen = length(key) 32629 if (S_is_set[key]) { 32630 value = S[key] 32631 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 32632 len += length(value) + length(field[++i]) 32633 substed = 1 32634 } else 32635 len += 1 + keylen 32636 } 32637 32638 print line 32639} 32640 32641_ACAWK 32642_ACEOF 32643cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32644if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 32645 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 32646else 32647 cat 32648fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 32649 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 32650_ACEOF 32651 32652# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 32653# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 32654# trailing colons and then remove the whole line if VPATH becomes empty 32655# (actually we leave an empty line to preserve line numbers). 32656if test "x$srcdir" = x.; then 32657 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 32658h 32659s/// 32660s/^/:/ 32661s/[ ]*$/:/ 32662s/:\$(srcdir):/:/g 32663s/:\${srcdir}:/:/g 32664s/:@srcdir@:/:/g 32665s/^:*// 32666s/:*$// 32667x 32668s/\(=[ ]*\).*/\1/ 32669G 32670s/\n// 32671s/^[^=]*=[ ]*$// 32672}' 32673fi 32674 32675cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32676fi # test -n "$CONFIG_FILES" 32677 32678# Set up the scripts for CONFIG_HEADERS section. 32679# No need to generate them if there are no CONFIG_HEADERS. 32680# This happens for instance with `./config.status Makefile'. 32681if test -n "$CONFIG_HEADERS"; then 32682cat >"$ac_tmp/defines.awk" <<\_ACAWK || 32683BEGIN { 32684_ACEOF 32685 32686# Transform confdefs.h into an awk script `defines.awk', embedded as 32687# here-document in config.status, that substitutes the proper values into 32688# config.h.in to produce config.h. 32689 32690# Create a delimiter string that does not exist in confdefs.h, to ease 32691# handling of long lines. 32692ac_delim='%!_!# ' 32693for ac_last_try in false false :; do 32694 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 32695 if test -z "$ac_tt"; then 32696 break 32697 elif $ac_last_try; then 32698 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 32699 else 32700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 32701 fi 32702done 32703 32704# For the awk script, D is an array of macro values keyed by name, 32705# likewise P contains macro parameters if any. Preserve backslash 32706# newline sequences. 32707 32708ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 32709sed -n ' 32710s/.\{148\}/&'"$ac_delim"'/g 32711t rset 32712:rset 32713s/^[ ]*#[ ]*define[ ][ ]*/ / 32714t def 32715d 32716:def 32717s/\\$// 32718t bsnl 32719s/["\\]/\\&/g 32720s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32721D["\1"]=" \3"/p 32722s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 32723d 32724:bsnl 32725s/["\\]/\\&/g 32726s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 32727D["\1"]=" \3\\\\\\n"\\/p 32728t cont 32729s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 32730t cont 32731d 32732:cont 32733n 32734s/.\{148\}/&'"$ac_delim"'/g 32735t clear 32736:clear 32737s/\\$// 32738t bsnlc 32739s/["\\]/\\&/g; s/^/"/; s/$/"/p 32740d 32741:bsnlc 32742s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 32743b cont 32744' <confdefs.h | sed ' 32745s/'"$ac_delim"'/"\\\ 32746"/g' >>$CONFIG_STATUS || ac_write_fail=1 32747 32748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32749 for (key in D) D_is_set[key] = 1 32750 FS = "" 32751} 32752/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 32753 line = \$ 0 32754 split(line, arg, " ") 32755 if (arg[1] == "#") { 32756 defundef = arg[2] 32757 mac1 = arg[3] 32758 } else { 32759 defundef = substr(arg[1], 2) 32760 mac1 = arg[2] 32761 } 32762 split(mac1, mac2, "(") #) 32763 macro = mac2[1] 32764 prefix = substr(line, 1, index(line, defundef) - 1) 32765 if (D_is_set[macro]) { 32766 # Preserve the white space surrounding the "#". 32767 print prefix "define", macro P[macro] D[macro] 32768 next 32769 } else { 32770 # Replace #undef with comments. This is necessary, for example, 32771 # in the case of _POSIX_SOURCE, which is predefined and required 32772 # on some systems where configure will not decide to define it. 32773 if (defundef == "undef") { 32774 print "/*", prefix defundef, macro, "*/" 32775 next 32776 } 32777 } 32778} 32779{ print } 32780_ACAWK 32781_ACEOF 32782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32783 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 32784fi # test -n "$CONFIG_HEADERS" 32785 32786 32787eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 32788shift 32789for ac_tag 32790do 32791 case $ac_tag in 32792 :[FHLC]) ac_mode=$ac_tag; continue;; 32793 esac 32794 case $ac_mode$ac_tag in 32795 :[FHL]*:*);; 32796 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 32797 :[FH]-) ac_tag=-:-;; 32798 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 32799 esac 32800 ac_save_IFS=$IFS 32801 IFS=: 32802 set x $ac_tag 32803 IFS=$ac_save_IFS 32804 shift 32805 ac_file=$1 32806 shift 32807 32808 case $ac_mode in 32809 :L) ac_source=$1;; 32810 :[FH]) 32811 ac_file_inputs= 32812 for ac_f 32813 do 32814 case $ac_f in 32815 -) ac_f="$ac_tmp/stdin";; 32816 *) # Look for the file first in the build tree, then in the source tree 32817 # (if the path is not absolute). The absolute path cannot be DOS-style, 32818 # because $ac_f cannot contain `:'. 32819 test -f "$ac_f" || 32820 case $ac_f in 32821 [\\/$]*) false;; 32822 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 32823 esac || 32824 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 32825 esac 32826 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 32827 as_fn_append ac_file_inputs " '$ac_f'" 32828 done 32829 32830 # Let's still pretend it is `configure' which instantiates (i.e., don't 32831 # use $as_me), people would be surprised to read: 32832 # /* config.h. Generated by config.status. */ 32833 configure_input='Generated from '` 32834 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 32835 `' by configure.' 32836 if test x"$ac_file" != x-; then 32837 configure_input="$ac_file. $configure_input" 32838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 32839printf "%s\n" "$as_me: creating $ac_file" >&6;} 32840 fi 32841 # Neutralize special characters interpreted by sed in replacement strings. 32842 case $configure_input in #( 32843 *\&* | *\|* | *\\* ) 32844 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 32845 sed 's/[\\\\&|]/\\\\&/g'`;; #( 32846 *) ac_sed_conf_input=$configure_input;; 32847 esac 32848 32849 case $ac_tag in 32850 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 32851 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 32852 esac 32853 ;; 32854 esac 32855 32856 ac_dir=`$as_dirname -- "$ac_file" || 32857$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 32858 X"$ac_file" : 'X\(//\)[^/]' \| \ 32859 X"$ac_file" : 'X\(//\)$' \| \ 32860 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 32861printf "%s\n" X"$ac_file" | 32862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 32863 s//\1/ 32864 q 32865 } 32866 /^X\(\/\/\)[^/].*/{ 32867 s//\1/ 32868 q 32869 } 32870 /^X\(\/\/\)$/{ 32871 s//\1/ 32872 q 32873 } 32874 /^X\(\/\).*/{ 32875 s//\1/ 32876 q 32877 } 32878 s/.*/./; q'` 32879 as_dir="$ac_dir"; as_fn_mkdir_p 32880 ac_builddir=. 32881 32882case "$ac_dir" in 32883.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 32884*) 32885 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 32886 # A ".." for each directory in $ac_dir_suffix. 32887 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 32888 case $ac_top_builddir_sub in 32889 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 32890 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 32891 esac ;; 32892esac 32893ac_abs_top_builddir=$ac_pwd 32894ac_abs_builddir=$ac_pwd$ac_dir_suffix 32895# for backward compatibility: 32896ac_top_builddir=$ac_top_build_prefix 32897 32898case $srcdir in 32899 .) # We are building in place. 32900 ac_srcdir=. 32901 ac_top_srcdir=$ac_top_builddir_sub 32902 ac_abs_top_srcdir=$ac_pwd ;; 32903 [\\/]* | ?:[\\/]* ) # Absolute name. 32904 ac_srcdir=$srcdir$ac_dir_suffix; 32905 ac_top_srcdir=$srcdir 32906 ac_abs_top_srcdir=$srcdir ;; 32907 *) # Relative name. 32908 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 32909 ac_top_srcdir=$ac_top_build_prefix$srcdir 32910 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 32911esac 32912ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 32913 32914 32915 case $ac_mode in 32916 :F) 32917 # 32918 # CONFIG_FILE 32919 # 32920 32921 case $INSTALL in 32922 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 32923 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 32924 esac 32925 ac_MKDIR_P=$MKDIR_P 32926 case $MKDIR_P in 32927 [\\/$]* | ?:[\\/]* ) ;; 32928 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 32929 esac 32930_ACEOF 32931 32932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32933# If the template does not know about datarootdir, expand it. 32934# FIXME: This hack should be removed a few years after 2.60. 32935ac_datarootdir_hack=; ac_datarootdir_seen= 32936ac_sed_dataroot=' 32937/datarootdir/ { 32938 p 32939 q 32940} 32941/@datadir@/p 32942/@docdir@/p 32943/@infodir@/p 32944/@localedir@/p 32945/@mandir@/p' 32946case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 32947*datarootdir*) ac_datarootdir_seen=yes;; 32948*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 32949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 32950printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 32951_ACEOF 32952cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32953 ac_datarootdir_hack=' 32954 s&@datadir@&$datadir&g 32955 s&@docdir@&$docdir&g 32956 s&@infodir@&$infodir&g 32957 s&@localedir@&$localedir&g 32958 s&@mandir@&$mandir&g 32959 s&\\\${datarootdir}&$datarootdir&g' ;; 32960esac 32961_ACEOF 32962 32963# Neutralize VPATH when `$srcdir' = `.'. 32964# Shell code in configure.ac might set extrasub. 32965# FIXME: do we really want to maintain this feature? 32966cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 32967ac_sed_extra="$ac_vpsub 32968$extrasub 32969_ACEOF 32970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 32971:t 32972/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 32973s|@configure_input@|$ac_sed_conf_input|;t t 32974s&@top_builddir@&$ac_top_builddir_sub&;t t 32975s&@top_build_prefix@&$ac_top_build_prefix&;t t 32976s&@srcdir@&$ac_srcdir&;t t 32977s&@abs_srcdir@&$ac_abs_srcdir&;t t 32978s&@top_srcdir@&$ac_top_srcdir&;t t 32979s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 32980s&@builddir@&$ac_builddir&;t t 32981s&@abs_builddir@&$ac_abs_builddir&;t t 32982s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 32983s&@INSTALL@&$ac_INSTALL&;t t 32984s&@MKDIR_P@&$ac_MKDIR_P&;t t 32985$ac_datarootdir_hack 32986" 32987eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 32988 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 32989 32990test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 32991 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 32992 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 32993 "$ac_tmp/out"`; test -z "$ac_out"; } && 32994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32995which seems to be undefined. Please make sure it is defined" >&5 32996printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 32997which seems to be undefined. Please make sure it is defined" >&2;} 32998 32999 rm -f "$ac_tmp/stdin" 33000 case $ac_file in 33001 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 33002 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 33003 esac \ 33004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33005 ;; 33006 :H) 33007 # 33008 # CONFIG_HEADER 33009 # 33010 if test x"$ac_file" != x-; then 33011 { 33012 printf "%s\n" "/* $configure_input */" >&1 \ 33013 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 33014 } >"$ac_tmp/config.h" \ 33015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33016 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 33017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 33018printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 33019 else 33020 rm -f "$ac_file" 33021 mv "$ac_tmp/config.h" "$ac_file" \ 33022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 33023 fi 33024 else 33025 printf "%s\n" "/* $configure_input */" >&1 \ 33026 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 33027 || as_fn_error $? "could not create -" "$LINENO" 5 33028 fi 33029 ;; 33030 33031 33032 esac 33033 33034 33035 case $ac_file$ac_mode in 33036 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; 33037 33038 esac 33039done # for ac_tag 33040 33041 33042as_fn_exit 0 33043_ACEOF 33044ac_clean_files=$ac_clean_files_save 33045 33046test $ac_write_fail = 0 || 33047 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 33048 33049 33050# configure is writing to config.log, and then calls config.status. 33051# config.status does its own redirection, appending to config.log. 33052# Unfortunately, on DOS this fails, as config.log is still kept open 33053# by configure, so config.status won't be able to write to it; its 33054# output is simply discarded. So we exec the FD to /dev/null, 33055# effectively closing config.log, so it can be properly (re)opened and 33056# appended to by config.status. When coming back to configure, we 33057# need to make the FD available again. 33058if test "$no_create" != yes; then 33059 ac_cs_success=: 33060 ac_config_status_args= 33061 test "$silent" = yes && 33062 ac_config_status_args="$ac_config_status_args --quiet" 33063 exec 5>/dev/null 33064 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 33065 exec 5>>config.log 33066 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 33067 # would make configure fail if this is the last instruction. 33068 $ac_cs_success || as_fn_exit 1 33069fi 33070if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 33071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 33072printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 33073fi 33074 33075 33076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Modules/Setup.local" >&5 33077printf "%s\n" "$as_me: creating Modules/Setup.local" >&6;} 33078if test ! -f Modules/Setup.local 33079then 33080 echo "# Edit this file for local setup changes" >Modules/Setup.local 33081fi 33082 33083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating Makefile" >&5 33084printf "%s\n" "$as_me: creating Makefile" >&6;} 33085$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 33086 -s Modules \ 33087 Modules/Setup.local Modules/Setup.stdlib Modules/Setup.bootstrap $srcdir/Modules/Setup 33088if test $? -ne 0; then 33089 as_fn_error $? "makesetup failed" "$LINENO" 5 33090fi 33091 33092mv config.c Modules 33093 33094if test -z "$PKG_CONFIG"; then 33095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&5 33096printf "%s\n" "$as_me: WARNING: pkg-config is missing. Some dependencies may not be detected correctly." >&2;} 33097fi 33098 33099if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then 33100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: 33101 33102If you want a release build with all stable optimizations active (PGO, etc), 33103please run ./configure --enable-optimizations 33104" >&5 33105printf "%s\n" "$as_me: 33106 33107If you want a release build with all stable optimizations active (PGO, etc), 33108please run ./configure --enable-optimizations 33109" >&6;} 33110fi 33111 33112if test "x$PY_SUPPORT_TIER" = x0 33113then : 33114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 33115 33116Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the 33117CPython core team, see https://peps.python.org/pep-0011/ for more information. 33118" >&5 33119printf "%s\n" "$as_me: WARNING: 33120 33121Platform \"$host\" with compiler \"$ac_cv_cc_name\" is not supported by the 33122CPython core team, see https://peps.python.org/pep-0011/ for more information. 33123" >&2;} 33124fi 33125 33126if test "$ac_cv_header_stdatomic_h" != "yes"; then 33127 { 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 33128printf "%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;} 33129fi 33130 33131