1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for python 3.9. 4# 5# Report bugs to <https://bugs.python.org/>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 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'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: https://bugs.python.org/ about your system, including 271$0: any error possibly output before this message. Then 272$0: install a modern shell, or manually run the script 273$0: under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='python' 582PACKAGE_TARNAME='python' 583PACKAGE_VERSION='3.9' 584PACKAGE_STRING='python 3.9' 585PACKAGE_BUGREPORT='https://bugs.python.org/' 586PACKAGE_URL='' 587 588ac_unique_file="Include/object.h" 589# Factoring default headers for most tests. 590ac_includes_default="\ 591#include <stdio.h> 592#ifdef HAVE_SYS_TYPES_H 593# include <sys/types.h> 594#endif 595#ifdef HAVE_SYS_STAT_H 596# include <sys/stat.h> 597#endif 598#ifdef STDC_HEADERS 599# include <stdlib.h> 600# include <stddef.h> 601#else 602# ifdef HAVE_STDLIB_H 603# include <stdlib.h> 604# endif 605#endif 606#ifdef HAVE_STRING_H 607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 608# include <memory.h> 609# endif 610# include <string.h> 611#endif 612#ifdef HAVE_STRINGS_H 613# include <strings.h> 614#endif 615#ifdef HAVE_INTTYPES_H 616# include <inttypes.h> 617#endif 618#ifdef HAVE_STDINT_H 619# include <stdint.h> 620#endif 621#ifdef HAVE_UNISTD_H 622# include <unistd.h> 623#endif" 624 625ac_subst_vars='LTLIBOBJS 626OPENSSL_LDFLAGS 627OPENSSL_LIBS 628OPENSSL_INCLUDES 629ENSUREPIP 630SRCDIRS 631THREADHEADERS 632LIBPL 633PY_ENABLE_SHARED 634PLATLIBDIR 635BINLIBDEST 636LIBPYTHON 637EXT_SUFFIX 638ALT_SOABI 639SOABI 640LIBC 641LIBM 642HAVE_GETHOSTBYNAME 643HAVE_GETHOSTBYNAME_R 644HAVE_GETHOSTBYNAME_R_3_ARG 645HAVE_GETHOSTBYNAME_R_5_ARG 646HAVE_GETHOSTBYNAME_R_6_ARG 647LIBOBJS 648TRUE 649MACHDEP_OBJS 650DYNLOADFILE 651DLINCLDIR 652DTRACE_OBJS 653DTRACE_HEADERS 654DFLAGS 655DTRACE 656TCLTK_LIBS 657TCLTK_INCLUDES 658LIBFFI_INCLUDEDIR 659PKG_CONFIG_LIBDIR 660PKG_CONFIG_PATH 661PKG_CONFIG 662TZPATH 663SHLIBS 664CFLAGSFORSHARED 665LINKFORSHARED 666CCSHARED 667BLDSHARED 668LDCXXSHARED 669LDSHARED 670SHLIB_SUFFIX 671LIBTOOL_CRUFT 672OTHER_LIBTOOL_OPT 673UNIVERSAL_ARCH_FLAGS 674LDFLAGS_NODIST 675CFLAGS_NODIST 676BASECFLAGS 677CFLAGS_ALIASING 678OPT 679LLVM_PROF_FOUND 680LLVM_PROFDATA 681LLVM_PROF_ERR 682LLVM_PROF_FILE 683LLVM_PROF_MERGER 684PGO_PROF_USE_FLAG 685PGO_PROF_GEN_FLAG 686LLVM_AR_FOUND 687LLVM_AR 688PROFILE_TASK 689DEF_MAKE_RULE 690DEF_MAKE_ALL_RULE 691ABIFLAGS 692LN 693MKDIR_P 694INSTALL_DATA 695INSTALL_SCRIPT 696INSTALL_PROGRAM 697ac_ct_READELF 698READELF 699ARFLAGS 700ac_ct_AR 701AR 702GNULD 703EXPORTSFROM 704EXPORTSYMS 705LINKCC 706LDVERSION 707RUNSHARED 708INSTSONAME 709LDLIBRARYDIR 710PY3LIBRARY 711BLDLIBRARY 712DLLLIBRARY 713LDLIBRARY 714LIBRARY 715BUILDEXEEXT 716EGREP 717NO_AS_NEEDED 718MULTIARCH_CPPFLAGS 719PLATFORM_TRIPLET 720MULTIARCH 721ac_ct_CXX 722MAINCC 723CXX 724SED 725GREP 726CPP 727OBJEXT 728EXEEXT 729ac_ct_CC 730CPPFLAGS 731LDFLAGS 732CFLAGS 733CC 734EXPORT_MACOSX_DEPLOYMENT_TARGET 735CONFIGURE_MACOSX_DEPLOYMENT_TARGET 736_PYTHON_HOST_PLATFORM 737MACHDEP 738FRAMEWORKINSTALLAPPSPREFIX 739FRAMEWORKUNIXTOOLSPREFIX 740FRAMEWORKPYTHONW 741FRAMEWORKALTINSTALLLAST 742FRAMEWORKALTINSTALLFIRST 743FRAMEWORKINSTALLLAST 744FRAMEWORKINSTALLFIRST 745PYTHONFRAMEWORKINSTALLDIR 746PYTHONFRAMEWORKPREFIX 747PYTHONFRAMEWORKDIR 748PYTHONFRAMEWORKIDENTIFIER 749PYTHONFRAMEWORK 750LIPO_INTEL64_FLAGS 751LIPO_32BIT_FLAGS 752ARCH_RUN_32BIT 753UNIVERSALSDK 754CONFIG_ARGS 755SOVERSION 756VERSION 757PYTHON_FOR_BUILD 758PYTHON_FOR_REGEN 759host_os 760host_vendor 761host_cpu 762host 763build_os 764build_vendor 765build_cpu 766build 767HAS_GIT 768GITBRANCH 769GITTAG 770GITVERSION 771BASECPPFLAGS 772target_alias 773host_alias 774build_alias 775LIBS 776ECHO_T 777ECHO_N 778ECHO_C 779DEFS 780mandir 781localedir 782libdir 783psdir 784pdfdir 785dvidir 786htmldir 787infodir 788docdir 789oldincludedir 790includedir 791localstatedir 792sharedstatedir 793sysconfdir 794datadir 795datarootdir 796libexecdir 797sbindir 798bindir 799program_transform_name 800prefix 801exec_prefix 802PACKAGE_URL 803PACKAGE_BUGREPORT 804PACKAGE_STRING 805PACKAGE_VERSION 806PACKAGE_TARNAME 807PACKAGE_NAME 808PATH_SEPARATOR 809SHELL' 810ac_subst_files='' 811ac_user_opts=' 812enable_option_checking 813enable_universalsdk 814with_universal_archs 815with_framework_name 816enable_framework 817with_cxx_main 818with_suffix 819enable_shared 820enable_profiling 821with_pydebug 822with_trace_refs 823with_assertions 824enable_optimizations 825with_lto 826with_hash_algorithm 827with_tzpath 828with_address_sanitizer 829with_memory_sanitizer 830with_undefined_behavior_sanitizer 831with_libs 832with_system_expat 833with_system_ffi 834with_system_libmpdec 835with_decimal_contextvar 836enable_loadable_sqlite_extensions 837with_tcltk_includes 838with_tcltk_libs 839with_dbmliborder 840enable_ipv6 841with_doc_strings 842with_pymalloc 843with_c_locale_coercion 844with_valgrind 845with_dtrace 846with_libm 847with_libc 848enable_big_digits 849with_platlibdir 850with_computed_gotos 851with_ensurepip 852with_openssl 853with_ssl_default_suites 854with_builtin_hashlib_hashes 855' 856 ac_precious_vars='build_alias 857host_alias 858target_alias 859MACHDEP 860CC 861CFLAGS 862LDFLAGS 863LIBS 864CPPFLAGS 865CPP 866PROFILE_TASK 867PKG_CONFIG 868PKG_CONFIG_PATH 869PKG_CONFIG_LIBDIR' 870 871 872# Initialize some variables set by options. 873ac_init_help= 874ac_init_version=false 875ac_unrecognized_opts= 876ac_unrecognized_sep= 877# The variables have the same names as the options, with 878# dashes changed to underlines. 879cache_file=/dev/null 880exec_prefix=NONE 881no_create= 882no_recursion= 883prefix=NONE 884program_prefix=NONE 885program_suffix=NONE 886program_transform_name=s,x,x, 887silent= 888site= 889srcdir= 890verbose= 891x_includes=NONE 892x_libraries=NONE 893 894# Installation directory options. 895# These are left unexpanded so users can "make install exec_prefix=/foo" 896# and all the variables that are supposed to be based on exec_prefix 897# by default will actually change. 898# Use braces instead of parens because sh, perl, etc. also accept them. 899# (The list follows the same order as the GNU Coding Standards.) 900bindir='${exec_prefix}/bin' 901sbindir='${exec_prefix}/sbin' 902libexecdir='${exec_prefix}/libexec' 903datarootdir='${prefix}/share' 904datadir='${datarootdir}' 905sysconfdir='${prefix}/etc' 906sharedstatedir='${prefix}/com' 907localstatedir='${prefix}/var' 908includedir='${prefix}/include' 909oldincludedir='/usr/include' 910docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 911infodir='${datarootdir}/info' 912htmldir='${docdir}' 913dvidir='${docdir}' 914pdfdir='${docdir}' 915psdir='${docdir}' 916libdir='${exec_prefix}/lib' 917localedir='${datarootdir}/locale' 918mandir='${datarootdir}/man' 919 920ac_prev= 921ac_dashdash= 922for ac_option 923do 924 # If the previous option needs an argument, assign it. 925 if test -n "$ac_prev"; then 926 eval $ac_prev=\$ac_option 927 ac_prev= 928 continue 929 fi 930 931 case $ac_option in 932 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 933 *=) ac_optarg= ;; 934 *) ac_optarg=yes ;; 935 esac 936 937 # Accept the important Cygnus configure options, so we can diagnose typos. 938 939 case $ac_dashdash$ac_option in 940 --) 941 ac_dashdash=yes ;; 942 943 -bindir | --bindir | --bindi | --bind | --bin | --bi) 944 ac_prev=bindir ;; 945 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 946 bindir=$ac_optarg ;; 947 948 -build | --build | --buil | --bui | --bu) 949 ac_prev=build_alias ;; 950 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 951 build_alias=$ac_optarg ;; 952 953 -cache-file | --cache-file | --cache-fil | --cache-fi \ 954 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 955 ac_prev=cache_file ;; 956 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 957 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 958 cache_file=$ac_optarg ;; 959 960 --config-cache | -C) 961 cache_file=config.cache ;; 962 963 -datadir | --datadir | --datadi | --datad) 964 ac_prev=datadir ;; 965 -datadir=* | --datadir=* | --datadi=* | --datad=*) 966 datadir=$ac_optarg ;; 967 968 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 969 | --dataroo | --dataro | --datar) 970 ac_prev=datarootdir ;; 971 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 972 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 973 datarootdir=$ac_optarg ;; 974 975 -disable-* | --disable-*) 976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 977 # Reject names that are not valid shell variable names. 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 979 as_fn_error $? "invalid feature name: $ac_useropt" 980 ac_useropt_orig=$ac_useropt 981 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 982 case $ac_user_opts in 983 *" 984"enable_$ac_useropt" 985"*) ;; 986 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 987 ac_unrecognized_sep=', ';; 988 esac 989 eval enable_$ac_useropt=no ;; 990 991 -docdir | --docdir | --docdi | --doc | --do) 992 ac_prev=docdir ;; 993 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 994 docdir=$ac_optarg ;; 995 996 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 997 ac_prev=dvidir ;; 998 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 999 dvidir=$ac_optarg ;; 1000 1001 -enable-* | --enable-*) 1002 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1003 # Reject names that are not valid shell variable names. 1004 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1005 as_fn_error $? "invalid feature name: $ac_useropt" 1006 ac_useropt_orig=$ac_useropt 1007 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1008 case $ac_user_opts in 1009 *" 1010"enable_$ac_useropt" 1011"*) ;; 1012 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1013 ac_unrecognized_sep=', ';; 1014 esac 1015 eval enable_$ac_useropt=\$ac_optarg ;; 1016 1017 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1018 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1019 | --exec | --exe | --ex) 1020 ac_prev=exec_prefix ;; 1021 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1022 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1023 | --exec=* | --exe=* | --ex=*) 1024 exec_prefix=$ac_optarg ;; 1025 1026 -gas | --gas | --ga | --g) 1027 # Obsolete; use --with-gas. 1028 with_gas=yes ;; 1029 1030 -help | --help | --hel | --he | -h) 1031 ac_init_help=long ;; 1032 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1033 ac_init_help=recursive ;; 1034 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1035 ac_init_help=short ;; 1036 1037 -host | --host | --hos | --ho) 1038 ac_prev=host_alias ;; 1039 -host=* | --host=* | --hos=* | --ho=*) 1040 host_alias=$ac_optarg ;; 1041 1042 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1043 ac_prev=htmldir ;; 1044 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1045 | --ht=*) 1046 htmldir=$ac_optarg ;; 1047 1048 -includedir | --includedir | --includedi | --included | --include \ 1049 | --includ | --inclu | --incl | --inc) 1050 ac_prev=includedir ;; 1051 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1052 | --includ=* | --inclu=* | --incl=* | --inc=*) 1053 includedir=$ac_optarg ;; 1054 1055 -infodir | --infodir | --infodi | --infod | --info | --inf) 1056 ac_prev=infodir ;; 1057 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1058 infodir=$ac_optarg ;; 1059 1060 -libdir | --libdir | --libdi | --libd) 1061 ac_prev=libdir ;; 1062 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1063 libdir=$ac_optarg ;; 1064 1065 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1066 | --libexe | --libex | --libe) 1067 ac_prev=libexecdir ;; 1068 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1069 | --libexe=* | --libex=* | --libe=*) 1070 libexecdir=$ac_optarg ;; 1071 1072 -localedir | --localedir | --localedi | --localed | --locale) 1073 ac_prev=localedir ;; 1074 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1075 localedir=$ac_optarg ;; 1076 1077 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1078 | --localstate | --localstat | --localsta | --localst | --locals) 1079 ac_prev=localstatedir ;; 1080 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1081 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1082 localstatedir=$ac_optarg ;; 1083 1084 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1085 ac_prev=mandir ;; 1086 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1087 mandir=$ac_optarg ;; 1088 1089 -nfp | --nfp | --nf) 1090 # Obsolete; use --without-fp. 1091 with_fp=no ;; 1092 1093 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1094 | --no-cr | --no-c | -n) 1095 no_create=yes ;; 1096 1097 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1098 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1099 no_recursion=yes ;; 1100 1101 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1102 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1103 | --oldin | --oldi | --old | --ol | --o) 1104 ac_prev=oldincludedir ;; 1105 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1106 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1107 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1108 oldincludedir=$ac_optarg ;; 1109 1110 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1111 ac_prev=prefix ;; 1112 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1113 prefix=$ac_optarg ;; 1114 1115 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1116 | --program-pre | --program-pr | --program-p) 1117 ac_prev=program_prefix ;; 1118 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1119 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1120 program_prefix=$ac_optarg ;; 1121 1122 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1123 | --program-suf | --program-su | --program-s) 1124 ac_prev=program_suffix ;; 1125 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1126 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1127 program_suffix=$ac_optarg ;; 1128 1129 -program-transform-name | --program-transform-name \ 1130 | --program-transform-nam | --program-transform-na \ 1131 | --program-transform-n | --program-transform- \ 1132 | --program-transform | --program-transfor \ 1133 | --program-transfo | --program-transf \ 1134 | --program-trans | --program-tran \ 1135 | --progr-tra | --program-tr | --program-t) 1136 ac_prev=program_transform_name ;; 1137 -program-transform-name=* | --program-transform-name=* \ 1138 | --program-transform-nam=* | --program-transform-na=* \ 1139 | --program-transform-n=* | --program-transform-=* \ 1140 | --program-transform=* | --program-transfor=* \ 1141 | --program-transfo=* | --program-transf=* \ 1142 | --program-trans=* | --program-tran=* \ 1143 | --progr-tra=* | --program-tr=* | --program-t=*) 1144 program_transform_name=$ac_optarg ;; 1145 1146 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1147 ac_prev=pdfdir ;; 1148 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1149 pdfdir=$ac_optarg ;; 1150 1151 -psdir | --psdir | --psdi | --psd | --ps) 1152 ac_prev=psdir ;; 1153 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1154 psdir=$ac_optarg ;; 1155 1156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1157 | -silent | --silent | --silen | --sile | --sil) 1158 silent=yes ;; 1159 1160 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1161 ac_prev=sbindir ;; 1162 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1163 | --sbi=* | --sb=*) 1164 sbindir=$ac_optarg ;; 1165 1166 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1167 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1168 | --sharedst | --shareds | --shared | --share | --shar \ 1169 | --sha | --sh) 1170 ac_prev=sharedstatedir ;; 1171 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1172 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1173 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1174 | --sha=* | --sh=*) 1175 sharedstatedir=$ac_optarg ;; 1176 1177 -site | --site | --sit) 1178 ac_prev=site ;; 1179 -site=* | --site=* | --sit=*) 1180 site=$ac_optarg ;; 1181 1182 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1183 ac_prev=srcdir ;; 1184 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1185 srcdir=$ac_optarg ;; 1186 1187 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1188 | --syscon | --sysco | --sysc | --sys | --sy) 1189 ac_prev=sysconfdir ;; 1190 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1191 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1192 sysconfdir=$ac_optarg ;; 1193 1194 -target | --target | --targe | --targ | --tar | --ta | --t) 1195 ac_prev=target_alias ;; 1196 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1197 target_alias=$ac_optarg ;; 1198 1199 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1200 verbose=yes ;; 1201 1202 -version | --version | --versio | --versi | --vers | -V) 1203 ac_init_version=: ;; 1204 1205 -with-* | --with-*) 1206 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1207 # Reject names that are not valid shell variable names. 1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1209 as_fn_error $? "invalid package name: $ac_useropt" 1210 ac_useropt_orig=$ac_useropt 1211 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1212 case $ac_user_opts in 1213 *" 1214"with_$ac_useropt" 1215"*) ;; 1216 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1217 ac_unrecognized_sep=', ';; 1218 esac 1219 eval with_$ac_useropt=\$ac_optarg ;; 1220 1221 -without-* | --without-*) 1222 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1223 # Reject names that are not valid shell variable names. 1224 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1225 as_fn_error $? "invalid package name: $ac_useropt" 1226 ac_useropt_orig=$ac_useropt 1227 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1228 case $ac_user_opts in 1229 *" 1230"with_$ac_useropt" 1231"*) ;; 1232 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1233 ac_unrecognized_sep=', ';; 1234 esac 1235 eval with_$ac_useropt=no ;; 1236 1237 --x) 1238 # Obsolete; use --with-x. 1239 with_x=yes ;; 1240 1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1242 | --x-incl | --x-inc | --x-in | --x-i) 1243 ac_prev=x_includes ;; 1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1246 x_includes=$ac_optarg ;; 1247 1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1250 ac_prev=x_libraries ;; 1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1253 x_libraries=$ac_optarg ;; 1254 1255 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1256Try \`$0 --help' for more information" 1257 ;; 1258 1259 *=*) 1260 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1261 # Reject names that are not valid shell variable names. 1262 case $ac_envvar in #( 1263 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1264 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1265 esac 1266 eval $ac_envvar=\$ac_optarg 1267 export $ac_envvar ;; 1268 1269 *) 1270 # FIXME: should be removed in autoconf 3.0. 1271 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1273 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1274 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1275 ;; 1276 1277 esac 1278done 1279 1280if test -n "$ac_prev"; then 1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1282 as_fn_error $? "missing argument to $ac_option" 1283fi 1284 1285if test -n "$ac_unrecognized_opts"; then 1286 case $enable_option_checking in 1287 no) ;; 1288 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1289 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1290 esac 1291fi 1292 1293# Check all directory arguments for consistency. 1294for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1295 datadir sysconfdir sharedstatedir localstatedir includedir \ 1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1297 libdir localedir mandir 1298do 1299 eval ac_val=\$$ac_var 1300 # Remove trailing slashes. 1301 case $ac_val in 1302 */ ) 1303 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1304 eval $ac_var=\$ac_val;; 1305 esac 1306 # Be sure to have absolute directory names. 1307 case $ac_val in 1308 [\\/$]* | ?:[\\/]* ) continue;; 1309 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1310 esac 1311 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1312done 1313 1314# There might be people who depend on the old broken behavior: `$host' 1315# used to hold the argument of --host etc. 1316# FIXME: To remove some day. 1317build=$build_alias 1318host=$host_alias 1319target=$target_alias 1320 1321# FIXME: To remove some day. 1322if test "x$host_alias" != x; then 1323 if test "x$build_alias" = x; then 1324 cross_compiling=maybe 1325 elif test "x$build_alias" != "x$host_alias"; then 1326 cross_compiling=yes 1327 fi 1328fi 1329 1330ac_tool_prefix= 1331test -n "$host_alias" && ac_tool_prefix=$host_alias- 1332 1333test "$silent" = yes && exec 6>/dev/null 1334 1335 1336ac_pwd=`pwd` && test -n "$ac_pwd" && 1337ac_ls_di=`ls -di .` && 1338ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1339 as_fn_error $? "working directory cannot be determined" 1340test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1341 as_fn_error $? "pwd does not report name of working directory" 1342 1343 1344# Find the source files, if location was not specified. 1345if test -z "$srcdir"; then 1346 ac_srcdir_defaulted=yes 1347 # Try the directory containing this script, then the parent directory. 1348 ac_confdir=`$as_dirname -- "$as_myself" || 1349$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1350 X"$as_myself" : 'X\(//\)[^/]' \| \ 1351 X"$as_myself" : 'X\(//\)$' \| \ 1352 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1353$as_echo X"$as_myself" | 1354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1355 s//\1/ 1356 q 1357 } 1358 /^X\(\/\/\)[^/].*/{ 1359 s//\1/ 1360 q 1361 } 1362 /^X\(\/\/\)$/{ 1363 s//\1/ 1364 q 1365 } 1366 /^X\(\/\).*/{ 1367 s//\1/ 1368 q 1369 } 1370 s/.*/./; q'` 1371 srcdir=$ac_confdir 1372 if test ! -r "$srcdir/$ac_unique_file"; then 1373 srcdir=.. 1374 fi 1375else 1376 ac_srcdir_defaulted=no 1377fi 1378if test ! -r "$srcdir/$ac_unique_file"; then 1379 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1380 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1381fi 1382ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1383ac_abs_confdir=`( 1384 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1385 pwd)` 1386# When building in place, set srcdir=. 1387if test "$ac_abs_confdir" = "$ac_pwd"; then 1388 srcdir=. 1389fi 1390# Remove unnecessary trailing slashes from srcdir. 1391# Double slashes in file names in object file debugging info 1392# mess up M-x gdb in Emacs. 1393case $srcdir in 1394*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1395esac 1396for ac_var in $ac_precious_vars; do 1397 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1398 eval ac_env_${ac_var}_value=\$${ac_var} 1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1400 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1401done 1402 1403# 1404# Report the --help message. 1405# 1406if test "$ac_init_help" = "long"; then 1407 # Omit some internal or obsolete options to make the list less imposing. 1408 # This message is too long to be a string in the A/UX 3.1 sh. 1409 cat <<_ACEOF 1410\`configure' configures python 3.9 to adapt to many kinds of systems. 1411 1412Usage: $0 [OPTION]... [VAR=VALUE]... 1413 1414To assign environment variables (e.g., CC, CFLAGS...), specify them as 1415VAR=VALUE. See below for descriptions of some of the useful variables. 1416 1417Defaults for the options are specified in brackets. 1418 1419Configuration: 1420 -h, --help display this help and exit 1421 --help=short display options specific to this package 1422 --help=recursive display the short help of all the included packages 1423 -V, --version display version information and exit 1424 -q, --quiet, --silent do not print \`checking ...' messages 1425 --cache-file=FILE cache test results in FILE [disabled] 1426 -C, --config-cache alias for \`--cache-file=config.cache' 1427 -n, --no-create do not create output files 1428 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1429 1430Installation directories: 1431 --prefix=PREFIX install architecture-independent files in PREFIX 1432 [$ac_default_prefix] 1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1434 [PREFIX] 1435 1436By default, \`make install' will install all the files in 1437\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1438an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1439for instance \`--prefix=\$HOME'. 1440 1441For better control, use the options below. 1442 1443Fine tuning of the installation directories: 1444 --bindir=DIR user executables [EPREFIX/bin] 1445 --sbindir=DIR system admin executables [EPREFIX/sbin] 1446 --libexecdir=DIR program executables [EPREFIX/libexec] 1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1450 --libdir=DIR object code libraries [EPREFIX/lib] 1451 --includedir=DIR C header files [PREFIX/include] 1452 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1455 --infodir=DIR info documentation [DATAROOTDIR/info] 1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1457 --mandir=DIR man documentation [DATAROOTDIR/man] 1458 --docdir=DIR documentation root [DATAROOTDIR/doc/python] 1459 --htmldir=DIR html documentation [DOCDIR] 1460 --dvidir=DIR dvi documentation [DOCDIR] 1461 --pdfdir=DIR pdf documentation [DOCDIR] 1462 --psdir=DIR ps documentation [DOCDIR] 1463_ACEOF 1464 1465 cat <<\_ACEOF 1466 1467System types: 1468 --build=BUILD configure for building on BUILD [guessed] 1469 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1470_ACEOF 1471fi 1472 1473if test -n "$ac_init_help"; then 1474 case $ac_init_help in 1475 short | recursive ) echo "Configuration of python 3.9:";; 1476 esac 1477 cat <<\_ACEOF 1478 1479Optional Features: 1480 --disable-option-checking ignore unrecognized --enable/--with options 1481 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1482 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1483 --enable-universalsdk[=SDKDIR] 1484 create a universal binary build. SDKDIR specifies 1485 which macOS SDK should be used to perform the build, 1486 see Mac/README.rst. (default is no) 1487 --enable-framework[=INSTALLDIR] 1488 create a Python.framework rather than a traditional 1489 Unix install. optional INSTALLDIR specifies the 1490 installation path. see Mac/README.rst (default is 1491 no) 1492 --enable-shared enable building a shared Python library (default is 1493 no) 1494 --enable-profiling enable C-level code profiling with gprof (default is 1495 no) 1496 --enable-optimizations enable expensive, stable optimizations (PGO, etc.) 1497 (default is no) 1498 --enable-loadable-sqlite-extensions 1499 support loadable extensions in _sqlite module, see 1500 Doc/library/sqlite3.rst (default is no) 1501 --enable-ipv6 enable ipv6 (with ipv4) support, see 1502 Doc/library/socket.rst (default is yes if supported) 1503 --enable-big-digits[=15|30] 1504 use big digits (30 or 15 bits) for Python longs 1505 (default is system-dependent)] 1506 1507Optional Packages: 1508 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1509 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1510 --with-universal-archs=ARCH 1511 specify the kind of macOS universal binary that 1512 should be created. This option is only valid when 1513 --enable-universalsdk is set; options are: 1514 ("universal2", "intel-64", "intel-32", "intel", 1515 "32-bit", "64-bit", "3-way", or "all") see 1516 Mac/README.rst 1517 --with-framework-name=FRAMEWORK 1518 specify the name for the python framework on macOS 1519 only valid when --enable-framework is set. see 1520 Mac/README.rst (default is 'Python') 1521 --with-cxx-main[=COMPILER] 1522 compile main() and link Python executable with C++ 1523 compiler specified in COMPILER (default is $CXX) 1524 --with-suffix=SUFFIX set executable suffix to SUFFIX (default is '.exe') 1525 --with-pydebug build with Py_DEBUG defined (default is no) 1526 --with-trace-refs enable tracing references for debugging purpose 1527 (default is no) 1528 --with-assertions build with C assertions enabled (default is no) 1529 --with-lto enable Link-Time-Optimization in any build (default 1530 is no) 1531 --with-hash-algorithm=[fnv|siphash24] 1532 select hash algorithm for use in Python/pyhash.c 1533 (default is SipHash24) 1534 --with-tzpath=<list of absolute paths separated by pathsep> 1535 Select the default time zone search path for zoneinfo.TZPATH 1536 1537 --with-address-sanitizer 1538 enable AddressSanitizer memory error detector, 1539 'asan' (default is no) 1540 --with-memory-sanitizer enable MemorySanitizer allocation error detector, 1541 'msan' (default is no) 1542 --with-undefined-behavior-sanitizer 1543 enable UndefinedBehaviorSanitizer undefined 1544 behaviour detector, 'ubsan' (default is no) 1545 --with-libs='lib1 ...' link against additional libs (default is no) 1546 --with-system-expat build pyexpat module using an installed expat 1547 library, see Doc/library/pyexpat.rst (default is no) 1548 --with-system-ffi build _ctypes module using an installed ffi library, 1549 see Doc/library/ctypes.rst (default is 1550 system-dependent) 1551 --with-system-libmpdec build _decimal module using an installed libmpdec 1552 library, see Doc/library/decimal.rst (default is no) 1553 --with-decimal-contextvar 1554 build _decimal module using a coroutine-local rather 1555 than a thread-local context (default is yes) 1556 --with-tcltk-includes='-I...' 1557 override search for Tcl and Tk include files 1558 --with-tcltk-libs='-L...' 1559 override search for Tcl and Tk libs 1560 --with-dbmliborder=db1:db2:... 1561 override order to check db backends for dbm; a valid 1562 value is a colon separated string with the backend 1563 names `ndbm', `gdbm' and `bdb'. 1564 --with-doc-strings enable documentation strings (default is yes) 1565 --with-pymalloc enable specialized mallocs (default is yes) 1566 --with-c-locale-coercion 1567 enable C locale coercion to a UTF-8 based locale 1568 (default is yes) 1569 --with-valgrind enable Valgrind support (default is no) 1570 --with-dtrace enable DTrace support (default is no) 1571 --with-libm=STRING override libm math library to STRING (default is 1572 system-dependent) 1573 --with-libc=STRING override libc C library to STRING (default is 1574 system-dependent) 1575 --with-platlibdir=DIRNAME 1576 Python library directory name (default is "lib") 1577 --with-computed-gotos enable computed gotos in evaluation loop (enabled by 1578 default on supported compilers) 1579 --with-ensurepip[=install|upgrade|no] 1580 "install" or "upgrade" using bundled pip (default is 1581 upgrade) 1582 --with-openssl=DIR root of the OpenSSL directory 1583 --with-ssl-default-suites=[python|openssl|STRING] 1584 override default cipher suites string, python: use 1585 Python's preferred selection (default), openssl: 1586 leave OpenSSL's defaults untouched, STRING: use a 1587 custom string, PROTOCOL_SSLv2 ignores the setting, 1588 see Doc/library/ssl.rst 1589 --with-builtin-hashlib-hashes=md5,sha1,sha256,sha512,sha3,blake2 1590 builtin hash modules, md5, sha1, sha256, sha512, 1591 sha3 (with shake), blake2 1592 1593Some influential environment variables: 1594 MACHDEP name for machine-dependent library files 1595 CC C compiler command 1596 CFLAGS C compiler flags 1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1598 nonstandard directory <lib dir> 1599 LIBS libraries to pass to the linker, e.g. -l<library> 1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1601 you have headers in a nonstandard directory <include dir> 1602 CPP C preprocessor 1603 PROFILE_TASK 1604 Python args for PGO generation task 1605 PKG_CONFIG path to pkg-config utility 1606 PKG_CONFIG_PATH 1607 directories to add to pkg-config's search path 1608 PKG_CONFIG_LIBDIR 1609 path overriding pkg-config's built-in search path 1610 1611Use these variables to override the choices made by `configure' or to help 1612it to find libraries and programs with nonstandard names/locations. 1613 1614Report bugs to <https://bugs.python.org/>. 1615_ACEOF 1616ac_status=$? 1617fi 1618 1619if test "$ac_init_help" = "recursive"; then 1620 # If there are subdirs, report their specific --help. 1621 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1622 test -d "$ac_dir" || 1623 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1624 continue 1625 ac_builddir=. 1626 1627case "$ac_dir" in 1628.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1629*) 1630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1631 # A ".." for each directory in $ac_dir_suffix. 1632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1633 case $ac_top_builddir_sub in 1634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1636 esac ;; 1637esac 1638ac_abs_top_builddir=$ac_pwd 1639ac_abs_builddir=$ac_pwd$ac_dir_suffix 1640# for backward compatibility: 1641ac_top_builddir=$ac_top_build_prefix 1642 1643case $srcdir in 1644 .) # We are building in place. 1645 ac_srcdir=. 1646 ac_top_srcdir=$ac_top_builddir_sub 1647 ac_abs_top_srcdir=$ac_pwd ;; 1648 [\\/]* | ?:[\\/]* ) # Absolute name. 1649 ac_srcdir=$srcdir$ac_dir_suffix; 1650 ac_top_srcdir=$srcdir 1651 ac_abs_top_srcdir=$srcdir ;; 1652 *) # Relative name. 1653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1654 ac_top_srcdir=$ac_top_build_prefix$srcdir 1655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1656esac 1657ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1658 1659 cd "$ac_dir" || { ac_status=$?; continue; } 1660 # Check for guested configure. 1661 if test -f "$ac_srcdir/configure.gnu"; then 1662 echo && 1663 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1664 elif test -f "$ac_srcdir/configure"; then 1665 echo && 1666 $SHELL "$ac_srcdir/configure" --help=recursive 1667 else 1668 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1669 fi || ac_status=$? 1670 cd "$ac_pwd" || { ac_status=$?; break; } 1671 done 1672fi 1673 1674test -n "$ac_init_help" && exit $ac_status 1675if $ac_init_version; then 1676 cat <<\_ACEOF 1677python configure 3.9 1678generated by GNU Autoconf 2.69 1679 1680Copyright (C) 2012 Free Software Foundation, Inc. 1681This configure script is free software; the Free Software Foundation 1682gives unlimited permission to copy, distribute and modify it. 1683_ACEOF 1684 exit 1685fi 1686 1687## ------------------------ ## 1688## Autoconf initialization. ## 1689## ------------------------ ## 1690 1691# ac_fn_c_try_compile LINENO 1692# -------------------------- 1693# Try to compile conftest.$ac_ext, and return whether this succeeded. 1694ac_fn_c_try_compile () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 rm -f conftest.$ac_objext 1698 if { { ac_try="$ac_compile" 1699case "(($ac_try" in 1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1701 *) ac_try_echo=$ac_try;; 1702esac 1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1704$as_echo "$ac_try_echo"; } >&5 1705 (eval "$ac_compile") 2>conftest.err 1706 ac_status=$? 1707 if test -s conftest.err; then 1708 grep -v '^ *+' conftest.err >conftest.er1 1709 cat conftest.er1 >&5 1710 mv -f conftest.er1 conftest.err 1711 fi 1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1713 test $ac_status = 0; } && { 1714 test -z "$ac_c_werror_flag" || 1715 test ! -s conftest.err 1716 } && test -s conftest.$ac_objext; then : 1717 ac_retval=0 1718else 1719 $as_echo "$as_me: failed program was:" >&5 1720sed 's/^/| /' conftest.$ac_ext >&5 1721 1722 ac_retval=1 1723fi 1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1725 as_fn_set_status $ac_retval 1726 1727} # ac_fn_c_try_compile 1728 1729# ac_fn_c_try_cpp LINENO 1730# ---------------------- 1731# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1732ac_fn_c_try_cpp () 1733{ 1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1735 if { { ac_try="$ac_cpp conftest.$ac_ext" 1736case "(($ac_try" in 1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1738 *) ac_try_echo=$ac_try;; 1739esac 1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1741$as_echo "$ac_try_echo"; } >&5 1742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1743 ac_status=$? 1744 if test -s conftest.err; then 1745 grep -v '^ *+' conftest.err >conftest.er1 1746 cat conftest.er1 >&5 1747 mv -f conftest.er1 conftest.err 1748 fi 1749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1750 test $ac_status = 0; } > conftest.i && { 1751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1752 test ! -s conftest.err 1753 }; then : 1754 ac_retval=0 1755else 1756 $as_echo "$as_me: failed program was:" >&5 1757sed 's/^/| /' conftest.$ac_ext >&5 1758 1759 ac_retval=1 1760fi 1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1762 as_fn_set_status $ac_retval 1763 1764} # ac_fn_c_try_cpp 1765 1766# ac_fn_c_try_link LINENO 1767# ----------------------- 1768# Try to link conftest.$ac_ext, and return whether this succeeded. 1769ac_fn_c_try_link () 1770{ 1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1772 rm -f conftest.$ac_objext conftest$ac_exeext 1773 if { { ac_try="$ac_link" 1774case "(($ac_try" in 1775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1776 *) ac_try_echo=$ac_try;; 1777esac 1778eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1779$as_echo "$ac_try_echo"; } >&5 1780 (eval "$ac_link") 2>conftest.err 1781 ac_status=$? 1782 if test -s conftest.err; then 1783 grep -v '^ *+' conftest.err >conftest.er1 1784 cat conftest.er1 >&5 1785 mv -f conftest.er1 conftest.err 1786 fi 1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1788 test $ac_status = 0; } && { 1789 test -z "$ac_c_werror_flag" || 1790 test ! -s conftest.err 1791 } && test -s conftest$ac_exeext && { 1792 test "$cross_compiling" = yes || 1793 test -x conftest$ac_exeext 1794 }; then : 1795 ac_retval=0 1796else 1797 $as_echo "$as_me: failed program was:" >&5 1798sed 's/^/| /' conftest.$ac_ext >&5 1799 1800 ac_retval=1 1801fi 1802 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1803 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1804 # interfere with the next link command; also delete a directory that is 1805 # left behind by Apple's compiler. We do this before executing the actions. 1806 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1808 as_fn_set_status $ac_retval 1809 1810} # ac_fn_c_try_link 1811 1812# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1813# ------------------------------------------------------- 1814# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1815# the include files in INCLUDES and setting the cache variable VAR 1816# accordingly. 1817ac_fn_c_check_header_mongrel () 1818{ 1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1820 if eval \${$3+:} false; then : 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1822$as_echo_n "checking for $2... " >&6; } 1823if eval \${$3+:} false; then : 1824 $as_echo_n "(cached) " >&6 1825fi 1826eval ac_res=\$$3 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1828$as_echo "$ac_res" >&6; } 1829else 1830 # Is the header compilable? 1831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1832$as_echo_n "checking $2 usability... " >&6; } 1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1834/* end confdefs.h. */ 1835$4 1836#include <$2> 1837_ACEOF 1838if ac_fn_c_try_compile "$LINENO"; then : 1839 ac_header_compiler=yes 1840else 1841 ac_header_compiler=no 1842fi 1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1845$as_echo "$ac_header_compiler" >&6; } 1846 1847# Is the header present? 1848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1849$as_echo_n "checking $2 presence... " >&6; } 1850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1851/* end confdefs.h. */ 1852#include <$2> 1853_ACEOF 1854if ac_fn_c_try_cpp "$LINENO"; then : 1855 ac_header_preproc=yes 1856else 1857 ac_header_preproc=no 1858fi 1859rm -f conftest.err conftest.i conftest.$ac_ext 1860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1861$as_echo "$ac_header_preproc" >&6; } 1862 1863# So? What about this header? 1864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1865 yes:no: ) 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1867$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1870 ;; 1871 no:yes:* ) 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1873$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1875$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1877$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1879$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1881$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1882( $as_echo "## --------------------------------------- ## 1883## Report this to https://bugs.python.org/ ## 1884## --------------------------------------- ##" 1885 ) | sed "s/^/$as_me: WARNING: /" >&2 1886 ;; 1887esac 1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1889$as_echo_n "checking for $2... " >&6; } 1890if eval \${$3+:} false; then : 1891 $as_echo_n "(cached) " >&6 1892else 1893 eval "$3=\$ac_header_compiler" 1894fi 1895eval ac_res=\$$3 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1897$as_echo "$ac_res" >&6; } 1898fi 1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1900 1901} # ac_fn_c_check_header_mongrel 1902 1903# ac_fn_c_try_run LINENO 1904# ---------------------- 1905# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1906# that executables *can* be run. 1907ac_fn_c_try_run () 1908{ 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1910 if { { ac_try="$ac_link" 1911case "(($ac_try" in 1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1913 *) ac_try_echo=$ac_try;; 1914esac 1915eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1916$as_echo "$ac_try_echo"; } >&5 1917 (eval "$ac_link") 2>&5 1918 ac_status=$? 1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1920 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1921 { { case "(($ac_try" in 1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1923 *) ac_try_echo=$ac_try;; 1924esac 1925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1926$as_echo "$ac_try_echo"; } >&5 1927 (eval "$ac_try") 2>&5 1928 ac_status=$? 1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1930 test $ac_status = 0; }; }; then : 1931 ac_retval=0 1932else 1933 $as_echo "$as_me: program exited with status $ac_status" >&5 1934 $as_echo "$as_me: failed program was:" >&5 1935sed 's/^/| /' conftest.$ac_ext >&5 1936 1937 ac_retval=$ac_status 1938fi 1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1941 as_fn_set_status $ac_retval 1942 1943} # ac_fn_c_try_run 1944 1945# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1946# ------------------------------------------------------- 1947# Tests whether HEADER exists and can be compiled using the include files in 1948# INCLUDES, setting the cache variable VAR accordingly. 1949ac_fn_c_check_header_compile () 1950{ 1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1953$as_echo_n "checking for $2... " >&6; } 1954if eval \${$3+:} false; then : 1955 $as_echo_n "(cached) " >&6 1956else 1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1958/* end confdefs.h. */ 1959$4 1960#include <$2> 1961_ACEOF 1962if ac_fn_c_try_compile "$LINENO"; then : 1963 eval "$3=yes" 1964else 1965 eval "$3=no" 1966fi 1967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1968fi 1969eval ac_res=\$$3 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1971$as_echo "$ac_res" >&6; } 1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1973 1974} # ac_fn_c_check_header_compile 1975 1976# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1977# ------------------------------------------- 1978# Tests whether TYPE exists after having included INCLUDES, setting cache 1979# variable VAR accordingly. 1980ac_fn_c_check_type () 1981{ 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1984$as_echo_n "checking for $2... " >&6; } 1985if eval \${$3+:} false; then : 1986 $as_echo_n "(cached) " >&6 1987else 1988 eval "$3=no" 1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1990/* end confdefs.h. */ 1991$4 1992int 1993main () 1994{ 1995if (sizeof ($2)) 1996 return 0; 1997 ; 1998 return 0; 1999} 2000_ACEOF 2001if ac_fn_c_try_compile "$LINENO"; then : 2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2003/* end confdefs.h. */ 2004$4 2005int 2006main () 2007{ 2008if (sizeof (($2))) 2009 return 0; 2010 ; 2011 return 0; 2012} 2013_ACEOF 2014if ac_fn_c_try_compile "$LINENO"; then : 2015 2016else 2017 eval "$3=yes" 2018fi 2019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2020fi 2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2022fi 2023eval ac_res=\$$3 2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2025$as_echo "$ac_res" >&6; } 2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2027 2028} # ac_fn_c_check_type 2029 2030# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2031# -------------------------------------------- 2032# Tries to find the compile-time value of EXPR in a program that includes 2033# INCLUDES, setting VAR accordingly. Returns whether the value could be 2034# computed 2035ac_fn_c_compute_int () 2036{ 2037 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2038 if test "$cross_compiling" = yes; then 2039 # Depending upon the size, compute the lo and hi bounds. 2040cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2041/* end confdefs.h. */ 2042$4 2043int 2044main () 2045{ 2046static int test_array [1 - 2 * !(($2) >= 0)]; 2047test_array [0] = 0; 2048return test_array [0]; 2049 2050 ; 2051 return 0; 2052} 2053_ACEOF 2054if ac_fn_c_try_compile "$LINENO"; then : 2055 ac_lo=0 ac_mid=0 2056 while :; do 2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2058/* end confdefs.h. */ 2059$4 2060int 2061main () 2062{ 2063static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2064test_array [0] = 0; 2065return test_array [0]; 2066 2067 ; 2068 return 0; 2069} 2070_ACEOF 2071if ac_fn_c_try_compile "$LINENO"; then : 2072 ac_hi=$ac_mid; break 2073else 2074 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2075 if test $ac_lo -le $ac_mid; then 2076 ac_lo= ac_hi= 2077 break 2078 fi 2079 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2080fi 2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2082 done 2083else 2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2085/* end confdefs.h. */ 2086$4 2087int 2088main () 2089{ 2090static int test_array [1 - 2 * !(($2) < 0)]; 2091test_array [0] = 0; 2092return test_array [0]; 2093 2094 ; 2095 return 0; 2096} 2097_ACEOF 2098if ac_fn_c_try_compile "$LINENO"; then : 2099 ac_hi=-1 ac_mid=-1 2100 while :; do 2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2102/* end confdefs.h. */ 2103$4 2104int 2105main () 2106{ 2107static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2108test_array [0] = 0; 2109return test_array [0]; 2110 2111 ; 2112 return 0; 2113} 2114_ACEOF 2115if ac_fn_c_try_compile "$LINENO"; then : 2116 ac_lo=$ac_mid; break 2117else 2118 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2119 if test $ac_mid -le $ac_hi; then 2120 ac_lo= ac_hi= 2121 break 2122 fi 2123 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2124fi 2125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2126 done 2127else 2128 ac_lo= ac_hi= 2129fi 2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2131fi 2132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2133# Binary search between lo and hi bounds. 2134while test "x$ac_lo" != "x$ac_hi"; do 2135 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2137/* end confdefs.h. */ 2138$4 2139int 2140main () 2141{ 2142static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2143test_array [0] = 0; 2144return test_array [0]; 2145 2146 ; 2147 return 0; 2148} 2149_ACEOF 2150if ac_fn_c_try_compile "$LINENO"; then : 2151 ac_hi=$ac_mid 2152else 2153 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2154fi 2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2156done 2157case $ac_lo in #(( 2158?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2159'') ac_retval=1 ;; 2160esac 2161 else 2162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2163/* end confdefs.h. */ 2164$4 2165static long int longval () { return $2; } 2166static unsigned long int ulongval () { return $2; } 2167#include <stdio.h> 2168#include <stdlib.h> 2169int 2170main () 2171{ 2172 2173 FILE *f = fopen ("conftest.val", "w"); 2174 if (! f) 2175 return 1; 2176 if (($2) < 0) 2177 { 2178 long int i = longval (); 2179 if (i != ($2)) 2180 return 1; 2181 fprintf (f, "%ld", i); 2182 } 2183 else 2184 { 2185 unsigned long int i = ulongval (); 2186 if (i != ($2)) 2187 return 1; 2188 fprintf (f, "%lu", i); 2189 } 2190 /* Do not output a trailing newline, as this causes \r\n confusion 2191 on some platforms. */ 2192 return ferror (f) || fclose (f) != 0; 2193 2194 ; 2195 return 0; 2196} 2197_ACEOF 2198if ac_fn_c_try_run "$LINENO"; then : 2199 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2200else 2201 ac_retval=1 2202fi 2203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2204 conftest.$ac_objext conftest.beam conftest.$ac_ext 2205rm -f conftest.val 2206 2207 fi 2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2209 as_fn_set_status $ac_retval 2210 2211} # ac_fn_c_compute_int 2212 2213# ac_fn_c_check_func LINENO FUNC VAR 2214# ---------------------------------- 2215# Tests whether FUNC exists, setting the cache variable VAR accordingly 2216ac_fn_c_check_func () 2217{ 2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2220$as_echo_n "checking for $2... " >&6; } 2221if eval \${$3+:} false; then : 2222 $as_echo_n "(cached) " >&6 2223else 2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2225/* end confdefs.h. */ 2226/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2227 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2228#define $2 innocuous_$2 2229 2230/* System header to define __stub macros and hopefully few prototypes, 2231 which can conflict with char $2 (); below. 2232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2233 <limits.h> exists even on freestanding compilers. */ 2234 2235#ifdef __STDC__ 2236# include <limits.h> 2237#else 2238# include <assert.h> 2239#endif 2240 2241#undef $2 2242 2243/* Override any GCC internal prototype to avoid an error. 2244 Use char because int might match the return type of a GCC 2245 builtin and then its argument prototype would still apply. */ 2246#ifdef __cplusplus 2247extern "C" 2248#endif 2249char $2 (); 2250/* The GNU C library defines this for functions which it implements 2251 to always fail with ENOSYS. Some functions are actually named 2252 something starting with __ and the normal name is an alias. */ 2253#if defined __stub_$2 || defined __stub___$2 2254choke me 2255#endif 2256 2257int 2258main () 2259{ 2260return $2 (); 2261 ; 2262 return 0; 2263} 2264_ACEOF 2265if ac_fn_c_try_link "$LINENO"; then : 2266 eval "$3=yes" 2267else 2268 eval "$3=no" 2269fi 2270rm -f core conftest.err conftest.$ac_objext \ 2271 conftest$ac_exeext conftest.$ac_ext 2272fi 2273eval ac_res=\$$3 2274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2275$as_echo "$ac_res" >&6; } 2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2277 2278} # ac_fn_c_check_func 2279 2280# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2281# --------------------------------------------- 2282# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2283# accordingly. 2284ac_fn_c_check_decl () 2285{ 2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2287 as_decl_name=`echo $2|sed 's/ *(.*//'` 2288 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2290$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2291if eval \${$3+:} false; then : 2292 $as_echo_n "(cached) " >&6 2293else 2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2295/* end confdefs.h. */ 2296$4 2297int 2298main () 2299{ 2300#ifndef $as_decl_name 2301#ifdef __cplusplus 2302 (void) $as_decl_use; 2303#else 2304 (void) $as_decl_name; 2305#endif 2306#endif 2307 2308 ; 2309 return 0; 2310} 2311_ACEOF 2312if ac_fn_c_try_compile "$LINENO"; then : 2313 eval "$3=yes" 2314else 2315 eval "$3=no" 2316fi 2317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2318fi 2319eval ac_res=\$$3 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2321$as_echo "$ac_res" >&6; } 2322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2323 2324} # ac_fn_c_check_decl 2325 2326# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2327# ---------------------------------------------------- 2328# Tries to find if the field MEMBER exists in type AGGR, after including 2329# INCLUDES, setting cache variable VAR accordingly. 2330ac_fn_c_check_member () 2331{ 2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2334$as_echo_n "checking for $2.$3... " >&6; } 2335if eval \${$4+:} false; then : 2336 $as_echo_n "(cached) " >&6 2337else 2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2339/* end confdefs.h. */ 2340$5 2341int 2342main () 2343{ 2344static $2 ac_aggr; 2345if (ac_aggr.$3) 2346return 0; 2347 ; 2348 return 0; 2349} 2350_ACEOF 2351if ac_fn_c_try_compile "$LINENO"; then : 2352 eval "$4=yes" 2353else 2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2355/* end confdefs.h. */ 2356$5 2357int 2358main () 2359{ 2360static $2 ac_aggr; 2361if (sizeof ac_aggr.$3) 2362return 0; 2363 ; 2364 return 0; 2365} 2366_ACEOF 2367if ac_fn_c_try_compile "$LINENO"; then : 2368 eval "$4=yes" 2369else 2370 eval "$4=no" 2371fi 2372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2373fi 2374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2375fi 2376eval ac_res=\$$4 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2378$as_echo "$ac_res" >&6; } 2379 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2380 2381} # ac_fn_c_check_member 2382cat >config.log <<_ACEOF 2383This file contains any messages produced by compilers while 2384running configure, to aid debugging if configure makes a mistake. 2385 2386It was created by python $as_me 3.9, which was 2387generated by GNU Autoconf 2.69. Invocation command line was 2388 2389 $ $0 $@ 2390 2391_ACEOF 2392exec 5>>config.log 2393{ 2394cat <<_ASUNAME 2395## --------- ## 2396## Platform. ## 2397## --------- ## 2398 2399hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2400uname -m = `(uname -m) 2>/dev/null || echo unknown` 2401uname -r = `(uname -r) 2>/dev/null || echo unknown` 2402uname -s = `(uname -s) 2>/dev/null || echo unknown` 2403uname -v = `(uname -v) 2>/dev/null || echo unknown` 2404 2405/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2406/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2407 2408/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2409/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2410/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2411/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2412/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2413/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2414/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2415 2416_ASUNAME 2417 2418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2419for as_dir in $PATH 2420do 2421 IFS=$as_save_IFS 2422 test -z "$as_dir" && as_dir=. 2423 $as_echo "PATH: $as_dir" 2424 done 2425IFS=$as_save_IFS 2426 2427} >&5 2428 2429cat >&5 <<_ACEOF 2430 2431 2432## ----------- ## 2433## Core tests. ## 2434## ----------- ## 2435 2436_ACEOF 2437 2438 2439# Keep a trace of the command line. 2440# Strip out --no-create and --no-recursion so they do not pile up. 2441# Strip out --silent because we don't want to record it for future runs. 2442# Also quote any args containing shell meta-characters. 2443# Make two passes to allow for proper duplicate-argument suppression. 2444ac_configure_args= 2445ac_configure_args0= 2446ac_configure_args1= 2447ac_must_keep_next=false 2448for ac_pass in 1 2 2449do 2450 for ac_arg 2451 do 2452 case $ac_arg in 2453 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2454 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2455 | -silent | --silent | --silen | --sile | --sil) 2456 continue ;; 2457 *\'*) 2458 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2459 esac 2460 case $ac_pass in 2461 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2462 2) 2463 as_fn_append ac_configure_args1 " '$ac_arg'" 2464 if test $ac_must_keep_next = true; then 2465 ac_must_keep_next=false # Got value, back to normal. 2466 else 2467 case $ac_arg in 2468 *=* | --config-cache | -C | -disable-* | --disable-* \ 2469 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2470 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2471 | -with-* | --with-* | -without-* | --without-* | --x) 2472 case "$ac_configure_args0 " in 2473 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2474 esac 2475 ;; 2476 -* ) ac_must_keep_next=true ;; 2477 esac 2478 fi 2479 as_fn_append ac_configure_args " '$ac_arg'" 2480 ;; 2481 esac 2482 done 2483done 2484{ ac_configure_args0=; unset ac_configure_args0;} 2485{ ac_configure_args1=; unset ac_configure_args1;} 2486 2487# When interrupted or exit'd, cleanup temporary files, and complete 2488# config.log. We remove comments because anyway the quotes in there 2489# would cause problems or look ugly. 2490# WARNING: Use '\'' to represent an apostrophe within the trap. 2491# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2492trap 'exit_status=$? 2493 # Save into config.log some information that might help in debugging. 2494 { 2495 echo 2496 2497 $as_echo "## ---------------- ## 2498## Cache variables. ## 2499## ---------------- ##" 2500 echo 2501 # The following way of writing the cache mishandles newlines in values, 2502( 2503 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2504 eval ac_val=\$$ac_var 2505 case $ac_val in #( 2506 *${as_nl}*) 2507 case $ac_var in #( 2508 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2509$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2510 esac 2511 case $ac_var in #( 2512 _ | IFS | as_nl) ;; #( 2513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2514 *) { eval $ac_var=; unset $ac_var;} ;; 2515 esac ;; 2516 esac 2517 done 2518 (set) 2>&1 | 2519 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2520 *${as_nl}ac_space=\ *) 2521 sed -n \ 2522 "s/'\''/'\''\\\\'\'''\''/g; 2523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2524 ;; #( 2525 *) 2526 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2527 ;; 2528 esac | 2529 sort 2530) 2531 echo 2532 2533 $as_echo "## ----------------- ## 2534## Output variables. ## 2535## ----------------- ##" 2536 echo 2537 for ac_var in $ac_subst_vars 2538 do 2539 eval ac_val=\$$ac_var 2540 case $ac_val in 2541 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2542 esac 2543 $as_echo "$ac_var='\''$ac_val'\''" 2544 done | sort 2545 echo 2546 2547 if test -n "$ac_subst_files"; then 2548 $as_echo "## ------------------- ## 2549## File substitutions. ## 2550## ------------------- ##" 2551 echo 2552 for ac_var in $ac_subst_files 2553 do 2554 eval ac_val=\$$ac_var 2555 case $ac_val in 2556 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2557 esac 2558 $as_echo "$ac_var='\''$ac_val'\''" 2559 done | sort 2560 echo 2561 fi 2562 2563 if test -s confdefs.h; then 2564 $as_echo "## ----------- ## 2565## confdefs.h. ## 2566## ----------- ##" 2567 echo 2568 cat confdefs.h 2569 echo 2570 fi 2571 test "$ac_signal" != 0 && 2572 $as_echo "$as_me: caught signal $ac_signal" 2573 $as_echo "$as_me: exit $exit_status" 2574 } >&5 2575 rm -f core *.core core.conftest.* && 2576 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2577 exit $exit_status 2578' 0 2579for ac_signal in 1 2 13 15; do 2580 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2581done 2582ac_signal=0 2583 2584# confdefs.h avoids OS command line length limits that DEFS can exceed. 2585rm -f -r conftest* confdefs.h 2586 2587$as_echo "/* confdefs.h */" > confdefs.h 2588 2589# Predefined preprocessor variables. 2590 2591cat >>confdefs.h <<_ACEOF 2592#define PACKAGE_NAME "$PACKAGE_NAME" 2593_ACEOF 2594 2595cat >>confdefs.h <<_ACEOF 2596#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2597_ACEOF 2598 2599cat >>confdefs.h <<_ACEOF 2600#define PACKAGE_VERSION "$PACKAGE_VERSION" 2601_ACEOF 2602 2603cat >>confdefs.h <<_ACEOF 2604#define PACKAGE_STRING "$PACKAGE_STRING" 2605_ACEOF 2606 2607cat >>confdefs.h <<_ACEOF 2608#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2609_ACEOF 2610 2611cat >>confdefs.h <<_ACEOF 2612#define PACKAGE_URL "$PACKAGE_URL" 2613_ACEOF 2614 2615 2616# Let the site file select an alternate cache file if it wants to. 2617# Prefer an explicitly selected file to automatically selected ones. 2618ac_site_file1=NONE 2619ac_site_file2=NONE 2620if test -n "$CONFIG_SITE"; then 2621 # We do not want a PATH search for config.site. 2622 case $CONFIG_SITE in #(( 2623 -*) ac_site_file1=./$CONFIG_SITE;; 2624 */*) ac_site_file1=$CONFIG_SITE;; 2625 *) ac_site_file1=./$CONFIG_SITE;; 2626 esac 2627elif test "x$prefix" != xNONE; then 2628 ac_site_file1=$prefix/share/config.site 2629 ac_site_file2=$prefix/etc/config.site 2630else 2631 ac_site_file1=$ac_default_prefix/share/config.site 2632 ac_site_file2=$ac_default_prefix/etc/config.site 2633fi 2634for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2635do 2636 test "x$ac_site_file" = xNONE && continue 2637 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2639$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2640 sed 's/^/| /' "$ac_site_file" >&5 2641 . "$ac_site_file" \ 2642 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2644as_fn_error $? "failed to load site script $ac_site_file 2645See \`config.log' for more details" "$LINENO" 5; } 2646 fi 2647done 2648 2649if test -r "$cache_file"; then 2650 # Some versions of bash will fail to source /dev/null (special files 2651 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2652 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2653 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2654$as_echo "$as_me: loading cache $cache_file" >&6;} 2655 case $cache_file in 2656 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2657 *) . "./$cache_file";; 2658 esac 2659 fi 2660else 2661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2662$as_echo "$as_me: creating cache $cache_file" >&6;} 2663 >$cache_file 2664fi 2665 2666# Check that the precious variables saved in the cache have kept the same 2667# value. 2668ac_cache_corrupted=false 2669for ac_var in $ac_precious_vars; do 2670 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2671 eval ac_new_set=\$ac_env_${ac_var}_set 2672 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2673 eval ac_new_val=\$ac_env_${ac_var}_value 2674 case $ac_old_set,$ac_new_set in 2675 set,) 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2677$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2678 ac_cache_corrupted=: ;; 2679 ,set) 2680 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2681$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2682 ac_cache_corrupted=: ;; 2683 ,);; 2684 *) 2685 if test "x$ac_old_val" != "x$ac_new_val"; then 2686 # differences in whitespace do not lead to failure. 2687 ac_old_val_w=`echo x $ac_old_val` 2688 ac_new_val_w=`echo x $ac_new_val` 2689 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2691$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2692 ac_cache_corrupted=: 2693 else 2694 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2695$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2696 eval $ac_var=\$ac_old_val 2697 fi 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2699$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2701$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2702 fi;; 2703 esac 2704 # Pass precious variables to config.status. 2705 if test "$ac_new_set" = set; then 2706 case $ac_new_val in 2707 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2708 *) ac_arg=$ac_var=$ac_new_val ;; 2709 esac 2710 case " $ac_configure_args " in 2711 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2712 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2713 esac 2714 fi 2715done 2716if $ac_cache_corrupted; then 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2718$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2719 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2720$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2721 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2722fi 2723## -------------------- ## 2724## Main body of script. ## 2725## -------------------- ## 2726 2727ac_ext=c 2728ac_cpp='$CPP $CPPFLAGS' 2729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2731ac_compiler_gnu=$ac_cv_c_compiler_gnu 2732 2733 2734 2735 2736 2737 2738if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then 2739 # If we're building out-of-tree, we need to make sure the following 2740 # resources get picked up before their $srcdir counterparts. 2741 # Objects/ -> typeslots.inc 2742 # Include/ -> Python-ast.h, graminit.h 2743 # Python/ -> importlib.h 2744 # (A side effect of this is that these resources will automatically be 2745 # regenerated when building out-of-tree, regardless of whether or not 2746 # the $srcdir counterpart is up-to-date. This is an acceptable trade 2747 # off.) 2748 BASECPPFLAGS="-IObjects -IInclude -IPython" 2749else 2750 BASECPPFLAGS="" 2751fi 2752 2753 2754 2755 2756 2757if test -e $srcdir/.git 2758then 2759# Extract the first word of "git", so it can be a program name with args. 2760set dummy git; ac_word=$2 2761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2762$as_echo_n "checking for $ac_word... " >&6; } 2763if ${ac_cv_prog_HAS_GIT+:} false; then : 2764 $as_echo_n "(cached) " >&6 2765else 2766 if test -n "$HAS_GIT"; then 2767 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. 2768else 2769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2770for as_dir in $PATH 2771do 2772 IFS=$as_save_IFS 2773 test -z "$as_dir" && as_dir=. 2774 for ac_exec_ext in '' $ac_executable_extensions; do 2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2776 ac_cv_prog_HAS_GIT="found" 2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2778 break 2 2779 fi 2780done 2781 done 2782IFS=$as_save_IFS 2783 2784 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" 2785fi 2786fi 2787HAS_GIT=$ac_cv_prog_HAS_GIT 2788if test -n "$HAS_GIT"; then 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 2790$as_echo "$HAS_GIT" >&6; } 2791else 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2793$as_echo "no" >&6; } 2794fi 2795 2796 2797else 2798HAS_GIT=no-repository 2799fi 2800if test $HAS_GIT = found 2801then 2802 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" 2803 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" 2804 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" 2805else 2806 GITVERSION="" 2807 GITTAG="" 2808 GITBRANCH="" 2809fi 2810 2811 2812ac_config_headers="$ac_config_headers pyconfig.h" 2813 2814 2815ac_aux_dir= 2816for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2817 if test -f "$ac_dir/install-sh"; then 2818 ac_aux_dir=$ac_dir 2819 ac_install_sh="$ac_aux_dir/install-sh -c" 2820 break 2821 elif test -f "$ac_dir/install.sh"; then 2822 ac_aux_dir=$ac_dir 2823 ac_install_sh="$ac_aux_dir/install.sh -c" 2824 break 2825 elif test -f "$ac_dir/shtool"; then 2826 ac_aux_dir=$ac_dir 2827 ac_install_sh="$ac_aux_dir/shtool install -c" 2828 break 2829 fi 2830done 2831if test -z "$ac_aux_dir"; then 2832 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2833fi 2834 2835# These three variables are undocumented and unsupported, 2836# and are intended to be withdrawn in a future Autoconf release. 2837# They can cause serious problems if a builder's source tree is in a directory 2838# whose full name contains unusual characters. 2839ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2840ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2841ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2842 2843 2844# Make sure we can run config.sub. 2845$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2846 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2847 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2849$as_echo_n "checking build system type... " >&6; } 2850if ${ac_cv_build+:} false; then : 2851 $as_echo_n "(cached) " >&6 2852else 2853 ac_build_alias=$build_alias 2854test "x$ac_build_alias" = x && 2855 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2856test "x$ac_build_alias" = x && 2857 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2858ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2859 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2860 2861fi 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2863$as_echo "$ac_cv_build" >&6; } 2864case $ac_cv_build in 2865*-*-*) ;; 2866*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2867esac 2868build=$ac_cv_build 2869ac_save_IFS=$IFS; IFS='-' 2870set x $ac_cv_build 2871shift 2872build_cpu=$1 2873build_vendor=$2 2874shift; shift 2875# Remember, the first character of IFS is used to create $*, 2876# except with old shells: 2877build_os=$* 2878IFS=$ac_save_IFS 2879case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2880 2881 2882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2883$as_echo_n "checking host system type... " >&6; } 2884if ${ac_cv_host+:} false; then : 2885 $as_echo_n "(cached) " >&6 2886else 2887 if test "x$host_alias" = x; then 2888 ac_cv_host=$ac_cv_build 2889else 2890 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2891 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2892fi 2893 2894fi 2895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2896$as_echo "$ac_cv_host" >&6; } 2897case $ac_cv_host in 2898*-*-*) ;; 2899*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2900esac 2901host=$ac_cv_host 2902ac_save_IFS=$IFS; IFS='-' 2903set x $ac_cv_host 2904shift 2905host_cpu=$1 2906host_vendor=$2 2907shift; shift 2908# Remember, the first character of IFS is used to create $*, 2909# except with old shells: 2910host_os=$* 2911IFS=$ac_save_IFS 2912case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2913 2914 2915 2916 2917 2918# pybuilddir.txt will be created by --generate-posix-vars in the Makefile 2919rm -f pybuilddir.txt 2920 2921for ac_prog in python$PACKAGE_VERSION python3 python 2922do 2923 # Extract the first word of "$ac_prog", so it can be a program name with args. 2924set dummy $ac_prog; ac_word=$2 2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2926$as_echo_n "checking for $ac_word... " >&6; } 2927if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : 2928 $as_echo_n "(cached) " >&6 2929else 2930 if test -n "$PYTHON_FOR_REGEN"; then 2931 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. 2932else 2933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2934for as_dir in $PATH 2935do 2936 IFS=$as_save_IFS 2937 test -z "$as_dir" && as_dir=. 2938 for ac_exec_ext in '' $ac_executable_extensions; do 2939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2940 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" 2941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2942 break 2 2943 fi 2944done 2945 done 2946IFS=$as_save_IFS 2947 2948fi 2949fi 2950PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN 2951if test -n "$PYTHON_FOR_REGEN"; then 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 2953$as_echo "$PYTHON_FOR_REGEN" >&6; } 2954else 2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2956$as_echo "no" >&6; } 2957fi 2958 2959 2960 test -n "$PYTHON_FOR_REGEN" && break 2961done 2962test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" 2963 2964 2965 2966if test "$cross_compiling" = yes; then 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 2968$as_echo_n "checking for python interpreter for cross build... " >&6; } 2969 if test -z "$PYTHON_FOR_BUILD"; then 2970 for interp in python$PACKAGE_VERSION python3 python; do 2971 which $interp >/dev/null 2>&1 || continue 2972 if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then 2973 break 2974 fi 2975 interp= 2976 done 2977 if test x$interp = x; then 2978 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 2979 fi 2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 2981$as_echo "$interp" >&6; } 2982 PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) _PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) '$interp 2983 fi 2984elif test "$cross_compiling" = maybe; then 2985 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 2986else 2987 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' 2988fi 2989 2990 2991 2992if test "$prefix" != "/"; then 2993 prefix=`echo "$prefix" | sed -e 's/\/$//g'` 2994fi 2995 2996 2997 2998 2999# We don't use PACKAGE_ variables, and they cause conflicts 3000# with other autoconf-based packages that include Python.h 3001grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new 3002rm confdefs.h 3003mv confdefs.h.new confdefs.h 3004 3005 3006VERSION=3.9 3007 3008# Version number of Python's own shared library file. 3009 3010SOVERSION=1.0 3011 3012# The later defininition of _XOPEN_SOURCE disables certain features 3013# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). 3014 3015$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3016 3017 3018# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3019# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable 3020# them. 3021 3022$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 3023 3024 3025# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3026# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable 3027# them. 3028 3029$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h 3030 3031 3032# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3033# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable 3034# them. 3035 3036$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3037 3038 3039 3040define_xopen_source=yes 3041 3042# Arguments passed to configure. 3043 3044CONFIG_ARGS="$ac_configure_args" 3045 3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 3047$as_echo_n "checking for --enable-universalsdk... " >&6; } 3048# Check whether --enable-universalsdk was given. 3049if test "${enable_universalsdk+set}" = set; then : 3050 enableval=$enable_universalsdk; 3051 case $enableval in 3052 yes) 3053 # Locate the best usable SDK, see Mac/README for more 3054 # information 3055 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" 3056 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) 3057 then 3058 enableval=/Developer/SDKs/MacOSX10.4u.sdk 3059 if test ! -d "${enableval}" 3060 then 3061 enableval=/ 3062 fi 3063 fi 3064 ;; 3065 esac 3066 case $enableval in 3067 no) 3068 UNIVERSALSDK= 3069 enable_universalsdk= 3070 ;; 3071 *) 3072 UNIVERSALSDK=$enableval 3073 if test ! -d "${UNIVERSALSDK}" 3074 then 3075 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 3076 fi 3077 ;; 3078 esac 3079 3080 3081else 3082 3083 UNIVERSALSDK= 3084 enable_universalsdk= 3085 3086fi 3087 3088if test -n "${UNIVERSALSDK}" 3089then 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 3091$as_echo "${UNIVERSALSDK}" >&6; } 3092else 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3094$as_echo "no" >&6; } 3095fi 3096 3097 3098 3099ARCH_RUN_32BIT="" 3100 3101# For backward compatibility reasons we prefer to select '32-bit' if available, 3102# otherwise use 'intel' 3103UNIVERSAL_ARCHS="32-bit" 3104if test "`uname -s`" = "Darwin" 3105then 3106 if test -n "${UNIVERSALSDK}" 3107 then 3108 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" 3109 then 3110 UNIVERSAL_ARCHS="intel" 3111 fi 3112 fi 3113fi 3114 3115 3116 3117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 3118$as_echo_n "checking for --with-universal-archs... " >&6; } 3119 3120# Check whether --with-universal-archs was given. 3121if test "${with_universal_archs+set}" = set; then : 3122 withval=$with_universal_archs; 3123 UNIVERSAL_ARCHS="$withval" 3124 3125fi 3126 3127if test -n "${UNIVERSALSDK}" 3128then 3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 3130$as_echo "${UNIVERSAL_ARCHS}" >&6; } 3131else 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3133$as_echo "no" >&6; } 3134fi 3135 3136 3137# Check whether --with-framework-name was given. 3138if test "${with_framework_name+set}" = set; then : 3139 withval=$with_framework_name; 3140 PYTHONFRAMEWORK=${withval} 3141 PYTHONFRAMEWORKDIR=${withval}.framework 3142 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` 3143 3144else 3145 3146 PYTHONFRAMEWORK=Python 3147 PYTHONFRAMEWORKDIR=Python.framework 3148 PYTHONFRAMEWORKIDENTIFIER=org.python.python 3149 3150fi 3151 3152# Check whether --enable-framework was given. 3153if test "${enable_framework+set}" = set; then : 3154 enableval=$enable_framework; 3155 case $enableval in 3156 yes) 3157 enableval=/Library/Frameworks 3158 esac 3159 case $enableval in 3160 no) 3161 PYTHONFRAMEWORK= 3162 PYTHONFRAMEWORKDIR=no-framework 3163 PYTHONFRAMEWORKPREFIX= 3164 PYTHONFRAMEWORKINSTALLDIR= 3165 FRAMEWORKINSTALLFIRST= 3166 FRAMEWORKINSTALLLAST= 3167 FRAMEWORKALTINSTALLFIRST= 3168 FRAMEWORKALTINSTALLLAST= 3169 FRAMEWORKPYTHONW= 3170 if test "x${prefix}" = "xNONE"; then 3171 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3172 else 3173 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3174 fi 3175 enable_framework= 3176 ;; 3177 *) 3178 PYTHONFRAMEWORKPREFIX="${enableval}" 3179 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR 3180 FRAMEWORKINSTALLFIRST="frameworkinstallstructure" 3181 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " 3182 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" 3183 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" 3184 FRAMEWORKPYTHONW="frameworkpythonw" 3185 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3186 3187 if test "x${prefix}" = "xNONE" ; then 3188 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3189 3190 else 3191 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3192 fi 3193 3194 case "${enableval}" in 3195 /System*) 3196 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3197 if test "${prefix}" = "NONE" ; then 3198 # See below 3199 FRAMEWORKUNIXTOOLSPREFIX="/usr" 3200 fi 3201 ;; 3202 3203 /Library*) 3204 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3205 ;; 3206 3207 */Library/Frameworks) 3208 MDIR="`dirname "${enableval}"`" 3209 MDIR="`dirname "${MDIR}"`" 3210 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" 3211 3212 if test "${prefix}" = "NONE"; then 3213 # User hasn't specified the 3214 # --prefix option, but wants to install 3215 # the framework in a non-default location, 3216 # ensure that the compatibility links get 3217 # installed relative to that prefix as well 3218 # instead of in /usr/local. 3219 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" 3220 fi 3221 ;; 3222 3223 *) 3224 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3225 ;; 3226 esac 3227 3228 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION 3229 3230 # Add files for Mac specific code to the list of output 3231 # files: 3232 ac_config_files="$ac_config_files Mac/Makefile" 3233 3234 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" 3235 3236 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" 3237 3238 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" 3239 3240 esac 3241 3242else 3243 3244 PYTHONFRAMEWORK= 3245 PYTHONFRAMEWORKDIR=no-framework 3246 PYTHONFRAMEWORKPREFIX= 3247 PYTHONFRAMEWORKINSTALLDIR= 3248 FRAMEWORKINSTALLFIRST= 3249 FRAMEWORKINSTALLLAST= 3250 FRAMEWORKALTINSTALLFIRST= 3251 FRAMEWORKALTINSTALLLAST= 3252 FRAMEWORKPYTHONW= 3253 if test "x${prefix}" = "xNONE" ; then 3254 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3255 else 3256 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3257 fi 3258 enable_framework= 3259 3260 3261fi 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277cat >>confdefs.h <<_ACEOF 3278#define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" 3279_ACEOF 3280 3281 3282##AC_ARG_WITH(dyld, 3283## AS_HELP_STRING([--with-dyld], 3284## [use (OpenStep|Rhapsody) dynamic linker])) 3285## 3286# Set name for machine-dependent library files 3287 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 3289$as_echo_n "checking MACHDEP... " >&6; } 3290if test -z "$MACHDEP" 3291then 3292 # avoid using uname for cross builds 3293 if test "$cross_compiling" = yes; then 3294 # ac_sys_system and ac_sys_release are used for setting 3295 # a lot of different things including 'define_xopen_source' 3296 # in the case statement below. 3297 case "$host" in 3298 *-*-linux-android*) 3299 ac_sys_system=Linux-android 3300 ;; 3301 *-*-linux*) 3302 ac_sys_system=Linux 3303 ;; 3304 *-*-cygwin*) 3305 ac_sys_system=Cygwin 3306 ;; 3307 *-*-vxworks*) 3308 ac_sys_system=VxWorks 3309 ;; 3310 *) 3311 # for now, limit cross builds to known configurations 3312 MACHDEP="unknown" 3313 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3314 esac 3315 ac_sys_release= 3316 else 3317 ac_sys_system=`uname -s` 3318 if test "$ac_sys_system" = "AIX" \ 3319 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then 3320 ac_sys_release=`uname -v` 3321 else 3322 ac_sys_release="6.3-DPORTS" 3323 fi 3324 fi 3325 ac_md_system=`echo $ac_sys_system | 3326 tr -d '/ ' | tr '[A-Z]' '[a-z]'` 3327 ac_md_release=`echo $ac_sys_release | 3328 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` 3329 MACHDEP="$ac_md_system$ac_md_release" 3330 3331 case $MACHDEP in 3332 aix*) MACHDEP="aix";; 3333 linux*) MACHDEP="linux";; 3334 cygwin*) MACHDEP="cygwin";; 3335 darwin*) MACHDEP="darwin";; 3336 '') MACHDEP="unknown";; 3337 esac 3338fi 3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 3340$as_echo "\"$MACHDEP\"" >&6; } 3341 3342 3343if test "$cross_compiling" = yes; then 3344 case "$host" in 3345 *-*-linux*) 3346 case "$host_cpu" in 3347 arm*) 3348 _host_cpu=arm 3349 ;; 3350 *) 3351 _host_cpu=$host_cpu 3352 esac 3353 ;; 3354 *-*-cygwin*) 3355 _host_cpu= 3356 ;; 3357 *-*-vxworks*) 3358 _host_cpu=$host_cpu 3359 ;; 3360 *) 3361 # for now, limit cross builds to known configurations 3362 MACHDEP="unknown" 3363 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3364 esac 3365 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" 3366fi 3367 3368# Some systems cannot stand _XOPEN_SOURCE being defined at all; they 3369# disable features if it is defined, without any means to access these 3370# features as extensions. For these systems, we skip the definition of 3371# _XOPEN_SOURCE. Before adding a system to the list to gain access to 3372# some feature, make sure there is no alternative way to access this 3373# feature. Also, when using wildcards, make sure you have verified the 3374# need for not defining _XOPEN_SOURCE on all systems matching the 3375# wildcard, and that the wildcard does not include future systems 3376# (which may remove their limitations). 3377case $ac_sys_system/$ac_sys_release in 3378 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, 3379 # even though select is a POSIX function. Reported by J. Ribbens. 3380 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. 3381 # In addition, Stefan Krah confirms that issue #1244610 exists through 3382 # OpenBSD 4.6, but is fixed in 4.7. 3383 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) 3384 define_xopen_source=no 3385 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3386 # also defined. This can be overridden by defining _BSD_SOURCE 3387 # As this has a different meaning on Linux, only define it on OpenBSD 3388 3389$as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3390 3391 ;; 3392 OpenBSD/*) 3393 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3394 # also defined. This can be overridden by defining _BSD_SOURCE 3395 # As this has a different meaning on Linux, only define it on OpenBSD 3396 3397$as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3398 3399 ;; 3400 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of 3401 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by 3402 # Marc Recht 3403 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) 3404 define_xopen_source=no;; 3405 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a 3406 # request to enable features supported by the standard as a request 3407 # to disable features not supported by the standard. The best way 3408 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out 3409 # entirely and define __EXTENSIONS__ instead. 3410 SunOS/*) 3411 define_xopen_source=no;; 3412 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, 3413 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. 3414 # Reconfirmed for 7.1.4 by Martin v. Loewis. 3415 OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) 3416 define_xopen_source=no;; 3417 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, 3418 # but used in struct sockaddr.sa_family. Reported by Tim Rice. 3419 SCO_SV/3.2) 3420 define_xopen_source=no;; 3421 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 3422 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which 3423 # identifies itself as Darwin/7.* 3424 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3425 # disables platform specific features beyond repair. 3426 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3427 # has no effect, don't bother defining them 3428 Darwin/[6789].*) 3429 define_xopen_source=no;; 3430 Darwin/[12][0-9].*) 3431 define_xopen_source=no;; 3432 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but 3433 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined 3434 # or has another value. By not (re)defining it, the defaults come in place. 3435 AIX/4) 3436 define_xopen_source=no;; 3437 AIX/5) 3438 if test "6.3-DPORTS" -eq 1; then 3439 define_xopen_source=no 3440 fi 3441 ;; 3442 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from 3443 # defining NI_NUMERICHOST. 3444 QNX/6.3.2) 3445 define_xopen_source=no 3446 ;; 3447 # On VxWorks, defining _XOPEN_SOURCE causes compile failures 3448 # in network headers still using system V types. 3449 VxWorks/*) 3450 define_xopen_source=no 3451 ;; 3452 3453 # On HP-UX, defining _XOPEN_SOURCE to 600 or greater hides 3454 # chroot() and other functions 3455 hp*|HP*) 3456 define_xopen_source=no 3457 ;; 3458 3459esac 3460 3461if test $define_xopen_source = yes 3462then 3463 # X/Open 7, incorporating POSIX.1-2008 3464 3465$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h 3466 3467 3468 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires 3469 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else 3470 # several APIs are not declared. Since this is also needed in some 3471 # cases for HP-UX, we define it globally. 3472 3473$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 3474 3475 3476 3477$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h 3478 3479fi 3480 3481# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE 3482case $ac_sys_system in 3483 hp*|HP*) 3484 define_stdc_a1=yes;; 3485 *) 3486 define_stdc_a1=no;; 3487esac 3488 3489if test $define_stdc_a1 = yes 3490then 3491 3492$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h 3493 3494fi 3495 3496# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, 3497# it may influence the way we can build extensions, so distutils 3498# needs to check it 3499 3500 3501CONFIGURE_MACOSX_DEPLOYMENT_TARGET= 3502EXPORT_MACOSX_DEPLOYMENT_TARGET='#' 3503 3504# checks for alternative programs 3505 3506# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just 3507# for debug/optimization stuff. BASECFLAGS is for flags that are required 3508# just to get things to compile and link. Users are free to override OPT 3509# when running configure or make. The build should not break if they do. 3510# BASECFLAGS should generally not be messed with, however. 3511 3512# If the user switches compilers, we can't believe the cache 3513if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" 3514then 3515 as_fn_error $? "cached CC is different -- throw away $cache_file 3516(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 3517fi 3518 3519# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 3520# when the compiler supports them, but we don't always want -O2, and 3521# we set -g later. 3522if test -z "$CFLAGS"; then 3523 CFLAGS= 3524fi 3525 3526if test "$ac_sys_system" = "Darwin" 3527then 3528 # Compiler selection on MacOSX is more complicated than 3529 # AC_PROG_CC can handle, see Mac/README for more 3530 # information 3531 if test -z "${CC}" 3532 then 3533 found_gcc= 3534 found_clang= 3535 as_save_IFS=$IFS; IFS=: 3536 for as_dir in $PATH 3537 do 3538 IFS=$as_save_IFS 3539 if test -x "${as_dir}/gcc"; then 3540 if test -z "${found_gcc}"; then 3541 found_gcc="${as_dir}/gcc" 3542 fi 3543 fi 3544 if test -x "${as_dir}/clang"; then 3545 if test -z "${found_clang}"; then 3546 found_clang="${as_dir}/clang" 3547 fi 3548 fi 3549 done 3550 IFS=$as_save_IFS 3551 3552 if test -n "$found_gcc" -a -n "$found_clang" 3553 then 3554 if test -n "`"$found_gcc" --version | grep llvm-gcc`" 3555 then 3556 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 3557$as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} 3558 CC="$found_clang" 3559 CXX="$found_clang++" 3560 fi 3561 3562 3563 elif test -z "$found_gcc" -a -n "$found_clang" 3564 then 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 3566$as_echo "$as_me: No GCC found, use CLANG" >&6;} 3567 CC="$found_clang" 3568 CXX="$found_clang++" 3569 3570 elif test -z "$found_gcc" -a -z "$found_clang" 3571 then 3572 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` 3573 if test -n "${found_clang}" 3574 then 3575 { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 3576$as_echo "$as_me: Using clang from Xcode.app" >&6;} 3577 CC="${found_clang}" 3578 CXX="`/usr/bin/xcrun -find clang++`" 3579 3580 # else: use default behaviour 3581 fi 3582 fi 3583 fi 3584fi 3585ac_ext=c 3586ac_cpp='$CPP $CPPFLAGS' 3587ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3588ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3589ac_compiler_gnu=$ac_cv_c_compiler_gnu 3590if test -n "$ac_tool_prefix"; then 3591 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3592set dummy ${ac_tool_prefix}gcc; ac_word=$2 3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3594$as_echo_n "checking for $ac_word... " >&6; } 3595if ${ac_cv_prog_CC+:} false; then : 3596 $as_echo_n "(cached) " >&6 3597else 3598 if test -n "$CC"; then 3599 ac_cv_prog_CC="$CC" # Let the user override the test. 3600else 3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3602for as_dir in $PATH 3603do 3604 IFS=$as_save_IFS 3605 test -z "$as_dir" && as_dir=. 3606 for ac_exec_ext in '' $ac_executable_extensions; do 3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3608 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3610 break 2 3611 fi 3612done 3613 done 3614IFS=$as_save_IFS 3615 3616fi 3617fi 3618CC=$ac_cv_prog_CC 3619if test -n "$CC"; then 3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3621$as_echo "$CC" >&6; } 3622else 3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3624$as_echo "no" >&6; } 3625fi 3626 3627 3628fi 3629if test -z "$ac_cv_prog_CC"; then 3630 ac_ct_CC=$CC 3631 # Extract the first word of "gcc", so it can be a program name with args. 3632set dummy gcc; ac_word=$2 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3634$as_echo_n "checking for $ac_word... " >&6; } 3635if ${ac_cv_prog_ac_ct_CC+:} false; then : 3636 $as_echo_n "(cached) " >&6 3637else 3638 if test -n "$ac_ct_CC"; then 3639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3640else 3641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3642for as_dir in $PATH 3643do 3644 IFS=$as_save_IFS 3645 test -z "$as_dir" && as_dir=. 3646 for ac_exec_ext in '' $ac_executable_extensions; do 3647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3648 ac_cv_prog_ac_ct_CC="gcc" 3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3650 break 2 3651 fi 3652done 3653 done 3654IFS=$as_save_IFS 3655 3656fi 3657fi 3658ac_ct_CC=$ac_cv_prog_ac_ct_CC 3659if test -n "$ac_ct_CC"; then 3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3661$as_echo "$ac_ct_CC" >&6; } 3662else 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3664$as_echo "no" >&6; } 3665fi 3666 3667 if test "x$ac_ct_CC" = x; then 3668 CC="" 3669 else 3670 case $cross_compiling:$ac_tool_warned in 3671yes:) 3672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3674ac_tool_warned=yes ;; 3675esac 3676 CC=$ac_ct_CC 3677 fi 3678else 3679 CC="$ac_cv_prog_CC" 3680fi 3681 3682if test -z "$CC"; then 3683 if test -n "$ac_tool_prefix"; then 3684 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3685set dummy ${ac_tool_prefix}cc; ac_word=$2 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3687$as_echo_n "checking for $ac_word... " >&6; } 3688if ${ac_cv_prog_CC+:} false; then : 3689 $as_echo_n "(cached) " >&6 3690else 3691 if test -n "$CC"; then 3692 ac_cv_prog_CC="$CC" # Let the user override the test. 3693else 3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3695for as_dir in $PATH 3696do 3697 IFS=$as_save_IFS 3698 test -z "$as_dir" && as_dir=. 3699 for ac_exec_ext in '' $ac_executable_extensions; do 3700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3701 ac_cv_prog_CC="${ac_tool_prefix}cc" 3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3703 break 2 3704 fi 3705done 3706 done 3707IFS=$as_save_IFS 3708 3709fi 3710fi 3711CC=$ac_cv_prog_CC 3712if test -n "$CC"; then 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3714$as_echo "$CC" >&6; } 3715else 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3717$as_echo "no" >&6; } 3718fi 3719 3720 3721 fi 3722fi 3723if test -z "$CC"; then 3724 # Extract the first word of "cc", so it can be a program name with args. 3725set dummy cc; ac_word=$2 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3727$as_echo_n "checking for $ac_word... " >&6; } 3728if ${ac_cv_prog_CC+:} false; then : 3729 $as_echo_n "(cached) " >&6 3730else 3731 if test -n "$CC"; then 3732 ac_cv_prog_CC="$CC" # Let the user override the test. 3733else 3734 ac_prog_rejected=no 3735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3736for as_dir in $PATH 3737do 3738 IFS=$as_save_IFS 3739 test -z "$as_dir" && as_dir=. 3740 for ac_exec_ext in '' $ac_executable_extensions; do 3741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3742 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3743 ac_prog_rejected=yes 3744 continue 3745 fi 3746 ac_cv_prog_CC="cc" 3747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3748 break 2 3749 fi 3750done 3751 done 3752IFS=$as_save_IFS 3753 3754if test $ac_prog_rejected = yes; then 3755 # We found a bogon in the path, so make sure we never use it. 3756 set dummy $ac_cv_prog_CC 3757 shift 3758 if test $# != 0; then 3759 # We chose a different compiler from the bogus one. 3760 # However, it has the same basename, so the bogon will be chosen 3761 # first if we set CC to just the basename; use the full file name. 3762 shift 3763 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3764 fi 3765fi 3766fi 3767fi 3768CC=$ac_cv_prog_CC 3769if test -n "$CC"; then 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3771$as_echo "$CC" >&6; } 3772else 3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3774$as_echo "no" >&6; } 3775fi 3776 3777 3778fi 3779if test -z "$CC"; then 3780 if test -n "$ac_tool_prefix"; then 3781 for ac_prog in cl.exe 3782 do 3783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3784set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3786$as_echo_n "checking for $ac_word... " >&6; } 3787if ${ac_cv_prog_CC+:} false; then : 3788 $as_echo_n "(cached) " >&6 3789else 3790 if test -n "$CC"; then 3791 ac_cv_prog_CC="$CC" # Let the user override the test. 3792else 3793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3794for as_dir in $PATH 3795do 3796 IFS=$as_save_IFS 3797 test -z "$as_dir" && as_dir=. 3798 for ac_exec_ext in '' $ac_executable_extensions; do 3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3800 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3802 break 2 3803 fi 3804done 3805 done 3806IFS=$as_save_IFS 3807 3808fi 3809fi 3810CC=$ac_cv_prog_CC 3811if test -n "$CC"; then 3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3813$as_echo "$CC" >&6; } 3814else 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3816$as_echo "no" >&6; } 3817fi 3818 3819 3820 test -n "$CC" && break 3821 done 3822fi 3823if test -z "$CC"; then 3824 ac_ct_CC=$CC 3825 for ac_prog in cl.exe 3826do 3827 # Extract the first word of "$ac_prog", so it can be a program name with args. 3828set dummy $ac_prog; ac_word=$2 3829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3830$as_echo_n "checking for $ac_word... " >&6; } 3831if ${ac_cv_prog_ac_ct_CC+:} false; then : 3832 $as_echo_n "(cached) " >&6 3833else 3834 if test -n "$ac_ct_CC"; then 3835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3836else 3837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3838for as_dir in $PATH 3839do 3840 IFS=$as_save_IFS 3841 test -z "$as_dir" && as_dir=. 3842 for ac_exec_ext in '' $ac_executable_extensions; do 3843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3844 ac_cv_prog_ac_ct_CC="$ac_prog" 3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3846 break 2 3847 fi 3848done 3849 done 3850IFS=$as_save_IFS 3851 3852fi 3853fi 3854ac_ct_CC=$ac_cv_prog_ac_ct_CC 3855if test -n "$ac_ct_CC"; then 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3857$as_echo "$ac_ct_CC" >&6; } 3858else 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3860$as_echo "no" >&6; } 3861fi 3862 3863 3864 test -n "$ac_ct_CC" && break 3865done 3866 3867 if test "x$ac_ct_CC" = x; then 3868 CC="" 3869 else 3870 case $cross_compiling:$ac_tool_warned in 3871yes:) 3872{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3873$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3874ac_tool_warned=yes ;; 3875esac 3876 CC=$ac_ct_CC 3877 fi 3878fi 3879 3880fi 3881 3882 3883test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3885as_fn_error $? "no acceptable C compiler found in \$PATH 3886See \`config.log' for more details" "$LINENO" 5; } 3887 3888# Provide some information about the compiler. 3889$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3890set X $ac_compile 3891ac_compiler=$2 3892for ac_option in --version -v -V -qversion; do 3893 { { ac_try="$ac_compiler $ac_option >&5" 3894case "(($ac_try" in 3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3896 *) ac_try_echo=$ac_try;; 3897esac 3898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3899$as_echo "$ac_try_echo"; } >&5 3900 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3901 ac_status=$? 3902 if test -s conftest.err; then 3903 sed '10a\ 3904... rest of stderr output deleted ... 3905 10q' conftest.err >conftest.er1 3906 cat conftest.er1 >&5 3907 fi 3908 rm -f conftest.er1 conftest.err 3909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3910 test $ac_status = 0; } 3911done 3912 3913cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3914/* end confdefs.h. */ 3915 3916int 3917main () 3918{ 3919 3920 ; 3921 return 0; 3922} 3923_ACEOF 3924ac_clean_files_save=$ac_clean_files 3925ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3926# Try to create an executable without -o first, disregard a.out. 3927# It will help us diagnose broken compilers, and finding out an intuition 3928# of exeext. 3929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3930$as_echo_n "checking whether the C compiler works... " >&6; } 3931ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3932 3933# The possible output files: 3934ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3935 3936ac_rmfiles= 3937for ac_file in $ac_files 3938do 3939 case $ac_file in 3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3941 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3942 esac 3943done 3944rm -f $ac_rmfiles 3945 3946if { { ac_try="$ac_link_default" 3947case "(($ac_try" in 3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3949 *) ac_try_echo=$ac_try;; 3950esac 3951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3952$as_echo "$ac_try_echo"; } >&5 3953 (eval "$ac_link_default") 2>&5 3954 ac_status=$? 3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3956 test $ac_status = 0; }; then : 3957 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3958# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3959# in a Makefile. We should not override ac_cv_exeext if it was cached, 3960# so that the user can short-circuit this test for compilers unknown to 3961# Autoconf. 3962for ac_file in $ac_files '' 3963do 3964 test -f "$ac_file" || continue 3965 case $ac_file in 3966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3967 ;; 3968 [ab].out ) 3969 # We found the default executable, but exeext='' is most 3970 # certainly right. 3971 break;; 3972 *.* ) 3973 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3974 then :; else 3975 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3976 fi 3977 # We set ac_cv_exeext here because the later test for it is not 3978 # safe: cross compilers may not add the suffix if given an `-o' 3979 # argument, so we may need to know it at that point already. 3980 # Even if this section looks crufty: it has the advantage of 3981 # actually working. 3982 break;; 3983 * ) 3984 break;; 3985 esac 3986done 3987test "$ac_cv_exeext" = no && ac_cv_exeext= 3988 3989else 3990 ac_file='' 3991fi 3992if test -z "$ac_file"; then : 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3994$as_echo "no" >&6; } 3995$as_echo "$as_me: failed program was:" >&5 3996sed 's/^/| /' conftest.$ac_ext >&5 3997 3998{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4000as_fn_error 77 "C compiler cannot create executables 4001See \`config.log' for more details" "$LINENO" 5; } 4002else 4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4004$as_echo "yes" >&6; } 4005fi 4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4007$as_echo_n "checking for C compiler default output file name... " >&6; } 4008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4009$as_echo "$ac_file" >&6; } 4010ac_exeext=$ac_cv_exeext 4011 4012rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4013ac_clean_files=$ac_clean_files_save 4014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4015$as_echo_n "checking for suffix of executables... " >&6; } 4016if { { ac_try="$ac_link" 4017case "(($ac_try" in 4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4019 *) ac_try_echo=$ac_try;; 4020esac 4021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4022$as_echo "$ac_try_echo"; } >&5 4023 (eval "$ac_link") 2>&5 4024 ac_status=$? 4025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4026 test $ac_status = 0; }; then : 4027 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4028# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4029# work properly (i.e., refer to `conftest.exe'), while it won't with 4030# `rm'. 4031for ac_file in conftest.exe conftest conftest.*; do 4032 test -f "$ac_file" || continue 4033 case $ac_file in 4034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4035 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4036 break;; 4037 * ) break;; 4038 esac 4039done 4040else 4041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4042$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4043as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4044See \`config.log' for more details" "$LINENO" 5; } 4045fi 4046rm -f conftest conftest$ac_cv_exeext 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4048$as_echo "$ac_cv_exeext" >&6; } 4049 4050rm -f conftest.$ac_ext 4051EXEEXT=$ac_cv_exeext 4052ac_exeext=$EXEEXT 4053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4054/* end confdefs.h. */ 4055#include <stdio.h> 4056int 4057main () 4058{ 4059FILE *f = fopen ("conftest.out", "w"); 4060 return ferror (f) || fclose (f) != 0; 4061 4062 ; 4063 return 0; 4064} 4065_ACEOF 4066ac_clean_files="$ac_clean_files conftest.out" 4067# Check that the compiler produces executables we can run. If not, either 4068# the compiler is broken, or we cross compile. 4069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4070$as_echo_n "checking whether we are cross compiling... " >&6; } 4071if test "$cross_compiling" != yes; then 4072 { { ac_try="$ac_link" 4073case "(($ac_try" in 4074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4075 *) ac_try_echo=$ac_try;; 4076esac 4077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4078$as_echo "$ac_try_echo"; } >&5 4079 (eval "$ac_link") 2>&5 4080 ac_status=$? 4081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4082 test $ac_status = 0; } 4083 if { ac_try='./conftest$ac_cv_exeext' 4084 { { case "(($ac_try" in 4085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4086 *) ac_try_echo=$ac_try;; 4087esac 4088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4089$as_echo "$ac_try_echo"; } >&5 4090 (eval "$ac_try") 2>&5 4091 ac_status=$? 4092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4093 test $ac_status = 0; }; }; then 4094 cross_compiling=no 4095 else 4096 if test "$cross_compiling" = maybe; then 4097 cross_compiling=yes 4098 else 4099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4101as_fn_error $? "cannot run C compiled programs. 4102If you meant to cross compile, use \`--host'. 4103See \`config.log' for more details" "$LINENO" 5; } 4104 fi 4105 fi 4106fi 4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4108$as_echo "$cross_compiling" >&6; } 4109 4110rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4111ac_clean_files=$ac_clean_files_save 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4113$as_echo_n "checking for suffix of object files... " >&6; } 4114if ${ac_cv_objext+:} false; then : 4115 $as_echo_n "(cached) " >&6 4116else 4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4118/* end confdefs.h. */ 4119 4120int 4121main () 4122{ 4123 4124 ; 4125 return 0; 4126} 4127_ACEOF 4128rm -f conftest.o conftest.obj 4129if { { ac_try="$ac_compile" 4130case "(($ac_try" in 4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4132 *) ac_try_echo=$ac_try;; 4133esac 4134eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4135$as_echo "$ac_try_echo"; } >&5 4136 (eval "$ac_compile") 2>&5 4137 ac_status=$? 4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4139 test $ac_status = 0; }; then : 4140 for ac_file in conftest.o conftest.obj conftest.*; do 4141 test -f "$ac_file" || continue; 4142 case $ac_file in 4143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4145 break;; 4146 esac 4147done 4148else 4149 $as_echo "$as_me: failed program was:" >&5 4150sed 's/^/| /' conftest.$ac_ext >&5 4151 4152{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4153$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4154as_fn_error $? "cannot compute suffix of object files: cannot compile 4155See \`config.log' for more details" "$LINENO" 5; } 4156fi 4157rm -f conftest.$ac_cv_objext conftest.$ac_ext 4158fi 4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4160$as_echo "$ac_cv_objext" >&6; } 4161OBJEXT=$ac_cv_objext 4162ac_objext=$OBJEXT 4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4164$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4165if ${ac_cv_c_compiler_gnu+:} false; then : 4166 $as_echo_n "(cached) " >&6 4167else 4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4169/* end confdefs.h. */ 4170 4171int 4172main () 4173{ 4174#ifndef __GNUC__ 4175 choke me 4176#endif 4177 4178 ; 4179 return 0; 4180} 4181_ACEOF 4182if ac_fn_c_try_compile "$LINENO"; then : 4183 ac_compiler_gnu=yes 4184else 4185 ac_compiler_gnu=no 4186fi 4187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4188ac_cv_c_compiler_gnu=$ac_compiler_gnu 4189 4190fi 4191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4192$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4193if test $ac_compiler_gnu = yes; then 4194 GCC=yes 4195else 4196 GCC= 4197fi 4198ac_test_CFLAGS=${CFLAGS+set} 4199ac_save_CFLAGS=$CFLAGS 4200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4201$as_echo_n "checking whether $CC accepts -g... " >&6; } 4202if ${ac_cv_prog_cc_g+:} false; then : 4203 $as_echo_n "(cached) " >&6 4204else 4205 ac_save_c_werror_flag=$ac_c_werror_flag 4206 ac_c_werror_flag=yes 4207 ac_cv_prog_cc_g=no 4208 CFLAGS="-g" 4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4210/* end confdefs.h. */ 4211 4212int 4213main () 4214{ 4215 4216 ; 4217 return 0; 4218} 4219_ACEOF 4220if ac_fn_c_try_compile "$LINENO"; then : 4221 ac_cv_prog_cc_g=yes 4222else 4223 CFLAGS="" 4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4225/* end confdefs.h. */ 4226 4227int 4228main () 4229{ 4230 4231 ; 4232 return 0; 4233} 4234_ACEOF 4235if ac_fn_c_try_compile "$LINENO"; then : 4236 4237else 4238 ac_c_werror_flag=$ac_save_c_werror_flag 4239 CFLAGS="-g" 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241/* end confdefs.h. */ 4242 4243int 4244main () 4245{ 4246 4247 ; 4248 return 0; 4249} 4250_ACEOF 4251if ac_fn_c_try_compile "$LINENO"; then : 4252 ac_cv_prog_cc_g=yes 4253fi 4254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4255fi 4256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4257fi 4258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4259 ac_c_werror_flag=$ac_save_c_werror_flag 4260fi 4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4262$as_echo "$ac_cv_prog_cc_g" >&6; } 4263if test "$ac_test_CFLAGS" = set; then 4264 CFLAGS=$ac_save_CFLAGS 4265elif test $ac_cv_prog_cc_g = yes; then 4266 if test "$GCC" = yes; then 4267 CFLAGS="-g -O2" 4268 else 4269 CFLAGS="-g" 4270 fi 4271else 4272 if test "$GCC" = yes; then 4273 CFLAGS="-O2" 4274 else 4275 CFLAGS= 4276 fi 4277fi 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4279$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4280if ${ac_cv_prog_cc_c89+:} false; then : 4281 $as_echo_n "(cached) " >&6 4282else 4283 ac_cv_prog_cc_c89=no 4284ac_save_CC=$CC 4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287#include <stdarg.h> 4288#include <stdio.h> 4289struct stat; 4290/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4291struct buf { int x; }; 4292FILE * (*rcsopen) (struct buf *, struct stat *, int); 4293static char *e (p, i) 4294 char **p; 4295 int i; 4296{ 4297 return p[i]; 4298} 4299static char *f (char * (*g) (char **, int), char **p, ...) 4300{ 4301 char *s; 4302 va_list v; 4303 va_start (v,p); 4304 s = g (p, va_arg (v,int)); 4305 va_end (v); 4306 return s; 4307} 4308 4309/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4310 function prototypes and stuff, but not '\xHH' hex character constants. 4311 These don't provoke an error unfortunately, instead are silently treated 4312 as 'x'. The following induces an error, until -std is added to get 4313 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4314 array size at least. It's necessary to write '\x00'==0 to get something 4315 that's true only with -std. */ 4316int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4317 4318/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4319 inside strings and character constants. */ 4320#define FOO(x) 'x' 4321int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4322 4323int test (int i, double x); 4324struct s1 {int (*f) (int a);}; 4325struct s2 {int (*f) (double a);}; 4326int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4327int argc; 4328char **argv; 4329int 4330main () 4331{ 4332return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4333 ; 4334 return 0; 4335} 4336_ACEOF 4337for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4338 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4339do 4340 CC="$ac_save_CC $ac_arg" 4341 if ac_fn_c_try_compile "$LINENO"; then : 4342 ac_cv_prog_cc_c89=$ac_arg 4343fi 4344rm -f core conftest.err conftest.$ac_objext 4345 test "x$ac_cv_prog_cc_c89" != "xno" && break 4346done 4347rm -f conftest.$ac_ext 4348CC=$ac_save_CC 4349 4350fi 4351# AC_CACHE_VAL 4352case "x$ac_cv_prog_cc_c89" in 4353 x) 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4355$as_echo "none needed" >&6; } ;; 4356 xno) 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4358$as_echo "unsupported" >&6; } ;; 4359 *) 4360 CC="$CC $ac_cv_prog_cc_c89" 4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4362$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4363esac 4364if test "x$ac_cv_prog_cc_c89" != xno; then : 4365 4366fi 4367 4368ac_ext=c 4369ac_cpp='$CPP $CPPFLAGS' 4370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4372ac_compiler_gnu=$ac_cv_c_compiler_gnu 4373 4374ac_ext=c 4375ac_cpp='$CPP $CPPFLAGS' 4376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4378ac_compiler_gnu=$ac_cv_c_compiler_gnu 4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4380$as_echo_n "checking how to run the C preprocessor... " >&6; } 4381# On Suns, sometimes $CPP names a directory. 4382if test -n "$CPP" && test -d "$CPP"; then 4383 CPP= 4384fi 4385if test -z "$CPP"; then 4386 if ${ac_cv_prog_CPP+:} false; then : 4387 $as_echo_n "(cached) " >&6 4388else 4389 # Double quotes because CPP needs to be expanded 4390 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4391 do 4392 ac_preproc_ok=false 4393for ac_c_preproc_warn_flag in '' yes 4394do 4395 # Use a header file that comes with gcc, so configuring glibc 4396 # with a fresh cross-compiler works. 4397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4398 # <limits.h> exists even on freestanding compilers. 4399 # On the NeXT, cc -E runs the code through the compiler's parser, 4400 # not just through cpp. "Syntax error" is here to catch this case. 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402/* end confdefs.h. */ 4403#ifdef __STDC__ 4404# include <limits.h> 4405#else 4406# include <assert.h> 4407#endif 4408 Syntax error 4409_ACEOF 4410if ac_fn_c_try_cpp "$LINENO"; then : 4411 4412else 4413 # Broken: fails on valid input. 4414continue 4415fi 4416rm -f conftest.err conftest.i conftest.$ac_ext 4417 4418 # OK, works on sane cases. Now check whether nonexistent headers 4419 # can be detected and how. 4420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4421/* end confdefs.h. */ 4422#include <ac_nonexistent.h> 4423_ACEOF 4424if ac_fn_c_try_cpp "$LINENO"; then : 4425 # Broken: success on invalid input. 4426continue 4427else 4428 # Passes both tests. 4429ac_preproc_ok=: 4430break 4431fi 4432rm -f conftest.err conftest.i conftest.$ac_ext 4433 4434done 4435# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4436rm -f conftest.i conftest.err conftest.$ac_ext 4437if $ac_preproc_ok; then : 4438 break 4439fi 4440 4441 done 4442 ac_cv_prog_CPP=$CPP 4443 4444fi 4445 CPP=$ac_cv_prog_CPP 4446else 4447 ac_cv_prog_CPP=$CPP 4448fi 4449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4450$as_echo "$CPP" >&6; } 4451ac_preproc_ok=false 4452for ac_c_preproc_warn_flag in '' yes 4453do 4454 # Use a header file that comes with gcc, so configuring glibc 4455 # with a fresh cross-compiler works. 4456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4457 # <limits.h> exists even on freestanding compilers. 4458 # On the NeXT, cc -E runs the code through the compiler's parser, 4459 # not just through cpp. "Syntax error" is here to catch this case. 4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4461/* end confdefs.h. */ 4462#ifdef __STDC__ 4463# include <limits.h> 4464#else 4465# include <assert.h> 4466#endif 4467 Syntax error 4468_ACEOF 4469if ac_fn_c_try_cpp "$LINENO"; then : 4470 4471else 4472 # Broken: fails on valid input. 4473continue 4474fi 4475rm -f conftest.err conftest.i conftest.$ac_ext 4476 4477 # OK, works on sane cases. Now check whether nonexistent headers 4478 # can be detected and how. 4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4480/* end confdefs.h. */ 4481#include <ac_nonexistent.h> 4482_ACEOF 4483if ac_fn_c_try_cpp "$LINENO"; then : 4484 # Broken: success on invalid input. 4485continue 4486else 4487 # Passes both tests. 4488ac_preproc_ok=: 4489break 4490fi 4491rm -f conftest.err conftest.i conftest.$ac_ext 4492 4493done 4494# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4495rm -f conftest.i conftest.err conftest.$ac_ext 4496if $ac_preproc_ok; then : 4497 4498else 4499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4501as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4502See \`config.log' for more details" "$LINENO" 5; } 4503fi 4504 4505ac_ext=c 4506ac_cpp='$CPP $CPPFLAGS' 4507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4509ac_compiler_gnu=$ac_cv_c_compiler_gnu 4510 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4512$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4513if ${ac_cv_path_GREP+:} false; then : 4514 $as_echo_n "(cached) " >&6 4515else 4516 if test -z "$GREP"; then 4517 ac_path_GREP_found=false 4518 # Loop through the user's path and test for each of PROGNAME-LIST 4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4520for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4521do 4522 IFS=$as_save_IFS 4523 test -z "$as_dir" && as_dir=. 4524 for ac_prog in grep ggrep; do 4525 for ac_exec_ext in '' $ac_executable_extensions; do 4526 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4527 as_fn_executable_p "$ac_path_GREP" || continue 4528# Check for GNU ac_path_GREP and select it if it is found. 4529 # Check for GNU $ac_path_GREP 4530case `"$ac_path_GREP" --version 2>&1` in 4531*GNU*) 4532 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4533*) 4534 ac_count=0 4535 $as_echo_n 0123456789 >"conftest.in" 4536 while : 4537 do 4538 cat "conftest.in" "conftest.in" >"conftest.tmp" 4539 mv "conftest.tmp" "conftest.in" 4540 cp "conftest.in" "conftest.nl" 4541 $as_echo 'GREP' >> "conftest.nl" 4542 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4543 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4544 as_fn_arith $ac_count + 1 && ac_count=$as_val 4545 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4546 # Best one so far, save it but keep looking for a better one 4547 ac_cv_path_GREP="$ac_path_GREP" 4548 ac_path_GREP_max=$ac_count 4549 fi 4550 # 10*(2^10) chars as input seems more than enough 4551 test $ac_count -gt 10 && break 4552 done 4553 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4554esac 4555 4556 $ac_path_GREP_found && break 3 4557 done 4558 done 4559 done 4560IFS=$as_save_IFS 4561 if test -z "$ac_cv_path_GREP"; then 4562 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4563 fi 4564else 4565 ac_cv_path_GREP=$GREP 4566fi 4567 4568fi 4569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4570$as_echo "$ac_cv_path_GREP" >&6; } 4571 GREP="$ac_cv_path_GREP" 4572 4573 4574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4575$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4576if ${ac_cv_path_SED+:} false; then : 4577 $as_echo_n "(cached) " >&6 4578else 4579 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4580 for ac_i in 1 2 3 4 5 6 7; do 4581 ac_script="$ac_script$as_nl$ac_script" 4582 done 4583 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4584 { ac_script=; unset ac_script;} 4585 if test -z "$SED"; then 4586 ac_path_SED_found=false 4587 # Loop through the user's path and test for each of PROGNAME-LIST 4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4589for as_dir in $PATH 4590do 4591 IFS=$as_save_IFS 4592 test -z "$as_dir" && as_dir=. 4593 for ac_prog in sed gsed; do 4594 for ac_exec_ext in '' $ac_executable_extensions; do 4595 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4596 as_fn_executable_p "$ac_path_SED" || continue 4597# Check for GNU ac_path_SED and select it if it is found. 4598 # Check for GNU $ac_path_SED 4599case `"$ac_path_SED" --version 2>&1` in 4600*GNU*) 4601 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4602*) 4603 ac_count=0 4604 $as_echo_n 0123456789 >"conftest.in" 4605 while : 4606 do 4607 cat "conftest.in" "conftest.in" >"conftest.tmp" 4608 mv "conftest.tmp" "conftest.in" 4609 cp "conftest.in" "conftest.nl" 4610 $as_echo '' >> "conftest.nl" 4611 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4613 as_fn_arith $ac_count + 1 && ac_count=$as_val 4614 if test $ac_count -gt ${ac_path_SED_max-0}; then 4615 # Best one so far, save it but keep looking for a better one 4616 ac_cv_path_SED="$ac_path_SED" 4617 ac_path_SED_max=$ac_count 4618 fi 4619 # 10*(2^10) chars as input seems more than enough 4620 test $ac_count -gt 10 && break 4621 done 4622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4623esac 4624 4625 $ac_path_SED_found && break 3 4626 done 4627 done 4628 done 4629IFS=$as_save_IFS 4630 if test -z "$ac_cv_path_SED"; then 4631 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4632 fi 4633else 4634 ac_cv_path_SED=$SED 4635fi 4636 4637fi 4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4639$as_echo "$ac_cv_path_SED" >&6; } 4640 SED="$ac_cv_path_SED" 4641 rm -f conftest.sed 4642 4643 4644 4645 4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 4647$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } 4648 4649# Check whether --with-cxx_main was given. 4650if test "${with_cxx_main+set}" = set; then : 4651 withval=$with_cxx_main; 4652 4653 case $withval in 4654 no) with_cxx_main=no 4655 MAINCC='$(CC)';; 4656 yes) with_cxx_main=yes 4657 MAINCC='$(CXX)';; 4658 *) with_cxx_main=yes 4659 MAINCC=$withval 4660 if test -z "$CXX" 4661 then 4662 CXX=$withval 4663 fi;; 4664 esac 4665else 4666 4667 with_cxx_main=no 4668 MAINCC='$(CC)' 4669 4670fi 4671 4672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 4673$as_echo "$with_cxx_main" >&6; } 4674 4675preset_cxx="$CXX" 4676if test -z "$CXX" 4677then 4678 case "$CC" in 4679 gcc) if test -n "$ac_tool_prefix"; then 4680 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. 4681set dummy ${ac_tool_prefix}g++; ac_word=$2 4682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4683$as_echo_n "checking for $ac_word... " >&6; } 4684if ${ac_cv_path_CXX+:} false; then : 4685 $as_echo_n "(cached) " >&6 4686else 4687 case $CXX in 4688 [\\/]* | ?:[\\/]*) 4689 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4690 ;; 4691 *) 4692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4693for as_dir in notfound 4694do 4695 IFS=$as_save_IFS 4696 test -z "$as_dir" && as_dir=. 4697 for ac_exec_ext in '' $ac_executable_extensions; do 4698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4699 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4701 break 2 4702 fi 4703done 4704 done 4705IFS=$as_save_IFS 4706 4707 ;; 4708esac 4709fi 4710CXX=$ac_cv_path_CXX 4711if test -n "$CXX"; then 4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4713$as_echo "$CXX" >&6; } 4714else 4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4716$as_echo "no" >&6; } 4717fi 4718 4719 4720fi 4721if test -z "$ac_cv_path_CXX"; then 4722 ac_pt_CXX=$CXX 4723 # Extract the first word of "g++", so it can be a program name with args. 4724set dummy g++; ac_word=$2 4725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4726$as_echo_n "checking for $ac_word... " >&6; } 4727if ${ac_cv_path_ac_pt_CXX+:} false; then : 4728 $as_echo_n "(cached) " >&6 4729else 4730 case $ac_pt_CXX in 4731 [\\/]* | ?:[\\/]*) 4732 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4733 ;; 4734 *) 4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4736for as_dir in notfound 4737do 4738 IFS=$as_save_IFS 4739 test -z "$as_dir" && as_dir=. 4740 for ac_exec_ext in '' $ac_executable_extensions; do 4741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4742 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4744 break 2 4745 fi 4746done 4747 done 4748IFS=$as_save_IFS 4749 4750 ;; 4751esac 4752fi 4753ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4754if test -n "$ac_pt_CXX"; then 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4756$as_echo "$ac_pt_CXX" >&6; } 4757else 4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4759$as_echo "no" >&6; } 4760fi 4761 4762 if test "x$ac_pt_CXX" = x; then 4763 CXX="g++" 4764 else 4765 case $cross_compiling:$ac_tool_warned in 4766yes:) 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4769ac_tool_warned=yes ;; 4770esac 4771 CXX=$ac_pt_CXX 4772 fi 4773else 4774 CXX="$ac_cv_path_CXX" 4775fi 4776 ;; 4777 cc) if test -n "$ac_tool_prefix"; then 4778 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. 4779set dummy ${ac_tool_prefix}c++; ac_word=$2 4780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4781$as_echo_n "checking for $ac_word... " >&6; } 4782if ${ac_cv_path_CXX+:} false; then : 4783 $as_echo_n "(cached) " >&6 4784else 4785 case $CXX in 4786 [\\/]* | ?:[\\/]*) 4787 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4788 ;; 4789 *) 4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4791for as_dir in notfound 4792do 4793 IFS=$as_save_IFS 4794 test -z "$as_dir" && as_dir=. 4795 for ac_exec_ext in '' $ac_executable_extensions; do 4796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4797 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4799 break 2 4800 fi 4801done 4802 done 4803IFS=$as_save_IFS 4804 4805 ;; 4806esac 4807fi 4808CXX=$ac_cv_path_CXX 4809if test -n "$CXX"; then 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4811$as_echo "$CXX" >&6; } 4812else 4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4814$as_echo "no" >&6; } 4815fi 4816 4817 4818fi 4819if test -z "$ac_cv_path_CXX"; then 4820 ac_pt_CXX=$CXX 4821 # Extract the first word of "c++", so it can be a program name with args. 4822set dummy c++; ac_word=$2 4823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4824$as_echo_n "checking for $ac_word... " >&6; } 4825if ${ac_cv_path_ac_pt_CXX+:} false; then : 4826 $as_echo_n "(cached) " >&6 4827else 4828 case $ac_pt_CXX in 4829 [\\/]* | ?:[\\/]*) 4830 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4831 ;; 4832 *) 4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4834for as_dir in notfound 4835do 4836 IFS=$as_save_IFS 4837 test -z "$as_dir" && as_dir=. 4838 for ac_exec_ext in '' $ac_executable_extensions; do 4839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4840 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4842 break 2 4843 fi 4844done 4845 done 4846IFS=$as_save_IFS 4847 4848 ;; 4849esac 4850fi 4851ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4852if test -n "$ac_pt_CXX"; then 4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4854$as_echo "$ac_pt_CXX" >&6; } 4855else 4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4857$as_echo "no" >&6; } 4858fi 4859 4860 if test "x$ac_pt_CXX" = x; then 4861 CXX="c++" 4862 else 4863 case $cross_compiling:$ac_tool_warned in 4864yes:) 4865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4867ac_tool_warned=yes ;; 4868esac 4869 CXX=$ac_pt_CXX 4870 fi 4871else 4872 CXX="$ac_cv_path_CXX" 4873fi 4874 ;; 4875 clang|*/clang) if test -n "$ac_tool_prefix"; then 4876 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. 4877set dummy ${ac_tool_prefix}clang++; ac_word=$2 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4879$as_echo_n "checking for $ac_word... " >&6; } 4880if ${ac_cv_path_CXX+:} false; then : 4881 $as_echo_n "(cached) " >&6 4882else 4883 case $CXX in 4884 [\\/]* | ?:[\\/]*) 4885 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4886 ;; 4887 *) 4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4889for as_dir in notfound 4890do 4891 IFS=$as_save_IFS 4892 test -z "$as_dir" && as_dir=. 4893 for ac_exec_ext in '' $ac_executable_extensions; do 4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4895 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4897 break 2 4898 fi 4899done 4900 done 4901IFS=$as_save_IFS 4902 4903 ;; 4904esac 4905fi 4906CXX=$ac_cv_path_CXX 4907if test -n "$CXX"; then 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4909$as_echo "$CXX" >&6; } 4910else 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4912$as_echo "no" >&6; } 4913fi 4914 4915 4916fi 4917if test -z "$ac_cv_path_CXX"; then 4918 ac_pt_CXX=$CXX 4919 # Extract the first word of "clang++", so it can be a program name with args. 4920set dummy clang++; ac_word=$2 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4922$as_echo_n "checking for $ac_word... " >&6; } 4923if ${ac_cv_path_ac_pt_CXX+:} false; then : 4924 $as_echo_n "(cached) " >&6 4925else 4926 case $ac_pt_CXX in 4927 [\\/]* | ?:[\\/]*) 4928 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4929 ;; 4930 *) 4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4932for as_dir in notfound 4933do 4934 IFS=$as_save_IFS 4935 test -z "$as_dir" && as_dir=. 4936 for ac_exec_ext in '' $ac_executable_extensions; do 4937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4938 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4940 break 2 4941 fi 4942done 4943 done 4944IFS=$as_save_IFS 4945 4946 ;; 4947esac 4948fi 4949ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4950if test -n "$ac_pt_CXX"; then 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4952$as_echo "$ac_pt_CXX" >&6; } 4953else 4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4955$as_echo "no" >&6; } 4956fi 4957 4958 if test "x$ac_pt_CXX" = x; then 4959 CXX="clang++" 4960 else 4961 case $cross_compiling:$ac_tool_warned in 4962yes:) 4963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4965ac_tool_warned=yes ;; 4966esac 4967 CXX=$ac_pt_CXX 4968 fi 4969else 4970 CXX="$ac_cv_path_CXX" 4971fi 4972 ;; 4973 icc|*/icc) if test -n "$ac_tool_prefix"; then 4974 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. 4975set dummy ${ac_tool_prefix}icpc; ac_word=$2 4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4977$as_echo_n "checking for $ac_word... " >&6; } 4978if ${ac_cv_path_CXX+:} false; then : 4979 $as_echo_n "(cached) " >&6 4980else 4981 case $CXX in 4982 [\\/]* | ?:[\\/]*) 4983 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4984 ;; 4985 *) 4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4987for as_dir in notfound 4988do 4989 IFS=$as_save_IFS 4990 test -z "$as_dir" && as_dir=. 4991 for ac_exec_ext in '' $ac_executable_extensions; do 4992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4993 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4995 break 2 4996 fi 4997done 4998 done 4999IFS=$as_save_IFS 5000 5001 ;; 5002esac 5003fi 5004CXX=$ac_cv_path_CXX 5005if test -n "$CXX"; then 5006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5007$as_echo "$CXX" >&6; } 5008else 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5010$as_echo "no" >&6; } 5011fi 5012 5013 5014fi 5015if test -z "$ac_cv_path_CXX"; then 5016 ac_pt_CXX=$CXX 5017 # Extract the first word of "icpc", so it can be a program name with args. 5018set dummy icpc; ac_word=$2 5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5020$as_echo_n "checking for $ac_word... " >&6; } 5021if ${ac_cv_path_ac_pt_CXX+:} false; then : 5022 $as_echo_n "(cached) " >&6 5023else 5024 case $ac_pt_CXX in 5025 [\\/]* | ?:[\\/]*) 5026 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 5027 ;; 5028 *) 5029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5030for as_dir in notfound 5031do 5032 IFS=$as_save_IFS 5033 test -z "$as_dir" && as_dir=. 5034 for ac_exec_ext in '' $ac_executable_extensions; do 5035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5036 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 5037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5038 break 2 5039 fi 5040done 5041 done 5042IFS=$as_save_IFS 5043 5044 ;; 5045esac 5046fi 5047ac_pt_CXX=$ac_cv_path_ac_pt_CXX 5048if test -n "$ac_pt_CXX"; then 5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 5050$as_echo "$ac_pt_CXX" >&6; } 5051else 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5053$as_echo "no" >&6; } 5054fi 5055 5056 if test "x$ac_pt_CXX" = x; then 5057 CXX="icpc" 5058 else 5059 case $cross_compiling:$ac_tool_warned in 5060yes:) 5061{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5062$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5063ac_tool_warned=yes ;; 5064esac 5065 CXX=$ac_pt_CXX 5066 fi 5067else 5068 CXX="$ac_cv_path_CXX" 5069fi 5070 ;; 5071 esac 5072 if test "$CXX" = "notfound" 5073 then 5074 CXX="" 5075 fi 5076fi 5077if test -z "$CXX" 5078then 5079 if test -n "$ac_tool_prefix"; then 5080 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 5081 do 5082 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5083set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5085$as_echo_n "checking for $ac_word... " >&6; } 5086if ${ac_cv_prog_CXX+:} false; then : 5087 $as_echo_n "(cached) " >&6 5088else 5089 if test -n "$CXX"; then 5090 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5091else 5092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5093for as_dir in $PATH 5094do 5095 IFS=$as_save_IFS 5096 test -z "$as_dir" && as_dir=. 5097 for ac_exec_ext in '' $ac_executable_extensions; do 5098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5099 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5101 break 2 5102 fi 5103done 5104 done 5105IFS=$as_save_IFS 5106 5107fi 5108fi 5109CXX=$ac_cv_prog_CXX 5110if test -n "$CXX"; then 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5112$as_echo "$CXX" >&6; } 5113else 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5115$as_echo "no" >&6; } 5116fi 5117 5118 5119 test -n "$CXX" && break 5120 done 5121fi 5122if test -z "$CXX"; then 5123 ac_ct_CXX=$CXX 5124 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 5125do 5126 # Extract the first word of "$ac_prog", so it can be a program name with args. 5127set dummy $ac_prog; ac_word=$2 5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5129$as_echo_n "checking for $ac_word... " >&6; } 5130if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5131 $as_echo_n "(cached) " >&6 5132else 5133 if test -n "$ac_ct_CXX"; then 5134 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5135else 5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5137for as_dir in $PATH 5138do 5139 IFS=$as_save_IFS 5140 test -z "$as_dir" && as_dir=. 5141 for ac_exec_ext in '' $ac_executable_extensions; do 5142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5143 ac_cv_prog_ac_ct_CXX="$ac_prog" 5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5145 break 2 5146 fi 5147done 5148 done 5149IFS=$as_save_IFS 5150 5151fi 5152fi 5153ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5154if test -n "$ac_ct_CXX"; then 5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5156$as_echo "$ac_ct_CXX" >&6; } 5157else 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5159$as_echo "no" >&6; } 5160fi 5161 5162 5163 test -n "$ac_ct_CXX" && break 5164done 5165 5166 if test "x$ac_ct_CXX" = x; then 5167 CXX="notfound" 5168 else 5169 case $cross_compiling:$ac_tool_warned in 5170yes:) 5171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5173ac_tool_warned=yes ;; 5174esac 5175 CXX=$ac_ct_CXX 5176 fi 5177fi 5178 5179 if test "$CXX" = "notfound" 5180 then 5181 CXX="" 5182 fi 5183fi 5184if test "$preset_cxx" != "$CXX" 5185then 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: 5187 5188 By default, distutils will build C++ extension modules with \"$CXX\". 5189 If this is not intended, then set CXX on the configure command line. 5190 " >&5 5191$as_echo "$as_me: 5192 5193 By default, distutils will build C++ extension modules with \"$CXX\". 5194 If this is not intended, then set CXX on the configure command line. 5195 " >&6;} 5196fi 5197 5198 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 5200$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } 5201cat >> conftest.c <<EOF 5202#undef bfin 5203#undef cris 5204#undef fr30 5205#undef linux 5206#undef hppa 5207#undef hpux 5208#undef i386 5209#undef mips 5210#undef powerpc 5211#undef sparc 5212#undef unix 5213#if defined(__ANDROID__) 5214 # Android is not a multiarch system. 5215#elif defined(__linux__) 5216# if defined(__x86_64__) && defined(__LP64__) 5217 x86_64-linux-gnu 5218# elif defined(__x86_64__) && defined(__ILP32__) 5219 x86_64-linux-gnux32 5220# elif defined(__i386__) 5221 i386-linux-gnu 5222# elif defined(__aarch64__) && defined(__AARCH64EL__) 5223# if defined(__ILP32__) 5224 aarch64_ilp32-linux-gnu 5225# else 5226 aarch64-linux-gnu 5227# endif 5228# elif defined(__aarch64__) && defined(__AARCH64EB__) 5229# if defined(__ILP32__) 5230 aarch64_be_ilp32-linux-gnu 5231# else 5232 aarch64_be-linux-gnu 5233# endif 5234# elif defined(__alpha__) 5235 alpha-linux-gnu 5236# elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) 5237# if defined(__ARMEL__) 5238 arm-linux-gnueabihf 5239# else 5240 armeb-linux-gnueabihf 5241# endif 5242# elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) 5243# if defined(__ARMEL__) 5244 arm-linux-gnueabi 5245# else 5246 armeb-linux-gnueabi 5247# endif 5248# elif defined(__hppa__) 5249 hppa-linux-gnu 5250# elif defined(__ia64__) 5251 ia64-linux-gnu 5252# elif defined(__m68k__) && !defined(__mcoldfire__) 5253 m68k-linux-gnu 5254# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) 5255# if _MIPS_SIM == _ABIO32 5256 mipsisa32r6el-linux-gnu 5257# elif _MIPS_SIM == _ABIN32 5258 mipsisa64r6el-linux-gnuabin32 5259# elif _MIPS_SIM == _ABI64 5260 mipsisa64r6el-linux-gnuabi64 5261# else 5262# error unknown platform triplet 5263# endif 5264# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) 5265# if _MIPS_SIM == _ABIO32 5266 mipsisa32r6-linux-gnu 5267# elif _MIPS_SIM == _ABIN32 5268 mipsisa64r6-linux-gnuabin32 5269# elif _MIPS_SIM == _ABI64 5270 mipsisa64r6-linux-gnuabi64 5271# else 5272# error unknown platform triplet 5273# endif 5274# elif defined(__mips_hard_float) && defined(_MIPSEL) 5275# if _MIPS_SIM == _ABIO32 5276 mipsel-linux-gnu 5277# elif _MIPS_SIM == _ABIN32 5278 mips64el-linux-gnuabin32 5279# elif _MIPS_SIM == _ABI64 5280 mips64el-linux-gnuabi64 5281# else 5282# error unknown platform triplet 5283# endif 5284# elif defined(__mips_hard_float) 5285# if _MIPS_SIM == _ABIO32 5286 mips-linux-gnu 5287# elif _MIPS_SIM == _ABIN32 5288 mips64-linux-gnuabin32 5289# elif _MIPS_SIM == _ABI64 5290 mips64-linux-gnuabi64 5291# else 5292# error unknown platform triplet 5293# endif 5294# elif defined(__or1k__) 5295 or1k-linux-gnu 5296# elif defined(__powerpc__) && defined(__SPE__) 5297 powerpc-linux-gnuspe 5298# elif defined(__powerpc64__) 5299# if defined(__LITTLE_ENDIAN__) 5300 powerpc64le-linux-gnu 5301# else 5302 powerpc64-linux-gnu 5303# endif 5304# elif defined(__powerpc__) 5305 powerpc-linux-gnu 5306# elif defined(__s390x__) 5307 s390x-linux-gnu 5308# elif defined(__s390__) 5309 s390-linux-gnu 5310# elif defined(__sh__) && defined(__LITTLE_ENDIAN__) 5311 sh4-linux-gnu 5312# elif defined(__sparc__) && defined(__arch64__) 5313 sparc64-linux-gnu 5314# elif defined(__sparc__) 5315 sparc-linux-gnu 5316# elif defined(__riscv) 5317# if __riscv_xlen == 32 5318 riscv32-linux-gnu 5319# elif __riscv_xlen == 64 5320 riscv64-linux-gnu 5321# else 5322# error unknown platform triplet 5323# endif 5324# else 5325# error unknown platform triplet 5326# endif 5327#elif defined(__FreeBSD_kernel__) 5328# if defined(__LP64__) 5329 x86_64-kfreebsd-gnu 5330# elif defined(__i386__) 5331 i386-kfreebsd-gnu 5332# else 5333# error unknown platform triplet 5334# endif 5335#elif defined(__gnu_hurd__) 5336 i386-gnu 5337#elif defined(__APPLE__) 5338 darwin 5339#elif defined(__VXWORKS__) 5340 vxworks 5341#else 5342# error unknown platform triplet 5343#endif 5344 5345EOF 5346 5347if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 5348 PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` 5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 5350$as_echo "$PLATFORM_TRIPLET" >&6; } 5351else 5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5353$as_echo "none" >&6; } 5354fi 5355rm -f conftest.c conftest.out 5356 5357if test x$PLATFORM_TRIPLET != xdarwin; then 5358 MULTIARCH= 5359fi 5360 5361 5362if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then 5363 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then 5364 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 5365 fi 5366elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then 5367 MULTIARCH=$PLATFORM_TRIPLET 5368fi 5369 5370if test x$MULTIARCH != x; then 5371 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" 5372fi 5373 5374 5375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 5376$as_echo_n "checking for -Wl,--no-as-needed... " >&6; } 5377save_LDFLAGS="$LDFLAGS" 5378LDFLAGS="$LDFLAGS -Wl,--no-as-needed" 5379 5380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5381/* end confdefs.h. */ 5382 5383int 5384main () 5385{ 5386 5387 ; 5388 return 0; 5389} 5390_ACEOF 5391if ac_fn_c_try_link "$LINENO"; then : 5392 NO_AS_NEEDED="-Wl,--no-as-needed" 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5394$as_echo "yes" >&6; } 5395else 5396 NO_AS_NEEDED="" 5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5398$as_echo "no" >&6; } 5399fi 5400rm -f core conftest.err conftest.$ac_objext \ 5401 conftest$ac_exeext conftest.$ac_ext 5402LDFLAGS="$save_LDFLAGS" 5403 5404 5405 5406# checks for UNIX variants that set C preprocessor variables 5407 5408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5409$as_echo_n "checking for egrep... " >&6; } 5410if ${ac_cv_path_EGREP+:} false; then : 5411 $as_echo_n "(cached) " >&6 5412else 5413 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5414 then ac_cv_path_EGREP="$GREP -E" 5415 else 5416 if test -z "$EGREP"; then 5417 ac_path_EGREP_found=false 5418 # Loop through the user's path and test for each of PROGNAME-LIST 5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5420for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5421do 5422 IFS=$as_save_IFS 5423 test -z "$as_dir" && as_dir=. 5424 for ac_prog in egrep; do 5425 for ac_exec_ext in '' $ac_executable_extensions; do 5426 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5427 as_fn_executable_p "$ac_path_EGREP" || continue 5428# Check for GNU ac_path_EGREP and select it if it is found. 5429 # Check for GNU $ac_path_EGREP 5430case `"$ac_path_EGREP" --version 2>&1` in 5431*GNU*) 5432 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5433*) 5434 ac_count=0 5435 $as_echo_n 0123456789 >"conftest.in" 5436 while : 5437 do 5438 cat "conftest.in" "conftest.in" >"conftest.tmp" 5439 mv "conftest.tmp" "conftest.in" 5440 cp "conftest.in" "conftest.nl" 5441 $as_echo 'EGREP' >> "conftest.nl" 5442 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5444 as_fn_arith $ac_count + 1 && ac_count=$as_val 5445 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5446 # Best one so far, save it but keep looking for a better one 5447 ac_cv_path_EGREP="$ac_path_EGREP" 5448 ac_path_EGREP_max=$ac_count 5449 fi 5450 # 10*(2^10) chars as input seems more than enough 5451 test $ac_count -gt 10 && break 5452 done 5453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5454esac 5455 5456 $ac_path_EGREP_found && break 3 5457 done 5458 done 5459 done 5460IFS=$as_save_IFS 5461 if test -z "$ac_cv_path_EGREP"; then 5462 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5463 fi 5464else 5465 ac_cv_path_EGREP=$EGREP 5466fi 5467 5468 fi 5469fi 5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5471$as_echo "$ac_cv_path_EGREP" >&6; } 5472 EGREP="$ac_cv_path_EGREP" 5473 5474 5475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5476$as_echo_n "checking for ANSI C header files... " >&6; } 5477if ${ac_cv_header_stdc+:} false; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481/* end confdefs.h. */ 5482#include <stdlib.h> 5483#include <stdarg.h> 5484#include <string.h> 5485#include <float.h> 5486 5487int 5488main () 5489{ 5490 5491 ; 5492 return 0; 5493} 5494_ACEOF 5495if ac_fn_c_try_compile "$LINENO"; then : 5496 ac_cv_header_stdc=yes 5497else 5498 ac_cv_header_stdc=no 5499fi 5500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5501 5502if test $ac_cv_header_stdc = yes; then 5503 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5505/* end confdefs.h. */ 5506#include <string.h> 5507 5508_ACEOF 5509if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5510 $EGREP "memchr" >/dev/null 2>&1; then : 5511 5512else 5513 ac_cv_header_stdc=no 5514fi 5515rm -f conftest* 5516 5517fi 5518 5519if test $ac_cv_header_stdc = yes; then 5520 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5522/* end confdefs.h. */ 5523#include <stdlib.h> 5524 5525_ACEOF 5526if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5527 $EGREP "free" >/dev/null 2>&1; then : 5528 5529else 5530 ac_cv_header_stdc=no 5531fi 5532rm -f conftest* 5533 5534fi 5535 5536if test $ac_cv_header_stdc = yes; then 5537 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5538 if test "$cross_compiling" = yes; then : 5539 : 5540else 5541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5542/* end confdefs.h. */ 5543#include <ctype.h> 5544#include <stdlib.h> 5545#if ((' ' & 0x0FF) == 0x020) 5546# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5547# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5548#else 5549# define ISLOWER(c) \ 5550 (('a' <= (c) && (c) <= 'i') \ 5551 || ('j' <= (c) && (c) <= 'r') \ 5552 || ('s' <= (c) && (c) <= 'z')) 5553# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5554#endif 5555 5556#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5557int 5558main () 5559{ 5560 int i; 5561 for (i = 0; i < 256; i++) 5562 if (XOR (islower (i), ISLOWER (i)) 5563 || toupper (i) != TOUPPER (i)) 5564 return 2; 5565 return 0; 5566} 5567_ACEOF 5568if ac_fn_c_try_run "$LINENO"; then : 5569 5570else 5571 ac_cv_header_stdc=no 5572fi 5573rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5574 conftest.$ac_objext conftest.beam conftest.$ac_ext 5575fi 5576 5577fi 5578fi 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5580$as_echo "$ac_cv_header_stdc" >&6; } 5581if test $ac_cv_header_stdc = yes; then 5582 5583$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5584 5585fi 5586 5587# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5588for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5589 inttypes.h stdint.h unistd.h 5590do : 5591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5592ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5593" 5594if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5595 cat >>confdefs.h <<_ACEOF 5596#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5597_ACEOF 5598 5599fi 5600 5601done 5602 5603 5604 5605 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5606if test "x$ac_cv_header_minix_config_h" = xyes; then : 5607 MINIX=yes 5608else 5609 MINIX= 5610fi 5611 5612 5613 if test "$MINIX" = yes; then 5614 5615$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5616 5617 5618$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5619 5620 5621$as_echo "#define _MINIX 1" >>confdefs.h 5622 5623 fi 5624 5625 5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5627$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5628if ${ac_cv_safe_to_define___extensions__+:} false; then : 5629 $as_echo_n "(cached) " >&6 5630else 5631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5632/* end confdefs.h. */ 5633 5634# define __EXTENSIONS__ 1 5635 $ac_includes_default 5636int 5637main () 5638{ 5639 5640 ; 5641 return 0; 5642} 5643_ACEOF 5644if ac_fn_c_try_compile "$LINENO"; then : 5645 ac_cv_safe_to_define___extensions__=yes 5646else 5647 ac_cv_safe_to_define___extensions__=no 5648fi 5649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5650fi 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5652$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5653 test $ac_cv_safe_to_define___extensions__ = yes && 5654 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5655 5656 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5657 5658 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5659 5660 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5661 5662 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5663 5664 5665 5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 5667$as_echo_n "checking for the Android API level... " >&6; } 5668cat >> conftest.c <<EOF 5669#ifdef __ANDROID__ 5670android_api = __ANDROID_API__ 5671arm_arch = __ARM_ARCH 5672#else 5673#error not Android 5674#endif 5675EOF 5676 5677if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 5678 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` 5679 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 5681$as_echo "$ANDROID_API_LEVEL" >&6; } 5682 if test -z "$ANDROID_API_LEVEL"; then 5683 echo 'Fatal: you must define __ANDROID_API__' 5684 exit 1 5685 fi 5686 5687cat >>confdefs.h <<_ACEOF 5688#define ANDROID_API_LEVEL $ANDROID_API_LEVEL 5689_ACEOF 5690 5691 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 5693$as_echo_n "checking for the Android arm ABI... " >&6; } 5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 5695$as_echo "$_arm_arch" >&6; } 5696 if test "$_arm_arch" = 7; then 5697 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" 5698 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" 5699 fi 5700else 5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 5702$as_echo "not Android" >&6; } 5703fi 5704rm -f conftest.c conftest.out 5705 5706# Check for unsupported systems 5707case $ac_sys_system/$ac_sys_release in 5708atheos*|Linux*/1*) 5709 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. 5710 echo See README for details. 5711 exit 1;; 5712esac 5713 5714 5715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 5716$as_echo_n "checking for --with-suffix... " >&6; } 5717 5718# Check whether --with-suffix was given. 5719if test "${with_suffix+set}" = set; then : 5720 withval=$with_suffix; 5721 case $withval in 5722 no) EXEEXT=;; 5723 yes) EXEEXT=.exe;; 5724 *) EXEEXT=$withval;; 5725 esac 5726fi 5727 5728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 5729$as_echo "$EXEEXT" >&6; } 5730 5731# Test whether we're running on a non-case-sensitive system, in which 5732# case we give a warning if no ext is given 5733 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 5735$as_echo_n "checking for case-insensitive build directory... " >&6; } 5736if test ! -d CaseSensitiveTestDir; then 5737mkdir CaseSensitiveTestDir 5738fi 5739 5740if test -d casesensitivetestdir 5741then 5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5743$as_echo "yes" >&6; } 5744 BUILDEXEEXT=.exe 5745else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5747$as_echo "no" >&6; } 5748 BUILDEXEEXT=$EXEEXT 5749fi 5750rmdir CaseSensitiveTestDir 5751 5752case $ac_sys_system in 5753hp*|HP*) 5754 case $CC in 5755 cc|*/cc) CC="$CC -Ae";; 5756 esac;; 5757esac 5758 5759 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 5761$as_echo_n "checking LIBRARY... " >&6; } 5762if test -z "$LIBRARY" 5763then 5764 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' 5765fi 5766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 5767$as_echo "$LIBRARY" >&6; } 5768 5769# LDLIBRARY is the name of the library to link against (as opposed to the 5770# name of the library into which to insert object files). BLDLIBRARY is also 5771# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY 5772# is blank as the main program is not linked directly against LDLIBRARY. 5773# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On 5774# systems without shared libraries, LDLIBRARY is the same as LIBRARY 5775# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, 5776# DLLLIBRARY is the shared (i.e., DLL) library. 5777# 5778# RUNSHARED is used to run shared python without installed libraries 5779# 5780# INSTSONAME is the name of the shared library that will be use to install 5781# on the system - some systems like version suffix, others don't 5782# 5783# LDVERSION is the shared library version number, normally the Python version 5784# with the ABI build flags appended. 5785 5786 5787 5788 5789 5790 5791 5792 5793LDLIBRARY="$LIBRARY" 5794BLDLIBRARY='$(LDLIBRARY)' 5795INSTSONAME='$(LDLIBRARY)' 5796DLLLIBRARY='' 5797LDLIBRARYDIR='' 5798RUNSHARED='' 5799LDVERSION="$VERSION" 5800 5801# LINKCC is the command that links the python executable -- default is $(CC). 5802# If CXX is set, and if it is needed to link a main function that was 5803# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: 5804# python might then depend on the C++ runtime 5805 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 5807$as_echo_n "checking LINKCC... " >&6; } 5808if test -z "$LINKCC" 5809then 5810 LINKCC='$(PURIFY) $(MAINCC)' 5811 case $ac_sys_system in 5812 QNX*) 5813 # qcc must be used because the other compilers do not 5814 # support -N. 5815 LINKCC=qcc;; 5816 esac 5817fi 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 5819$as_echo "$LINKCC" >&6; } 5820 5821# EXPORTSYMS holds the list of exported symbols for AIX. 5822# EXPORTSFROM holds the module name exporting symbols on AIX. 5823EXPORTSYMS= 5824EXPORTSFROM= 5825 5826 5827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EXPORTSYMS" >&5 5828$as_echo_n "checking EXPORTSYMS... " >&6; } 5829case $ac_sys_system in 5830AIX*) 5831 EXPORTSYMS="Modules/python.exp" 5832 if test $ac_sys_release -ge 5 -o \ 5833 $ac_sys_release -eq 4 -a "6.3-DPORTS" -ge 2 ; then 5834 EXPORTSFROM=. # the main executable 5835 fi 5836 ;; 5837esac 5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPORTSYMS" >&5 5839$as_echo "$EXPORTSYMS" >&6; } 5840 5841# GNULD is set to "yes" if the GNU linker is used. If this goes wrong 5842# make sure we default having it set to "no": this is used by 5843# distutils.unixccompiler to know if it should add --enable-new-dtags 5844# to linker command lines, and failing to detect GNU ld simply results 5845# in the same bahaviour as before. 5846 5847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5848$as_echo_n "checking for GNU ld... " >&6; } 5849ac_prog=ld 5850if test "$GCC" = yes; then 5851 ac_prog=`$CC -print-prog-name=ld` 5852fi 5853case `"$ac_prog" -V 2>&1 < /dev/null` in 5854 *GNU*) 5855 GNULD=yes;; 5856 *) 5857 GNULD=no;; 5858esac 5859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 5860$as_echo "$GNULD" >&6; } 5861 5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 5863$as_echo_n "checking for --enable-shared... " >&6; } 5864# Check whether --enable-shared was given. 5865if test "${enable_shared+set}" = set; then : 5866 enableval=$enable_shared; 5867fi 5868 5869 5870if test -z "$enable_shared" 5871then 5872 case $ac_sys_system in 5873 CYGWIN*) 5874 enable_shared="yes";; 5875 *) 5876 enable_shared="no";; 5877 esac 5878fi 5879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 5880$as_echo "$enable_shared" >&6; } 5881 5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 5883$as_echo_n "checking for --enable-profiling... " >&6; } 5884# Check whether --enable-profiling was given. 5885if test "${enable_profiling+set}" = set; then : 5886 enableval=$enable_profiling; 5887fi 5888 5889if test "x$enable_profiling" = xyes; then 5890 ac_save_cc="$CC" 5891 CC="$CC -pg" 5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5893/* end confdefs.h. */ 5894int main() { return 0; } 5895_ACEOF 5896if ac_fn_c_try_link "$LINENO"; then : 5897 5898else 5899 enable_profiling=no 5900fi 5901rm -f core conftest.err conftest.$ac_objext \ 5902 conftest$ac_exeext conftest.$ac_ext 5903 CC="$ac_save_cc" 5904else 5905 enable_profiling=no 5906fi 5907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 5908$as_echo "$enable_profiling" >&6; } 5909 5910if test "x$enable_profiling" = xyes; then 5911 BASECFLAGS="-pg $BASECFLAGS" 5912 LDFLAGS="-pg $LDFLAGS" 5913fi 5914 5915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 5916$as_echo_n "checking LDLIBRARY... " >&6; } 5917 5918# MacOSX framework builds need more magic. LDLIBRARY is the dynamic 5919# library that we build, but we do not want to link against it (we 5920# will find it with a -framework option). For this reason there is an 5921# extra variable BLDLIBRARY against which Python and the extension 5922# modules are linked, BLDLIBRARY. This is normally the same as 5923# LDLIBRARY, but empty for MacOSX framework builds. 5924if test "$enable_framework" 5925then 5926 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 5927 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} 5928 BLDLIBRARY='' 5929else 5930 BLDLIBRARY='$(LDLIBRARY)' 5931fi 5932 5933# Other platforms follow 5934if test $enable_shared = "yes"; then 5935 PY_ENABLE_SHARED=1 5936 5937$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h 5938 5939 case $ac_sys_system in 5940 CYGWIN*) 5941 LDLIBRARY='libpython$(LDVERSION).dll.a' 5942 DLLLIBRARY='libpython$(LDVERSION).dll' 5943 ;; 5944 SunOS*) 5945 LDLIBRARY='libpython$(LDVERSION).so' 5946 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' 5947 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5948 INSTSONAME="$LDLIBRARY".$SOVERSION 5949 if test "$with_pydebug" != yes 5950 then 5951 PY3LIBRARY=libpython3.so 5952 fi 5953 ;; 5954 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) 5955 LDLIBRARY='libpython$(LDVERSION).so' 5956 BLDLIBRARY='-L. -lpython$(LDVERSION)' 5957 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5958 INSTSONAME="$LDLIBRARY".$SOVERSION 5959 if test "$with_pydebug" != yes 5960 then 5961 PY3LIBRARY=libpython3.so 5962 fi 5963 ;; 5964 hp*|HP*) 5965 case `uname -m` in 5966 ia64) 5967 LDLIBRARY='libpython$(LDVERSION).so' 5968 ;; 5969 *) 5970 LDLIBRARY='libpython$(LDVERSION).sl' 5971 ;; 5972 esac 5973 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' 5974 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} 5975 ;; 5976 Darwin*) 5977 LDLIBRARY='libpython$(LDVERSION).dylib' 5978 BLDLIBRARY='-L. -lpython$(LDVERSION)' 5979 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} 5980 ;; 5981 AIX*) 5982 LDLIBRARY='libpython$(LDVERSION).so' 5983 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} 5984 ;; 5985 5986 esac 5987else # shared is disabled 5988 PY_ENABLE_SHARED=0 5989 case $ac_sys_system in 5990 CYGWIN*) 5991 BLDLIBRARY='$(LIBRARY)' 5992 LDLIBRARY='libpython$(LDVERSION).dll.a' 5993 ;; 5994 esac 5995fi 5996 5997if test "$cross_compiling" = yes; then 5998 RUNSHARED= 5999fi 6000 6001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 6002$as_echo "$LDLIBRARY" >&6; } 6003 6004 6005if test -n "$ac_tool_prefix"; then 6006 for ac_prog in ar aal 6007 do 6008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6009set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6011$as_echo_n "checking for $ac_word... " >&6; } 6012if ${ac_cv_prog_AR+:} false; then : 6013 $as_echo_n "(cached) " >&6 6014else 6015 if test -n "$AR"; then 6016 ac_cv_prog_AR="$AR" # Let the user override the test. 6017else 6018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6019for as_dir in $PATH 6020do 6021 IFS=$as_save_IFS 6022 test -z "$as_dir" && as_dir=. 6023 for ac_exec_ext in '' $ac_executable_extensions; do 6024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6025 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6027 break 2 6028 fi 6029done 6030 done 6031IFS=$as_save_IFS 6032 6033fi 6034fi 6035AR=$ac_cv_prog_AR 6036if test -n "$AR"; then 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6038$as_echo "$AR" >&6; } 6039else 6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6041$as_echo "no" >&6; } 6042fi 6043 6044 6045 test -n "$AR" && break 6046 done 6047fi 6048if test -z "$AR"; then 6049 ac_ct_AR=$AR 6050 for ac_prog in ar aal 6051do 6052 # Extract the first word of "$ac_prog", so it can be a program name with args. 6053set dummy $ac_prog; ac_word=$2 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6055$as_echo_n "checking for $ac_word... " >&6; } 6056if ${ac_cv_prog_ac_ct_AR+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 if test -n "$ac_ct_AR"; then 6060 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6061else 6062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6063for as_dir in $PATH 6064do 6065 IFS=$as_save_IFS 6066 test -z "$as_dir" && as_dir=. 6067 for ac_exec_ext in '' $ac_executable_extensions; do 6068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6069 ac_cv_prog_ac_ct_AR="$ac_prog" 6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6071 break 2 6072 fi 6073done 6074 done 6075IFS=$as_save_IFS 6076 6077fi 6078fi 6079ac_ct_AR=$ac_cv_prog_ac_ct_AR 6080if test -n "$ac_ct_AR"; then 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6082$as_echo "$ac_ct_AR" >&6; } 6083else 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6085$as_echo "no" >&6; } 6086fi 6087 6088 6089 test -n "$ac_ct_AR" && break 6090done 6091 6092 if test "x$ac_ct_AR" = x; then 6093 AR="ar" 6094 else 6095 case $cross_compiling:$ac_tool_warned in 6096yes:) 6097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6099ac_tool_warned=yes ;; 6100esac 6101 AR=$ac_ct_AR 6102 fi 6103fi 6104 6105 6106# tweak ARFLAGS only if the user didn't set it on the command line 6107 6108if test -z "$ARFLAGS" 6109then 6110 ARFLAGS="rcs" 6111fi 6112 6113if test -n "$ac_tool_prefix"; then 6114 for ac_prog in readelf 6115 do 6116 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6117set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6119$as_echo_n "checking for $ac_word... " >&6; } 6120if ${ac_cv_prog_READELF+:} false; then : 6121 $as_echo_n "(cached) " >&6 6122else 6123 if test -n "$READELF"; then 6124 ac_cv_prog_READELF="$READELF" # Let the user override the test. 6125else 6126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6127for as_dir in $PATH 6128do 6129 IFS=$as_save_IFS 6130 test -z "$as_dir" && as_dir=. 6131 for ac_exec_ext in '' $ac_executable_extensions; do 6132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6133 ac_cv_prog_READELF="$ac_tool_prefix$ac_prog" 6134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6135 break 2 6136 fi 6137done 6138 done 6139IFS=$as_save_IFS 6140 6141fi 6142fi 6143READELF=$ac_cv_prog_READELF 6144if test -n "$READELF"; then 6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 6146$as_echo "$READELF" >&6; } 6147else 6148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6149$as_echo "no" >&6; } 6150fi 6151 6152 6153 test -n "$READELF" && break 6154 done 6155fi 6156if test -z "$READELF"; then 6157 ac_ct_READELF=$READELF 6158 for ac_prog in readelf 6159do 6160 # Extract the first word of "$ac_prog", so it can be a program name with args. 6161set dummy $ac_prog; ac_word=$2 6162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6163$as_echo_n "checking for $ac_word... " >&6; } 6164if ${ac_cv_prog_ac_ct_READELF+:} false; then : 6165 $as_echo_n "(cached) " >&6 6166else 6167 if test -n "$ac_ct_READELF"; then 6168 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. 6169else 6170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6171for as_dir in $PATH 6172do 6173 IFS=$as_save_IFS 6174 test -z "$as_dir" && as_dir=. 6175 for ac_exec_ext in '' $ac_executable_extensions; do 6176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6177 ac_cv_prog_ac_ct_READELF="$ac_prog" 6178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6179 break 2 6180 fi 6181done 6182 done 6183IFS=$as_save_IFS 6184 6185fi 6186fi 6187ac_ct_READELF=$ac_cv_prog_ac_ct_READELF 6188if test -n "$ac_ct_READELF"; then 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 6190$as_echo "$ac_ct_READELF" >&6; } 6191else 6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6193$as_echo "no" >&6; } 6194fi 6195 6196 6197 test -n "$ac_ct_READELF" && break 6198done 6199 6200 if test "x$ac_ct_READELF" = x; then 6201 READELF=":" 6202 else 6203 case $cross_compiling:$ac_tool_warned in 6204yes:) 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6206$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6207ac_tool_warned=yes ;; 6208esac 6209 READELF=$ac_ct_READELF 6210 fi 6211fi 6212 6213if test "$cross_compiling" = yes; then 6214 case "$READELF" in 6215 readelf|:) 6216 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 6217 ;; 6218 esac 6219fi 6220 6221 6222 6223case $MACHDEP in 6224hp*|HP*) 6225 # install -d does not work on HP-UX 6226 if test -z "$INSTALL" 6227 then 6228 INSTALL="${srcdir}/install-sh -c" 6229 fi 6230esac 6231# Find a good install program. We prefer a C program (faster), 6232# so one script is as good as another. But avoid the broken or 6233# incompatible versions: 6234# SysV /etc/install, /usr/sbin/install 6235# SunOS /usr/etc/install 6236# IRIX /sbin/install 6237# AIX /bin/install 6238# AmigaOS /C/install, which installs bootblocks on floppy discs 6239# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6240# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6241# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6242# OS/2's system install, which has a completely different semantic 6243# ./install, which can be erroneously created by make from ./install.sh. 6244# Reject install programs that cannot install multiple files. 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 6246$as_echo_n "checking for a BSD-compatible install... " >&6; } 6247if test -z "$INSTALL"; then 6248if ${ac_cv_path_install+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6252for as_dir in $PATH 6253do 6254 IFS=$as_save_IFS 6255 test -z "$as_dir" && as_dir=. 6256 # Account for people who put trailing slashes in PATH elements. 6257case $as_dir/ in #(( 6258 ./ | .// | /[cC]/* | \ 6259 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6260 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 6261 /usr/ucb/* ) ;; 6262 *) 6263 # OSF1 and SCO ODT 3.0 have their own names for install. 6264 # Don't use installbsd from OSF since it installs stuff as root 6265 # by default. 6266 for ac_prog in ginstall scoinst install; do 6267 for ac_exec_ext in '' $ac_executable_extensions; do 6268 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 6269 if test $ac_prog = install && 6270 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6271 # AIX install. It has an incompatible calling convention. 6272 : 6273 elif test $ac_prog = install && 6274 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6275 # program-specific install script used by HP pwplus--don't use. 6276 : 6277 else 6278 rm -rf conftest.one conftest.two conftest.dir 6279 echo one > conftest.one 6280 echo two > conftest.two 6281 mkdir conftest.dir 6282 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 6283 test -s conftest.one && test -s conftest.two && 6284 test -s conftest.dir/conftest.one && 6285 test -s conftest.dir/conftest.two 6286 then 6287 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6288 break 3 6289 fi 6290 fi 6291 fi 6292 done 6293 done 6294 ;; 6295esac 6296 6297 done 6298IFS=$as_save_IFS 6299 6300rm -rf conftest.one conftest.two conftest.dir 6301 6302fi 6303 if test "${ac_cv_path_install+set}" = set; then 6304 INSTALL=$ac_cv_path_install 6305 else 6306 # As a last resort, use the slow shell script. Don't cache a 6307 # value for INSTALL within a source directory, because that will 6308 # break other packages using the cache if that directory is 6309 # removed, or if the value is a relative name. 6310 INSTALL=$ac_install_sh 6311 fi 6312fi 6313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 6314$as_echo "$INSTALL" >&6; } 6315 6316# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6317# It thinks the first close brace ends the variable substitution. 6318test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6319 6320test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6321 6322test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6323 6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 6325$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 6326if test -z "$MKDIR_P"; then 6327 if ${ac_cv_path_mkdir+:} false; then : 6328 $as_echo_n "(cached) " >&6 6329else 6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6331for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 6332do 6333 IFS=$as_save_IFS 6334 test -z "$as_dir" && as_dir=. 6335 for ac_prog in mkdir gmkdir; do 6336 for ac_exec_ext in '' $ac_executable_extensions; do 6337 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 6338 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 6339 'mkdir (GNU coreutils) '* | \ 6340 'mkdir (coreutils) '* | \ 6341 'mkdir (fileutils) '4.1*) 6342 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 6343 break 3;; 6344 esac 6345 done 6346 done 6347 done 6348IFS=$as_save_IFS 6349 6350fi 6351 6352 test -d ./--version && rmdir ./--version 6353 if test "${ac_cv_path_mkdir+set}" = set; then 6354 MKDIR_P="$ac_cv_path_mkdir -p" 6355 else 6356 # As a last resort, use the slow shell script. Don't cache a 6357 # value for MKDIR_P within a source directory, because that will 6358 # break other packages using the cache if that directory is 6359 # removed, or if the value is a relative name. 6360 MKDIR_P="$ac_install_sh -d" 6361 fi 6362fi 6363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 6364$as_echo "$MKDIR_P" >&6; } 6365 6366 6367# Not every filesystem supports hard links 6368 6369if test -z "$LN" ; then 6370 case $ac_sys_system in 6371 CYGWIN*) LN="ln -s";; 6372 *) LN=ln;; 6373 esac 6374fi 6375 6376# For calculating the .so ABI tag. 6377 6378ABIFLAGS="" 6379 6380# Check for --with-pydebug 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 6382$as_echo_n "checking for --with-pydebug... " >&6; } 6383 6384# Check whether --with-pydebug was given. 6385if test "${with_pydebug+set}" = set; then : 6386 withval=$with_pydebug; 6387if test "$withval" != no 6388then 6389 6390$as_echo "#define Py_DEBUG 1" >>confdefs.h 6391 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6393$as_echo "yes" >&6; }; 6394 Py_DEBUG='true' 6395 ABIFLAGS="${ABIFLAGS}d" 6396else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6397$as_echo "no" >&6; }; Py_DEBUG='false' 6398fi 6399else 6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6401$as_echo "no" >&6; } 6402fi 6403 6404 6405# Check for --with-trace-refs 6406# --with-trace-refs 6407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5 6408$as_echo_n "checking for --with-trace-refs... " >&6; } 6409 6410# Check whether --with-trace-refs was given. 6411if test "${with_trace_refs+set}" = set; then : 6412 withval=$with_trace_refs; 6413else 6414 with_trace_refs=no 6415fi 6416 6417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5 6418$as_echo "$with_trace_refs" >&6; } 6419 6420if test "$with_trace_refs" = "yes" 6421then 6422 6423$as_echo "#define Py_TRACE_REFS 1" >>confdefs.h 6424 6425fi 6426 6427# Check for --with-assertions. 6428# This allows enabling assertions without Py_DEBUG. 6429assertions='false' 6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 6431$as_echo_n "checking for --with-assertions... " >&6; } 6432 6433# Check whether --with-assertions was given. 6434if test "${with_assertions+set}" = set; then : 6435 withval=$with_assertions; 6436if test "$withval" != no 6437then 6438 assertions='true' 6439fi 6440fi 6441 6442if test "$assertions" = 'true'; then 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6444$as_echo "yes" >&6; } 6445elif test "$Py_DEBUG" = 'true'; then 6446 assertions='true' 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 6448$as_echo "implied by --with-pydebug" >&6; } 6449else 6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6451$as_echo "no" >&6; } 6452fi 6453 6454# Enable optimization flags 6455 6456 6457Py_OPT='false' 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 6459$as_echo_n "checking for --enable-optimizations... " >&6; } 6460# Check whether --enable-optimizations was given. 6461if test "${enable_optimizations+set}" = set; then : 6462 enableval=$enable_optimizations; 6463if test "$enableval" != no 6464then 6465 Py_OPT='true' 6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6467$as_echo "yes" >&6; }; 6468else 6469 Py_OPT='false' 6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6471$as_echo "no" >&6; }; 6472fi 6473else 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6475$as_echo "no" >&6; } 6476fi 6477 6478if test "$Py_OPT" = 'true' ; then 6479 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not 6480 # compile working code using it and both test_distutils and test_gdb are 6481 # broken when you do manage to get a toolchain that works with it. People 6482 # who want LTO need to use --with-lto themselves. 6483 DEF_MAKE_ALL_RULE="profile-opt" 6484 REQUIRE_PGO="yes" 6485 DEF_MAKE_RULE="build_all" 6486else 6487 DEF_MAKE_ALL_RULE="build_all" 6488 REQUIRE_PGO="no" 6489 DEF_MAKE_RULE="all" 6490fi 6491 6492 6493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5 6494$as_echo_n "checking PROFILE_TASK... " >&6; } 6495if test -z "$PROFILE_TASK" 6496then 6497 PROFILE_TASK='-m test --pgo' 6498fi 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5 6500$as_echo "$PROFILE_TASK" >&6; } 6501 6502# Make llvm-relatec checks work on systems where llvm tools are not installed with their 6503# normal names in the default $PATH (ie: Ubuntu). They exist under the 6504# non-suffixed name in their versioned llvm directory. 6505 6506llvm_bin_dir='' 6507llvm_path="${PATH}" 6508if test "${CC}" = "clang" 6509then 6510 clang_bin=`which clang` 6511 # Some systems install clang elsewhere as a symlink to the real path 6512 # which is where the related llvm tools are located. 6513 if test -L "${clang_bin}" 6514 then 6515 clang_dir=`dirname "${clang_bin}"` 6516 clang_bin=`readlink "${clang_bin}"` 6517 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` 6518 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" 6519 fi 6520fi 6521 6522# Enable LTO flags 6523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 6524$as_echo_n "checking for --with-lto... " >&6; } 6525 6526# Check whether --with-lto was given. 6527if test "${with_lto+set}" = set; then : 6528 withval=$with_lto; 6529if test "$withval" != no 6530then 6531 Py_LTO='true' 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6533$as_echo "yes" >&6; }; 6534else 6535 Py_LTO='false' 6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6537$as_echo "no" >&6; }; 6538fi 6539else 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6541$as_echo "no" >&6; } 6542fi 6543 6544if test "$Py_LTO" = 'true' ; then 6545 case $CC in 6546 *clang*) 6547 6548 if test -n "$ac_tool_prefix"; then 6549 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. 6550set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 6551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6552$as_echo_n "checking for $ac_word... " >&6; } 6553if ${ac_cv_path_LLVM_AR+:} false; then : 6554 $as_echo_n "(cached) " >&6 6555else 6556 case $LLVM_AR in 6557 [\\/]* | ?:[\\/]*) 6558 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. 6559 ;; 6560 *) 6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6562for as_dir in ${llvm_path} 6563do 6564 IFS=$as_save_IFS 6565 test -z "$as_dir" && as_dir=. 6566 for ac_exec_ext in '' $ac_executable_extensions; do 6567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6568 ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" 6569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6570 break 2 6571 fi 6572done 6573 done 6574IFS=$as_save_IFS 6575 6576 ;; 6577esac 6578fi 6579LLVM_AR=$ac_cv_path_LLVM_AR 6580if test -n "$LLVM_AR"; then 6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 6582$as_echo "$LLVM_AR" >&6; } 6583else 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6585$as_echo "no" >&6; } 6586fi 6587 6588 6589fi 6590if test -z "$ac_cv_path_LLVM_AR"; then 6591 ac_pt_LLVM_AR=$LLVM_AR 6592 # Extract the first word of "llvm-ar", so it can be a program name with args. 6593set dummy llvm-ar; ac_word=$2 6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6595$as_echo_n "checking for $ac_word... " >&6; } 6596if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then : 6597 $as_echo_n "(cached) " >&6 6598else 6599 case $ac_pt_LLVM_AR in 6600 [\\/]* | ?:[\\/]*) 6601 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. 6602 ;; 6603 *) 6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6605for as_dir in ${llvm_path} 6606do 6607 IFS=$as_save_IFS 6608 test -z "$as_dir" && as_dir=. 6609 for ac_exec_ext in '' $ac_executable_extensions; do 6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6611 ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" 6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6613 break 2 6614 fi 6615done 6616 done 6617IFS=$as_save_IFS 6618 6619 ;; 6620esac 6621fi 6622ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR 6623if test -n "$ac_pt_LLVM_AR"; then 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 6625$as_echo "$ac_pt_LLVM_AR" >&6; } 6626else 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6628$as_echo "no" >&6; } 6629fi 6630 6631 if test "x$ac_pt_LLVM_AR" = x; then 6632 LLVM_AR="''" 6633 else 6634 case $cross_compiling:$ac_tool_warned in 6635yes:) 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6638ac_tool_warned=yes ;; 6639esac 6640 LLVM_AR=$ac_pt_LLVM_AR 6641 fi 6642else 6643 LLVM_AR="$ac_cv_path_LLVM_AR" 6644fi 6645 6646 6647 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" 6648 then 6649 LLVM_AR_FOUND="found" 6650 else 6651 LLVM_AR_FOUND="not-found" 6652 fi 6653 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" 6654 then 6655 # The Apple-supplied ar in Xcode or the Command Line Tools is apparently sufficient 6656 found_llvm_ar=`/usr/bin/xcrun -find ar 2>/dev/null` 6657 if test -n "${found_llvm_ar}" 6658 then 6659 LLVM_AR='/usr/bin/xcrun ar' 6660 LLVM_AR_FOUND=found 6661 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 6662$as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} 6663 fi 6664 fi 6665 if test $LLVM_AR_FOUND = not-found 6666 then 6667 LLVM_PROFR_ERR=yes 6668 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 6669 else 6670 LLVM_AR_ERR=no 6671 fi 6672 AR="${LLVM_AR}" 6673 case $ac_sys_system in 6674 Darwin*) 6675 # Any changes made here should be reflected in the GCC+Darwin case below 6676 LTOFLAGS="-flto -Wl,-export_dynamic" 6677 LTOCFLAGS="-flto" 6678 ;; 6679 *) 6680 LTOFLAGS="-flto" 6681 ;; 6682 esac 6683 ;; 6684 *gcc*) 6685 case $ac_sys_system in 6686 Darwin*) 6687 LTOFLAGS="-flto -Wl,-export_dynamic" 6688 LTOCFLAGS="-flto" 6689 ;; 6690 *) 6691 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" 6692 ;; 6693 esac 6694 ;; 6695 esac 6696 6697 if test "$ac_cv_prog_cc_g" = "yes" 6698 then 6699 # bpo-30345: Add -g to LDFLAGS when compiling with LTO 6700 # to get debug symbols. 6701 LTOFLAGS="$LTOFLAGS -g" 6702 fi 6703 6704 CFLAGS_NODIST="$CFLAGS_NODIST ${LTOCFLAGS-$LTOFLAGS}" 6705 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" 6706fi 6707 6708# Enable PGO flags. 6709 6710 6711 6712 6713 6714 6715if test -n "$ac_tool_prefix"; then 6716 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. 6717set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6719$as_echo_n "checking for $ac_word... " >&6; } 6720if ${ac_cv_path_LLVM_PROFDATA+:} false; then : 6721 $as_echo_n "(cached) " >&6 6722else 6723 case $LLVM_PROFDATA in 6724 [\\/]* | ?:[\\/]*) 6725 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. 6726 ;; 6727 *) 6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6729for as_dir in ${llvm_path} 6730do 6731 IFS=$as_save_IFS 6732 test -z "$as_dir" && as_dir=. 6733 for ac_exec_ext in '' $ac_executable_extensions; do 6734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6735 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6737 break 2 6738 fi 6739done 6740 done 6741IFS=$as_save_IFS 6742 6743 ;; 6744esac 6745fi 6746LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA 6747if test -n "$LLVM_PROFDATA"; then 6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 6749$as_echo "$LLVM_PROFDATA" >&6; } 6750else 6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6752$as_echo "no" >&6; } 6753fi 6754 6755 6756fi 6757if test -z "$ac_cv_path_LLVM_PROFDATA"; then 6758 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA 6759 # Extract the first word of "llvm-profdata", so it can be a program name with args. 6760set dummy llvm-profdata; ac_word=$2 6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6762$as_echo_n "checking for $ac_word... " >&6; } 6763if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : 6764 $as_echo_n "(cached) " >&6 6765else 6766 case $ac_pt_LLVM_PROFDATA in 6767 [\\/]* | ?:[\\/]*) 6768 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. 6769 ;; 6770 *) 6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6772for as_dir in ${llvm_path} 6773do 6774 IFS=$as_save_IFS 6775 test -z "$as_dir" && as_dir=. 6776 for ac_exec_ext in '' $ac_executable_extensions; do 6777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6778 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6780 break 2 6781 fi 6782done 6783 done 6784IFS=$as_save_IFS 6785 6786 ;; 6787esac 6788fi 6789ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA 6790if test -n "$ac_pt_LLVM_PROFDATA"; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 6792$as_echo "$ac_pt_LLVM_PROFDATA" >&6; } 6793else 6794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6795$as_echo "no" >&6; } 6796fi 6797 6798 if test "x$ac_pt_LLVM_PROFDATA" = x; then 6799 LLVM_PROFDATA="''" 6800 else 6801 case $cross_compiling:$ac_tool_warned in 6802yes:) 6803{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6804$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6805ac_tool_warned=yes ;; 6806esac 6807 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA 6808 fi 6809else 6810 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" 6811fi 6812 6813 6814if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" 6815then 6816 LLVM_PROF_FOUND="found" 6817else 6818 LLVM_PROF_FOUND="not-found" 6819fi 6820if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" 6821then 6822 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` 6823 if test -n "${found_llvm_profdata}" 6824 then 6825 # llvm-profdata isn't directly in $PATH in some cases. 6826 # https://apple.stackexchange.com/questions/197053/ 6827 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' 6828 LLVM_PROF_FOUND=found 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 6830$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} 6831 fi 6832fi 6833LLVM_PROF_ERR=no 6834case $CC in 6835 *clang*) 6836 # Any changes made here should be reflected in the GCC+Darwin case below 6837 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6838 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6839 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6840 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6841 if test $LLVM_PROF_FOUND = not-found 6842 then 6843 LLVM_PROF_ERR=yes 6844 if test "${REQUIRE_PGO}" = "yes" 6845 then 6846 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6847 fi 6848 fi 6849 ;; 6850 *gcc*) 6851 case $ac_sys_system in 6852 Darwin*) 6853 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6854 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6855 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6856 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6857 if test "${LLVM_PROF_FOUND}" = "not-found" 6858 then 6859 LLVM_PROF_ERR=yes 6860 if test "${REQUIRE_PGO}" = "yes" 6861 then 6862 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6863 fi 6864 fi 6865 ;; 6866 *) 6867 PGO_PROF_GEN_FLAG="-fprofile-generate" 6868 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" 6869 LLVM_PROF_MERGER="true" 6870 LLVM_PROF_FILE="" 6871 ;; 6872 esac 6873 ;; 6874 *icc*) 6875 PGO_PROF_GEN_FLAG="-prof-gen" 6876 PGO_PROF_USE_FLAG="-prof-use" 6877 LLVM_PROF_MERGER="true" 6878 LLVM_PROF_FILE="" 6879 ;; 6880esac 6881 6882# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be 6883# merged with this chunk of code? 6884 6885# Optimizer/debugger flags 6886# ------------------------ 6887# (The following bit of code is complicated enough - please keep things 6888# indented properly. Just pretend you're editing Python code. ;-) 6889 6890# There are two parallel sets of case statements below, one that checks to 6891# see if OPT was set and one that does BASECFLAGS setting based upon 6892# compiler and platform. BASECFLAGS tweaks need to be made even if the 6893# user set OPT. 6894 6895case $CC in 6896 *clang*) 6897 cc_is_clang=1 6898 ;; 6899 *) 6900 if $CC --version 2>&1 | grep -q clang 6901 then 6902 cc_is_clang=1 6903 else 6904 cc_is_clang= 6905 fi 6906esac 6907 6908# tweak OPT based on compiler and platform, only if the user didn't set 6909# it on the command line 6910 6911 6912if test "${OPT-unset}" = "unset" 6913then 6914 case $GCC in 6915 yes) 6916 # For gcc 4.x we need to use -fwrapv so lets check if its supported 6917 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then 6918 WRAP="-fwrapv" 6919 fi 6920 6921 if test -n "${cc_is_clang}" 6922 then 6923 # Clang also needs -fwrapv 6924 WRAP="-fwrapv" 6925 # bpo-30104: disable strict aliasing to compile correctly dtoa.c, 6926 # see Makefile.pre.in for more information 6927 CFLAGS_ALIASING="-fno-strict-aliasing" 6928 fi 6929 6930 case $ac_cv_prog_cc_g in 6931 yes) 6932 if test "$Py_DEBUG" = 'true' ; then 6933 # Optimization messes up debuggers, so turn it off for 6934 # debug builds. 6935 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then 6936 OPT="-g -Og -Wall" 6937 else 6938 OPT="-g -O0 -Wall" 6939 fi 6940 else 6941 OPT="-g $WRAP -O3 -Wall" 6942 fi 6943 ;; 6944 *) 6945 OPT="-O3 -Wall" 6946 ;; 6947 esac 6948 6949 case $ac_sys_system in 6950 SCO_SV*) OPT="$OPT -m486 -DSCO5" 6951 ;; 6952 esac 6953 ;; 6954 6955 *) 6956 OPT="-O" 6957 ;; 6958 esac 6959fi 6960 6961 6962 6963 6964 6965# The -arch flags for universal builds on macOS 6966UNIVERSAL_ARCH_FLAGS= 6967 6968 6969# tweak BASECFLAGS based on compiler and platform 6970case $GCC in 6971yes) 6972 CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" 6973 6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 6975$as_echo_n "checking for -Wextra... " >&6; } 6976 ac_save_cc="$CC" 6977 CC="$CC -Wextra -Werror" 6978 if ${ac_cv_extra_warnings+:} false; then : 6979 $as_echo_n "(cached) " >&6 6980else 6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6982/* end confdefs.h. */ 6983 6984 6985int 6986main () 6987{ 6988 6989 ; 6990 return 0; 6991} 6992 6993_ACEOF 6994if ac_fn_c_try_compile "$LINENO"; then : 6995 6996 ac_cv_extra_warnings=yes 6997 6998else 6999 7000 ac_cv_extra_warnings=no 7001 7002fi 7003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7004fi 7005 7006 CC="$ac_save_cc" 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 7008$as_echo "$ac_cv_extra_warnings" >&6; } 7009 7010 if test $ac_cv_extra_warnings = yes 7011 then 7012 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" 7013 fi 7014 7015 # Python doesn't violate C99 aliasing rules, but older versions of 7016 # GCC produce warnings for legal Python code. Enable 7017 # -fno-strict-aliasing on versions of GCC that support but produce 7018 # warnings. See Issue3326 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 7020$as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } 7021 ac_save_cc="$CC" 7022 CC="$CC -fno-strict-aliasing" 7023 save_CFLAGS="$CFLAGS" 7024 if ${ac_cv_no_strict_aliasing+:} false; then : 7025 $as_echo_n "(cached) " >&6 7026else 7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7028/* end confdefs.h. */ 7029 7030 7031int 7032main () 7033{ 7034 7035 ; 7036 return 0; 7037} 7038 7039_ACEOF 7040if ac_fn_c_try_compile "$LINENO"; then : 7041 7042 CC="$ac_save_cc -fstrict-aliasing" 7043 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" 7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7045/* end confdefs.h. */ 7046 7047 void f(int **x) {} 7048int 7049main () 7050{ 7051double *x; f((int **) &x); 7052 ; 7053 return 0; 7054} 7055 7056_ACEOF 7057if ac_fn_c_try_compile "$LINENO"; then : 7058 7059 ac_cv_no_strict_aliasing=no 7060 7061else 7062 7063 ac_cv_no_strict_aliasing=yes 7064 7065fi 7066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7067 7068else 7069 7070 ac_cv_no_strict_aliasing=no 7071 7072fi 7073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7074fi 7075 7076 CFLAGS="$save_CFLAGS" 7077 CC="$ac_save_cc" 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 7079$as_echo "$ac_cv_no_strict_aliasing" >&6; } 7080 if test $ac_cv_no_strict_aliasing = yes 7081 then 7082 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" 7083 fi 7084 7085 # ICC doesn't recognize the option, but only emits a warning 7086 ## XXX does it emit an unused result warning and can it be disabled? 7087 case "$CC" in 7088 *icc*) 7089 ac_cv_disable_unused_result_warning=no 7090 ;; 7091 *) 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 7093$as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } 7094 ac_save_cc="$CC" 7095 CC="$CC -Wunused-result -Werror" 7096 save_CFLAGS="$CFLAGS" 7097 if ${ac_cv_disable_unused_result_warning+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099else 7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7101/* end confdefs.h. */ 7102 7103 7104int 7105main () 7106{ 7107 7108 ; 7109 return 0; 7110} 7111 7112_ACEOF 7113if ac_fn_c_try_compile "$LINENO"; then : 7114 7115 ac_cv_disable_unused_result_warning=yes 7116 7117else 7118 7119 ac_cv_disable_unused_result_warning=no 7120 7121fi 7122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7123fi 7124 7125 CFLAGS="$save_CFLAGS" 7126 CC="$ac_save_cc" 7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 7128$as_echo "$ac_cv_disable_unused_result_warning" >&6; } 7129 ;; 7130 esac 7131 7132 if test $ac_cv_disable_unused_result_warning = yes 7133 then 7134 BASECFLAGS="$BASECFLAGS -Wno-unused-result" 7135 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" 7136 fi 7137 7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 7139$as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } 7140 ac_save_cc="$CC" 7141 CC="$CC -Wunused-parameter -Werror" 7142 if ${ac_cv_disable_unused_parameter_warning+:} false; then : 7143 $as_echo_n "(cached) " >&6 7144else 7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7146/* end confdefs.h. */ 7147 7148 7149int 7150main () 7151{ 7152 7153 ; 7154 return 0; 7155} 7156 7157_ACEOF 7158if ac_fn_c_try_compile "$LINENO"; then : 7159 7160 ac_cv_disable_unused_parameter_warning=yes 7161 7162else 7163 7164 ac_cv_disable_unused_parameter_warning=no 7165 7166fi 7167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7168fi 7169 7170 CC="$ac_save_cc" 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 7172$as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } 7173 7174 if test $ac_cv_disable_unused_parameter_warning = yes 7175 then 7176 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" 7177 fi 7178 7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 7180$as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } 7181 ac_save_cc="$CC" 7182 CC="$CC -Wmissing-field-initializers -Werror" 7183 if ${ac_cv_disable_missing_field_initializers+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188 7189 7190int 7191main () 7192{ 7193 7194 ; 7195 return 0; 7196} 7197 7198_ACEOF 7199if ac_fn_c_try_compile "$LINENO"; then : 7200 7201 ac_cv_disable_missing_field_initializers=yes 7202 7203else 7204 7205 ac_cv_disable_missing_field_initializers=no 7206 7207fi 7208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7209fi 7210 7211 CC="$ac_save_cc" 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 7213$as_echo "$ac_cv_disable_missing_field_initializers" >&6; } 7214 7215 if test $ac_cv_disable_missing_field_initializers = yes 7216 then 7217 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" 7218 fi 7219 7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 7221$as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } 7222 ac_save_cc="$CC" 7223 CC="$CC -Wsign-compare" 7224 save_CFLAGS="$CFLAGS" 7225 if ${ac_cv_enable_sign_compare_warning+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227else 7228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7229/* end confdefs.h. */ 7230 7231 7232int 7233main () 7234{ 7235 7236 ; 7237 return 0; 7238} 7239 7240_ACEOF 7241if ac_fn_c_try_compile "$LINENO"; then : 7242 7243 ac_cv_enable_sign_compare_warning=yes 7244 7245else 7246 7247 ac_cv_enable_sign_compare_warning=no 7248 7249fi 7250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7251fi 7252 7253 CFLAGS="$save_CFLAGS" 7254 CC="$ac_save_cc" 7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 7256$as_echo "$ac_cv_enable_sign_compare_warning" >&6; } 7257 7258 if test $ac_cv_enable_sign_compare_warning = yes 7259 then 7260 BASECFLAGS="$BASECFLAGS -Wsign-compare" 7261 fi 7262 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 7264$as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } 7265 ac_save_cc="$CC" 7266 CC="$CC -Wunreachable-code" 7267 save_CFLAGS="$CFLAGS" 7268 if ${ac_cv_enable_unreachable_code_warning+:} false; then : 7269 $as_echo_n "(cached) " >&6 7270else 7271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7272/* end confdefs.h. */ 7273 7274 7275int 7276main () 7277{ 7278 7279 ; 7280 return 0; 7281} 7282 7283_ACEOF 7284if ac_fn_c_try_compile "$LINENO"; then : 7285 7286 ac_cv_enable_unreachable_code_warning=yes 7287 7288else 7289 7290 ac_cv_enable_unreachable_code_warning=no 7291 7292fi 7293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7294fi 7295 7296 CFLAGS="$save_CFLAGS" 7297 CC="$ac_save_cc" 7298 7299 # Don't enable unreachable code warning in debug mode, since it usually 7300 # results in non-standard code paths. 7301 # Issue #24324: Unfortunately, the unreachable code warning does not work 7302 # correctly on gcc and has been silently removed from the compiler. 7303 # It is supported on clang but on OS X systems gcc may be an alias 7304 # for clang. Try to determine if the compiler is not really gcc and, 7305 # if so, only then enable the warning. 7306 if test $ac_cv_enable_unreachable_code_warning = yes && \ 7307 test "$Py_DEBUG" != "true" && \ 7308 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" 7309 then 7310 BASECFLAGS="$BASECFLAGS -Wunreachable-code" 7311 else 7312 ac_cv_enable_unreachable_code_warning=no 7313 fi 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 7315$as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } 7316 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 7318$as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; } 7319 ac_save_cc="$CC" 7320 CC="$CC -Werror -Wstrict-prototypes" 7321 if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then : 7322 $as_echo_n "(cached) " >&6 7323else 7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7325/* end confdefs.h. */ 7326 7327 7328int 7329main () 7330{ 7331 7332 ; 7333 return 0; 7334} 7335 7336_ACEOF 7337if ac_fn_c_try_compile "$LINENO"; then : 7338 7339 ac_cv_enable_strict_prototypes_warning=yes 7340 7341else 7342 7343 ac_cv_enable_strict_prototypes_warning=no 7344 7345fi 7346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7347fi 7348 7349 CC="$ac_save_cc" 7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 7351$as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; } 7352 7353 if test $ac_cv_enable_strict_prototypes_warning = yes 7354 then 7355 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" 7356 fi 7357 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 7359$as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } 7360 ac_save_cc="$CC" 7361 CC="$CC -Werror=implicit-function-declaration" 7362 if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : 7363 $as_echo_n "(cached) " >&6 7364else 7365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7366/* end confdefs.h. */ 7367 7368 7369int 7370main () 7371{ 7372 7373 ; 7374 return 0; 7375} 7376 7377_ACEOF 7378if ac_fn_c_try_compile "$LINENO"; then : 7379 7380 ac_cv_enable_implicit_function_declaration_error=yes 7381 7382else 7383 7384 ac_cv_enable_implicit_function_declaration_error=no 7385 7386fi 7387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7388fi 7389 7390 CC="$ac_save_cc" 7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 7392$as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } 7393 7394 if test $ac_cv_enable_implicit_function_declaration_error = yes 7395 then 7396 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" 7397 fi 7398 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can use visibility in $CC" >&5 7400$as_echo_n "checking if we can use visibility in $CC... " >&6; } 7401 ac_save_cc="$CC" 7402 CC="$CC -fvisibility=hidden" 7403 if ${ac_cv_enable_visibility+:} false; then : 7404 $as_echo_n "(cached) " >&6 7405else 7406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7407/* end confdefs.h. */ 7408 7409 7410int 7411main () 7412{ 7413 7414 ; 7415 return 0; 7416} 7417 7418_ACEOF 7419if ac_fn_c_try_compile "$LINENO"; then : 7420 7421 ac_cv_enable_visibility=yes 7422 7423else 7424 7425 ac_cv_enable_visibility=no 7426 7427fi 7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7429fi 7430 7431 CC="$ac_save_cc" 7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_visibility" >&5 7433$as_echo "$ac_cv_enable_visibility" >&6; } 7434 7435 if test $ac_cv_enable_visibility = yes 7436 then 7437 CFLAGS_NODIST="$CFLAGS_NODIST -fvisibility=hidden" 7438 fi 7439 7440 # if using gcc on alpha, use -mieee to get (near) full IEEE 754 7441 # support. Without this, treatment of subnormals doesn't follow 7442 # the standard. 7443 case $host in 7444 alpha*) 7445 BASECFLAGS="$BASECFLAGS -mieee" 7446 ;; 7447 esac 7448 7449 case $ac_sys_system in 7450 SCO_SV*) 7451 BASECFLAGS="$BASECFLAGS -m486 -DSCO5" 7452 ;; 7453 7454 Darwin*) 7455 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd 7456 # used to be here, but non-Apple gcc doesn't accept them. 7457 if test "${CC}" = gcc 7458 then 7459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 7460$as_echo_n "checking which compiler should be used... " >&6; } 7461 case "${UNIVERSALSDK}" in 7462 */MacOSX10.4u.sdk) 7463 # Build using 10.4 SDK, force usage of gcc when the 7464 # compiler is gcc, otherwise the user will get very 7465 # confusing error messages when building on OSX 10.6 7466 CC=gcc-4.0 7467 CPP=cpp-4.0 7468 ;; 7469 esac 7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7471$as_echo "$CC" >&6; } 7472 fi 7473 7474 LIPO_INTEL64_FLAGS="" 7475 if test "${enable_universalsdk}" 7476 then 7477 case "$UNIVERSAL_ARCHS" in 7478 32-bit) 7479 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" 7480 LIPO_32BIT_FLAGS="" 7481 ARCH_RUN_32BIT="" 7482 ;; 7483 64-bit) 7484 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" 7485 LIPO_32BIT_FLAGS="" 7486 ARCH_RUN_32BIT="true" 7487 ;; 7488 all) 7489 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" 7490 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 7491 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 7492 ;; 7493 universal2) 7494 UNIVERSAL_ARCH_FLAGS="-arch arm64 -arch x86_64" 7495 LIPO_32BIT_FLAGS="" 7496 LIPO_INTEL64_FLAGS="-extract x86_64" 7497 ARCH_RUN_32BIT="true" 7498 ;; 7499 intel) 7500 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" 7501 LIPO_32BIT_FLAGS="-extract i386" 7502 ARCH_RUN_32BIT="/usr/bin/arch -i386" 7503 ;; 7504 intel-32) 7505 UNIVERSAL_ARCH_FLAGS="-arch i386" 7506 LIPO_32BIT_FLAGS="" 7507 ARCH_RUN_32BIT="" 7508 ;; 7509 intel-64) 7510 UNIVERSAL_ARCH_FLAGS="-arch x86_64" 7511 LIPO_32BIT_FLAGS="" 7512 ARCH_RUN_32BIT="true" 7513 ;; 7514 3-way) 7515 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" 7516 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 7517 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 7518 ;; 7519 *) 7520 as_fn_error $? "proper usage is --with-universal-arch=universal2|32-bit|64-bit|all|intel|3-way" "$LINENO" 5 7521 ;; 7522 esac 7523 7524 if test "${UNIVERSALSDK}" != "/" 7525 then 7526 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" 7527 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" 7528 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" 7529 else 7530 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" 7531 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" 7532 fi 7533 fi 7534 7535 # Calculate an appropriate deployment target for this build: 7536 # The deployment target value is used explicitly to enable certain 7537 # features are enabled (such as builtin libedit support for readline) 7538 # through the use of Apple's Availability Macros and is used as a 7539 # component of the string returned by distutils.get_platform(). 7540 # 7541 # Use the value from: 7542 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified 7543 # 2. the operating system version of the build machine if >= 10.6 7544 # 3. If running on OS X 10.3 through 10.5, use the legacy tests 7545 # below to pick either 10.3, 10.4, or 10.5 as the target. 7546 # 4. If we are running on OS X 10.2 or earlier, good luck! 7547 7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 7549$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } 7550 cur_target_major=`sw_vers -productVersion | \ 7551 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 7552 cur_target_minor=`sw_vers -productVersion | \ 7553 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 7554 cur_target="${cur_target_major}.${cur_target_minor}" 7555 if test ${cur_target_major} -eq 10 && \ 7556 test ${cur_target_minor} -ge 3 && \ 7557 test ${cur_target_minor} -le 5 7558 then 7559 # OS X 10.3 through 10.5 7560 cur_target=10.3 7561 if test ${enable_universalsdk} 7562 then 7563 case "$UNIVERSAL_ARCHS" in 7564 all|3-way|intel|64-bit) 7565 # These configurations were first supported in 10.5 7566 cur_target='10.5' 7567 ;; 7568 esac 7569 else 7570 if test `/usr/bin/arch` = "i386" 7571 then 7572 # 10.4 was the first release to support Intel archs 7573 cur_target="10.4" 7574 fi 7575 fi 7576 fi 7577 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} 7578 7579 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the 7580 # environment with a value that is the same as what we'll use 7581 # in the Makefile to ensure that we'll get the same compiler 7582 # environment during configure and build time. 7583 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" 7584 export MACOSX_DEPLOYMENT_TARGET 7585 EXPORT_MACOSX_DEPLOYMENT_TARGET='' 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 7587$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } 7588 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if specified universal architectures work" >&5 7590$as_echo_n "checking if specified universal architectures work... " >&6; } 7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7592/* end confdefs.h. */ 7593#include <stdio.h> 7594int 7595main () 7596{ 7597printf("%d", 42); 7598 ; 7599 return 0; 7600} 7601_ACEOF 7602if ac_fn_c_try_link "$LINENO"; then : 7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7604$as_echo "yes" >&6; } 7605else 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7607$as_echo "no" >&6; } 7608 as_fn_error $? "check config.log and use the '--with-universal-archs' option" "$LINENO" 5 7609 7610fi 7611rm -f core conftest.err conftest.$ac_objext \ 7612 conftest$ac_exeext conftest.$ac_ext 7613 7614 # end of Darwin* tests 7615 ;; 7616 esac 7617 ;; 7618 7619*) 7620 case $ac_sys_system in 7621 OpenUNIX*|UnixWare*) 7622 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " 7623 ;; 7624 SCO_SV*) 7625 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" 7626 ;; 7627 esac 7628 ;; 7629esac 7630 7631case "$CC" in 7632*icc*) 7633 # ICC needs -fp-model strict or floats behave badly 7634 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" 7635 ;; 7636*xlc*) 7637 CFLAGS_NODIST="$CFLAGS_NODIST -qalias=noansi -qmaxmem=-1" 7638 ;; 7639esac 7640 7641if test "$assertions" = 'true'; then 7642 : 7643else 7644 OPT="-DNDEBUG $OPT" 7645fi 7646 7647if test "$ac_arch_flags" 7648then 7649 BASECFLAGS="$BASECFLAGS $ac_arch_flags" 7650fi 7651 7652# On some compilers, pthreads are available without further options 7653# (e.g. MacOS X). On some of these systems, the compiler will not 7654# complain if unaccepted options are passed (e.g. gcc on Mac OS X). 7655# So we have to see first whether pthreads are available without 7656# options before we can check whether -Kpthread improves anything. 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 7658$as_echo_n "checking whether pthreads are available without options... " >&6; } 7659if ${ac_cv_pthread_is_default+:} false; then : 7660 $as_echo_n "(cached) " >&6 7661else 7662 if test "$cross_compiling" = yes; then : 7663 ac_cv_pthread_is_default=no 7664else 7665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7666/* end confdefs.h. */ 7667 7668#include <stdio.h> 7669#include <pthread.h> 7670 7671void* routine(void* p){return NULL;} 7672 7673int main(){ 7674 pthread_t p; 7675 if(pthread_create(&p,NULL,routine,NULL)!=0) 7676 return 1; 7677 (void)pthread_detach(p); 7678 return 0; 7679} 7680 7681_ACEOF 7682if ac_fn_c_try_run "$LINENO"; then : 7683 7684 ac_cv_pthread_is_default=yes 7685 ac_cv_kthread=no 7686 ac_cv_pthread=no 7687 7688else 7689 ac_cv_pthread_is_default=no 7690fi 7691rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7692 conftest.$ac_objext conftest.beam conftest.$ac_ext 7693fi 7694 7695 7696fi 7697 7698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 7699$as_echo "$ac_cv_pthread_is_default" >&6; } 7700 7701 7702if test $ac_cv_pthread_is_default = yes 7703then 7704 ac_cv_kpthread=no 7705else 7706# -Kpthread, if available, provides the right #defines 7707# and linker options to make pthread_create available 7708# Some compilers won't report that they do not support -Kpthread, 7709# so we need to run a program to see whether it really made the 7710# function available. 7711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 7712$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } 7713if ${ac_cv_kpthread+:} false; then : 7714 $as_echo_n "(cached) " >&6 7715else 7716 ac_save_cc="$CC" 7717CC="$CC -Kpthread" 7718if test "$cross_compiling" = yes; then : 7719 ac_cv_kpthread=no 7720else 7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722/* end confdefs.h. */ 7723 7724#include <stdio.h> 7725#include <pthread.h> 7726 7727void* routine(void* p){return NULL;} 7728 7729int main(){ 7730 pthread_t p; 7731 if(pthread_create(&p,NULL,routine,NULL)!=0) 7732 return 1; 7733 (void)pthread_detach(p); 7734 return 0; 7735} 7736 7737_ACEOF 7738if ac_fn_c_try_run "$LINENO"; then : 7739 ac_cv_kpthread=yes 7740else 7741 ac_cv_kpthread=no 7742fi 7743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7744 conftest.$ac_objext conftest.beam conftest.$ac_ext 7745fi 7746 7747CC="$ac_save_cc" 7748fi 7749 7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 7751$as_echo "$ac_cv_kpthread" >&6; } 7752fi 7753 7754if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no 7755then 7756# -Kthread, if available, provides the right #defines 7757# and linker options to make pthread_create available 7758# Some compilers won't report that they do not support -Kthread, 7759# so we need to run a program to see whether it really made the 7760# function available. 7761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 7762$as_echo_n "checking whether $CC accepts -Kthread... " >&6; } 7763if ${ac_cv_kthread+:} false; then : 7764 $as_echo_n "(cached) " >&6 7765else 7766 ac_save_cc="$CC" 7767CC="$CC -Kthread" 7768if test "$cross_compiling" = yes; then : 7769 ac_cv_kthread=no 7770else 7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7772/* end confdefs.h. */ 7773 7774#include <stdio.h> 7775#include <pthread.h> 7776 7777void* routine(void* p){return NULL;} 7778 7779int main(){ 7780 pthread_t p; 7781 if(pthread_create(&p,NULL,routine,NULL)!=0) 7782 return 1; 7783 (void)pthread_detach(p); 7784 return 0; 7785} 7786 7787_ACEOF 7788if ac_fn_c_try_run "$LINENO"; then : 7789 ac_cv_kthread=yes 7790else 7791 ac_cv_kthread=no 7792fi 7793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7794 conftest.$ac_objext conftest.beam conftest.$ac_ext 7795fi 7796 7797CC="$ac_save_cc" 7798fi 7799 7800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 7801$as_echo "$ac_cv_kthread" >&6; } 7802fi 7803 7804if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no 7805then 7806# -pthread, if available, provides the right #defines 7807# and linker options to make pthread_create available 7808# Some compilers won't report that they do not support -pthread, 7809# so we need to run a program to see whether it really made the 7810# function available. 7811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 7812$as_echo_n "checking whether $CC accepts -pthread... " >&6; } 7813if ${ac_cv_pthread+:} false; then : 7814 $as_echo_n "(cached) " >&6 7815else 7816 ac_save_cc="$CC" 7817CC="$CC -pthread" 7818if test "$cross_compiling" = yes; then : 7819 ac_cv_pthread=no 7820else 7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7822/* end confdefs.h. */ 7823 7824#include <stdio.h> 7825#include <pthread.h> 7826 7827void* routine(void* p){return NULL;} 7828 7829int main(){ 7830 pthread_t p; 7831 if(pthread_create(&p,NULL,routine,NULL)!=0) 7832 return 1; 7833 (void)pthread_detach(p); 7834 return 0; 7835} 7836 7837_ACEOF 7838if ac_fn_c_try_run "$LINENO"; then : 7839 ac_cv_pthread=yes 7840else 7841 ac_cv_pthread=no 7842fi 7843rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7844 conftest.$ac_objext conftest.beam conftest.$ac_ext 7845fi 7846 7847CC="$ac_save_cc" 7848fi 7849 7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 7851$as_echo "$ac_cv_pthread" >&6; } 7852fi 7853 7854# If we have set a CC compiler flag for thread support then 7855# check if it works for CXX, too. 7856ac_cv_cxx_thread=no 7857if test ! -z "$CXX" 7858then 7859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 7860$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } 7861ac_save_cxx="$CXX" 7862 7863if test "$ac_cv_kpthread" = "yes" 7864then 7865 CXX="$CXX -Kpthread" 7866 ac_cv_cxx_thread=yes 7867elif test "$ac_cv_kthread" = "yes" 7868then 7869 CXX="$CXX -Kthread" 7870 ac_cv_cxx_thread=yes 7871elif test "$ac_cv_pthread" = "yes" 7872then 7873 CXX="$CXX -pthread" 7874 ac_cv_cxx_thread=yes 7875fi 7876 7877if test $ac_cv_cxx_thread = yes 7878then 7879 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext 7880 $CXX -c conftest.$ac_ext 2>&5 7881 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ 7882 && test -s conftest$ac_exeext && ./conftest$ac_exeext 7883 then 7884 ac_cv_cxx_thread=yes 7885 else 7886 ac_cv_cxx_thread=no 7887 fi 7888 rm -fr conftest* 7889fi 7890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 7891$as_echo "$ac_cv_cxx_thread" >&6; } 7892fi 7893CXX="$ac_save_cxx" 7894 7895 7896# checks for header files 7897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7898$as_echo_n "checking for ANSI C header files... " >&6; } 7899if ${ac_cv_header_stdc+:} false; then : 7900 $as_echo_n "(cached) " >&6 7901else 7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7903/* end confdefs.h. */ 7904#include <stdlib.h> 7905#include <stdarg.h> 7906#include <string.h> 7907#include <float.h> 7908 7909int 7910main () 7911{ 7912 7913 ; 7914 return 0; 7915} 7916_ACEOF 7917if ac_fn_c_try_compile "$LINENO"; then : 7918 ac_cv_header_stdc=yes 7919else 7920 ac_cv_header_stdc=no 7921fi 7922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7923 7924if test $ac_cv_header_stdc = yes; then 7925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7927/* end confdefs.h. */ 7928#include <string.h> 7929 7930_ACEOF 7931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7932 $EGREP "memchr" >/dev/null 2>&1; then : 7933 7934else 7935 ac_cv_header_stdc=no 7936fi 7937rm -f conftest* 7938 7939fi 7940 7941if test $ac_cv_header_stdc = yes; then 7942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7944/* end confdefs.h. */ 7945#include <stdlib.h> 7946 7947_ACEOF 7948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7949 $EGREP "free" >/dev/null 2>&1; then : 7950 7951else 7952 ac_cv_header_stdc=no 7953fi 7954rm -f conftest* 7955 7956fi 7957 7958if test $ac_cv_header_stdc = yes; then 7959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7960 if test "$cross_compiling" = yes; then : 7961 : 7962else 7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7964/* end confdefs.h. */ 7965#include <ctype.h> 7966#include <stdlib.h> 7967#if ((' ' & 0x0FF) == 0x020) 7968# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7969# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7970#else 7971# define ISLOWER(c) \ 7972 (('a' <= (c) && (c) <= 'i') \ 7973 || ('j' <= (c) && (c) <= 'r') \ 7974 || ('s' <= (c) && (c) <= 'z')) 7975# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7976#endif 7977 7978#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7979int 7980main () 7981{ 7982 int i; 7983 for (i = 0; i < 256; i++) 7984 if (XOR (islower (i), ISLOWER (i)) 7985 || toupper (i) != TOUPPER (i)) 7986 return 2; 7987 return 0; 7988} 7989_ACEOF 7990if ac_fn_c_try_run "$LINENO"; then : 7991 7992else 7993 ac_cv_header_stdc=no 7994fi 7995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7996 conftest.$ac_objext conftest.beam conftest.$ac_ext 7997fi 7998 7999fi 8000fi 8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 8002$as_echo "$ac_cv_header_stdc" >&6; } 8003if test $ac_cv_header_stdc = yes; then 8004 8005$as_echo "#define STDC_HEADERS 1" >>confdefs.h 8006 8007fi 8008 8009for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \ 8010fcntl.h grp.h \ 8011ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ 8012sched.h shadow.h signal.h stropts.h termios.h \ 8013utime.h \ 8014poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ 8015sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ 8016sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ 8017sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ 8018sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ 8019sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ 8020libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ 8021linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ 8022sys/endian.h sys/sysmacros.h linux/memfd.h linux/wait.h sys/memfd.h sys/mman.h 8023do : 8024 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8025ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8026if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8027 cat >>confdefs.h <<_ACEOF 8028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8029_ACEOF 8030 8031fi 8032 8033done 8034 8035ac_header_dirent=no 8036for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8037 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8039$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8040if eval \${$as_ac_Header+:} false; then : 8041 $as_echo_n "(cached) " >&6 8042else 8043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8044/* end confdefs.h. */ 8045#include <sys/types.h> 8046#include <$ac_hdr> 8047 8048int 8049main () 8050{ 8051if ((DIR *) 0) 8052return 0; 8053 ; 8054 return 0; 8055} 8056_ACEOF 8057if ac_fn_c_try_compile "$LINENO"; then : 8058 eval "$as_ac_Header=yes" 8059else 8060 eval "$as_ac_Header=no" 8061fi 8062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8063fi 8064eval ac_res=\$$as_ac_Header 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8066$as_echo "$ac_res" >&6; } 8067if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8068 cat >>confdefs.h <<_ACEOF 8069#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8070_ACEOF 8071 8072ac_header_dirent=$ac_hdr; break 8073fi 8074 8075done 8076# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8077if test $ac_header_dirent = dirent.h; then 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8079$as_echo_n "checking for library containing opendir... " >&6; } 8080if ${ac_cv_search_opendir+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 ac_func_search_save_LIBS=$LIBS 8084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8085/* end confdefs.h. */ 8086 8087/* Override any GCC internal prototype to avoid an error. 8088 Use char because int might match the return type of a GCC 8089 builtin and then its argument prototype would still apply. */ 8090#ifdef __cplusplus 8091extern "C" 8092#endif 8093char opendir (); 8094int 8095main () 8096{ 8097return opendir (); 8098 ; 8099 return 0; 8100} 8101_ACEOF 8102for ac_lib in '' dir; do 8103 if test -z "$ac_lib"; then 8104 ac_res="none required" 8105 else 8106 ac_res=-l$ac_lib 8107 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8108 fi 8109 if ac_fn_c_try_link "$LINENO"; then : 8110 ac_cv_search_opendir=$ac_res 8111fi 8112rm -f core conftest.err conftest.$ac_objext \ 8113 conftest$ac_exeext 8114 if ${ac_cv_search_opendir+:} false; then : 8115 break 8116fi 8117done 8118if ${ac_cv_search_opendir+:} false; then : 8119 8120else 8121 ac_cv_search_opendir=no 8122fi 8123rm conftest.$ac_ext 8124LIBS=$ac_func_search_save_LIBS 8125fi 8126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8127$as_echo "$ac_cv_search_opendir" >&6; } 8128ac_res=$ac_cv_search_opendir 8129if test "$ac_res" != no; then : 8130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8131 8132fi 8133 8134else 8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8136$as_echo_n "checking for library containing opendir... " >&6; } 8137if ${ac_cv_search_opendir+:} false; then : 8138 $as_echo_n "(cached) " >&6 8139else 8140 ac_func_search_save_LIBS=$LIBS 8141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8142/* end confdefs.h. */ 8143 8144/* Override any GCC internal prototype to avoid an error. 8145 Use char because int might match the return type of a GCC 8146 builtin and then its argument prototype would still apply. */ 8147#ifdef __cplusplus 8148extern "C" 8149#endif 8150char opendir (); 8151int 8152main () 8153{ 8154return opendir (); 8155 ; 8156 return 0; 8157} 8158_ACEOF 8159for ac_lib in '' x; do 8160 if test -z "$ac_lib"; then 8161 ac_res="none required" 8162 else 8163 ac_res=-l$ac_lib 8164 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8165 fi 8166 if ac_fn_c_try_link "$LINENO"; then : 8167 ac_cv_search_opendir=$ac_res 8168fi 8169rm -f core conftest.err conftest.$ac_objext \ 8170 conftest$ac_exeext 8171 if ${ac_cv_search_opendir+:} false; then : 8172 break 8173fi 8174done 8175if ${ac_cv_search_opendir+:} false; then : 8176 8177else 8178 ac_cv_search_opendir=no 8179fi 8180rm conftest.$ac_ext 8181LIBS=$ac_func_search_save_LIBS 8182fi 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8184$as_echo "$ac_cv_search_opendir" >&6; } 8185ac_res=$ac_cv_search_opendir 8186if test "$ac_res" != no; then : 8187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8188 8189fi 8190 8191fi 8192 8193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 8194$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 8195if ${ac_cv_header_sys_types_h_makedev+:} false; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8199/* end confdefs.h. */ 8200#include <sys/types.h> 8201int 8202main () 8203{ 8204return makedev(0, 0); 8205 ; 8206 return 0; 8207} 8208_ACEOF 8209if ac_fn_c_try_link "$LINENO"; then : 8210 ac_cv_header_sys_types_h_makedev=yes 8211else 8212 ac_cv_header_sys_types_h_makedev=no 8213fi 8214rm -f core conftest.err conftest.$ac_objext \ 8215 conftest$ac_exeext conftest.$ac_ext 8216 8217fi 8218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 8219$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 8220 8221if test $ac_cv_header_sys_types_h_makedev = no; then 8222ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 8223if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 8224 8225$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 8226 8227fi 8228 8229 8230 8231 if test $ac_cv_header_sys_mkdev_h = no; then 8232 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 8233if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 8234 8235$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 8236 8237fi 8238 8239 8240 fi 8241fi 8242 8243 8244# bluetooth/bluetooth.h has been known to not compile with -std=c99. 8245# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 8246SAVE_CFLAGS=$CFLAGS 8247CFLAGS="-std=c99 $CFLAGS" 8248for ac_header in bluetooth/bluetooth.h 8249do : 8250 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" 8251if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : 8252 cat >>confdefs.h <<_ACEOF 8253#define HAVE_BLUETOOTH_BLUETOOTH_H 1 8254_ACEOF 8255 8256fi 8257 8258done 8259 8260CFLAGS=$SAVE_CFLAGS 8261 8262# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. 8263for ac_header in net/if.h 8264do : 8265 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> 8266#ifdef STDC_HEADERS 8267# include <stdlib.h> 8268# include <stddef.h> 8269#else 8270# ifdef HAVE_STDLIB_H 8271# include <stdlib.h> 8272# endif 8273#endif 8274#ifdef HAVE_SYS_SOCKET_H 8275# include <sys/socket.h> 8276#endif 8277 8278" 8279if test "x$ac_cv_header_net_if_h" = xyes; then : 8280 cat >>confdefs.h <<_ACEOF 8281#define HAVE_NET_IF_H 1 8282_ACEOF 8283 8284fi 8285 8286done 8287 8288 8289# On Linux, netlink.h requires asm/types.h 8290for ac_header in linux/netlink.h 8291do : 8292 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 8293#ifdef HAVE_ASM_TYPES_H 8294#include <asm/types.h> 8295#endif 8296#ifdef HAVE_SYS_SOCKET_H 8297#include <sys/socket.h> 8298#endif 8299 8300" 8301if test "x$ac_cv_header_linux_netlink_h" = xyes; then : 8302 cat >>confdefs.h <<_ACEOF 8303#define HAVE_LINUX_NETLINK_H 1 8304_ACEOF 8305 8306fi 8307 8308done 8309 8310 8311# On Linux, qrtr.h requires asm/types.h 8312for ac_header in linux/qrtr.h 8313do : 8314 ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" " 8315#ifdef HAVE_ASM_TYPES_H 8316#include <asm/types.h> 8317#endif 8318#ifdef HAVE_SYS_SOCKET_H 8319#include <sys/socket.h> 8320#endif 8321 8322" 8323if test "x$ac_cv_header_linux_qrtr_h" = xyes; then : 8324 cat >>confdefs.h <<_ACEOF 8325#define HAVE_LINUX_QRTR_H 1 8326_ACEOF 8327 8328fi 8329 8330done 8331 8332 8333for ac_header in linux/vm_sockets.h 8334do : 8335 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " 8336#ifdef HAVE_SYS_SOCKET_H 8337#include <sys/socket.h> 8338#endif 8339 8340" 8341if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : 8342 cat >>confdefs.h <<_ACEOF 8343#define HAVE_LINUX_VM_SOCKETS_H 1 8344_ACEOF 8345 8346fi 8347 8348done 8349 8350 8351# On Linux, can.h, can/bcm.h, can/j1939.h, can/raw.h require sys/socket.h 8352for ac_header in linux/can.h linux/can/bcm.h linux/can/j1939.h linux/can/raw.h 8353do : 8354 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8355ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 8356#ifdef HAVE_SYS_SOCKET_H 8357#include <sys/socket.h> 8358#endif 8359 8360" 8361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8362 cat >>confdefs.h <<_ACEOF 8363#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8364_ACEOF 8365 8366fi 8367 8368done 8369 8370 8371# checks for typedefs 8372was_it_defined=no 8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 8374$as_echo_n "checking for clock_t in time.h... " >&6; } 8375cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8376/* end confdefs.h. */ 8377#include <time.h> 8378 8379_ACEOF 8380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8381 $EGREP "clock_t" >/dev/null 2>&1; then : 8382 was_it_defined=yes 8383else 8384 8385 8386$as_echo "#define clock_t long" >>confdefs.h 8387 8388 8389fi 8390rm -f conftest* 8391 8392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 8393$as_echo "$was_it_defined" >&6; } 8394 8395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 8396$as_echo_n "checking for makedev... " >&6; } 8397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8398/* end confdefs.h. */ 8399 8400#if defined(MAJOR_IN_MKDEV) 8401#include <sys/mkdev.h> 8402#elif defined(MAJOR_IN_SYSMACROS) 8403#include <sys/sysmacros.h> 8404#else 8405#include <sys/types.h> 8406#endif 8407 8408int 8409main () 8410{ 8411 8412 makedev(0, 0) 8413 ; 8414 return 0; 8415} 8416 8417_ACEOF 8418if ac_fn_c_try_link "$LINENO"; then : 8419 ac_cv_has_makedev=yes 8420else 8421 ac_cv_has_makedev=no 8422fi 8423rm -f core conftest.err conftest.$ac_objext \ 8424 conftest$ac_exeext conftest.$ac_ext 8425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 8426$as_echo "$ac_cv_has_makedev" >&6; } 8427if test "$ac_cv_has_makedev" = "yes"; then 8428 8429$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h 8430 8431fi 8432 8433# byte swapping 8434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 8435$as_echo_n "checking for le64toh... " >&6; } 8436cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8437/* end confdefs.h. */ 8438 8439#ifdef HAVE_ENDIAN_H 8440#include <endian.h> 8441#elif defined(HAVE_SYS_ENDIAN_H) 8442#include <sys/endian.h> 8443#endif 8444 8445int 8446main () 8447{ 8448 8449 le64toh(1) 8450 ; 8451 return 0; 8452} 8453 8454_ACEOF 8455if ac_fn_c_try_link "$LINENO"; then : 8456 ac_cv_has_le64toh=yes 8457else 8458 ac_cv_has_le64toh=no 8459fi 8460rm -f core conftest.err conftest.$ac_objext \ 8461 conftest$ac_exeext conftest.$ac_ext 8462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 8463$as_echo "$ac_cv_has_le64toh" >&6; } 8464if test "$ac_cv_has_le64toh" = "yes"; then 8465 8466$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h 8467 8468fi 8469 8470use_lfs=yes 8471# Don't use largefile support for GNU/Hurd 8472case $ac_sys_system in GNU*) 8473 use_lfs=no 8474esac 8475 8476if test "$use_lfs" = "yes"; then 8477# Two defines needed to enable largefile support on various platforms 8478# These may affect some typedefs 8479case $ac_sys_system/$ac_sys_release in 8480AIX*) 8481 8482$as_echo "#define _LARGE_FILES 1" >>confdefs.h 8483 8484 ;; 8485esac 8486 8487$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h 8488 8489 8490$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 8491 8492fi 8493 8494# Add some code to confdefs.h so that the test for off_t works on SCO 8495cat >> confdefs.h <<\EOF 8496#if defined(SCO_DS) 8497#undef _OFF_T 8498#endif 8499EOF 8500 8501# Type availability checks 8502ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 8503if test "x$ac_cv_type_mode_t" = xyes; then : 8504 8505else 8506 8507cat >>confdefs.h <<_ACEOF 8508#define mode_t int 8509_ACEOF 8510 8511fi 8512 8513ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 8514if test "x$ac_cv_type_off_t" = xyes; then : 8515 8516else 8517 8518cat >>confdefs.h <<_ACEOF 8519#define off_t long int 8520_ACEOF 8521 8522fi 8523 8524ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8525if test "x$ac_cv_type_pid_t" = xyes; then : 8526 8527else 8528 8529cat >>confdefs.h <<_ACEOF 8530#define pid_t int 8531_ACEOF 8532 8533fi 8534 8535 8536cat >>confdefs.h <<_ACEOF 8537#define RETSIGTYPE void 8538_ACEOF 8539 8540ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8541if test "x$ac_cv_type_size_t" = xyes; then : 8542 8543else 8544 8545cat >>confdefs.h <<_ACEOF 8546#define size_t unsigned int 8547_ACEOF 8548 8549fi 8550 8551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 8552$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 8553if ${ac_cv_type_uid_t+:} false; then : 8554 $as_echo_n "(cached) " >&6 8555else 8556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8557/* end confdefs.h. */ 8558#include <sys/types.h> 8559 8560_ACEOF 8561if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8562 $EGREP "uid_t" >/dev/null 2>&1; then : 8563 ac_cv_type_uid_t=yes 8564else 8565 ac_cv_type_uid_t=no 8566fi 8567rm -f conftest* 8568 8569fi 8570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 8571$as_echo "$ac_cv_type_uid_t" >&6; } 8572if test $ac_cv_type_uid_t = no; then 8573 8574$as_echo "#define uid_t int" >>confdefs.h 8575 8576 8577$as_echo "#define gid_t int" >>confdefs.h 8578 8579fi 8580 8581 8582ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 8583if test "x$ac_cv_type_ssize_t" = xyes; then : 8584 8585$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 8586 8587fi 8588 8589ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" 8590if test "x$ac_cv_type___uint128_t" = xyes; then : 8591 8592$as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h 8593 8594fi 8595 8596 8597# Sizes of various common basic types 8598# ANSI C requires sizeof(char) == 1, so no need to check it 8599# The cast to long int works around a bug in the HP C Compiler 8600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8602# This bug is HP SR number 8606223364. 8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 8604$as_echo_n "checking size of int... " >&6; } 8605if ${ac_cv_sizeof_int+:} false; then : 8606 $as_echo_n "(cached) " >&6 8607else 8608 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 8609 8610else 8611 if test "$ac_cv_type_int" = yes; then 8612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8614as_fn_error 77 "cannot compute sizeof (int) 8615See \`config.log' for more details" "$LINENO" 5; } 8616 else 8617 ac_cv_sizeof_int=0 8618 fi 8619fi 8620 8621fi 8622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 8623$as_echo "$ac_cv_sizeof_int" >&6; } 8624 8625 8626 8627cat >>confdefs.h <<_ACEOF 8628#define SIZEOF_INT $ac_cv_sizeof_int 8629_ACEOF 8630 8631 8632# The cast to long int works around a bug in the HP C Compiler 8633# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8634# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8635# This bug is HP SR number 8606223364. 8636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 8637$as_echo_n "checking size of long... " >&6; } 8638if ${ac_cv_sizeof_long+:} false; then : 8639 $as_echo_n "(cached) " >&6 8640else 8641 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 8642 8643else 8644 if test "$ac_cv_type_long" = yes; then 8645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8647as_fn_error 77 "cannot compute sizeof (long) 8648See \`config.log' for more details" "$LINENO" 5; } 8649 else 8650 ac_cv_sizeof_long=0 8651 fi 8652fi 8653 8654fi 8655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 8656$as_echo "$ac_cv_sizeof_long" >&6; } 8657 8658 8659 8660cat >>confdefs.h <<_ACEOF 8661#define SIZEOF_LONG $ac_cv_sizeof_long 8662_ACEOF 8663 8664 8665# The cast to long int works around a bug in the HP C Compiler 8666# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8667# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8668# This bug is HP SR number 8606223364. 8669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 8670$as_echo_n "checking size of long long... " >&6; } 8671if ${ac_cv_sizeof_long_long+:} false; then : 8672 $as_echo_n "(cached) " >&6 8673else 8674 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 8675 8676else 8677 if test "$ac_cv_type_long_long" = yes; then 8678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8680as_fn_error 77 "cannot compute sizeof (long long) 8681See \`config.log' for more details" "$LINENO" 5; } 8682 else 8683 ac_cv_sizeof_long_long=0 8684 fi 8685fi 8686 8687fi 8688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 8689$as_echo "$ac_cv_sizeof_long_long" >&6; } 8690 8691 8692 8693cat >>confdefs.h <<_ACEOF 8694#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 8695_ACEOF 8696 8697 8698# The cast to long int works around a bug in the HP C Compiler 8699# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8700# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8701# This bug is HP SR number 8606223364. 8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 8703$as_echo_n "checking size of void *... " >&6; } 8704if ${ac_cv_sizeof_void_p+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 8708 8709else 8710 if test "$ac_cv_type_void_p" = yes; then 8711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8713as_fn_error 77 "cannot compute sizeof (void *) 8714See \`config.log' for more details" "$LINENO" 5; } 8715 else 8716 ac_cv_sizeof_void_p=0 8717 fi 8718fi 8719 8720fi 8721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 8722$as_echo "$ac_cv_sizeof_void_p" >&6; } 8723 8724 8725 8726cat >>confdefs.h <<_ACEOF 8727#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 8728_ACEOF 8729 8730 8731# The cast to long int works around a bug in the HP C Compiler 8732# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8733# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8734# This bug is HP SR number 8606223364. 8735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 8736$as_echo_n "checking size of short... " >&6; } 8737if ${ac_cv_sizeof_short+:} false; then : 8738 $as_echo_n "(cached) " >&6 8739else 8740 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 8741 8742else 8743 if test "$ac_cv_type_short" = yes; then 8744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8746as_fn_error 77 "cannot compute sizeof (short) 8747See \`config.log' for more details" "$LINENO" 5; } 8748 else 8749 ac_cv_sizeof_short=0 8750 fi 8751fi 8752 8753fi 8754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 8755$as_echo "$ac_cv_sizeof_short" >&6; } 8756 8757 8758 8759cat >>confdefs.h <<_ACEOF 8760#define SIZEOF_SHORT $ac_cv_sizeof_short 8761_ACEOF 8762 8763 8764# The cast to long int works around a bug in the HP C Compiler 8765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8767# This bug is HP SR number 8606223364. 8768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 8769$as_echo_n "checking size of float... " >&6; } 8770if ${ac_cv_sizeof_float+:} false; then : 8771 $as_echo_n "(cached) " >&6 8772else 8773 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 8774 8775else 8776 if test "$ac_cv_type_float" = yes; then 8777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8779as_fn_error 77 "cannot compute sizeof (float) 8780See \`config.log' for more details" "$LINENO" 5; } 8781 else 8782 ac_cv_sizeof_float=0 8783 fi 8784fi 8785 8786fi 8787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 8788$as_echo "$ac_cv_sizeof_float" >&6; } 8789 8790 8791 8792cat >>confdefs.h <<_ACEOF 8793#define SIZEOF_FLOAT $ac_cv_sizeof_float 8794_ACEOF 8795 8796 8797# The cast to long int works around a bug in the HP C Compiler 8798# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8799# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8800# This bug is HP SR number 8606223364. 8801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 8802$as_echo_n "checking size of double... " >&6; } 8803if ${ac_cv_sizeof_double+:} false; then : 8804 $as_echo_n "(cached) " >&6 8805else 8806 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 8807 8808else 8809 if test "$ac_cv_type_double" = yes; then 8810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8812as_fn_error 77 "cannot compute sizeof (double) 8813See \`config.log' for more details" "$LINENO" 5; } 8814 else 8815 ac_cv_sizeof_double=0 8816 fi 8817fi 8818 8819fi 8820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 8821$as_echo "$ac_cv_sizeof_double" >&6; } 8822 8823 8824 8825cat >>confdefs.h <<_ACEOF 8826#define SIZEOF_DOUBLE $ac_cv_sizeof_double 8827_ACEOF 8828 8829 8830# The cast to long int works around a bug in the HP C Compiler 8831# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8832# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8833# This bug is HP SR number 8606223364. 8834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 8835$as_echo_n "checking size of fpos_t... " >&6; } 8836if ${ac_cv_sizeof_fpos_t+:} false; then : 8837 $as_echo_n "(cached) " >&6 8838else 8839 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then : 8840 8841else 8842 if test "$ac_cv_type_fpos_t" = yes; then 8843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8845as_fn_error 77 "cannot compute sizeof (fpos_t) 8846See \`config.log' for more details" "$LINENO" 5; } 8847 else 8848 ac_cv_sizeof_fpos_t=0 8849 fi 8850fi 8851 8852fi 8853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 8854$as_echo "$ac_cv_sizeof_fpos_t" >&6; } 8855 8856 8857 8858cat >>confdefs.h <<_ACEOF 8859#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t 8860_ACEOF 8861 8862 8863# The cast to long int works around a bug in the HP C Compiler 8864# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8865# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8866# This bug is HP SR number 8606223364. 8867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 8868$as_echo_n "checking size of size_t... " >&6; } 8869if ${ac_cv_sizeof_size_t+:} false; then : 8870 $as_echo_n "(cached) " >&6 8871else 8872 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 8873 8874else 8875 if test "$ac_cv_type_size_t" = yes; then 8876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8877$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8878as_fn_error 77 "cannot compute sizeof (size_t) 8879See \`config.log' for more details" "$LINENO" 5; } 8880 else 8881 ac_cv_sizeof_size_t=0 8882 fi 8883fi 8884 8885fi 8886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 8887$as_echo "$ac_cv_sizeof_size_t" >&6; } 8888 8889 8890 8891cat >>confdefs.h <<_ACEOF 8892#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 8893_ACEOF 8894 8895 8896# The cast to long int works around a bug in the HP C Compiler 8897# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8898# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8899# This bug is HP SR number 8606223364. 8900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 8901$as_echo_n "checking size of pid_t... " >&6; } 8902if ${ac_cv_sizeof_pid_t+:} false; then : 8903 $as_echo_n "(cached) " >&6 8904else 8905 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : 8906 8907else 8908 if test "$ac_cv_type_pid_t" = yes; then 8909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8910$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8911as_fn_error 77 "cannot compute sizeof (pid_t) 8912See \`config.log' for more details" "$LINENO" 5; } 8913 else 8914 ac_cv_sizeof_pid_t=0 8915 fi 8916fi 8917 8918fi 8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 8920$as_echo "$ac_cv_sizeof_pid_t" >&6; } 8921 8922 8923 8924cat >>confdefs.h <<_ACEOF 8925#define SIZEOF_PID_T $ac_cv_sizeof_pid_t 8926_ACEOF 8927 8928 8929# The cast to long int works around a bug in the HP C Compiler 8930# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8931# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8932# This bug is HP SR number 8606223364. 8933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 8934$as_echo_n "checking size of uintptr_t... " >&6; } 8935if ${ac_cv_sizeof_uintptr_t+:} false; then : 8936 $as_echo_n "(cached) " >&6 8937else 8938 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : 8939 8940else 8941 if test "$ac_cv_type_uintptr_t" = yes; then 8942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8944as_fn_error 77 "cannot compute sizeof (uintptr_t) 8945See \`config.log' for more details" "$LINENO" 5; } 8946 else 8947 ac_cv_sizeof_uintptr_t=0 8948 fi 8949fi 8950 8951fi 8952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 8953$as_echo "$ac_cv_sizeof_uintptr_t" >&6; } 8954 8955 8956 8957cat >>confdefs.h <<_ACEOF 8958#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t 8959_ACEOF 8960 8961 8962 8963 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 8965$as_echo_n "checking for long double... " >&6; } 8966if ${ac_cv_type_long_double+:} false; then : 8967 $as_echo_n "(cached) " >&6 8968else 8969 if test "$GCC" = yes; then 8970 ac_cv_type_long_double=yes 8971 else 8972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8973/* end confdefs.h. */ 8974/* The Stardent Vistra knows sizeof (long double), but does 8975 not support it. */ 8976 long double foo = 0.0L; 8977int 8978main () 8979{ 8980static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 8981 sizeof (double) <= sizeof (long double))]; 8982test_array [0] = 0; 8983return test_array [0]; 8984 8985 ; 8986 return 0; 8987} 8988_ACEOF 8989if ac_fn_c_try_compile "$LINENO"; then : 8990 ac_cv_type_long_double=yes 8991else 8992 ac_cv_type_long_double=no 8993fi 8994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8995 fi 8996fi 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 8998$as_echo "$ac_cv_type_long_double" >&6; } 8999 if test $ac_cv_type_long_double = yes; then 9000 9001$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 9002 9003 fi 9004 9005# The cast to long int works around a bug in the HP C Compiler 9006# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9007# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9008# This bug is HP SR number 8606223364. 9009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 9010$as_echo_n "checking size of long double... " >&6; } 9011if ${ac_cv_sizeof_long_double+:} false; then : 9012 $as_echo_n "(cached) " >&6 9013else 9014 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 9015 9016else 9017 if test "$ac_cv_type_long_double" = yes; then 9018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9020as_fn_error 77 "cannot compute sizeof (long double) 9021See \`config.log' for more details" "$LINENO" 5; } 9022 else 9023 ac_cv_sizeof_long_double=0 9024 fi 9025fi 9026 9027fi 9028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 9029$as_echo "$ac_cv_sizeof_long_double" >&6; } 9030 9031 9032 9033cat >>confdefs.h <<_ACEOF 9034#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 9035_ACEOF 9036 9037 9038 9039# The cast to long int works around a bug in the HP C Compiler 9040# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9041# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9042# This bug is HP SR number 8606223364. 9043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 9044$as_echo_n "checking size of _Bool... " >&6; } 9045if ${ac_cv_sizeof__Bool+:} false; then : 9046 $as_echo_n "(cached) " >&6 9047else 9048 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : 9049 9050else 9051 if test "$ac_cv_type__Bool" = yes; then 9052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9054as_fn_error 77 "cannot compute sizeof (_Bool) 9055See \`config.log' for more details" "$LINENO" 5; } 9056 else 9057 ac_cv_sizeof__Bool=0 9058 fi 9059fi 9060 9061fi 9062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 9063$as_echo "$ac_cv_sizeof__Bool" >&6; } 9064 9065 9066 9067cat >>confdefs.h <<_ACEOF 9068#define SIZEOF__BOOL $ac_cv_sizeof__Bool 9069_ACEOF 9070 9071 9072 9073# The cast to long int works around a bug in the HP C Compiler 9074# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9075# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9076# This bug is HP SR number 8606223364. 9077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 9078$as_echo_n "checking size of off_t... " >&6; } 9079if ${ac_cv_sizeof_off_t+:} false; then : 9080 $as_echo_n "(cached) " >&6 9081else 9082 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " 9083#ifdef HAVE_SYS_TYPES_H 9084#include <sys/types.h> 9085#endif 9086 9087"; then : 9088 9089else 9090 if test "$ac_cv_type_off_t" = yes; then 9091 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9092$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9093as_fn_error 77 "cannot compute sizeof (off_t) 9094See \`config.log' for more details" "$LINENO" 5; } 9095 else 9096 ac_cv_sizeof_off_t=0 9097 fi 9098fi 9099 9100fi 9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 9102$as_echo "$ac_cv_sizeof_off_t" >&6; } 9103 9104 9105 9106cat >>confdefs.h <<_ACEOF 9107#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 9108_ACEOF 9109 9110 9111 9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 9113$as_echo_n "checking whether to enable large file support... " >&6; } 9114if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ 9115 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then 9116 9117$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h 9118 9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9120$as_echo "yes" >&6; } 9121else 9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9123$as_echo "no" >&6; } 9124fi 9125 9126# The cast to long int works around a bug in the HP C Compiler 9127# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9128# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9129# This bug is HP SR number 8606223364. 9130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 9131$as_echo_n "checking size of time_t... " >&6; } 9132if ${ac_cv_sizeof_time_t+:} false; then : 9133 $as_echo_n "(cached) " >&6 9134else 9135 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 9136#ifdef HAVE_SYS_TYPES_H 9137#include <sys/types.h> 9138#endif 9139#ifdef HAVE_TIME_H 9140#include <time.h> 9141#endif 9142 9143"; then : 9144 9145else 9146 if test "$ac_cv_type_time_t" = yes; then 9147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9149as_fn_error 77 "cannot compute sizeof (time_t) 9150See \`config.log' for more details" "$LINENO" 5; } 9151 else 9152 ac_cv_sizeof_time_t=0 9153 fi 9154fi 9155 9156fi 9157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 9158$as_echo "$ac_cv_sizeof_time_t" >&6; } 9159 9160 9161 9162cat >>confdefs.h <<_ACEOF 9163#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 9164_ACEOF 9165 9166 9167 9168# if have pthread_t then define SIZEOF_PTHREAD_T 9169ac_save_cc="$CC" 9170if test "$ac_cv_kpthread" = "yes" 9171then CC="$CC -Kpthread" 9172elif test "$ac_cv_kthread" = "yes" 9173then CC="$CC -Kthread" 9174elif test "$ac_cv_pthread" = "yes" 9175then CC="$CC -pthread" 9176fi 9177 9178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 9179$as_echo_n "checking for pthread_t... " >&6; } 9180have_pthread_t=no 9181cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9182/* end confdefs.h. */ 9183 9184 #include <pthread.h> 9185int 9186main () 9187{ 9188pthread_t x; x = *(pthread_t*)0; 9189 ; 9190 return 0; 9191} 9192 9193_ACEOF 9194if ac_fn_c_try_compile "$LINENO"; then : 9195 have_pthread_t=yes 9196fi 9197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 9199$as_echo "$have_pthread_t" >&6; } 9200if test "$have_pthread_t" = yes ; then 9201 # The cast to long int works around a bug in the HP C Compiler 9202# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9203# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9204# This bug is HP SR number 8606223364. 9205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 9206$as_echo_n "checking size of pthread_t... " >&6; } 9207if ${ac_cv_sizeof_pthread_t+:} false; then : 9208 $as_echo_n "(cached) " >&6 9209else 9210 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 9211#ifdef HAVE_PTHREAD_H 9212#include <pthread.h> 9213#endif 9214 9215"; then : 9216 9217else 9218 if test "$ac_cv_type_pthread_t" = yes; then 9219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9221as_fn_error 77 "cannot compute sizeof (pthread_t) 9222See \`config.log' for more details" "$LINENO" 5; } 9223 else 9224 ac_cv_sizeof_pthread_t=0 9225 fi 9226fi 9227 9228fi 9229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 9230$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 9231 9232 9233 9234cat >>confdefs.h <<_ACEOF 9235#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 9236_ACEOF 9237 9238 9239fi 9240 9241# Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. 9242# This checking will be unnecessary after removing deprecated TLS API. 9243# The cast to long int works around a bug in the HP C Compiler 9244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9246# This bug is HP SR number 8606223364. 9247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 9248$as_echo_n "checking size of pthread_key_t... " >&6; } 9249if ${ac_cv_sizeof_pthread_key_t+:} false; then : 9250 $as_echo_n "(cached) " >&6 9251else 9252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> 9253"; then : 9254 9255else 9256 if test "$ac_cv_type_pthread_key_t" = yes; then 9257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9259as_fn_error 77 "cannot compute sizeof (pthread_key_t) 9260See \`config.log' for more details" "$LINENO" 5; } 9261 else 9262 ac_cv_sizeof_pthread_key_t=0 9263 fi 9264fi 9265 9266fi 9267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 9268$as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } 9269 9270 9271 9272cat >>confdefs.h <<_ACEOF 9273#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t 9274_ACEOF 9275 9276 9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 9278$as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } 9279if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then 9280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9281/* end confdefs.h. */ 9282#include <pthread.h> 9283int 9284main () 9285{ 9286pthread_key_t k; k * 1; 9287 ; 9288 return 0; 9289} 9290_ACEOF 9291if ac_fn_c_try_compile "$LINENO"; then : 9292 ac_pthread_key_t_is_arithmetic_type=yes 9293else 9294 ac_pthread_key_t_is_arithmetic_type=no 9295 9296fi 9297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 9299$as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } 9300 if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then 9301 9302$as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h 9303 9304 fi 9305else 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9307$as_echo "no" >&6; } 9308fi 9309CC="$ac_save_cc" 9310 9311 9312case $ac_sys_system/$ac_sys_release in 9313 Darwin/[01567]\..*) 9314 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" 9315 ;; 9316 Darwin/*) 9317 OTHER_LIBTOOL_OPT="" 9318 ;; 9319esac 9320 9321 9322 9323case $ac_sys_system/$ac_sys_release in 9324 Darwin/[01567]\..*) 9325 LIBTOOL_CRUFT="-framework System -lcc_dynamic" 9326 if test "${enable_universalsdk}"; then 9327 : 9328 else 9329 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" 9330 fi 9331 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9332 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 9333 Darwin/*) 9334 gcc_version=`gcc -dumpversion` 9335 if test ${gcc_version} '<' 4.0 9336 then 9337 LIBTOOL_CRUFT="-lcc_dynamic" 9338 else 9339 LIBTOOL_CRUFT="" 9340 fi 9341 if test "$cross_compiling" = yes; then : 9342 ac_osx_32bit=yes 9343else 9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9345/* end confdefs.h. */ 9346 9347 #include <unistd.h> 9348 int main(int argc, char*argv[]) 9349 { 9350 if (sizeof(long) == 4) { 9351 return 0; 9352 } else { 9353 return 1; 9354 } 9355 } 9356 9357_ACEOF 9358if ac_fn_c_try_run "$LINENO"; then : 9359 ac_osx_32bit=yes 9360else 9361 ac_osx_32bit=no 9362fi 9363rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9364 conftest.$ac_objext conftest.beam conftest.$ac_ext 9365fi 9366 9367 9368 if test "${ac_osx_32bit}" = "yes"; then 9369 case `/usr/bin/arch` in 9370 i386) 9371 MACOSX_DEFAULT_ARCH="i386" 9372 ;; 9373 ppc) 9374 MACOSX_DEFAULT_ARCH="ppc" 9375 ;; 9376 *) 9377 as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 9378 ;; 9379 esac 9380 else 9381 case `/usr/bin/arch` in 9382 i386) 9383 MACOSX_DEFAULT_ARCH="x86_64" 9384 ;; 9385 ppc) 9386 MACOSX_DEFAULT_ARCH="ppc64" 9387 ;; 9388 arm64) 9389 MACOSX_DEFAULT_ARCH="arm64" 9390 ;; 9391 *) 9392 as_fn_error $? "Unexpected output of 'arch' on macOS" "$LINENO" 5 9393 ;; 9394 esac 9395 9396 fi 9397 9398 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" 9399 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9400 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 9401esac 9402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 9403$as_echo_n "checking for --enable-framework... " >&6; } 9404if test "$enable_framework" 9405then 9406 BASECFLAGS="$BASECFLAGS -fno-common -dynamic" 9407 # -F. is needed to allow linking to the framework while 9408 # in the build location. 9409 9410$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h 9411 9412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9413$as_echo "yes" >&6; } 9414 if test $enable_shared = "yes" 9415 then 9416 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 9417 fi 9418else 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9420$as_echo "no" >&6; } 9421fi 9422 9423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 9424$as_echo_n "checking for dyld... " >&6; } 9425case $ac_sys_system/$ac_sys_release in 9426 Darwin/*) 9427 9428$as_echo "#define WITH_DYLD 1" >>confdefs.h 9429 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 9431$as_echo "always on for Darwin" >&6; } 9432 ;; 9433 *) 9434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9435$as_echo "no" >&6; } 9436 ;; 9437esac 9438 9439# Set info about shared libraries. 9440 9441 9442 9443 9444 9445 9446 9447# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) 9448# -- usually .so, .sl on HP-UX, .dll on Cygwin 9449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 9450$as_echo_n "checking the extension of shared libraries... " >&6; } 9451if test -z "$SHLIB_SUFFIX"; then 9452 case $ac_sys_system in 9453 hp*|HP*) 9454 case `uname -m` in 9455 ia64) SHLIB_SUFFIX=.so;; 9456 *) SHLIB_SUFFIX=.sl;; 9457 esac 9458 ;; 9459 CYGWIN*) SHLIB_SUFFIX=.dll;; 9460 *) SHLIB_SUFFIX=.so;; 9461 esac 9462fi 9463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 9464$as_echo "$SHLIB_SUFFIX" >&6; } 9465 9466# LDSHARED is the ld *command* used to create shared library 9467# -- "cc -G" on SunOS 5.x. 9468# (Shared libraries in this instance are shared modules to be loaded into 9469# Python, as opposed to building Python itself as a shared library.) 9470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 9471$as_echo_n "checking LDSHARED... " >&6; } 9472if test -z "$LDSHARED" 9473then 9474 case $ac_sys_system/$ac_sys_release in 9475 AIX*) 9476 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" 9477 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" 9478 ;; 9479 SunOS/5*) 9480 if test "$GCC" = "yes" ; then 9481 LDSHARED='$(CC) -shared' 9482 LDCXXSHARED='$(CXX) -shared' 9483 else 9484 LDSHARED='$(CC) -G' 9485 LDCXXSHARED='$(CXX) -G' 9486 fi ;; 9487 hp*|HP*) 9488 if test "$GCC" = "yes" ; then 9489 LDSHARED='$(CC) -shared' 9490 LDCXXSHARED='$(CXX) -shared' 9491 else 9492 LDSHARED='$(CC) -b' 9493 LDCXXSHARED='$(CXX) -b' 9494 fi ;; 9495 Darwin/1.3*) 9496 LDSHARED='$(CC) -bundle' 9497 LDCXXSHARED='$(CXX) -bundle' 9498 if test "$enable_framework" ; then 9499 # Link against the framework. All externals should be defined. 9500 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9501 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9502 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9503 else 9504 # No framework. Ignore undefined symbols, assuming they come from Python 9505 LDSHARED="$LDSHARED -undefined suppress" 9506 LDCXXSHARED="$LDCXXSHARED -undefined suppress" 9507 fi ;; 9508 Darwin/1.4*|Darwin/5.*|Darwin/6.*) 9509 LDSHARED='$(CC) -bundle' 9510 LDCXXSHARED='$(CXX) -bundle' 9511 if test "$enable_framework" ; then 9512 # Link against the framework. All externals should be defined. 9513 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9514 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9515 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9516 else 9517 # No framework, use the Python app as bundle-loader 9518 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 9519 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9520 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9521 fi ;; 9522 Darwin/*) 9523 # Use -undefined dynamic_lookup whenever possible (10.3 and later). 9524 # This allows an extension to be used in any Python 9525 9526 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 9527 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 9528 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 9529 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 9530 if test ${dep_target_major} -eq 10 && \ 9531 test ${dep_target_minor} -le 2 9532 then 9533 # building for OS X 10.0 through 10.2 9534 LDSHARED='$(CC) -bundle' 9535 LDCXXSHARED='$(CXX) -bundle' 9536 if test "$enable_framework" ; then 9537 # Link against the framework. All externals should be defined. 9538 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9539 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9540 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9541 else 9542 # No framework, use the Python app as bundle-loader 9543 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 9544 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9545 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9546 fi 9547 else 9548 # building for OS X 10.3 and later 9549 LDSHARED='$(CC) -bundle -undefined dynamic_lookup' 9550 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' 9551 BLDSHARED="$LDSHARED" 9552 fi 9553 ;; 9554 Linux*|GNU*|QNX*|VxWorks*) 9555 LDSHARED='$(CC) -shared' 9556 LDCXXSHARED='$(CXX) -shared';; 9557 FreeBSD*) 9558 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9559 then 9560 LDSHARED='$(CC) -shared' 9561 LDCXXSHARED='$(CXX) -shared' 9562 else 9563 LDSHARED="ld -Bshareable" 9564 fi;; 9565 OpenBSD*) 9566 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9567 then 9568 LDSHARED='$(CC) -shared $(CCSHARED)' 9569 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 9570 else 9571 case "6.3-DPORTS" in 9572 [01].* | 2.[0-7] | 2.[0-7].*) 9573 LDSHARED="ld -Bshareable ${LDFLAGS}" 9574 ;; 9575 *) 9576 LDSHARED='$(CC) -shared $(CCSHARED)' 9577 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 9578 ;; 9579 esac 9580 fi;; 9581 NetBSD*|DragonFly*) 9582 LDSHARED='$(CC) -shared' 9583 LDCXXSHARED='$(CXX) -shared';; 9584 OpenUNIX*|UnixWare*) 9585 if test "$GCC" = "yes" ; then 9586 LDSHARED='$(CC) -shared' 9587 LDCXXSHARED='$(CXX) -shared' 9588 else 9589 LDSHARED='$(CC) -G' 9590 LDCXXSHARED='$(CXX) -G' 9591 fi;; 9592 SCO_SV*) 9593 LDSHARED='$(CC) -Wl,-G,-Bexport' 9594 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; 9595 CYGWIN*) 9596 LDSHARED="gcc -shared -Wl,--enable-auto-image-base" 9597 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; 9598 *) LDSHARED="ld";; 9599 esac 9600fi 9601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 9602$as_echo "$LDSHARED" >&6; } 9603LDCXXSHARED=${LDCXXSHARED-$LDSHARED} 9604BLDSHARED=${BLDSHARED-$LDSHARED} 9605# CCSHARED are the C *flags* used to create objects to go into a shared 9606# library (module) -- this is only needed for a few systems 9607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 9608$as_echo_n "checking CCSHARED... " >&6; } 9609if test -z "$CCSHARED" 9610then 9611 case $ac_sys_system/$ac_sys_release in 9612 SunOS*) if test "$GCC" = yes; 9613 then CCSHARED="-fPIC"; 9614 elif test `uname -p` = sparc; 9615 then CCSHARED="-xcode=pic32"; 9616 else CCSHARED="-Kpic"; 9617 fi;; 9618 hp*|HP*) if test "$GCC" = yes; 9619 then CCSHARED="-fPIC"; 9620 else CCSHARED="+z"; 9621 fi;; 9622 Linux-android*) ;; 9623 Linux*|GNU*) CCSHARED="-fPIC";; 9624 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 9625 OpenUNIX*|UnixWare*) 9626 if test "$GCC" = "yes" 9627 then CCSHARED="-fPIC" 9628 else CCSHARED="-KPIC" 9629 fi;; 9630 SCO_SV*) 9631 if test "$GCC" = "yes" 9632 then CCSHARED="-fPIC" 9633 else CCSHARED="-Kpic -belf" 9634 fi;; 9635 VxWorks*) 9636 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic" 9637 esac 9638fi 9639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 9640$as_echo "$CCSHARED" >&6; } 9641# LINKFORSHARED are the flags passed to the $(CC) command that links 9642# the python executable -- this is only needed for a few systems 9643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 9644$as_echo_n "checking LINKFORSHARED... " >&6; } 9645if test -z "$LINKFORSHARED" 9646then 9647 case $ac_sys_system/$ac_sys_release in 9648 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; 9649 hp*|HP*) 9650 LINKFORSHARED="-Wl,-E -Wl,+s";; 9651# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 9652 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; 9653 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 9654 # -u libsys_s pulls in all symbols in libsys 9655 Darwin/*) 9656 LINKFORSHARED="$extra_undefs -framework CoreFoundation" 9657 9658 # Issue #18075: the default maximum stack size (8MBytes) is too 9659 # small for the default recursion limit. Increase the stack size 9660 # to ensure that tests don't crash 9661 # Note: This matches the value of THREAD_STACK_SIZE in 9662 # thread_pthread.h 9663 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" 9664 9665 if test "$enable_framework" 9666 then 9667 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9668 fi 9669 LINKFORSHARED="$LINKFORSHARED";; 9670 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; 9671 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; 9672 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; 9673 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) 9674 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9675 then 9676 LINKFORSHARED="-Wl,--export-dynamic" 9677 fi;; 9678 SunOS/5*) case $CC in 9679 *gcc*) 9680 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null 9681 then 9682 LINKFORSHARED="-Xlinker --export-dynamic" 9683 fi;; 9684 esac;; 9685 CYGWIN*) 9686 if test $enable_shared = "no" 9687 then 9688 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' 9689 fi;; 9690 QNX*) 9691 # -Wl,-E causes the symbols to be added to the dynamic 9692 # symbol table so that they can be found when a module 9693 # is loaded. -N 2048K causes the stack size to be set 9694 # to 2048 kilobytes so that the stack doesn't overflow 9695 # when running test_compile.py. 9696 LINKFORSHARED='-Wl,-E -N 2048K';; 9697 VxWorks*) 9698 LINKFORSHARED='--export-dynamic';; 9699 esac 9700fi 9701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 9702$as_echo "$LINKFORSHARED" >&6; } 9703 9704 9705 9706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 9707$as_echo_n "checking CFLAGSFORSHARED... " >&6; } 9708if test ! "$LIBRARY" = "$LDLIBRARY" 9709then 9710 case $ac_sys_system in 9711 CYGWIN*) 9712 # Cygwin needs CCSHARED when building extension DLLs 9713 # but not when building the interpreter DLL. 9714 CFLAGSFORSHARED='';; 9715 *) 9716 CFLAGSFORSHARED='$(CCSHARED)' 9717 esac 9718fi 9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 9720$as_echo "$CFLAGSFORSHARED" >&6; } 9721 9722# SHLIBS are libraries (except -lc and -lm) to link to the python shared 9723# library (with --enable-shared). 9724# For platforms on which shared libraries are not allowed to have unresolved 9725# symbols, this must be set to $(LIBS) (expanded by make). We do this even 9726# if it is not required, since it creates a dependency of the shared library 9727# to LIBS. This, in turn, means that applications linking the shared libpython 9728# don't need to link LIBS explicitly. The default should be only changed 9729# on systems where this approach causes problems. 9730 9731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 9732$as_echo_n "checking SHLIBS... " >&6; } 9733case "$ac_sys_system" in 9734 *) 9735 SHLIBS='$(LIBS)';; 9736esac 9737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 9738$as_echo "$SHLIBS" >&6; } 9739 9740 9741# checks for libraries 9742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 9743$as_echo_n "checking for sendfile in -lsendfile... " >&6; } 9744if ${ac_cv_lib_sendfile_sendfile+:} false; then : 9745 $as_echo_n "(cached) " >&6 9746else 9747 ac_check_lib_save_LIBS=$LIBS 9748LIBS="-lsendfile $LIBS" 9749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9750/* end confdefs.h. */ 9751 9752/* Override any GCC internal prototype to avoid an error. 9753 Use char because int might match the return type of a GCC 9754 builtin and then its argument prototype would still apply. */ 9755#ifdef __cplusplus 9756extern "C" 9757#endif 9758char sendfile (); 9759int 9760main () 9761{ 9762return sendfile (); 9763 ; 9764 return 0; 9765} 9766_ACEOF 9767if ac_fn_c_try_link "$LINENO"; then : 9768 ac_cv_lib_sendfile_sendfile=yes 9769else 9770 ac_cv_lib_sendfile_sendfile=no 9771fi 9772rm -f core conftest.err conftest.$ac_objext \ 9773 conftest$ac_exeext conftest.$ac_ext 9774LIBS=$ac_check_lib_save_LIBS 9775fi 9776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 9777$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } 9778if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : 9779 cat >>confdefs.h <<_ACEOF 9780#define HAVE_LIBSENDFILE 1 9781_ACEOF 9782 9783 LIBS="-lsendfile $LIBS" 9784 9785fi 9786 9787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9788$as_echo_n "checking for dlopen in -ldl... " >&6; } 9789if ${ac_cv_lib_dl_dlopen+:} false; then : 9790 $as_echo_n "(cached) " >&6 9791else 9792 ac_check_lib_save_LIBS=$LIBS 9793LIBS="-ldl $LIBS" 9794cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9795/* end confdefs.h. */ 9796 9797/* Override any GCC internal prototype to avoid an error. 9798 Use char because int might match the return type of a GCC 9799 builtin and then its argument prototype would still apply. */ 9800#ifdef __cplusplus 9801extern "C" 9802#endif 9803char dlopen (); 9804int 9805main () 9806{ 9807return dlopen (); 9808 ; 9809 return 0; 9810} 9811_ACEOF 9812if ac_fn_c_try_link "$LINENO"; then : 9813 ac_cv_lib_dl_dlopen=yes 9814else 9815 ac_cv_lib_dl_dlopen=no 9816fi 9817rm -f core conftest.err conftest.$ac_objext \ 9818 conftest$ac_exeext conftest.$ac_ext 9819LIBS=$ac_check_lib_save_LIBS 9820fi 9821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9822$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9823if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9824 cat >>confdefs.h <<_ACEOF 9825#define HAVE_LIBDL 1 9826_ACEOF 9827 9828 LIBS="-ldl $LIBS" 9829 9830fi 9831 # Dynamic linking for SunOS/Solaris and SYSV 9832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9833$as_echo_n "checking for shl_load in -ldld... " >&6; } 9834if ${ac_cv_lib_dld_shl_load+:} false; then : 9835 $as_echo_n "(cached) " >&6 9836else 9837 ac_check_lib_save_LIBS=$LIBS 9838LIBS="-ldld $LIBS" 9839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9840/* end confdefs.h. */ 9841 9842/* Override any GCC internal prototype to avoid an error. 9843 Use char because int might match the return type of a GCC 9844 builtin and then its argument prototype would still apply. */ 9845#ifdef __cplusplus 9846extern "C" 9847#endif 9848char shl_load (); 9849int 9850main () 9851{ 9852return shl_load (); 9853 ; 9854 return 0; 9855} 9856_ACEOF 9857if ac_fn_c_try_link "$LINENO"; then : 9858 ac_cv_lib_dld_shl_load=yes 9859else 9860 ac_cv_lib_dld_shl_load=no 9861fi 9862rm -f core conftest.err conftest.$ac_objext \ 9863 conftest$ac_exeext conftest.$ac_ext 9864LIBS=$ac_check_lib_save_LIBS 9865fi 9866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9867$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9868if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 9869 cat >>confdefs.h <<_ACEOF 9870#define HAVE_LIBDLD 1 9871_ACEOF 9872 9873 LIBS="-ldld $LIBS" 9874 9875fi 9876 # Dynamic linking for HP-UX 9877 9878# checks for uuid.h location 9879for ac_header in ignore_uuid/uuid.h uuid.h 9880do : 9881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9882ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9884 cat >>confdefs.h <<_ACEOF 9885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9886_ACEOF 9887 9888fi 9889 9890done 9891 9892 9893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 9894$as_echo_n "checking for uuid_generate_time_safe... " >&6; } 9895cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9896/* end confdefs.h. */ 9897#include <ignore_uuid/uuid.h> 9898int 9899main () 9900{ 9901 9902#ifndef uuid_generate_time_safe 9903void *x = uuid_generate_time_safe 9904#endif 9905 9906 ; 9907 return 0; 9908} 9909_ACEOF 9910if ac_fn_c_try_compile "$LINENO"; then : 9911 9912$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h 9913 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9915$as_echo "yes" >&6; } 9916else 9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9918$as_echo "no" >&6; } 9919 9920fi 9921rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9922 9923save_LIBS=$LIBS 9924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate_time_safe" >&5 9925$as_echo_n "checking for library containing uuid_generate_time_safe... " >&6; } 9926if ${ac_cv_search_uuid_generate_time_safe+:} false; then : 9927 $as_echo_n "(cached) " >&6 9928else 9929 ac_func_search_save_LIBS=$LIBS 9930cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9931/* end confdefs.h. */ 9932 9933/* Override any GCC internal prototype to avoid an error. 9934 Use char because int might match the return type of a GCC 9935 builtin and then its argument prototype would still apply. */ 9936#ifdef __cplusplus 9937extern "C" 9938#endif 9939char uuid_generate_time_safe (); 9940int 9941main () 9942{ 9943return uuid_generate_time_safe (); 9944 ; 9945 return 0; 9946} 9947_ACEOF 9948for ac_lib in '' uuid; do 9949 if test -z "$ac_lib"; then 9950 ac_res="none required" 9951 else 9952 ac_res=-l$ac_lib 9953 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9954 fi 9955 if ac_fn_c_try_link "$LINENO"; then : 9956 ac_cv_search_uuid_generate_time_safe=$ac_res 9957fi 9958rm -f core conftest.err conftest.$ac_objext \ 9959 conftest$ac_exeext 9960 if ${ac_cv_search_uuid_generate_time_safe+:} false; then : 9961 break 9962fi 9963done 9964if ${ac_cv_search_uuid_generate_time_safe+:} false; then : 9965 9966else 9967 ac_cv_search_uuid_generate_time_safe=no 9968fi 9969rm conftest.$ac_ext 9970LIBS=$ac_func_search_save_LIBS 9971fi 9972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate_time_safe" >&5 9973$as_echo "$ac_cv_search_uuid_generate_time_safe" >&6; } 9974ac_res=$ac_cv_search_uuid_generate_time_safe 9975if test "$ac_res" != no; then : 9976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9977 9978 9979$as_echo "#define HAVE_LIBUUID 1" >>confdefs.h 9980, 9981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9982$as_echo "yes" >&6; } 9983 9984else 9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9986$as_echo "no" >&6; } 9987 9988fi 9989 9990LIBS=$save_LIBS 9991 9992# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007) 9993# FreeBSD and OpenBSD provides support as well 9994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 9995$as_echo_n "checking for uuid_create... " >&6; } 9996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9997/* end confdefs.h. */ 9998#include <uuid.h> 9999int 10000main () 10001{ 10002 10003#ifndef uuid_create 10004void *x = uuid_create 10005#endif 10006 10007 ; 10008 return 0; 10009} 10010_ACEOF 10011if ac_fn_c_try_compile "$LINENO"; then : 10012 10013$as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h 10014 10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10016$as_echo "yes" >&6; } 10017else 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10019$as_echo "no" >&6; } 10020 10021fi 10022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10023 10024# Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet 10025# stream in big-endian byte-order 10026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 10027$as_echo_n "checking for uuid_enc_be... " >&6; } 10028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10029/* end confdefs.h. */ 10030#include <uuid.h> 10031int 10032main () 10033{ 10034 10035#ifndef uuid_enc_be 10036void *x = uuid_enc_be 10037#endif 10038 10039 ; 10040 return 0; 10041} 10042_ACEOF 10043if ac_fn_c_try_compile "$LINENO"; then : 10044 10045$as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h 10046 10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10048$as_echo "yes" >&6; } 10049else 10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10051$as_echo "no" >&6; } 10052 10053fi 10054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10055 10056# 'Real Time' functions on Solaris 10057# posix4 on Solaris 2.6 10058# pthread (first!) on Linux 10059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 10060$as_echo_n "checking for library containing sem_init... " >&6; } 10061if ${ac_cv_search_sem_init+:} false; then : 10062 $as_echo_n "(cached) " >&6 10063else 10064 ac_func_search_save_LIBS=$LIBS 10065cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10066/* end confdefs.h. */ 10067 10068/* Override any GCC internal prototype to avoid an error. 10069 Use char because int might match the return type of a GCC 10070 builtin and then its argument prototype would still apply. */ 10071#ifdef __cplusplus 10072extern "C" 10073#endif 10074char sem_init (); 10075int 10076main () 10077{ 10078return sem_init (); 10079 ; 10080 return 0; 10081} 10082_ACEOF 10083for ac_lib in '' pthread rt posix4; do 10084 if test -z "$ac_lib"; then 10085 ac_res="none required" 10086 else 10087 ac_res=-l$ac_lib 10088 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10089 fi 10090 if ac_fn_c_try_link "$LINENO"; then : 10091 ac_cv_search_sem_init=$ac_res 10092fi 10093rm -f core conftest.err conftest.$ac_objext \ 10094 conftest$ac_exeext 10095 if ${ac_cv_search_sem_init+:} false; then : 10096 break 10097fi 10098done 10099if ${ac_cv_search_sem_init+:} false; then : 10100 10101else 10102 ac_cv_search_sem_init=no 10103fi 10104rm conftest.$ac_ext 10105LIBS=$ac_func_search_save_LIBS 10106fi 10107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 10108$as_echo "$ac_cv_search_sem_init" >&6; } 10109ac_res=$ac_cv_search_sem_init 10110if test "$ac_res" != no; then : 10111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10112 10113fi 10114 10115 10116# check if we need libintl for locale functions 10117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 10118$as_echo_n "checking for textdomain in -lintl... " >&6; } 10119if ${ac_cv_lib_intl_textdomain+:} false; then : 10120 $as_echo_n "(cached) " >&6 10121else 10122 ac_check_lib_save_LIBS=$LIBS 10123LIBS="-lintl $LIBS" 10124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10125/* end confdefs.h. */ 10126 10127/* Override any GCC internal prototype to avoid an error. 10128 Use char because int might match the return type of a GCC 10129 builtin and then its argument prototype would still apply. */ 10130#ifdef __cplusplus 10131extern "C" 10132#endif 10133char textdomain (); 10134int 10135main () 10136{ 10137return textdomain (); 10138 ; 10139 return 0; 10140} 10141_ACEOF 10142if ac_fn_c_try_link "$LINENO"; then : 10143 ac_cv_lib_intl_textdomain=yes 10144else 10145 ac_cv_lib_intl_textdomain=no 10146fi 10147rm -f core conftest.err conftest.$ac_objext \ 10148 conftest$ac_exeext conftest.$ac_ext 10149LIBS=$ac_check_lib_save_LIBS 10150fi 10151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 10152$as_echo "$ac_cv_lib_intl_textdomain" >&6; } 10153if test "x$ac_cv_lib_intl_textdomain" = xyes; then : 10154 10155$as_echo "#define WITH_LIBINTL 1" >>confdefs.h 10156 10157 LIBS="-lintl $LIBS" 10158fi 10159 10160 10161# checks for system dependent C++ extensions support 10162case "$ac_sys_system" in 10163 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 10164$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } 10165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10166/* end confdefs.h. */ 10167 10168 #include <load.h> 10169int 10170main () 10171{ 10172loadAndInit("", 0, "") 10173 ; 10174 return 0; 10175} 10176 10177_ACEOF 10178if ac_fn_c_try_link "$LINENO"; then : 10179 10180 10181$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h 10182 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10184$as_echo "yes" >&6; } 10185 10186else 10187 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10189$as_echo "no" >&6; } 10190 10191fi 10192rm -f core conftest.err conftest.$ac_objext \ 10193 conftest$ac_exeext conftest.$ac_ext 10194# BUILD_GNU_TYPE + AIX_BUILDDATE are used to construct the platform_tag 10195# of the AIX system used to build/package Python executable. This tag serves 10196# as a baseline for bdist module packages 10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the system builddate" >&5 10198$as_echo_n "checking for the system builddate... " >&6; } 10199 AIX_BUILDDATE=$(lslpp -Lcq bos.mp64 | awk -F: '{ print $NF }') 10200 10201cat >>confdefs.h <<_ACEOF 10202#define AIX_BUILDDATE $AIX_BUILDDATE 10203_ACEOF 10204 10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIX_BUILDDATE" >&5 10206$as_echo "$AIX_BUILDDATE" >&6; } 10207 ;; 10208 *) ;; 10209esac 10210 10211# check for systems that require aligned memory access 10212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 10213$as_echo_n "checking aligned memory access is required... " >&6; } 10214if ${ac_cv_aligned_required+:} false; then : 10215 $as_echo_n "(cached) " >&6 10216else 10217 if test "$cross_compiling" = yes; then : 10218 ac_cv_aligned_required=yes 10219else 10220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10221/* end confdefs.h. */ 10222 10223int main() 10224{ 10225 char s[16]; 10226 int i, *p1, *p2; 10227 for (i=0; i < 16; i++) 10228 s[i] = i; 10229 p1 = (int*)(s+1); 10230 p2 = (int*)(s+2); 10231 if (*p1 == *p2) 10232 return 1; 10233 return 0; 10234} 10235_ACEOF 10236if ac_fn_c_try_run "$LINENO"; then : 10237 ac_cv_aligned_required=no 10238else 10239 ac_cv_aligned_required=yes 10240fi 10241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10242 conftest.$ac_objext conftest.beam conftest.$ac_ext 10243fi 10244 10245 10246fi 10247 10248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 10249$as_echo "$ac_cv_aligned_required" >&6; } 10250if test "$ac_cv_aligned_required" = yes ; then 10251 10252$as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h 10253 10254fi 10255 10256# str, bytes and memoryview hash algorithm 10257 10258 10259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 10260$as_echo_n "checking for --with-hash-algorithm... " >&6; } 10261 10262# Check whether --with-hash_algorithm was given. 10263if test "${with_hash_algorithm+set}" = set; then : 10264 withval=$with_hash_algorithm; 10265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10266$as_echo "$withval" >&6; } 10267case "$withval" in 10268 siphash24) 10269 $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h 10270 10271 ;; 10272 fnv) 10273 $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h 10274 10275 ;; 10276 *) 10277 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 10278 ;; 10279esac 10280 10281else 10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 10283$as_echo "default" >&6; } 10284fi 10285 10286 10287validate_tzpath() { 10288 # Checks that each element of hte path is an absolute path 10289 if test -z "$1"; then 10290 # Empty string is allowed: it indicates no system TZPATH 10291 return 0 10292 fi 10293 10294 # Bad paths are those that don't start with / 10295 if ( echo $1 | grep -qE '(^|:)([^/]|$)' ); then 10296 as_fn_error $? "--with-tzpath must contain only absolute paths, not $1" "$LINENO" 5 10297 return 1; 10298 fi 10299} 10300 10301TZPATH="/usr/share/zoneinfo:/usr/lib/zoneinfo:/usr/share/lib/zoneinfo:/etc/zoneinfo" 10302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tzpath" >&5 10303$as_echo_n "checking for --with-tzpath... " >&6; } 10304 10305# Check whether --with-tzpath was given. 10306if test "${with_tzpath+set}" = set; then : 10307 withval=$with_tzpath; 10308case "$withval" in 10309 yes) 10310 as_fn_error $? "--with-tzpath requires a value" "$LINENO" 5 10311 ;; 10312 *) 10313 validate_tzpath "$withval" 10314 TZPATH="$withval" 10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$withval\"" >&5 10316$as_echo "\"$withval\"" >&6; } 10317 ;; 10318esac 10319 10320else 10321 validate_tzpath "$TZPATH" 10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$TZPATH\"" >&5 10323$as_echo "\"$TZPATH\"" >&6; } 10324fi 10325 10326 10327 10328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 10329$as_echo_n "checking for --with-address-sanitizer... " >&6; } 10330 10331# Check whether --with-address_sanitizer was given. 10332if test "${with_address_sanitizer+set}" = set; then : 10333 withval=$with_address_sanitizer; 10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10335$as_echo "$withval" >&6; } 10336BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" 10337LDFLAGS="-fsanitize=address $LDFLAGS" 10338# ASan works by controlling memory allocation, our own malloc interferes. 10339with_pymalloc="no" 10340 10341else 10342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10343$as_echo "no" >&6; } 10344fi 10345 10346 10347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 10348$as_echo_n "checking for --with-memory-sanitizer... " >&6; } 10349 10350# Check whether --with-memory_sanitizer was given. 10351if test "${with_memory_sanitizer+set}" = set; then : 10352 withval=$with_memory_sanitizer; 10353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10354$as_echo "$withval" >&6; } 10355BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" 10356LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" 10357# MSan works by controlling memory allocation, our own malloc interferes. 10358with_pymalloc="no" 10359 10360else 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10362$as_echo "no" >&6; } 10363fi 10364 10365 10366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 10367$as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; } 10368 10369# Check whether --with-undefined_behavior_sanitizer was given. 10370if test "${with_undefined_behavior_sanitizer+set}" = set; then : 10371 withval=$with_undefined_behavior_sanitizer; 10372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10373$as_echo "$withval" >&6; } 10374BASECFLAGS="-fsanitize=undefined $BASECFLAGS" 10375LDFLAGS="-fsanitize=undefined $LDFLAGS" 10376 10377else 10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10379$as_echo "no" >&6; } 10380fi 10381 10382 10383# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. 10384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 10385$as_echo_n "checking for t_open in -lnsl... " >&6; } 10386if ${ac_cv_lib_nsl_t_open+:} false; then : 10387 $as_echo_n "(cached) " >&6 10388else 10389 ac_check_lib_save_LIBS=$LIBS 10390LIBS="-lnsl $LIBS" 10391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10392/* end confdefs.h. */ 10393 10394/* Override any GCC internal prototype to avoid an error. 10395 Use char because int might match the return type of a GCC 10396 builtin and then its argument prototype would still apply. */ 10397#ifdef __cplusplus 10398extern "C" 10399#endif 10400char t_open (); 10401int 10402main () 10403{ 10404return t_open (); 10405 ; 10406 return 0; 10407} 10408_ACEOF 10409if ac_fn_c_try_link "$LINENO"; then : 10410 ac_cv_lib_nsl_t_open=yes 10411else 10412 ac_cv_lib_nsl_t_open=no 10413fi 10414rm -f core conftest.err conftest.$ac_objext \ 10415 conftest$ac_exeext conftest.$ac_ext 10416LIBS=$ac_check_lib_save_LIBS 10417fi 10418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 10419$as_echo "$ac_cv_lib_nsl_t_open" >&6; } 10420if test "x$ac_cv_lib_nsl_t_open" = xyes; then : 10421 LIBS="-lnsl $LIBS" 10422fi 10423 # SVR4 10424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 10425$as_echo_n "checking for socket in -lsocket... " >&6; } 10426if ${ac_cv_lib_socket_socket+:} false; then : 10427 $as_echo_n "(cached) " >&6 10428else 10429 ac_check_lib_save_LIBS=$LIBS 10430LIBS="-lsocket $LIBS $LIBS" 10431cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10432/* end confdefs.h. */ 10433 10434/* Override any GCC internal prototype to avoid an error. 10435 Use char because int might match the return type of a GCC 10436 builtin and then its argument prototype would still apply. */ 10437#ifdef __cplusplus 10438extern "C" 10439#endif 10440char socket (); 10441int 10442main () 10443{ 10444return socket (); 10445 ; 10446 return 0; 10447} 10448_ACEOF 10449if ac_fn_c_try_link "$LINENO"; then : 10450 ac_cv_lib_socket_socket=yes 10451else 10452 ac_cv_lib_socket_socket=no 10453fi 10454rm -f core conftest.err conftest.$ac_objext \ 10455 conftest$ac_exeext conftest.$ac_ext 10456LIBS=$ac_check_lib_save_LIBS 10457fi 10458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 10459$as_echo "$ac_cv_lib_socket_socket" >&6; } 10460if test "x$ac_cv_lib_socket_socket" = xyes; then : 10461 LIBS="-lsocket $LIBS" 10462fi 10463 # SVR4 sockets 10464 10465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 10466$as_echo_n "checking for --with-libs... " >&6; } 10467 10468# Check whether --with-libs was given. 10469if test "${with_libs+set}" = set; then : 10470 withval=$with_libs; 10471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10472$as_echo "$withval" >&6; } 10473LIBS="$withval $LIBS" 10474 10475else 10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10477$as_echo "no" >&6; } 10478fi 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10489 if test -n "$ac_tool_prefix"; then 10490 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10491set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10493$as_echo_n "checking for $ac_word... " >&6; } 10494if ${ac_cv_path_PKG_CONFIG+:} false; then : 10495 $as_echo_n "(cached) " >&6 10496else 10497 case $PKG_CONFIG in 10498 [\\/]* | ?:[\\/]*) 10499 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10500 ;; 10501 *) 10502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10503for as_dir in $PATH 10504do 10505 IFS=$as_save_IFS 10506 test -z "$as_dir" && as_dir=. 10507 for ac_exec_ext in '' $ac_executable_extensions; do 10508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10509 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10511 break 2 10512 fi 10513done 10514 done 10515IFS=$as_save_IFS 10516 10517 ;; 10518esac 10519fi 10520PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10521if test -n "$PKG_CONFIG"; then 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10523$as_echo "$PKG_CONFIG" >&6; } 10524else 10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10526$as_echo "no" >&6; } 10527fi 10528 10529 10530fi 10531if test -z "$ac_cv_path_PKG_CONFIG"; then 10532 ac_pt_PKG_CONFIG=$PKG_CONFIG 10533 # Extract the first word of "pkg-config", so it can be a program name with args. 10534set dummy pkg-config; ac_word=$2 10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10536$as_echo_n "checking for $ac_word... " >&6; } 10537if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 10538 $as_echo_n "(cached) " >&6 10539else 10540 case $ac_pt_PKG_CONFIG in 10541 [\\/]* | ?:[\\/]*) 10542 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10543 ;; 10544 *) 10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10546for as_dir in $PATH 10547do 10548 IFS=$as_save_IFS 10549 test -z "$as_dir" && as_dir=. 10550 for ac_exec_ext in '' $ac_executable_extensions; do 10551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10552 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10554 break 2 10555 fi 10556done 10557 done 10558IFS=$as_save_IFS 10559 10560 ;; 10561esac 10562fi 10563ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10564if test -n "$ac_pt_PKG_CONFIG"; then 10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10566$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10567else 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10569$as_echo "no" >&6; } 10570fi 10571 10572 if test "x$ac_pt_PKG_CONFIG" = x; then 10573 PKG_CONFIG="" 10574 else 10575 case $cross_compiling:$ac_tool_warned in 10576yes:) 10577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10579ac_tool_warned=yes ;; 10580esac 10581 PKG_CONFIG=$ac_pt_PKG_CONFIG 10582 fi 10583else 10584 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10585fi 10586 10587fi 10588if test -n "$PKG_CONFIG"; then 10589 _pkg_min_version=0.9.0 10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10591$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10592 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10594$as_echo "yes" >&6; } 10595 else 10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10597$as_echo "no" >&6; } 10598 PKG_CONFIG="" 10599 fi 10600fi 10601 10602# Check for use of the system expat library 10603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 10604$as_echo_n "checking for --with-system-expat... " >&6; } 10605 10606# Check whether --with-system_expat was given. 10607if test "${with_system_expat+set}" = set; then : 10608 withval=$with_system_expat; 10609else 10610 with_system_expat="no" 10611fi 10612 10613 10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 10615$as_echo "$with_system_expat" >&6; } 10616 10617# Check for use of the system libffi library 10618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 10619$as_echo_n "checking for --with-system-ffi... " >&6; } 10620 10621# Check whether --with-system_ffi was given. 10622if test "${with_system_ffi+set}" = set; then : 10623 withval=$with_system_ffi; 10624fi 10625 10626 10627if test "$ac_sys_system" = "Darwin" 10628then 10629 case "$with_system_ffi" in 10630 "") 10631 with_system_ffi="no" 10632 ;; 10633 yes|no) 10634 ;; 10635 *) 10636 as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 10637 ;; 10638 esac 10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 10640$as_echo "$with_system_ffi" >&6; } 10641else 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10643$as_echo "yes" >&6; } 10644 if test "$with_system_ffi" != "" 10645 then 10646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 10647$as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} 10648 fi 10649 with_system_ffi="yes" 10650fi 10651 10652if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then 10653 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" 10654else 10655 LIBFFI_INCLUDEDIR="" 10656fi 10657 10658 10659# Check for use of the system libmpdec library 10660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 10661$as_echo_n "checking for --with-system-libmpdec... " >&6; } 10662 10663# Check whether --with-system_libmpdec was given. 10664if test "${with_system_libmpdec+set}" = set; then : 10665 withval=$with_system_libmpdec; 10666else 10667 with_system_libmpdec="no" 10668fi 10669 10670 10671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 10672$as_echo "$with_system_libmpdec" >&6; } 10673 10674# Check whether _decimal should use a coroutine-local or thread-local context 10675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-decimal-contextvar" >&5 10676$as_echo_n "checking for --with-decimal-contextvar... " >&6; } 10677 10678# Check whether --with-decimal_contextvar was given. 10679if test "${with_decimal_contextvar+set}" = set; then : 10680 withval=$with_decimal_contextvar; 10681else 10682 with_decimal_contextvar="yes" 10683fi 10684 10685 10686if test "$with_decimal_contextvar" != "no" 10687then 10688 10689$as_echo "#define WITH_DECIMAL_CONTEXTVAR 1" >>confdefs.h 10690 10691fi 10692 10693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_decimal_contextvar" >&5 10694$as_echo "$with_decimal_contextvar" >&6; } 10695 10696# Check for support for loadable sqlite extensions 10697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 10698$as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } 10699# Check whether --enable-loadable-sqlite-extensions was given. 10700if test "${enable_loadable_sqlite_extensions+set}" = set; then : 10701 enableval=$enable_loadable_sqlite_extensions; 10702else 10703 enable_loadable_sqlite_extensions="no" 10704fi 10705 10706 10707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 10708$as_echo "$enable_loadable_sqlite_extensions" >&6; } 10709 10710# Check for --with-tcltk-includes=path and --with-tcltk-libs=path 10711 10712 10713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 10714$as_echo_n "checking for --with-tcltk-includes... " >&6; } 10715 10716# Check whether --with-tcltk-includes was given. 10717if test "${with_tcltk_includes+set}" = set; then : 10718 withval=$with_tcltk_includes; 10719else 10720 with_tcltk_includes="default" 10721fi 10722 10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 10724$as_echo "$with_tcltk_includes" >&6; } 10725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 10726$as_echo_n "checking for --with-tcltk-libs... " >&6; } 10727 10728# Check whether --with-tcltk-libs was given. 10729if test "${with_tcltk_libs+set}" = set; then : 10730 withval=$with_tcltk_libs; 10731else 10732 with_tcltk_libs="default" 10733fi 10734 10735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 10736$as_echo "$with_tcltk_libs" >&6; } 10737if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault 10738then 10739 if test "x$with_tcltk_includes" != "x$with_tcltk_libs" 10740 then 10741 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 10742 fi 10743 TCLTK_INCLUDES="" 10744 TCLTK_LIBS="" 10745else 10746 TCLTK_INCLUDES="$with_tcltk_includes" 10747 TCLTK_LIBS="$with_tcltk_libs" 10748fi 10749 10750# Check for --with-dbmliborder 10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 10752$as_echo_n "checking for --with-dbmliborder... " >&6; } 10753 10754# Check whether --with-dbmliborder was given. 10755if test "${with_dbmliborder+set}" = set; then : 10756 withval=$with_dbmliborder; 10757if test x$with_dbmliborder = xyes 10758then 10759as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 10760else 10761 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do 10762 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb 10763 then 10764 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 10765 fi 10766 done 10767fi 10768fi 10769 10770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 10771$as_echo "$with_dbmliborder" >&6; } 10772 10773# Templates for things AC_DEFINEd more than once. 10774# For a single AC_DEFINE, no template is needed. 10775 10776 10777if test "$ac_cv_pthread_is_default" = yes 10778then 10779 # Defining _REENTRANT on system with POSIX threads should not hurt. 10780 $as_echo "#define _REENTRANT 1" >>confdefs.h 10781 10782 posix_threads=yes 10783 if test "$ac_sys_system" = "SunOS"; then 10784 CFLAGS="$CFLAGS -D_REENTRANT" 10785 fi 10786elif test "$ac_cv_kpthread" = "yes" 10787then 10788 CC="$CC -Kpthread" 10789 if test "$ac_cv_cxx_thread" = "yes"; then 10790 CXX="$CXX -Kpthread" 10791 fi 10792 posix_threads=yes 10793elif test "$ac_cv_kthread" = "yes" 10794then 10795 CC="$CC -Kthread" 10796 if test "$ac_cv_cxx_thread" = "yes"; then 10797 CXX="$CXX -Kthread" 10798 fi 10799 posix_threads=yes 10800elif test "$ac_cv_pthread" = "yes" 10801then 10802 CC="$CC -pthread" 10803 if test "$ac_cv_cxx_thread" = "yes"; then 10804 CXX="$CXX -pthread" 10805 fi 10806 posix_threads=yes 10807else 10808 if test ! -z "$withval" -a -d "$withval" 10809 then LDFLAGS="$LDFLAGS -L$withval" 10810 fi 10811 10812 # According to the POSIX spec, a pthreads implementation must 10813 # define _POSIX_THREADS in unistd.h. Some apparently don't 10814 # (e.g. gnu pth with pthread emulation) 10815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 10816$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } 10817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10818/* end confdefs.h. */ 10819 10820#include <unistd.h> 10821#ifdef _POSIX_THREADS 10822yes 10823#endif 10824 10825_ACEOF 10826if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10827 $EGREP "yes" >/dev/null 2>&1; then : 10828 unistd_defines_pthreads=yes 10829else 10830 unistd_defines_pthreads=no 10831fi 10832rm -f conftest* 10833 10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 10835$as_echo "$unistd_defines_pthreads" >&6; } 10836 10837 $as_echo "#define _REENTRANT 1" >>confdefs.h 10838 10839 # Just looking for pthread_create in libpthread is not enough: 10840 # on HP/UX, pthread.h renames pthread_create to a different symbol name. 10841 # So we really have to include pthread.h, and then link. 10842 _libs=$LIBS 10843 LIBS="$LIBS -lpthread" 10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 10845$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 10846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10847/* end confdefs.h. */ 10848 10849#include <stdio.h> 10850#include <pthread.h> 10851 10852void * start_routine (void *arg) { exit (0); } 10853int 10854main () 10855{ 10856 10857pthread_create (NULL, NULL, start_routine, NULL) 10858 ; 10859 return 0; 10860} 10861_ACEOF 10862if ac_fn_c_try_link "$LINENO"; then : 10863 10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10865$as_echo "yes" >&6; } 10866 posix_threads=yes 10867 10868else 10869 10870 LIBS=$_libs 10871 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" 10872if test "x$ac_cv_func_pthread_detach" = xyes; then : 10873 10874 posix_threads=yes 10875 10876else 10877 10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 10879$as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 10880if ${ac_cv_lib_pthreads_pthread_create+:} false; then : 10881 $as_echo_n "(cached) " >&6 10882else 10883 ac_check_lib_save_LIBS=$LIBS 10884LIBS="-lpthreads $LIBS" 10885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10886/* end confdefs.h. */ 10887 10888/* Override any GCC internal prototype to avoid an error. 10889 Use char because int might match the return type of a GCC 10890 builtin and then its argument prototype would still apply. */ 10891#ifdef __cplusplus 10892extern "C" 10893#endif 10894char pthread_create (); 10895int 10896main () 10897{ 10898return pthread_create (); 10899 ; 10900 return 0; 10901} 10902_ACEOF 10903if ac_fn_c_try_link "$LINENO"; then : 10904 ac_cv_lib_pthreads_pthread_create=yes 10905else 10906 ac_cv_lib_pthreads_pthread_create=no 10907fi 10908rm -f core conftest.err conftest.$ac_objext \ 10909 conftest$ac_exeext conftest.$ac_ext 10910LIBS=$ac_check_lib_save_LIBS 10911fi 10912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 10913$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 10914if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : 10915 10916 posix_threads=yes 10917 LIBS="$LIBS -lpthreads" 10918 10919else 10920 10921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 10922$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 10923if ${ac_cv_lib_c_r_pthread_create+:} false; then : 10924 $as_echo_n "(cached) " >&6 10925else 10926 ac_check_lib_save_LIBS=$LIBS 10927LIBS="-lc_r $LIBS" 10928cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10929/* end confdefs.h. */ 10930 10931/* Override any GCC internal prototype to avoid an error. 10932 Use char because int might match the return type of a GCC 10933 builtin and then its argument prototype would still apply. */ 10934#ifdef __cplusplus 10935extern "C" 10936#endif 10937char pthread_create (); 10938int 10939main () 10940{ 10941return pthread_create (); 10942 ; 10943 return 0; 10944} 10945_ACEOF 10946if ac_fn_c_try_link "$LINENO"; then : 10947 ac_cv_lib_c_r_pthread_create=yes 10948else 10949 ac_cv_lib_c_r_pthread_create=no 10950fi 10951rm -f core conftest.err conftest.$ac_objext \ 10952 conftest$ac_exeext conftest.$ac_ext 10953LIBS=$ac_check_lib_save_LIBS 10954fi 10955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 10956$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 10957if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 10958 10959 posix_threads=yes 10960 LIBS="$LIBS -lc_r" 10961 10962else 10963 10964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 10965$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } 10966if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : 10967 $as_echo_n "(cached) " >&6 10968else 10969 ac_check_lib_save_LIBS=$LIBS 10970LIBS="-lpthread $LIBS" 10971cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10972/* end confdefs.h. */ 10973 10974/* Override any GCC internal prototype to avoid an error. 10975 Use char because int might match the return type of a GCC 10976 builtin and then its argument prototype would still apply. */ 10977#ifdef __cplusplus 10978extern "C" 10979#endif 10980char __pthread_create_system (); 10981int 10982main () 10983{ 10984return __pthread_create_system (); 10985 ; 10986 return 0; 10987} 10988_ACEOF 10989if ac_fn_c_try_link "$LINENO"; then : 10990 ac_cv_lib_pthread___pthread_create_system=yes 10991else 10992 ac_cv_lib_pthread___pthread_create_system=no 10993fi 10994rm -f core conftest.err conftest.$ac_objext \ 10995 conftest$ac_exeext conftest.$ac_ext 10996LIBS=$ac_check_lib_save_LIBS 10997fi 10998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 10999$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } 11000if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : 11001 11002 posix_threads=yes 11003 LIBS="$LIBS -lpthread" 11004 11005else 11006 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 11008$as_echo_n "checking for pthread_create in -lcma... " >&6; } 11009if ${ac_cv_lib_cma_pthread_create+:} false; then : 11010 $as_echo_n "(cached) " >&6 11011else 11012 ac_check_lib_save_LIBS=$LIBS 11013LIBS="-lcma $LIBS" 11014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11015/* end confdefs.h. */ 11016 11017/* Override any GCC internal prototype to avoid an error. 11018 Use char because int might match the return type of a GCC 11019 builtin and then its argument prototype would still apply. */ 11020#ifdef __cplusplus 11021extern "C" 11022#endif 11023char pthread_create (); 11024int 11025main () 11026{ 11027return pthread_create (); 11028 ; 11029 return 0; 11030} 11031_ACEOF 11032if ac_fn_c_try_link "$LINENO"; then : 11033 ac_cv_lib_cma_pthread_create=yes 11034else 11035 ac_cv_lib_cma_pthread_create=no 11036fi 11037rm -f core conftest.err conftest.$ac_objext \ 11038 conftest$ac_exeext conftest.$ac_ext 11039LIBS=$ac_check_lib_save_LIBS 11040fi 11041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 11042$as_echo "$ac_cv_lib_cma_pthread_create" >&6; } 11043if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : 11044 11045 posix_threads=yes 11046 LIBS="$LIBS -lcma" 11047 11048else 11049 11050 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 11051 11052fi 11053 11054 11055fi 11056 11057fi 11058 11059fi 11060 11061fi 11062 11063fi 11064rm -f core conftest.err conftest.$ac_objext \ 11065 conftest$ac_exeext conftest.$ac_ext 11066 11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 11068$as_echo_n "checking for usconfig in -lmpc... " >&6; } 11069if ${ac_cv_lib_mpc_usconfig+:} false; then : 11070 $as_echo_n "(cached) " >&6 11071else 11072 ac_check_lib_save_LIBS=$LIBS 11073LIBS="-lmpc $LIBS" 11074cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11075/* end confdefs.h. */ 11076 11077/* Override any GCC internal prototype to avoid an error. 11078 Use char because int might match the return type of a GCC 11079 builtin and then its argument prototype would still apply. */ 11080#ifdef __cplusplus 11081extern "C" 11082#endif 11083char usconfig (); 11084int 11085main () 11086{ 11087return usconfig (); 11088 ; 11089 return 0; 11090} 11091_ACEOF 11092if ac_fn_c_try_link "$LINENO"; then : 11093 ac_cv_lib_mpc_usconfig=yes 11094else 11095 ac_cv_lib_mpc_usconfig=no 11096fi 11097rm -f core conftest.err conftest.$ac_objext \ 11098 conftest$ac_exeext conftest.$ac_ext 11099LIBS=$ac_check_lib_save_LIBS 11100fi 11101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 11102$as_echo "$ac_cv_lib_mpc_usconfig" >&6; } 11103if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : 11104 11105 LIBS="$LIBS -lmpc" 11106 11107fi 11108 11109 11110fi 11111 11112if test "$posix_threads" = "yes"; then 11113 if test "$unistd_defines_pthreads" = "no"; then 11114 11115$as_echo "#define _POSIX_THREADS 1" >>confdefs.h 11116 11117 fi 11118 11119 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. 11120 case $ac_sys_system/$ac_sys_release in 11121 SunOS/5.6) 11122$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h 11123 11124 ;; 11125 SunOS/5.8) 11126$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 11127 11128 ;; 11129 AIX/*) 11130$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 11131 11132 ;; 11133 esac 11134 11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 11136$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } 11137 if ${ac_cv_pthread_system_supported+:} false; then : 11138 $as_echo_n "(cached) " >&6 11139else 11140 if test "$cross_compiling" = yes; then : 11141 ac_cv_pthread_system_supported=no 11142else 11143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11144/* end confdefs.h. */ 11145 11146 #include <stdio.h> 11147 #include <pthread.h> 11148 void *foo(void *parm) { 11149 return NULL; 11150 } 11151 main() { 11152 pthread_attr_t attr; 11153 pthread_t id; 11154 if (pthread_attr_init(&attr)) return (-1); 11155 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) return (-1); 11156 if (pthread_create(&id, &attr, foo, NULL)) return (-1); 11157 return (0); 11158 } 11159_ACEOF 11160if ac_fn_c_try_run "$LINENO"; then : 11161 ac_cv_pthread_system_supported=yes 11162else 11163 ac_cv_pthread_system_supported=no 11164fi 11165rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11166 conftest.$ac_objext conftest.beam conftest.$ac_ext 11167fi 11168 11169 11170fi 11171 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 11173$as_echo "$ac_cv_pthread_system_supported" >&6; } 11174 if test "$ac_cv_pthread_system_supported" = "yes"; then 11175 11176$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h 11177 11178 fi 11179 for ac_func in pthread_sigmask 11180do : 11181 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" 11182if test "x$ac_cv_func_pthread_sigmask" = xyes; then : 11183 cat >>confdefs.h <<_ACEOF 11184#define HAVE_PTHREAD_SIGMASK 1 11185_ACEOF 11186 case $ac_sys_system in 11187 CYGWIN*) 11188 11189$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h 11190 11191 ;; 11192 esac 11193fi 11194done 11195 11196 for ac_func in pthread_getcpuclockid 11197do : 11198 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" 11199if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : 11200 cat >>confdefs.h <<_ACEOF 11201#define HAVE_PTHREAD_GETCPUCLOCKID 1 11202_ACEOF 11203 11204fi 11205done 11206 11207fi 11208 11209 11210# Check for enable-ipv6 11211 11212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 11213$as_echo_n "checking if --enable-ipv6 is specified... " >&6; } 11214# Check whether --enable-ipv6 was given. 11215if test "${enable_ipv6+set}" = set; then : 11216 enableval=$enable_ipv6; case "$enableval" in 11217 no) 11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11219$as_echo "no" >&6; } 11220 ipv6=no 11221 ;; 11222 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11223$as_echo "yes" >&6; } 11224 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 11225 11226 ipv6=yes 11227 ;; 11228 esac 11229else 11230 11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11232/* end confdefs.h. */ 11233 /* AF_INET6 available check */ 11234#include <sys/types.h> 11235#include <sys/socket.h> 11236int 11237main () 11238{ 11239int domain = AF_INET6; 11240 ; 11241 return 0; 11242} 11243_ACEOF 11244if ac_fn_c_try_compile "$LINENO"; then : 11245 11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11247$as_echo "yes" >&6; } 11248 ipv6=yes 11249 11250else 11251 11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11253$as_echo "no" >&6; } 11254 ipv6=no 11255 11256fi 11257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11258 11259if test "$ipv6" = "yes"; then 11260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 11261$as_echo_n "checking if RFC2553 API is available... " >&6; } 11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11263/* end confdefs.h. */ 11264 11265 #include <sys/types.h> 11266#include <netinet/in.h> 11267int 11268main () 11269{ 11270struct sockaddr_in6 x; 11271 x.sin6_scope_id; 11272 ; 11273 return 0; 11274} 11275 11276_ACEOF 11277if ac_fn_c_try_compile "$LINENO"; then : 11278 11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11280$as_echo "yes" >&6; } 11281 ipv6=yes 11282 11283else 11284 11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11286$as_echo "no" >&6; } 11287 ipv6=no 11288 11289fi 11290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11291fi 11292 11293if test "$ipv6" = "yes"; then 11294 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 11295 11296fi 11297 11298fi 11299 11300 11301ipv6type=unknown 11302ipv6lib=none 11303ipv6trylibc=no 11304 11305if test "$ipv6" = "yes"; then 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 11307$as_echo_n "checking ipv6 stack type... " >&6; } 11308 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; 11309 do 11310 case $i in 11311 inria) 11312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11313/* end confdefs.h. */ 11314 11315#include <netinet/in.h> 11316#ifdef IPV6_INRIA_VERSION 11317yes 11318#endif 11319_ACEOF 11320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11321 $EGREP "yes" >/dev/null 2>&1; then : 11322 ipv6type=$i 11323fi 11324rm -f conftest* 11325 11326 ;; 11327 kame) 11328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11329/* end confdefs.h. */ 11330 11331#include <netinet/in.h> 11332#ifdef __KAME__ 11333yes 11334#endif 11335_ACEOF 11336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11337 $EGREP "yes" >/dev/null 2>&1; then : 11338 ipv6type=$i; 11339 ipv6lib=inet6 11340 ipv6libdir=/usr/local/v6/lib 11341 ipv6trylibc=yes 11342fi 11343rm -f conftest* 11344 11345 ;; 11346 linux-glibc) 11347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11348/* end confdefs.h. */ 11349 11350#include <features.h> 11351#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) 11352yes 11353#endif 11354_ACEOF 11355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11356 $EGREP "yes" >/dev/null 2>&1; then : 11357 ipv6type=$i; 11358 ipv6trylibc=yes 11359fi 11360rm -f conftest* 11361 11362 ;; 11363 linux-inet6) 11364 if test -d /usr/inet6; then 11365 ipv6type=$i 11366 ipv6lib=inet6 11367 ipv6libdir=/usr/inet6/lib 11368 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" 11369 fi 11370 ;; 11371 solaris) 11372 if test -f /etc/netconfig; then 11373 if $GREP -q tcp6 /etc/netconfig; then 11374 ipv6type=$i 11375 ipv6trylibc=yes 11376 fi 11377 fi 11378 ;; 11379 toshiba) 11380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11381/* end confdefs.h. */ 11382 11383#include <sys/param.h> 11384#ifdef _TOSHIBA_INET6 11385yes 11386#endif 11387_ACEOF 11388if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11389 $EGREP "yes" >/dev/null 2>&1; then : 11390 ipv6type=$i; 11391 ipv6lib=inet6; 11392 ipv6libdir=/usr/local/v6/lib 11393fi 11394rm -f conftest* 11395 11396 ;; 11397 v6d) 11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11399/* end confdefs.h. */ 11400 11401#include </usr/local/v6/include/sys/v6config.h> 11402#ifdef __V6D__ 11403yes 11404#endif 11405_ACEOF 11406if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11407 $EGREP "yes" >/dev/null 2>&1; then : 11408 ipv6type=$i; 11409 ipv6lib=v6; 11410 ipv6libdir=/usr/local/v6/lib; 11411 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" 11412fi 11413rm -f conftest* 11414 11415 ;; 11416 zeta) 11417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11418/* end confdefs.h. */ 11419 11420#include <sys/param.h> 11421#ifdef _ZETA_MINAMI_INET6 11422yes 11423#endif 11424_ACEOF 11425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11426 $EGREP "yes" >/dev/null 2>&1; then : 11427 ipv6type=$i; 11428 ipv6lib=inet6; 11429 ipv6libdir=/usr/local/v6/lib 11430fi 11431rm -f conftest* 11432 11433 ;; 11434 esac 11435 if test "$ipv6type" != "unknown"; then 11436 break 11437 fi 11438 done 11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 11440$as_echo "$ipv6type" >&6; } 11441fi 11442 11443if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 11444 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 11445 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 11446 echo "using lib$ipv6lib" 11447 else 11448 if test $ipv6trylibc = "yes"; then 11449 echo "using libc" 11450 else 11451 echo 'Fatal: no $ipv6lib library found. cannot continue.' 11452 echo "You need to fetch lib$ipv6lib.a from appropriate" 11453 echo 'ipv6 kit and compile beforehand.' 11454 exit 1 11455 fi 11456 fi 11457fi 11458 11459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 11460$as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } 11461cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11462/* end confdefs.h. */ 11463 /* CAN_RAW_FD_FRAMES available check */ 11464#include <linux/can/raw.h> 11465int 11466main () 11467{ 11468int can_raw_fd_frames = CAN_RAW_FD_FRAMES; 11469 ; 11470 return 0; 11471} 11472_ACEOF 11473if ac_fn_c_try_compile "$LINENO"; then : 11474 11475 11476$as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h 11477 11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11479$as_echo "yes" >&6; } 11480 11481else 11482 11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11484$as_echo "no" >&6; } 11485 11486fi 11487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11488 11489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_JOIN_FILTERS" >&5 11490$as_echo_n "checking for CAN_RAW_JOIN_FILTERS... " >&6; } 11491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11492/* end confdefs.h. */ 11493 11494#include <linux/can/raw.h> 11495int 11496main () 11497{ 11498int can_raw_join_filters = CAN_RAW_JOIN_FILTERS; 11499 ; 11500 return 0; 11501} 11502_ACEOF 11503if ac_fn_c_try_compile "$LINENO"; then : 11504 11505 11506$as_echo "#define HAVE_LINUX_CAN_RAW_JOIN_FILTERS 1" >>confdefs.h 11507 11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11509$as_echo "yes" >&6; } 11510 11511else 11512 11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11514$as_echo "no" >&6; } 11515 11516fi 11517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11518 11519# Check for --with-doc-strings 11520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 11521$as_echo_n "checking for --with-doc-strings... " >&6; } 11522 11523# Check whether --with-doc-strings was given. 11524if test "${with_doc_strings+set}" = set; then : 11525 withval=$with_doc_strings; 11526fi 11527 11528 11529if test -z "$with_doc_strings" 11530then with_doc_strings="yes" 11531fi 11532if test "$with_doc_strings" != "no" 11533then 11534 11535$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h 11536 11537fi 11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 11539$as_echo "$with_doc_strings" >&6; } 11540 11541# Check for Python-specific malloc support 11542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 11543$as_echo_n "checking for --with-pymalloc... " >&6; } 11544 11545# Check whether --with-pymalloc was given. 11546if test "${with_pymalloc+set}" = set; then : 11547 withval=$with_pymalloc; 11548fi 11549 11550 11551if test -z "$with_pymalloc" 11552then 11553 with_pymalloc="yes" 11554fi 11555if test "$with_pymalloc" != "no" 11556then 11557 11558$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h 11559 11560fi 11561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 11562$as_echo "$with_pymalloc" >&6; } 11563 11564# Check for --with-c-locale-coercion 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 11566$as_echo_n "checking for --with-c-locale-coercion... " >&6; } 11567 11568# Check whether --with-c-locale-coercion was given. 11569if test "${with_c_locale_coercion+set}" = set; then : 11570 withval=$with_c_locale_coercion; 11571fi 11572 11573 11574if test -z "$with_c_locale_coercion" 11575then 11576 with_c_locale_coercion="yes" 11577fi 11578if test "$with_c_locale_coercion" != "no" 11579then 11580 11581$as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h 11582 11583fi 11584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 11585$as_echo "$with_c_locale_coercion" >&6; } 11586 11587# Check for Valgrind support 11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 11589$as_echo_n "checking for --with-valgrind... " >&6; } 11590 11591# Check whether --with-valgrind was given. 11592if test "${with_valgrind+set}" = set; then : 11593 withval=$with_valgrind; 11594else 11595 with_valgrind=no 11596fi 11597 11598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 11599$as_echo "$with_valgrind" >&6; } 11600if test "$with_valgrind" != no; then 11601 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 11602if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : 11603 11604$as_echo "#define WITH_VALGRIND 1" >>confdefs.h 11605 11606else 11607 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 11608 11609fi 11610 11611 11612 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" 11613fi 11614 11615# Check for DTrace support 11616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 11617$as_echo_n "checking for --with-dtrace... " >&6; } 11618 11619# Check whether --with-dtrace was given. 11620if test "${with_dtrace+set}" = set; then : 11621 withval=$with_dtrace; 11622else 11623 with_dtrace=no 11624fi 11625 11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 11627$as_echo "$with_dtrace" >&6; } 11628 11629 11630 11631 11632 11633DTRACE= 11634DTRACE_HEADERS= 11635DTRACE_OBJS= 11636 11637if test "$with_dtrace" = "yes" 11638then 11639 # Extract the first word of "dtrace", so it can be a program name with args. 11640set dummy dtrace; ac_word=$2 11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11642$as_echo_n "checking for $ac_word... " >&6; } 11643if ${ac_cv_path_DTRACE+:} false; then : 11644 $as_echo_n "(cached) " >&6 11645else 11646 case $DTRACE in 11647 [\\/]* | ?:[\\/]*) 11648 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 11649 ;; 11650 *) 11651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11652for as_dir in $PATH 11653do 11654 IFS=$as_save_IFS 11655 test -z "$as_dir" && as_dir=. 11656 for ac_exec_ext in '' $ac_executable_extensions; do 11657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11658 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 11659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11660 break 2 11661 fi 11662done 11663 done 11664IFS=$as_save_IFS 11665 11666 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" 11667 ;; 11668esac 11669fi 11670DTRACE=$ac_cv_path_DTRACE 11671if test -n "$DTRACE"; then 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 11673$as_echo "$DTRACE" >&6; } 11674else 11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11676$as_echo "no" >&6; } 11677fi 11678 11679 11680 if test "$DTRACE" = "not found"; then 11681 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 11682 fi 11683 11684$as_echo "#define WITH_DTRACE 1" >>confdefs.h 11685 11686 DTRACE_HEADERS="Include/pydtrace_probes.h" 11687 11688 # On OS X, DTrace providers do not need to be explicitly compiled and 11689 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF 11690 # generation flag '-G'. We check for presence of this flag, rather than 11691 # hardcoding support by OS, in the interest of robustness. 11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 11693$as_echo_n "checking whether DTrace probes require linking... " >&6; } 11694if ${ac_cv_dtrace_link+:} false; then : 11695 $as_echo_n "(cached) " >&6 11696else 11697 ac_cv_dtrace_link=no 11698 echo 'BEGIN{}' > conftest.d 11699 "$DTRACE" $DFLAGS -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ 11700 ac_cv_dtrace_link=yes 11701 11702fi 11703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 11704$as_echo "$ac_cv_dtrace_link" >&6; } 11705 if test "$ac_cv_dtrace_link" = "yes"; then 11706 DTRACE_OBJS="Python/pydtrace.o" 11707 fi 11708fi 11709 11710# -I${DLINCLDIR} is added to the compile rule for importdl.o 11711 11712DLINCLDIR=. 11713 11714# the dlopen() function means we might want to use dynload_shlib.o. some 11715# platforms, such as AIX, have dlopen(), but don't want to use it. 11716for ac_func in dlopen 11717do : 11718 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11719if test "x$ac_cv_func_dlopen" = xyes; then : 11720 cat >>confdefs.h <<_ACEOF 11721#define HAVE_DLOPEN 1 11722_ACEOF 11723 11724fi 11725done 11726 11727 11728# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic 11729# loading of modules. 11730 11731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 11732$as_echo_n "checking DYNLOADFILE... " >&6; } 11733if test -z "$DYNLOADFILE" 11734then 11735 case $ac_sys_system/$ac_sys_release in 11736 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c 11737 if test "$ac_cv_func_dlopen" = yes 11738 then DYNLOADFILE="dynload_shlib.o" 11739 else DYNLOADFILE="dynload_aix.o" 11740 fi 11741 ;; 11742 hp*|HP*) DYNLOADFILE="dynload_hpux.o";; 11743 *) 11744 # use dynload_shlib.c and dlopen() if we have it; otherwise stub 11745 # out any dynamic loading 11746 if test "$ac_cv_func_dlopen" = yes 11747 then DYNLOADFILE="dynload_shlib.o" 11748 else DYNLOADFILE="dynload_stub.o" 11749 fi 11750 ;; 11751 esac 11752fi 11753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 11754$as_echo "$DYNLOADFILE" >&6; } 11755if test "$DYNLOADFILE" != "dynload_stub.o" 11756then 11757 11758$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h 11759 11760fi 11761 11762# MACHDEP_OBJS can be set to platform-specific object files needed by Python 11763 11764 11765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 11766$as_echo_n "checking MACHDEP_OBJS... " >&6; } 11767if test -z "$MACHDEP_OBJS" 11768then 11769 MACHDEP_OBJS=$extra_machdep_objs 11770else 11771 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" 11772fi 11773if test -z "$MACHDEP_OBJS"; then 11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11775$as_echo "none" >&6; } 11776else 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 11778$as_echo "$MACHDEP_OBJS" >&6; } 11779fi 11780 11781# checks for library functions 11782for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ 11783 clock confstr close_range copy_file_range ctermid dup3 execv explicit_bzero \ 11784 explicit_memset faccessat fchmod fchmodat fchown fchownat \ 11785 fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ 11786 futimens futimes gai_strerror getentropy \ 11787 getgrgid_r getgrnam_r \ 11788 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ 11789 getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \ 11790 if_nameindex \ 11791 initgroups kill killpg lchown lockf linkat lstat lutimes mmap \ 11792 memrchr mbrtowc mkdirat mkfifo \ 11793 madvise mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ 11794 posix_fallocate posix_fadvise posix_spawn posix_spawnp pread preadv preadv2 \ 11795 pthread_condattr_setclock pthread_init pthread_kill pwrite pwritev pwritev2 \ 11796 readlink readlinkat readv realpath renameat \ 11797 sem_open sem_timedwait sem_clockwait sem_getvalue sem_unlink sendfile setegid seteuid \ 11798 setgid sethostname \ 11799 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ 11800 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ 11801 sched_rr_get_interval \ 11802 sigaction sigaltstack sigfillset siginterrupt sigpending sigrelse \ 11803 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy strsignal symlinkat sync \ 11804 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ 11805 truncate uname unlinkat utimensat utimes waitid waitpid wait3 wait4 \ 11806 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty rtpSpawn 11807do : 11808 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11809ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11810if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11811 cat >>confdefs.h <<_ACEOF 11812#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11813_ACEOF 11814 11815fi 11816done 11817 11818 11819# Force lchmod off for Linux. Linux disallows changing the mode of symbolic 11820# links. Some libc implementations have a stub lchmod implementation that always 11821# returns an error. 11822if test "$MACHDEP" != linux; then 11823 for ac_func in lchmod 11824do : 11825 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" 11826if test "x$ac_cv_func_lchmod" = xyes; then : 11827 cat >>confdefs.h <<_ACEOF 11828#define HAVE_LCHMOD 1 11829_ACEOF 11830 11831fi 11832done 11833 11834fi 11835 11836ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> 11837 #include <dirent.h> 11838" 11839if test "x$ac_cv_have_decl_dirfd" = xyes; then : 11840 11841$as_echo "#define HAVE_DIRFD 1" >>confdefs.h 11842 11843fi 11844 11845 11846# For some functions, having a definition is not sufficient, since 11847# we want to take their address. 11848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 11849$as_echo_n "checking for chroot... " >&6; } 11850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11851/* end confdefs.h. */ 11852#include <unistd.h> 11853int 11854main () 11855{ 11856void *x=chroot 11857 ; 11858 return 0; 11859} 11860_ACEOF 11861if ac_fn_c_try_compile "$LINENO"; then : 11862 11863$as_echo "#define HAVE_CHROOT 1" >>confdefs.h 11864 11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11866$as_echo "yes" >&6; } 11867else 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11869$as_echo "no" >&6; } 11870 11871fi 11872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 11874$as_echo_n "checking for link... " >&6; } 11875cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11876/* end confdefs.h. */ 11877#include <unistd.h> 11878int 11879main () 11880{ 11881void *x=link 11882 ; 11883 return 0; 11884} 11885_ACEOF 11886if ac_fn_c_try_compile "$LINENO"; then : 11887 11888$as_echo "#define HAVE_LINK 1" >>confdefs.h 11889 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11891$as_echo "yes" >&6; } 11892else 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11894$as_echo "no" >&6; } 11895 11896fi 11897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 11899$as_echo_n "checking for symlink... " >&6; } 11900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11901/* end confdefs.h. */ 11902#include <unistd.h> 11903int 11904main () 11905{ 11906void *x=symlink 11907 ; 11908 return 0; 11909} 11910_ACEOF 11911if ac_fn_c_try_compile "$LINENO"; then : 11912 11913$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h 11914 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11916$as_echo "yes" >&6; } 11917else 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11919$as_echo "no" >&6; } 11920 11921fi 11922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 11924$as_echo_n "checking for fchdir... " >&6; } 11925cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11926/* end confdefs.h. */ 11927#include <unistd.h> 11928int 11929main () 11930{ 11931void *x=fchdir 11932 ; 11933 return 0; 11934} 11935_ACEOF 11936if ac_fn_c_try_compile "$LINENO"; then : 11937 11938$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h 11939 11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11941$as_echo "yes" >&6; } 11942else 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11944$as_echo "no" >&6; } 11945 11946fi 11947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 11949$as_echo_n "checking for fsync... " >&6; } 11950cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11951/* end confdefs.h. */ 11952#include <unistd.h> 11953int 11954main () 11955{ 11956void *x=fsync 11957 ; 11958 return 0; 11959} 11960_ACEOF 11961if ac_fn_c_try_compile "$LINENO"; then : 11962 11963$as_echo "#define HAVE_FSYNC 1" >>confdefs.h 11964 11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11966$as_echo "yes" >&6; } 11967else 11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11969$as_echo "no" >&6; } 11970 11971fi 11972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 11974$as_echo_n "checking for fdatasync... " >&6; } 11975cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11976/* end confdefs.h. */ 11977#include <unistd.h> 11978int 11979main () 11980{ 11981void *x=fdatasync 11982 ; 11983 return 0; 11984} 11985_ACEOF 11986if ac_fn_c_try_compile "$LINENO"; then : 11987 11988$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 11989 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11991$as_echo "yes" >&6; } 11992else 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11994$as_echo "no" >&6; } 11995 11996fi 11997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 11999$as_echo_n "checking for epoll... " >&6; } 12000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12001/* end confdefs.h. */ 12002#include <sys/epoll.h> 12003int 12004main () 12005{ 12006void *x=epoll_create 12007 ; 12008 return 0; 12009} 12010_ACEOF 12011if ac_fn_c_try_compile "$LINENO"; then : 12012 12013$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 12014 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12016$as_echo "yes" >&6; } 12017else 12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12019$as_echo "no" >&6; } 12020 12021fi 12022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 12024$as_echo_n "checking for epoll_create1... " >&6; } 12025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12026/* end confdefs.h. */ 12027#include <sys/epoll.h> 12028int 12029main () 12030{ 12031void *x=epoll_create1 12032 ; 12033 return 0; 12034} 12035_ACEOF 12036if ac_fn_c_try_compile "$LINENO"; then : 12037 12038$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 12039 12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12041$as_echo "yes" >&6; } 12042else 12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12044$as_echo "no" >&6; } 12045 12046fi 12047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 12049$as_echo_n "checking for kqueue... " >&6; } 12050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12051/* end confdefs.h. */ 12052 12053#include <sys/types.h> 12054#include <sys/event.h> 12055 12056int 12057main () 12058{ 12059int x=kqueue() 12060 ; 12061 return 0; 12062} 12063_ACEOF 12064if ac_fn_c_try_compile "$LINENO"; then : 12065 12066$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h 12067 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12069$as_echo "yes" >&6; } 12070else 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12072$as_echo "no" >&6; } 12073 12074fi 12075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 12077$as_echo_n "checking for prlimit... " >&6; } 12078cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12079/* end confdefs.h. */ 12080 12081#include <sys/time.h> 12082#include <sys/resource.h> 12083 12084int 12085main () 12086{ 12087void *x=prlimit 12088 ; 12089 return 0; 12090} 12091_ACEOF 12092if ac_fn_c_try_compile "$LINENO"; then : 12093 12094$as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h 12095 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12097$as_echo "yes" >&6; } 12098else 12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12100$as_echo "no" >&6; } 12101 12102fi 12103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _dyld_shared_cache_contains_path" >&5 12105$as_echo_n "checking for _dyld_shared_cache_contains_path... " >&6; } 12106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12107/* end confdefs.h. */ 12108#include <mach-o/dyld.h> 12109int 12110main () 12111{ 12112void *x=_dyld_shared_cache_contains_path 12113 ; 12114 return 0; 12115} 12116_ACEOF 12117if ac_fn_c_try_compile "$LINENO"; then : 12118 12119$as_echo "#define HAVE_DYLD_SHARED_CACHE_CONTAINS_PATH 1" >>confdefs.h 12120 12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12122$as_echo "yes" >&6; } 12123else 12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12125$as_echo "no" >&6; } 12126 12127fi 12128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12129 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 12131$as_echo_n "checking for memfd_create... " >&6; } 12132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12133/* end confdefs.h. */ 12134 12135#ifdef HAVE_SYS_MMAN_H 12136#include <sys/mman.h> 12137#endif 12138#ifdef HAVE_SYS_MEMFD_H 12139#include <sys/memfd.h> 12140#endif 12141 12142int 12143main () 12144{ 12145void *x=memfd_create 12146 ; 12147 return 0; 12148} 12149_ACEOF 12150if ac_fn_c_try_compile "$LINENO"; then : 12151 12152$as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 12153 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12155$as_echo "yes" >&6; } 12156else 12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12158$as_echo "no" >&6; } 12159 12160fi 12161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12162 12163# On some systems (eg. FreeBSD 5), we would find a definition of the 12164# functions ctermid_r, setgroups in the library, but no prototype 12165# (e.g. because we use _XOPEN_SOURCE). See whether we can take their 12166# address to avoid compiler warnings and potential miscompilations 12167# because of the missing prototypes. 12168 12169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 12170$as_echo_n "checking for ctermid_r... " >&6; } 12171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12172/* end confdefs.h. */ 12173 12174#include <stdio.h> 12175 12176int 12177main () 12178{ 12179void* p = ctermid_r 12180 ; 12181 return 0; 12182} 12183_ACEOF 12184if ac_fn_c_try_compile "$LINENO"; then : 12185 12186$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h 12187 12188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12189$as_echo "yes" >&6; } 12190else 12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12192$as_echo "no" >&6; } 12193 12194fi 12195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12196 12197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 12198$as_echo_n "checking for flock declaration... " >&6; } 12199if ${ac_cv_flock_decl+:} false; then : 12200 $as_echo_n "(cached) " >&6 12201else 12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12203/* end confdefs.h. */ 12204#include <sys/file.h> 12205int 12206main () 12207{ 12208void* p = flock 12209 12210 ; 12211 return 0; 12212} 12213_ACEOF 12214if ac_fn_c_try_compile "$LINENO"; then : 12215 ac_cv_flock_decl=yes 12216else 12217 ac_cv_flock_decl=no 12218 12219fi 12220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12221 12222fi 12223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 12224$as_echo "$ac_cv_flock_decl" >&6; } 12225if test "x${ac_cv_flock_decl}" = xyes; then 12226 for ac_func in flock 12227do : 12228 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 12229if test "x$ac_cv_func_flock" = xyes; then : 12230 cat >>confdefs.h <<_ACEOF 12231#define HAVE_FLOCK 1 12232_ACEOF 12233 12234else 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 12236$as_echo_n "checking for flock in -lbsd... " >&6; } 12237if ${ac_cv_lib_bsd_flock+:} false; then : 12238 $as_echo_n "(cached) " >&6 12239else 12240 ac_check_lib_save_LIBS=$LIBS 12241LIBS="-lbsd $LIBS" 12242cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12243/* end confdefs.h. */ 12244 12245/* Override any GCC internal prototype to avoid an error. 12246 Use char because int might match the return type of a GCC 12247 builtin and then its argument prototype would still apply. */ 12248#ifdef __cplusplus 12249extern "C" 12250#endif 12251char flock (); 12252int 12253main () 12254{ 12255return flock (); 12256 ; 12257 return 0; 12258} 12259_ACEOF 12260if ac_fn_c_try_link "$LINENO"; then : 12261 ac_cv_lib_bsd_flock=yes 12262else 12263 ac_cv_lib_bsd_flock=no 12264fi 12265rm -f core conftest.err conftest.$ac_objext \ 12266 conftest$ac_exeext conftest.$ac_ext 12267LIBS=$ac_check_lib_save_LIBS 12268fi 12269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 12270$as_echo "$ac_cv_lib_bsd_flock" >&6; } 12271if test "x$ac_cv_lib_bsd_flock" = xyes; then : 12272 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h 12273 12274 12275$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h 12276 12277 12278fi 12279 12280 12281fi 12282done 12283 12284fi 12285 12286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 12287$as_echo_n "checking for getpagesize... " >&6; } 12288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12289/* end confdefs.h. */ 12290 12291#include <unistd.h> 12292 12293int 12294main () 12295{ 12296void* p = getpagesize 12297 ; 12298 return 0; 12299} 12300_ACEOF 12301if ac_fn_c_try_compile "$LINENO"; then : 12302 12303$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 12304 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12306$as_echo "yes" >&6; } 12307else 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12309$as_echo "no" >&6; } 12310 12311fi 12312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12313 12314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 12315$as_echo_n "checking for broken unsetenv... " >&6; } 12316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12317/* end confdefs.h. */ 12318 12319#include <stdlib.h> 12320 12321int 12322main () 12323{ 12324int res = unsetenv("DUMMY") 12325 ; 12326 return 0; 12327} 12328_ACEOF 12329if ac_fn_c_try_compile "$LINENO"; then : 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12331$as_echo "no" >&6; } 12332else 12333 12334$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h 12335 12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12337$as_echo "yes" >&6; } 12338 12339fi 12340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12341 12342for ac_prog in true 12343do 12344 # Extract the first word of "$ac_prog", so it can be a program name with args. 12345set dummy $ac_prog; ac_word=$2 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12347$as_echo_n "checking for $ac_word... " >&6; } 12348if ${ac_cv_prog_TRUE+:} false; then : 12349 $as_echo_n "(cached) " >&6 12350else 12351 if test -n "$TRUE"; then 12352 ac_cv_prog_TRUE="$TRUE" # Let the user override the test. 12353else 12354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12355for as_dir in $PATH 12356do 12357 IFS=$as_save_IFS 12358 test -z "$as_dir" && as_dir=. 12359 for ac_exec_ext in '' $ac_executable_extensions; do 12360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12361 ac_cv_prog_TRUE="$ac_prog" 12362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12363 break 2 12364 fi 12365done 12366 done 12367IFS=$as_save_IFS 12368 12369fi 12370fi 12371TRUE=$ac_cv_prog_TRUE 12372if test -n "$TRUE"; then 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 12374$as_echo "$TRUE" >&6; } 12375else 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12377$as_echo "no" >&6; } 12378fi 12379 12380 12381 test -n "$TRUE" && break 12382done 12383test -n "$TRUE" || TRUE="/bin/true" 12384 12385 12386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 12387$as_echo_n "checking for inet_aton in -lc... " >&6; } 12388if ${ac_cv_lib_c_inet_aton+:} false; then : 12389 $as_echo_n "(cached) " >&6 12390else 12391 ac_check_lib_save_LIBS=$LIBS 12392LIBS="-lc $LIBS" 12393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12394/* end confdefs.h. */ 12395 12396/* Override any GCC internal prototype to avoid an error. 12397 Use char because int might match the return type of a GCC 12398 builtin and then its argument prototype would still apply. */ 12399#ifdef __cplusplus 12400extern "C" 12401#endif 12402char inet_aton (); 12403int 12404main () 12405{ 12406return inet_aton (); 12407 ; 12408 return 0; 12409} 12410_ACEOF 12411if ac_fn_c_try_link "$LINENO"; then : 12412 ac_cv_lib_c_inet_aton=yes 12413else 12414 ac_cv_lib_c_inet_aton=no 12415fi 12416rm -f core conftest.err conftest.$ac_objext \ 12417 conftest$ac_exeext conftest.$ac_ext 12418LIBS=$ac_check_lib_save_LIBS 12419fi 12420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 12421$as_echo "$ac_cv_lib_c_inet_aton" >&6; } 12422if test "x$ac_cv_lib_c_inet_aton" = xyes; then : 12423 $ac_cv_prog_TRUE 12424else 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 12426$as_echo_n "checking for inet_aton in -lresolv... " >&6; } 12427if ${ac_cv_lib_resolv_inet_aton+:} false; then : 12428 $as_echo_n "(cached) " >&6 12429else 12430 ac_check_lib_save_LIBS=$LIBS 12431LIBS="-lresolv $LIBS" 12432cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12433/* end confdefs.h. */ 12434 12435/* Override any GCC internal prototype to avoid an error. 12436 Use char because int might match the return type of a GCC 12437 builtin and then its argument prototype would still apply. */ 12438#ifdef __cplusplus 12439extern "C" 12440#endif 12441char inet_aton (); 12442int 12443main () 12444{ 12445return inet_aton (); 12446 ; 12447 return 0; 12448} 12449_ACEOF 12450if ac_fn_c_try_link "$LINENO"; then : 12451 ac_cv_lib_resolv_inet_aton=yes 12452else 12453 ac_cv_lib_resolv_inet_aton=no 12454fi 12455rm -f core conftest.err conftest.$ac_objext \ 12456 conftest$ac_exeext conftest.$ac_ext 12457LIBS=$ac_check_lib_save_LIBS 12458fi 12459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 12460$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } 12461if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : 12462 cat >>confdefs.h <<_ACEOF 12463#define HAVE_LIBRESOLV 1 12464_ACEOF 12465 12466 LIBS="-lresolv $LIBS" 12467 12468fi 12469 12470 12471fi 12472 12473 12474# On Tru64, chflags seems to be present, but calling it will 12475# exit Python 12476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 12477$as_echo_n "checking for chflags... " >&6; } 12478if ${ac_cv_have_chflags+:} false; then : 12479 $as_echo_n "(cached) " >&6 12480else 12481 if test "$cross_compiling" = yes; then : 12482 ac_cv_have_chflags=cross 12483else 12484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12485/* end confdefs.h. */ 12486 12487#include <sys/stat.h> 12488#include <unistd.h> 12489int main(int argc, char*argv[]) 12490{ 12491 if(chflags(argv[0], 0) != 0) 12492 return 1; 12493 return 0; 12494} 12495 12496_ACEOF 12497if ac_fn_c_try_run "$LINENO"; then : 12498 ac_cv_have_chflags=yes 12499else 12500 ac_cv_have_chflags=no 12501fi 12502rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12503 conftest.$ac_objext conftest.beam conftest.$ac_ext 12504fi 12505 12506 12507fi 12508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 12509$as_echo "$ac_cv_have_chflags" >&6; } 12510if test "$ac_cv_have_chflags" = cross ; then 12511 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" 12512if test "x$ac_cv_func_chflags" = xyes; then : 12513 ac_cv_have_chflags="yes" 12514else 12515 ac_cv_have_chflags="no" 12516fi 12517 12518fi 12519if test "$ac_cv_have_chflags" = yes ; then 12520 12521$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h 12522 12523fi 12524 12525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 12526$as_echo_n "checking for lchflags... " >&6; } 12527if ${ac_cv_have_lchflags+:} false; then : 12528 $as_echo_n "(cached) " >&6 12529else 12530 if test "$cross_compiling" = yes; then : 12531 ac_cv_have_lchflags=cross 12532else 12533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12534/* end confdefs.h. */ 12535 12536#include <sys/stat.h> 12537#include <unistd.h> 12538int main(int argc, char*argv[]) 12539{ 12540 if(lchflags(argv[0], 0) != 0) 12541 return 1; 12542 return 0; 12543} 12544 12545_ACEOF 12546if ac_fn_c_try_run "$LINENO"; then : 12547 ac_cv_have_lchflags=yes 12548else 12549 ac_cv_have_lchflags=no 12550fi 12551rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12552 conftest.$ac_objext conftest.beam conftest.$ac_ext 12553fi 12554 12555 12556fi 12557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 12558$as_echo "$ac_cv_have_lchflags" >&6; } 12559if test "$ac_cv_have_lchflags" = cross ; then 12560 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" 12561if test "x$ac_cv_func_lchflags" = xyes; then : 12562 ac_cv_have_lchflags="yes" 12563else 12564 ac_cv_have_lchflags="no" 12565fi 12566 12567fi 12568if test "$ac_cv_have_lchflags" = yes ; then 12569 12570$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h 12571 12572fi 12573 12574case $ac_sys_system/$ac_sys_release in 12575Darwin/*) 12576 _CUR_CFLAGS="${CFLAGS}" 12577 _CUR_LDFLAGS="${LDFLAGS}" 12578 CFLAGS="${CFLAGS} -Wl,-search_paths_first" 12579 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" 12580 ;; 12581esac 12582 12583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 12584$as_echo_n "checking for inflateCopy in -lz... " >&6; } 12585if ${ac_cv_lib_z_inflateCopy+:} false; then : 12586 $as_echo_n "(cached) " >&6 12587else 12588 ac_check_lib_save_LIBS=$LIBS 12589LIBS="-lz $LIBS" 12590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12591/* end confdefs.h. */ 12592 12593/* Override any GCC internal prototype to avoid an error. 12594 Use char because int might match the return type of a GCC 12595 builtin and then its argument prototype would still apply. */ 12596#ifdef __cplusplus 12597extern "C" 12598#endif 12599char inflateCopy (); 12600int 12601main () 12602{ 12603return inflateCopy (); 12604 ; 12605 return 0; 12606} 12607_ACEOF 12608if ac_fn_c_try_link "$LINENO"; then : 12609 ac_cv_lib_z_inflateCopy=yes 12610else 12611 ac_cv_lib_z_inflateCopy=no 12612fi 12613rm -f core conftest.err conftest.$ac_objext \ 12614 conftest$ac_exeext conftest.$ac_ext 12615LIBS=$ac_check_lib_save_LIBS 12616fi 12617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 12618$as_echo "$ac_cv_lib_z_inflateCopy" >&6; } 12619if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : 12620 12621$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h 12622 12623fi 12624 12625 12626case $ac_sys_system/$ac_sys_release in 12627Darwin/*) 12628 CFLAGS="${_CUR_CFLAGS}" 12629 LDFLAGS="${_CUR_LDFLAGS}" 12630 ;; 12631esac 12632 12633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 12634$as_echo_n "checking for hstrerror... " >&6; } 12635cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12636/* end confdefs.h. */ 12637 12638#include <netdb.h> 12639 12640int 12641main () 12642{ 12643void* p = hstrerror; hstrerror(0) 12644 ; 12645 return 0; 12646} 12647_ACEOF 12648if ac_fn_c_try_link "$LINENO"; then : 12649 12650$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h 12651 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12653$as_echo "yes" >&6; } 12654else 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12656$as_echo "no" >&6; } 12657 12658fi 12659rm -f core conftest.err conftest.$ac_objext \ 12660 conftest$ac_exeext conftest.$ac_ext 12661 12662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 12663$as_echo_n "checking for inet_aton... " >&6; } 12664cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12665/* end confdefs.h. */ 12666 12667#include <sys/types.h> 12668#include <sys/socket.h> 12669#include <netinet/in.h> 12670#include <arpa/inet.h> 12671 12672int 12673main () 12674{ 12675void* p = inet_aton;inet_aton(0,0) 12676 ; 12677 return 0; 12678} 12679_ACEOF 12680if ac_fn_c_try_link "$LINENO"; then : 12681 12682$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 12683 12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12685$as_echo "yes" >&6; } 12686else 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12688$as_echo "no" >&6; } 12689 12690fi 12691rm -f core conftest.err conftest.$ac_objext \ 12692 conftest$ac_exeext conftest.$ac_ext 12693 12694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 12695$as_echo_n "checking for inet_pton... " >&6; } 12696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12697/* end confdefs.h. */ 12698 12699#include <sys/types.h> 12700#include <sys/socket.h> 12701#include <netinet/in.h> 12702#include <arpa/inet.h> 12703 12704int 12705main () 12706{ 12707void* p = inet_pton 12708 ; 12709 return 0; 12710} 12711_ACEOF 12712if ac_fn_c_try_compile "$LINENO"; then : 12713 12714$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 12715 12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12717$as_echo "yes" >&6; } 12718else 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12720$as_echo "no" >&6; } 12721 12722fi 12723rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12724 12725# On some systems, setgroups is in unistd.h, on others, in grp.h 12726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 12727$as_echo_n "checking for setgroups... " >&6; } 12728cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12729/* end confdefs.h. */ 12730 12731#include <unistd.h> 12732#ifdef HAVE_GRP_H 12733#include <grp.h> 12734#endif 12735 12736int 12737main () 12738{ 12739void* p = setgroups 12740 ; 12741 return 0; 12742} 12743_ACEOF 12744if ac_fn_c_try_compile "$LINENO"; then : 12745 12746$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h 12747 12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12749$as_echo "yes" >&6; } 12750else 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12752$as_echo "no" >&6; } 12753 12754fi 12755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12756 12757# check for openpty and forkpty 12758 12759for ac_func in openpty 12760do : 12761 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 12762if test "x$ac_cv_func_openpty" = xyes; then : 12763 cat >>confdefs.h <<_ACEOF 12764#define HAVE_OPENPTY 1 12765_ACEOF 12766 12767else 12768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 12769$as_echo_n "checking for openpty in -lutil... " >&6; } 12770if ${ac_cv_lib_util_openpty+:} false; then : 12771 $as_echo_n "(cached) " >&6 12772else 12773 ac_check_lib_save_LIBS=$LIBS 12774LIBS="-lutil $LIBS" 12775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12776/* end confdefs.h. */ 12777 12778/* Override any GCC internal prototype to avoid an error. 12779 Use char because int might match the return type of a GCC 12780 builtin and then its argument prototype would still apply. */ 12781#ifdef __cplusplus 12782extern "C" 12783#endif 12784char openpty (); 12785int 12786main () 12787{ 12788return openpty (); 12789 ; 12790 return 0; 12791} 12792_ACEOF 12793if ac_fn_c_try_link "$LINENO"; then : 12794 ac_cv_lib_util_openpty=yes 12795else 12796 ac_cv_lib_util_openpty=no 12797fi 12798rm -f core conftest.err conftest.$ac_objext \ 12799 conftest$ac_exeext conftest.$ac_ext 12800LIBS=$ac_check_lib_save_LIBS 12801fi 12802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 12803$as_echo "$ac_cv_lib_util_openpty" >&6; } 12804if test "x$ac_cv_lib_util_openpty" = xyes; then : 12805 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 12806 LIBS="$LIBS -lutil" 12807else 12808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 12809$as_echo_n "checking for openpty in -lbsd... " >&6; } 12810if ${ac_cv_lib_bsd_openpty+:} false; then : 12811 $as_echo_n "(cached) " >&6 12812else 12813 ac_check_lib_save_LIBS=$LIBS 12814LIBS="-lbsd $LIBS" 12815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12816/* end confdefs.h. */ 12817 12818/* Override any GCC internal prototype to avoid an error. 12819 Use char because int might match the return type of a GCC 12820 builtin and then its argument prototype would still apply. */ 12821#ifdef __cplusplus 12822extern "C" 12823#endif 12824char openpty (); 12825int 12826main () 12827{ 12828return openpty (); 12829 ; 12830 return 0; 12831} 12832_ACEOF 12833if ac_fn_c_try_link "$LINENO"; then : 12834 ac_cv_lib_bsd_openpty=yes 12835else 12836 ac_cv_lib_bsd_openpty=no 12837fi 12838rm -f core conftest.err conftest.$ac_objext \ 12839 conftest$ac_exeext conftest.$ac_ext 12840LIBS=$ac_check_lib_save_LIBS 12841fi 12842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 12843$as_echo "$ac_cv_lib_bsd_openpty" >&6; } 12844if test "x$ac_cv_lib_bsd_openpty" = xyes; then : 12845 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 12846 LIBS="$LIBS -lbsd" 12847fi 12848 12849 12850fi 12851 12852 12853fi 12854done 12855 12856for ac_func in forkpty 12857do : 12858 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" 12859if test "x$ac_cv_func_forkpty" = xyes; then : 12860 cat >>confdefs.h <<_ACEOF 12861#define HAVE_FORKPTY 1 12862_ACEOF 12863 12864else 12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 12866$as_echo_n "checking for forkpty in -lutil... " >&6; } 12867if ${ac_cv_lib_util_forkpty+:} false; then : 12868 $as_echo_n "(cached) " >&6 12869else 12870 ac_check_lib_save_LIBS=$LIBS 12871LIBS="-lutil $LIBS" 12872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12873/* end confdefs.h. */ 12874 12875/* Override any GCC internal prototype to avoid an error. 12876 Use char because int might match the return type of a GCC 12877 builtin and then its argument prototype would still apply. */ 12878#ifdef __cplusplus 12879extern "C" 12880#endif 12881char forkpty (); 12882int 12883main () 12884{ 12885return forkpty (); 12886 ; 12887 return 0; 12888} 12889_ACEOF 12890if ac_fn_c_try_link "$LINENO"; then : 12891 ac_cv_lib_util_forkpty=yes 12892else 12893 ac_cv_lib_util_forkpty=no 12894fi 12895rm -f core conftest.err conftest.$ac_objext \ 12896 conftest$ac_exeext conftest.$ac_ext 12897LIBS=$ac_check_lib_save_LIBS 12898fi 12899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 12900$as_echo "$ac_cv_lib_util_forkpty" >&6; } 12901if test "x$ac_cv_lib_util_forkpty" = xyes; then : 12902 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 12903 LIBS="$LIBS -lutil" 12904else 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 12906$as_echo_n "checking for forkpty in -lbsd... " >&6; } 12907if ${ac_cv_lib_bsd_forkpty+:} false; then : 12908 $as_echo_n "(cached) " >&6 12909else 12910 ac_check_lib_save_LIBS=$LIBS 12911LIBS="-lbsd $LIBS" 12912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12913/* end confdefs.h. */ 12914 12915/* Override any GCC internal prototype to avoid an error. 12916 Use char because int might match the return type of a GCC 12917 builtin and then its argument prototype would still apply. */ 12918#ifdef __cplusplus 12919extern "C" 12920#endif 12921char forkpty (); 12922int 12923main () 12924{ 12925return forkpty (); 12926 ; 12927 return 0; 12928} 12929_ACEOF 12930if ac_fn_c_try_link "$LINENO"; then : 12931 ac_cv_lib_bsd_forkpty=yes 12932else 12933 ac_cv_lib_bsd_forkpty=no 12934fi 12935rm -f core conftest.err conftest.$ac_objext \ 12936 conftest$ac_exeext conftest.$ac_ext 12937LIBS=$ac_check_lib_save_LIBS 12938fi 12939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 12940$as_echo "$ac_cv_lib_bsd_forkpty" >&6; } 12941if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : 12942 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 12943 LIBS="$LIBS -lbsd" 12944fi 12945 12946 12947fi 12948 12949 12950fi 12951done 12952 12953 12954# check for long file support functions 12955for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs 12956do : 12957 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12958ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12959if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12960 cat >>confdefs.h <<_ACEOF 12961#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12962_ACEOF 12963 12964fi 12965done 12966 12967 12968ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 12969if test "x$ac_cv_func_dup2" = xyes; then : 12970 $as_echo "#define HAVE_DUP2 1" >>confdefs.h 12971 12972else 12973 case " $LIBOBJS " in 12974 *" dup2.$ac_objext "* ) ;; 12975 *) LIBOBJS="$LIBOBJS dup2.$ac_objext" 12976 ;; 12977esac 12978 12979fi 12980 12981ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 12982if test "x$ac_cv_func_strdup" = xyes; then : 12983 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h 12984 12985else 12986 case " $LIBOBJS " in 12987 *" strdup.$ac_objext "* ) ;; 12988 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 12989 ;; 12990esac 12991 12992fi 12993 12994 12995for ac_func in getpgrp 12996do : 12997 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 12998if test "x$ac_cv_func_getpgrp" = xyes; then : 12999 cat >>confdefs.h <<_ACEOF 13000#define HAVE_GETPGRP 1 13001_ACEOF 13002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13003/* end confdefs.h. */ 13004#include <unistd.h> 13005int 13006main () 13007{ 13008getpgrp(0); 13009 ; 13010 return 0; 13011} 13012_ACEOF 13013if ac_fn_c_try_compile "$LINENO"; then : 13014 13015$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h 13016 13017fi 13018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13019 13020fi 13021done 13022 13023for ac_func in setpgrp 13024do : 13025 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 13026if test "x$ac_cv_func_setpgrp" = xyes; then : 13027 cat >>confdefs.h <<_ACEOF 13028#define HAVE_SETPGRP 1 13029_ACEOF 13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13031/* end confdefs.h. */ 13032#include <unistd.h> 13033int 13034main () 13035{ 13036setpgrp(0,0); 13037 ; 13038 return 0; 13039} 13040_ACEOF 13041if ac_fn_c_try_compile "$LINENO"; then : 13042 13043$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h 13044 13045fi 13046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13047 13048fi 13049done 13050 13051 13052# We search for both crypt and crypt_r as one or the other may be defined 13053# This gets us our -lcrypt in LIBS when required on the target platform. 13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 13055$as_echo_n "checking for library containing crypt... " >&6; } 13056if ${ac_cv_search_crypt+:} false; then : 13057 $as_echo_n "(cached) " >&6 13058else 13059 ac_func_search_save_LIBS=$LIBS 13060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13061/* end confdefs.h. */ 13062 13063/* Override any GCC internal prototype to avoid an error. 13064 Use char because int might match the return type of a GCC 13065 builtin and then its argument prototype would still apply. */ 13066#ifdef __cplusplus 13067extern "C" 13068#endif 13069char crypt (); 13070int 13071main () 13072{ 13073return crypt (); 13074 ; 13075 return 0; 13076} 13077_ACEOF 13078for ac_lib in '' crypt; do 13079 if test -z "$ac_lib"; then 13080 ac_res="none required" 13081 else 13082 ac_res=-l$ac_lib 13083 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13084 fi 13085 if ac_fn_c_try_link "$LINENO"; then : 13086 ac_cv_search_crypt=$ac_res 13087fi 13088rm -f core conftest.err conftest.$ac_objext \ 13089 conftest$ac_exeext 13090 if ${ac_cv_search_crypt+:} false; then : 13091 break 13092fi 13093done 13094if ${ac_cv_search_crypt+:} false; then : 13095 13096else 13097 ac_cv_search_crypt=no 13098fi 13099rm conftest.$ac_ext 13100LIBS=$ac_func_search_save_LIBS 13101fi 13102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 13103$as_echo "$ac_cv_search_crypt" >&6; } 13104ac_res=$ac_cv_search_crypt 13105if test "$ac_res" != no; then : 13106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13107 13108fi 13109 13110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 13111$as_echo_n "checking for library containing crypt_r... " >&6; } 13112if ${ac_cv_search_crypt_r+:} false; then : 13113 $as_echo_n "(cached) " >&6 13114else 13115 ac_func_search_save_LIBS=$LIBS 13116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13117/* end confdefs.h. */ 13118 13119/* Override any GCC internal prototype to avoid an error. 13120 Use char because int might match the return type of a GCC 13121 builtin and then its argument prototype would still apply. */ 13122#ifdef __cplusplus 13123extern "C" 13124#endif 13125char crypt_r (); 13126int 13127main () 13128{ 13129return crypt_r (); 13130 ; 13131 return 0; 13132} 13133_ACEOF 13134for ac_lib in '' crypt; do 13135 if test -z "$ac_lib"; then 13136 ac_res="none required" 13137 else 13138 ac_res=-l$ac_lib 13139 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13140 fi 13141 if ac_fn_c_try_link "$LINENO"; then : 13142 ac_cv_search_crypt_r=$ac_res 13143fi 13144rm -f core conftest.err conftest.$ac_objext \ 13145 conftest$ac_exeext 13146 if ${ac_cv_search_crypt_r+:} false; then : 13147 break 13148fi 13149done 13150if ${ac_cv_search_crypt_r+:} false; then : 13151 13152else 13153 ac_cv_search_crypt_r=no 13154fi 13155rm conftest.$ac_ext 13156LIBS=$ac_func_search_save_LIBS 13157fi 13158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 13159$as_echo "$ac_cv_search_crypt_r" >&6; } 13160ac_res=$ac_cv_search_crypt_r 13161if test "$ac_res" != no; then : 13162 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13163 13164fi 13165 13166 13167ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" 13168if test "x$ac_cv_func_crypt_r" = xyes; then : 13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13170/* end confdefs.h. */ 13171 13172#define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */ 13173#include <crypt.h> 13174 13175int 13176main () 13177{ 13178 13179struct crypt_data d; 13180char *r = crypt_r("", "", &d); 13181 13182 ; 13183 return 0; 13184} 13185_ACEOF 13186if ac_fn_c_try_compile "$LINENO"; then : 13187 13188$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h 13189 13190fi 13191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13192 13193fi 13194 13195 13196for ac_func in clock_gettime 13197do : 13198 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 13199if test "x$ac_cv_func_clock_gettime" = xyes; then : 13200 cat >>confdefs.h <<_ACEOF 13201#define HAVE_CLOCK_GETTIME 1 13202_ACEOF 13203 13204else 13205 13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 13207$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 13208if ${ac_cv_lib_rt_clock_gettime+:} false; then : 13209 $as_echo_n "(cached) " >&6 13210else 13211 ac_check_lib_save_LIBS=$LIBS 13212LIBS="-lrt $LIBS" 13213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13214/* end confdefs.h. */ 13215 13216/* Override any GCC internal prototype to avoid an error. 13217 Use char because int might match the return type of a GCC 13218 builtin and then its argument prototype would still apply. */ 13219#ifdef __cplusplus 13220extern "C" 13221#endif 13222char clock_gettime (); 13223int 13224main () 13225{ 13226return clock_gettime (); 13227 ; 13228 return 0; 13229} 13230_ACEOF 13231if ac_fn_c_try_link "$LINENO"; then : 13232 ac_cv_lib_rt_clock_gettime=yes 13233else 13234 ac_cv_lib_rt_clock_gettime=no 13235fi 13236rm -f core conftest.err conftest.$ac_objext \ 13237 conftest$ac_exeext conftest.$ac_ext 13238LIBS=$ac_check_lib_save_LIBS 13239fi 13240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 13241$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 13242if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 13243 13244 LIBS="$LIBS -lrt" 13245 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 13246 13247 13248$as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h 13249 13250 13251fi 13252 13253 13254fi 13255done 13256 13257 13258for ac_func in clock_getres 13259do : 13260 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" 13261if test "x$ac_cv_func_clock_getres" = xyes; then : 13262 cat >>confdefs.h <<_ACEOF 13263#define HAVE_CLOCK_GETRES 1 13264_ACEOF 13265 13266else 13267 13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 13269$as_echo_n "checking for clock_getres in -lrt... " >&6; } 13270if ${ac_cv_lib_rt_clock_getres+:} false; then : 13271 $as_echo_n "(cached) " >&6 13272else 13273 ac_check_lib_save_LIBS=$LIBS 13274LIBS="-lrt $LIBS" 13275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13276/* end confdefs.h. */ 13277 13278/* Override any GCC internal prototype to avoid an error. 13279 Use char because int might match the return type of a GCC 13280 builtin and then its argument prototype would still apply. */ 13281#ifdef __cplusplus 13282extern "C" 13283#endif 13284char clock_getres (); 13285int 13286main () 13287{ 13288return clock_getres (); 13289 ; 13290 return 0; 13291} 13292_ACEOF 13293if ac_fn_c_try_link "$LINENO"; then : 13294 ac_cv_lib_rt_clock_getres=yes 13295else 13296 ac_cv_lib_rt_clock_getres=no 13297fi 13298rm -f core conftest.err conftest.$ac_objext \ 13299 conftest$ac_exeext conftest.$ac_ext 13300LIBS=$ac_check_lib_save_LIBS 13301fi 13302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 13303$as_echo "$ac_cv_lib_rt_clock_getres" >&6; } 13304if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : 13305 13306 $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h 13307 13308 13309fi 13310 13311 13312fi 13313done 13314 13315 13316for ac_func in clock_settime 13317do : 13318 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" 13319if test "x$ac_cv_func_clock_settime" = xyes; then : 13320 cat >>confdefs.h <<_ACEOF 13321#define HAVE_CLOCK_SETTIME 1 13322_ACEOF 13323 13324else 13325 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 13327$as_echo_n "checking for clock_settime in -lrt... " >&6; } 13328if ${ac_cv_lib_rt_clock_settime+:} false; then : 13329 $as_echo_n "(cached) " >&6 13330else 13331 ac_check_lib_save_LIBS=$LIBS 13332LIBS="-lrt $LIBS" 13333cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13334/* end confdefs.h. */ 13335 13336/* Override any GCC internal prototype to avoid an error. 13337 Use char because int might match the return type of a GCC 13338 builtin and then its argument prototype would still apply. */ 13339#ifdef __cplusplus 13340extern "C" 13341#endif 13342char clock_settime (); 13343int 13344main () 13345{ 13346return clock_settime (); 13347 ; 13348 return 0; 13349} 13350_ACEOF 13351if ac_fn_c_try_link "$LINENO"; then : 13352 ac_cv_lib_rt_clock_settime=yes 13353else 13354 ac_cv_lib_rt_clock_settime=no 13355fi 13356rm -f core conftest.err conftest.$ac_objext \ 13357 conftest$ac_exeext conftest.$ac_ext 13358LIBS=$ac_check_lib_save_LIBS 13359fi 13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 13361$as_echo "$ac_cv_lib_rt_clock_settime" >&6; } 13362if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : 13363 13364 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h 13365 13366 13367fi 13368 13369 13370fi 13371done 13372 13373 13374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 13375$as_echo_n "checking for major... " >&6; } 13376cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13377/* end confdefs.h. */ 13378 13379#if defined(MAJOR_IN_MKDEV) 13380#include <sys/mkdev.h> 13381#elif defined(MAJOR_IN_SYSMACROS) 13382#include <sys/sysmacros.h> 13383#else 13384#include <sys/types.h> 13385#endif 13386 13387int 13388main () 13389{ 13390 13391 makedev(major(0),minor(0)); 13392 13393 ; 13394 return 0; 13395} 13396_ACEOF 13397if ac_fn_c_try_link "$LINENO"; then : 13398 13399 13400$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h 13401 13402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13403$as_echo "yes" >&6; } 13404 13405else 13406 13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13408$as_echo "no" >&6; } 13409 13410fi 13411rm -f core conftest.err conftest.$ac_objext \ 13412 conftest$ac_exeext conftest.$ac_ext 13413 13414# On OSF/1 V5.1, getaddrinfo is available, but a define 13415# for [no]getaddrinfo in netdb.h. 13416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 13417$as_echo_n "checking for getaddrinfo... " >&6; } 13418cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13419/* end confdefs.h. */ 13420 13421#include <sys/types.h> 13422#include <sys/socket.h> 13423#include <netdb.h> 13424#include <stdio.h> 13425 13426int 13427main () 13428{ 13429getaddrinfo(NULL, NULL, NULL, NULL); 13430 ; 13431 return 0; 13432} 13433_ACEOF 13434if ac_fn_c_try_link "$LINENO"; then : 13435 have_getaddrinfo=yes 13436else 13437 have_getaddrinfo=no 13438fi 13439rm -f core conftest.err conftest.$ac_objext \ 13440 conftest$ac_exeext conftest.$ac_ext 13441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 13442$as_echo "$have_getaddrinfo" >&6; } 13443if test $have_getaddrinfo = yes 13444then 13445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 13446$as_echo_n "checking getaddrinfo bug... " >&6; } 13447 if ${ac_cv_buggy_getaddrinfo+:} false; then : 13448 $as_echo_n "(cached) " >&6 13449else 13450 if test "$cross_compiling" = yes; then : 13451 13452if test "${enable_ipv6+set}" = set; then 13453 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" 13454else 13455 ac_cv_buggy_getaddrinfo=yes 13456fi 13457else 13458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13459/* end confdefs.h. */ 13460 13461#include <stdio.h> 13462#include <sys/types.h> 13463#include <netdb.h> 13464#include <string.h> 13465#include <sys/socket.h> 13466#include <netinet/in.h> 13467 13468int main() 13469{ 13470 int passive, gaierr, inet4 = 0, inet6 = 0; 13471 struct addrinfo hints, *ai, *aitop; 13472 char straddr[INET6_ADDRSTRLEN], strport[16]; 13473 13474 for (passive = 0; passive <= 1; passive++) { 13475 memset(&hints, 0, sizeof(hints)); 13476 hints.ai_family = AF_UNSPEC; 13477 hints.ai_flags = passive ? AI_PASSIVE : 0; 13478 hints.ai_socktype = SOCK_STREAM; 13479 hints.ai_protocol = IPPROTO_TCP; 13480 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 13481 (void)gai_strerror(gaierr); 13482 goto bad; 13483 } 13484 for (ai = aitop; ai; ai = ai->ai_next) { 13485 if (ai->ai_addr == NULL || 13486 ai->ai_addrlen == 0 || 13487 getnameinfo(ai->ai_addr, ai->ai_addrlen, 13488 straddr, sizeof(straddr), strport, sizeof(strport), 13489 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 13490 goto bad; 13491 } 13492 switch (ai->ai_family) { 13493 case AF_INET: 13494 if (strcmp(strport, "54321") != 0) { 13495 goto bad; 13496 } 13497 if (passive) { 13498 if (strcmp(straddr, "0.0.0.0") != 0) { 13499 goto bad; 13500 } 13501 } else { 13502 if (strcmp(straddr, "127.0.0.1") != 0) { 13503 goto bad; 13504 } 13505 } 13506 inet4++; 13507 break; 13508 case AF_INET6: 13509 if (strcmp(strport, "54321") != 0) { 13510 goto bad; 13511 } 13512 if (passive) { 13513 if (strcmp(straddr, "::") != 0) { 13514 goto bad; 13515 } 13516 } else { 13517 if (strcmp(straddr, "::1") != 0) { 13518 goto bad; 13519 } 13520 } 13521 inet6++; 13522 break; 13523 case AF_UNSPEC: 13524 goto bad; 13525 break; 13526 default: 13527 /* another family support? */ 13528 break; 13529 } 13530 } 13531 freeaddrinfo(aitop); 13532 aitop = NULL; 13533 } 13534 13535 if (!(inet4 == 0 || inet4 == 2)) 13536 goto bad; 13537 if (!(inet6 == 0 || inet6 == 2)) 13538 goto bad; 13539 13540 if (aitop) 13541 freeaddrinfo(aitop); 13542 return 0; 13543 13544 bad: 13545 if (aitop) 13546 freeaddrinfo(aitop); 13547 return 1; 13548} 13549 13550_ACEOF 13551if ac_fn_c_try_run "$LINENO"; then : 13552 ac_cv_buggy_getaddrinfo=no 13553else 13554 ac_cv_buggy_getaddrinfo=yes 13555fi 13556rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13557 conftest.$ac_objext conftest.beam conftest.$ac_ext 13558fi 13559 13560fi 13561 13562fi 13563 13564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 13565$as_echo "$ac_cv_buggy_getaddrinfo" >&6; } 13566 13567if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes 13568then 13569 if test $ipv6 = yes 13570 then 13571 echo 'Fatal: You must get working getaddrinfo() function.' 13572 echo ' or you can specify "--disable-ipv6"'. 13573 exit 1 13574 fi 13575else 13576 13577$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 13578 13579fi 13580 13581for ac_func in getnameinfo 13582do : 13583 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 13584if test "x$ac_cv_func_getnameinfo" = xyes; then : 13585 cat >>confdefs.h <<_ACEOF 13586#define HAVE_GETNAMEINFO 1 13587_ACEOF 13588 13589fi 13590done 13591 13592 13593# checks for structures 13594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13595$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13596if ${ac_cv_header_time+:} false; then : 13597 $as_echo_n "(cached) " >&6 13598else 13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13600/* end confdefs.h. */ 13601#include <sys/types.h> 13602#include <sys/time.h> 13603#include <time.h> 13604 13605int 13606main () 13607{ 13608if ((struct tm *) 0) 13609return 0; 13610 ; 13611 return 0; 13612} 13613_ACEOF 13614if ac_fn_c_try_compile "$LINENO"; then : 13615 ac_cv_header_time=yes 13616else 13617 ac_cv_header_time=no 13618fi 13619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13620fi 13621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13622$as_echo "$ac_cv_header_time" >&6; } 13623if test $ac_cv_header_time = yes; then 13624 13625$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13626 13627fi 13628 13629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13630$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13631if ${ac_cv_struct_tm+:} false; then : 13632 $as_echo_n "(cached) " >&6 13633else 13634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13635/* end confdefs.h. */ 13636#include <sys/types.h> 13637#include <time.h> 13638 13639int 13640main () 13641{ 13642struct tm tm; 13643 int *p = &tm.tm_sec; 13644 return !p; 13645 ; 13646 return 0; 13647} 13648_ACEOF 13649if ac_fn_c_try_compile "$LINENO"; then : 13650 ac_cv_struct_tm=time.h 13651else 13652 ac_cv_struct_tm=sys/time.h 13653fi 13654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13655fi 13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13657$as_echo "$ac_cv_struct_tm" >&6; } 13658if test $ac_cv_struct_tm = sys/time.h; then 13659 13660$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13661 13662fi 13663 13664ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 13665#include <$ac_cv_struct_tm> 13666 13667" 13668if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 13669 13670cat >>confdefs.h <<_ACEOF 13671#define HAVE_STRUCT_TM_TM_ZONE 1 13672_ACEOF 13673 13674 13675fi 13676 13677if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 13678 13679$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13680 13681else 13682 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13683" 13684if test "x$ac_cv_have_decl_tzname" = xyes; then : 13685 ac_have_decl=1 13686else 13687 ac_have_decl=0 13688fi 13689 13690cat >>confdefs.h <<_ACEOF 13691#define HAVE_DECL_TZNAME $ac_have_decl 13692_ACEOF 13693 13694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13695$as_echo_n "checking for tzname... " >&6; } 13696if ${ac_cv_var_tzname+:} false; then : 13697 $as_echo_n "(cached) " >&6 13698else 13699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13700/* end confdefs.h. */ 13701#include <time.h> 13702#if !HAVE_DECL_TZNAME 13703extern char *tzname[]; 13704#endif 13705 13706int 13707main () 13708{ 13709return tzname[0][0]; 13710 ; 13711 return 0; 13712} 13713_ACEOF 13714if ac_fn_c_try_link "$LINENO"; then : 13715 ac_cv_var_tzname=yes 13716else 13717 ac_cv_var_tzname=no 13718fi 13719rm -f core conftest.err conftest.$ac_objext \ 13720 conftest$ac_exeext conftest.$ac_ext 13721fi 13722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13723$as_echo "$ac_cv_var_tzname" >&6; } 13724 if test $ac_cv_var_tzname = yes; then 13725 13726$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13727 13728 fi 13729fi 13730 13731ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 13732if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 13733 13734cat >>confdefs.h <<_ACEOF 13735#define HAVE_STRUCT_STAT_ST_RDEV 1 13736_ACEOF 13737 13738 13739fi 13740 13741ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 13742if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 13743 13744cat >>confdefs.h <<_ACEOF 13745#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 13746_ACEOF 13747 13748 13749fi 13750 13751ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" 13752if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : 13753 13754cat >>confdefs.h <<_ACEOF 13755#define HAVE_STRUCT_STAT_ST_FLAGS 1 13756_ACEOF 13757 13758 13759fi 13760 13761ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" 13762if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : 13763 13764cat >>confdefs.h <<_ACEOF 13765#define HAVE_STRUCT_STAT_ST_GEN 1 13766_ACEOF 13767 13768 13769fi 13770 13771ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" 13772if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : 13773 13774cat >>confdefs.h <<_ACEOF 13775#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 13776_ACEOF 13777 13778 13779fi 13780 13781ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 13782if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 13783 13784cat >>confdefs.h <<_ACEOF 13785#define HAVE_STRUCT_STAT_ST_BLOCKS 1 13786_ACEOF 13787 13788 13789fi 13790 13791ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " 13792 #include <sys/types.h> 13793 #include <pwd.h> 13794 13795" 13796if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : 13797 13798cat >>confdefs.h <<_ACEOF 13799#define HAVE_STRUCT_PASSWD_PW_GECOS 1 13800_ACEOF 13801 13802 13803fi 13804ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " 13805 #include <sys/types.h> 13806 #include <pwd.h> 13807 13808" 13809if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : 13810 13811cat >>confdefs.h <<_ACEOF 13812#define HAVE_STRUCT_PASSWD_PW_PASSWD 1 13813_ACEOF 13814 13815 13816fi 13817 13818# Issue #21085: In Cygwin, siginfo_t does not have si_band field. 13819ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> 13820" 13821if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : 13822 13823cat >>confdefs.h <<_ACEOF 13824#define HAVE_SIGINFO_T_SI_BAND 1 13825_ACEOF 13826 13827 13828fi 13829 13830 13831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 13832$as_echo_n "checking for time.h that defines altzone... " >&6; } 13833if ${ac_cv_header_time_altzone+:} false; then : 13834 $as_echo_n "(cached) " >&6 13835else 13836 13837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13838/* end confdefs.h. */ 13839#include <time.h> 13840int 13841main () 13842{ 13843return altzone; 13844 ; 13845 return 0; 13846} 13847_ACEOF 13848if ac_fn_c_try_compile "$LINENO"; then : 13849 ac_cv_header_time_altzone=yes 13850else 13851 ac_cv_header_time_altzone=no 13852fi 13853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13854 13855fi 13856 13857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 13858$as_echo "$ac_cv_header_time_altzone" >&6; } 13859if test $ac_cv_header_time_altzone = yes; then 13860 13861$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 13862 13863fi 13864 13865was_it_defined=no 13866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 13867$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 13868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13869/* end confdefs.h. */ 13870 13871#include <sys/types.h> 13872#include <sys/select.h> 13873#include <sys/time.h> 13874 13875int 13876main () 13877{ 13878; 13879 ; 13880 return 0; 13881} 13882_ACEOF 13883if ac_fn_c_try_compile "$LINENO"; then : 13884 13885 13886$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 13887 13888 was_it_defined=yes 13889 13890fi 13891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 13893$as_echo "$was_it_defined" >&6; } 13894 13895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 13896$as_echo_n "checking for addrinfo... " >&6; } 13897if ${ac_cv_struct_addrinfo+:} false; then : 13898 $as_echo_n "(cached) " >&6 13899else 13900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13901/* end confdefs.h. */ 13902#include <netdb.h> 13903int 13904main () 13905{ 13906struct addrinfo a 13907 ; 13908 return 0; 13909} 13910_ACEOF 13911if ac_fn_c_try_compile "$LINENO"; then : 13912 ac_cv_struct_addrinfo=yes 13913else 13914 ac_cv_struct_addrinfo=no 13915fi 13916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13917fi 13918 13919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 13920$as_echo "$ac_cv_struct_addrinfo" >&6; } 13921if test $ac_cv_struct_addrinfo = yes; then 13922 13923$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h 13924 13925fi 13926 13927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 13928$as_echo_n "checking for sockaddr_storage... " >&6; } 13929if ${ac_cv_struct_sockaddr_storage+:} false; then : 13930 $as_echo_n "(cached) " >&6 13931else 13932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13933/* end confdefs.h. */ 13934 13935# include <sys/types.h> 13936# include <sys/socket.h> 13937int 13938main () 13939{ 13940struct sockaddr_storage s 13941 ; 13942 return 0; 13943} 13944_ACEOF 13945if ac_fn_c_try_compile "$LINENO"; then : 13946 ac_cv_struct_sockaddr_storage=yes 13947else 13948 ac_cv_struct_sockaddr_storage=no 13949fi 13950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13951fi 13952 13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 13954$as_echo "$ac_cv_struct_sockaddr_storage" >&6; } 13955if test $ac_cv_struct_sockaddr_storage = yes; then 13956 13957$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h 13958 13959fi 13960 13961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 13962$as_echo_n "checking for sockaddr_alg... " >&6; } 13963if ${ac_cv_struct_sockaddr_alg+:} false; then : 13964 $as_echo_n "(cached) " >&6 13965else 13966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13967/* end confdefs.h. */ 13968 13969# include <sys/types.h> 13970# include <sys/socket.h> 13971# include <linux/if_alg.h> 13972int 13973main () 13974{ 13975struct sockaddr_alg s 13976 ; 13977 return 0; 13978} 13979_ACEOF 13980if ac_fn_c_try_compile "$LINENO"; then : 13981 ac_cv_struct_sockaddr_alg=yes 13982else 13983 ac_cv_struct_sockaddr_alg=no 13984fi 13985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13986fi 13987 13988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 13989$as_echo "$ac_cv_struct_sockaddr_alg" >&6; } 13990if test $ac_cv_struct_sockaddr_alg = yes; then 13991 13992$as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h 13993 13994fi 13995 13996# checks for compiler characteristics 13997 13998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 13999$as_echo_n "checking whether char is unsigned... " >&6; } 14000if ${ac_cv_c_char_unsigned+:} false; then : 14001 $as_echo_n "(cached) " >&6 14002else 14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14004/* end confdefs.h. */ 14005$ac_includes_default 14006int 14007main () 14008{ 14009static int test_array [1 - 2 * !(((char) -1) < 0)]; 14010test_array [0] = 0; 14011return test_array [0]; 14012 14013 ; 14014 return 0; 14015} 14016_ACEOF 14017if ac_fn_c_try_compile "$LINENO"; then : 14018 ac_cv_c_char_unsigned=no 14019else 14020 ac_cv_c_char_unsigned=yes 14021fi 14022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14023fi 14024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 14025$as_echo "$ac_cv_c_char_unsigned" >&6; } 14026if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 14027 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 14028 14029fi 14030 14031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 14032$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 14033if ${ac_cv_c_const+:} false; then : 14034 $as_echo_n "(cached) " >&6 14035else 14036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14037/* end confdefs.h. */ 14038 14039int 14040main () 14041{ 14042 14043#ifndef __cplusplus 14044 /* Ultrix mips cc rejects this sort of thing. */ 14045 typedef int charset[2]; 14046 const charset cs = { 0, 0 }; 14047 /* SunOS 4.1.1 cc rejects this. */ 14048 char const *const *pcpcc; 14049 char **ppc; 14050 /* NEC SVR4.0.2 mips cc rejects this. */ 14051 struct point {int x, y;}; 14052 static struct point const zero = {0,0}; 14053 /* AIX XL C 1.02.0.0 rejects this. 14054 It does not let you subtract one const X* pointer from another in 14055 an arm of an if-expression whose if-part is not a constant 14056 expression */ 14057 const char *g = "string"; 14058 pcpcc = &g + (g ? g-g : 0); 14059 /* HPUX 7.0 cc rejects these. */ 14060 ++pcpcc; 14061 ppc = (char**) pcpcc; 14062 pcpcc = (char const *const *) ppc; 14063 { /* SCO 3.2v4 cc rejects this sort of thing. */ 14064 char tx; 14065 char *t = &tx; 14066 char const *s = 0 ? (char *) 0 : (char const *) 0; 14067 14068 *t++ = 0; 14069 if (s) return 0; 14070 } 14071 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 14072 int x[] = {25, 17}; 14073 const int *foo = &x[0]; 14074 ++foo; 14075 } 14076 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 14077 typedef const int *iptr; 14078 iptr p = 0; 14079 ++p; 14080 } 14081 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 14082 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 14083 struct s { int j; const int *ap[3]; } bx; 14084 struct s *b = &bx; b->j = 5; 14085 } 14086 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 14087 const int foo = 10; 14088 if (!foo) return 0; 14089 } 14090 return !cs[0] && !zero.x; 14091#endif 14092 14093 ; 14094 return 0; 14095} 14096_ACEOF 14097if ac_fn_c_try_compile "$LINENO"; then : 14098 ac_cv_c_const=yes 14099else 14100 ac_cv_c_const=no 14101fi 14102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14103fi 14104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 14105$as_echo "$ac_cv_c_const" >&6; } 14106if test $ac_cv_c_const = no; then 14107 14108$as_echo "#define const /**/" >>confdefs.h 14109 14110fi 14111 14112 14113works=no 14114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 14115$as_echo_n "checking for working signed char... " >&6; } 14116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14117/* end confdefs.h. */ 14118 14119int 14120main () 14121{ 14122signed char c; 14123 ; 14124 return 0; 14125} 14126_ACEOF 14127if ac_fn_c_try_compile "$LINENO"; then : 14128 works=yes 14129else 14130 14131$as_echo "#define signed /**/" >>confdefs.h 14132 14133 14134fi 14135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 14137$as_echo "$works" >&6; } 14138 14139have_prototypes=no 14140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 14141$as_echo_n "checking for prototypes... " >&6; } 14142cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14143/* end confdefs.h. */ 14144int foo(int x) { return 0; } 14145int 14146main () 14147{ 14148return foo(10); 14149 ; 14150 return 0; 14151} 14152_ACEOF 14153if ac_fn_c_try_compile "$LINENO"; then : 14154 14155$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h 14156 14157 have_prototypes=yes 14158fi 14159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 14161$as_echo "$have_prototypes" >&6; } 14162 14163works=no 14164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 14165$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } 14166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14167/* end confdefs.h. */ 14168 14169#include <stdarg.h> 14170int foo(int x, ...) { 14171 va_list va; 14172 va_start(va, x); 14173 va_arg(va, int); 14174 va_arg(va, char *); 14175 va_arg(va, double); 14176 return 0; 14177} 14178 14179int 14180main () 14181{ 14182return foo(10, "", 3.14); 14183 ; 14184 return 0; 14185} 14186_ACEOF 14187if ac_fn_c_try_compile "$LINENO"; then : 14188 14189 14190$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h 14191 14192 works=yes 14193 14194fi 14195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 14197$as_echo "$works" >&6; } 14198 14199# check for socketpair 14200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 14201$as_echo_n "checking for socketpair... " >&6; } 14202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14203/* end confdefs.h. */ 14204 14205#include <sys/types.h> 14206#include <sys/socket.h> 14207 14208int 14209main () 14210{ 14211void *x=socketpair 14212 ; 14213 return 0; 14214} 14215_ACEOF 14216if ac_fn_c_try_compile "$LINENO"; then : 14217 14218$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h 14219 14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14221$as_echo "yes" >&6; } 14222else 14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14224$as_echo "no" >&6; } 14225 14226fi 14227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14228 14229# check if sockaddr has sa_len member 14230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 14231$as_echo_n "checking if sockaddr has sa_len member... " >&6; } 14232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14233/* end confdefs.h. */ 14234#include <sys/types.h> 14235#include <sys/socket.h> 14236int 14237main () 14238{ 14239struct sockaddr x; 14240x.sa_len = 0; 14241 ; 14242 return 0; 14243} 14244_ACEOF 14245if ac_fn_c_try_compile "$LINENO"; then : 14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14247$as_echo "yes" >&6; } 14248 14249$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 14250 14251else 14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14253$as_echo "no" >&6; } 14254 14255fi 14256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14257 14258# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( 14259 14260 14261ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 14262if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 14263 14264 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14265 14266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 14267$as_echo_n "checking gethostbyname_r with 6 args... " >&6; } 14268 OLD_CFLAGS=$CFLAGS 14269 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14271/* end confdefs.h. */ 14272 14273# include <netdb.h> 14274 14275int 14276main () 14277{ 14278 14279 char *name; 14280 struct hostent *he, *res; 14281 char buffer[2048]; 14282 int buflen = 2048; 14283 int h_errnop; 14284 14285 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) 14286 14287 ; 14288 return 0; 14289} 14290_ACEOF 14291if ac_fn_c_try_compile "$LINENO"; then : 14292 14293 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14294 14295 14296$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 14297 14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14299$as_echo "yes" >&6; } 14300 14301else 14302 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14304$as_echo "no" >&6; } 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 14306$as_echo_n "checking gethostbyname_r with 5 args... " >&6; } 14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14308/* end confdefs.h. */ 14309 14310# include <netdb.h> 14311 14312int 14313main () 14314{ 14315 14316 char *name; 14317 struct hostent *he; 14318 char buffer[2048]; 14319 int buflen = 2048; 14320 int h_errnop; 14321 14322 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) 14323 14324 ; 14325 return 0; 14326} 14327_ACEOF 14328if ac_fn_c_try_compile "$LINENO"; then : 14329 14330 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14331 14332 14333$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 14334 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14336$as_echo "yes" >&6; } 14337 14338else 14339 14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14341$as_echo "no" >&6; } 14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 14343$as_echo_n "checking gethostbyname_r with 3 args... " >&6; } 14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14345/* end confdefs.h. */ 14346 14347# include <netdb.h> 14348 14349int 14350main () 14351{ 14352 14353 char *name; 14354 struct hostent *he; 14355 struct hostent_data data; 14356 14357 (void) gethostbyname_r(name, he, &data); 14358 14359 ; 14360 return 0; 14361} 14362_ACEOF 14363if ac_fn_c_try_compile "$LINENO"; then : 14364 14365 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14366 14367 14368$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 14369 14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14371$as_echo "yes" >&6; } 14372 14373else 14374 14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14376$as_echo "no" >&6; } 14377 14378fi 14379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14380 14381fi 14382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14383 14384fi 14385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14386 CFLAGS=$OLD_CFLAGS 14387 14388else 14389 14390 for ac_func in gethostbyname 14391do : 14392 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 14393if test "x$ac_cv_func_gethostbyname" = xyes; then : 14394 cat >>confdefs.h <<_ACEOF 14395#define HAVE_GETHOSTBYNAME 1 14396_ACEOF 14397 14398fi 14399done 14400 14401 14402fi 14403 14404 14405 14406 14407 14408 14409 14410# checks for system services 14411# (none yet) 14412 14413# Linux requires this for correct f.p. operations 14414ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" 14415if test "x$ac_cv_func___fpu_control" = xyes; then : 14416 14417else 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 14419$as_echo_n "checking for __fpu_control in -lieee... " >&6; } 14420if ${ac_cv_lib_ieee___fpu_control+:} false; then : 14421 $as_echo_n "(cached) " >&6 14422else 14423 ac_check_lib_save_LIBS=$LIBS 14424LIBS="-lieee $LIBS" 14425cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14426/* end confdefs.h. */ 14427 14428/* Override any GCC internal prototype to avoid an error. 14429 Use char because int might match the return type of a GCC 14430 builtin and then its argument prototype would still apply. */ 14431#ifdef __cplusplus 14432extern "C" 14433#endif 14434char __fpu_control (); 14435int 14436main () 14437{ 14438return __fpu_control (); 14439 ; 14440 return 0; 14441} 14442_ACEOF 14443if ac_fn_c_try_link "$LINENO"; then : 14444 ac_cv_lib_ieee___fpu_control=yes 14445else 14446 ac_cv_lib_ieee___fpu_control=no 14447fi 14448rm -f core conftest.err conftest.$ac_objext \ 14449 conftest$ac_exeext conftest.$ac_ext 14450LIBS=$ac_check_lib_save_LIBS 14451fi 14452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 14453$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } 14454if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : 14455 cat >>confdefs.h <<_ACEOF 14456#define HAVE_LIBIEEE 1 14457_ACEOF 14458 14459 LIBS="-lieee $LIBS" 14460 14461fi 14462 14463 14464fi 14465 14466 14467# check for --with-libm=... 14468 14469case $ac_sys_system in 14470Darwin) ;; 14471*) LIBM=-lm 14472esac 14473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 14474$as_echo_n "checking for --with-libm=STRING... " >&6; } 14475 14476# Check whether --with-libm was given. 14477if test "${with_libm+set}" = set; then : 14478 withval=$with_libm; 14479if test "$withval" = no 14480then LIBM= 14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 14482$as_echo "force LIBM empty" >&6; } 14483elif test "$withval" != yes 14484then LIBM=$withval 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 14486$as_echo "set LIBM=\"$withval\"" >&6; } 14487else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 14488fi 14489else 14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 14491$as_echo "default LIBM=\"$LIBM\"" >&6; } 14492fi 14493 14494 14495# check for --with-libc=... 14496 14497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 14498$as_echo_n "checking for --with-libc=STRING... " >&6; } 14499 14500# Check whether --with-libc was given. 14501if test "${with_libc+set}" = set; then : 14502 withval=$with_libc; 14503if test "$withval" = no 14504then LIBC= 14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 14506$as_echo "force LIBC empty" >&6; } 14507elif test "$withval" != yes 14508then LIBC=$withval 14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 14510$as_echo "set LIBC=\"$withval\"" >&6; } 14511else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 14512fi 14513else 14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 14515$as_echo "default LIBC=\"$LIBC\"" >&6; } 14516fi 14517 14518 14519# ************************************** 14520# * Check for gcc x64 inline assembler * 14521# ************************************** 14522 14523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 14524$as_echo_n "checking for x64 gcc inline assembler... " >&6; } 14525cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14526/* end confdefs.h. */ 14527 14528int 14529main () 14530{ 14531 14532 __asm__ __volatile__ ("movq %rcx, %rax"); 14533 14534 ; 14535 return 0; 14536} 14537_ACEOF 14538if ac_fn_c_try_link "$LINENO"; then : 14539 have_gcc_asm_for_x64=yes 14540else 14541 have_gcc_asm_for_x64=no 14542fi 14543rm -f core conftest.err conftest.$ac_objext \ 14544 conftest$ac_exeext conftest.$ac_ext 14545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 14546$as_echo "$have_gcc_asm_for_x64" >&6; } 14547if test "$have_gcc_asm_for_x64" = yes 14548then 14549 14550$as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h 14551 14552fi 14553 14554# ************************************************** 14555# * Check for various properties of floating point * 14556# ************************************************** 14557 14558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5 14559$as_echo_n "checking whether float word ordering is bigendian... " >&6; } 14560if ${ax_cv_c_float_words_bigendian+:} false; then : 14561 $as_echo_n "(cached) " >&6 14562else 14563 14564 14565ax_cv_c_float_words_bigendian=unknown 14566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14567/* end confdefs.h. */ 14568 14569 14570double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; 14571 14572 14573_ACEOF 14574if ac_fn_c_try_compile "$LINENO"; then : 14575 14576 14577if grep noonsees conftest.$ac_objext >/dev/null ; then 14578 ax_cv_c_float_words_bigendian=yes 14579fi 14580if grep seesnoon conftest.$ac_objext >/dev/null ; then 14581 if test "$ax_cv_c_float_words_bigendian" = unknown; then 14582 ax_cv_c_float_words_bigendian=no 14583 else 14584 ax_cv_c_float_words_bigendian=unknown 14585 fi 14586fi 14587 14588 14589fi 14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14591fi 14592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5 14593$as_echo "$ax_cv_c_float_words_bigendian" >&6; } 14594 14595case $ax_cv_c_float_words_bigendian in 14596 yes) 14597 14598$as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h 14599 ;; 14600 no) 14601 ;; 14602 *) 14603 as_fn_error $? " 14604 14605Unknown float word ordering. You need to manually preset 14606ax_cv_c_float_words_bigendian=no (or yes) according to your system. 14607 14608 " "$LINENO" 5 ;; 14609esac 14610 14611 14612if test "$ax_cv_c_float_words_bigendian" = "yes" 14613then 14614 14615$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h 14616 14617elif test "$ax_cv_c_float_words_bigendian" = "no" 14618then 14619 14620$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h 14621 14622else 14623 # Some ARM platforms use a mixed-endian representation for doubles. 14624 # While Python doesn't currently have full support for these platforms 14625 # (see e.g., issue 1762561), we can at least make sure that float <-> string 14626 # conversions work. 14627 # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big 14628 # or little, then it must be this? 14629 14630$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h 14631 14632fi 14633 14634# The short float repr introduced in Python 3.1 requires the 14635# correctly-rounded string <-> double conversion functions from 14636# Python/dtoa.c, which in turn require that the FPU uses 53-bit 14637# rounding; this is a problem on x86, where the x87 FPU has a default 14638# rounding precision of 64 bits. For gcc/x86, we can fix this by 14639# using inline assembler to get and set the x87 FPU control word. 14640 14641# This inline assembler syntax may also work for suncc and icc, 14642# so we try it on all platforms. 14643 14644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 14645$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } 14646cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14647/* end confdefs.h. */ 14648 14649int 14650main () 14651{ 14652 14653 unsigned short cw; 14654 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); 14655 __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); 14656 14657 ; 14658 return 0; 14659} 14660_ACEOF 14661if ac_fn_c_try_link "$LINENO"; then : 14662 have_gcc_asm_for_x87=yes 14663else 14664 have_gcc_asm_for_x87=no 14665fi 14666rm -f core conftest.err conftest.$ac_objext \ 14667 conftest$ac_exeext conftest.$ac_ext 14668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 14669$as_echo "$have_gcc_asm_for_x87" >&6; } 14670if test "$have_gcc_asm_for_x87" = yes 14671then 14672 14673$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h 14674 14675fi 14676 14677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 14678$as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } 14679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14680/* end confdefs.h. */ 14681 14682int 14683main () 14684{ 14685 14686 unsigned int fpcr; 14687 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); 14688 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); 14689 14690 ; 14691 return 0; 14692} 14693_ACEOF 14694if ac_fn_c_try_link "$LINENO"; then : 14695 have_gcc_asm_for_mc68881=yes 14696else 14697 have_gcc_asm_for_mc68881=no 14698fi 14699rm -f core conftest.err conftest.$ac_objext \ 14700 conftest$ac_exeext conftest.$ac_ext 14701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 14702$as_echo "$have_gcc_asm_for_mc68881" >&6; } 14703if test "$have_gcc_asm_for_mc68881" = yes 14704then 14705 14706$as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h 14707 14708fi 14709 14710# Detect whether system arithmetic is subject to x87-style double 14711# rounding issues. The result of this test has little meaning on non 14712# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding 14713# mode is round-to-nearest and double rounding issues are present, and 14714# 0 otherwise. See http://bugs.python.org/issue2937 for more info. 14715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 14716$as_echo_n "checking for x87-style double rounding... " >&6; } 14717# $BASECFLAGS may affect the result 14718ac_save_cc="$CC" 14719CC="$CC $BASECFLAGS" 14720if test "$cross_compiling" = yes; then : 14721 ac_cv_x87_double_rounding=no 14722else 14723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14724/* end confdefs.h. */ 14725 14726#include <stdlib.h> 14727#include <math.h> 14728int main() { 14729 volatile double x, y, z; 14730 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ 14731 x = 0.99999999999999989; /* 1-2**-53 */ 14732 y = 1./x; 14733 if (y != 1.) 14734 exit(0); 14735 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ 14736 x = 1e16; 14737 y = 2.99999; 14738 z = x + y; 14739 if (z != 1e16+4.) 14740 exit(0); 14741 /* both tests show evidence of double rounding */ 14742 exit(1); 14743} 14744 14745_ACEOF 14746if ac_fn_c_try_run "$LINENO"; then : 14747 ac_cv_x87_double_rounding=no 14748else 14749 ac_cv_x87_double_rounding=yes 14750fi 14751rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14752 conftest.$ac_objext conftest.beam conftest.$ac_ext 14753fi 14754 14755CC="$ac_save_cc" 14756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 14757$as_echo "$ac_cv_x87_double_rounding" >&6; } 14758if test "$ac_cv_x87_double_rounding" = yes 14759then 14760 14761$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h 14762 14763fi 14764 14765# ************************************ 14766# * Check for mathematical functions * 14767# ************************************ 14768 14769LIBS_SAVE=$LIBS 14770LIBS="$LIBS $LIBM" 14771 14772for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma 14773do : 14774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14775ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14776if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14777 cat >>confdefs.h <<_ACEOF 14778#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14779_ACEOF 14780 14781fi 14782done 14783 14784for ac_func in hypot lgamma log1p log2 round tgamma 14785do : 14786 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14787ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14788if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14789 cat >>confdefs.h <<_ACEOF 14790#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14791_ACEOF 14792 14793fi 14794done 14795 14796ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> 14797" 14798if test "x$ac_cv_have_decl_isinf" = xyes; then : 14799 ac_have_decl=1 14800else 14801 ac_have_decl=0 14802fi 14803 14804cat >>confdefs.h <<_ACEOF 14805#define HAVE_DECL_ISINF $ac_have_decl 14806_ACEOF 14807ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> 14808" 14809if test "x$ac_cv_have_decl_isnan" = xyes; then : 14810 ac_have_decl=1 14811else 14812 ac_have_decl=0 14813fi 14814 14815cat >>confdefs.h <<_ACEOF 14816#define HAVE_DECL_ISNAN $ac_have_decl 14817_ACEOF 14818ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> 14819" 14820if test "x$ac_cv_have_decl_isfinite" = xyes; then : 14821 ac_have_decl=1 14822else 14823 ac_have_decl=0 14824fi 14825 14826cat >>confdefs.h <<_ACEOF 14827#define HAVE_DECL_ISFINITE $ac_have_decl 14828_ACEOF 14829 14830 14831# For multiprocessing module, check that sem_open 14832# actually works. For FreeBSD versions <= 7.2, 14833# the kernel module that provides POSIX semaphores 14834# isn't loaded by default, so an attempt to call 14835# sem_open results in a 'Signal 12' error. 14836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 14837$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } 14838if ${ac_cv_posix_semaphores_enabled+:} false; then : 14839 $as_echo_n "(cached) " >&6 14840else 14841 if test "$cross_compiling" = yes; then : 14842 ac_cv_posix_semaphores_enabled=yes 14843else 14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14845/* end confdefs.h. */ 14846 14847#include <unistd.h> 14848#include <fcntl.h> 14849#include <stdio.h> 14850#include <semaphore.h> 14851#include <sys/stat.h> 14852 14853int main(void) { 14854 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); 14855 if (a == SEM_FAILED) { 14856 perror("sem_open"); 14857 return 1; 14858 } 14859 sem_close(a); 14860 sem_unlink("/autoconf"); 14861 return 0; 14862} 14863 14864_ACEOF 14865if ac_fn_c_try_run "$LINENO"; then : 14866 ac_cv_posix_semaphores_enabled=yes 14867else 14868 ac_cv_posix_semaphores_enabled=no 14869fi 14870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14871 conftest.$ac_objext conftest.beam conftest.$ac_ext 14872fi 14873 14874 14875fi 14876 14877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 14878$as_echo "$ac_cv_posix_semaphores_enabled" >&6; } 14879if test $ac_cv_posix_semaphores_enabled = no 14880then 14881 14882$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h 14883 14884fi 14885 14886# Multiprocessing check for broken sem_getvalue 14887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 14888$as_echo_n "checking for broken sem_getvalue... " >&6; } 14889if ${ac_cv_broken_sem_getvalue+:} false; then : 14890 $as_echo_n "(cached) " >&6 14891else 14892 if test "$cross_compiling" = yes; then : 14893 ac_cv_broken_sem_getvalue=yes 14894else 14895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14896/* end confdefs.h. */ 14897 14898#include <unistd.h> 14899#include <fcntl.h> 14900#include <stdio.h> 14901#include <semaphore.h> 14902#include <sys/stat.h> 14903 14904int main(void){ 14905 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); 14906 int count; 14907 int res; 14908 if(a==SEM_FAILED){ 14909 perror("sem_open"); 14910 return 1; 14911 14912 } 14913 res = sem_getvalue(a, &count); 14914 sem_close(a); 14915 sem_unlink("/autocftw"); 14916 return res==-1 ? 1 : 0; 14917} 14918 14919_ACEOF 14920if ac_fn_c_try_run "$LINENO"; then : 14921 ac_cv_broken_sem_getvalue=no 14922else 14923 ac_cv_broken_sem_getvalue=yes 14924fi 14925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14926 conftest.$ac_objext conftest.beam conftest.$ac_ext 14927fi 14928 14929 14930fi 14931 14932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 14933$as_echo "$ac_cv_broken_sem_getvalue" >&6; } 14934if test $ac_cv_broken_sem_getvalue = yes 14935then 14936 14937$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h 14938 14939fi 14940 14941ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> 14942" 14943if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : 14944 ac_have_decl=1 14945else 14946 ac_have_decl=0 14947fi 14948 14949cat >>confdefs.h <<_ACEOF 14950#define HAVE_DECL_RTLD_LAZY $ac_have_decl 14951_ACEOF 14952ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> 14953" 14954if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : 14955 ac_have_decl=1 14956else 14957 ac_have_decl=0 14958fi 14959 14960cat >>confdefs.h <<_ACEOF 14961#define HAVE_DECL_RTLD_NOW $ac_have_decl 14962_ACEOF 14963ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> 14964" 14965if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : 14966 ac_have_decl=1 14967else 14968 ac_have_decl=0 14969fi 14970 14971cat >>confdefs.h <<_ACEOF 14972#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl 14973_ACEOF 14974ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> 14975" 14976if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : 14977 ac_have_decl=1 14978else 14979 ac_have_decl=0 14980fi 14981 14982cat >>confdefs.h <<_ACEOF 14983#define HAVE_DECL_RTLD_LOCAL $ac_have_decl 14984_ACEOF 14985ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> 14986" 14987if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : 14988 ac_have_decl=1 14989else 14990 ac_have_decl=0 14991fi 14992 14993cat >>confdefs.h <<_ACEOF 14994#define HAVE_DECL_RTLD_NODELETE $ac_have_decl 14995_ACEOF 14996ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> 14997" 14998if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : 14999 ac_have_decl=1 15000else 15001 ac_have_decl=0 15002fi 15003 15004cat >>confdefs.h <<_ACEOF 15005#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl 15006_ACEOF 15007ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> 15008" 15009if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : 15010 ac_have_decl=1 15011else 15012 ac_have_decl=0 15013fi 15014 15015cat >>confdefs.h <<_ACEOF 15016#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl 15017_ACEOF 15018ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> 15019" 15020if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then : 15021 ac_have_decl=1 15022else 15023 ac_have_decl=0 15024fi 15025 15026cat >>confdefs.h <<_ACEOF 15027#define HAVE_DECL_RTLD_MEMBER $ac_have_decl 15028_ACEOF 15029 15030 15031# determine what size digit to use for Python's longs 15032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 15033$as_echo_n "checking digit size for Python's longs... " >&6; } 15034# Check whether --enable-big-digits was given. 15035if test "${enable_big_digits+set}" = set; then : 15036 enableval=$enable_big_digits; case $enable_big_digits in 15037yes) 15038 enable_big_digits=30 ;; 15039no) 15040 enable_big_digits=15 ;; 1504115|30) 15042 ;; 15043*) 15044 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; 15045esac 15046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 15047$as_echo "$enable_big_digits" >&6; } 15048 15049cat >>confdefs.h <<_ACEOF 15050#define PYLONG_BITS_IN_DIGIT $enable_big_digits 15051_ACEOF 15052 15053 15054else 15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 15056$as_echo "no value specified" >&6; } 15057fi 15058 15059 15060# check for wchar.h 15061ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 15062if test "x$ac_cv_header_wchar_h" = xyes; then : 15063 15064 15065$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h 15066 15067 wchar_h="yes" 15068 15069else 15070 wchar_h="no" 15071 15072fi 15073 15074 15075 15076# determine wchar_t size 15077if test "$wchar_h" = yes 15078then 15079 # The cast to long int works around a bug in the HP C Compiler 15080# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15081# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15082# This bug is HP SR number 8606223364. 15083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 15084$as_echo_n "checking size of wchar_t... " >&6; } 15085if ${ac_cv_sizeof_wchar_t+:} false; then : 15086 $as_echo_n "(cached) " >&6 15087else 15088 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> 15089"; then : 15090 15091else 15092 if test "$ac_cv_type_wchar_t" = yes; then 15093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15094$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15095as_fn_error 77 "cannot compute sizeof (wchar_t) 15096See \`config.log' for more details" "$LINENO" 5; } 15097 else 15098 ac_cv_sizeof_wchar_t=0 15099 fi 15100fi 15101 15102fi 15103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 15104$as_echo "$ac_cv_sizeof_wchar_t" >&6; } 15105 15106 15107 15108cat >>confdefs.h <<_ACEOF 15109#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 15110_ACEOF 15111 15112 15113fi 15114 15115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 15116$as_echo_n "checking for UCS-4 tcl... " >&6; } 15117have_ucs4_tcl=no 15118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15119/* end confdefs.h. */ 15120 15121#include <tcl.h> 15122#if TCL_UTF_MAX != 6 15123# error "NOT UCS4_TCL" 15124#endif 15125int 15126main () 15127{ 15128 15129 ; 15130 return 0; 15131} 15132_ACEOF 15133if ac_fn_c_try_compile "$LINENO"; then : 15134 15135 15136$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h 15137 15138 have_ucs4_tcl=yes 15139 15140fi 15141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 15143$as_echo "$have_ucs4_tcl" >&6; } 15144 15145# check whether wchar_t is signed or not 15146if test "$wchar_h" = yes 15147then 15148 # check whether wchar_t is signed or not 15149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 15150$as_echo_n "checking whether wchar_t is signed... " >&6; } 15151 if ${ac_cv_wchar_t_signed+:} false; then : 15152 $as_echo_n "(cached) " >&6 15153else 15154 15155 if test "$cross_compiling" = yes; then : 15156 ac_cv_wchar_t_signed=yes 15157else 15158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15159/* end confdefs.h. */ 15160 15161 #include <wchar.h> 15162 int main() 15163 { 15164 /* Success: exit code 0 */ 15165 return ((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); 15166 } 15167 15168_ACEOF 15169if ac_fn_c_try_run "$LINENO"; then : 15170 ac_cv_wchar_t_signed=yes 15171else 15172 ac_cv_wchar_t_signed=no 15173fi 15174rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15175 conftest.$ac_objext conftest.beam conftest.$ac_ext 15176fi 15177 15178fi 15179 15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 15181$as_echo "$ac_cv_wchar_t_signed" >&6; } 15182fi 15183 15184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 15185$as_echo_n "checking whether wchar_t is usable... " >&6; } 15186# wchar_t is only usable if it maps to an unsigned type 15187if test "$ac_cv_sizeof_wchar_t" -ge 2 \ 15188 -a "$ac_cv_wchar_t_signed" = "no" 15189then 15190 15191$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h 15192 15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15194$as_echo "yes" >&6; } 15195else 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15197$as_echo "no" >&6; } 15198fi 15199 15200case $ac_sys_system/$ac_sys_release in 15201SunOS/*) 15202 if test -f /etc/os-release; then 15203 OS_NAME=$(awk -F= '/^NAME=/ {print substr($2,2,length($2)-2)}' /etc/os-release) 15204 if test "x$OS_NAME" = "xOracle Solaris"; then 15205 # bpo-43667: In Oracle Solaris, the internal form of wchar_t in 15206 # non-Unicode locales is not Unicode and hence cannot be used directly. 15207 # https://docs.oracle.com/cd/E37838_01/html/E61053/gmwke.html 15208 15209$as_echo "#define HAVE_NON_UNICODE_WCHAR_T_REPRESENTATION 1" >>confdefs.h 15210 15211 fi 15212 fi 15213 ;; 15214esac 15215 15216# check for endianness 15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 15218$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 15219if ${ac_cv_c_bigendian+:} false; then : 15220 $as_echo_n "(cached) " >&6 15221else 15222 ac_cv_c_bigendian=unknown 15223 # See if we're dealing with a universal compiler. 15224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15225/* end confdefs.h. */ 15226#ifndef __APPLE_CC__ 15227 not a universal capable compiler 15228 #endif 15229 typedef int dummy; 15230 15231_ACEOF 15232if ac_fn_c_try_compile "$LINENO"; then : 15233 15234 # Check for potential -arch flags. It is not universal unless 15235 # there are at least two -arch flags with different values. 15236 ac_arch= 15237 ac_prev= 15238 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 15239 if test -n "$ac_prev"; then 15240 case $ac_word in 15241 i?86 | x86_64 | ppc | ppc64) 15242 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 15243 ac_arch=$ac_word 15244 else 15245 ac_cv_c_bigendian=universal 15246 break 15247 fi 15248 ;; 15249 esac 15250 ac_prev= 15251 elif test "x$ac_word" = "x-arch"; then 15252 ac_prev=arch 15253 fi 15254 done 15255fi 15256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15257 if test $ac_cv_c_bigendian = unknown; then 15258 # See if sys/param.h defines the BYTE_ORDER macro. 15259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15260/* end confdefs.h. */ 15261#include <sys/types.h> 15262 #include <sys/param.h> 15263 15264int 15265main () 15266{ 15267#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 15268 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 15269 && LITTLE_ENDIAN) 15270 bogus endian macros 15271 #endif 15272 15273 ; 15274 return 0; 15275} 15276_ACEOF 15277if ac_fn_c_try_compile "$LINENO"; then : 15278 # It does; now see whether it defined to BIG_ENDIAN or not. 15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15280/* end confdefs.h. */ 15281#include <sys/types.h> 15282 #include <sys/param.h> 15283 15284int 15285main () 15286{ 15287#if BYTE_ORDER != BIG_ENDIAN 15288 not big endian 15289 #endif 15290 15291 ; 15292 return 0; 15293} 15294_ACEOF 15295if ac_fn_c_try_compile "$LINENO"; then : 15296 ac_cv_c_bigendian=yes 15297else 15298 ac_cv_c_bigendian=no 15299fi 15300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15301fi 15302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15303 fi 15304 if test $ac_cv_c_bigendian = unknown; then 15305 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 15306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15307/* end confdefs.h. */ 15308#include <limits.h> 15309 15310int 15311main () 15312{ 15313#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 15314 bogus endian macros 15315 #endif 15316 15317 ; 15318 return 0; 15319} 15320_ACEOF 15321if ac_fn_c_try_compile "$LINENO"; then : 15322 # It does; now see whether it defined to _BIG_ENDIAN or not. 15323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15324/* end confdefs.h. */ 15325#include <limits.h> 15326 15327int 15328main () 15329{ 15330#ifndef _BIG_ENDIAN 15331 not big endian 15332 #endif 15333 15334 ; 15335 return 0; 15336} 15337_ACEOF 15338if ac_fn_c_try_compile "$LINENO"; then : 15339 ac_cv_c_bigendian=yes 15340else 15341 ac_cv_c_bigendian=no 15342fi 15343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15344fi 15345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15346 fi 15347 if test $ac_cv_c_bigendian = unknown; then 15348 # Compile a test program. 15349 if test "$cross_compiling" = yes; then : 15350 # Try to guess by grepping values from an object file. 15351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15352/* end confdefs.h. */ 15353short int ascii_mm[] = 15354 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15355 short int ascii_ii[] = 15356 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15357 int use_ascii (int i) { 15358 return ascii_mm[i] + ascii_ii[i]; 15359 } 15360 short int ebcdic_ii[] = 15361 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15362 short int ebcdic_mm[] = 15363 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15364 int use_ebcdic (int i) { 15365 return ebcdic_mm[i] + ebcdic_ii[i]; 15366 } 15367 extern int foo; 15368 15369int 15370main () 15371{ 15372return use_ascii (foo) == use_ebcdic (foo); 15373 ; 15374 return 0; 15375} 15376_ACEOF 15377if ac_fn_c_try_compile "$LINENO"; then : 15378 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15379 ac_cv_c_bigendian=yes 15380 fi 15381 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15382 if test "$ac_cv_c_bigendian" = unknown; then 15383 ac_cv_c_bigendian=no 15384 else 15385 # finding both strings is unlikely to happen, but who knows? 15386 ac_cv_c_bigendian=unknown 15387 fi 15388 fi 15389fi 15390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15391else 15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15393/* end confdefs.h. */ 15394$ac_includes_default 15395int 15396main () 15397{ 15398 15399 /* Are we little or big endian? From Harbison&Steele. */ 15400 union 15401 { 15402 long int l; 15403 char c[sizeof (long int)]; 15404 } u; 15405 u.l = 1; 15406 return u.c[sizeof (long int) - 1] == 1; 15407 15408 ; 15409 return 0; 15410} 15411_ACEOF 15412if ac_fn_c_try_run "$LINENO"; then : 15413 ac_cv_c_bigendian=no 15414else 15415 ac_cv_c_bigendian=yes 15416fi 15417rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15418 conftest.$ac_objext conftest.beam conftest.$ac_ext 15419fi 15420 15421 fi 15422fi 15423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15424$as_echo "$ac_cv_c_bigendian" >&6; } 15425 case $ac_cv_c_bigendian in #( 15426 yes) 15427 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 15428;; #( 15429 no) 15430 ;; #( 15431 universal) 15432 15433$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 15434 15435 ;; #( 15436 *) 15437 as_fn_error $? "unknown endianness 15438 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 15439 esac 15440 15441 15442# ABI version string for Python extension modules. This appears between the 15443# periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated 15444# from the following attributes which affect the ABI of this Python build (in 15445# this order): 15446# 15447# * The Python implementation (always 'cpython-' for us) 15448# * The major and minor version numbers 15449# * --with-pydebug (adds a 'd') 15450# 15451# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, 15452# would get a shared library ABI version tag of 'cpython-32dmu' and shared 15453# libraries would be named 'foo.cpython-32dmu.so'. 15454# 15455# In Python 3.2 and older, --with-wide-unicode added a 'u' flag. 15456# In Python 3.7 and older, --with-pymalloc added a 'm' flag. 15457 15458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 15459$as_echo_n "checking ABIFLAGS... " >&6; } 15460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 15461$as_echo "$ABIFLAGS" >&6; } 15462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 15463$as_echo_n "checking SOABI... " >&6; } 15464SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} 15465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 15466$as_echo "$SOABI" >&6; } 15467 15468# Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI 15469if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then 15470 # Similar to SOABI but remove "d" flag from ABIFLAGS 15471 15472 ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} 15473 15474cat >>confdefs.h <<_ACEOF 15475#define ALT_SOABI "${ALT_SOABI}" 15476_ACEOF 15477 15478fi 15479 15480 15481EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX} 15482 15483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 15484$as_echo_n "checking LDVERSION... " >&6; } 15485LDVERSION='$(VERSION)$(ABIFLAGS)' 15486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 15487$as_echo "$LDVERSION" >&6; } 15488 15489# On Android and Cygwin the shared libraries must be linked with libpython. 15490 15491if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then 15492 LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" 15493else 15494 LIBPYTHON='' 15495fi 15496 15497 15498 15499BINLIBDEST='$(LIBDIR)/python$(VERSION)' 15500 15501 15502# Check for --with-platlibdir 15503# /usr/$LIDIRNAME/python$VERSION 15504 15505PLATLIBDIR="lib" 15506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-platlibdir" >&5 15507$as_echo_n "checking for --with-platlibdir... " >&6; } 15508 15509# Check whether --with-platlibdir was given. 15510if test "${with_platlibdir+set}" = set; then : 15511 withval=$with_platlibdir; 15512# ignore 3 options: 15513# --with-platlibdir 15514# --with-platlibdir= 15515# --without-platlibdir 15516if test -n "$withval" -a "$withval" != yes -a "$withval" != no 15517then 15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15519$as_echo "yes" >&6; } 15520 PLATLIBDIR="$withval" 15521 BINLIBDEST='${exec_prefix}/${PLATLIBDIR}/python$(VERSION)' 15522else 15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15524$as_echo "no" >&6; } 15525fi 15526else 15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15528$as_echo "no" >&6; } 15529fi 15530 15531 15532 15533 15534if test x$PLATFORM_TRIPLET = x; then 15535 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}" 15536else 15537 LIBPL='$(prefix)'"/${PLATLIBDIR}/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" 15538fi 15539 15540 15541# Check whether right shifting a negative integer extends the sign bit 15542# or fills with zeros (like the Cray J90, according to Tim Peters). 15543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 15544$as_echo_n "checking whether right shift extends the sign bit... " >&6; } 15545if ${ac_cv_rshift_extends_sign+:} false; then : 15546 $as_echo_n "(cached) " >&6 15547else 15548 15549if test "$cross_compiling" = yes; then : 15550 ac_cv_rshift_extends_sign=yes 15551else 15552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15553/* end confdefs.h. */ 15554 15555int main() 15556{ 15557 return (((-1)>>3 == -1) ? 0 : 1); 15558} 15559 15560_ACEOF 15561if ac_fn_c_try_run "$LINENO"; then : 15562 ac_cv_rshift_extends_sign=yes 15563else 15564 ac_cv_rshift_extends_sign=no 15565fi 15566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15567 conftest.$ac_objext conftest.beam conftest.$ac_ext 15568fi 15569 15570fi 15571 15572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 15573$as_echo "$ac_cv_rshift_extends_sign" >&6; } 15574if test "$ac_cv_rshift_extends_sign" = no 15575then 15576 15577$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h 15578 15579fi 15580 15581# check for getc_unlocked and related locking functions 15582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 15583$as_echo_n "checking for getc_unlocked() and friends... " >&6; } 15584if ${ac_cv_have_getc_unlocked+:} false; then : 15585 $as_echo_n "(cached) " >&6 15586else 15587 15588cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15589/* end confdefs.h. */ 15590#include <stdio.h> 15591int 15592main () 15593{ 15594 15595 FILE *f = fopen("/dev/null", "r"); 15596 flockfile(f); 15597 getc_unlocked(f); 15598 funlockfile(f); 15599 15600 ; 15601 return 0; 15602} 15603_ACEOF 15604if ac_fn_c_try_link "$LINENO"; then : 15605 ac_cv_have_getc_unlocked=yes 15606else 15607 ac_cv_have_getc_unlocked=no 15608fi 15609rm -f core conftest.err conftest.$ac_objext \ 15610 conftest$ac_exeext conftest.$ac_ext 15611fi 15612 15613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 15614$as_echo "$ac_cv_have_getc_unlocked" >&6; } 15615if test "$ac_cv_have_getc_unlocked" = yes 15616then 15617 15618$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h 15619 15620fi 15621 15622# check where readline lives 15623# save the value of LIBS so we don't actually link Python with readline 15624LIBS_no_readline=$LIBS 15625 15626# On some systems we need to link readline to a termcap compatible 15627# library. NOTE: Keep the precedence of listed libraries synchronised 15628# with setup.py. 15629py_cv_lib_readline=no 15630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 15631$as_echo_n "checking how to link readline libs... " >&6; } 15632for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do 15633 if test -z "$py_libtermcap"; then 15634 READLINE_LIBS="-lreadline" 15635 else 15636 READLINE_LIBS="-lreadline -l$py_libtermcap" 15637 fi 15638 LIBS="$READLINE_LIBS $LIBS_no_readline" 15639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15640/* end confdefs.h. */ 15641 15642/* Override any GCC internal prototype to avoid an error. 15643 Use char because int might match the return type of a GCC 15644 builtin and then its argument prototype would still apply. */ 15645#ifdef __cplusplus 15646extern "C" 15647#endif 15648char readline (); 15649int 15650main () 15651{ 15652return readline (); 15653 ; 15654 return 0; 15655} 15656_ACEOF 15657if ac_fn_c_try_link "$LINENO"; then : 15658 py_cv_lib_readline=yes 15659fi 15660rm -f core conftest.err conftest.$ac_objext \ 15661 conftest$ac_exeext conftest.$ac_ext 15662 if test $py_cv_lib_readline = yes; then 15663 break 15664 fi 15665done 15666# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts 15667#AC_SUBST([READLINE_LIBS]) 15668if test $py_cv_lib_readline = no; then 15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 15670$as_echo "none" >&6; } 15671else 15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 15673$as_echo "$READLINE_LIBS" >&6; } 15674 15675$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 15676 15677fi 15678 15679# check for readline 2.2 15680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15681/* end confdefs.h. */ 15682#include <readline/readline.h> 15683_ACEOF 15684if ac_fn_c_try_cpp "$LINENO"; then : 15685 have_readline=yes 15686else 15687 have_readline=no 15688 15689fi 15690rm -f conftest.err conftest.i conftest.$ac_ext 15691if test $have_readline = yes 15692then 15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15694/* end confdefs.h. */ 15695#include <readline/readline.h> 15696 15697_ACEOF 15698if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15699 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : 15700 15701$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h 15702 15703fi 15704rm -f conftest* 15705 15706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15707/* end confdefs.h. */ 15708#include <readline/readline.h> 15709 15710_ACEOF 15711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15712 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : 15713 15714$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h 15715 15716fi 15717rm -f conftest* 15718 15719fi 15720 15721# check for readline 4.0 15722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 15723$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } 15724if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : 15725 $as_echo_n "(cached) " >&6 15726else 15727 ac_check_lib_save_LIBS=$LIBS 15728LIBS="-lreadline $READLINE_LIBS $LIBS" 15729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15730/* end confdefs.h. */ 15731 15732/* Override any GCC internal prototype to avoid an error. 15733 Use char because int might match the return type of a GCC 15734 builtin and then its argument prototype would still apply. */ 15735#ifdef __cplusplus 15736extern "C" 15737#endif 15738char rl_pre_input_hook (); 15739int 15740main () 15741{ 15742return rl_pre_input_hook (); 15743 ; 15744 return 0; 15745} 15746_ACEOF 15747if ac_fn_c_try_link "$LINENO"; then : 15748 ac_cv_lib_readline_rl_pre_input_hook=yes 15749else 15750 ac_cv_lib_readline_rl_pre_input_hook=no 15751fi 15752rm -f core conftest.err conftest.$ac_objext \ 15753 conftest$ac_exeext conftest.$ac_ext 15754LIBS=$ac_check_lib_save_LIBS 15755fi 15756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 15757$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } 15758if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : 15759 15760$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h 15761 15762fi 15763 15764 15765# also in 4.0 15766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 15767$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } 15768if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : 15769 $as_echo_n "(cached) " >&6 15770else 15771 ac_check_lib_save_LIBS=$LIBS 15772LIBS="-lreadline $READLINE_LIBS $LIBS" 15773cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15774/* end confdefs.h. */ 15775 15776/* Override any GCC internal prototype to avoid an error. 15777 Use char because int might match the return type of a GCC 15778 builtin and then its argument prototype would still apply. */ 15779#ifdef __cplusplus 15780extern "C" 15781#endif 15782char rl_completion_display_matches_hook (); 15783int 15784main () 15785{ 15786return rl_completion_display_matches_hook (); 15787 ; 15788 return 0; 15789} 15790_ACEOF 15791if ac_fn_c_try_link "$LINENO"; then : 15792 ac_cv_lib_readline_rl_completion_display_matches_hook=yes 15793else 15794 ac_cv_lib_readline_rl_completion_display_matches_hook=no 15795fi 15796rm -f core conftest.err conftest.$ac_objext \ 15797 conftest$ac_exeext conftest.$ac_ext 15798LIBS=$ac_check_lib_save_LIBS 15799fi 15800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 15801$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } 15802if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : 15803 15804$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h 15805 15806fi 15807 15808 15809# also in 4.0, but not in editline 15810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 15811$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } 15812if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : 15813 $as_echo_n "(cached) " >&6 15814else 15815 ac_check_lib_save_LIBS=$LIBS 15816LIBS="-lreadline $READLINE_LIBS $LIBS" 15817cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15818/* end confdefs.h. */ 15819 15820/* Override any GCC internal prototype to avoid an error. 15821 Use char because int might match the return type of a GCC 15822 builtin and then its argument prototype would still apply. */ 15823#ifdef __cplusplus 15824extern "C" 15825#endif 15826char rl_resize_terminal (); 15827int 15828main () 15829{ 15830return rl_resize_terminal (); 15831 ; 15832 return 0; 15833} 15834_ACEOF 15835if ac_fn_c_try_link "$LINENO"; then : 15836 ac_cv_lib_readline_rl_resize_terminal=yes 15837else 15838 ac_cv_lib_readline_rl_resize_terminal=no 15839fi 15840rm -f core conftest.err conftest.$ac_objext \ 15841 conftest$ac_exeext conftest.$ac_ext 15842LIBS=$ac_check_lib_save_LIBS 15843fi 15844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 15845$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } 15846if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : 15847 15848$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h 15849 15850fi 15851 15852 15853# check for readline 4.2 15854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 15855$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } 15856if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : 15857 $as_echo_n "(cached) " >&6 15858else 15859 ac_check_lib_save_LIBS=$LIBS 15860LIBS="-lreadline $READLINE_LIBS $LIBS" 15861cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15862/* end confdefs.h. */ 15863 15864/* Override any GCC internal prototype to avoid an error. 15865 Use char because int might match the return type of a GCC 15866 builtin and then its argument prototype would still apply. */ 15867#ifdef __cplusplus 15868extern "C" 15869#endif 15870char rl_completion_matches (); 15871int 15872main () 15873{ 15874return rl_completion_matches (); 15875 ; 15876 return 0; 15877} 15878_ACEOF 15879if ac_fn_c_try_link "$LINENO"; then : 15880 ac_cv_lib_readline_rl_completion_matches=yes 15881else 15882 ac_cv_lib_readline_rl_completion_matches=no 15883fi 15884rm -f core conftest.err conftest.$ac_objext \ 15885 conftest$ac_exeext conftest.$ac_ext 15886LIBS=$ac_check_lib_save_LIBS 15887fi 15888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 15889$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } 15890if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : 15891 15892$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h 15893 15894fi 15895 15896 15897# also in readline 4.2 15898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15899/* end confdefs.h. */ 15900#include <readline/readline.h> 15901_ACEOF 15902if ac_fn_c_try_cpp "$LINENO"; then : 15903 have_readline=yes 15904else 15905 have_readline=no 15906 15907fi 15908rm -f conftest.err conftest.i conftest.$ac_ext 15909if test $have_readline = yes 15910then 15911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15912/* end confdefs.h. */ 15913#include <readline/readline.h> 15914 15915_ACEOF 15916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15917 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : 15918 15919$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h 15920 15921fi 15922rm -f conftest* 15923 15924fi 15925 15926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 15927$as_echo_n "checking for append_history in -lreadline... " >&6; } 15928if ${ac_cv_lib_readline_append_history+:} false; then : 15929 $as_echo_n "(cached) " >&6 15930else 15931 ac_check_lib_save_LIBS=$LIBS 15932LIBS="-lreadline $READLINE_LIBS $LIBS" 15933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15934/* end confdefs.h. */ 15935 15936/* Override any GCC internal prototype to avoid an error. 15937 Use char because int might match the return type of a GCC 15938 builtin and then its argument prototype would still apply. */ 15939#ifdef __cplusplus 15940extern "C" 15941#endif 15942char append_history (); 15943int 15944main () 15945{ 15946return append_history (); 15947 ; 15948 return 0; 15949} 15950_ACEOF 15951if ac_fn_c_try_link "$LINENO"; then : 15952 ac_cv_lib_readline_append_history=yes 15953else 15954 ac_cv_lib_readline_append_history=no 15955fi 15956rm -f core conftest.err conftest.$ac_objext \ 15957 conftest$ac_exeext conftest.$ac_ext 15958LIBS=$ac_check_lib_save_LIBS 15959fi 15960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 15961$as_echo "$ac_cv_lib_readline_append_history" >&6; } 15962if test "x$ac_cv_lib_readline_append_history" = xyes; then : 15963 15964$as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h 15965 15966fi 15967 15968 15969# End of readline checks: restore LIBS 15970LIBS=$LIBS_no_readline 15971 15972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 15973$as_echo_n "checking for broken nice()... " >&6; } 15974if ${ac_cv_broken_nice+:} false; then : 15975 $as_echo_n "(cached) " >&6 15976else 15977 15978if test "$cross_compiling" = yes; then : 15979 ac_cv_broken_nice=no 15980else 15981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15982/* end confdefs.h. */ 15983 15984#include <stdlib.h> 15985#include <unistd.h> 15986int main() 15987{ 15988 int val1 = nice(1); 15989 if (val1 != -1 && val1 == nice(2)) 15990 exit(0); 15991 exit(1); 15992} 15993 15994_ACEOF 15995if ac_fn_c_try_run "$LINENO"; then : 15996 ac_cv_broken_nice=yes 15997else 15998 ac_cv_broken_nice=no 15999fi 16000rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16001 conftest.$ac_objext conftest.beam conftest.$ac_ext 16002fi 16003 16004fi 16005 16006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 16007$as_echo "$ac_cv_broken_nice" >&6; } 16008if test "$ac_cv_broken_nice" = yes 16009then 16010 16011$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h 16012 16013fi 16014 16015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 16016$as_echo_n "checking for broken poll()... " >&6; } 16017if ${ac_cv_broken_poll+:} false; then : 16018 $as_echo_n "(cached) " >&6 16019else 16020 if test "$cross_compiling" = yes; then : 16021 ac_cv_broken_poll=no 16022else 16023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16024/* end confdefs.h. */ 16025 16026#include <poll.h> 16027#include <unistd.h> 16028 16029int main() 16030{ 16031 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; 16032 int poll_test; 16033 16034 close (42); 16035 16036 poll_test = poll(&poll_struct, 1, 0); 16037 if (poll_test < 0) 16038 return 0; 16039 else if (poll_test == 0 && poll_struct.revents != POLLNVAL) 16040 return 0; 16041 else 16042 return 1; 16043} 16044 16045_ACEOF 16046if ac_fn_c_try_run "$LINENO"; then : 16047 ac_cv_broken_poll=yes 16048else 16049 ac_cv_broken_poll=no 16050fi 16051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16052 conftest.$ac_objext conftest.beam conftest.$ac_ext 16053fi 16054 16055fi 16056 16057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 16058$as_echo "$ac_cv_broken_poll" >&6; } 16059if test "$ac_cv_broken_poll" = yes 16060then 16061 16062$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h 16063 16064fi 16065 16066# check tzset(3) exists and works like we expect it to 16067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 16068$as_echo_n "checking for working tzset()... " >&6; } 16069if ${ac_cv_working_tzset+:} false; then : 16070 $as_echo_n "(cached) " >&6 16071else 16072 16073if test "$cross_compiling" = yes; then : 16074 ac_cv_working_tzset=no 16075else 16076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16077/* end confdefs.h. */ 16078 16079#include <stdlib.h> 16080#include <time.h> 16081#include <string.h> 16082 16083#if HAVE_TZNAME 16084extern char *tzname[]; 16085#endif 16086 16087int main() 16088{ 16089 /* Note that we need to ensure that not only does tzset(3) 16090 do 'something' with localtime, but it works as documented 16091 in the library reference and as expected by the test suite. 16092 This includes making sure that tzname is set properly if 16093 tm->tm_zone does not exist since it is the alternative way 16094 of getting timezone info. 16095 16096 Red Hat 6.2 doesn't understand the southern hemisphere 16097 after New Year's Day. 16098 */ 16099 16100 time_t groundhogday = 1044144000; /* GMT-based */ 16101 time_t midyear = groundhogday + (365 * 24 * 3600 / 2); 16102 16103 putenv("TZ=UTC+0"); 16104 tzset(); 16105 if (localtime(&groundhogday)->tm_hour != 0) 16106 exit(1); 16107#if HAVE_TZNAME 16108 /* For UTC, tzname[1] is sometimes "", sometimes " " */ 16109 if (strcmp(tzname[0], "UTC") || 16110 (tzname[1][0] != 0 && tzname[1][0] != ' ')) 16111 exit(1); 16112#endif 16113 16114 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); 16115 tzset(); 16116 if (localtime(&groundhogday)->tm_hour != 19) 16117 exit(1); 16118#if HAVE_TZNAME 16119 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) 16120 exit(1); 16121#endif 16122 16123 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); 16124 tzset(); 16125 if (localtime(&groundhogday)->tm_hour != 11) 16126 exit(1); 16127#if HAVE_TZNAME 16128 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) 16129 exit(1); 16130#endif 16131 16132#if HAVE_STRUCT_TM_TM_ZONE 16133 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) 16134 exit(1); 16135 if (strcmp(localtime(&midyear)->tm_zone, "AEST")) 16136 exit(1); 16137#endif 16138 16139 exit(0); 16140} 16141 16142_ACEOF 16143if ac_fn_c_try_run "$LINENO"; then : 16144 ac_cv_working_tzset=yes 16145else 16146 ac_cv_working_tzset=no 16147fi 16148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16149 conftest.$ac_objext conftest.beam conftest.$ac_ext 16150fi 16151 16152fi 16153 16154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 16155$as_echo "$ac_cv_working_tzset" >&6; } 16156if test "$ac_cv_working_tzset" = yes 16157then 16158 16159$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h 16160 16161fi 16162 16163# Look for subsecond timestamps in struct stat 16164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 16165$as_echo_n "checking for tv_nsec in struct stat... " >&6; } 16166if ${ac_cv_stat_tv_nsec+:} false; then : 16167 $as_echo_n "(cached) " >&6 16168else 16169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16170/* end confdefs.h. */ 16171#include <sys/stat.h> 16172int 16173main () 16174{ 16175 16176struct stat st; 16177st.st_mtim.tv_nsec = 1; 16178 16179 ; 16180 return 0; 16181} 16182_ACEOF 16183if ac_fn_c_try_compile "$LINENO"; then : 16184 ac_cv_stat_tv_nsec=yes 16185else 16186 ac_cv_stat_tv_nsec=no 16187fi 16188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16189fi 16190 16191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 16192$as_echo "$ac_cv_stat_tv_nsec" >&6; } 16193if test "$ac_cv_stat_tv_nsec" = yes 16194then 16195 16196$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h 16197 16198fi 16199 16200# Look for BSD style subsecond timestamps in struct stat 16201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 16202$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } 16203if ${ac_cv_stat_tv_nsec2+:} false; then : 16204 $as_echo_n "(cached) " >&6 16205else 16206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16207/* end confdefs.h. */ 16208#include <sys/stat.h> 16209int 16210main () 16211{ 16212 16213struct stat st; 16214st.st_mtimespec.tv_nsec = 1; 16215 16216 ; 16217 return 0; 16218} 16219_ACEOF 16220if ac_fn_c_try_compile "$LINENO"; then : 16221 ac_cv_stat_tv_nsec2=yes 16222else 16223 ac_cv_stat_tv_nsec2=no 16224fi 16225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16226fi 16227 16228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 16229$as_echo "$ac_cv_stat_tv_nsec2" >&6; } 16230if test "$ac_cv_stat_tv_nsec2" = yes 16231then 16232 16233$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h 16234 16235fi 16236 16237# first curses header check 16238ac_save_cppflags="$CPPFLAGS" 16239if test "$cross_compiling" = no; then 16240 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" 16241fi 16242 16243for ac_header in curses.h ncurses.h 16244do : 16245 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 16246ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 16247if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 16248 cat >>confdefs.h <<_ACEOF 16249#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 16250_ACEOF 16251 16252fi 16253 16254done 16255 16256 16257# On Solaris, term.h requires curses.h 16258for ac_header in term.h 16259do : 16260 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " 16261#ifdef HAVE_CURSES_H 16262#include <curses.h> 16263#endif 16264 16265" 16266if test "x$ac_cv_header_term_h" = xyes; then : 16267 cat >>confdefs.h <<_ACEOF 16268#define HAVE_TERM_H 1 16269_ACEOF 16270 16271fi 16272 16273done 16274 16275 16276# On HP/UX 11.0, mvwdelch is a block with a return statement 16277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 16278$as_echo_n "checking whether mvwdelch is an expression... " >&6; } 16279if ${ac_cv_mvwdelch_is_expression+:} false; then : 16280 $as_echo_n "(cached) " >&6 16281else 16282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16283/* end confdefs.h. */ 16284#include <curses.h> 16285int 16286main () 16287{ 16288 16289 int rtn; 16290 rtn = mvwdelch(0,0,0); 16291 16292 ; 16293 return 0; 16294} 16295_ACEOF 16296if ac_fn_c_try_compile "$LINENO"; then : 16297 ac_cv_mvwdelch_is_expression=yes 16298else 16299 ac_cv_mvwdelch_is_expression=no 16300fi 16301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16302fi 16303 16304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 16305$as_echo "$ac_cv_mvwdelch_is_expression" >&6; } 16306 16307if test "$ac_cv_mvwdelch_is_expression" = yes 16308then 16309 16310$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h 16311 16312fi 16313 16314# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque 16315# structs since version 5.7. If the macro is defined as zero before including 16316# [n]curses.h, ncurses will expose fields of the structs regardless of the 16317# configuration. 16318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 16319$as_echo_n "checking whether WINDOW has _flags... " >&6; } 16320if ${ac_cv_window_has_flags+:} false; then : 16321 $as_echo_n "(cached) " >&6 16322else 16323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16324/* end confdefs.h. */ 16325 16326 #define NCURSES_OPAQUE 0 16327 #include <curses.h> 16328 16329int 16330main () 16331{ 16332 16333 WINDOW *w; 16334 w->_flags = 0; 16335 16336 ; 16337 return 0; 16338} 16339_ACEOF 16340if ac_fn_c_try_compile "$LINENO"; then : 16341 ac_cv_window_has_flags=yes 16342else 16343 ac_cv_window_has_flags=no 16344fi 16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16346fi 16347 16348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 16349$as_echo "$ac_cv_window_has_flags" >&6; } 16350 16351 16352if test "$ac_cv_window_has_flags" = yes 16353then 16354 16355$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h 16356 16357fi 16358 16359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 16360$as_echo_n "checking for is_pad... " >&6; } 16361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16362/* end confdefs.h. */ 16363#include <curses.h> 16364int 16365main () 16366{ 16367 16368#ifndef is_pad 16369void *x=is_pad 16370#endif 16371 16372 ; 16373 return 0; 16374} 16375_ACEOF 16376if ac_fn_c_try_compile "$LINENO"; then : 16377 16378$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h 16379 16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16381$as_echo "yes" >&6; } 16382else 16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16384$as_echo "no" >&6; } 16385 16386fi 16387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16388 16389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 16390$as_echo_n "checking for is_term_resized... " >&6; } 16391cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16392/* end confdefs.h. */ 16393#include <curses.h> 16394int 16395main () 16396{ 16397void *x=is_term_resized 16398 ; 16399 return 0; 16400} 16401_ACEOF 16402if ac_fn_c_try_compile "$LINENO"; then : 16403 16404$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h 16405 16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16407$as_echo "yes" >&6; } 16408else 16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16410$as_echo "no" >&6; } 16411 16412fi 16413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16414 16415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 16416$as_echo_n "checking for resize_term... " >&6; } 16417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16418/* end confdefs.h. */ 16419#include <curses.h> 16420int 16421main () 16422{ 16423void *x=resize_term 16424 ; 16425 return 0; 16426} 16427_ACEOF 16428if ac_fn_c_try_compile "$LINENO"; then : 16429 16430$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h 16431 16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16433$as_echo "yes" >&6; } 16434else 16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16436$as_echo "no" >&6; } 16437 16438fi 16439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16440 16441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 16442$as_echo_n "checking for resizeterm... " >&6; } 16443cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16444/* end confdefs.h. */ 16445#include <curses.h> 16446int 16447main () 16448{ 16449void *x=resizeterm 16450 ; 16451 return 0; 16452} 16453_ACEOF 16454if ac_fn_c_try_compile "$LINENO"; then : 16455 16456$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h 16457 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16459$as_echo "yes" >&6; } 16460else 16461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16462$as_echo "no" >&6; } 16463 16464fi 16465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16466 16467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 16468$as_echo_n "checking for immedok... " >&6; } 16469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16470/* end confdefs.h. */ 16471#include <curses.h> 16472int 16473main () 16474{ 16475 16476#ifndef immedok 16477void *x=immedok 16478#endif 16479 16480 ; 16481 return 0; 16482} 16483_ACEOF 16484if ac_fn_c_try_compile "$LINENO"; then : 16485 16486$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h 16487 16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16489$as_echo "yes" >&6; } 16490else 16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16492$as_echo "no" >&6; } 16493 16494fi 16495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16496 16497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 16498$as_echo_n "checking for syncok... " >&6; } 16499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16500/* end confdefs.h. */ 16501#include <curses.h> 16502int 16503main () 16504{ 16505 16506#ifndef syncok 16507void *x=syncok 16508#endif 16509 16510 ; 16511 return 0; 16512} 16513_ACEOF 16514if ac_fn_c_try_compile "$LINENO"; then : 16515 16516$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h 16517 16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16519$as_echo "yes" >&6; } 16520else 16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16522$as_echo "no" >&6; } 16523 16524fi 16525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16526 16527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 16528$as_echo_n "checking for wchgat... " >&6; } 16529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16530/* end confdefs.h. */ 16531#include <curses.h> 16532int 16533main () 16534{ 16535 16536#ifndef wchgat 16537void *x=wchgat 16538#endif 16539 16540 ; 16541 return 0; 16542} 16543_ACEOF 16544if ac_fn_c_try_compile "$LINENO"; then : 16545 16546$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h 16547 16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16549$as_echo "yes" >&6; } 16550else 16551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16552$as_echo "no" >&6; } 16553 16554fi 16555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16556 16557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 16558$as_echo_n "checking for filter... " >&6; } 16559cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16560/* end confdefs.h. */ 16561#include <curses.h> 16562int 16563main () 16564{ 16565 16566#ifndef filter 16567void *x=filter 16568#endif 16569 16570 ; 16571 return 0; 16572} 16573_ACEOF 16574if ac_fn_c_try_compile "$LINENO"; then : 16575 16576$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h 16577 16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16579$as_echo "yes" >&6; } 16580else 16581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16582$as_echo "no" >&6; } 16583 16584fi 16585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16586 16587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 16588$as_echo_n "checking for has_key... " >&6; } 16589cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16590/* end confdefs.h. */ 16591#include <curses.h> 16592int 16593main () 16594{ 16595 16596#ifndef has_key 16597void *x=has_key 16598#endif 16599 16600 ; 16601 return 0; 16602} 16603_ACEOF 16604if ac_fn_c_try_compile "$LINENO"; then : 16605 16606$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h 16607 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16609$as_echo "yes" >&6; } 16610else 16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16612$as_echo "no" >&6; } 16613 16614fi 16615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16616 16617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 16618$as_echo_n "checking for typeahead... " >&6; } 16619cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16620/* end confdefs.h. */ 16621#include <curses.h> 16622int 16623main () 16624{ 16625 16626#ifndef typeahead 16627void *x=typeahead 16628#endif 16629 16630 ; 16631 return 0; 16632} 16633_ACEOF 16634if ac_fn_c_try_compile "$LINENO"; then : 16635 16636$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h 16637 16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16639$as_echo "yes" >&6; } 16640else 16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16642$as_echo "no" >&6; } 16643 16644fi 16645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16646 16647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 16648$as_echo_n "checking for use_env... " >&6; } 16649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16650/* end confdefs.h. */ 16651#include <curses.h> 16652int 16653main () 16654{ 16655 16656#ifndef use_env 16657void *x=use_env 16658#endif 16659 16660 ; 16661 return 0; 16662} 16663_ACEOF 16664if ac_fn_c_try_compile "$LINENO"; then : 16665 16666$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h 16667 16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16669$as_echo "yes" >&6; } 16670else 16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16672$as_echo "no" >&6; } 16673 16674fi 16675rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16676# last curses configure check 16677CPPFLAGS=$ac_save_cppflags 16678 16679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 16680$as_echo "$as_me: checking for device files" >&6;} 16681 16682if test "x$cross_compiling" = xyes; then 16683 if test "${ac_cv_file__dev_ptmx+set}" != set; then 16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 16685$as_echo_n "checking for /dev/ptmx... " >&6; } 16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 16687$as_echo "not set" >&6; } 16688 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 16689 fi 16690 if test "${ac_cv_file__dev_ptc+set}" != set; then 16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 16692$as_echo_n "checking for /dev/ptc... " >&6; } 16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 16694$as_echo "not set" >&6; } 16695 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 16696 fi 16697fi 16698 16699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 16700$as_echo_n "checking for /dev/ptmx... " >&6; } 16701if ${ac_cv_file__dev_ptmx+:} false; then : 16702 $as_echo_n "(cached) " >&6 16703else 16704 test "$cross_compiling" = yes && 16705 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16706if test -r "/dev/ptmx"; then 16707 ac_cv_file__dev_ptmx=yes 16708else 16709 ac_cv_file__dev_ptmx=no 16710fi 16711fi 16712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 16713$as_echo "$ac_cv_file__dev_ptmx" >&6; } 16714if test "x$ac_cv_file__dev_ptmx" = xyes; then : 16715 16716fi 16717 16718if test "x$ac_cv_file__dev_ptmx" = xyes; then 16719 16720$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 16721 16722fi 16723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 16724$as_echo_n "checking for /dev/ptc... " >&6; } 16725if ${ac_cv_file__dev_ptc+:} false; then : 16726 $as_echo_n "(cached) " >&6 16727else 16728 test "$cross_compiling" = yes && 16729 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16730if test -r "/dev/ptc"; then 16731 ac_cv_file__dev_ptc=yes 16732else 16733 ac_cv_file__dev_ptc=no 16734fi 16735fi 16736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 16737$as_echo "$ac_cv_file__dev_ptc" >&6; } 16738if test "x$ac_cv_file__dev_ptc" = xyes; then : 16739 16740fi 16741 16742if test "x$ac_cv_file__dev_ptc" = xyes; then 16743 16744$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 16745 16746fi 16747 16748if test $ac_sys_system = Darwin 16749then 16750 LIBS="$LIBS -framework CoreFoundation" 16751fi 16752 16753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 16754$as_echo_n "checking for %zd printf() format support... " >&6; } 16755if ${ac_cv_have_size_t_format+:} false; then : 16756 $as_echo_n "(cached) " >&6 16757else 16758 if test "$cross_compiling" = yes; then : 16759 ac_cv_have_size_t_format="cross -- assuming yes" 16760 16761else 16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16763/* end confdefs.h. */ 16764 16765#include <stdio.h> 16766#include <stddef.h> 16767#include <string.h> 16768 16769#ifdef HAVE_SYS_TYPES_H 16770#include <sys/types.h> 16771#endif 16772 16773#ifdef HAVE_SSIZE_T 16774typedef ssize_t Py_ssize_t; 16775#elif SIZEOF_VOID_P == SIZEOF_LONG 16776typedef long Py_ssize_t; 16777#else 16778typedef int Py_ssize_t; 16779#endif 16780 16781int main() 16782{ 16783 char buffer[256]; 16784 16785 if(sprintf(buffer, "%zd", (size_t)123) < 0) 16786 return 1; 16787 16788 if (strcmp(buffer, "123")) 16789 return 1; 16790 16791 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) 16792 return 1; 16793 16794 if (strcmp(buffer, "-123")) 16795 return 1; 16796 16797 return 0; 16798} 16799 16800_ACEOF 16801if ac_fn_c_try_run "$LINENO"; then : 16802 ac_cv_have_size_t_format=yes 16803else 16804 ac_cv_have_size_t_format=no 16805fi 16806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16807 conftest.$ac_objext conftest.beam conftest.$ac_ext 16808fi 16809 16810fi 16811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 16812$as_echo "$ac_cv_have_size_t_format" >&6; } 16813if test "$ac_cv_have_size_t_format" != no ; then 16814 16815$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h 16816 16817fi 16818 16819ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 16820#ifdef HAVE_SYS_TYPES_H 16821#include <sys/types.h> 16822#endif 16823#ifdef HAVE_SYS_SOCKET_H 16824#include <sys/socket.h> 16825#endif 16826 16827" 16828if test "x$ac_cv_type_socklen_t" = xyes; then : 16829 16830else 16831 16832$as_echo "#define socklen_t int" >>confdefs.h 16833 16834fi 16835 16836 16837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 16838$as_echo_n "checking for broken mbstowcs... " >&6; } 16839if ${ac_cv_broken_mbstowcs+:} false; then : 16840 $as_echo_n "(cached) " >&6 16841else 16842 if test "$cross_compiling" = yes; then : 16843 ac_cv_broken_mbstowcs=no 16844else 16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16846/* end confdefs.h. */ 16847 16848#include <stdio.h> 16849#include<stdlib.h> 16850int main() { 16851 size_t len = -1; 16852 const char *str = "text"; 16853 len = mbstowcs(NULL, str, 0); 16854 return (len != 4); 16855} 16856 16857_ACEOF 16858if ac_fn_c_try_run "$LINENO"; then : 16859 ac_cv_broken_mbstowcs=no 16860else 16861 ac_cv_broken_mbstowcs=yes 16862fi 16863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16864 conftest.$ac_objext conftest.beam conftest.$ac_ext 16865fi 16866 16867fi 16868 16869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 16870$as_echo "$ac_cv_broken_mbstowcs" >&6; } 16871if test "$ac_cv_broken_mbstowcs" = yes 16872then 16873 16874$as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h 16875 16876fi 16877 16878# Check for --with-computed-gotos 16879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 16880$as_echo_n "checking for --with-computed-gotos... " >&6; } 16881 16882# Check whether --with-computed-gotos was given. 16883if test "${with_computed_gotos+set}" = set; then : 16884 withval=$with_computed_gotos; 16885if test "$withval" = yes 16886then 16887 16888$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h 16889 16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16891$as_echo "yes" >&6; } 16892fi 16893if test "$withval" = no 16894then 16895 16896$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h 16897 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16899$as_echo "no" >&6; } 16900fi 16901 16902else 16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 16904$as_echo "no value specified" >&6; } 16905fi 16906 16907 16908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 16909$as_echo_n "checking whether $CC supports computed gotos... " >&6; } 16910if ${ac_cv_computed_gotos+:} false; then : 16911 $as_echo_n "(cached) " >&6 16912else 16913 if test "$cross_compiling" = yes; then : 16914 if test "${with_computed_gotos+set}" = set; then 16915 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" 16916 else 16917 ac_cv_computed_gotos=no 16918 fi 16919else 16920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16921/* end confdefs.h. */ 16922 16923int main(int argc, char **argv) 16924{ 16925 static void *targets[1] = { &&LABEL1 }; 16926 goto LABEL2; 16927LABEL1: 16928 return 0; 16929LABEL2: 16930 goto *targets[0]; 16931 return 1; 16932} 16933 16934_ACEOF 16935if ac_fn_c_try_run "$LINENO"; then : 16936 ac_cv_computed_gotos=yes 16937else 16938 ac_cv_computed_gotos=no 16939fi 16940rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16941 conftest.$ac_objext conftest.beam conftest.$ac_ext 16942fi 16943 16944fi 16945 16946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 16947$as_echo "$ac_cv_computed_gotos" >&6; } 16948case "$ac_cv_computed_gotos" in yes*) 16949 16950$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h 16951 16952esac 16953 16954case $ac_sys_system in 16955AIX*) 16956 16957$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h 16958 ;; 16959esac 16960 16961 16962 16963 16964for h in `(cd $srcdir;echo Python/thread_*.h)` 16965do 16966 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" 16967done 16968 16969 16970SRCDIRS="Parser Parser/pegen Objects Python Modules Modules/_io Programs" 16971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 16972$as_echo_n "checking for build directories... " >&6; } 16973for dir in $SRCDIRS; do 16974 if test ! -d $dir; then 16975 mkdir $dir 16976 fi 16977done 16978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16979$as_echo "done" >&6; } 16980 16981# Availability of -O2: 16982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 16983$as_echo_n "checking for -O2... " >&6; } 16984saved_cflags="$CFLAGS" 16985CFLAGS="-O2" 16986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16987/* end confdefs.h. */ 16988 16989int 16990main () 16991{ 16992 16993 16994 ; 16995 return 0; 16996} 16997_ACEOF 16998if ac_fn_c_try_compile "$LINENO"; then : 16999 have_O2=yes 17000else 17001 have_O2=no 17002fi 17003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 17005$as_echo "$have_O2" >&6; } 17006CFLAGS="$saved_cflags" 17007 17008# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: 17009# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html 17010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 17011$as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } 17012saved_cflags="$CFLAGS" 17013CFLAGS="-O2 -D_FORTIFY_SOURCE=2" 17014if test "$have_O2" = no; then 17015 CFLAGS="" 17016fi 17017if test "$cross_compiling" = yes; then : 17018 have_glibc_memmove_bug=undefined 17019else 17020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17021/* end confdefs.h. */ 17022 17023#include <stdio.h> 17024#include <stdlib.h> 17025#include <string.h> 17026void foo(void *p, void *q) { memmove(p, q, 19); } 17027int main() { 17028 char a[32] = "123456789000000000"; 17029 foo(&a[9], a); 17030 if (strcmp(a, "123456789123456789000000000") != 0) 17031 return 1; 17032 foo(a, &a[9]); 17033 if (strcmp(a, "123456789000000000") != 0) 17034 return 1; 17035 return 0; 17036} 17037 17038_ACEOF 17039if ac_fn_c_try_run "$LINENO"; then : 17040 have_glibc_memmove_bug=no 17041else 17042 have_glibc_memmove_bug=yes 17043fi 17044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17045 conftest.$ac_objext conftest.beam conftest.$ac_ext 17046fi 17047 17048CFLAGS="$saved_cflags" 17049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 17050$as_echo "$have_glibc_memmove_bug" >&6; } 17051if test "$have_glibc_memmove_bug" = yes; then 17052 17053$as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h 17054 17055fi 17056 17057if test "$have_gcc_asm_for_x87" = yes; then 17058 # Some versions of gcc miscompile inline asm: 17059 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 17060 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html 17061 case $CC in 17062 *gcc*) 17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 17064$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } 17065 saved_cflags="$CFLAGS" 17066 CFLAGS="-O2" 17067 if test "$cross_compiling" = yes; then : 17068 have_ipa_pure_const_bug=undefined 17069else 17070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17071/* end confdefs.h. */ 17072 17073 __attribute__((noinline)) int 17074 foo(int *p) { 17075 int r; 17076 asm ( "movl \$6, (%1)\n\t" 17077 "xorl %0, %0\n\t" 17078 : "=r" (r) : "r" (p) : "memory" 17079 ); 17080 return r; 17081 } 17082 int main() { 17083 int p = 8; 17084 if ((foo(&p) ? : p) != 6) 17085 return 1; 17086 return 0; 17087 } 17088 17089_ACEOF 17090if ac_fn_c_try_run "$LINENO"; then : 17091 have_ipa_pure_const_bug=no 17092else 17093 have_ipa_pure_const_bug=yes 17094fi 17095rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17096 conftest.$ac_objext conftest.beam conftest.$ac_ext 17097fi 17098 17099 CFLAGS="$saved_cflags" 17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 17101$as_echo "$have_ipa_pure_const_bug" >&6; } 17102 if test "$have_ipa_pure_const_bug" = yes; then 17103 17104$as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h 17105 17106 fi 17107 ;; 17108 esac 17109fi 17110 17111# Check for stdatomic.h 17112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 17113$as_echo_n "checking for stdatomic.h... " >&6; } 17114cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17115/* end confdefs.h. */ 17116 17117 17118 #include <stdatomic.h> 17119 atomic_int int_var; 17120 atomic_uintptr_t uintptr_var; 17121 int main() { 17122 atomic_store_explicit(&int_var, 5, memory_order_relaxed); 17123 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); 17124 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); 17125 return 0; 17126 } 17127 17128 17129_ACEOF 17130if ac_fn_c_try_link "$LINENO"; then : 17131 have_stdatomic_h=yes 17132else 17133 have_stdatomic_h=no 17134fi 17135rm -f core conftest.err conftest.$ac_objext \ 17136 conftest$ac_exeext conftest.$ac_ext 17137 17138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 17139$as_echo "$have_stdatomic_h" >&6; } 17140 17141if test "$have_stdatomic_h" = yes; then 17142 17143$as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h 17144 17145fi 17146 17147# Check for GCC >= 4.7 __atomic builtins 17148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 17149$as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } 17150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17151/* end confdefs.h. */ 17152 17153 17154 volatile int val = 1; 17155 int main() { 17156 __atomic_load_n(&val, __ATOMIC_SEQ_CST); 17157 return 0; 17158 } 17159 17160 17161_ACEOF 17162if ac_fn_c_try_link "$LINENO"; then : 17163 have_builtin_atomic=yes 17164else 17165 have_builtin_atomic=no 17166fi 17167rm -f core conftest.err conftest.$ac_objext \ 17168 conftest$ac_exeext conftest.$ac_ext 17169 17170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 17171$as_echo "$have_builtin_atomic" >&6; } 17172 17173if test "$have_builtin_atomic" = yes; then 17174 17175$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h 17176 17177fi 17178 17179# ensurepip option 17180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 17181$as_echo_n "checking for ensurepip... " >&6; } 17182 17183# Check whether --with-ensurepip was given. 17184if test "${with_ensurepip+set}" = set; then : 17185 withval=$with_ensurepip; 17186else 17187 with_ensurepip=upgrade 17188fi 17189 17190case $with_ensurepip in #( 17191 yes|upgrade) : 17192 ENSUREPIP=upgrade ;; #( 17193 install) : 17194 ENSUREPIP=install ;; #( 17195 no) : 17196 ENSUREPIP=no ;; #( 17197 *) : 17198 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; 17199esac 17200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 17201$as_echo "$ENSUREPIP" >&6; } 17202 17203 17204# check if the dirent structure of a d_type field and DT_UNKNOWN is defined 17205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 17206$as_echo_n "checking if the dirent structure of a d_type field... " >&6; } 17207cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17208/* end confdefs.h. */ 17209 17210 17211 #include <dirent.h> 17212 17213 int main() { 17214 struct dirent entry; 17215 return entry.d_type == DT_UNKNOWN; 17216 } 17217 17218 17219_ACEOF 17220if ac_fn_c_try_link "$LINENO"; then : 17221 have_dirent_d_type=yes 17222else 17223 have_dirent_d_type=no 17224fi 17225rm -f core conftest.err conftest.$ac_objext \ 17226 conftest$ac_exeext conftest.$ac_ext 17227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 17228$as_echo "$have_dirent_d_type" >&6; } 17229 17230if test "$have_dirent_d_type" = yes; then 17231 17232$as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h 17233 17234fi 17235 17236# check if the Linux getrandom() syscall is available 17237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 17238$as_echo_n "checking for the Linux getrandom() syscall... " >&6; } 17239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17240/* end confdefs.h. */ 17241 17242 17243 #include <unistd.h> 17244 #include <sys/syscall.h> 17245 #include <linux/random.h> 17246 17247 int main() { 17248 char buffer[1]; 17249 const size_t buflen = sizeof(buffer); 17250 const int flags = GRND_NONBLOCK; 17251 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ 17252 (void)syscall(SYS_getrandom, buffer, buflen, flags); 17253 return 0; 17254 } 17255 17256 17257_ACEOF 17258if ac_fn_c_try_link "$LINENO"; then : 17259 have_getrandom_syscall=yes 17260else 17261 have_getrandom_syscall=no 17262fi 17263rm -f core conftest.err conftest.$ac_objext \ 17264 conftest$ac_exeext conftest.$ac_ext 17265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 17266$as_echo "$have_getrandom_syscall" >&6; } 17267 17268if test "$have_getrandom_syscall" = yes; then 17269 17270$as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h 17271 17272fi 17273 17274# check if the getrandom() function is available 17275# the test was written for the Solaris function of <sys/random.h> 17276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 17277$as_echo_n "checking for the getrandom() function... " >&6; } 17278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17279/* end confdefs.h. */ 17280 17281 17282 #include <sys/random.h> 17283 17284 int main() { 17285 char buffer[1]; 17286 const size_t buflen = sizeof(buffer); 17287 const int flags = 0; 17288 /* ignore the result, Python checks for ENOSYS at runtime */ 17289 (void)getrandom(buffer, buflen, flags); 17290 return 0; 17291 } 17292 17293 17294_ACEOF 17295if ac_fn_c_try_link "$LINENO"; then : 17296 have_getrandom=yes 17297else 17298 have_getrandom=no 17299fi 17300rm -f core conftest.err conftest.$ac_objext \ 17301 conftest$ac_exeext conftest.$ac_ext 17302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 17303$as_echo "$have_getrandom" >&6; } 17304 17305if test "$have_getrandom" = yes; then 17306 17307$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h 17308 17309fi 17310 17311# checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c 17312# shm_* may only be available if linking against librt 17313save_LIBS="$LIBS" 17314save_includes_default="$ac_includes_default" 17315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 17316$as_echo_n "checking for library containing shm_open... " >&6; } 17317if ${ac_cv_search_shm_open+:} false; then : 17318 $as_echo_n "(cached) " >&6 17319else 17320 ac_func_search_save_LIBS=$LIBS 17321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17322/* end confdefs.h. */ 17323 17324/* Override any GCC internal prototype to avoid an error. 17325 Use char because int might match the return type of a GCC 17326 builtin and then its argument prototype would still apply. */ 17327#ifdef __cplusplus 17328extern "C" 17329#endif 17330char shm_open (); 17331int 17332main () 17333{ 17334return shm_open (); 17335 ; 17336 return 0; 17337} 17338_ACEOF 17339for ac_lib in '' rt; do 17340 if test -z "$ac_lib"; then 17341 ac_res="none required" 17342 else 17343 ac_res=-l$ac_lib 17344 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17345 fi 17346 if ac_fn_c_try_link "$LINENO"; then : 17347 ac_cv_search_shm_open=$ac_res 17348fi 17349rm -f core conftest.err conftest.$ac_objext \ 17350 conftest$ac_exeext 17351 if ${ac_cv_search_shm_open+:} false; then : 17352 break 17353fi 17354done 17355if ${ac_cv_search_shm_open+:} false; then : 17356 17357else 17358 ac_cv_search_shm_open=no 17359fi 17360rm conftest.$ac_ext 17361LIBS=$ac_func_search_save_LIBS 17362fi 17363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 17364$as_echo "$ac_cv_search_shm_open" >&6; } 17365ac_res=$ac_cv_search_shm_open 17366if test "$ac_res" != no; then : 17367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17368 17369fi 17370 17371if test "$ac_cv_search_shm_open" = "-lrt"; then 17372 17373$as_echo "#define SHM_NEEDS_LIBRT 1" >>confdefs.h 17374 17375fi 17376for ac_header in sys/mman.h 17377do : 17378 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 17379if test "x$ac_cv_header_sys_mman_h" = xyes; then : 17380 cat >>confdefs.h <<_ACEOF 17381#define HAVE_SYS_MMAN_H 1 17382_ACEOF 17383 17384fi 17385 17386done 17387 17388# temporarily override ac_includes_default for AC_CHECK_FUNCS below 17389ac_includes_default="\ 17390${ac_includes_default} 17391#ifndef __cplusplus 17392# ifdef HAVE_SYS_MMAN_H 17393# include <sys/mman.h> 17394# endif 17395#endif 17396" 17397for ac_func in shm_open shm_unlink 17398do : 17399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17400ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17401if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17402 cat >>confdefs.h <<_ACEOF 17403#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17404_ACEOF 17405 17406fi 17407done 17408 17409# we don't want to link with librt always, restore LIBS 17410LIBS="$save_LIBS" 17411ac_includes_default="$save_includes_default" 17412 17413# Check for usable OpenSSL 17414 17415 found=false 17416 17417# Check whether --with-openssl was given. 17418if test "${with_openssl+set}" = set; then : 17419 withval=$with_openssl; 17420 case "$withval" in 17421 "" | y | ye | yes | n | no) 17422 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 17423 ;; 17424 *) ssldirs="$withval" 17425 ;; 17426 esac 17427 17428else 17429 17430 # if pkg-config is installed and openssl has installed a .pc file, 17431 # then use that information and don't search ssldirs 17432 if test -n "$ac_tool_prefix"; then 17433 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17434set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17436$as_echo_n "checking for $ac_word... " >&6; } 17437if ${ac_cv_prog_PKG_CONFIG+:} false; then : 17438 $as_echo_n "(cached) " >&6 17439else 17440 if test -n "$PKG_CONFIG"; then 17441 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 17442else 17443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17444for as_dir in $PATH 17445do 17446 IFS=$as_save_IFS 17447 test -z "$as_dir" && as_dir=. 17448 for ac_exec_ext in '' $ac_executable_extensions; do 17449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17450 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 17451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17452 break 2 17453 fi 17454done 17455 done 17456IFS=$as_save_IFS 17457 17458fi 17459fi 17460PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 17461if test -n "$PKG_CONFIG"; then 17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17463$as_echo "$PKG_CONFIG" >&6; } 17464else 17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17466$as_echo "no" >&6; } 17467fi 17468 17469 17470fi 17471if test -z "$ac_cv_prog_PKG_CONFIG"; then 17472 ac_ct_PKG_CONFIG=$PKG_CONFIG 17473 # Extract the first word of "pkg-config", so it can be a program name with args. 17474set dummy pkg-config; ac_word=$2 17475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17476$as_echo_n "checking for $ac_word... " >&6; } 17477if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : 17478 $as_echo_n "(cached) " >&6 17479else 17480 if test -n "$ac_ct_PKG_CONFIG"; then 17481 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 17482else 17483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17484for as_dir in $PATH 17485do 17486 IFS=$as_save_IFS 17487 test -z "$as_dir" && as_dir=. 17488 for ac_exec_ext in '' $ac_executable_extensions; do 17489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17490 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 17491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17492 break 2 17493 fi 17494done 17495 done 17496IFS=$as_save_IFS 17497 17498fi 17499fi 17500ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 17501if test -n "$ac_ct_PKG_CONFIG"; then 17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 17503$as_echo "$ac_ct_PKG_CONFIG" >&6; } 17504else 17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17506$as_echo "no" >&6; } 17507fi 17508 17509 if test "x$ac_ct_PKG_CONFIG" = x; then 17510 PKG_CONFIG="" 17511 else 17512 case $cross_compiling:$ac_tool_warned in 17513yes:) 17514{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17515$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17516ac_tool_warned=yes ;; 17517esac 17518 PKG_CONFIG=$ac_ct_PKG_CONFIG 17519 fi 17520else 17521 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 17522fi 17523 17524 if test x"$PKG_CONFIG" != x""; then 17525 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 17526 if test $? = 0; then 17527 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 17528 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 17529 found=true 17530 fi 17531 fi 17532 17533 # no such luck; use some default ssldirs 17534 if ! $found; then 17535 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 17536 fi 17537 17538 17539fi 17540 17541 17542 17543 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 17544 # an 'openssl' subdirectory 17545 17546 if ! $found; then 17547 OPENSSL_INCLUDES= 17548 for ssldir in $ssldirs; do 17549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 17550$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } 17551 if test -f "$ssldir/include/openssl/ssl.h"; then 17552 OPENSSL_INCLUDES="-I$ssldir/include" 17553 OPENSSL_LDFLAGS="-L$ssldir/lib" 17554 OPENSSL_LIBS="-lssl -lcrypto" 17555 found=true 17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17557$as_echo "yes" >&6; } 17558 break 17559 else 17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17561$as_echo "no" >&6; } 17562 fi 17563 done 17564 17565 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 17566 # it will just work! 17567 fi 17568 17569 # try the preprocessor and linker with our new flags, 17570 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 17571 17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 17573$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 17574 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 17575 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 17576 17577 save_LIBS="$LIBS" 17578 save_LDFLAGS="$LDFLAGS" 17579 save_CPPFLAGS="$CPPFLAGS" 17580 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 17581 LIBS="$OPENSSL_LIBS $LIBS" 17582 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 17583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17584/* end confdefs.h. */ 17585#include <openssl/ssl.h> 17586int 17587main () 17588{ 17589SSL_new(NULL) 17590 ; 17591 return 0; 17592} 17593_ACEOF 17594if ac_fn_c_try_link "$LINENO"; then : 17595 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17597$as_echo "yes" >&6; } 17598 have_openssl=yes 17599 17600else 17601 17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17603$as_echo "no" >&6; } 17604 have_openssl=no 17605 17606fi 17607rm -f core conftest.err conftest.$ac_objext \ 17608 conftest$ac_exeext conftest.$ac_ext 17609 CPPFLAGS="$save_CPPFLAGS" 17610 LDFLAGS="$save_LDFLAGS" 17611 LIBS="$save_LIBS" 17612 17613 17614 17615 17616 17617 17618if test "$have_openssl" = yes; then 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5 17620$as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; } 17621 17622 save_LIBS="$LIBS" 17623 save_LDFLAGS="$LDFLAGS" 17624 save_CPPFLAGS="$CPPFLAGS" 17625 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 17626 LIBS="$OPENSSL_LIBS $LIBS" 17627 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 17628 17629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17630/* end confdefs.h. */ 17631 17632 #include <openssl/x509_vfy.h> 17633 17634int 17635main () 17636{ 17637 17638 X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); 17639 X509_VERIFY_PARAM_set1_host(p, "localhost", 0); 17640 X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1"); 17641 X509_VERIFY_PARAM_set_hostflags(p, 0); 17642 17643 ; 17644 return 0; 17645} 17646 17647_ACEOF 17648if ac_fn_c_try_link "$LINENO"; then : 17649 17650 ac_cv_has_x509_verify_param_set1_host=yes 17651 17652else 17653 17654 ac_cv_has_x509_verify_param_set1_host=no 17655 17656fi 17657rm -f core conftest.err conftest.$ac_objext \ 17658 conftest$ac_exeext conftest.$ac_ext 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5 17660$as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; } 17661 if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then 17662 17663$as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h 17664 17665 fi 17666 17667 CPPFLAGS="$save_CPPFLAGS" 17668 LDFLAGS="$save_LDFLAGS" 17669 LIBS="$save_LIBS" 17670fi 17671 17672# ssl module default cipher suite string 17673 17674 17675 17676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 17677$as_echo_n "checking for --with-ssl-default-suites... " >&6; } 17678 17679# Check whether --with-ssl-default-suites was given. 17680if test "${with_ssl_default_suites+set}" = set; then : 17681 withval=$with_ssl_default_suites; 17682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 17683$as_echo "$withval" >&6; } 17684case "$withval" in 17685 python) 17686 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h 17687 17688 ;; 17689 openssl) 17690 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h 17691 17692 ;; 17693 *) 17694 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h 17695 17696 cat >>confdefs.h <<_ACEOF 17697#define PY_SSL_DEFAULT_CIPHER_STRING "$withval" 17698_ACEOF 17699 17700 ;; 17701esac 17702 17703else 17704 17705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5 17706$as_echo "python" >&6; } 17707$as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h 17708 17709 17710fi 17711 17712 17713# builtin hash modules 17714default_hashlib_hashes="md5,sha1,sha256,sha512,sha3,blake2" 17715 17716$as_echo "#define PY_BUILTIN_HASHLIB_HASHES /**/" >>confdefs.h 17717 17718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-builtin-hashlib-hashes" >&5 17719$as_echo_n "checking for --with-builtin-hashlib-hashes... " >&6; } 17720 17721# Check whether --with-builtin-hashlib-hashes was given. 17722if test "${with_builtin_hashlib_hashes+set}" = set; then : 17723 withval=$with_builtin_hashlib_hashes; 17724case "$withval" in 17725 yes) 17726 withval=$default_hashlib_hashes 17727 ;; 17728 no) 17729 withval="" 17730 ;; 17731esac 17732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 17733$as_echo "$withval" >&6; } 17734cat >>confdefs.h <<_ACEOF 17735#define PY_BUILTIN_HASHLIB_HASHES "$withval" 17736_ACEOF 17737 17738 17739else 17740 17741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_hashlib_hashes" >&5 17742$as_echo "$default_hashlib_hashes" >&6; }; 17743cat >>confdefs.h <<_ACEOF 17744#define PY_BUILTIN_HASHLIB_HASHES "$default_hashlib_hashes" 17745_ACEOF 17746 17747 17748fi 17749 17750 17751# generate output files 17752ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh" 17753 17754ac_config_files="$ac_config_files Modules/ld_so_aix" 17755 17756cat >confcache <<\_ACEOF 17757# This file is a shell script that caches the results of configure 17758# tests run on this system so they can be shared between configure 17759# scripts and configure runs, see configure's option --config-cache. 17760# It is not useful on other systems. If it contains results you don't 17761# want to keep, you may remove or edit it. 17762# 17763# config.status only pays attention to the cache file if you give it 17764# the --recheck option to rerun configure. 17765# 17766# `ac_cv_env_foo' variables (set or unset) will be overridden when 17767# loading this file, other *unset* `ac_cv_foo' will be assigned the 17768# following values. 17769 17770_ACEOF 17771 17772# The following way of writing the cache mishandles newlines in values, 17773# but we know of no workaround that is simple, portable, and efficient. 17774# So, we kill variables containing newlines. 17775# Ultrix sh set writes to stderr and can't be redirected directly, 17776# and sets the high bit in the cache file unless we assign to the vars. 17777( 17778 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17779 eval ac_val=\$$ac_var 17780 case $ac_val in #( 17781 *${as_nl}*) 17782 case $ac_var in #( 17783 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17784$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17785 esac 17786 case $ac_var in #( 17787 _ | IFS | as_nl) ;; #( 17788 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17789 *) { eval $ac_var=; unset $ac_var;} ;; 17790 esac ;; 17791 esac 17792 done 17793 17794 (set) 2>&1 | 17795 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17796 *${as_nl}ac_space=\ *) 17797 # `set' does not quote correctly, so add quotes: double-quote 17798 # substitution turns \\\\ into \\, and sed turns \\ into \. 17799 sed -n \ 17800 "s/'/'\\\\''/g; 17801 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17802 ;; #( 17803 *) 17804 # `set' quotes correctly as required by POSIX, so do not add quotes. 17805 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17806 ;; 17807 esac | 17808 sort 17809) | 17810 sed ' 17811 /^ac_cv_env_/b end 17812 t clear 17813 :clear 17814 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17815 t end 17816 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17817 :end' >>confcache 17818if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17819 if test -w "$cache_file"; then 17820 if test "x$cache_file" != "x/dev/null"; then 17821 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17822$as_echo "$as_me: updating cache $cache_file" >&6;} 17823 if test ! -f "$cache_file" || test -h "$cache_file"; then 17824 cat confcache >"$cache_file" 17825 else 17826 case $cache_file in #( 17827 */* | ?:*) 17828 mv -f confcache "$cache_file"$$ && 17829 mv -f "$cache_file"$$ "$cache_file" ;; #( 17830 *) 17831 mv -f confcache "$cache_file" ;; 17832 esac 17833 fi 17834 fi 17835 else 17836 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17837$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17838 fi 17839fi 17840rm -f confcache 17841 17842test "x$prefix" = xNONE && prefix=$ac_default_prefix 17843# Let make expand exec_prefix. 17844test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17845 17846DEFS=-DHAVE_CONFIG_H 17847 17848ac_libobjs= 17849ac_ltlibobjs= 17850U= 17851for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17852 # 1. Remove the extension, and $U if already installed. 17853 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17854 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17855 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17856 # will be set to the directory where LIBOBJS objects are built. 17857 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17858 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17859done 17860LIBOBJS=$ac_libobjs 17861 17862LTLIBOBJS=$ac_ltlibobjs 17863 17864 17865 17866 17867: "${CONFIG_STATUS=./config.status}" 17868ac_write_fail=0 17869ac_clean_files_save=$ac_clean_files 17870ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17871{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17872$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17873as_write_fail=0 17874cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17875#! $SHELL 17876# Generated by $as_me. 17877# Run this file to recreate the current configuration. 17878# Compiler output produced by configure, useful for debugging 17879# configure, is in config.log if it exists. 17880 17881debug=false 17882ac_cs_recheck=false 17883ac_cs_silent=false 17884 17885SHELL=\${CONFIG_SHELL-$SHELL} 17886export SHELL 17887_ASEOF 17888cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17889## -------------------- ## 17890## M4sh Initialization. ## 17891## -------------------- ## 17892 17893# Be more Bourne compatible 17894DUALCASE=1; export DUALCASE # for MKS sh 17895if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17896 emulate sh 17897 NULLCMD=: 17898 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17899 # is contrary to our usage. Disable this feature. 17900 alias -g '${1+"$@"}'='"$@"' 17901 setopt NO_GLOB_SUBST 17902else 17903 case `(set -o) 2>/dev/null` in #( 17904 *posix*) : 17905 set -o posix ;; #( 17906 *) : 17907 ;; 17908esac 17909fi 17910 17911 17912as_nl=' 17913' 17914export as_nl 17915# Printing a long string crashes Solaris 7 /usr/bin/printf. 17916as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17917as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17918as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17919# Prefer a ksh shell builtin over an external printf program on Solaris, 17920# but without wasting forks for bash or zsh. 17921if test -z "$BASH_VERSION$ZSH_VERSION" \ 17922 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17923 as_echo='print -r --' 17924 as_echo_n='print -rn --' 17925elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17926 as_echo='printf %s\n' 17927 as_echo_n='printf %s' 17928else 17929 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17930 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17931 as_echo_n='/usr/ucb/echo -n' 17932 else 17933 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17934 as_echo_n_body='eval 17935 arg=$1; 17936 case $arg in #( 17937 *"$as_nl"*) 17938 expr "X$arg" : "X\\(.*\\)$as_nl"; 17939 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17940 esac; 17941 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17942 ' 17943 export as_echo_n_body 17944 as_echo_n='sh -c $as_echo_n_body as_echo' 17945 fi 17946 export as_echo_body 17947 as_echo='sh -c $as_echo_body as_echo' 17948fi 17949 17950# The user is always right. 17951if test "${PATH_SEPARATOR+set}" != set; then 17952 PATH_SEPARATOR=: 17953 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17954 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17955 PATH_SEPARATOR=';' 17956 } 17957fi 17958 17959 17960# IFS 17961# We need space, tab and new line, in precisely that order. Quoting is 17962# there to prevent editors from complaining about space-tab. 17963# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17964# splitting by setting IFS to empty value.) 17965IFS=" "" $as_nl" 17966 17967# Find who we are. Look in the path if we contain no directory separator. 17968as_myself= 17969case $0 in #(( 17970 *[\\/]* ) as_myself=$0 ;; 17971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17972for as_dir in $PATH 17973do 17974 IFS=$as_save_IFS 17975 test -z "$as_dir" && as_dir=. 17976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17977 done 17978IFS=$as_save_IFS 17979 17980 ;; 17981esac 17982# We did not find ourselves, most probably we were run as `sh COMMAND' 17983# in which case we are not to be found in the path. 17984if test "x$as_myself" = x; then 17985 as_myself=$0 17986fi 17987if test ! -f "$as_myself"; then 17988 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17989 exit 1 17990fi 17991 17992# Unset variables that we do not need and which cause bugs (e.g. in 17993# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17994# suppresses any "Segmentation fault" message there. '((' could 17995# trigger a bug in pdksh 5.2.14. 17996for as_var in BASH_ENV ENV MAIL MAILPATH 17997do eval test x\${$as_var+set} = xset \ 17998 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17999done 18000PS1='$ ' 18001PS2='> ' 18002PS4='+ ' 18003 18004# NLS nuisances. 18005LC_ALL=C 18006export LC_ALL 18007LANGUAGE=C 18008export LANGUAGE 18009 18010# CDPATH. 18011(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18012 18013 18014# as_fn_error STATUS ERROR [LINENO LOG_FD] 18015# ---------------------------------------- 18016# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18017# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18018# script with STATUS, using 1 if that was 0. 18019as_fn_error () 18020{ 18021 as_status=$1; test $as_status -eq 0 && as_status=1 18022 if test "$4"; then 18023 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18024 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18025 fi 18026 $as_echo "$as_me: error: $2" >&2 18027 as_fn_exit $as_status 18028} # as_fn_error 18029 18030 18031# as_fn_set_status STATUS 18032# ----------------------- 18033# Set $? to STATUS, without forking. 18034as_fn_set_status () 18035{ 18036 return $1 18037} # as_fn_set_status 18038 18039# as_fn_exit STATUS 18040# ----------------- 18041# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18042as_fn_exit () 18043{ 18044 set +e 18045 as_fn_set_status $1 18046 exit $1 18047} # as_fn_exit 18048 18049# as_fn_unset VAR 18050# --------------- 18051# Portably unset VAR. 18052as_fn_unset () 18053{ 18054 { eval $1=; unset $1;} 18055} 18056as_unset=as_fn_unset 18057# as_fn_append VAR VALUE 18058# ---------------------- 18059# Append the text in VALUE to the end of the definition contained in VAR. Take 18060# advantage of any shell optimizations that allow amortized linear growth over 18061# repeated appends, instead of the typical quadratic growth present in naive 18062# implementations. 18063if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18064 eval 'as_fn_append () 18065 { 18066 eval $1+=\$2 18067 }' 18068else 18069 as_fn_append () 18070 { 18071 eval $1=\$$1\$2 18072 } 18073fi # as_fn_append 18074 18075# as_fn_arith ARG... 18076# ------------------ 18077# Perform arithmetic evaluation on the ARGs, and store the result in the 18078# global $as_val. Take advantage of shells that can avoid forks. The arguments 18079# must be portable across $(()) and expr. 18080if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18081 eval 'as_fn_arith () 18082 { 18083 as_val=$(( $* )) 18084 }' 18085else 18086 as_fn_arith () 18087 { 18088 as_val=`expr "$@" || test $? -eq 1` 18089 } 18090fi # as_fn_arith 18091 18092 18093if expr a : '\(a\)' >/dev/null 2>&1 && 18094 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18095 as_expr=expr 18096else 18097 as_expr=false 18098fi 18099 18100if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18101 as_basename=basename 18102else 18103 as_basename=false 18104fi 18105 18106if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18107 as_dirname=dirname 18108else 18109 as_dirname=false 18110fi 18111 18112as_me=`$as_basename -- "$0" || 18113$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18114 X"$0" : 'X\(//\)$' \| \ 18115 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18116$as_echo X/"$0" | 18117 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18118 s//\1/ 18119 q 18120 } 18121 /^X\/\(\/\/\)$/{ 18122 s//\1/ 18123 q 18124 } 18125 /^X\/\(\/\).*/{ 18126 s//\1/ 18127 q 18128 } 18129 s/.*/./; q'` 18130 18131# Avoid depending upon Character Ranges. 18132as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18133as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18134as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18135as_cr_digits='0123456789' 18136as_cr_alnum=$as_cr_Letters$as_cr_digits 18137 18138ECHO_C= ECHO_N= ECHO_T= 18139case `echo -n x` in #((((( 18140-n*) 18141 case `echo 'xy\c'` in 18142 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18143 xy) ECHO_C='\c';; 18144 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18145 ECHO_T=' ';; 18146 esac;; 18147*) 18148 ECHO_N='-n';; 18149esac 18150 18151rm -f conf$$ conf$$.exe conf$$.file 18152if test -d conf$$.dir; then 18153 rm -f conf$$.dir/conf$$.file 18154else 18155 rm -f conf$$.dir 18156 mkdir conf$$.dir 2>/dev/null 18157fi 18158if (echo >conf$$.file) 2>/dev/null; then 18159 if ln -s conf$$.file conf$$ 2>/dev/null; then 18160 as_ln_s='ln -s' 18161 # ... but there are two gotchas: 18162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18164 # In both cases, we have to default to `cp -pR'. 18165 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18166 as_ln_s='cp -pR' 18167 elif ln conf$$.file conf$$ 2>/dev/null; then 18168 as_ln_s=ln 18169 else 18170 as_ln_s='cp -pR' 18171 fi 18172else 18173 as_ln_s='cp -pR' 18174fi 18175rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18176rmdir conf$$.dir 2>/dev/null 18177 18178 18179# as_fn_mkdir_p 18180# ------------- 18181# Create "$as_dir" as a directory, including parents if necessary. 18182as_fn_mkdir_p () 18183{ 18184 18185 case $as_dir in #( 18186 -*) as_dir=./$as_dir;; 18187 esac 18188 test -d "$as_dir" || eval $as_mkdir_p || { 18189 as_dirs= 18190 while :; do 18191 case $as_dir in #( 18192 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18193 *) as_qdir=$as_dir;; 18194 esac 18195 as_dirs="'$as_qdir' $as_dirs" 18196 as_dir=`$as_dirname -- "$as_dir" || 18197$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18198 X"$as_dir" : 'X\(//\)[^/]' \| \ 18199 X"$as_dir" : 'X\(//\)$' \| \ 18200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18201$as_echo X"$as_dir" | 18202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18203 s//\1/ 18204 q 18205 } 18206 /^X\(\/\/\)[^/].*/{ 18207 s//\1/ 18208 q 18209 } 18210 /^X\(\/\/\)$/{ 18211 s//\1/ 18212 q 18213 } 18214 /^X\(\/\).*/{ 18215 s//\1/ 18216 q 18217 } 18218 s/.*/./; q'` 18219 test -d "$as_dir" && break 18220 done 18221 test -z "$as_dirs" || eval "mkdir $as_dirs" 18222 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18223 18224 18225} # as_fn_mkdir_p 18226if mkdir -p . 2>/dev/null; then 18227 as_mkdir_p='mkdir -p "$as_dir"' 18228else 18229 test -d ./-p && rmdir ./-p 18230 as_mkdir_p=false 18231fi 18232 18233 18234# as_fn_executable_p FILE 18235# ----------------------- 18236# Test if FILE is an executable regular file. 18237as_fn_executable_p () 18238{ 18239 test -f "$1" && test -x "$1" 18240} # as_fn_executable_p 18241as_test_x='test -x' 18242as_executable_p=as_fn_executable_p 18243 18244# Sed expression to map a string onto a valid CPP name. 18245as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18246 18247# Sed expression to map a string onto a valid variable name. 18248as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18249 18250 18251exec 6>&1 18252## ----------------------------------- ## 18253## Main body of $CONFIG_STATUS script. ## 18254## ----------------------------------- ## 18255_ASEOF 18256test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18257 18258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18259# Save the log message, to keep $0 and so on meaningful, and to 18260# report actual input values of CONFIG_FILES etc. instead of their 18261# values after options handling. 18262ac_log=" 18263This file was extended by python $as_me 3.9, which was 18264generated by GNU Autoconf 2.69. Invocation command line was 18265 18266 CONFIG_FILES = $CONFIG_FILES 18267 CONFIG_HEADERS = $CONFIG_HEADERS 18268 CONFIG_LINKS = $CONFIG_LINKS 18269 CONFIG_COMMANDS = $CONFIG_COMMANDS 18270 $ $0 $@ 18271 18272on `(hostname || uname -n) 2>/dev/null | sed 1q` 18273" 18274 18275_ACEOF 18276 18277case $ac_config_files in *" 18278"*) set x $ac_config_files; shift; ac_config_files=$*;; 18279esac 18280 18281case $ac_config_headers in *" 18282"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18283esac 18284 18285 18286cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18287# Files that config.status was made for. 18288config_files="$ac_config_files" 18289config_headers="$ac_config_headers" 18290 18291_ACEOF 18292 18293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18294ac_cs_usage="\ 18295\`$as_me' instantiates files and other configuration actions 18296from templates according to the current configuration. Unless the files 18297and actions are specified as TAGs, all are instantiated by default. 18298 18299Usage: $0 [OPTION]... [TAG]... 18300 18301 -h, --help print this help, then exit 18302 -V, --version print version number and configuration settings, then exit 18303 --config print configuration, then exit 18304 -q, --quiet, --silent 18305 do not print progress messages 18306 -d, --debug don't remove temporary files 18307 --recheck update $as_me by reconfiguring in the same conditions 18308 --file=FILE[:TEMPLATE] 18309 instantiate the configuration file FILE 18310 --header=FILE[:TEMPLATE] 18311 instantiate the configuration header FILE 18312 18313Configuration files: 18314$config_files 18315 18316Configuration headers: 18317$config_headers 18318 18319Report bugs to <https://bugs.python.org/>." 18320 18321_ACEOF 18322cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18323ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18324ac_cs_version="\\ 18325python config.status 3.9 18326configured by $0, generated by GNU Autoconf 2.69, 18327 with options \\"\$ac_cs_config\\" 18328 18329Copyright (C) 2012 Free Software Foundation, Inc. 18330This config.status script is free software; the Free Software Foundation 18331gives unlimited permission to copy, distribute and modify it." 18332 18333ac_pwd='$ac_pwd' 18334srcdir='$srcdir' 18335INSTALL='$INSTALL' 18336MKDIR_P='$MKDIR_P' 18337test -n "\$AWK" || AWK=awk 18338_ACEOF 18339 18340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18341# The default lists apply if the user does not specify any file. 18342ac_need_defaults=: 18343while test $# != 0 18344do 18345 case $1 in 18346 --*=?*) 18347 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18348 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18349 ac_shift=: 18350 ;; 18351 --*=) 18352 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18353 ac_optarg= 18354 ac_shift=: 18355 ;; 18356 *) 18357 ac_option=$1 18358 ac_optarg=$2 18359 ac_shift=shift 18360 ;; 18361 esac 18362 18363 case $ac_option in 18364 # Handling of the options. 18365 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18366 ac_cs_recheck=: ;; 18367 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18368 $as_echo "$ac_cs_version"; exit ;; 18369 --config | --confi | --conf | --con | --co | --c ) 18370 $as_echo "$ac_cs_config"; exit ;; 18371 --debug | --debu | --deb | --de | --d | -d ) 18372 debug=: ;; 18373 --file | --fil | --fi | --f ) 18374 $ac_shift 18375 case $ac_optarg in 18376 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18377 '') as_fn_error $? "missing file argument" ;; 18378 esac 18379 as_fn_append CONFIG_FILES " '$ac_optarg'" 18380 ac_need_defaults=false;; 18381 --header | --heade | --head | --hea ) 18382 $ac_shift 18383 case $ac_optarg in 18384 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18385 esac 18386 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18387 ac_need_defaults=false;; 18388 --he | --h) 18389 # Conflict between --help and --header 18390 as_fn_error $? "ambiguous option: \`$1' 18391Try \`$0 --help' for more information.";; 18392 --help | --hel | -h ) 18393 $as_echo "$ac_cs_usage"; exit ;; 18394 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18395 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18396 ac_cs_silent=: ;; 18397 18398 # This is an error. 18399 -*) as_fn_error $? "unrecognized option: \`$1' 18400Try \`$0 --help' for more information." ;; 18401 18402 *) as_fn_append ac_config_targets " $1" 18403 ac_need_defaults=false ;; 18404 18405 esac 18406 shift 18407done 18408 18409ac_configure_extra_args= 18410 18411if $ac_cs_silent; then 18412 exec 6>/dev/null 18413 ac_configure_extra_args="$ac_configure_extra_args --silent" 18414fi 18415 18416_ACEOF 18417cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18418if \$ac_cs_recheck; then 18419 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18420 shift 18421 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18422 CONFIG_SHELL='$SHELL' 18423 export CONFIG_SHELL 18424 exec "\$@" 18425fi 18426 18427_ACEOF 18428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18429exec 5>>config.log 18430{ 18431 echo 18432 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18433## Running $as_me. ## 18434_ASBOX 18435 $as_echo "$ac_log" 18436} >&5 18437 18438_ACEOF 18439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18440_ACEOF 18441 18442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18443 18444# Handling of arguments. 18445for ac_config_target in $ac_config_targets 18446do 18447 case $ac_config_target in 18448 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; 18449 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; 18450 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; 18451 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; 18452 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; 18453 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; 18454 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; 18455 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;; 18456 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; 18457 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; 18458 18459 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18460 esac 18461done 18462 18463 18464# If the user did not use the arguments to specify the items to instantiate, 18465# then the envvar interface is used. Set only those that are not. 18466# We use the long form for the default assignment because of an extremely 18467# bizarre bug on SunOS 4.1.3. 18468if $ac_need_defaults; then 18469 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18470 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18471fi 18472 18473# Have a temporary directory for convenience. Make it in the build tree 18474# simply because there is no reason against having it here, and in addition, 18475# creating and moving files from /tmp can sometimes cause problems. 18476# Hook for its removal unless debugging. 18477# Note that there is a small window in which the directory will not be cleaned: 18478# after its creation but before its name has been assigned to `$tmp'. 18479$debug || 18480{ 18481 tmp= ac_tmp= 18482 trap 'exit_status=$? 18483 : "${ac_tmp:=$tmp}" 18484 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18485' 0 18486 trap 'as_fn_exit 1' 1 2 13 15 18487} 18488# Create a (secure) tmp directory for tmp files. 18489 18490{ 18491 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18492 test -d "$tmp" 18493} || 18494{ 18495 tmp=./conf$$-$RANDOM 18496 (umask 077 && mkdir "$tmp") 18497} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18498ac_tmp=$tmp 18499 18500# Set up the scripts for CONFIG_FILES section. 18501# No need to generate them if there are no CONFIG_FILES. 18502# This happens for instance with `./config.status config.h'. 18503if test -n "$CONFIG_FILES"; then 18504 18505 18506ac_cr=`echo X | tr X '\015'` 18507# On cygwin, bash can eat \r inside `` if the user requested igncr. 18508# But we know of no other shell where ac_cr would be empty at this 18509# point, so we can use a bashism as a fallback. 18510if test "x$ac_cr" = x; then 18511 eval ac_cr=\$\'\\r\' 18512fi 18513ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18514if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18515 ac_cs_awk_cr='\\r' 18516else 18517 ac_cs_awk_cr=$ac_cr 18518fi 18519 18520echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18521_ACEOF 18522 18523 18524{ 18525 echo "cat >conf$$subs.awk <<_ACEOF" && 18526 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18527 echo "_ACEOF" 18528} >conf$$subs.sh || 18529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18530ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18531ac_delim='%!_!# ' 18532for ac_last_try in false false false false false :; do 18533 . ./conf$$subs.sh || 18534 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18535 18536 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18537 if test $ac_delim_n = $ac_delim_num; then 18538 break 18539 elif $ac_last_try; then 18540 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18541 else 18542 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18543 fi 18544done 18545rm -f conf$$subs.sh 18546 18547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18548cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18549_ACEOF 18550sed -n ' 18551h 18552s/^/S["/; s/!.*/"]=/ 18553p 18554g 18555s/^[^!]*!// 18556:repl 18557t repl 18558s/'"$ac_delim"'$// 18559t delim 18560:nl 18561h 18562s/\(.\{148\}\)..*/\1/ 18563t more1 18564s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18565p 18566n 18567b repl 18568:more1 18569s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18570p 18571g 18572s/.\{148\}// 18573t nl 18574:delim 18575h 18576s/\(.\{148\}\)..*/\1/ 18577t more2 18578s/["\\]/\\&/g; s/^/"/; s/$/"/ 18579p 18580b 18581:more2 18582s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18583p 18584g 18585s/.\{148\}// 18586t delim 18587' <conf$$subs.awk | sed ' 18588/^[^""]/{ 18589 N 18590 s/\n// 18591} 18592' >>$CONFIG_STATUS || ac_write_fail=1 18593rm -f conf$$subs.awk 18594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18595_ACAWK 18596cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18597 for (key in S) S_is_set[key] = 1 18598 FS = "" 18599 18600} 18601{ 18602 line = $ 0 18603 nfields = split(line, field, "@") 18604 substed = 0 18605 len = length(field[1]) 18606 for (i = 2; i < nfields; i++) { 18607 key = field[i] 18608 keylen = length(key) 18609 if (S_is_set[key]) { 18610 value = S[key] 18611 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18612 len += length(value) + length(field[++i]) 18613 substed = 1 18614 } else 18615 len += 1 + keylen 18616 } 18617 18618 print line 18619} 18620 18621_ACAWK 18622_ACEOF 18623cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18624if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18625 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18626else 18627 cat 18628fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18629 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18630_ACEOF 18631 18632# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18633# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18634# trailing colons and then remove the whole line if VPATH becomes empty 18635# (actually we leave an empty line to preserve line numbers). 18636if test "x$srcdir" = x.; then 18637 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18638h 18639s/// 18640s/^/:/ 18641s/[ ]*$/:/ 18642s/:\$(srcdir):/:/g 18643s/:\${srcdir}:/:/g 18644s/:@srcdir@:/:/g 18645s/^:*// 18646s/:*$// 18647x 18648s/\(=[ ]*\).*/\1/ 18649G 18650s/\n// 18651s/^[^=]*=[ ]*$// 18652}' 18653fi 18654 18655cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18656fi # test -n "$CONFIG_FILES" 18657 18658# Set up the scripts for CONFIG_HEADERS section. 18659# No need to generate them if there are no CONFIG_HEADERS. 18660# This happens for instance with `./config.status Makefile'. 18661if test -n "$CONFIG_HEADERS"; then 18662cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18663BEGIN { 18664_ACEOF 18665 18666# Transform confdefs.h into an awk script `defines.awk', embedded as 18667# here-document in config.status, that substitutes the proper values into 18668# config.h.in to produce config.h. 18669 18670# Create a delimiter string that does not exist in confdefs.h, to ease 18671# handling of long lines. 18672ac_delim='%!_!# ' 18673for ac_last_try in false false :; do 18674 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18675 if test -z "$ac_tt"; then 18676 break 18677 elif $ac_last_try; then 18678 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18679 else 18680 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18681 fi 18682done 18683 18684# For the awk script, D is an array of macro values keyed by name, 18685# likewise P contains macro parameters if any. Preserve backslash 18686# newline sequences. 18687 18688ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18689sed -n ' 18690s/.\{148\}/&'"$ac_delim"'/g 18691t rset 18692:rset 18693s/^[ ]*#[ ]*define[ ][ ]*/ / 18694t def 18695d 18696:def 18697s/\\$// 18698t bsnl 18699s/["\\]/\\&/g 18700s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18701D["\1"]=" \3"/p 18702s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18703d 18704:bsnl 18705s/["\\]/\\&/g 18706s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18707D["\1"]=" \3\\\\\\n"\\/p 18708t cont 18709s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18710t cont 18711d 18712:cont 18713n 18714s/.\{148\}/&'"$ac_delim"'/g 18715t clear 18716:clear 18717s/\\$// 18718t bsnlc 18719s/["\\]/\\&/g; s/^/"/; s/$/"/p 18720d 18721:bsnlc 18722s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18723b cont 18724' <confdefs.h | sed ' 18725s/'"$ac_delim"'/"\\\ 18726"/g' >>$CONFIG_STATUS || ac_write_fail=1 18727 18728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18729 for (key in D) D_is_set[key] = 1 18730 FS = "" 18731} 18732/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18733 line = \$ 0 18734 split(line, arg, " ") 18735 if (arg[1] == "#") { 18736 defundef = arg[2] 18737 mac1 = arg[3] 18738 } else { 18739 defundef = substr(arg[1], 2) 18740 mac1 = arg[2] 18741 } 18742 split(mac1, mac2, "(") #) 18743 macro = mac2[1] 18744 prefix = substr(line, 1, index(line, defundef) - 1) 18745 if (D_is_set[macro]) { 18746 # Preserve the white space surrounding the "#". 18747 print prefix "define", macro P[macro] D[macro] 18748 next 18749 } else { 18750 # Replace #undef with comments. This is necessary, for example, 18751 # in the case of _POSIX_SOURCE, which is predefined and required 18752 # on some systems where configure will not decide to define it. 18753 if (defundef == "undef") { 18754 print "/*", prefix defundef, macro, "*/" 18755 next 18756 } 18757 } 18758} 18759{ print } 18760_ACAWK 18761_ACEOF 18762cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18763 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18764fi # test -n "$CONFIG_HEADERS" 18765 18766 18767eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 18768shift 18769for ac_tag 18770do 18771 case $ac_tag in 18772 :[FHLC]) ac_mode=$ac_tag; continue;; 18773 esac 18774 case $ac_mode$ac_tag in 18775 :[FHL]*:*);; 18776 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18777 :[FH]-) ac_tag=-:-;; 18778 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18779 esac 18780 ac_save_IFS=$IFS 18781 IFS=: 18782 set x $ac_tag 18783 IFS=$ac_save_IFS 18784 shift 18785 ac_file=$1 18786 shift 18787 18788 case $ac_mode in 18789 :L) ac_source=$1;; 18790 :[FH]) 18791 ac_file_inputs= 18792 for ac_f 18793 do 18794 case $ac_f in 18795 -) ac_f="$ac_tmp/stdin";; 18796 *) # Look for the file first in the build tree, then in the source tree 18797 # (if the path is not absolute). The absolute path cannot be DOS-style, 18798 # because $ac_f cannot contain `:'. 18799 test -f "$ac_f" || 18800 case $ac_f in 18801 [\\/$]*) false;; 18802 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18803 esac || 18804 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18805 esac 18806 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18807 as_fn_append ac_file_inputs " '$ac_f'" 18808 done 18809 18810 # Let's still pretend it is `configure' which instantiates (i.e., don't 18811 # use $as_me), people would be surprised to read: 18812 # /* config.h. Generated by config.status. */ 18813 configure_input='Generated from '` 18814 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18815 `' by configure.' 18816 if test x"$ac_file" != x-; then 18817 configure_input="$ac_file. $configure_input" 18818 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18819$as_echo "$as_me: creating $ac_file" >&6;} 18820 fi 18821 # Neutralize special characters interpreted by sed in replacement strings. 18822 case $configure_input in #( 18823 *\&* | *\|* | *\\* ) 18824 ac_sed_conf_input=`$as_echo "$configure_input" | 18825 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18826 *) ac_sed_conf_input=$configure_input;; 18827 esac 18828 18829 case $ac_tag in 18830 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18832 esac 18833 ;; 18834 esac 18835 18836 ac_dir=`$as_dirname -- "$ac_file" || 18837$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18838 X"$ac_file" : 'X\(//\)[^/]' \| \ 18839 X"$ac_file" : 'X\(//\)$' \| \ 18840 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18841$as_echo X"$ac_file" | 18842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18843 s//\1/ 18844 q 18845 } 18846 /^X\(\/\/\)[^/].*/{ 18847 s//\1/ 18848 q 18849 } 18850 /^X\(\/\/\)$/{ 18851 s//\1/ 18852 q 18853 } 18854 /^X\(\/\).*/{ 18855 s//\1/ 18856 q 18857 } 18858 s/.*/./; q'` 18859 as_dir="$ac_dir"; as_fn_mkdir_p 18860 ac_builddir=. 18861 18862case "$ac_dir" in 18863.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18864*) 18865 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18866 # A ".." for each directory in $ac_dir_suffix. 18867 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18868 case $ac_top_builddir_sub in 18869 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18870 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18871 esac ;; 18872esac 18873ac_abs_top_builddir=$ac_pwd 18874ac_abs_builddir=$ac_pwd$ac_dir_suffix 18875# for backward compatibility: 18876ac_top_builddir=$ac_top_build_prefix 18877 18878case $srcdir in 18879 .) # We are building in place. 18880 ac_srcdir=. 18881 ac_top_srcdir=$ac_top_builddir_sub 18882 ac_abs_top_srcdir=$ac_pwd ;; 18883 [\\/]* | ?:[\\/]* ) # Absolute name. 18884 ac_srcdir=$srcdir$ac_dir_suffix; 18885 ac_top_srcdir=$srcdir 18886 ac_abs_top_srcdir=$srcdir ;; 18887 *) # Relative name. 18888 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18889 ac_top_srcdir=$ac_top_build_prefix$srcdir 18890 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18891esac 18892ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18893 18894 18895 case $ac_mode in 18896 :F) 18897 # 18898 # CONFIG_FILE 18899 # 18900 18901 case $INSTALL in 18902 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18903 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18904 esac 18905 ac_MKDIR_P=$MKDIR_P 18906 case $MKDIR_P in 18907 [\\/$]* | ?:[\\/]* ) ;; 18908 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18909 esac 18910_ACEOF 18911 18912cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18913# If the template does not know about datarootdir, expand it. 18914# FIXME: This hack should be removed a few years after 2.60. 18915ac_datarootdir_hack=; ac_datarootdir_seen= 18916ac_sed_dataroot=' 18917/datarootdir/ { 18918 p 18919 q 18920} 18921/@datadir@/p 18922/@docdir@/p 18923/@infodir@/p 18924/@localedir@/p 18925/@mandir@/p' 18926case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18927*datarootdir*) ac_datarootdir_seen=yes;; 18928*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18930$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18931_ACEOF 18932cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18933 ac_datarootdir_hack=' 18934 s&@datadir@&$datadir&g 18935 s&@docdir@&$docdir&g 18936 s&@infodir@&$infodir&g 18937 s&@localedir@&$localedir&g 18938 s&@mandir@&$mandir&g 18939 s&\\\${datarootdir}&$datarootdir&g' ;; 18940esac 18941_ACEOF 18942 18943# Neutralize VPATH when `$srcdir' = `.'. 18944# Shell code in configure.ac might set extrasub. 18945# FIXME: do we really want to maintain this feature? 18946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18947ac_sed_extra="$ac_vpsub 18948$extrasub 18949_ACEOF 18950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18951:t 18952/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18953s|@configure_input@|$ac_sed_conf_input|;t t 18954s&@top_builddir@&$ac_top_builddir_sub&;t t 18955s&@top_build_prefix@&$ac_top_build_prefix&;t t 18956s&@srcdir@&$ac_srcdir&;t t 18957s&@abs_srcdir@&$ac_abs_srcdir&;t t 18958s&@top_srcdir@&$ac_top_srcdir&;t t 18959s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18960s&@builddir@&$ac_builddir&;t t 18961s&@abs_builddir@&$ac_abs_builddir&;t t 18962s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18963s&@INSTALL@&$ac_INSTALL&;t t 18964s&@MKDIR_P@&$ac_MKDIR_P&;t t 18965$ac_datarootdir_hack 18966" 18967eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18968 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18969 18970test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18971 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18972 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18973 "$ac_tmp/out"`; test -z "$ac_out"; } && 18974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18975which seems to be undefined. Please make sure it is defined" >&5 18976$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18977which seems to be undefined. Please make sure it is defined" >&2;} 18978 18979 rm -f "$ac_tmp/stdin" 18980 case $ac_file in 18981 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18982 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18983 esac \ 18984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18985 ;; 18986 :H) 18987 # 18988 # CONFIG_HEADER 18989 # 18990 if test x"$ac_file" != x-; then 18991 { 18992 $as_echo "/* $configure_input */" \ 18993 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18994 } >"$ac_tmp/config.h" \ 18995 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18996 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18997 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18998$as_echo "$as_me: $ac_file is unchanged" >&6;} 18999 else 19000 rm -f "$ac_file" 19001 mv "$ac_tmp/config.h" "$ac_file" \ 19002 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19003 fi 19004 else 19005 $as_echo "/* $configure_input */" \ 19006 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 19007 || as_fn_error $? "could not create -" "$LINENO" 5 19008 fi 19009 ;; 19010 19011 19012 esac 19013 19014 19015 case $ac_file$ac_mode in 19016 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; 19017 19018 esac 19019done # for ac_tag 19020 19021 19022as_fn_exit 0 19023_ACEOF 19024ac_clean_files=$ac_clean_files_save 19025 19026test $ac_write_fail = 0 || 19027 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 19028 19029 19030# configure is writing to config.log, and then calls config.status. 19031# config.status does its own redirection, appending to config.log. 19032# Unfortunately, on DOS this fails, as config.log is still kept open 19033# by configure, so config.status won't be able to write to it; its 19034# output is simply discarded. So we exec the FD to /dev/null, 19035# effectively closing config.log, so it can be properly (re)opened and 19036# appended to by config.status. When coming back to configure, we 19037# need to make the FD available again. 19038if test "$no_create" != yes; then 19039 ac_cs_success=: 19040 ac_config_status_args= 19041 test "$silent" = yes && 19042 ac_config_status_args="$ac_config_status_args --quiet" 19043 exec 5>/dev/null 19044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 19045 exec 5>>config.log 19046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 19047 # would make configure fail if this is the last instruction. 19048 $ac_cs_success || as_fn_exit 1 19049fi 19050if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 19051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 19052$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 19053fi 19054 19055 19056echo "creating Modules/Setup.local" >&6 19057if test ! -f Modules/Setup.local 19058then 19059 echo "# Edit this file for local setup changes" >Modules/Setup.local 19060fi 19061 19062echo "creating Makefile" >&6 19063$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 19064 -s Modules \ 19065 Modules/Setup.local $srcdir/Modules/Setup 19066mv config.c Modules 19067 19068if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then 19069 echo "" >&6 19070 echo "" >&6 19071 echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6 19072 echo "please run ./configure --enable-optimizations" >&6 19073 echo "" >&6 19074 echo "" >&6 19075fi 19076 19077