1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for python 3.8. 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.8' 584PACKAGE_STRING='python 3.8' 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 634LIBPYTHON 635EXT_SUFFIX 636ALT_SOABI 637SOABI 638LIBC 639LIBM 640HAVE_GETHOSTBYNAME 641HAVE_GETHOSTBYNAME_R 642HAVE_GETHOSTBYNAME_R_3_ARG 643HAVE_GETHOSTBYNAME_R_5_ARG 644HAVE_GETHOSTBYNAME_R_6_ARG 645LIBOBJS 646TRUE 647MACHDEP_OBJS 648DYNLOADFILE 649DLINCLDIR 650DTRACE_OBJS 651DTRACE_HEADERS 652DFLAGS 653DTRACE 654TCLTK_LIBS 655TCLTK_INCLUDES 656LIBFFI_INCLUDEDIR 657PKG_CONFIG_LIBDIR 658PKG_CONFIG_PATH 659PKG_CONFIG 660SHLIBS 661CFLAGSFORSHARED 662LINKFORSHARED 663CCSHARED 664BLDSHARED 665LDCXXSHARED 666LDSHARED 667SHLIB_SUFFIX 668LIBTOOL_CRUFT 669OTHER_LIBTOOL_OPT 670UNIVERSAL_ARCH_FLAGS 671LDFLAGS_NODIST 672CFLAGS_NODIST 673BASECFLAGS 674CFLAGS_ALIASING 675OPT 676LLVM_PROF_FOUND 677LLVM_PROFDATA 678LLVM_PROF_ERR 679LLVM_PROF_FILE 680LLVM_PROF_MERGER 681PGO_PROF_USE_FLAG 682PGO_PROF_GEN_FLAG 683LLVM_AR_FOUND 684LLVM_AR 685PROFILE_TASK 686DEF_MAKE_RULE 687DEF_MAKE_ALL_RULE 688ABIFLAGS 689LN 690MKDIR_P 691INSTALL_DATA 692INSTALL_SCRIPT 693INSTALL_PROGRAM 694ac_ct_READELF 695READELF 696ARFLAGS 697ac_ct_AR 698AR 699GNULD 700LINKCC 701LDVERSION 702RUNSHARED 703INSTSONAME 704LDLIBRARYDIR 705PY3LIBRARY 706BLDLIBRARY 707DLLLIBRARY 708LDLIBRARY 709LIBRARY 710BUILDEXEEXT 711EGREP 712NO_AS_NEEDED 713MULTIARCH_CPPFLAGS 714PLATFORM_TRIPLET 715MULTIARCH 716ac_ct_CXX 717MAINCC 718CXX 719SED 720GREP 721CPP 722OBJEXT 723EXEEXT 724ac_ct_CC 725CPPFLAGS 726LDFLAGS 727CFLAGS 728CC 729EXPORT_MACOSX_DEPLOYMENT_TARGET 730CONFIGURE_MACOSX_DEPLOYMENT_TARGET 731_PYTHON_HOST_PLATFORM 732MACHDEP 733FRAMEWORKINSTALLAPPSPREFIX 734FRAMEWORKUNIXTOOLSPREFIX 735FRAMEWORKPYTHONW 736FRAMEWORKALTINSTALLLAST 737FRAMEWORKALTINSTALLFIRST 738FRAMEWORKINSTALLLAST 739FRAMEWORKINSTALLFIRST 740PYTHONFRAMEWORKINSTALLDIR 741PYTHONFRAMEWORKPREFIX 742PYTHONFRAMEWORKDIR 743PYTHONFRAMEWORKIDENTIFIER 744PYTHONFRAMEWORK 745LIPO_32BIT_FLAGS 746ARCH_RUN_32BIT 747UNIVERSALSDK 748CONFIG_ARGS 749SOVERSION 750VERSION 751PYTHON_FOR_BUILD 752PYTHON_FOR_REGEN 753host_os 754host_vendor 755host_cpu 756host 757build_os 758build_vendor 759build_cpu 760build 761HAS_GIT 762GITBRANCH 763GITTAG 764GITVERSION 765BASECPPFLAGS 766target_alias 767host_alias 768build_alias 769LIBS 770ECHO_T 771ECHO_N 772ECHO_C 773DEFS 774mandir 775localedir 776libdir 777psdir 778pdfdir 779dvidir 780htmldir 781infodir 782docdir 783oldincludedir 784includedir 785localstatedir 786sharedstatedir 787sysconfdir 788datadir 789datarootdir 790libexecdir 791sbindir 792bindir 793program_transform_name 794prefix 795exec_prefix 796PACKAGE_URL 797PACKAGE_BUGREPORT 798PACKAGE_STRING 799PACKAGE_VERSION 800PACKAGE_TARNAME 801PACKAGE_NAME 802PATH_SEPARATOR 803SHELL' 804ac_subst_files='' 805ac_user_opts=' 806enable_option_checking 807enable_universalsdk 808with_universal_archs 809with_framework_name 810enable_framework 811with_cxx_main 812with_suffix 813enable_shared 814enable_profiling 815with_pydebug 816with_trace_refs 817with_assertions 818enable_optimizations 819with_lto 820with_hash_algorithm 821with_address_sanitizer 822with_memory_sanitizer 823with_undefined_behavior_sanitizer 824with_libs 825with_system_expat 826with_system_ffi 827with_system_libmpdec 828enable_loadable_sqlite_extensions 829with_tcltk_includes 830with_tcltk_libs 831with_dbmliborder 832enable_ipv6 833with_doc_strings 834with_pymalloc 835with_c_locale_coercion 836with_valgrind 837with_dtrace 838with_libm 839with_libc 840enable_big_digits 841with_computed_gotos 842with_ensurepip 843with_openssl 844with_ssl_default_suites 845' 846 ac_precious_vars='build_alias 847host_alias 848target_alias 849MACHDEP 850CC 851CFLAGS 852LDFLAGS 853LIBS 854CPPFLAGS 855CPP 856PROFILE_TASK 857PKG_CONFIG 858PKG_CONFIG_PATH 859PKG_CONFIG_LIBDIR' 860 861 862# Initialize some variables set by options. 863ac_init_help= 864ac_init_version=false 865ac_unrecognized_opts= 866ac_unrecognized_sep= 867# The variables have the same names as the options, with 868# dashes changed to underlines. 869cache_file=/dev/null 870exec_prefix=NONE 871no_create= 872no_recursion= 873prefix=NONE 874program_prefix=NONE 875program_suffix=NONE 876program_transform_name=s,x,x, 877silent= 878site= 879srcdir= 880verbose= 881x_includes=NONE 882x_libraries=NONE 883 884# Installation directory options. 885# These are left unexpanded so users can "make install exec_prefix=/foo" 886# and all the variables that are supposed to be based on exec_prefix 887# by default will actually change. 888# Use braces instead of parens because sh, perl, etc. also accept them. 889# (The list follows the same order as the GNU Coding Standards.) 890bindir='${exec_prefix}/bin' 891sbindir='${exec_prefix}/sbin' 892libexecdir='${exec_prefix}/libexec' 893datarootdir='${prefix}/share' 894datadir='${datarootdir}' 895sysconfdir='${prefix}/etc' 896sharedstatedir='${prefix}/com' 897localstatedir='${prefix}/var' 898includedir='${prefix}/include' 899oldincludedir='/usr/include' 900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 901infodir='${datarootdir}/info' 902htmldir='${docdir}' 903dvidir='${docdir}' 904pdfdir='${docdir}' 905psdir='${docdir}' 906libdir='${exec_prefix}/lib' 907localedir='${datarootdir}/locale' 908mandir='${datarootdir}/man' 909 910ac_prev= 911ac_dashdash= 912for ac_option 913do 914 # If the previous option needs an argument, assign it. 915 if test -n "$ac_prev"; then 916 eval $ac_prev=\$ac_option 917 ac_prev= 918 continue 919 fi 920 921 case $ac_option in 922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 923 *=) ac_optarg= ;; 924 *) ac_optarg=yes ;; 925 esac 926 927 # Accept the important Cygnus configure options, so we can diagnose typos. 928 929 case $ac_dashdash$ac_option in 930 --) 931 ac_dashdash=yes ;; 932 933 -bindir | --bindir | --bindi | --bind | --bin | --bi) 934 ac_prev=bindir ;; 935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 936 bindir=$ac_optarg ;; 937 938 -build | --build | --buil | --bui | --bu) 939 ac_prev=build_alias ;; 940 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 941 build_alias=$ac_optarg ;; 942 943 -cache-file | --cache-file | --cache-fil | --cache-fi \ 944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 945 ac_prev=cache_file ;; 946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 948 cache_file=$ac_optarg ;; 949 950 --config-cache | -C) 951 cache_file=config.cache ;; 952 953 -datadir | --datadir | --datadi | --datad) 954 ac_prev=datadir ;; 955 -datadir=* | --datadir=* | --datadi=* | --datad=*) 956 datadir=$ac_optarg ;; 957 958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 959 | --dataroo | --dataro | --datar) 960 ac_prev=datarootdir ;; 961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 963 datarootdir=$ac_optarg ;; 964 965 -disable-* | --disable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974"enable_$ac_useropt" 975"*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=no ;; 980 981 -docdir | --docdir | --docdi | --doc | --do) 982 ac_prev=docdir ;; 983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 984 docdir=$ac_optarg ;; 985 986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 987 ac_prev=dvidir ;; 988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 989 dvidir=$ac_optarg ;; 990 991 -enable-* | --enable-*) 992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 993 # Reject names that are not valid shell variable names. 994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 995 as_fn_error $? "invalid feature name: $ac_useropt" 996 ac_useropt_orig=$ac_useropt 997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 998 case $ac_user_opts in 999 *" 1000"enable_$ac_useropt" 1001"*) ;; 1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1003 ac_unrecognized_sep=', ';; 1004 esac 1005 eval enable_$ac_useropt=\$ac_optarg ;; 1006 1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1009 | --exec | --exe | --ex) 1010 ac_prev=exec_prefix ;; 1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1013 | --exec=* | --exe=* | --ex=*) 1014 exec_prefix=$ac_optarg ;; 1015 1016 -gas | --gas | --ga | --g) 1017 # Obsolete; use --with-gas. 1018 with_gas=yes ;; 1019 1020 -help | --help | --hel | --he | -h) 1021 ac_init_help=long ;; 1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1023 ac_init_help=recursive ;; 1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1025 ac_init_help=short ;; 1026 1027 -host | --host | --hos | --ho) 1028 ac_prev=host_alias ;; 1029 -host=* | --host=* | --hos=* | --ho=*) 1030 host_alias=$ac_optarg ;; 1031 1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1033 ac_prev=htmldir ;; 1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1035 | --ht=*) 1036 htmldir=$ac_optarg ;; 1037 1038 -includedir | --includedir | --includedi | --included | --include \ 1039 | --includ | --inclu | --incl | --inc) 1040 ac_prev=includedir ;; 1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1042 | --includ=* | --inclu=* | --incl=* | --inc=*) 1043 includedir=$ac_optarg ;; 1044 1045 -infodir | --infodir | --infodi | --infod | --info | --inf) 1046 ac_prev=infodir ;; 1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1048 infodir=$ac_optarg ;; 1049 1050 -libdir | --libdir | --libdi | --libd) 1051 ac_prev=libdir ;; 1052 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1053 libdir=$ac_optarg ;; 1054 1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1056 | --libexe | --libex | --libe) 1057 ac_prev=libexecdir ;; 1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1059 | --libexe=* | --libex=* | --libe=*) 1060 libexecdir=$ac_optarg ;; 1061 1062 -localedir | --localedir | --localedi | --localed | --locale) 1063 ac_prev=localedir ;; 1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1065 localedir=$ac_optarg ;; 1066 1067 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1068 | --localstate | --localstat | --localsta | --localst | --locals) 1069 ac_prev=localstatedir ;; 1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1072 localstatedir=$ac_optarg ;; 1073 1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1075 ac_prev=mandir ;; 1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1077 mandir=$ac_optarg ;; 1078 1079 -nfp | --nfp | --nf) 1080 # Obsolete; use --without-fp. 1081 with_fp=no ;; 1082 1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1084 | --no-cr | --no-c | -n) 1085 no_create=yes ;; 1086 1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1089 no_recursion=yes ;; 1090 1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1093 | --oldin | --oldi | --old | --ol | --o) 1094 ac_prev=oldincludedir ;; 1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1098 oldincludedir=$ac_optarg ;; 1099 1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1101 ac_prev=prefix ;; 1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1103 prefix=$ac_optarg ;; 1104 1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1106 | --program-pre | --program-pr | --program-p) 1107 ac_prev=program_prefix ;; 1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1110 program_prefix=$ac_optarg ;; 1111 1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1113 | --program-suf | --program-su | --program-s) 1114 ac_prev=program_suffix ;; 1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1117 program_suffix=$ac_optarg ;; 1118 1119 -program-transform-name | --program-transform-name \ 1120 | --program-transform-nam | --program-transform-na \ 1121 | --program-transform-n | --program-transform- \ 1122 | --program-transform | --program-transfor \ 1123 | --program-transfo | --program-transf \ 1124 | --program-trans | --program-tran \ 1125 | --progr-tra | --program-tr | --program-t) 1126 ac_prev=program_transform_name ;; 1127 -program-transform-name=* | --program-transform-name=* \ 1128 | --program-transform-nam=* | --program-transform-na=* \ 1129 | --program-transform-n=* | --program-transform-=* \ 1130 | --program-transform=* | --program-transfor=* \ 1131 | --program-transfo=* | --program-transf=* \ 1132 | --program-trans=* | --program-tran=* \ 1133 | --progr-tra=* | --program-tr=* | --program-t=*) 1134 program_transform_name=$ac_optarg ;; 1135 1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1137 ac_prev=pdfdir ;; 1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1139 pdfdir=$ac_optarg ;; 1140 1141 -psdir | --psdir | --psdi | --psd | --ps) 1142 ac_prev=psdir ;; 1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1144 psdir=$ac_optarg ;; 1145 1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1147 | -silent | --silent | --silen | --sile | --sil) 1148 silent=yes ;; 1149 1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1151 ac_prev=sbindir ;; 1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1153 | --sbi=* | --sb=*) 1154 sbindir=$ac_optarg ;; 1155 1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1158 | --sharedst | --shareds | --shared | --share | --shar \ 1159 | --sha | --sh) 1160 ac_prev=sharedstatedir ;; 1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1164 | --sha=* | --sh=*) 1165 sharedstatedir=$ac_optarg ;; 1166 1167 -site | --site | --sit) 1168 ac_prev=site ;; 1169 -site=* | --site=* | --sit=*) 1170 site=$ac_optarg ;; 1171 1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1173 ac_prev=srcdir ;; 1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1175 srcdir=$ac_optarg ;; 1176 1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1178 | --syscon | --sysco | --sysc | --sys | --sy) 1179 ac_prev=sysconfdir ;; 1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1182 sysconfdir=$ac_optarg ;; 1183 1184 -target | --target | --targe | --targ | --tar | --ta | --t) 1185 ac_prev=target_alias ;; 1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1187 target_alias=$ac_optarg ;; 1188 1189 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1190 verbose=yes ;; 1191 1192 -version | --version | --versio | --versi | --vers | -V) 1193 ac_init_version=: ;; 1194 1195 -with-* | --with-*) 1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1197 # Reject names that are not valid shell variable names. 1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1199 as_fn_error $? "invalid package name: $ac_useropt" 1200 ac_useropt_orig=$ac_useropt 1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1202 case $ac_user_opts in 1203 *" 1204"with_$ac_useropt" 1205"*) ;; 1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1207 ac_unrecognized_sep=', ';; 1208 esac 1209 eval with_$ac_useropt=\$ac_optarg ;; 1210 1211 -without-* | --without-*) 1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1213 # Reject names that are not valid shell variable names. 1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1215 as_fn_error $? "invalid package name: $ac_useropt" 1216 ac_useropt_orig=$ac_useropt 1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1218 case $ac_user_opts in 1219 *" 1220"with_$ac_useropt" 1221"*) ;; 1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1223 ac_unrecognized_sep=', ';; 1224 esac 1225 eval with_$ac_useropt=no ;; 1226 1227 --x) 1228 # Obsolete; use --with-x. 1229 with_x=yes ;; 1230 1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1232 | --x-incl | --x-inc | --x-in | --x-i) 1233 ac_prev=x_includes ;; 1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1236 x_includes=$ac_optarg ;; 1237 1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1240 ac_prev=x_libraries ;; 1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1243 x_libraries=$ac_optarg ;; 1244 1245 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1246Try \`$0 --help' for more information" 1247 ;; 1248 1249 *=*) 1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1251 # Reject names that are not valid shell variable names. 1252 case $ac_envvar in #( 1253 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1255 esac 1256 eval $ac_envvar=\$ac_optarg 1257 export $ac_envvar ;; 1258 1259 *) 1260 # FIXME: should be removed in autoconf 3.0. 1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1265 ;; 1266 1267 esac 1268done 1269 1270if test -n "$ac_prev"; then 1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1272 as_fn_error $? "missing argument to $ac_option" 1273fi 1274 1275if test -n "$ac_unrecognized_opts"; then 1276 case $enable_option_checking in 1277 no) ;; 1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1280 esac 1281fi 1282 1283# Check all directory arguments for consistency. 1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1285 datadir sysconfdir sharedstatedir localstatedir includedir \ 1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1287 libdir localedir mandir 1288do 1289 eval ac_val=\$$ac_var 1290 # Remove trailing slashes. 1291 case $ac_val in 1292 */ ) 1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1294 eval $ac_var=\$ac_val;; 1295 esac 1296 # Be sure to have absolute directory names. 1297 case $ac_val in 1298 [\\/$]* | ?:[\\/]* ) continue;; 1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1300 esac 1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1302done 1303 1304# There might be people who depend on the old broken behavior: `$host' 1305# used to hold the argument of --host etc. 1306# FIXME: To remove some day. 1307build=$build_alias 1308host=$host_alias 1309target=$target_alias 1310 1311# FIXME: To remove some day. 1312if test "x$host_alias" != x; then 1313 if test "x$build_alias" = x; then 1314 cross_compiling=maybe 1315 elif test "x$build_alias" != "x$host_alias"; then 1316 cross_compiling=yes 1317 fi 1318fi 1319 1320ac_tool_prefix= 1321test -n "$host_alias" && ac_tool_prefix=$host_alias- 1322 1323test "$silent" = yes && exec 6>/dev/null 1324 1325 1326ac_pwd=`pwd` && test -n "$ac_pwd" && 1327ac_ls_di=`ls -di .` && 1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1329 as_fn_error $? "working directory cannot be determined" 1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1331 as_fn_error $? "pwd does not report name of working directory" 1332 1333 1334# Find the source files, if location was not specified. 1335if test -z "$srcdir"; then 1336 ac_srcdir_defaulted=yes 1337 # Try the directory containing this script, then the parent directory. 1338 ac_confdir=`$as_dirname -- "$as_myself" || 1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1340 X"$as_myself" : 'X\(//\)[^/]' \| \ 1341 X"$as_myself" : 'X\(//\)$' \| \ 1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1343$as_echo X"$as_myself" | 1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1345 s//\1/ 1346 q 1347 } 1348 /^X\(\/\/\)[^/].*/{ 1349 s//\1/ 1350 q 1351 } 1352 /^X\(\/\/\)$/{ 1353 s//\1/ 1354 q 1355 } 1356 /^X\(\/\).*/{ 1357 s//\1/ 1358 q 1359 } 1360 s/.*/./; q'` 1361 srcdir=$ac_confdir 1362 if test ! -r "$srcdir/$ac_unique_file"; then 1363 srcdir=.. 1364 fi 1365else 1366 ac_srcdir_defaulted=no 1367fi 1368if test ! -r "$srcdir/$ac_unique_file"; then 1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1371fi 1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1373ac_abs_confdir=`( 1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1375 pwd)` 1376# When building in place, set srcdir=. 1377if test "$ac_abs_confdir" = "$ac_pwd"; then 1378 srcdir=. 1379fi 1380# Remove unnecessary trailing slashes from srcdir. 1381# Double slashes in file names in object file debugging info 1382# mess up M-x gdb in Emacs. 1383case $srcdir in 1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1385esac 1386for ac_var in $ac_precious_vars; do 1387 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1388 eval ac_env_${ac_var}_value=\$${ac_var} 1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1390 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1391done 1392 1393# 1394# Report the --help message. 1395# 1396if test "$ac_init_help" = "long"; then 1397 # Omit some internal or obsolete options to make the list less imposing. 1398 # This message is too long to be a string in the A/UX 3.1 sh. 1399 cat <<_ACEOF 1400\`configure' configures python 3.8 to adapt to many kinds of systems. 1401 1402Usage: $0 [OPTION]... [VAR=VALUE]... 1403 1404To assign environment variables (e.g., CC, CFLAGS...), specify them as 1405VAR=VALUE. See below for descriptions of some of the useful variables. 1406 1407Defaults for the options are specified in brackets. 1408 1409Configuration: 1410 -h, --help display this help and exit 1411 --help=short display options specific to this package 1412 --help=recursive display the short help of all the included packages 1413 -V, --version display version information and exit 1414 -q, --quiet, --silent do not print \`checking ...' messages 1415 --cache-file=FILE cache test results in FILE [disabled] 1416 -C, --config-cache alias for \`--cache-file=config.cache' 1417 -n, --no-create do not create output files 1418 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1419 1420Installation directories: 1421 --prefix=PREFIX install architecture-independent files in PREFIX 1422 [$ac_default_prefix] 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1424 [PREFIX] 1425 1426By default, \`make install' will install all the files in 1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1428an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1429for instance \`--prefix=\$HOME'. 1430 1431For better control, use the options below. 1432 1433Fine tuning of the installation directories: 1434 --bindir=DIR user executables [EPREFIX/bin] 1435 --sbindir=DIR system admin executables [EPREFIX/sbin] 1436 --libexecdir=DIR program executables [EPREFIX/libexec] 1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1440 --libdir=DIR object code libraries [EPREFIX/lib] 1441 --includedir=DIR C header files [PREFIX/include] 1442 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1445 --infodir=DIR info documentation [DATAROOTDIR/info] 1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1447 --mandir=DIR man documentation [DATAROOTDIR/man] 1448 --docdir=DIR documentation root [DATAROOTDIR/doc/python] 1449 --htmldir=DIR html documentation [DOCDIR] 1450 --dvidir=DIR dvi documentation [DOCDIR] 1451 --pdfdir=DIR pdf documentation [DOCDIR] 1452 --psdir=DIR ps documentation [DOCDIR] 1453_ACEOF 1454 1455 cat <<\_ACEOF 1456 1457System types: 1458 --build=BUILD configure for building on BUILD [guessed] 1459 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1460_ACEOF 1461fi 1462 1463if test -n "$ac_init_help"; then 1464 case $ac_init_help in 1465 short | recursive ) echo "Configuration of python 3.8:";; 1466 esac 1467 cat <<\_ACEOF 1468 1469Optional Features: 1470 --disable-option-checking ignore unrecognized --enable/--with options 1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1473 --enable-universalsdk[=SDKDIR] 1474 Build fat binary against Mac OS X SDK 1475 --enable-framework[=INSTALLDIR] 1476 Build (MacOSX|Darwin) framework 1477 --enable-shared disable/enable building shared python library 1478 --enable-profiling enable C-level code profiling 1479 --enable-optimizations Enable expensive, stable optimizations (PGO, etc). 1480 Disabled by default. 1481 --enable-loadable-sqlite-extensions 1482 support loadable extensions in _sqlite module 1483 --enable-ipv6 Enable ipv6 (with ipv4) support 1484 --disable-ipv6 Disable ipv6 support 1485 --enable-big-digits[=BITS] 1486 use big digits for Python longs [[BITS=30]] 1487 1488Optional Packages: 1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1491 --with-universal-archs=ARCH 1492 select architectures for universal build ("32-bit", 1493 "64-bit", "3-way", "intel", "intel-32", "intel-64", 1494 or "all") 1495 --with-framework-name=FRAMEWORK 1496 specify an alternate name of the framework built 1497 with --enable-framework 1498 --with-cxx-main=<compiler> 1499 compile main() and link python executable with C++ 1500 compiler 1501 --with-suffix=.exe set executable suffix 1502 --with-pydebug build with Py_DEBUG defined 1503 --with-trace-refs enable tracing references for debugging purpose 1504 --with-assertions build with C assertions enabled 1505 --with-lto Enable Link Time Optimization in any build. Disabled 1506 by default. 1507 --with-hash-algorithm=[fnv|siphash24] 1508 select hash algorithm 1509 --with-address-sanitizer 1510 enable AddressSanitizer (asan) 1511 --with-memory-sanitizer enable MemorySanitizer (msan) 1512 --with-undefined-behavior-sanitizer 1513 enable UndefinedBehaviorSanitizer (ubsan) 1514 --with-libs='lib1 ...' link against additional libs 1515 --with-system-expat build pyexpat module using an installed expat 1516 library 1517 --with-system-ffi build _ctypes module using an installed ffi library 1518 --with-system-libmpdec build _decimal module using an installed libmpdec 1519 library 1520 --with-tcltk-includes='-I...' 1521 override search for Tcl and Tk include files 1522 --with-tcltk-libs='-L...' 1523 override search for Tcl and Tk libs 1524 --with-dbmliborder=db1:db2:... 1525 order to check db backends for dbm. Valid value is a 1526 colon separated string with the backend names 1527 `ndbm', `gdbm' and `bdb'. 1528 --with(out)-doc-strings disable/enable documentation strings 1529 --with(out)-pymalloc disable/enable specialized mallocs 1530 --with(out)-c-locale-coercion 1531 disable/enable C locale coercion to a UTF-8 based 1532 locale 1533 --with-valgrind Enable Valgrind support 1534 --with(out)-dtrace disable/enable DTrace support 1535 --with-libm=STRING math library 1536 --with-libc=STRING C library 1537 --with(out)-computed-gotos 1538 Use computed gotos in evaluation loop (enabled by 1539 default on supported compilers) 1540 --with(out)-ensurepip=[=upgrade] 1541 "install" or "upgrade" using bundled pip 1542 --with-openssl=DIR root of the OpenSSL directory 1543 --with-ssl-default-suites=[python|openssl|STRING] 1544 Override default cipher suites string, python: use 1545 Python's preferred selection (default), openssl: 1546 leave OpenSSL's defaults untouched, STRING: use a 1547 custom string, PROTOCOL_SSLv2 ignores the setting 1548 1549Some influential environment variables: 1550 MACHDEP name for machine-dependent library files 1551 CC C compiler command 1552 CFLAGS C compiler flags 1553 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1554 nonstandard directory <lib dir> 1555 LIBS libraries to pass to the linker, e.g. -l<library> 1556 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1557 you have headers in a nonstandard directory <include dir> 1558 CPP C preprocessor 1559 PROFILE_TASK 1560 Python args for PGO generation task 1561 PKG_CONFIG path to pkg-config utility 1562 PKG_CONFIG_PATH 1563 directories to add to pkg-config's search path 1564 PKG_CONFIG_LIBDIR 1565 path overriding pkg-config's built-in search path 1566 1567Use these variables to override the choices made by `configure' or to help 1568it to find libraries and programs with nonstandard names/locations. 1569 1570Report bugs to <https://bugs.python.org/>. 1571_ACEOF 1572ac_status=$? 1573fi 1574 1575if test "$ac_init_help" = "recursive"; then 1576 # If there are subdirs, report their specific --help. 1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1578 test -d "$ac_dir" || 1579 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1580 continue 1581 ac_builddir=. 1582 1583case "$ac_dir" in 1584.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1585*) 1586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1587 # A ".." for each directory in $ac_dir_suffix. 1588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1589 case $ac_top_builddir_sub in 1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1592 esac ;; 1593esac 1594ac_abs_top_builddir=$ac_pwd 1595ac_abs_builddir=$ac_pwd$ac_dir_suffix 1596# for backward compatibility: 1597ac_top_builddir=$ac_top_build_prefix 1598 1599case $srcdir in 1600 .) # We are building in place. 1601 ac_srcdir=. 1602 ac_top_srcdir=$ac_top_builddir_sub 1603 ac_abs_top_srcdir=$ac_pwd ;; 1604 [\\/]* | ?:[\\/]* ) # Absolute name. 1605 ac_srcdir=$srcdir$ac_dir_suffix; 1606 ac_top_srcdir=$srcdir 1607 ac_abs_top_srcdir=$srcdir ;; 1608 *) # Relative name. 1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1610 ac_top_srcdir=$ac_top_build_prefix$srcdir 1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1612esac 1613ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1614 1615 cd "$ac_dir" || { ac_status=$?; continue; } 1616 # Check for guested configure. 1617 if test -f "$ac_srcdir/configure.gnu"; then 1618 echo && 1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1620 elif test -f "$ac_srcdir/configure"; then 1621 echo && 1622 $SHELL "$ac_srcdir/configure" --help=recursive 1623 else 1624 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1625 fi || ac_status=$? 1626 cd "$ac_pwd" || { ac_status=$?; break; } 1627 done 1628fi 1629 1630test -n "$ac_init_help" && exit $ac_status 1631if $ac_init_version; then 1632 cat <<\_ACEOF 1633python configure 3.8 1634generated by GNU Autoconf 2.69 1635 1636Copyright (C) 2012 Free Software Foundation, Inc. 1637This configure script is free software; the Free Software Foundation 1638gives unlimited permission to copy, distribute and modify it. 1639_ACEOF 1640 exit 1641fi 1642 1643## ------------------------ ## 1644## Autoconf initialization. ## 1645## ------------------------ ## 1646 1647# ac_fn_c_try_compile LINENO 1648# -------------------------- 1649# Try to compile conftest.$ac_ext, and return whether this succeeded. 1650ac_fn_c_try_compile () 1651{ 1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1653 rm -f conftest.$ac_objext 1654 if { { ac_try="$ac_compile" 1655case "(($ac_try" in 1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1657 *) ac_try_echo=$ac_try;; 1658esac 1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1660$as_echo "$ac_try_echo"; } >&5 1661 (eval "$ac_compile") 2>conftest.err 1662 ac_status=$? 1663 if test -s conftest.err; then 1664 grep -v '^ *+' conftest.err >conftest.er1 1665 cat conftest.er1 >&5 1666 mv -f conftest.er1 conftest.err 1667 fi 1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1669 test $ac_status = 0; } && { 1670 test -z "$ac_c_werror_flag" || 1671 test ! -s conftest.err 1672 } && test -s conftest.$ac_objext; then : 1673 ac_retval=0 1674else 1675 $as_echo "$as_me: failed program was:" >&5 1676sed 's/^/| /' conftest.$ac_ext >&5 1677 1678 ac_retval=1 1679fi 1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1681 as_fn_set_status $ac_retval 1682 1683} # ac_fn_c_try_compile 1684 1685# ac_fn_c_try_cpp LINENO 1686# ---------------------- 1687# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1688ac_fn_c_try_cpp () 1689{ 1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1691 if { { ac_try="$ac_cpp conftest.$ac_ext" 1692case "(($ac_try" in 1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1694 *) ac_try_echo=$ac_try;; 1695esac 1696eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1697$as_echo "$ac_try_echo"; } >&5 1698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1699 ac_status=$? 1700 if test -s conftest.err; then 1701 grep -v '^ *+' conftest.err >conftest.er1 1702 cat conftest.er1 >&5 1703 mv -f conftest.er1 conftest.err 1704 fi 1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1706 test $ac_status = 0; } > conftest.i && { 1707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1708 test ! -s conftest.err 1709 }; then : 1710 ac_retval=0 1711else 1712 $as_echo "$as_me: failed program was:" >&5 1713sed 's/^/| /' conftest.$ac_ext >&5 1714 1715 ac_retval=1 1716fi 1717 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1718 as_fn_set_status $ac_retval 1719 1720} # ac_fn_c_try_cpp 1721 1722# ac_fn_c_try_link LINENO 1723# ----------------------- 1724# Try to link conftest.$ac_ext, and return whether this succeeded. 1725ac_fn_c_try_link () 1726{ 1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1728 rm -f conftest.$ac_objext conftest$ac_exeext 1729 if { { ac_try="$ac_link" 1730case "(($ac_try" in 1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1732 *) ac_try_echo=$ac_try;; 1733esac 1734eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1735$as_echo "$ac_try_echo"; } >&5 1736 (eval "$ac_link") 2>conftest.err 1737 ac_status=$? 1738 if test -s conftest.err; then 1739 grep -v '^ *+' conftest.err >conftest.er1 1740 cat conftest.er1 >&5 1741 mv -f conftest.er1 conftest.err 1742 fi 1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; } && { 1745 test -z "$ac_c_werror_flag" || 1746 test ! -s conftest.err 1747 } && test -s conftest$ac_exeext && { 1748 test "$cross_compiling" = yes || 1749 test -x conftest$ac_exeext 1750 }; then : 1751 ac_retval=0 1752else 1753 $as_echo "$as_me: failed program was:" >&5 1754sed 's/^/| /' conftest.$ac_ext >&5 1755 1756 ac_retval=1 1757fi 1758 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1759 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1760 # interfere with the next link command; also delete a directory that is 1761 # left behind by Apple's compiler. We do this before executing the actions. 1762 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1764 as_fn_set_status $ac_retval 1765 1766} # ac_fn_c_try_link 1767 1768# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1769# ------------------------------------------------------- 1770# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1771# the include files in INCLUDES and setting the cache variable VAR 1772# accordingly. 1773ac_fn_c_check_header_mongrel () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 if eval \${$3+:} false; then : 1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1778$as_echo_n "checking for $2... " >&6; } 1779if eval \${$3+:} false; then : 1780 $as_echo_n "(cached) " >&6 1781fi 1782eval ac_res=\$$3 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1784$as_echo "$ac_res" >&6; } 1785else 1786 # Is the header compilable? 1787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1788$as_echo_n "checking $2 usability... " >&6; } 1789cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1790/* end confdefs.h. */ 1791$4 1792#include <$2> 1793_ACEOF 1794if ac_fn_c_try_compile "$LINENO"; then : 1795 ac_header_compiler=yes 1796else 1797 ac_header_compiler=no 1798fi 1799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1801$as_echo "$ac_header_compiler" >&6; } 1802 1803# Is the header present? 1804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1805$as_echo_n "checking $2 presence... " >&6; } 1806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807/* end confdefs.h. */ 1808#include <$2> 1809_ACEOF 1810if ac_fn_c_try_cpp "$LINENO"; then : 1811 ac_header_preproc=yes 1812else 1813 ac_header_preproc=no 1814fi 1815rm -f conftest.err conftest.i conftest.$ac_ext 1816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1817$as_echo "$ac_header_preproc" >&6; } 1818 1819# So? What about this header? 1820case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1821 yes:no: ) 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1823$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1825$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1826 ;; 1827 no:yes:* ) 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1829$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1831$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1833$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1835$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1837$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1838( $as_echo "## --------------------------------------- ## 1839## Report this to https://bugs.python.org/ ## 1840## --------------------------------------- ##" 1841 ) | sed "s/^/$as_me: WARNING: /" >&2 1842 ;; 1843esac 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1845$as_echo_n "checking for $2... " >&6; } 1846if eval \${$3+:} false; then : 1847 $as_echo_n "(cached) " >&6 1848else 1849 eval "$3=\$ac_header_compiler" 1850fi 1851eval ac_res=\$$3 1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1853$as_echo "$ac_res" >&6; } 1854fi 1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1856 1857} # ac_fn_c_check_header_mongrel 1858 1859# ac_fn_c_try_run LINENO 1860# ---------------------- 1861# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1862# that executables *can* be run. 1863ac_fn_c_try_run () 1864{ 1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1866 if { { ac_try="$ac_link" 1867case "(($ac_try" in 1868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1869 *) ac_try_echo=$ac_try;; 1870esac 1871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1872$as_echo "$ac_try_echo"; } >&5 1873 (eval "$ac_link") 2>&5 1874 ac_status=$? 1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1876 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1877 { { case "(($ac_try" in 1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1879 *) ac_try_echo=$ac_try;; 1880esac 1881eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1882$as_echo "$ac_try_echo"; } >&5 1883 (eval "$ac_try") 2>&5 1884 ac_status=$? 1885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1886 test $ac_status = 0; }; }; then : 1887 ac_retval=0 1888else 1889 $as_echo "$as_me: program exited with status $ac_status" >&5 1890 $as_echo "$as_me: failed program was:" >&5 1891sed 's/^/| /' conftest.$ac_ext >&5 1892 1893 ac_retval=$ac_status 1894fi 1895 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1896 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1897 as_fn_set_status $ac_retval 1898 1899} # ac_fn_c_try_run 1900 1901# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1902# ------------------------------------------------------- 1903# Tests whether HEADER exists and can be compiled using the include files in 1904# INCLUDES, setting the cache variable VAR accordingly. 1905ac_fn_c_check_header_compile () 1906{ 1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1909$as_echo_n "checking for $2... " >&6; } 1910if eval \${$3+:} false; then : 1911 $as_echo_n "(cached) " >&6 1912else 1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1914/* end confdefs.h. */ 1915$4 1916#include <$2> 1917_ACEOF 1918if ac_fn_c_try_compile "$LINENO"; then : 1919 eval "$3=yes" 1920else 1921 eval "$3=no" 1922fi 1923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1924fi 1925eval ac_res=\$$3 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1927$as_echo "$ac_res" >&6; } 1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1929 1930} # ac_fn_c_check_header_compile 1931 1932# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1933# ------------------------------------------- 1934# Tests whether TYPE exists after having included INCLUDES, setting cache 1935# variable VAR accordingly. 1936ac_fn_c_check_type () 1937{ 1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1940$as_echo_n "checking for $2... " >&6; } 1941if eval \${$3+:} false; then : 1942 $as_echo_n "(cached) " >&6 1943else 1944 eval "$3=no" 1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1946/* end confdefs.h. */ 1947$4 1948int 1949main () 1950{ 1951if (sizeof ($2)) 1952 return 0; 1953 ; 1954 return 0; 1955} 1956_ACEOF 1957if ac_fn_c_try_compile "$LINENO"; then : 1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1959/* end confdefs.h. */ 1960$4 1961int 1962main () 1963{ 1964if (sizeof (($2))) 1965 return 0; 1966 ; 1967 return 0; 1968} 1969_ACEOF 1970if ac_fn_c_try_compile "$LINENO"; then : 1971 1972else 1973 eval "$3=yes" 1974fi 1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1976fi 1977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1978fi 1979eval ac_res=\$$3 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1981$as_echo "$ac_res" >&6; } 1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1983 1984} # ac_fn_c_check_type 1985 1986# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1987# -------------------------------------------- 1988# Tries to find the compile-time value of EXPR in a program that includes 1989# INCLUDES, setting VAR accordingly. Returns whether the value could be 1990# computed 1991ac_fn_c_compute_int () 1992{ 1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1994 if test "$cross_compiling" = yes; then 1995 # Depending upon the size, compute the lo and hi bounds. 1996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997/* end confdefs.h. */ 1998$4 1999int 2000main () 2001{ 2002static int test_array [1 - 2 * !(($2) >= 0)]; 2003test_array [0] = 0; 2004return test_array [0]; 2005 2006 ; 2007 return 0; 2008} 2009_ACEOF 2010if ac_fn_c_try_compile "$LINENO"; then : 2011 ac_lo=0 ac_mid=0 2012 while :; do 2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2014/* end confdefs.h. */ 2015$4 2016int 2017main () 2018{ 2019static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2020test_array [0] = 0; 2021return test_array [0]; 2022 2023 ; 2024 return 0; 2025} 2026_ACEOF 2027if ac_fn_c_try_compile "$LINENO"; then : 2028 ac_hi=$ac_mid; break 2029else 2030 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2031 if test $ac_lo -le $ac_mid; then 2032 ac_lo= ac_hi= 2033 break 2034 fi 2035 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2036fi 2037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2038 done 2039else 2040 cat 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_hi=-1 ac_mid=-1 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_lo=$ac_mid; break 2073else 2074 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2075 if test $ac_mid -le $ac_hi; then 2076 ac_lo= ac_hi= 2077 break 2078 fi 2079 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2080fi 2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2082 done 2083else 2084 ac_lo= ac_hi= 2085fi 2086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2087fi 2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2089# Binary search between lo and hi bounds. 2090while test "x$ac_lo" != "x$ac_hi"; do 2091 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2093/* end confdefs.h. */ 2094$4 2095int 2096main () 2097{ 2098static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2099test_array [0] = 0; 2100return test_array [0]; 2101 2102 ; 2103 return 0; 2104} 2105_ACEOF 2106if ac_fn_c_try_compile "$LINENO"; then : 2107 ac_hi=$ac_mid 2108else 2109 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2110fi 2111rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2112done 2113case $ac_lo in #(( 2114?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2115'') ac_retval=1 ;; 2116esac 2117 else 2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2119/* end confdefs.h. */ 2120$4 2121static long int longval () { return $2; } 2122static unsigned long int ulongval () { return $2; } 2123#include <stdio.h> 2124#include <stdlib.h> 2125int 2126main () 2127{ 2128 2129 FILE *f = fopen ("conftest.val", "w"); 2130 if (! f) 2131 return 1; 2132 if (($2) < 0) 2133 { 2134 long int i = longval (); 2135 if (i != ($2)) 2136 return 1; 2137 fprintf (f, "%ld", i); 2138 } 2139 else 2140 { 2141 unsigned long int i = ulongval (); 2142 if (i != ($2)) 2143 return 1; 2144 fprintf (f, "%lu", i); 2145 } 2146 /* Do not output a trailing newline, as this causes \r\n confusion 2147 on some platforms. */ 2148 return ferror (f) || fclose (f) != 0; 2149 2150 ; 2151 return 0; 2152} 2153_ACEOF 2154if ac_fn_c_try_run "$LINENO"; then : 2155 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2156else 2157 ac_retval=1 2158fi 2159rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2160 conftest.$ac_objext conftest.beam conftest.$ac_ext 2161rm -f conftest.val 2162 2163 fi 2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2165 as_fn_set_status $ac_retval 2166 2167} # ac_fn_c_compute_int 2168 2169# ac_fn_c_check_func LINENO FUNC VAR 2170# ---------------------------------- 2171# Tests whether FUNC exists, setting the cache variable VAR accordingly 2172ac_fn_c_check_func () 2173{ 2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2176$as_echo_n "checking for $2... " >&6; } 2177if eval \${$3+:} false; then : 2178 $as_echo_n "(cached) " >&6 2179else 2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2181/* end confdefs.h. */ 2182/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2183 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2184#define $2 innocuous_$2 2185 2186/* System header to define __stub macros and hopefully few prototypes, 2187 which can conflict with char $2 (); below. 2188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2189 <limits.h> exists even on freestanding compilers. */ 2190 2191#ifdef __STDC__ 2192# include <limits.h> 2193#else 2194# include <assert.h> 2195#endif 2196 2197#undef $2 2198 2199/* Override any GCC internal prototype to avoid an error. 2200 Use char because int might match the return type of a GCC 2201 builtin and then its argument prototype would still apply. */ 2202#ifdef __cplusplus 2203extern "C" 2204#endif 2205char $2 (); 2206/* The GNU C library defines this for functions which it implements 2207 to always fail with ENOSYS. Some functions are actually named 2208 something starting with __ and the normal name is an alias. */ 2209#if defined __stub_$2 || defined __stub___$2 2210choke me 2211#endif 2212 2213int 2214main () 2215{ 2216return $2 (); 2217 ; 2218 return 0; 2219} 2220_ACEOF 2221if ac_fn_c_try_link "$LINENO"; then : 2222 eval "$3=yes" 2223else 2224 eval "$3=no" 2225fi 2226rm -f core conftest.err conftest.$ac_objext \ 2227 conftest$ac_exeext conftest.$ac_ext 2228fi 2229eval ac_res=\$$3 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2231$as_echo "$ac_res" >&6; } 2232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2233 2234} # ac_fn_c_check_func 2235 2236# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2237# --------------------------------------------- 2238# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2239# accordingly. 2240ac_fn_c_check_decl () 2241{ 2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2243 as_decl_name=`echo $2|sed 's/ *(.*//'` 2244 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2246$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2247if eval \${$3+:} false; then : 2248 $as_echo_n "(cached) " >&6 2249else 2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2251/* end confdefs.h. */ 2252$4 2253int 2254main () 2255{ 2256#ifndef $as_decl_name 2257#ifdef __cplusplus 2258 (void) $as_decl_use; 2259#else 2260 (void) $as_decl_name; 2261#endif 2262#endif 2263 2264 ; 2265 return 0; 2266} 2267_ACEOF 2268if ac_fn_c_try_compile "$LINENO"; then : 2269 eval "$3=yes" 2270else 2271 eval "$3=no" 2272fi 2273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2274fi 2275eval ac_res=\$$3 2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2277$as_echo "$ac_res" >&6; } 2278 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2279 2280} # ac_fn_c_check_decl 2281 2282# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2283# ---------------------------------------------------- 2284# Tries to find if the field MEMBER exists in type AGGR, after including 2285# INCLUDES, setting cache variable VAR accordingly. 2286ac_fn_c_check_member () 2287{ 2288 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2290$as_echo_n "checking for $2.$3... " >&6; } 2291if eval \${$4+:} false; then : 2292 $as_echo_n "(cached) " >&6 2293else 2294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2295/* end confdefs.h. */ 2296$5 2297int 2298main () 2299{ 2300static $2 ac_aggr; 2301if (ac_aggr.$3) 2302return 0; 2303 ; 2304 return 0; 2305} 2306_ACEOF 2307if ac_fn_c_try_compile "$LINENO"; then : 2308 eval "$4=yes" 2309else 2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2311/* end confdefs.h. */ 2312$5 2313int 2314main () 2315{ 2316static $2 ac_aggr; 2317if (sizeof ac_aggr.$3) 2318return 0; 2319 ; 2320 return 0; 2321} 2322_ACEOF 2323if ac_fn_c_try_compile "$LINENO"; then : 2324 eval "$4=yes" 2325else 2326 eval "$4=no" 2327fi 2328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2329fi 2330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2331fi 2332eval ac_res=\$$4 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2334$as_echo "$ac_res" >&6; } 2335 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2336 2337} # ac_fn_c_check_member 2338cat >config.log <<_ACEOF 2339This file contains any messages produced by compilers while 2340running configure, to aid debugging if configure makes a mistake. 2341 2342It was created by python $as_me 3.8, which was 2343generated by GNU Autoconf 2.69. Invocation command line was 2344 2345 $ $0 $@ 2346 2347_ACEOF 2348exec 5>>config.log 2349{ 2350cat <<_ASUNAME 2351## --------- ## 2352## Platform. ## 2353## --------- ## 2354 2355hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2356uname -m = `(uname -m) 2>/dev/null || echo unknown` 2357uname -r = `(uname -r) 2>/dev/null || echo unknown` 2358uname -s = `(uname -s) 2>/dev/null || echo unknown` 2359uname -v = `(uname -v) 2>/dev/null || echo unknown` 2360 2361/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2362/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2363 2364/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2365/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2366/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2367/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2368/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2369/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2370/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2371 2372_ASUNAME 2373 2374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2375for as_dir in $PATH 2376do 2377 IFS=$as_save_IFS 2378 test -z "$as_dir" && as_dir=. 2379 $as_echo "PATH: $as_dir" 2380 done 2381IFS=$as_save_IFS 2382 2383} >&5 2384 2385cat >&5 <<_ACEOF 2386 2387 2388## ----------- ## 2389## Core tests. ## 2390## ----------- ## 2391 2392_ACEOF 2393 2394 2395# Keep a trace of the command line. 2396# Strip out --no-create and --no-recursion so they do not pile up. 2397# Strip out --silent because we don't want to record it for future runs. 2398# Also quote any args containing shell meta-characters. 2399# Make two passes to allow for proper duplicate-argument suppression. 2400ac_configure_args= 2401ac_configure_args0= 2402ac_configure_args1= 2403ac_must_keep_next=false 2404for ac_pass in 1 2 2405do 2406 for ac_arg 2407 do 2408 case $ac_arg in 2409 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2410 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2411 | -silent | --silent | --silen | --sile | --sil) 2412 continue ;; 2413 *\'*) 2414 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2415 esac 2416 case $ac_pass in 2417 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2418 2) 2419 as_fn_append ac_configure_args1 " '$ac_arg'" 2420 if test $ac_must_keep_next = true; then 2421 ac_must_keep_next=false # Got value, back to normal. 2422 else 2423 case $ac_arg in 2424 *=* | --config-cache | -C | -disable-* | --disable-* \ 2425 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2426 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2427 | -with-* | --with-* | -without-* | --without-* | --x) 2428 case "$ac_configure_args0 " in 2429 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2430 esac 2431 ;; 2432 -* ) ac_must_keep_next=true ;; 2433 esac 2434 fi 2435 as_fn_append ac_configure_args " '$ac_arg'" 2436 ;; 2437 esac 2438 done 2439done 2440{ ac_configure_args0=; unset ac_configure_args0;} 2441{ ac_configure_args1=; unset ac_configure_args1;} 2442 2443# When interrupted or exit'd, cleanup temporary files, and complete 2444# config.log. We remove comments because anyway the quotes in there 2445# would cause problems or look ugly. 2446# WARNING: Use '\'' to represent an apostrophe within the trap. 2447# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2448trap 'exit_status=$? 2449 # Save into config.log some information that might help in debugging. 2450 { 2451 echo 2452 2453 $as_echo "## ---------------- ## 2454## Cache variables. ## 2455## ---------------- ##" 2456 echo 2457 # The following way of writing the cache mishandles newlines in values, 2458( 2459 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2460 eval ac_val=\$$ac_var 2461 case $ac_val in #( 2462 *${as_nl}*) 2463 case $ac_var in #( 2464 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2465$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2466 esac 2467 case $ac_var in #( 2468 _ | IFS | as_nl) ;; #( 2469 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2470 *) { eval $ac_var=; unset $ac_var;} ;; 2471 esac ;; 2472 esac 2473 done 2474 (set) 2>&1 | 2475 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2476 *${as_nl}ac_space=\ *) 2477 sed -n \ 2478 "s/'\''/'\''\\\\'\'''\''/g; 2479 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2480 ;; #( 2481 *) 2482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2483 ;; 2484 esac | 2485 sort 2486) 2487 echo 2488 2489 $as_echo "## ----------------- ## 2490## Output variables. ## 2491## ----------------- ##" 2492 echo 2493 for ac_var in $ac_subst_vars 2494 do 2495 eval ac_val=\$$ac_var 2496 case $ac_val in 2497 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2498 esac 2499 $as_echo "$ac_var='\''$ac_val'\''" 2500 done | sort 2501 echo 2502 2503 if test -n "$ac_subst_files"; then 2504 $as_echo "## ------------------- ## 2505## File substitutions. ## 2506## ------------------- ##" 2507 echo 2508 for ac_var in $ac_subst_files 2509 do 2510 eval ac_val=\$$ac_var 2511 case $ac_val in 2512 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2513 esac 2514 $as_echo "$ac_var='\''$ac_val'\''" 2515 done | sort 2516 echo 2517 fi 2518 2519 if test -s confdefs.h; then 2520 $as_echo "## ----------- ## 2521## confdefs.h. ## 2522## ----------- ##" 2523 echo 2524 cat confdefs.h 2525 echo 2526 fi 2527 test "$ac_signal" != 0 && 2528 $as_echo "$as_me: caught signal $ac_signal" 2529 $as_echo "$as_me: exit $exit_status" 2530 } >&5 2531 rm -f core *.core core.conftest.* && 2532 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2533 exit $exit_status 2534' 0 2535for ac_signal in 1 2 13 15; do 2536 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2537done 2538ac_signal=0 2539 2540# confdefs.h avoids OS command line length limits that DEFS can exceed. 2541rm -f -r conftest* confdefs.h 2542 2543$as_echo "/* confdefs.h */" > confdefs.h 2544 2545# Predefined preprocessor variables. 2546 2547cat >>confdefs.h <<_ACEOF 2548#define PACKAGE_NAME "$PACKAGE_NAME" 2549_ACEOF 2550 2551cat >>confdefs.h <<_ACEOF 2552#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2553_ACEOF 2554 2555cat >>confdefs.h <<_ACEOF 2556#define PACKAGE_VERSION "$PACKAGE_VERSION" 2557_ACEOF 2558 2559cat >>confdefs.h <<_ACEOF 2560#define PACKAGE_STRING "$PACKAGE_STRING" 2561_ACEOF 2562 2563cat >>confdefs.h <<_ACEOF 2564#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2565_ACEOF 2566 2567cat >>confdefs.h <<_ACEOF 2568#define PACKAGE_URL "$PACKAGE_URL" 2569_ACEOF 2570 2571 2572# Let the site file select an alternate cache file if it wants to. 2573# Prefer an explicitly selected file to automatically selected ones. 2574ac_site_file1=NONE 2575ac_site_file2=NONE 2576if test -n "$CONFIG_SITE"; then 2577 # We do not want a PATH search for config.site. 2578 case $CONFIG_SITE in #(( 2579 -*) ac_site_file1=./$CONFIG_SITE;; 2580 */*) ac_site_file1=$CONFIG_SITE;; 2581 *) ac_site_file1=./$CONFIG_SITE;; 2582 esac 2583elif test "x$prefix" != xNONE; then 2584 ac_site_file1=$prefix/share/config.site 2585 ac_site_file2=$prefix/etc/config.site 2586else 2587 ac_site_file1=$ac_default_prefix/share/config.site 2588 ac_site_file2=$ac_default_prefix/etc/config.site 2589fi 2590for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2591do 2592 test "x$ac_site_file" = xNONE && continue 2593 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2594 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2595$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2596 sed 's/^/| /' "$ac_site_file" >&5 2597 . "$ac_site_file" \ 2598 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2599$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2600as_fn_error $? "failed to load site script $ac_site_file 2601See \`config.log' for more details" "$LINENO" 5; } 2602 fi 2603done 2604 2605if test -r "$cache_file"; then 2606 # Some versions of bash will fail to source /dev/null (special files 2607 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2608 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2610$as_echo "$as_me: loading cache $cache_file" >&6;} 2611 case $cache_file in 2612 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2613 *) . "./$cache_file";; 2614 esac 2615 fi 2616else 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2618$as_echo "$as_me: creating cache $cache_file" >&6;} 2619 >$cache_file 2620fi 2621 2622# Check that the precious variables saved in the cache have kept the same 2623# value. 2624ac_cache_corrupted=false 2625for ac_var in $ac_precious_vars; do 2626 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2627 eval ac_new_set=\$ac_env_${ac_var}_set 2628 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2629 eval ac_new_val=\$ac_env_${ac_var}_value 2630 case $ac_old_set,$ac_new_set in 2631 set,) 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2633$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2634 ac_cache_corrupted=: ;; 2635 ,set) 2636 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2637$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2638 ac_cache_corrupted=: ;; 2639 ,);; 2640 *) 2641 if test "x$ac_old_val" != "x$ac_new_val"; then 2642 # differences in whitespace do not lead to failure. 2643 ac_old_val_w=`echo x $ac_old_val` 2644 ac_new_val_w=`echo x $ac_new_val` 2645 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2647$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2648 ac_cache_corrupted=: 2649 else 2650 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2651$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2652 eval $ac_var=\$ac_old_val 2653 fi 2654 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2655$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2656 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2657$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2658 fi;; 2659 esac 2660 # Pass precious variables to config.status. 2661 if test "$ac_new_set" = set; then 2662 case $ac_new_val in 2663 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2664 *) ac_arg=$ac_var=$ac_new_val ;; 2665 esac 2666 case " $ac_configure_args " in 2667 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2668 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2669 esac 2670 fi 2671done 2672if $ac_cache_corrupted; then 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2675 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2676$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2677 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2678fi 2679## -------------------- ## 2680## Main body of script. ## 2681## -------------------- ## 2682 2683ac_ext=c 2684ac_cpp='$CPP $CPPFLAGS' 2685ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2686ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2687ac_compiler_gnu=$ac_cv_c_compiler_gnu 2688 2689 2690 2691 2692 2693 2694if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then 2695 # If we're building out-of-tree, we need to make sure the following 2696 # resources get picked up before their $srcdir counterparts. 2697 # Objects/ -> typeslots.inc 2698 # Include/ -> Python-ast.h, graminit.h 2699 # Python/ -> importlib.h 2700 # (A side effect of this is that these resources will automatically be 2701 # regenerated when building out-of-tree, regardless of whether or not 2702 # the $srcdir counterpart is up-to-date. This is an acceptable trade 2703 # off.) 2704 BASECPPFLAGS="-IObjects -IInclude -IPython" 2705else 2706 BASECPPFLAGS="" 2707fi 2708 2709 2710 2711 2712 2713if test -e $srcdir/.git 2714then 2715# Extract the first word of "git", so it can be a program name with args. 2716set dummy git; ac_word=$2 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2718$as_echo_n "checking for $ac_word... " >&6; } 2719if ${ac_cv_prog_HAS_GIT+:} false; then : 2720 $as_echo_n "(cached) " >&6 2721else 2722 if test -n "$HAS_GIT"; then 2723 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. 2724else 2725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2726for as_dir in $PATH 2727do 2728 IFS=$as_save_IFS 2729 test -z "$as_dir" && as_dir=. 2730 for ac_exec_ext in '' $ac_executable_extensions; do 2731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2732 ac_cv_prog_HAS_GIT="found" 2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2734 break 2 2735 fi 2736done 2737 done 2738IFS=$as_save_IFS 2739 2740 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" 2741fi 2742fi 2743HAS_GIT=$ac_cv_prog_HAS_GIT 2744if test -n "$HAS_GIT"; then 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 2746$as_echo "$HAS_GIT" >&6; } 2747else 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2749$as_echo "no" >&6; } 2750fi 2751 2752 2753else 2754HAS_GIT=no-repository 2755fi 2756if test $HAS_GIT = found 2757then 2758 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" 2759 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" 2760 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" 2761else 2762 GITVERSION="" 2763 GITTAG="" 2764 GITBRANCH="" 2765fi 2766 2767 2768ac_config_headers="$ac_config_headers pyconfig.h" 2769 2770 2771ac_aux_dir= 2772for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2773 if test -f "$ac_dir/install-sh"; then 2774 ac_aux_dir=$ac_dir 2775 ac_install_sh="$ac_aux_dir/install-sh -c" 2776 break 2777 elif test -f "$ac_dir/install.sh"; then 2778 ac_aux_dir=$ac_dir 2779 ac_install_sh="$ac_aux_dir/install.sh -c" 2780 break 2781 elif test -f "$ac_dir/shtool"; then 2782 ac_aux_dir=$ac_dir 2783 ac_install_sh="$ac_aux_dir/shtool install -c" 2784 break 2785 fi 2786done 2787if test -z "$ac_aux_dir"; then 2788 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2789fi 2790 2791# These three variables are undocumented and unsupported, 2792# and are intended to be withdrawn in a future Autoconf release. 2793# They can cause serious problems if a builder's source tree is in a directory 2794# whose full name contains unusual characters. 2795ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2796ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2797ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2798 2799 2800# Make sure we can run config.sub. 2801$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2802 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2803 2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2805$as_echo_n "checking build system type... " >&6; } 2806if ${ac_cv_build+:} false; then : 2807 $as_echo_n "(cached) " >&6 2808else 2809 ac_build_alias=$build_alias 2810test "x$ac_build_alias" = x && 2811 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2812test "x$ac_build_alias" = x && 2813 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2814ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2815 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2816 2817fi 2818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2819$as_echo "$ac_cv_build" >&6; } 2820case $ac_cv_build in 2821*-*-*) ;; 2822*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2823esac 2824build=$ac_cv_build 2825ac_save_IFS=$IFS; IFS='-' 2826set x $ac_cv_build 2827shift 2828build_cpu=$1 2829build_vendor=$2 2830shift; shift 2831# Remember, the first character of IFS is used to create $*, 2832# except with old shells: 2833build_os=$* 2834IFS=$ac_save_IFS 2835case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2836 2837 2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2839$as_echo_n "checking host system type... " >&6; } 2840if ${ac_cv_host+:} false; then : 2841 $as_echo_n "(cached) " >&6 2842else 2843 if test "x$host_alias" = x; then 2844 ac_cv_host=$ac_cv_build 2845else 2846 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2847 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2848fi 2849 2850fi 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2852$as_echo "$ac_cv_host" >&6; } 2853case $ac_cv_host in 2854*-*-*) ;; 2855*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2856esac 2857host=$ac_cv_host 2858ac_save_IFS=$IFS; IFS='-' 2859set x $ac_cv_host 2860shift 2861host_cpu=$1 2862host_vendor=$2 2863shift; shift 2864# Remember, the first character of IFS is used to create $*, 2865# except with old shells: 2866host_os=$* 2867IFS=$ac_save_IFS 2868case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2869 2870 2871 2872 2873 2874# pybuilddir.txt will be created by --generate-posix-vars in the Makefile 2875rm -f pybuilddir.txt 2876 2877for ac_prog in python$PACKAGE_VERSION python3 python 2878do 2879 # Extract the first word of "$ac_prog", so it can be a program name with args. 2880set dummy $ac_prog; ac_word=$2 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2882$as_echo_n "checking for $ac_word... " >&6; } 2883if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : 2884 $as_echo_n "(cached) " >&6 2885else 2886 if test -n "$PYTHON_FOR_REGEN"; then 2887 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. 2888else 2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2890for as_dir in $PATH 2891do 2892 IFS=$as_save_IFS 2893 test -z "$as_dir" && as_dir=. 2894 for ac_exec_ext in '' $ac_executable_extensions; do 2895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2896 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" 2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2898 break 2 2899 fi 2900done 2901 done 2902IFS=$as_save_IFS 2903 2904fi 2905fi 2906PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN 2907if test -n "$PYTHON_FOR_REGEN"; then 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 2909$as_echo "$PYTHON_FOR_REGEN" >&6; } 2910else 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2912$as_echo "no" >&6; } 2913fi 2914 2915 2916 test -n "$PYTHON_FOR_REGEN" && break 2917done 2918test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" 2919 2920 2921 2922if test "$cross_compiling" = yes; then 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 2924$as_echo_n "checking for python interpreter for cross build... " >&6; } 2925 if test -z "$PYTHON_FOR_BUILD"; then 2926 for interp in python$PACKAGE_VERSION python3 python; do 2927 which $interp >/dev/null 2>&1 || continue 2928 if $interp -c "import sys;sys.exit(not '.'.join(str(n) for n in sys.version_info[:2]) == '$PACKAGE_VERSION')"; then 2929 break 2930 fi 2931 interp= 2932 done 2933 if test x$interp = x; then 2934 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 2935 fi 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 2937$as_echo "$interp" >&6; } 2938 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 2939 fi 2940elif test "$cross_compiling" = maybe; then 2941 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 2942else 2943 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' 2944fi 2945 2946 2947 2948if test "$prefix" != "/"; then 2949 prefix=`echo "$prefix" | sed -e 's/\/$//g'` 2950fi 2951 2952 2953 2954 2955# We don't use PACKAGE_ variables, and they cause conflicts 2956# with other autoconf-based packages that include Python.h 2957grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new 2958rm confdefs.h 2959mv confdefs.h.new confdefs.h 2960 2961 2962VERSION=3.8 2963 2964# Version number of Python's own shared library file. 2965 2966SOVERSION=1.0 2967 2968# The later defininition of _XOPEN_SOURCE disables certain features 2969# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). 2970 2971$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 2972 2973 2974# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2975# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable 2976# them. 2977 2978$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 2979 2980 2981# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2982# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable 2983# them. 2984 2985$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h 2986 2987 2988# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 2989# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable 2990# them. 2991 2992$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 2993 2994 2995 2996define_xopen_source=yes 2997 2998# Arguments passed to configure. 2999 3000CONFIG_ARGS="$ac_configure_args" 3001 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 3003$as_echo_n "checking for --enable-universalsdk... " >&6; } 3004# Check whether --enable-universalsdk was given. 3005if test "${enable_universalsdk+set}" = set; then : 3006 enableval=$enable_universalsdk; 3007 case $enableval in 3008 yes) 3009 # Locate the best usable SDK, see Mac/README for more 3010 # information 3011 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" 3012 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) 3013 then 3014 enableval=/Developer/SDKs/MacOSX10.4u.sdk 3015 if test ! -d "${enableval}" 3016 then 3017 enableval=/ 3018 fi 3019 fi 3020 ;; 3021 esac 3022 case $enableval in 3023 no) 3024 UNIVERSALSDK= 3025 enable_universalsdk= 3026 ;; 3027 *) 3028 UNIVERSALSDK=$enableval 3029 if test ! -d "${UNIVERSALSDK}" 3030 then 3031 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 3032 fi 3033 ;; 3034 esac 3035 3036 3037else 3038 3039 UNIVERSALSDK= 3040 enable_universalsdk= 3041 3042fi 3043 3044if test -n "${UNIVERSALSDK}" 3045then 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 3047$as_echo "${UNIVERSALSDK}" >&6; } 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051fi 3052 3053 3054 3055ARCH_RUN_32BIT="" 3056 3057# For backward compatibility reasons we prefer to select '32-bit' if available, 3058# otherwise use 'intel' 3059UNIVERSAL_ARCHS="32-bit" 3060if test "`uname -s`" = "Darwin" 3061then 3062 if test -n "${UNIVERSALSDK}" 3063 then 3064 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" 3065 then 3066 UNIVERSAL_ARCHS="intel" 3067 fi 3068 fi 3069fi 3070 3071 3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 3073$as_echo_n "checking for --with-universal-archs... " >&6; } 3074 3075# Check whether --with-universal-archs was given. 3076if test "${with_universal_archs+set}" = set; then : 3077 withval=$with_universal_archs; 3078 UNIVERSAL_ARCHS="$withval" 3079 3080fi 3081 3082if test -n "${UNIVERSALSDK}" 3083then 3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 3085$as_echo "${UNIVERSAL_ARCHS}" >&6; } 3086else 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3088$as_echo "no" >&6; } 3089fi 3090 3091 3092# Check whether --with-framework-name was given. 3093if test "${with_framework_name+set}" = set; then : 3094 withval=$with_framework_name; 3095 PYTHONFRAMEWORK=${withval} 3096 PYTHONFRAMEWORKDIR=${withval}.framework 3097 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` 3098 3099else 3100 3101 PYTHONFRAMEWORK=Python 3102 PYTHONFRAMEWORKDIR=Python.framework 3103 PYTHONFRAMEWORKIDENTIFIER=org.python.python 3104 3105fi 3106 3107# Check whether --enable-framework was given. 3108if test "${enable_framework+set}" = set; then : 3109 enableval=$enable_framework; 3110 case $enableval in 3111 yes) 3112 enableval=/Library/Frameworks 3113 esac 3114 case $enableval in 3115 no) 3116 PYTHONFRAMEWORK= 3117 PYTHONFRAMEWORKDIR=no-framework 3118 PYTHONFRAMEWORKPREFIX= 3119 PYTHONFRAMEWORKINSTALLDIR= 3120 FRAMEWORKINSTALLFIRST= 3121 FRAMEWORKINSTALLLAST= 3122 FRAMEWORKALTINSTALLFIRST= 3123 FRAMEWORKALTINSTALLLAST= 3124 FRAMEWORKPYTHONW= 3125 if test "x${prefix}" = "xNONE"; then 3126 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3127 else 3128 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3129 fi 3130 enable_framework= 3131 ;; 3132 *) 3133 PYTHONFRAMEWORKPREFIX="${enableval}" 3134 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR 3135 FRAMEWORKINSTALLFIRST="frameworkinstallstructure" 3136 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure " 3137 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" 3138 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" 3139 FRAMEWORKPYTHONW="frameworkpythonw" 3140 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3141 3142 if test "x${prefix}" = "xNONE" ; then 3143 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3144 3145 else 3146 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3147 fi 3148 3149 case "${enableval}" in 3150 /System*) 3151 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3152 if test "${prefix}" = "NONE" ; then 3153 # See below 3154 FRAMEWORKUNIXTOOLSPREFIX="/usr" 3155 fi 3156 ;; 3157 3158 /Library*) 3159 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3160 ;; 3161 3162 */Library/Frameworks) 3163 MDIR="`dirname "${enableval}"`" 3164 MDIR="`dirname "${MDIR}"`" 3165 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" 3166 3167 if test "${prefix}" = "NONE"; then 3168 # User hasn't specified the 3169 # --prefix option, but wants to install 3170 # the framework in a non-default location, 3171 # ensure that the compatibility links get 3172 # installed relative to that prefix as well 3173 # instead of in /usr/local. 3174 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" 3175 fi 3176 ;; 3177 3178 *) 3179 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3180 ;; 3181 esac 3182 3183 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION 3184 3185 # Add files for Mac specific code to the list of output 3186 # files: 3187 ac_config_files="$ac_config_files Mac/Makefile" 3188 3189 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" 3190 3191 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" 3192 3193 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" 3194 3195 esac 3196 3197else 3198 3199 PYTHONFRAMEWORK= 3200 PYTHONFRAMEWORKDIR=no-framework 3201 PYTHONFRAMEWORKPREFIX= 3202 PYTHONFRAMEWORKINSTALLDIR= 3203 FRAMEWORKINSTALLFIRST= 3204 FRAMEWORKINSTALLLAST= 3205 FRAMEWORKALTINSTALLFIRST= 3206 FRAMEWORKALTINSTALLLAST= 3207 FRAMEWORKPYTHONW= 3208 if test "x${prefix}" = "xNONE" ; then 3209 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3210 else 3211 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3212 fi 3213 enable_framework= 3214 3215 3216fi 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232cat >>confdefs.h <<_ACEOF 3233#define _PYTHONFRAMEWORK "${PYTHONFRAMEWORK}" 3234_ACEOF 3235 3236 3237##AC_ARG_WITH(dyld, 3238## AS_HELP_STRING([--with-dyld], 3239## [Use (OpenStep|Rhapsody) dynamic linker])) 3240## 3241# Set name for machine-dependent library files 3242 3243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 3244$as_echo_n "checking MACHDEP... " >&6; } 3245if test -z "$MACHDEP" 3246then 3247 # avoid using uname for cross builds 3248 if test "$cross_compiling" = yes; then 3249 # ac_sys_system and ac_sys_release are used for setting 3250 # a lot of different things including 'define_xopen_source' 3251 # in the case statement below. 3252 case "$host" in 3253 *-*-linux-android*) 3254 ac_sys_system=Linux-android 3255 ;; 3256 *-*-linux*) 3257 ac_sys_system=Linux 3258 ;; 3259 *-*-cygwin*) 3260 ac_sys_system=Cygwin 3261 ;; 3262 *-*-vxworks*) 3263 ac_sys_system=VxWorks 3264 ;; 3265 *) 3266 # for now, limit cross builds to known configurations 3267 MACHDEP="unknown" 3268 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3269 esac 3270 ac_sys_release= 3271 else 3272 ac_sys_system=`uname -s` 3273 if test "$ac_sys_system" = "AIX" \ 3274 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then 3275 ac_sys_release=`uname -v` 3276 else 3277 ac_sys_release=`uname -r` 3278 fi 3279 fi 3280 ac_md_system=`echo $ac_sys_system | 3281 tr -d '/ ' | tr '[A-Z]' '[a-z]'` 3282 ac_md_release=`echo $ac_sys_release | 3283 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` 3284 MACHDEP="$ac_md_system$ac_md_release" 3285 3286 case $MACHDEP in 3287 aix*) MACHDEP="aix";; 3288 linux*) MACHDEP="linux";; 3289 cygwin*) MACHDEP="cygwin";; 3290 darwin*) MACHDEP="darwin";; 3291 '') MACHDEP="unknown";; 3292 esac 3293fi 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$MACHDEP\"" >&5 3295$as_echo "\"$MACHDEP\"" >&6; } 3296 3297 3298if test "$cross_compiling" = yes; then 3299 case "$host" in 3300 *-*-linux*) 3301 case "$host_cpu" in 3302 arm*) 3303 _host_cpu=arm 3304 ;; 3305 *) 3306 _host_cpu=$host_cpu 3307 esac 3308 ;; 3309 *-*-cygwin*) 3310 _host_cpu= 3311 ;; 3312 *-*-vxworks*) 3313 _host_cpu=$host_cpu 3314 ;; 3315 *) 3316 # for now, limit cross builds to known configurations 3317 MACHDEP="unknown" 3318 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3319 esac 3320 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" 3321fi 3322 3323# Some systems cannot stand _XOPEN_SOURCE being defined at all; they 3324# disable features if it is defined, without any means to access these 3325# features as extensions. For these systems, we skip the definition of 3326# _XOPEN_SOURCE. Before adding a system to the list to gain access to 3327# some feature, make sure there is no alternative way to access this 3328# feature. Also, when using wildcards, make sure you have verified the 3329# need for not defining _XOPEN_SOURCE on all systems matching the 3330# wildcard, and that the wildcard does not include future systems 3331# (which may remove their limitations). 3332case $ac_sys_system/$ac_sys_release in 3333 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, 3334 # even though select is a POSIX function. Reported by J. Ribbens. 3335 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. 3336 # In addition, Stefan Krah confirms that issue #1244610 exists through 3337 # OpenBSD 4.6, but is fixed in 4.7. 3338 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) 3339 define_xopen_source=no 3340 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3341 # also defined. This can be overridden by defining _BSD_SOURCE 3342 # As this has a different meaning on Linux, only define it on OpenBSD 3343 3344$as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3345 3346 ;; 3347 OpenBSD/*) 3348 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3349 # also defined. This can be overridden by defining _BSD_SOURCE 3350 # As this has a different meaning on Linux, only define it on OpenBSD 3351 3352$as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3353 3354 ;; 3355 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of 3356 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by 3357 # Marc Recht 3358 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) 3359 define_xopen_source=no;; 3360 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a 3361 # request to enable features supported by the standard as a request 3362 # to disable features not supported by the standard. The best way 3363 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out 3364 # entirely and define __EXTENSIONS__ instead. 3365 SunOS/*) 3366 define_xopen_source=no;; 3367 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, 3368 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. 3369 # Reconfirmed for 7.1.4 by Martin v. Loewis. 3370 OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) 3371 define_xopen_source=no;; 3372 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, 3373 # but used in struct sockaddr.sa_family. Reported by Tim Rice. 3374 SCO_SV/3.2) 3375 define_xopen_source=no;; 3376 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 3377 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which 3378 # identifies itself as Darwin/7.* 3379 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3380 # disables platform specific features beyond repair. 3381 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3382 # has no effect, don't bother defining them 3383 Darwin/[6789].*) 3384 define_xopen_source=no;; 3385 Darwin/1[0-9].*) 3386 define_xopen_source=no;; 3387 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but 3388 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined 3389 # or has another value. By not (re)defining it, the defaults come in place. 3390 AIX/4) 3391 define_xopen_source=no;; 3392 AIX/5) 3393 if test `uname -r` -eq 1; then 3394 define_xopen_source=no 3395 fi 3396 ;; 3397 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from 3398 # defining NI_NUMERICHOST. 3399 QNX/6.3.2) 3400 define_xopen_source=no 3401 ;; 3402 # On VxWorks, defining _XOPEN_SOURCE causes compile failures 3403 # in network headers still using system V types. 3404 VxWorks/*) 3405 define_xopen_source=no 3406 ;; 3407 3408esac 3409 3410if test $define_xopen_source = yes 3411then 3412 # X/Open 7, incorporating POSIX.1-2008 3413 3414$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h 3415 3416 3417 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires 3418 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else 3419 # several APIs are not declared. Since this is also needed in some 3420 # cases for HP-UX, we define it globally. 3421 3422$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 3423 3424 3425 3426$as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h 3427 3428fi 3429 3430# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE 3431case $ac_sys_system in 3432 hp*|HP*) 3433 define_stdc_a1=yes;; 3434 *) 3435 define_stdc_a1=no;; 3436esac 3437 3438if test $define_stdc_a1 = yes 3439then 3440 3441$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h 3442 3443fi 3444 3445# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, 3446# it may influence the way we can build extensions, so distutils 3447# needs to check it 3448 3449 3450CONFIGURE_MACOSX_DEPLOYMENT_TARGET= 3451EXPORT_MACOSX_DEPLOYMENT_TARGET='#' 3452 3453# checks for alternative programs 3454 3455# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just 3456# for debug/optimization stuff. BASECFLAGS is for flags that are required 3457# just to get things to compile and link. Users are free to override OPT 3458# when running configure or make. The build should not break if they do. 3459# BASECFLAGS should generally not be messed with, however. 3460 3461# If the user switches compilers, we can't believe the cache 3462if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" 3463then 3464 as_fn_error $? "cached CC is different -- throw away $cache_file 3465(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 3466fi 3467 3468# Don't let AC_PROG_CC set the default CFLAGS. It normally sets -g -O2 3469# when the compiler supports them, but we don't always want -O2, and 3470# we set -g later. 3471if test -z "$CFLAGS"; then 3472 CFLAGS= 3473fi 3474 3475if test "$ac_sys_system" = "Darwin" 3476then 3477 # Compiler selection on MacOSX is more complicated than 3478 # AC_PROG_CC can handle, see Mac/README for more 3479 # information 3480 if test -z "${CC}" 3481 then 3482 found_gcc= 3483 found_clang= 3484 as_save_IFS=$IFS; IFS=: 3485 for as_dir in $PATH 3486 do 3487 IFS=$as_save_IFS 3488 if test -x "${as_dir}/gcc"; then 3489 if test -z "${found_gcc}"; then 3490 found_gcc="${as_dir}/gcc" 3491 fi 3492 fi 3493 if test -x "${as_dir}/clang"; then 3494 if test -z "${found_clang}"; then 3495 found_clang="${as_dir}/clang" 3496 fi 3497 fi 3498 done 3499 IFS=$as_save_IFS 3500 3501 if test -n "$found_gcc" -a -n "$found_clang" 3502 then 3503 if test -n "`"$found_gcc" --version | grep llvm-gcc`" 3504 then 3505 { $as_echo "$as_me:${as_lineno-$LINENO}: Detected llvm-gcc, falling back to clang" >&5 3506$as_echo "$as_me: Detected llvm-gcc, falling back to clang" >&6;} 3507 CC="$found_clang" 3508 CXX="$found_clang++" 3509 fi 3510 3511 3512 elif test -z "$found_gcc" -a -n "$found_clang" 3513 then 3514 { $as_echo "$as_me:${as_lineno-$LINENO}: No GCC found, use CLANG" >&5 3515$as_echo "$as_me: No GCC found, use CLANG" >&6;} 3516 CC="$found_clang" 3517 CXX="$found_clang++" 3518 3519 elif test -z "$found_gcc" -a -z "$found_clang" 3520 then 3521 found_clang=`/usr/bin/xcrun -find clang 2>/dev/null` 3522 if test -n "${found_clang}" 3523 then 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: Using clang from Xcode.app" >&5 3525$as_echo "$as_me: Using clang from Xcode.app" >&6;} 3526 CC="${found_clang}" 3527 CXX="`/usr/bin/xcrun -find clang++`" 3528 3529 # else: use default behaviour 3530 fi 3531 fi 3532 fi 3533fi 3534ac_ext=c 3535ac_cpp='$CPP $CPPFLAGS' 3536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3538ac_compiler_gnu=$ac_cv_c_compiler_gnu 3539if test -n "$ac_tool_prefix"; then 3540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3541set dummy ${ac_tool_prefix}gcc; ac_word=$2 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3543$as_echo_n "checking for $ac_word... " >&6; } 3544if ${ac_cv_prog_CC+:} false; then : 3545 $as_echo_n "(cached) " >&6 3546else 3547 if test -n "$CC"; then 3548 ac_cv_prog_CC="$CC" # Let the user override the test. 3549else 3550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3551for as_dir in $PATH 3552do 3553 IFS=$as_save_IFS 3554 test -z "$as_dir" && as_dir=. 3555 for ac_exec_ext in '' $ac_executable_extensions; do 3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3557 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3559 break 2 3560 fi 3561done 3562 done 3563IFS=$as_save_IFS 3564 3565fi 3566fi 3567CC=$ac_cv_prog_CC 3568if test -n "$CC"; then 3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3570$as_echo "$CC" >&6; } 3571else 3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3573$as_echo "no" >&6; } 3574fi 3575 3576 3577fi 3578if test -z "$ac_cv_prog_CC"; then 3579 ac_ct_CC=$CC 3580 # Extract the first word of "gcc", so it can be a program name with args. 3581set dummy gcc; ac_word=$2 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3583$as_echo_n "checking for $ac_word... " >&6; } 3584if ${ac_cv_prog_ac_ct_CC+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 if test -n "$ac_ct_CC"; then 3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3589else 3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3591for as_dir in $PATH 3592do 3593 IFS=$as_save_IFS 3594 test -z "$as_dir" && as_dir=. 3595 for ac_exec_ext in '' $ac_executable_extensions; do 3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3597 ac_cv_prog_ac_ct_CC="gcc" 3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3599 break 2 3600 fi 3601done 3602 done 3603IFS=$as_save_IFS 3604 3605fi 3606fi 3607ac_ct_CC=$ac_cv_prog_ac_ct_CC 3608if test -n "$ac_ct_CC"; then 3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3610$as_echo "$ac_ct_CC" >&6; } 3611else 3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3613$as_echo "no" >&6; } 3614fi 3615 3616 if test "x$ac_ct_CC" = x; then 3617 CC="" 3618 else 3619 case $cross_compiling:$ac_tool_warned in 3620yes:) 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3622$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3623ac_tool_warned=yes ;; 3624esac 3625 CC=$ac_ct_CC 3626 fi 3627else 3628 CC="$ac_cv_prog_CC" 3629fi 3630 3631if test -z "$CC"; then 3632 if test -n "$ac_tool_prefix"; then 3633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3634set dummy ${ac_tool_prefix}cc; ac_word=$2 3635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3636$as_echo_n "checking for $ac_word... " >&6; } 3637if ${ac_cv_prog_CC+:} false; then : 3638 $as_echo_n "(cached) " >&6 3639else 3640 if test -n "$CC"; then 3641 ac_cv_prog_CC="$CC" # Let the user override the test. 3642else 3643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3644for as_dir in $PATH 3645do 3646 IFS=$as_save_IFS 3647 test -z "$as_dir" && as_dir=. 3648 for ac_exec_ext in '' $ac_executable_extensions; do 3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3650 ac_cv_prog_CC="${ac_tool_prefix}cc" 3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3652 break 2 3653 fi 3654done 3655 done 3656IFS=$as_save_IFS 3657 3658fi 3659fi 3660CC=$ac_cv_prog_CC 3661if test -n "$CC"; then 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3663$as_echo "$CC" >&6; } 3664else 3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3666$as_echo "no" >&6; } 3667fi 3668 3669 3670 fi 3671fi 3672if test -z "$CC"; then 3673 # Extract the first word of "cc", so it can be a program name with args. 3674set dummy cc; ac_word=$2 3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3676$as_echo_n "checking for $ac_word... " >&6; } 3677if ${ac_cv_prog_CC+:} false; then : 3678 $as_echo_n "(cached) " >&6 3679else 3680 if test -n "$CC"; then 3681 ac_cv_prog_CC="$CC" # Let the user override the test. 3682else 3683 ac_prog_rejected=no 3684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3685for as_dir in $PATH 3686do 3687 IFS=$as_save_IFS 3688 test -z "$as_dir" && as_dir=. 3689 for ac_exec_ext in '' $ac_executable_extensions; do 3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3692 ac_prog_rejected=yes 3693 continue 3694 fi 3695 ac_cv_prog_CC="cc" 3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3697 break 2 3698 fi 3699done 3700 done 3701IFS=$as_save_IFS 3702 3703if test $ac_prog_rejected = yes; then 3704 # We found a bogon in the path, so make sure we never use it. 3705 set dummy $ac_cv_prog_CC 3706 shift 3707 if test $# != 0; then 3708 # We chose a different compiler from the bogus one. 3709 # However, it has the same basename, so the bogon will be chosen 3710 # first if we set CC to just the basename; use the full file name. 3711 shift 3712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3713 fi 3714fi 3715fi 3716fi 3717CC=$ac_cv_prog_CC 3718if test -n "$CC"; then 3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3720$as_echo "$CC" >&6; } 3721else 3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3723$as_echo "no" >&6; } 3724fi 3725 3726 3727fi 3728if test -z "$CC"; then 3729 if test -n "$ac_tool_prefix"; then 3730 for ac_prog in cl.exe 3731 do 3732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3733set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3735$as_echo_n "checking for $ac_word... " >&6; } 3736if ${ac_cv_prog_CC+:} false; then : 3737 $as_echo_n "(cached) " >&6 3738else 3739 if test -n "$CC"; then 3740 ac_cv_prog_CC="$CC" # Let the user override the test. 3741else 3742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3743for as_dir in $PATH 3744do 3745 IFS=$as_save_IFS 3746 test -z "$as_dir" && as_dir=. 3747 for ac_exec_ext in '' $ac_executable_extensions; do 3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3751 break 2 3752 fi 3753done 3754 done 3755IFS=$as_save_IFS 3756 3757fi 3758fi 3759CC=$ac_cv_prog_CC 3760if test -n "$CC"; then 3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3762$as_echo "$CC" >&6; } 3763else 3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3765$as_echo "no" >&6; } 3766fi 3767 3768 3769 test -n "$CC" && break 3770 done 3771fi 3772if test -z "$CC"; then 3773 ac_ct_CC=$CC 3774 for ac_prog in cl.exe 3775do 3776 # Extract the first word of "$ac_prog", so it can be a program name with args. 3777set dummy $ac_prog; ac_word=$2 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3779$as_echo_n "checking for $ac_word... " >&6; } 3780if ${ac_cv_prog_ac_ct_CC+:} false; then : 3781 $as_echo_n "(cached) " >&6 3782else 3783 if test -n "$ac_ct_CC"; then 3784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3785else 3786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3787for as_dir in $PATH 3788do 3789 IFS=$as_save_IFS 3790 test -z "$as_dir" && as_dir=. 3791 for ac_exec_ext in '' $ac_executable_extensions; do 3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3793 ac_cv_prog_ac_ct_CC="$ac_prog" 3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3795 break 2 3796 fi 3797done 3798 done 3799IFS=$as_save_IFS 3800 3801fi 3802fi 3803ac_ct_CC=$ac_cv_prog_ac_ct_CC 3804if test -n "$ac_ct_CC"; then 3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3806$as_echo "$ac_ct_CC" >&6; } 3807else 3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3809$as_echo "no" >&6; } 3810fi 3811 3812 3813 test -n "$ac_ct_CC" && break 3814done 3815 3816 if test "x$ac_ct_CC" = x; then 3817 CC="" 3818 else 3819 case $cross_compiling:$ac_tool_warned in 3820yes:) 3821{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3822$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3823ac_tool_warned=yes ;; 3824esac 3825 CC=$ac_ct_CC 3826 fi 3827fi 3828 3829fi 3830 3831 3832test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3834as_fn_error $? "no acceptable C compiler found in \$PATH 3835See \`config.log' for more details" "$LINENO" 5; } 3836 3837# Provide some information about the compiler. 3838$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3839set X $ac_compile 3840ac_compiler=$2 3841for ac_option in --version -v -V -qversion; do 3842 { { ac_try="$ac_compiler $ac_option >&5" 3843case "(($ac_try" in 3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3845 *) ac_try_echo=$ac_try;; 3846esac 3847eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3848$as_echo "$ac_try_echo"; } >&5 3849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3850 ac_status=$? 3851 if test -s conftest.err; then 3852 sed '10a\ 3853... rest of stderr output deleted ... 3854 10q' conftest.err >conftest.er1 3855 cat conftest.er1 >&5 3856 fi 3857 rm -f conftest.er1 conftest.err 3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3859 test $ac_status = 0; } 3860done 3861 3862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3863/* end confdefs.h. */ 3864 3865int 3866main () 3867{ 3868 3869 ; 3870 return 0; 3871} 3872_ACEOF 3873ac_clean_files_save=$ac_clean_files 3874ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3875# Try to create an executable without -o first, disregard a.out. 3876# It will help us diagnose broken compilers, and finding out an intuition 3877# of exeext. 3878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3879$as_echo_n "checking whether the C compiler works... " >&6; } 3880ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3881 3882# The possible output files: 3883ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3884 3885ac_rmfiles= 3886for ac_file in $ac_files 3887do 3888 case $ac_file in 3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3890 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3891 esac 3892done 3893rm -f $ac_rmfiles 3894 3895if { { ac_try="$ac_link_default" 3896case "(($ac_try" in 3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3898 *) ac_try_echo=$ac_try;; 3899esac 3900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3901$as_echo "$ac_try_echo"; } >&5 3902 (eval "$ac_link_default") 2>&5 3903 ac_status=$? 3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3905 test $ac_status = 0; }; then : 3906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3907# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3908# in a Makefile. We should not override ac_cv_exeext if it was cached, 3909# so that the user can short-circuit this test for compilers unknown to 3910# Autoconf. 3911for ac_file in $ac_files '' 3912do 3913 test -f "$ac_file" || continue 3914 case $ac_file in 3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3916 ;; 3917 [ab].out ) 3918 # We found the default executable, but exeext='' is most 3919 # certainly right. 3920 break;; 3921 *.* ) 3922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3923 then :; else 3924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3925 fi 3926 # We set ac_cv_exeext here because the later test for it is not 3927 # safe: cross compilers may not add the suffix if given an `-o' 3928 # argument, so we may need to know it at that point already. 3929 # Even if this section looks crufty: it has the advantage of 3930 # actually working. 3931 break;; 3932 * ) 3933 break;; 3934 esac 3935done 3936test "$ac_cv_exeext" = no && ac_cv_exeext= 3937 3938else 3939 ac_file='' 3940fi 3941if test -z "$ac_file"; then : 3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3943$as_echo "no" >&6; } 3944$as_echo "$as_me: failed program was:" >&5 3945sed 's/^/| /' conftest.$ac_ext >&5 3946 3947{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3948$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3949as_fn_error 77 "C compiler cannot create executables 3950See \`config.log' for more details" "$LINENO" 5; } 3951else 3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3953$as_echo "yes" >&6; } 3954fi 3955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3956$as_echo_n "checking for C compiler default output file name... " >&6; } 3957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3958$as_echo "$ac_file" >&6; } 3959ac_exeext=$ac_cv_exeext 3960 3961rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3962ac_clean_files=$ac_clean_files_save 3963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3964$as_echo_n "checking for suffix of executables... " >&6; } 3965if { { ac_try="$ac_link" 3966case "(($ac_try" in 3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3968 *) ac_try_echo=$ac_try;; 3969esac 3970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3971$as_echo "$ac_try_echo"; } >&5 3972 (eval "$ac_link") 2>&5 3973 ac_status=$? 3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3975 test $ac_status = 0; }; then : 3976 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3977# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3978# work properly (i.e., refer to `conftest.exe'), while it won't with 3979# `rm'. 3980for ac_file in conftest.exe conftest conftest.*; do 3981 test -f "$ac_file" || continue 3982 case $ac_file in 3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3985 break;; 3986 * ) break;; 3987 esac 3988done 3989else 3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3991$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3992as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3993See \`config.log' for more details" "$LINENO" 5; } 3994fi 3995rm -f conftest conftest$ac_cv_exeext 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3997$as_echo "$ac_cv_exeext" >&6; } 3998 3999rm -f conftest.$ac_ext 4000EXEEXT=$ac_cv_exeext 4001ac_exeext=$EXEEXT 4002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4003/* end confdefs.h. */ 4004#include <stdio.h> 4005int 4006main () 4007{ 4008FILE *f = fopen ("conftest.out", "w"); 4009 return ferror (f) || fclose (f) != 0; 4010 4011 ; 4012 return 0; 4013} 4014_ACEOF 4015ac_clean_files="$ac_clean_files conftest.out" 4016# Check that the compiler produces executables we can run. If not, either 4017# the compiler is broken, or we cross compile. 4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4019$as_echo_n "checking whether we are cross compiling... " >&6; } 4020if test "$cross_compiling" != yes; then 4021 { { ac_try="$ac_link" 4022case "(($ac_try" in 4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4024 *) ac_try_echo=$ac_try;; 4025esac 4026eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4027$as_echo "$ac_try_echo"; } >&5 4028 (eval "$ac_link") 2>&5 4029 ac_status=$? 4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4031 test $ac_status = 0; } 4032 if { ac_try='./conftest$ac_cv_exeext' 4033 { { case "(($ac_try" in 4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4035 *) ac_try_echo=$ac_try;; 4036esac 4037eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4038$as_echo "$ac_try_echo"; } >&5 4039 (eval "$ac_try") 2>&5 4040 ac_status=$? 4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4042 test $ac_status = 0; }; }; then 4043 cross_compiling=no 4044 else 4045 if test "$cross_compiling" = maybe; then 4046 cross_compiling=yes 4047 else 4048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4050as_fn_error $? "cannot run C compiled programs. 4051If you meant to cross compile, use \`--host'. 4052See \`config.log' for more details" "$LINENO" 5; } 4053 fi 4054 fi 4055fi 4056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4057$as_echo "$cross_compiling" >&6; } 4058 4059rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4060ac_clean_files=$ac_clean_files_save 4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4062$as_echo_n "checking for suffix of object files... " >&6; } 4063if ${ac_cv_objext+:} false; then : 4064 $as_echo_n "(cached) " >&6 4065else 4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4067/* end confdefs.h. */ 4068 4069int 4070main () 4071{ 4072 4073 ; 4074 return 0; 4075} 4076_ACEOF 4077rm -f conftest.o conftest.obj 4078if { { ac_try="$ac_compile" 4079case "(($ac_try" in 4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4081 *) ac_try_echo=$ac_try;; 4082esac 4083eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4084$as_echo "$ac_try_echo"; } >&5 4085 (eval "$ac_compile") 2>&5 4086 ac_status=$? 4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4088 test $ac_status = 0; }; then : 4089 for ac_file in conftest.o conftest.obj conftest.*; do 4090 test -f "$ac_file" || continue; 4091 case $ac_file in 4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4094 break;; 4095 esac 4096done 4097else 4098 $as_echo "$as_me: failed program was:" >&5 4099sed 's/^/| /' conftest.$ac_ext >&5 4100 4101{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4102$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4103as_fn_error $? "cannot compute suffix of object files: cannot compile 4104See \`config.log' for more details" "$LINENO" 5; } 4105fi 4106rm -f conftest.$ac_cv_objext conftest.$ac_ext 4107fi 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4109$as_echo "$ac_cv_objext" >&6; } 4110OBJEXT=$ac_cv_objext 4111ac_objext=$OBJEXT 4112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4113$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4114if ${ac_cv_c_compiler_gnu+:} 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#ifndef __GNUC__ 4124 choke me 4125#endif 4126 4127 ; 4128 return 0; 4129} 4130_ACEOF 4131if ac_fn_c_try_compile "$LINENO"; then : 4132 ac_compiler_gnu=yes 4133else 4134 ac_compiler_gnu=no 4135fi 4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4137ac_cv_c_compiler_gnu=$ac_compiler_gnu 4138 4139fi 4140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4141$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4142if test $ac_compiler_gnu = yes; then 4143 GCC=yes 4144else 4145 GCC= 4146fi 4147ac_test_CFLAGS=${CFLAGS+set} 4148ac_save_CFLAGS=$CFLAGS 4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4150$as_echo_n "checking whether $CC accepts -g... " >&6; } 4151if ${ac_cv_prog_cc_g+:} false; then : 4152 $as_echo_n "(cached) " >&6 4153else 4154 ac_save_c_werror_flag=$ac_c_werror_flag 4155 ac_c_werror_flag=yes 4156 ac_cv_prog_cc_g=no 4157 CFLAGS="-g" 4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4159/* end confdefs.h. */ 4160 4161int 4162main () 4163{ 4164 4165 ; 4166 return 0; 4167} 4168_ACEOF 4169if ac_fn_c_try_compile "$LINENO"; then : 4170 ac_cv_prog_cc_g=yes 4171else 4172 CFLAGS="" 4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4174/* end confdefs.h. */ 4175 4176int 4177main () 4178{ 4179 4180 ; 4181 return 0; 4182} 4183_ACEOF 4184if ac_fn_c_try_compile "$LINENO"; then : 4185 4186else 4187 ac_c_werror_flag=$ac_save_c_werror_flag 4188 CFLAGS="-g" 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191 4192int 4193main () 4194{ 4195 4196 ; 4197 return 0; 4198} 4199_ACEOF 4200if ac_fn_c_try_compile "$LINENO"; then : 4201 ac_cv_prog_cc_g=yes 4202fi 4203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4204fi 4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4206fi 4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4208 ac_c_werror_flag=$ac_save_c_werror_flag 4209fi 4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4211$as_echo "$ac_cv_prog_cc_g" >&6; } 4212if test "$ac_test_CFLAGS" = set; then 4213 CFLAGS=$ac_save_CFLAGS 4214elif test $ac_cv_prog_cc_g = yes; then 4215 if test "$GCC" = yes; then 4216 CFLAGS="-g -O2" 4217 else 4218 CFLAGS="-g" 4219 fi 4220else 4221 if test "$GCC" = yes; then 4222 CFLAGS="-O2" 4223 else 4224 CFLAGS= 4225 fi 4226fi 4227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4228$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4229if ${ac_cv_prog_cc_c89+:} false; then : 4230 $as_echo_n "(cached) " >&6 4231else 4232 ac_cv_prog_cc_c89=no 4233ac_save_CC=$CC 4234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4235/* end confdefs.h. */ 4236#include <stdarg.h> 4237#include <stdio.h> 4238struct stat; 4239/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4240struct buf { int x; }; 4241FILE * (*rcsopen) (struct buf *, struct stat *, int); 4242static char *e (p, i) 4243 char **p; 4244 int i; 4245{ 4246 return p[i]; 4247} 4248static char *f (char * (*g) (char **, int), char **p, ...) 4249{ 4250 char *s; 4251 va_list v; 4252 va_start (v,p); 4253 s = g (p, va_arg (v,int)); 4254 va_end (v); 4255 return s; 4256} 4257 4258/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4259 function prototypes and stuff, but not '\xHH' hex character constants. 4260 These don't provoke an error unfortunately, instead are silently treated 4261 as 'x'. The following induces an error, until -std is added to get 4262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4263 array size at least. It's necessary to write '\x00'==0 to get something 4264 that's true only with -std. */ 4265int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4266 4267/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4268 inside strings and character constants. */ 4269#define FOO(x) 'x' 4270int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4271 4272int test (int i, double x); 4273struct s1 {int (*f) (int a);}; 4274struct s2 {int (*f) (double a);}; 4275int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4276int argc; 4277char **argv; 4278int 4279main () 4280{ 4281return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4282 ; 4283 return 0; 4284} 4285_ACEOF 4286for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4288do 4289 CC="$ac_save_CC $ac_arg" 4290 if ac_fn_c_try_compile "$LINENO"; then : 4291 ac_cv_prog_cc_c89=$ac_arg 4292fi 4293rm -f core conftest.err conftest.$ac_objext 4294 test "x$ac_cv_prog_cc_c89" != "xno" && break 4295done 4296rm -f conftest.$ac_ext 4297CC=$ac_save_CC 4298 4299fi 4300# AC_CACHE_VAL 4301case "x$ac_cv_prog_cc_c89" in 4302 x) 4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4304$as_echo "none needed" >&6; } ;; 4305 xno) 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4307$as_echo "unsupported" >&6; } ;; 4308 *) 4309 CC="$CC $ac_cv_prog_cc_c89" 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4311$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4312esac 4313if test "x$ac_cv_prog_cc_c89" != xno; then : 4314 4315fi 4316 4317ac_ext=c 4318ac_cpp='$CPP $CPPFLAGS' 4319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4321ac_compiler_gnu=$ac_cv_c_compiler_gnu 4322 4323ac_ext=c 4324ac_cpp='$CPP $CPPFLAGS' 4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4327ac_compiler_gnu=$ac_cv_c_compiler_gnu 4328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4329$as_echo_n "checking how to run the C preprocessor... " >&6; } 4330# On Suns, sometimes $CPP names a directory. 4331if test -n "$CPP" && test -d "$CPP"; then 4332 CPP= 4333fi 4334if test -z "$CPP"; then 4335 if ${ac_cv_prog_CPP+:} false; then : 4336 $as_echo_n "(cached) " >&6 4337else 4338 # Double quotes because CPP needs to be expanded 4339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4340 do 4341 ac_preproc_ok=false 4342for ac_c_preproc_warn_flag in '' yes 4343do 4344 # Use a header file that comes with gcc, so configuring glibc 4345 # with a fresh cross-compiler works. 4346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4347 # <limits.h> exists even on freestanding compilers. 4348 # On the NeXT, cc -E runs the code through the compiler's parser, 4349 # not just through cpp. "Syntax error" is here to catch this case. 4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4351/* end confdefs.h. */ 4352#ifdef __STDC__ 4353# include <limits.h> 4354#else 4355# include <assert.h> 4356#endif 4357 Syntax error 4358_ACEOF 4359if ac_fn_c_try_cpp "$LINENO"; then : 4360 4361else 4362 # Broken: fails on valid input. 4363continue 4364fi 4365rm -f conftest.err conftest.i conftest.$ac_ext 4366 4367 # OK, works on sane cases. Now check whether nonexistent headers 4368 # can be detected and how. 4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4370/* end confdefs.h. */ 4371#include <ac_nonexistent.h> 4372_ACEOF 4373if ac_fn_c_try_cpp "$LINENO"; then : 4374 # Broken: success on invalid input. 4375continue 4376else 4377 # Passes both tests. 4378ac_preproc_ok=: 4379break 4380fi 4381rm -f conftest.err conftest.i conftest.$ac_ext 4382 4383done 4384# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4385rm -f conftest.i conftest.err conftest.$ac_ext 4386if $ac_preproc_ok; then : 4387 break 4388fi 4389 4390 done 4391 ac_cv_prog_CPP=$CPP 4392 4393fi 4394 CPP=$ac_cv_prog_CPP 4395else 4396 ac_cv_prog_CPP=$CPP 4397fi 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4399$as_echo "$CPP" >&6; } 4400ac_preproc_ok=false 4401for ac_c_preproc_warn_flag in '' yes 4402do 4403 # Use a header file that comes with gcc, so configuring glibc 4404 # with a fresh cross-compiler works. 4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4406 # <limits.h> exists even on freestanding compilers. 4407 # On the NeXT, cc -E runs the code through the compiler's parser, 4408 # not just through cpp. "Syntax error" is here to catch this case. 4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4410/* end confdefs.h. */ 4411#ifdef __STDC__ 4412# include <limits.h> 4413#else 4414# include <assert.h> 4415#endif 4416 Syntax error 4417_ACEOF 4418if ac_fn_c_try_cpp "$LINENO"; then : 4419 4420else 4421 # Broken: fails on valid input. 4422continue 4423fi 4424rm -f conftest.err conftest.i conftest.$ac_ext 4425 4426 # OK, works on sane cases. Now check whether nonexistent headers 4427 # can be detected and how. 4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4429/* end confdefs.h. */ 4430#include <ac_nonexistent.h> 4431_ACEOF 4432if ac_fn_c_try_cpp "$LINENO"; then : 4433 # Broken: success on invalid input. 4434continue 4435else 4436 # Passes both tests. 4437ac_preproc_ok=: 4438break 4439fi 4440rm -f conftest.err conftest.i conftest.$ac_ext 4441 4442done 4443# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4444rm -f conftest.i conftest.err conftest.$ac_ext 4445if $ac_preproc_ok; then : 4446 4447else 4448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4450as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4451See \`config.log' for more details" "$LINENO" 5; } 4452fi 4453 4454ac_ext=c 4455ac_cpp='$CPP $CPPFLAGS' 4456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4458ac_compiler_gnu=$ac_cv_c_compiler_gnu 4459 4460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4461$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4462if ${ac_cv_path_GREP+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464else 4465 if test -z "$GREP"; then 4466 ac_path_GREP_found=false 4467 # Loop through the user's path and test for each of PROGNAME-LIST 4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4470do 4471 IFS=$as_save_IFS 4472 test -z "$as_dir" && as_dir=. 4473 for ac_prog in grep ggrep; do 4474 for ac_exec_ext in '' $ac_executable_extensions; do 4475 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4476 as_fn_executable_p "$ac_path_GREP" || continue 4477# Check for GNU ac_path_GREP and select it if it is found. 4478 # Check for GNU $ac_path_GREP 4479case `"$ac_path_GREP" --version 2>&1` in 4480*GNU*) 4481 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4482*) 4483 ac_count=0 4484 $as_echo_n 0123456789 >"conftest.in" 4485 while : 4486 do 4487 cat "conftest.in" "conftest.in" >"conftest.tmp" 4488 mv "conftest.tmp" "conftest.in" 4489 cp "conftest.in" "conftest.nl" 4490 $as_echo 'GREP' >> "conftest.nl" 4491 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4493 as_fn_arith $ac_count + 1 && ac_count=$as_val 4494 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4495 # Best one so far, save it but keep looking for a better one 4496 ac_cv_path_GREP="$ac_path_GREP" 4497 ac_path_GREP_max=$ac_count 4498 fi 4499 # 10*(2^10) chars as input seems more than enough 4500 test $ac_count -gt 10 && break 4501 done 4502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4503esac 4504 4505 $ac_path_GREP_found && break 3 4506 done 4507 done 4508 done 4509IFS=$as_save_IFS 4510 if test -z "$ac_cv_path_GREP"; then 4511 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4512 fi 4513else 4514 ac_cv_path_GREP=$GREP 4515fi 4516 4517fi 4518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4519$as_echo "$ac_cv_path_GREP" >&6; } 4520 GREP="$ac_cv_path_GREP" 4521 4522 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4524$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4525if ${ac_cv_path_SED+:} false; then : 4526 $as_echo_n "(cached) " >&6 4527else 4528 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4529 for ac_i in 1 2 3 4 5 6 7; do 4530 ac_script="$ac_script$as_nl$ac_script" 4531 done 4532 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4533 { ac_script=; unset ac_script;} 4534 if test -z "$SED"; then 4535 ac_path_SED_found=false 4536 # Loop through the user's path and test for each of PROGNAME-LIST 4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4538for as_dir in $PATH 4539do 4540 IFS=$as_save_IFS 4541 test -z "$as_dir" && as_dir=. 4542 for ac_prog in sed gsed; do 4543 for ac_exec_ext in '' $ac_executable_extensions; do 4544 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4545 as_fn_executable_p "$ac_path_SED" || continue 4546# Check for GNU ac_path_SED and select it if it is found. 4547 # Check for GNU $ac_path_SED 4548case `"$ac_path_SED" --version 2>&1` in 4549*GNU*) 4550 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4551*) 4552 ac_count=0 4553 $as_echo_n 0123456789 >"conftest.in" 4554 while : 4555 do 4556 cat "conftest.in" "conftest.in" >"conftest.tmp" 4557 mv "conftest.tmp" "conftest.in" 4558 cp "conftest.in" "conftest.nl" 4559 $as_echo '' >> "conftest.nl" 4560 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4561 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4562 as_fn_arith $ac_count + 1 && ac_count=$as_val 4563 if test $ac_count -gt ${ac_path_SED_max-0}; then 4564 # Best one so far, save it but keep looking for a better one 4565 ac_cv_path_SED="$ac_path_SED" 4566 ac_path_SED_max=$ac_count 4567 fi 4568 # 10*(2^10) chars as input seems more than enough 4569 test $ac_count -gt 10 && break 4570 done 4571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4572esac 4573 4574 $ac_path_SED_found && break 3 4575 done 4576 done 4577 done 4578IFS=$as_save_IFS 4579 if test -z "$ac_cv_path_SED"; then 4580 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4581 fi 4582else 4583 ac_cv_path_SED=$SED 4584fi 4585 4586fi 4587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4588$as_echo "$ac_cv_path_SED" >&6; } 4589 SED="$ac_cv_path_SED" 4590 rm -f conftest.sed 4591 4592 4593 4594 4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 4596$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } 4597 4598# Check whether --with-cxx_main was given. 4599if test "${with_cxx_main+set}" = set; then : 4600 withval=$with_cxx_main; 4601 4602 case $withval in 4603 no) with_cxx_main=no 4604 MAINCC='$(CC)';; 4605 yes) with_cxx_main=yes 4606 MAINCC='$(CXX)';; 4607 *) with_cxx_main=yes 4608 MAINCC=$withval 4609 if test -z "$CXX" 4610 then 4611 CXX=$withval 4612 fi;; 4613 esac 4614else 4615 4616 with_cxx_main=no 4617 MAINCC='$(CC)' 4618 4619fi 4620 4621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 4622$as_echo "$with_cxx_main" >&6; } 4623 4624preset_cxx="$CXX" 4625if test -z "$CXX" 4626then 4627 case "$CC" in 4628 gcc) if test -n "$ac_tool_prefix"; then 4629 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. 4630set dummy ${ac_tool_prefix}g++; ac_word=$2 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4632$as_echo_n "checking for $ac_word... " >&6; } 4633if ${ac_cv_path_CXX+:} false; then : 4634 $as_echo_n "(cached) " >&6 4635else 4636 case $CXX in 4637 [\\/]* | ?:[\\/]*) 4638 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4639 ;; 4640 *) 4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4642for as_dir in notfound 4643do 4644 IFS=$as_save_IFS 4645 test -z "$as_dir" && as_dir=. 4646 for ac_exec_ext in '' $ac_executable_extensions; do 4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4648 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4650 break 2 4651 fi 4652done 4653 done 4654IFS=$as_save_IFS 4655 4656 ;; 4657esac 4658fi 4659CXX=$ac_cv_path_CXX 4660if test -n "$CXX"; then 4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4662$as_echo "$CXX" >&6; } 4663else 4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4665$as_echo "no" >&6; } 4666fi 4667 4668 4669fi 4670if test -z "$ac_cv_path_CXX"; then 4671 ac_pt_CXX=$CXX 4672 # Extract the first word of "g++", so it can be a program name with args. 4673set dummy g++; ac_word=$2 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4675$as_echo_n "checking for $ac_word... " >&6; } 4676if ${ac_cv_path_ac_pt_CXX+:} false; then : 4677 $as_echo_n "(cached) " >&6 4678else 4679 case $ac_pt_CXX in 4680 [\\/]* | ?:[\\/]*) 4681 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4682 ;; 4683 *) 4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4685for as_dir in notfound 4686do 4687 IFS=$as_save_IFS 4688 test -z "$as_dir" && as_dir=. 4689 for ac_exec_ext in '' $ac_executable_extensions; do 4690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4691 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4693 break 2 4694 fi 4695done 4696 done 4697IFS=$as_save_IFS 4698 4699 ;; 4700esac 4701fi 4702ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4703if test -n "$ac_pt_CXX"; then 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4705$as_echo "$ac_pt_CXX" >&6; } 4706else 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4708$as_echo "no" >&6; } 4709fi 4710 4711 if test "x$ac_pt_CXX" = x; then 4712 CXX="g++" 4713 else 4714 case $cross_compiling:$ac_tool_warned in 4715yes:) 4716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4718ac_tool_warned=yes ;; 4719esac 4720 CXX=$ac_pt_CXX 4721 fi 4722else 4723 CXX="$ac_cv_path_CXX" 4724fi 4725 ;; 4726 cc) if test -n "$ac_tool_prefix"; then 4727 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. 4728set dummy ${ac_tool_prefix}c++; ac_word=$2 4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4730$as_echo_n "checking for $ac_word... " >&6; } 4731if ${ac_cv_path_CXX+:} false; then : 4732 $as_echo_n "(cached) " >&6 4733else 4734 case $CXX in 4735 [\\/]* | ?:[\\/]*) 4736 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4737 ;; 4738 *) 4739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4740for as_dir in notfound 4741do 4742 IFS=$as_save_IFS 4743 test -z "$as_dir" && as_dir=. 4744 for ac_exec_ext in '' $ac_executable_extensions; do 4745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4746 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4748 break 2 4749 fi 4750done 4751 done 4752IFS=$as_save_IFS 4753 4754 ;; 4755esac 4756fi 4757CXX=$ac_cv_path_CXX 4758if test -n "$CXX"; then 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4760$as_echo "$CXX" >&6; } 4761else 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4763$as_echo "no" >&6; } 4764fi 4765 4766 4767fi 4768if test -z "$ac_cv_path_CXX"; then 4769 ac_pt_CXX=$CXX 4770 # Extract the first word of "c++", so it can be a program name with args. 4771set dummy c++; ac_word=$2 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4773$as_echo_n "checking for $ac_word... " >&6; } 4774if ${ac_cv_path_ac_pt_CXX+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 case $ac_pt_CXX in 4778 [\\/]* | ?:[\\/]*) 4779 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4780 ;; 4781 *) 4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4783for as_dir in notfound 4784do 4785 IFS=$as_save_IFS 4786 test -z "$as_dir" && as_dir=. 4787 for ac_exec_ext in '' $ac_executable_extensions; do 4788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4789 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4791 break 2 4792 fi 4793done 4794 done 4795IFS=$as_save_IFS 4796 4797 ;; 4798esac 4799fi 4800ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4801if test -n "$ac_pt_CXX"; then 4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4803$as_echo "$ac_pt_CXX" >&6; } 4804else 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4806$as_echo "no" >&6; } 4807fi 4808 4809 if test "x$ac_pt_CXX" = x; then 4810 CXX="c++" 4811 else 4812 case $cross_compiling:$ac_tool_warned in 4813yes:) 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4815$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4816ac_tool_warned=yes ;; 4817esac 4818 CXX=$ac_pt_CXX 4819 fi 4820else 4821 CXX="$ac_cv_path_CXX" 4822fi 4823 ;; 4824 clang|*/clang) if test -n "$ac_tool_prefix"; then 4825 # Extract the first word of "${ac_tool_prefix}clang++", so it can be a program name with args. 4826set dummy ${ac_tool_prefix}clang++; ac_word=$2 4827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4828$as_echo_n "checking for $ac_word... " >&6; } 4829if ${ac_cv_path_CXX+:} false; then : 4830 $as_echo_n "(cached) " >&6 4831else 4832 case $CXX in 4833 [\\/]* | ?:[\\/]*) 4834 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4835 ;; 4836 *) 4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4838for as_dir in notfound 4839do 4840 IFS=$as_save_IFS 4841 test -z "$as_dir" && as_dir=. 4842 for ac_exec_ext in '' $ac_executable_extensions; do 4843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4844 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4846 break 2 4847 fi 4848done 4849 done 4850IFS=$as_save_IFS 4851 4852 ;; 4853esac 4854fi 4855CXX=$ac_cv_path_CXX 4856if test -n "$CXX"; then 4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4858$as_echo "$CXX" >&6; } 4859else 4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4861$as_echo "no" >&6; } 4862fi 4863 4864 4865fi 4866if test -z "$ac_cv_path_CXX"; then 4867 ac_pt_CXX=$CXX 4868 # Extract the first word of "clang++", so it can be a program name with args. 4869set dummy clang++; ac_word=$2 4870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4871$as_echo_n "checking for $ac_word... " >&6; } 4872if ${ac_cv_path_ac_pt_CXX+:} false; then : 4873 $as_echo_n "(cached) " >&6 4874else 4875 case $ac_pt_CXX in 4876 [\\/]* | ?:[\\/]*) 4877 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4878 ;; 4879 *) 4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4881for as_dir in notfound 4882do 4883 IFS=$as_save_IFS 4884 test -z "$as_dir" && as_dir=. 4885 for ac_exec_ext in '' $ac_executable_extensions; do 4886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4887 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4889 break 2 4890 fi 4891done 4892 done 4893IFS=$as_save_IFS 4894 4895 ;; 4896esac 4897fi 4898ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4899if test -n "$ac_pt_CXX"; then 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4901$as_echo "$ac_pt_CXX" >&6; } 4902else 4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4904$as_echo "no" >&6; } 4905fi 4906 4907 if test "x$ac_pt_CXX" = x; then 4908 CXX="clang++" 4909 else 4910 case $cross_compiling:$ac_tool_warned in 4911yes:) 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4914ac_tool_warned=yes ;; 4915esac 4916 CXX=$ac_pt_CXX 4917 fi 4918else 4919 CXX="$ac_cv_path_CXX" 4920fi 4921 ;; 4922 icc|*/icc) if test -n "$ac_tool_prefix"; then 4923 # Extract the first word of "${ac_tool_prefix}icpc", so it can be a program name with args. 4924set dummy ${ac_tool_prefix}icpc; ac_word=$2 4925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4926$as_echo_n "checking for $ac_word... " >&6; } 4927if ${ac_cv_path_CXX+:} false; then : 4928 $as_echo_n "(cached) " >&6 4929else 4930 case $CXX in 4931 [\\/]* | ?:[\\/]*) 4932 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4933 ;; 4934 *) 4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4936for as_dir in notfound 4937do 4938 IFS=$as_save_IFS 4939 test -z "$as_dir" && as_dir=. 4940 for ac_exec_ext in '' $ac_executable_extensions; do 4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4942 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4944 break 2 4945 fi 4946done 4947 done 4948IFS=$as_save_IFS 4949 4950 ;; 4951esac 4952fi 4953CXX=$ac_cv_path_CXX 4954if test -n "$CXX"; then 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4956$as_echo "$CXX" >&6; } 4957else 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4959$as_echo "no" >&6; } 4960fi 4961 4962 4963fi 4964if test -z "$ac_cv_path_CXX"; then 4965 ac_pt_CXX=$CXX 4966 # Extract the first word of "icpc", so it can be a program name with args. 4967set dummy icpc; ac_word=$2 4968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4969$as_echo_n "checking for $ac_word... " >&6; } 4970if ${ac_cv_path_ac_pt_CXX+:} false; then : 4971 $as_echo_n "(cached) " >&6 4972else 4973 case $ac_pt_CXX in 4974 [\\/]* | ?:[\\/]*) 4975 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4976 ;; 4977 *) 4978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4979for as_dir in notfound 4980do 4981 IFS=$as_save_IFS 4982 test -z "$as_dir" && as_dir=. 4983 for ac_exec_ext in '' $ac_executable_extensions; do 4984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4985 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4987 break 2 4988 fi 4989done 4990 done 4991IFS=$as_save_IFS 4992 4993 ;; 4994esac 4995fi 4996ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4997if test -n "$ac_pt_CXX"; then 4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4999$as_echo "$ac_pt_CXX" >&6; } 5000else 5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5002$as_echo "no" >&6; } 5003fi 5004 5005 if test "x$ac_pt_CXX" = x; then 5006 CXX="icpc" 5007 else 5008 case $cross_compiling:$ac_tool_warned in 5009yes:) 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5012ac_tool_warned=yes ;; 5013esac 5014 CXX=$ac_pt_CXX 5015 fi 5016else 5017 CXX="$ac_cv_path_CXX" 5018fi 5019 ;; 5020 esac 5021 if test "$CXX" = "notfound" 5022 then 5023 CXX="" 5024 fi 5025fi 5026if test -z "$CXX" 5027then 5028 if test -n "$ac_tool_prefix"; then 5029 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 5030 do 5031 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5032set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5034$as_echo_n "checking for $ac_word... " >&6; } 5035if ${ac_cv_prog_CXX+:} false; then : 5036 $as_echo_n "(cached) " >&6 5037else 5038 if test -n "$CXX"; then 5039 ac_cv_prog_CXX="$CXX" # Let the user override the test. 5040else 5041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5042for as_dir in $PATH 5043do 5044 IFS=$as_save_IFS 5045 test -z "$as_dir" && as_dir=. 5046 for ac_exec_ext in '' $ac_executable_extensions; do 5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5048 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5050 break 2 5051 fi 5052done 5053 done 5054IFS=$as_save_IFS 5055 5056fi 5057fi 5058CXX=$ac_cv_prog_CXX 5059if test -n "$CXX"; then 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 5061$as_echo "$CXX" >&6; } 5062else 5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5064$as_echo "no" >&6; } 5065fi 5066 5067 5068 test -n "$CXX" && break 5069 done 5070fi 5071if test -z "$CXX"; then 5072 ac_ct_CXX=$CXX 5073 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 5074do 5075 # Extract the first word of "$ac_prog", so it can be a program name with args. 5076set dummy $ac_prog; ac_word=$2 5077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5078$as_echo_n "checking for $ac_word... " >&6; } 5079if ${ac_cv_prog_ac_ct_CXX+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081else 5082 if test -n "$ac_ct_CXX"; then 5083 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 5084else 5085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5086for as_dir in $PATH 5087do 5088 IFS=$as_save_IFS 5089 test -z "$as_dir" && as_dir=. 5090 for ac_exec_ext in '' $ac_executable_extensions; do 5091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5092 ac_cv_prog_ac_ct_CXX="$ac_prog" 5093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5094 break 2 5095 fi 5096done 5097 done 5098IFS=$as_save_IFS 5099 5100fi 5101fi 5102ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 5103if test -n "$ac_ct_CXX"; then 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 5105$as_echo "$ac_ct_CXX" >&6; } 5106else 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5108$as_echo "no" >&6; } 5109fi 5110 5111 5112 test -n "$ac_ct_CXX" && break 5113done 5114 5115 if test "x$ac_ct_CXX" = x; then 5116 CXX="notfound" 5117 else 5118 case $cross_compiling:$ac_tool_warned in 5119yes:) 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5122ac_tool_warned=yes ;; 5123esac 5124 CXX=$ac_ct_CXX 5125 fi 5126fi 5127 5128 if test "$CXX" = "notfound" 5129 then 5130 CXX="" 5131 fi 5132fi 5133if test "$preset_cxx" != "$CXX" 5134then 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: 5136 5137 By default, distutils will build C++ extension modules with \"$CXX\". 5138 If this is not intended, then set CXX on the configure command line. 5139 " >&5 5140$as_echo "$as_me: 5141 5142 By default, distutils will build C++ extension modules with \"$CXX\". 5143 If this is not intended, then set CXX on the configure command line. 5144 " >&6;} 5145fi 5146 5147 5148MULTIARCH=$($CC --print-multiarch 2>/dev/null) 5149 5150 5151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the platform triplet based on compiler characteristics" >&5 5152$as_echo_n "checking for the platform triplet based on compiler characteristics... " >&6; } 5153cat >> conftest.c <<EOF 5154#undef bfin 5155#undef cris 5156#undef fr30 5157#undef linux 5158#undef hppa 5159#undef hpux 5160#undef i386 5161#undef mips 5162#undef powerpc 5163#undef sparc 5164#undef unix 5165#if defined(__ANDROID__) 5166 # Android is not a multiarch system. 5167#elif defined(__linux__) 5168# if defined(__x86_64__) && defined(__LP64__) 5169 x86_64-linux-gnu 5170# elif defined(__x86_64__) && defined(__ILP32__) 5171 x86_64-linux-gnux32 5172# elif defined(__i386__) 5173 i386-linux-gnu 5174# elif defined(__aarch64__) && defined(__AARCH64EL__) 5175# if defined(__ILP32__) 5176 aarch64_ilp32-linux-gnu 5177# else 5178 aarch64-linux-gnu 5179# endif 5180# elif defined(__aarch64__) && defined(__AARCH64EB__) 5181# if defined(__ILP32__) 5182 aarch64_be_ilp32-linux-gnu 5183# else 5184 aarch64_be-linux-gnu 5185# endif 5186# elif defined(__alpha__) 5187 alpha-linux-gnu 5188# elif defined(__ARM_EABI__) && defined(__ARM_PCS_VFP) 5189# if defined(__ARMEL__) 5190 arm-linux-gnueabihf 5191# else 5192 armeb-linux-gnueabihf 5193# endif 5194# elif defined(__ARM_EABI__) && !defined(__ARM_PCS_VFP) 5195# if defined(__ARMEL__) 5196 arm-linux-gnueabi 5197# else 5198 armeb-linux-gnueabi 5199# endif 5200# elif defined(__hppa__) 5201 hppa-linux-gnu 5202# elif defined(__ia64__) 5203 ia64-linux-gnu 5204# elif defined(__m68k__) && !defined(__mcoldfire__) 5205 m68k-linux-gnu 5206# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) && defined(_MIPSEL) 5207# if _MIPS_SIM == _ABIO32 5208 mipsisa32r6el-linux-gnu 5209# elif _MIPS_SIM == _ABIN32 5210 mipsisa64r6el-linux-gnuabin32 5211# elif _MIPS_SIM == _ABI64 5212 mipsisa64r6el-linux-gnuabi64 5213# else 5214# error unknown platform triplet 5215# endif 5216# elif defined(__mips_hard_float) && defined(__mips_isa_rev) && (__mips_isa_rev >=6) 5217# if _MIPS_SIM == _ABIO32 5218 mipsisa32r6-linux-gnu 5219# elif _MIPS_SIM == _ABIN32 5220 mipsisa64r6-linux-gnuabin32 5221# elif _MIPS_SIM == _ABI64 5222 mipsisa64r6-linux-gnuabi64 5223# else 5224# error unknown platform triplet 5225# endif 5226# elif defined(__mips_hard_float) && defined(_MIPSEL) 5227# if _MIPS_SIM == _ABIO32 5228 mipsel-linux-gnu 5229# elif _MIPS_SIM == _ABIN32 5230 mips64el-linux-gnuabin32 5231# elif _MIPS_SIM == _ABI64 5232 mips64el-linux-gnuabi64 5233# else 5234# error unknown platform triplet 5235# endif 5236# elif defined(__mips_hard_float) 5237# if _MIPS_SIM == _ABIO32 5238 mips-linux-gnu 5239# elif _MIPS_SIM == _ABIN32 5240 mips64-linux-gnuabin32 5241# elif _MIPS_SIM == _ABI64 5242 mips64-linux-gnuabi64 5243# else 5244# error unknown platform triplet 5245# endif 5246# elif defined(__or1k__) 5247 or1k-linux-gnu 5248# elif defined(__powerpc__) && defined(__SPE__) 5249 powerpc-linux-gnuspe 5250# elif defined(__powerpc64__) 5251# if defined(__LITTLE_ENDIAN__) 5252 powerpc64le-linux-gnu 5253# else 5254 powerpc64-linux-gnu 5255# endif 5256# elif defined(__powerpc__) 5257 powerpc-linux-gnu 5258# elif defined(__s390x__) 5259 s390x-linux-gnu 5260# elif defined(__s390__) 5261 s390-linux-gnu 5262# elif defined(__sh__) && defined(__LITTLE_ENDIAN__) 5263 sh4-linux-gnu 5264# elif defined(__sparc__) && defined(__arch64__) 5265 sparc64-linux-gnu 5266# elif defined(__sparc__) 5267 sparc-linux-gnu 5268# elif defined(__riscv) 5269# if __riscv_xlen == 32 5270 riscv32-linux-gnu 5271# elif __riscv_xlen == 64 5272 riscv64-linux-gnu 5273# else 5274# error unknown platform triplet 5275# endif 5276# else 5277# error unknown platform triplet 5278# endif 5279#elif defined(__FreeBSD_kernel__) 5280# if defined(__LP64__) 5281 x86_64-kfreebsd-gnu 5282# elif defined(__i386__) 5283 i386-kfreebsd-gnu 5284# else 5285# error unknown platform triplet 5286# endif 5287#elif defined(__gnu_hurd__) 5288 i386-gnu 5289#elif defined(__APPLE__) 5290 darwin 5291#elif defined(__VXWORKS__) 5292 vxworks 5293#else 5294# error unknown platform triplet 5295#endif 5296 5297EOF 5298 5299if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 5300 PLATFORM_TRIPLET=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` 5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PLATFORM_TRIPLET" >&5 5302$as_echo "$PLATFORM_TRIPLET" >&6; } 5303else 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5305$as_echo "none" >&6; } 5306fi 5307rm -f conftest.c conftest.out 5308 5309if test x$PLATFORM_TRIPLET != x && test x$MULTIARCH != x; then 5310 if test x$PLATFORM_TRIPLET != x$MULTIARCH; then 5311 as_fn_error $? "internal configure error for the platform triplet, please file a bug report" "$LINENO" 5 5312 fi 5313elif test x$PLATFORM_TRIPLET != x && test x$MULTIARCH = x; then 5314 MULTIARCH=$PLATFORM_TRIPLET 5315fi 5316 5317if test x$MULTIARCH != x; then 5318 MULTIARCH_CPPFLAGS="-DMULTIARCH=\\\"$MULTIARCH\\\"" 5319fi 5320 5321 5322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wl,--no-as-needed" >&5 5323$as_echo_n "checking for -Wl,--no-as-needed... " >&6; } 5324save_LDFLAGS="$LDFLAGS" 5325LDFLAGS="$LDFLAGS -Wl,--no-as-needed" 5326 5327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5328/* end confdefs.h. */ 5329 5330int 5331main () 5332{ 5333 5334 ; 5335 return 0; 5336} 5337_ACEOF 5338if ac_fn_c_try_link "$LINENO"; then : 5339 NO_AS_NEEDED="-Wl,--no-as-needed" 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5341$as_echo "yes" >&6; } 5342else 5343 NO_AS_NEEDED="" 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5345$as_echo "no" >&6; } 5346fi 5347rm -f core conftest.err conftest.$ac_objext \ 5348 conftest$ac_exeext conftest.$ac_ext 5349LDFLAGS="$save_LDFLAGS" 5350 5351 5352 5353# checks for UNIX variants that set C preprocessor variables 5354 5355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5356$as_echo_n "checking for egrep... " >&6; } 5357if ${ac_cv_path_EGREP+:} false; then : 5358 $as_echo_n "(cached) " >&6 5359else 5360 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5361 then ac_cv_path_EGREP="$GREP -E" 5362 else 5363 if test -z "$EGREP"; then 5364 ac_path_EGREP_found=false 5365 # Loop through the user's path and test for each of PROGNAME-LIST 5366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5367for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5368do 5369 IFS=$as_save_IFS 5370 test -z "$as_dir" && as_dir=. 5371 for ac_prog in egrep; do 5372 for ac_exec_ext in '' $ac_executable_extensions; do 5373 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5374 as_fn_executable_p "$ac_path_EGREP" || continue 5375# Check for GNU ac_path_EGREP and select it if it is found. 5376 # Check for GNU $ac_path_EGREP 5377case `"$ac_path_EGREP" --version 2>&1` in 5378*GNU*) 5379 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5380*) 5381 ac_count=0 5382 $as_echo_n 0123456789 >"conftest.in" 5383 while : 5384 do 5385 cat "conftest.in" "conftest.in" >"conftest.tmp" 5386 mv "conftest.tmp" "conftest.in" 5387 cp "conftest.in" "conftest.nl" 5388 $as_echo 'EGREP' >> "conftest.nl" 5389 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5390 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5391 as_fn_arith $ac_count + 1 && ac_count=$as_val 5392 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5393 # Best one so far, save it but keep looking for a better one 5394 ac_cv_path_EGREP="$ac_path_EGREP" 5395 ac_path_EGREP_max=$ac_count 5396 fi 5397 # 10*(2^10) chars as input seems more than enough 5398 test $ac_count -gt 10 && break 5399 done 5400 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5401esac 5402 5403 $ac_path_EGREP_found && break 3 5404 done 5405 done 5406 done 5407IFS=$as_save_IFS 5408 if test -z "$ac_cv_path_EGREP"; then 5409 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5410 fi 5411else 5412 ac_cv_path_EGREP=$EGREP 5413fi 5414 5415 fi 5416fi 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5418$as_echo "$ac_cv_path_EGREP" >&6; } 5419 EGREP="$ac_cv_path_EGREP" 5420 5421 5422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5423$as_echo_n "checking for ANSI C header files... " >&6; } 5424if ${ac_cv_header_stdc+:} false; then : 5425 $as_echo_n "(cached) " >&6 5426else 5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5428/* end confdefs.h. */ 5429#include <stdlib.h> 5430#include <stdarg.h> 5431#include <string.h> 5432#include <float.h> 5433 5434int 5435main () 5436{ 5437 5438 ; 5439 return 0; 5440} 5441_ACEOF 5442if ac_fn_c_try_compile "$LINENO"; then : 5443 ac_cv_header_stdc=yes 5444else 5445 ac_cv_header_stdc=no 5446fi 5447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5448 5449if test $ac_cv_header_stdc = yes; then 5450 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5452/* end confdefs.h. */ 5453#include <string.h> 5454 5455_ACEOF 5456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5457 $EGREP "memchr" >/dev/null 2>&1; then : 5458 5459else 5460 ac_cv_header_stdc=no 5461fi 5462rm -f conftest* 5463 5464fi 5465 5466if test $ac_cv_header_stdc = yes; then 5467 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5469/* end confdefs.h. */ 5470#include <stdlib.h> 5471 5472_ACEOF 5473if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5474 $EGREP "free" >/dev/null 2>&1; then : 5475 5476else 5477 ac_cv_header_stdc=no 5478fi 5479rm -f conftest* 5480 5481fi 5482 5483if test $ac_cv_header_stdc = yes; then 5484 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5485 if test "$cross_compiling" = yes; then : 5486 : 5487else 5488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5489/* end confdefs.h. */ 5490#include <ctype.h> 5491#include <stdlib.h> 5492#if ((' ' & 0x0FF) == 0x020) 5493# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5494# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5495#else 5496# define ISLOWER(c) \ 5497 (('a' <= (c) && (c) <= 'i') \ 5498 || ('j' <= (c) && (c) <= 'r') \ 5499 || ('s' <= (c) && (c) <= 'z')) 5500# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5501#endif 5502 5503#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5504int 5505main () 5506{ 5507 int i; 5508 for (i = 0; i < 256; i++) 5509 if (XOR (islower (i), ISLOWER (i)) 5510 || toupper (i) != TOUPPER (i)) 5511 return 2; 5512 return 0; 5513} 5514_ACEOF 5515if ac_fn_c_try_run "$LINENO"; then : 5516 5517else 5518 ac_cv_header_stdc=no 5519fi 5520rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5521 conftest.$ac_objext conftest.beam conftest.$ac_ext 5522fi 5523 5524fi 5525fi 5526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5527$as_echo "$ac_cv_header_stdc" >&6; } 5528if test $ac_cv_header_stdc = yes; then 5529 5530$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5531 5532fi 5533 5534# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5535for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5536 inttypes.h stdint.h unistd.h 5537do : 5538 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5539ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5540" 5541if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5542 cat >>confdefs.h <<_ACEOF 5543#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5544_ACEOF 5545 5546fi 5547 5548done 5549 5550 5551 5552 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5553if test "x$ac_cv_header_minix_config_h" = xyes; then : 5554 MINIX=yes 5555else 5556 MINIX= 5557fi 5558 5559 5560 if test "$MINIX" = yes; then 5561 5562$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5563 5564 5565$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5566 5567 5568$as_echo "#define _MINIX 1" >>confdefs.h 5569 5570 fi 5571 5572 5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5574$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5575if ${ac_cv_safe_to_define___extensions__+:} false; then : 5576 $as_echo_n "(cached) " >&6 5577else 5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5579/* end confdefs.h. */ 5580 5581# define __EXTENSIONS__ 1 5582 $ac_includes_default 5583int 5584main () 5585{ 5586 5587 ; 5588 return 0; 5589} 5590_ACEOF 5591if ac_fn_c_try_compile "$LINENO"; then : 5592 ac_cv_safe_to_define___extensions__=yes 5593else 5594 ac_cv_safe_to_define___extensions__=no 5595fi 5596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5597fi 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5599$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5600 test $ac_cv_safe_to_define___extensions__ = yes && 5601 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5602 5603 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5604 5605 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5606 5607 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5608 5609 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5610 5611 5612 5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android API level" >&5 5614$as_echo_n "checking for the Android API level... " >&6; } 5615cat >> conftest.c <<EOF 5616#ifdef __ANDROID__ 5617android_api = __ANDROID_API__ 5618arm_arch = __ARM_ARCH 5619#else 5620#error not Android 5621#endif 5622EOF 5623 5624if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then 5625 ANDROID_API_LEVEL=`sed -n -e '/__ANDROID_API__/d' -e 's/^android_api = //p' conftest.out` 5626 _arm_arch=`sed -n -e '/__ARM_ARCH/d' -e 's/^arm_arch = //p' conftest.out` 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANDROID_API_LEVEL" >&5 5628$as_echo "$ANDROID_API_LEVEL" >&6; } 5629 if test -z "$ANDROID_API_LEVEL"; then 5630 echo 'Fatal: you must define __ANDROID_API__' 5631 exit 1 5632 fi 5633 5634cat >>confdefs.h <<_ACEOF 5635#define ANDROID_API_LEVEL $ANDROID_API_LEVEL 5636_ACEOF 5637 5638 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Android arm ABI" >&5 5640$as_echo_n "checking for the Android arm ABI... " >&6; } 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_arm_arch" >&5 5642$as_echo "$_arm_arch" >&6; } 5643 if test "$_arm_arch" = 7; then 5644 BASECFLAGS="${BASECFLAGS} -mfloat-abi=softfp -mfpu=vfpv3-d16" 5645 LDFLAGS="${LDFLAGS} -march=armv7-a -Wl,--fix-cortex-a8" 5646 fi 5647else 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not Android" >&5 5649$as_echo "not Android" >&6; } 5650fi 5651rm -f conftest.c conftest.out 5652 5653# Check for unsupported systems 5654case $ac_sys_system/$ac_sys_release in 5655atheos*|Linux*/1*) 5656 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. 5657 echo See README for details. 5658 exit 1;; 5659esac 5660 5661 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 5663$as_echo_n "checking for --with-suffix... " >&6; } 5664 5665# Check whether --with-suffix was given. 5666if test "${with_suffix+set}" = set; then : 5667 withval=$with_suffix; 5668 case $withval in 5669 no) EXEEXT=;; 5670 yes) EXEEXT=.exe;; 5671 *) EXEEXT=$withval;; 5672 esac 5673fi 5674 5675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 5676$as_echo "$EXEEXT" >&6; } 5677 5678# Test whether we're running on a non-case-sensitive system, in which 5679# case we give a warning if no ext is given 5680 5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 5682$as_echo_n "checking for case-insensitive build directory... " >&6; } 5683if test ! -d CaseSensitiveTestDir; then 5684mkdir CaseSensitiveTestDir 5685fi 5686 5687if test -d casesensitivetestdir 5688then 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5690$as_echo "yes" >&6; } 5691 BUILDEXEEXT=.exe 5692else 5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5694$as_echo "no" >&6; } 5695 BUILDEXEEXT=$EXEEXT 5696fi 5697rmdir CaseSensitiveTestDir 5698 5699case $ac_sys_system in 5700hp*|HP*) 5701 case $CC in 5702 cc|*/cc) CC="$CC -Ae";; 5703 esac;; 5704esac 5705 5706 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 5708$as_echo_n "checking LIBRARY... " >&6; } 5709if test -z "$LIBRARY" 5710then 5711 LIBRARY='libpython$(VERSION)$(ABIFLAGS).a' 5712fi 5713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 5714$as_echo "$LIBRARY" >&6; } 5715 5716# LDLIBRARY is the name of the library to link against (as opposed to the 5717# name of the library into which to insert object files). BLDLIBRARY is also 5718# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY 5719# is blank as the main program is not linked directly against LDLIBRARY. 5720# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On 5721# systems without shared libraries, LDLIBRARY is the same as LIBRARY 5722# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, 5723# DLLLIBRARY is the shared (i.e., DLL) library. 5724# 5725# RUNSHARED is used to run shared python without installed libraries 5726# 5727# INSTSONAME is the name of the shared library that will be use to install 5728# on the system - some systems like version suffix, others don't 5729# 5730# LDVERSION is the shared library version number, normally the Python version 5731# with the ABI build flags appended. 5732 5733 5734 5735 5736 5737 5738 5739 5740LDLIBRARY="$LIBRARY" 5741BLDLIBRARY='$(LDLIBRARY)' 5742INSTSONAME='$(LDLIBRARY)' 5743DLLLIBRARY='' 5744LDLIBRARYDIR='' 5745RUNSHARED='' 5746LDVERSION="$VERSION" 5747 5748# LINKCC is the command that links the python executable -- default is $(CC). 5749# If CXX is set, and if it is needed to link a main function that was 5750# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: 5751# python might then depend on the C++ runtime 5752# This is altered for AIX in order to build the export list before 5753# linking. 5754 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 5756$as_echo_n "checking LINKCC... " >&6; } 5757if test -z "$LINKCC" 5758then 5759 LINKCC='$(PURIFY) $(MAINCC)' 5760 case $ac_sys_system in 5761 AIX*) 5762 exp_extra="\"\"" 5763 if test $ac_sys_release -ge 5 -o \ 5764 $ac_sys_release -eq 4 -a `uname -r` -ge 2 ; then 5765 exp_extra="." 5766 fi 5767 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; 5768 QNX*) 5769 # qcc must be used because the other compilers do not 5770 # support -N. 5771 LINKCC=qcc;; 5772 esac 5773fi 5774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 5775$as_echo "$LINKCC" >&6; } 5776 5777# GNULD is set to "yes" if the GNU linker is used. If this goes wrong 5778# make sure we default having it set to "no": this is used by 5779# distutils.unixccompiler to know if it should add --enable-new-dtags 5780# to linker command lines, and failing to detect GNU ld simply results 5781# in the same bahaviour as before. 5782 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5784$as_echo_n "checking for GNU ld... " >&6; } 5785ac_prog=ld 5786if test "$GCC" = yes; then 5787 ac_prog=`$CC -print-prog-name=ld` 5788fi 5789case `"$ac_prog" -V 2>&1 < /dev/null` in 5790 *GNU*) 5791 GNULD=yes;; 5792 *) 5793 GNULD=no;; 5794esac 5795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 5796$as_echo "$GNULD" >&6; } 5797 5798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 5799$as_echo_n "checking for --enable-shared... " >&6; } 5800# Check whether --enable-shared was given. 5801if test "${enable_shared+set}" = set; then : 5802 enableval=$enable_shared; 5803fi 5804 5805 5806if test -z "$enable_shared" 5807then 5808 case $ac_sys_system in 5809 CYGWIN*) 5810 enable_shared="yes";; 5811 *) 5812 enable_shared="no";; 5813 esac 5814fi 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 5816$as_echo "$enable_shared" >&6; } 5817 5818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 5819$as_echo_n "checking for --enable-profiling... " >&6; } 5820# Check whether --enable-profiling was given. 5821if test "${enable_profiling+set}" = set; then : 5822 enableval=$enable_profiling; 5823fi 5824 5825if test "x$enable_profiling" = xyes; then 5826 ac_save_cc="$CC" 5827 CC="$CC -pg" 5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5829/* end confdefs.h. */ 5830int main() { return 0; } 5831_ACEOF 5832if ac_fn_c_try_link "$LINENO"; then : 5833 5834else 5835 enable_profiling=no 5836fi 5837rm -f core conftest.err conftest.$ac_objext \ 5838 conftest$ac_exeext conftest.$ac_ext 5839 CC="$ac_save_cc" 5840else 5841 enable_profiling=no 5842fi 5843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 5844$as_echo "$enable_profiling" >&6; } 5845 5846if test "x$enable_profiling" = xyes; then 5847 BASECFLAGS="-pg $BASECFLAGS" 5848 LDFLAGS="-pg $LDFLAGS" 5849fi 5850 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 5852$as_echo_n "checking LDLIBRARY... " >&6; } 5853 5854# MacOSX framework builds need more magic. LDLIBRARY is the dynamic 5855# library that we build, but we do not want to link against it (we 5856# will find it with a -framework option). For this reason there is an 5857# extra variable BLDLIBRARY against which Python and the extension 5858# modules are linked, BLDLIBRARY. This is normally the same as 5859# LDLIBRARY, but empty for MacOSX framework builds. 5860if test "$enable_framework" 5861then 5862 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 5863 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} 5864 BLDLIBRARY='' 5865else 5866 BLDLIBRARY='$(LDLIBRARY)' 5867fi 5868 5869# Other platforms follow 5870if test $enable_shared = "yes"; then 5871 PY_ENABLE_SHARED=1 5872 5873$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h 5874 5875 case $ac_sys_system in 5876 CYGWIN*) 5877 LDLIBRARY='libpython$(LDVERSION).dll.a' 5878 DLLLIBRARY='libpython$(LDVERSION).dll' 5879 ;; 5880 SunOS*) 5881 LDLIBRARY='libpython$(LDVERSION).so' 5882 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(LDVERSION)' 5883 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5884 INSTSONAME="$LDLIBRARY".$SOVERSION 5885 if test "$with_pydebug" != yes 5886 then 5887 PY3LIBRARY=libpython3.so 5888 fi 5889 ;; 5890 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) 5891 LDLIBRARY='libpython$(LDVERSION).so' 5892 BLDLIBRARY='-L. -lpython$(LDVERSION)' 5893 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5894 INSTSONAME="$LDLIBRARY".$SOVERSION 5895 if test "$with_pydebug" != yes 5896 then 5897 PY3LIBRARY=libpython3.so 5898 fi 5899 ;; 5900 hp*|HP*) 5901 case `uname -m` in 5902 ia64) 5903 LDLIBRARY='libpython$(LDVERSION).so' 5904 ;; 5905 *) 5906 LDLIBRARY='libpython$(LDVERSION).sl' 5907 ;; 5908 esac 5909 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(LDVERSION)' 5910 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} 5911 ;; 5912 Darwin*) 5913 LDLIBRARY='libpython$(LDVERSION).dylib' 5914 BLDLIBRARY='-L. -lpython$(LDVERSION)' 5915 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} 5916 ;; 5917 AIX*) 5918 LDLIBRARY='libpython$(LDVERSION).so' 5919 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} 5920 ;; 5921 5922 esac 5923else # shared is disabled 5924 PY_ENABLE_SHARED=0 5925 case $ac_sys_system in 5926 CYGWIN*) 5927 BLDLIBRARY='$(LIBRARY)' 5928 LDLIBRARY='libpython$(LDVERSION).dll.a' 5929 ;; 5930 esac 5931fi 5932 5933if test "$cross_compiling" = yes; then 5934 RUNSHARED= 5935fi 5936 5937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 5938$as_echo "$LDLIBRARY" >&6; } 5939 5940 5941if test -n "$ac_tool_prefix"; then 5942 for ac_prog in ar aal 5943 do 5944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5945set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5947$as_echo_n "checking for $ac_word... " >&6; } 5948if ${ac_cv_prog_AR+:} false; then : 5949 $as_echo_n "(cached) " >&6 5950else 5951 if test -n "$AR"; then 5952 ac_cv_prog_AR="$AR" # Let the user override the test. 5953else 5954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5955for as_dir in $PATH 5956do 5957 IFS=$as_save_IFS 5958 test -z "$as_dir" && as_dir=. 5959 for ac_exec_ext in '' $ac_executable_extensions; do 5960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5961 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5963 break 2 5964 fi 5965done 5966 done 5967IFS=$as_save_IFS 5968 5969fi 5970fi 5971AR=$ac_cv_prog_AR 5972if test -n "$AR"; then 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5974$as_echo "$AR" >&6; } 5975else 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5977$as_echo "no" >&6; } 5978fi 5979 5980 5981 test -n "$AR" && break 5982 done 5983fi 5984if test -z "$AR"; then 5985 ac_ct_AR=$AR 5986 for ac_prog in ar aal 5987do 5988 # Extract the first word of "$ac_prog", so it can be a program name with args. 5989set dummy $ac_prog; ac_word=$2 5990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5991$as_echo_n "checking for $ac_word... " >&6; } 5992if ${ac_cv_prog_ac_ct_AR+:} false; then : 5993 $as_echo_n "(cached) " >&6 5994else 5995 if test -n "$ac_ct_AR"; then 5996 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5997else 5998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5999for as_dir in $PATH 6000do 6001 IFS=$as_save_IFS 6002 test -z "$as_dir" && as_dir=. 6003 for ac_exec_ext in '' $ac_executable_extensions; do 6004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6005 ac_cv_prog_ac_ct_AR="$ac_prog" 6006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6007 break 2 6008 fi 6009done 6010 done 6011IFS=$as_save_IFS 6012 6013fi 6014fi 6015ac_ct_AR=$ac_cv_prog_ac_ct_AR 6016if test -n "$ac_ct_AR"; then 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6018$as_echo "$ac_ct_AR" >&6; } 6019else 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6021$as_echo "no" >&6; } 6022fi 6023 6024 6025 test -n "$ac_ct_AR" && break 6026done 6027 6028 if test "x$ac_ct_AR" = x; then 6029 AR="ar" 6030 else 6031 case $cross_compiling:$ac_tool_warned in 6032yes:) 6033{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6034$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6035ac_tool_warned=yes ;; 6036esac 6037 AR=$ac_ct_AR 6038 fi 6039fi 6040 6041 6042# tweak ARFLAGS only if the user didn't set it on the command line 6043 6044if test -z "$ARFLAGS" 6045then 6046 ARFLAGS="rcs" 6047fi 6048 6049if test -n "$ac_tool_prefix"; then 6050 for ac_prog in readelf 6051 do 6052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6053set dummy $ac_tool_prefix$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_READELF+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 if test -n "$READELF"; then 6060 ac_cv_prog_READELF="$READELF" # 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_READELF="$ac_tool_prefix$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 6079READELF=$ac_cv_prog_READELF 6080if test -n "$READELF"; then 6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 6082$as_echo "$READELF" >&6; } 6083else 6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6085$as_echo "no" >&6; } 6086fi 6087 6088 6089 test -n "$READELF" && break 6090 done 6091fi 6092if test -z "$READELF"; then 6093 ac_ct_READELF=$READELF 6094 for ac_prog in readelf 6095do 6096 # Extract the first word of "$ac_prog", so it can be a program name with args. 6097set dummy $ac_prog; ac_word=$2 6098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6099$as_echo_n "checking for $ac_word... " >&6; } 6100if ${ac_cv_prog_ac_ct_READELF+:} false; then : 6101 $as_echo_n "(cached) " >&6 6102else 6103 if test -n "$ac_ct_READELF"; then 6104 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. 6105else 6106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6107for as_dir in $PATH 6108do 6109 IFS=$as_save_IFS 6110 test -z "$as_dir" && as_dir=. 6111 for ac_exec_ext in '' $ac_executable_extensions; do 6112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6113 ac_cv_prog_ac_ct_READELF="$ac_prog" 6114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6115 break 2 6116 fi 6117done 6118 done 6119IFS=$as_save_IFS 6120 6121fi 6122fi 6123ac_ct_READELF=$ac_cv_prog_ac_ct_READELF 6124if test -n "$ac_ct_READELF"; then 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 6126$as_echo "$ac_ct_READELF" >&6; } 6127else 6128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6129$as_echo "no" >&6; } 6130fi 6131 6132 6133 test -n "$ac_ct_READELF" && break 6134done 6135 6136 if test "x$ac_ct_READELF" = x; then 6137 READELF=":" 6138 else 6139 case $cross_compiling:$ac_tool_warned in 6140yes:) 6141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6143ac_tool_warned=yes ;; 6144esac 6145 READELF=$ac_ct_READELF 6146 fi 6147fi 6148 6149if test "$cross_compiling" = yes; then 6150 case "$READELF" in 6151 readelf|:) 6152 as_fn_error $? "readelf for the host is required for cross builds" "$LINENO" 5 6153 ;; 6154 esac 6155fi 6156 6157 6158 6159case $MACHDEP in 6160hp*|HP*) 6161 # install -d does not work on HP-UX 6162 if test -z "$INSTALL" 6163 then 6164 INSTALL="${srcdir}/install-sh -c" 6165 fi 6166esac 6167# Find a good install program. We prefer a C program (faster), 6168# so one script is as good as another. But avoid the broken or 6169# incompatible versions: 6170# SysV /etc/install, /usr/sbin/install 6171# SunOS /usr/etc/install 6172# IRIX /sbin/install 6173# AIX /bin/install 6174# AmigaOS /C/install, which installs bootblocks on floppy discs 6175# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6176# AFS /usr/afsws/bin/install, which mishandles nonexistent args 6177# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6178# OS/2's system install, which has a completely different semantic 6179# ./install, which can be erroneously created by make from ./install.sh. 6180# Reject install programs that cannot install multiple files. 6181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 6182$as_echo_n "checking for a BSD-compatible install... " >&6; } 6183if test -z "$INSTALL"; then 6184if ${ac_cv_path_install+:} false; then : 6185 $as_echo_n "(cached) " >&6 6186else 6187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6188for as_dir in $PATH 6189do 6190 IFS=$as_save_IFS 6191 test -z "$as_dir" && as_dir=. 6192 # Account for people who put trailing slashes in PATH elements. 6193case $as_dir/ in #(( 6194 ./ | .// | /[cC]/* | \ 6195 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6196 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 6197 /usr/ucb/* ) ;; 6198 *) 6199 # OSF1 and SCO ODT 3.0 have their own names for install. 6200 # Don't use installbsd from OSF since it installs stuff as root 6201 # by default. 6202 for ac_prog in ginstall scoinst install; do 6203 for ac_exec_ext in '' $ac_executable_extensions; do 6204 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 6205 if test $ac_prog = install && 6206 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6207 # AIX install. It has an incompatible calling convention. 6208 : 6209 elif test $ac_prog = install && 6210 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6211 # program-specific install script used by HP pwplus--don't use. 6212 : 6213 else 6214 rm -rf conftest.one conftest.two conftest.dir 6215 echo one > conftest.one 6216 echo two > conftest.two 6217 mkdir conftest.dir 6218 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 6219 test -s conftest.one && test -s conftest.two && 6220 test -s conftest.dir/conftest.one && 6221 test -s conftest.dir/conftest.two 6222 then 6223 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6224 break 3 6225 fi 6226 fi 6227 fi 6228 done 6229 done 6230 ;; 6231esac 6232 6233 done 6234IFS=$as_save_IFS 6235 6236rm -rf conftest.one conftest.two conftest.dir 6237 6238fi 6239 if test "${ac_cv_path_install+set}" = set; then 6240 INSTALL=$ac_cv_path_install 6241 else 6242 # As a last resort, use the slow shell script. Don't cache a 6243 # value for INSTALL within a source directory, because that will 6244 # break other packages using the cache if that directory is 6245 # removed, or if the value is a relative name. 6246 INSTALL=$ac_install_sh 6247 fi 6248fi 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 6250$as_echo "$INSTALL" >&6; } 6251 6252# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6253# It thinks the first close brace ends the variable substitution. 6254test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6255 6256test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6257 6258test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6259 6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 6261$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 6262if test -z "$MKDIR_P"; then 6263 if ${ac_cv_path_mkdir+:} false; then : 6264 $as_echo_n "(cached) " >&6 6265else 6266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6267for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 6268do 6269 IFS=$as_save_IFS 6270 test -z "$as_dir" && as_dir=. 6271 for ac_prog in mkdir gmkdir; do 6272 for ac_exec_ext in '' $ac_executable_extensions; do 6273 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 6274 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 6275 'mkdir (GNU coreutils) '* | \ 6276 'mkdir (coreutils) '* | \ 6277 'mkdir (fileutils) '4.1*) 6278 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 6279 break 3;; 6280 esac 6281 done 6282 done 6283 done 6284IFS=$as_save_IFS 6285 6286fi 6287 6288 test -d ./--version && rmdir ./--version 6289 if test "${ac_cv_path_mkdir+set}" = set; then 6290 MKDIR_P="$ac_cv_path_mkdir -p" 6291 else 6292 # As a last resort, use the slow shell script. Don't cache a 6293 # value for MKDIR_P within a source directory, because that will 6294 # break other packages using the cache if that directory is 6295 # removed, or if the value is a relative name. 6296 MKDIR_P="$ac_install_sh -d" 6297 fi 6298fi 6299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 6300$as_echo "$MKDIR_P" >&6; } 6301 6302 6303# Not every filesystem supports hard links 6304 6305if test -z "$LN" ; then 6306 case $ac_sys_system in 6307 CYGWIN*) LN="ln -s";; 6308 *) LN=ln;; 6309 esac 6310fi 6311 6312# For calculating the .so ABI tag. 6313 6314ABIFLAGS="" 6315 6316# Check for --with-pydebug 6317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 6318$as_echo_n "checking for --with-pydebug... " >&6; } 6319 6320# Check whether --with-pydebug was given. 6321if test "${with_pydebug+set}" = set; then : 6322 withval=$with_pydebug; 6323if test "$withval" != no 6324then 6325 6326$as_echo "#define Py_DEBUG 1" >>confdefs.h 6327 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6329$as_echo "yes" >&6; }; 6330 Py_DEBUG='true' 6331 ABIFLAGS="${ABIFLAGS}d" 6332else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6333$as_echo "no" >&6; }; Py_DEBUG='false' 6334fi 6335else 6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6337$as_echo "no" >&6; } 6338fi 6339 6340 6341# Check for --with-trace-refs 6342# --with-trace-refs 6343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-trace-refs" >&5 6344$as_echo_n "checking for --with-trace-refs... " >&6; } 6345 6346# Check whether --with-trace-refs was given. 6347if test "${with_trace_refs+set}" = set; then : 6348 withval=$with_trace_refs; 6349else 6350 with_trace_refs=no 6351fi 6352 6353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_trace_refs" >&5 6354$as_echo "$with_trace_refs" >&6; } 6355 6356if test "$with_trace_refs" = "yes" 6357then 6358 6359$as_echo "#define Py_TRACE_REFS 1" >>confdefs.h 6360 6361fi 6362 6363# Check for --with-assertions. 6364# This allows enabling assertions without Py_DEBUG. 6365assertions='false' 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-assertions" >&5 6367$as_echo_n "checking for --with-assertions... " >&6; } 6368 6369# Check whether --with-assertions was given. 6370if test "${with_assertions+set}" = set; then : 6371 withval=$with_assertions; 6372if test "$withval" != no 6373then 6374 assertions='true' 6375fi 6376fi 6377 6378if test "$assertions" = 'true'; then 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6380$as_echo "yes" >&6; } 6381elif test "$Py_DEBUG" = 'true'; then 6382 assertions='true' 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: implied by --with-pydebug" >&5 6384$as_echo "implied by --with-pydebug" >&6; } 6385else 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6387$as_echo "no" >&6; } 6388fi 6389 6390# Enable optimization flags 6391 6392 6393Py_OPT='false' 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 6395$as_echo_n "checking for --enable-optimizations... " >&6; } 6396# Check whether --enable-optimizations was given. 6397if test "${enable_optimizations+set}" = set; then : 6398 enableval=$enable_optimizations; 6399if test "$enableval" != no 6400then 6401 Py_OPT='true' 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6403$as_echo "yes" >&6; }; 6404else 6405 Py_OPT='false' 6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6407$as_echo "no" >&6; }; 6408fi 6409else 6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6411$as_echo "no" >&6; } 6412fi 6413 6414if test "$Py_OPT" = 'true' ; then 6415 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not 6416 # compile working code using it and both test_distutils and test_gdb are 6417 # broken when you do manage to get a toolchain that works with it. People 6418 # who want LTO need to use --with-lto themselves. 6419 DEF_MAKE_ALL_RULE="profile-opt" 6420 REQUIRE_PGO="yes" 6421 DEF_MAKE_RULE="build_all" 6422else 6423 DEF_MAKE_ALL_RULE="build_all" 6424 REQUIRE_PGO="no" 6425 DEF_MAKE_RULE="all" 6426fi 6427 6428 6429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking PROFILE_TASK" >&5 6430$as_echo_n "checking PROFILE_TASK... " >&6; } 6431if test -z "$PROFILE_TASK" 6432then 6433 PROFILE_TASK='-m test --pgo' 6434fi 6435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROFILE_TASK" >&5 6436$as_echo "$PROFILE_TASK" >&6; } 6437 6438# Make llvm-relatec checks work on systems where llvm tools are not installed with their 6439# normal names in the default $PATH (ie: Ubuntu). They exist under the 6440# non-suffixed name in their versioned llvm directory. 6441 6442llvm_bin_dir='' 6443llvm_path="${PATH}" 6444if test "${CC}" = "clang" 6445then 6446 clang_bin=`which clang` 6447 # Some systems install clang elsewhere as a symlink to the real path 6448 # which is where the related llvm tools are located. 6449 if test -L "${clang_bin}" 6450 then 6451 clang_dir=`dirname "${clang_bin}"` 6452 clang_bin=`readlink "${clang_bin}"` 6453 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` 6454 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" 6455 fi 6456fi 6457 6458# Enable LTO flags 6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 6460$as_echo_n "checking for --with-lto... " >&6; } 6461 6462# Check whether --with-lto was given. 6463if test "${with_lto+set}" = set; then : 6464 withval=$with_lto; 6465if test "$withval" != no 6466then 6467 Py_LTO='true' 6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6469$as_echo "yes" >&6; }; 6470else 6471 Py_LTO='false' 6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6473$as_echo "no" >&6; }; 6474fi 6475else 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6477$as_echo "no" >&6; } 6478fi 6479 6480if test "$Py_LTO" = 'true' ; then 6481 case $CC in 6482 *clang*) 6483 6484 if test -n "$ac_tool_prefix"; then 6485 # Extract the first word of "${ac_tool_prefix}llvm-ar", so it can be a program name with args. 6486set dummy ${ac_tool_prefix}llvm-ar; ac_word=$2 6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6488$as_echo_n "checking for $ac_word... " >&6; } 6489if ${ac_cv_path_LLVM_AR+:} false; then : 6490 $as_echo_n "(cached) " >&6 6491else 6492 case $LLVM_AR in 6493 [\\/]* | ?:[\\/]*) 6494 ac_cv_path_LLVM_AR="$LLVM_AR" # Let the user override the test with a path. 6495 ;; 6496 *) 6497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6498for as_dir in ${llvm_path} 6499do 6500 IFS=$as_save_IFS 6501 test -z "$as_dir" && as_dir=. 6502 for ac_exec_ext in '' $ac_executable_extensions; do 6503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6504 ac_cv_path_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" 6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6506 break 2 6507 fi 6508done 6509 done 6510IFS=$as_save_IFS 6511 6512 ;; 6513esac 6514fi 6515LLVM_AR=$ac_cv_path_LLVM_AR 6516if test -n "$LLVM_AR"; then 6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_AR" >&5 6518$as_echo "$LLVM_AR" >&6; } 6519else 6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6521$as_echo "no" >&6; } 6522fi 6523 6524 6525fi 6526if test -z "$ac_cv_path_LLVM_AR"; then 6527 ac_pt_LLVM_AR=$LLVM_AR 6528 # Extract the first word of "llvm-ar", so it can be a program name with args. 6529set dummy llvm-ar; ac_word=$2 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6531$as_echo_n "checking for $ac_word... " >&6; } 6532if ${ac_cv_path_ac_pt_LLVM_AR+:} false; then : 6533 $as_echo_n "(cached) " >&6 6534else 6535 case $ac_pt_LLVM_AR in 6536 [\\/]* | ?:[\\/]*) 6537 ac_cv_path_ac_pt_LLVM_AR="$ac_pt_LLVM_AR" # Let the user override the test with a path. 6538 ;; 6539 *) 6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6541for as_dir in ${llvm_path} 6542do 6543 IFS=$as_save_IFS 6544 test -z "$as_dir" && as_dir=. 6545 for ac_exec_ext in '' $ac_executable_extensions; do 6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6547 ac_cv_path_ac_pt_LLVM_AR="$as_dir/$ac_word$ac_exec_ext" 6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6549 break 2 6550 fi 6551done 6552 done 6553IFS=$as_save_IFS 6554 6555 ;; 6556esac 6557fi 6558ac_pt_LLVM_AR=$ac_cv_path_ac_pt_LLVM_AR 6559if test -n "$ac_pt_LLVM_AR"; then 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_AR" >&5 6561$as_echo "$ac_pt_LLVM_AR" >&6; } 6562else 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6564$as_echo "no" >&6; } 6565fi 6566 6567 if test "x$ac_pt_LLVM_AR" = x; then 6568 LLVM_AR="''" 6569 else 6570 case $cross_compiling:$ac_tool_warned in 6571yes:) 6572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6574ac_tool_warned=yes ;; 6575esac 6576 LLVM_AR=$ac_pt_LLVM_AR 6577 fi 6578else 6579 LLVM_AR="$ac_cv_path_LLVM_AR" 6580fi 6581 6582 6583 if test -n "${LLVM_AR}" -a -x "${LLVM_AR}" 6584 then 6585 LLVM_AR_FOUND="found" 6586 else 6587 LLVM_AR_FOUND="not-found" 6588 fi 6589 if test "$ac_sys_system" = "Darwin" -a "${LLVM_AR_FOUND}" = "not-found" 6590 then 6591 found_llvm_ar=`/usr/bin/xcrun -find llvm-ar 2>/dev/null` 6592 if test -n "${found_llvm_ar}" 6593 then 6594 LLVM_AR='/usr/bin/xcrun llvm-ar' 6595 LLVM_AR_FOUND=found 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-ar found via xcrun: ${LLVM_AR}" >&5 6597$as_echo "$as_me: llvm-ar found via xcrun: ${LLVM_AR}" >&6;} 6598 fi 6599 fi 6600 if test $LLVM_AR_FOUND = not-found 6601 then 6602 LLVM_PROFR_ERR=yes 6603 as_fn_error $? "llvm-ar is required for a --with-lto build with clang but could not be found." "$LINENO" 5 6604 else 6605 LLVM_AR_ERR=no 6606 fi 6607 AR="${LLVM_AR}" 6608 case $ac_sys_system in 6609 Darwin*) 6610 # Any changes made here should be reflected in the GCC+Darwin case below 6611 LTOFLAGS="-flto -Wl,-export_dynamic" 6612 ;; 6613 *) 6614 LTOFLAGS="-flto" 6615 ;; 6616 esac 6617 ;; 6618 *gcc*) 6619 case $ac_sys_system in 6620 Darwin*) 6621 LTOFLAGS="-flto -Wl,-export_dynamic" 6622 ;; 6623 *) 6624 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" 6625 ;; 6626 esac 6627 ;; 6628 esac 6629 6630 if test "$ac_cv_prog_cc_g" = "yes" 6631 then 6632 # bpo-30345: Add -g to LDFLAGS when compiling with LTO 6633 # to get debug symbols. 6634 LTOFLAGS="$LTOFLAGS -g" 6635 fi 6636 6637 CFLAGS_NODIST="$CFLAGS_NODIST $LTOFLAGS" 6638 LDFLAGS_NODIST="$LDFLAGS_NODIST $LTOFLAGS" 6639fi 6640 6641# Enable PGO flags. 6642 6643 6644 6645 6646 6647 6648if test -n "$ac_tool_prefix"; then 6649 # Extract the first word of "${ac_tool_prefix}llvm-profdata", so it can be a program name with args. 6650set dummy ${ac_tool_prefix}llvm-profdata; ac_word=$2 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6652$as_echo_n "checking for $ac_word... " >&6; } 6653if ${ac_cv_path_LLVM_PROFDATA+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 case $LLVM_PROFDATA in 6657 [\\/]* | ?:[\\/]*) 6658 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. 6659 ;; 6660 *) 6661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6662for as_dir in ${llvm_path} 6663do 6664 IFS=$as_save_IFS 6665 test -z "$as_dir" && as_dir=. 6666 for ac_exec_ext in '' $ac_executable_extensions; do 6667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6668 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6670 break 2 6671 fi 6672done 6673 done 6674IFS=$as_save_IFS 6675 6676 ;; 6677esac 6678fi 6679LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA 6680if test -n "$LLVM_PROFDATA"; then 6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 6682$as_echo "$LLVM_PROFDATA" >&6; } 6683else 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6685$as_echo "no" >&6; } 6686fi 6687 6688 6689fi 6690if test -z "$ac_cv_path_LLVM_PROFDATA"; then 6691 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA 6692 # Extract the first word of "llvm-profdata", so it can be a program name with args. 6693set dummy llvm-profdata; ac_word=$2 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6695$as_echo_n "checking for $ac_word... " >&6; } 6696if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : 6697 $as_echo_n "(cached) " >&6 6698else 6699 case $ac_pt_LLVM_PROFDATA in 6700 [\\/]* | ?:[\\/]*) 6701 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. 6702 ;; 6703 *) 6704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6705for as_dir in ${llvm_path} 6706do 6707 IFS=$as_save_IFS 6708 test -z "$as_dir" && as_dir=. 6709 for ac_exec_ext in '' $ac_executable_extensions; do 6710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6711 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6713 break 2 6714 fi 6715done 6716 done 6717IFS=$as_save_IFS 6718 6719 ;; 6720esac 6721fi 6722ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA 6723if test -n "$ac_pt_LLVM_PROFDATA"; then 6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 6725$as_echo "$ac_pt_LLVM_PROFDATA" >&6; } 6726else 6727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6728$as_echo "no" >&6; } 6729fi 6730 6731 if test "x$ac_pt_LLVM_PROFDATA" = x; then 6732 LLVM_PROFDATA="''" 6733 else 6734 case $cross_compiling:$ac_tool_warned in 6735yes:) 6736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6738ac_tool_warned=yes ;; 6739esac 6740 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA 6741 fi 6742else 6743 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" 6744fi 6745 6746 6747if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" 6748then 6749 LLVM_PROF_FOUND="found" 6750else 6751 LLVM_PROF_FOUND="not-found" 6752fi 6753if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" 6754then 6755 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` 6756 if test -n "${found_llvm_profdata}" 6757 then 6758 # llvm-profdata isn't directly in $PATH in some cases. 6759 # https://apple.stackexchange.com/questions/197053/ 6760 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' 6761 LLVM_PROF_FOUND=found 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 6763$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} 6764 fi 6765fi 6766LLVM_PROF_ERR=no 6767case $CC in 6768 *clang*) 6769 # Any changes made here should be reflected in the GCC+Darwin case below 6770 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6771 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6772 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6773 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6774 if test $LLVM_PROF_FOUND = not-found 6775 then 6776 LLVM_PROF_ERR=yes 6777 if test "${REQUIRE_PGO}" = "yes" 6778 then 6779 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6780 fi 6781 fi 6782 ;; 6783 *gcc*) 6784 case $ac_sys_system in 6785 Darwin*) 6786 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6787 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6788 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6789 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6790 if test "${LLVM_PROF_FOUND}" = "not-found" 6791 then 6792 LLVM_PROF_ERR=yes 6793 if test "${REQUIRE_PGO}" = "yes" 6794 then 6795 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6796 fi 6797 fi 6798 ;; 6799 *) 6800 PGO_PROF_GEN_FLAG="-fprofile-generate" 6801 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" 6802 LLVM_PROF_MERGER="true" 6803 LLVM_PROF_FILE="" 6804 ;; 6805 esac 6806 ;; 6807 *icc*) 6808 PGO_PROF_GEN_FLAG="-prof-gen" 6809 PGO_PROF_USE_FLAG="-prof-use" 6810 LLVM_PROF_MERGER="true" 6811 LLVM_PROF_FILE="" 6812 ;; 6813esac 6814 6815# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be 6816# merged with this chunk of code? 6817 6818# Optimizer/debugger flags 6819# ------------------------ 6820# (The following bit of code is complicated enough - please keep things 6821# indented properly. Just pretend you're editing Python code. ;-) 6822 6823# There are two parallel sets of case statements below, one that checks to 6824# see if OPT was set and one that does BASECFLAGS setting based upon 6825# compiler and platform. BASECFLAGS tweaks need to be made even if the 6826# user set OPT. 6827 6828case $CC in 6829 *clang*) 6830 cc_is_clang=1 6831 ;; 6832 *) 6833 if $CC --version 2>&1 | grep -q clang 6834 then 6835 cc_is_clang=1 6836 else 6837 cc_is_clang= 6838 fi 6839esac 6840 6841# tweak OPT based on compiler and platform, only if the user didn't set 6842# it on the command line 6843 6844 6845if test "${OPT-unset}" = "unset" 6846then 6847 case $GCC in 6848 yes) 6849 # For gcc 4.x we need to use -fwrapv so lets check if its supported 6850 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then 6851 WRAP="-fwrapv" 6852 fi 6853 6854 if test -n "${cc_is_clang}" 6855 then 6856 # Clang also needs -fwrapv 6857 WRAP="-fwrapv" 6858 # bpo-30104: disable strict aliasing to compile correctly dtoa.c, 6859 # see Makefile.pre.in for more information 6860 CFLAGS_ALIASING="-fno-strict-aliasing" 6861 fi 6862 6863 case $ac_cv_prog_cc_g in 6864 yes) 6865 if test "$Py_DEBUG" = 'true' ; then 6866 # Optimization messes up debuggers, so turn it off for 6867 # debug builds. 6868 if "$CC" -v --help 2>/dev/null |grep -- -Og > /dev/null; then 6869 OPT="-g -Og -Wall" 6870 else 6871 OPT="-g -O0 -Wall" 6872 fi 6873 else 6874 OPT="-g $WRAP -O3 -Wall" 6875 fi 6876 ;; 6877 *) 6878 OPT="-O3 -Wall" 6879 ;; 6880 esac 6881 6882 case $ac_sys_system in 6883 SCO_SV*) OPT="$OPT -m486 -DSCO5" 6884 ;; 6885 esac 6886 ;; 6887 6888 *) 6889 OPT="-O" 6890 ;; 6891 esac 6892fi 6893 6894 6895 6896 6897 6898# The -arch flags for universal builds on OSX 6899UNIVERSAL_ARCH_FLAGS= 6900 6901 6902# tweak BASECFLAGS based on compiler and platform 6903case $GCC in 6904yes) 6905 CFLAGS_NODIST="$CFLAGS_NODIST -std=c99" 6906 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra" >&5 6908$as_echo_n "checking for -Wextra... " >&6; } 6909 ac_save_cc="$CC" 6910 CC="$CC -Wextra -Werror" 6911 if ${ac_cv_extra_warnings+:} false; then : 6912 $as_echo_n "(cached) " >&6 6913else 6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6915/* end confdefs.h. */ 6916 6917 6918int 6919main () 6920{ 6921 6922 ; 6923 return 0; 6924} 6925 6926_ACEOF 6927if ac_fn_c_try_compile "$LINENO"; then : 6928 6929 ac_cv_extra_warnings=yes 6930 6931else 6932 6933 ac_cv_extra_warnings=no 6934 6935fi 6936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6937fi 6938 6939 CC="$ac_save_cc" 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_extra_warnings" >&5 6941$as_echo "$ac_cv_extra_warnings" >&6; } 6942 6943 if test $ac_cv_extra_warnings = yes 6944 then 6945 CFLAGS_NODIST="$CFLAGS_NODIST -Wextra" 6946 fi 6947 6948 # Python doesn't violate C99 aliasing rules, but older versions of 6949 # GCC produce warnings for legal Python code. Enable 6950 # -fno-strict-aliasing on versions of GCC that support but produce 6951 # warnings. See Issue3326 6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts and needs -fno-strict-aliasing" >&5 6953$as_echo_n "checking whether $CC accepts and needs -fno-strict-aliasing... " >&6; } 6954 ac_save_cc="$CC" 6955 CC="$CC -fno-strict-aliasing" 6956 save_CFLAGS="$CFLAGS" 6957 if ${ac_cv_no_strict_aliasing+:} false; then : 6958 $as_echo_n "(cached) " >&6 6959else 6960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6961/* end confdefs.h. */ 6962 6963 6964int 6965main () 6966{ 6967 6968 ; 6969 return 0; 6970} 6971 6972_ACEOF 6973if ac_fn_c_try_compile "$LINENO"; then : 6974 6975 CC="$ac_save_cc -fstrict-aliasing" 6976 CFLAGS="$CFLAGS -Werror -Wstrict-aliasing" 6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6978/* end confdefs.h. */ 6979 6980 void f(int **x) {} 6981int 6982main () 6983{ 6984double *x; f((int **) &x); 6985 ; 6986 return 0; 6987} 6988 6989_ACEOF 6990if ac_fn_c_try_compile "$LINENO"; then : 6991 6992 ac_cv_no_strict_aliasing=no 6993 6994else 6995 6996 ac_cv_no_strict_aliasing=yes 6997 6998fi 6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7000 7001else 7002 7003 ac_cv_no_strict_aliasing=no 7004 7005fi 7006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7007fi 7008 7009 CFLAGS="$save_CFLAGS" 7010 CC="$ac_save_cc" 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing" >&5 7012$as_echo "$ac_cv_no_strict_aliasing" >&6; } 7013 if test $ac_cv_no_strict_aliasing = yes 7014 then 7015 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" 7016 fi 7017 7018 # ICC doesn't recognize the option, but only emits a warning 7019 ## XXX does it emit an unused result warning and can it be disabled? 7020 case "$CC" in 7021 *icc*) 7022 ac_cv_disable_unused_result_warning=no 7023 ;; 7024 *) 7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused result warning" >&5 7026$as_echo_n "checking if we can turn off $CC unused result warning... " >&6; } 7027 ac_save_cc="$CC" 7028 CC="$CC -Wunused-result -Werror" 7029 save_CFLAGS="$CFLAGS" 7030 if ${ac_cv_disable_unused_result_warning+:} false; then : 7031 $as_echo_n "(cached) " >&6 7032else 7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7034/* end confdefs.h. */ 7035 7036 7037int 7038main () 7039{ 7040 7041 ; 7042 return 0; 7043} 7044 7045_ACEOF 7046if ac_fn_c_try_compile "$LINENO"; then : 7047 7048 ac_cv_disable_unused_result_warning=yes 7049 7050else 7051 7052 ac_cv_disable_unused_result_warning=no 7053 7054fi 7055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7056fi 7057 7058 CFLAGS="$save_CFLAGS" 7059 CC="$ac_save_cc" 7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_result_warning" >&5 7061$as_echo "$ac_cv_disable_unused_result_warning" >&6; } 7062 ;; 7063 esac 7064 7065 if test $ac_cv_disable_unused_result_warning = yes 7066 then 7067 BASECFLAGS="$BASECFLAGS -Wno-unused-result" 7068 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-result" 7069 fi 7070 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC unused parameter warning" >&5 7072$as_echo_n "checking if we can turn off $CC unused parameter warning... " >&6; } 7073 ac_save_cc="$CC" 7074 CC="$CC -Wunused-parameter -Werror" 7075 if ${ac_cv_disable_unused_parameter_warning+:} false; then : 7076 $as_echo_n "(cached) " >&6 7077else 7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7079/* end confdefs.h. */ 7080 7081 7082int 7083main () 7084{ 7085 7086 ; 7087 return 0; 7088} 7089 7090_ACEOF 7091if ac_fn_c_try_compile "$LINENO"; then : 7092 7093 ac_cv_disable_unused_parameter_warning=yes 7094 7095else 7096 7097 ac_cv_disable_unused_parameter_warning=no 7098 7099fi 7100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7101fi 7102 7103 CC="$ac_save_cc" 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_unused_parameter_warning" >&5 7105$as_echo "$ac_cv_disable_unused_parameter_warning" >&6; } 7106 7107 if test $ac_cv_disable_unused_parameter_warning = yes 7108 then 7109 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-unused-parameter" 7110 fi 7111 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn off $CC missing field initializers warning" >&5 7113$as_echo_n "checking if we can turn off $CC missing field initializers warning... " >&6; } 7114 ac_save_cc="$CC" 7115 CC="$CC -Wmissing-field-initializers -Werror" 7116 if ${ac_cv_disable_missing_field_initializers+:} false; then : 7117 $as_echo_n "(cached) " >&6 7118else 7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7120/* end confdefs.h. */ 7121 7122 7123int 7124main () 7125{ 7126 7127 ; 7128 return 0; 7129} 7130 7131_ACEOF 7132if ac_fn_c_try_compile "$LINENO"; then : 7133 7134 ac_cv_disable_missing_field_initializers=yes 7135 7136else 7137 7138 ac_cv_disable_missing_field_initializers=no 7139 7140fi 7141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7142fi 7143 7144 CC="$ac_save_cc" 7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_disable_missing_field_initializers" >&5 7146$as_echo "$ac_cv_disable_missing_field_initializers" >&6; } 7147 7148 if test $ac_cv_disable_missing_field_initializers = yes 7149 then 7150 CFLAGS_NODIST="$CFLAGS_NODIST -Wno-missing-field-initializers" 7151 fi 7152 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC mixed sign comparison warning" >&5 7154$as_echo_n "checking if we can turn on $CC mixed sign comparison warning... " >&6; } 7155 ac_save_cc="$CC" 7156 CC="$CC -Wsign-compare" 7157 save_CFLAGS="$CFLAGS" 7158 if ${ac_cv_enable_sign_compare_warning+:} false; then : 7159 $as_echo_n "(cached) " >&6 7160else 7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7162/* end confdefs.h. */ 7163 7164 7165int 7166main () 7167{ 7168 7169 ; 7170 return 0; 7171} 7172 7173_ACEOF 7174if ac_fn_c_try_compile "$LINENO"; then : 7175 7176 ac_cv_enable_sign_compare_warning=yes 7177 7178else 7179 7180 ac_cv_enable_sign_compare_warning=no 7181 7182fi 7183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7184fi 7185 7186 CFLAGS="$save_CFLAGS" 7187 CC="$ac_save_cc" 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_sign_compare_warning" >&5 7189$as_echo "$ac_cv_enable_sign_compare_warning" >&6; } 7190 7191 if test $ac_cv_enable_sign_compare_warning = yes 7192 then 7193 BASECFLAGS="$BASECFLAGS -Wsign-compare" 7194 fi 7195 7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC unreachable code warning" >&5 7197$as_echo_n "checking if we can turn on $CC unreachable code warning... " >&6; } 7198 ac_save_cc="$CC" 7199 CC="$CC -Wunreachable-code" 7200 save_CFLAGS="$CFLAGS" 7201 if ${ac_cv_enable_unreachable_code_warning+:} false; then : 7202 $as_echo_n "(cached) " >&6 7203else 7204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7205/* end confdefs.h. */ 7206 7207 7208int 7209main () 7210{ 7211 7212 ; 7213 return 0; 7214} 7215 7216_ACEOF 7217if ac_fn_c_try_compile "$LINENO"; then : 7218 7219 ac_cv_enable_unreachable_code_warning=yes 7220 7221else 7222 7223 ac_cv_enable_unreachable_code_warning=no 7224 7225fi 7226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7227fi 7228 7229 CFLAGS="$save_CFLAGS" 7230 CC="$ac_save_cc" 7231 7232 # Don't enable unreachable code warning in debug mode, since it usually 7233 # results in non-standard code paths. 7234 # Issue #24324: Unfortunately, the unreachable code warning does not work 7235 # correctly on gcc and has been silently removed from the compiler. 7236 # It is supported on clang but on OS X systems gcc may be an alias 7237 # for clang. Try to determine if the compiler is not really gcc and, 7238 # if so, only then enable the warning. 7239 if test $ac_cv_enable_unreachable_code_warning = yes && \ 7240 test "$Py_DEBUG" != "true" && \ 7241 test -z "`$CC --version 2>/dev/null | grep 'Free Software Foundation'`" 7242 then 7243 BASECFLAGS="$BASECFLAGS -Wunreachable-code" 7244 else 7245 ac_cv_enable_unreachable_code_warning=no 7246 fi 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_unreachable_code_warning" >&5 7248$as_echo "$ac_cv_enable_unreachable_code_warning" >&6; } 7249 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can turn on $CC strict-prototypes warning" >&5 7251$as_echo_n "checking if we can turn on $CC strict-prototypes warning... " >&6; } 7252 ac_save_cc="$CC" 7253 CC="$CC -Werror -Wstrict-prototypes" 7254 if ${ac_cv_enable_enable_strict_prototypes_warning+:} false; then : 7255 $as_echo_n "(cached) " >&6 7256else 7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7258/* end confdefs.h. */ 7259 7260 7261int 7262main () 7263{ 7264 7265 ; 7266 return 0; 7267} 7268 7269_ACEOF 7270if ac_fn_c_try_compile "$LINENO"; then : 7271 7272 ac_cv_enable_strict_prototypes_warning=yes 7273 7274else 7275 7276 ac_cv_enable_strict_prototypes_warning=no 7277 7278fi 7279rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7280fi 7281 7282 CC="$ac_save_cc" 7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_strict_prototypes_warning" >&5 7284$as_echo "$ac_cv_enable_strict_prototypes_warning" >&6; } 7285 7286 if test $ac_cv_enable_strict_prototypes_warning = yes 7287 then 7288 CFLAGS_NODIST="$CFLAGS_NODIST -Wstrict-prototypes" 7289 fi 7290 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can make implicit function declaration an error in $CC" >&5 7292$as_echo_n "checking if we can make implicit function declaration an error in $CC... " >&6; } 7293 ac_save_cc="$CC" 7294 CC="$CC -Werror=implicit-function-declaration" 7295 if ${ac_cv_enable_implicit_function_declaration_error+:} false; then : 7296 $as_echo_n "(cached) " >&6 7297else 7298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7299/* end confdefs.h. */ 7300 7301 7302int 7303main () 7304{ 7305 7306 ; 7307 return 0; 7308} 7309 7310_ACEOF 7311if ac_fn_c_try_compile "$LINENO"; then : 7312 7313 ac_cv_enable_implicit_function_declaration_error=yes 7314 7315else 7316 7317 ac_cv_enable_implicit_function_declaration_error=no 7318 7319fi 7320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7321fi 7322 7323 CC="$ac_save_cc" 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_implicit_function_declaration_error" >&5 7325$as_echo "$ac_cv_enable_implicit_function_declaration_error" >&6; } 7326 7327 if test $ac_cv_enable_implicit_function_declaration_error = yes 7328 then 7329 CFLAGS_NODIST="$CFLAGS_NODIST -Werror=implicit-function-declaration" 7330 fi 7331 7332 # if using gcc on alpha, use -mieee to get (near) full IEEE 754 7333 # support. Without this, treatment of subnormals doesn't follow 7334 # the standard. 7335 case $host in 7336 alpha*) 7337 BASECFLAGS="$BASECFLAGS -mieee" 7338 ;; 7339 esac 7340 7341 case $ac_sys_system in 7342 SCO_SV*) 7343 BASECFLAGS="$BASECFLAGS -m486 -DSCO5" 7344 ;; 7345 7346 Darwin*) 7347 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd 7348 # used to be here, but non-Apple gcc doesn't accept them. 7349 if test "${CC}" = gcc 7350 then 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 7352$as_echo_n "checking which compiler should be used... " >&6; } 7353 case "${UNIVERSALSDK}" in 7354 */MacOSX10.4u.sdk) 7355 # Build using 10.4 SDK, force usage of gcc when the 7356 # compiler is gcc, otherwise the user will get very 7357 # confusing error messages when building on OSX 10.6 7358 CC=gcc-4.0 7359 CPP=cpp-4.0 7360 ;; 7361 esac 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 7363$as_echo "$CC" >&6; } 7364 fi 7365 7366 if test "${enable_universalsdk}" 7367 then 7368 case "$UNIVERSAL_ARCHS" in 7369 32-bit) 7370 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" 7371 LIPO_32BIT_FLAGS="" 7372 ARCH_RUN_32BIT="" 7373 ;; 7374 64-bit) 7375 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" 7376 LIPO_32BIT_FLAGS="" 7377 ARCH_RUN_32BIT="true" 7378 ;; 7379 all) 7380 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" 7381 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 7382 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 7383 ;; 7384 intel) 7385 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" 7386 LIPO_32BIT_FLAGS="-extract i386" 7387 ARCH_RUN_32BIT="/usr/bin/arch -i386" 7388 ;; 7389 intel-32) 7390 UNIVERSAL_ARCH_FLAGS="-arch i386" 7391 LIPO_32BIT_FLAGS="" 7392 ARCH_RUN_32BIT="" 7393 ;; 7394 intel-64) 7395 UNIVERSAL_ARCH_FLAGS="-arch x86_64" 7396 LIPO_32BIT_FLAGS="" 7397 ARCH_RUN_32BIT="true" 7398 ;; 7399 3-way) 7400 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" 7401 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 7402 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 7403 ;; 7404 *) 7405 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 7406 ;; 7407 esac 7408 7409 if test "${UNIVERSALSDK}" != "/" 7410 then 7411 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" 7412 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" 7413 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" 7414 else 7415 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" 7416 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" 7417 fi 7418 fi 7419 7420 # Calculate an appropriate deployment target for this build: 7421 # The deployment target value is used explicitly to enable certain 7422 # features are enabled (such as builtin libedit support for readline) 7423 # through the use of Apple's Availability Macros and is used as a 7424 # component of the string returned by distutils.get_platform(). 7425 # 7426 # Use the value from: 7427 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified 7428 # 2. the operating system version of the build machine if >= 10.6 7429 # 3. If running on OS X 10.3 through 10.5, use the legacy tests 7430 # below to pick either 10.3, 10.4, or 10.5 as the target. 7431 # 4. If we are running on OS X 10.2 or earlier, good luck! 7432 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 7434$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } 7435 cur_target_major=`sw_vers -productVersion | \ 7436 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 7437 cur_target_minor=`sw_vers -productVersion | \ 7438 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 7439 cur_target="${cur_target_major}.${cur_target_minor}" 7440 if test ${cur_target_major} -eq 10 && \ 7441 test ${cur_target_minor} -ge 3 && \ 7442 test ${cur_target_minor} -le 5 7443 then 7444 # OS X 10.3 through 10.5 7445 cur_target=10.3 7446 if test ${enable_universalsdk} 7447 then 7448 case "$UNIVERSAL_ARCHS" in 7449 all|3-way|intel|64-bit) 7450 # These configurations were first supported in 10.5 7451 cur_target='10.5' 7452 ;; 7453 esac 7454 else 7455 if test `/usr/bin/arch` = "i386" 7456 then 7457 # 10.4 was the first release to support Intel archs 7458 cur_target="10.4" 7459 fi 7460 fi 7461 fi 7462 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} 7463 7464 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the 7465 # environment with a value that is the same as what we'll use 7466 # in the Makefile to ensure that we'll get the same compiler 7467 # environment during configure and build time. 7468 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" 7469 export MACOSX_DEPLOYMENT_TARGET 7470 EXPORT_MACOSX_DEPLOYMENT_TARGET='' 7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 7472$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } 7473 7474 # end of Darwin* tests 7475 ;; 7476 esac 7477 ;; 7478 7479*) 7480 case $ac_sys_system in 7481 OpenUNIX*|UnixWare*) 7482 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " 7483 ;; 7484 SCO_SV*) 7485 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" 7486 ;; 7487 esac 7488 ;; 7489esac 7490 7491# ICC needs -fp-model strict or floats behave badly 7492case "$CC" in 7493*icc*) 7494 CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict" 7495 ;; 7496esac 7497 7498if test "$assertions" = 'true'; then 7499 : 7500else 7501 OPT="-DNDEBUG $OPT" 7502fi 7503 7504if test "$ac_arch_flags" 7505then 7506 BASECFLAGS="$BASECFLAGS $ac_arch_flags" 7507fi 7508 7509# On some compilers, pthreads are available without further options 7510# (e.g. MacOS X). On some of these systems, the compiler will not 7511# complain if unaccepted options are passed (e.g. gcc on Mac OS X). 7512# So we have to see first whether pthreads are available without 7513# options before we can check whether -Kpthread improves anything. 7514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 7515$as_echo_n "checking whether pthreads are available without options... " >&6; } 7516if ${ac_cv_pthread_is_default+:} false; then : 7517 $as_echo_n "(cached) " >&6 7518else 7519 if test "$cross_compiling" = yes; then : 7520 ac_cv_pthread_is_default=no 7521else 7522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7523/* end confdefs.h. */ 7524 7525#include <stdio.h> 7526#include <pthread.h> 7527 7528void* routine(void* p){return NULL;} 7529 7530int main(){ 7531 pthread_t p; 7532 if(pthread_create(&p,NULL,routine,NULL)!=0) 7533 return 1; 7534 (void)pthread_detach(p); 7535 return 0; 7536} 7537 7538_ACEOF 7539if ac_fn_c_try_run "$LINENO"; then : 7540 7541 ac_cv_pthread_is_default=yes 7542 ac_cv_kthread=no 7543 ac_cv_pthread=no 7544 7545else 7546 ac_cv_pthread_is_default=no 7547fi 7548rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7549 conftest.$ac_objext conftest.beam conftest.$ac_ext 7550fi 7551 7552 7553fi 7554 7555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 7556$as_echo "$ac_cv_pthread_is_default" >&6; } 7557 7558 7559if test $ac_cv_pthread_is_default = yes 7560then 7561 ac_cv_kpthread=no 7562else 7563# -Kpthread, if available, provides the right #defines 7564# and linker options to make pthread_create available 7565# Some compilers won't report that they do not support -Kpthread, 7566# so we need to run a program to see whether it really made the 7567# function available. 7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 7569$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } 7570if ${ac_cv_kpthread+:} false; then : 7571 $as_echo_n "(cached) " >&6 7572else 7573 ac_save_cc="$CC" 7574CC="$CC -Kpthread" 7575if test "$cross_compiling" = yes; then : 7576 ac_cv_kpthread=no 7577else 7578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7579/* end confdefs.h. */ 7580 7581#include <stdio.h> 7582#include <pthread.h> 7583 7584void* routine(void* p){return NULL;} 7585 7586int main(){ 7587 pthread_t p; 7588 if(pthread_create(&p,NULL,routine,NULL)!=0) 7589 return 1; 7590 (void)pthread_detach(p); 7591 return 0; 7592} 7593 7594_ACEOF 7595if ac_fn_c_try_run "$LINENO"; then : 7596 ac_cv_kpthread=yes 7597else 7598 ac_cv_kpthread=no 7599fi 7600rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7601 conftest.$ac_objext conftest.beam conftest.$ac_ext 7602fi 7603 7604CC="$ac_save_cc" 7605fi 7606 7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 7608$as_echo "$ac_cv_kpthread" >&6; } 7609fi 7610 7611if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no 7612then 7613# -Kthread, if available, provides the right #defines 7614# and linker options to make pthread_create available 7615# Some compilers won't report that they do not support -Kthread, 7616# so we need to run a program to see whether it really made the 7617# function available. 7618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 7619$as_echo_n "checking whether $CC accepts -Kthread... " >&6; } 7620if ${ac_cv_kthread+:} false; then : 7621 $as_echo_n "(cached) " >&6 7622else 7623 ac_save_cc="$CC" 7624CC="$CC -Kthread" 7625if test "$cross_compiling" = yes; then : 7626 ac_cv_kthread=no 7627else 7628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7629/* end confdefs.h. */ 7630 7631#include <stdio.h> 7632#include <pthread.h> 7633 7634void* routine(void* p){return NULL;} 7635 7636int main(){ 7637 pthread_t p; 7638 if(pthread_create(&p,NULL,routine,NULL)!=0) 7639 return 1; 7640 (void)pthread_detach(p); 7641 return 0; 7642} 7643 7644_ACEOF 7645if ac_fn_c_try_run "$LINENO"; then : 7646 ac_cv_kthread=yes 7647else 7648 ac_cv_kthread=no 7649fi 7650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7651 conftest.$ac_objext conftest.beam conftest.$ac_ext 7652fi 7653 7654CC="$ac_save_cc" 7655fi 7656 7657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 7658$as_echo "$ac_cv_kthread" >&6; } 7659fi 7660 7661if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no 7662then 7663# -pthread, if available, provides the right #defines 7664# and linker options to make pthread_create available 7665# Some compilers won't report that they do not support -pthread, 7666# so we need to run a program to see whether it really made the 7667# function available. 7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 7669$as_echo_n "checking whether $CC accepts -pthread... " >&6; } 7670if ${ac_cv_pthread+:} false; then : 7671 $as_echo_n "(cached) " >&6 7672else 7673 ac_save_cc="$CC" 7674CC="$CC -pthread" 7675if test "$cross_compiling" = yes; then : 7676 ac_cv_pthread=no 7677else 7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7679/* end confdefs.h. */ 7680 7681#include <stdio.h> 7682#include <pthread.h> 7683 7684void* routine(void* p){return NULL;} 7685 7686int main(){ 7687 pthread_t p; 7688 if(pthread_create(&p,NULL,routine,NULL)!=0) 7689 return 1; 7690 (void)pthread_detach(p); 7691 return 0; 7692} 7693 7694_ACEOF 7695if ac_fn_c_try_run "$LINENO"; then : 7696 ac_cv_pthread=yes 7697else 7698 ac_cv_pthread=no 7699fi 7700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7701 conftest.$ac_objext conftest.beam conftest.$ac_ext 7702fi 7703 7704CC="$ac_save_cc" 7705fi 7706 7707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 7708$as_echo "$ac_cv_pthread" >&6; } 7709fi 7710 7711# If we have set a CC compiler flag for thread support then 7712# check if it works for CXX, too. 7713ac_cv_cxx_thread=no 7714if test ! -z "$CXX" 7715then 7716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 7717$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } 7718ac_save_cxx="$CXX" 7719 7720if test "$ac_cv_kpthread" = "yes" 7721then 7722 CXX="$CXX -Kpthread" 7723 ac_cv_cxx_thread=yes 7724elif test "$ac_cv_kthread" = "yes" 7725then 7726 CXX="$CXX -Kthread" 7727 ac_cv_cxx_thread=yes 7728elif test "$ac_cv_pthread" = "yes" 7729then 7730 CXX="$CXX -pthread" 7731 ac_cv_cxx_thread=yes 7732fi 7733 7734if test $ac_cv_cxx_thread = yes 7735then 7736 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext 7737 $CXX -c conftest.$ac_ext 2>&5 7738 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ 7739 && test -s conftest$ac_exeext && ./conftest$ac_exeext 7740 then 7741 ac_cv_cxx_thread=yes 7742 else 7743 ac_cv_cxx_thread=no 7744 fi 7745 rm -fr conftest* 7746fi 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 7748$as_echo "$ac_cv_cxx_thread" >&6; } 7749fi 7750CXX="$ac_save_cxx" 7751 7752 7753# checks for header files 7754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7755$as_echo_n "checking for ANSI C header files... " >&6; } 7756if ${ac_cv_header_stdc+:} false; then : 7757 $as_echo_n "(cached) " >&6 7758else 7759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7760/* end confdefs.h. */ 7761#include <stdlib.h> 7762#include <stdarg.h> 7763#include <string.h> 7764#include <float.h> 7765 7766int 7767main () 7768{ 7769 7770 ; 7771 return 0; 7772} 7773_ACEOF 7774if ac_fn_c_try_compile "$LINENO"; then : 7775 ac_cv_header_stdc=yes 7776else 7777 ac_cv_header_stdc=no 7778fi 7779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7780 7781if test $ac_cv_header_stdc = yes; then 7782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7784/* end confdefs.h. */ 7785#include <string.h> 7786 7787_ACEOF 7788if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7789 $EGREP "memchr" >/dev/null 2>&1; then : 7790 7791else 7792 ac_cv_header_stdc=no 7793fi 7794rm -f conftest* 7795 7796fi 7797 7798if test $ac_cv_header_stdc = yes; then 7799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7801/* end confdefs.h. */ 7802#include <stdlib.h> 7803 7804_ACEOF 7805if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7806 $EGREP "free" >/dev/null 2>&1; then : 7807 7808else 7809 ac_cv_header_stdc=no 7810fi 7811rm -f conftest* 7812 7813fi 7814 7815if test $ac_cv_header_stdc = yes; then 7816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7817 if test "$cross_compiling" = yes; then : 7818 : 7819else 7820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7821/* end confdefs.h. */ 7822#include <ctype.h> 7823#include <stdlib.h> 7824#if ((' ' & 0x0FF) == 0x020) 7825# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7826# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7827#else 7828# define ISLOWER(c) \ 7829 (('a' <= (c) && (c) <= 'i') \ 7830 || ('j' <= (c) && (c) <= 'r') \ 7831 || ('s' <= (c) && (c) <= 'z')) 7832# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7833#endif 7834 7835#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7836int 7837main () 7838{ 7839 int i; 7840 for (i = 0; i < 256; i++) 7841 if (XOR (islower (i), ISLOWER (i)) 7842 || toupper (i) != TOUPPER (i)) 7843 return 2; 7844 return 0; 7845} 7846_ACEOF 7847if ac_fn_c_try_run "$LINENO"; then : 7848 7849else 7850 ac_cv_header_stdc=no 7851fi 7852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7853 conftest.$ac_objext conftest.beam conftest.$ac_ext 7854fi 7855 7856fi 7857fi 7858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7859$as_echo "$ac_cv_header_stdc" >&6; } 7860if test $ac_cv_header_stdc = yes; then 7861 7862$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7863 7864fi 7865 7866for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \ 7867fcntl.h grp.h \ 7868ieeefp.h io.h langinfo.h libintl.h process.h pthread.h \ 7869sched.h shadow.h signal.h stropts.h termios.h \ 7870utime.h \ 7871poll.h sys/devpoll.h sys/epoll.h sys/poll.h \ 7872sys/audioio.h sys/xattr.h sys/bsdtty.h sys/event.h sys/file.h sys/ioctl.h \ 7873sys/kern_control.h sys/loadavg.h sys/lock.h sys/mkdev.h sys/modem.h \ 7874sys/param.h sys/random.h sys/select.h sys/sendfile.h sys/socket.h sys/statvfs.h \ 7875sys/stat.h sys/syscall.h sys/sys_domain.h sys/termio.h sys/time.h \ 7876sys/times.h sys/types.h sys/uio.h sys/un.h sys/utsname.h sys/wait.h pty.h \ 7877libutil.h sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ 7878linux/tipc.h linux/random.h spawn.h util.h alloca.h endian.h \ 7879sys/endian.h sys/sysmacros.h linux/memfd.h sys/memfd.h sys/mman.h 7880do : 7881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7882ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7883if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7884 cat >>confdefs.h <<_ACEOF 7885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7886_ACEOF 7887 7888fi 7889 7890done 7891 7892ac_header_dirent=no 7893for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 7894 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 7896$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 7897if eval \${$as_ac_Header+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7901/* end confdefs.h. */ 7902#include <sys/types.h> 7903#include <$ac_hdr> 7904 7905int 7906main () 7907{ 7908if ((DIR *) 0) 7909return 0; 7910 ; 7911 return 0; 7912} 7913_ACEOF 7914if ac_fn_c_try_compile "$LINENO"; then : 7915 eval "$as_ac_Header=yes" 7916else 7917 eval "$as_ac_Header=no" 7918fi 7919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7920fi 7921eval ac_res=\$$as_ac_Header 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7923$as_echo "$ac_res" >&6; } 7924if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7925 cat >>confdefs.h <<_ACEOF 7926#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 7927_ACEOF 7928 7929ac_header_dirent=$ac_hdr; break 7930fi 7931 7932done 7933# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 7934if test $ac_header_dirent = dirent.h; then 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7936$as_echo_n "checking for library containing opendir... " >&6; } 7937if ${ac_cv_search_opendir+:} false; then : 7938 $as_echo_n "(cached) " >&6 7939else 7940 ac_func_search_save_LIBS=$LIBS 7941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7942/* end confdefs.h. */ 7943 7944/* Override any GCC internal prototype to avoid an error. 7945 Use char because int might match the return type of a GCC 7946 builtin and then its argument prototype would still apply. */ 7947#ifdef __cplusplus 7948extern "C" 7949#endif 7950char opendir (); 7951int 7952main () 7953{ 7954return opendir (); 7955 ; 7956 return 0; 7957} 7958_ACEOF 7959for ac_lib in '' dir; do 7960 if test -z "$ac_lib"; then 7961 ac_res="none required" 7962 else 7963 ac_res=-l$ac_lib 7964 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7965 fi 7966 if ac_fn_c_try_link "$LINENO"; then : 7967 ac_cv_search_opendir=$ac_res 7968fi 7969rm -f core conftest.err conftest.$ac_objext \ 7970 conftest$ac_exeext 7971 if ${ac_cv_search_opendir+:} false; then : 7972 break 7973fi 7974done 7975if ${ac_cv_search_opendir+:} false; then : 7976 7977else 7978 ac_cv_search_opendir=no 7979fi 7980rm conftest.$ac_ext 7981LIBS=$ac_func_search_save_LIBS 7982fi 7983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7984$as_echo "$ac_cv_search_opendir" >&6; } 7985ac_res=$ac_cv_search_opendir 7986if test "$ac_res" != no; then : 7987 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7988 7989fi 7990 7991else 7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7993$as_echo_n "checking for library containing opendir... " >&6; } 7994if ${ac_cv_search_opendir+:} false; then : 7995 $as_echo_n "(cached) " >&6 7996else 7997 ac_func_search_save_LIBS=$LIBS 7998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7999/* end confdefs.h. */ 8000 8001/* Override any GCC internal prototype to avoid an error. 8002 Use char because int might match the return type of a GCC 8003 builtin and then its argument prototype would still apply. */ 8004#ifdef __cplusplus 8005extern "C" 8006#endif 8007char opendir (); 8008int 8009main () 8010{ 8011return opendir (); 8012 ; 8013 return 0; 8014} 8015_ACEOF 8016for ac_lib in '' x; do 8017 if test -z "$ac_lib"; then 8018 ac_res="none required" 8019 else 8020 ac_res=-l$ac_lib 8021 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8022 fi 8023 if ac_fn_c_try_link "$LINENO"; then : 8024 ac_cv_search_opendir=$ac_res 8025fi 8026rm -f core conftest.err conftest.$ac_objext \ 8027 conftest$ac_exeext 8028 if ${ac_cv_search_opendir+:} false; then : 8029 break 8030fi 8031done 8032if ${ac_cv_search_opendir+:} false; then : 8033 8034else 8035 ac_cv_search_opendir=no 8036fi 8037rm conftest.$ac_ext 8038LIBS=$ac_func_search_save_LIBS 8039fi 8040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8041$as_echo "$ac_cv_search_opendir" >&6; } 8042ac_res=$ac_cv_search_opendir 8043if test "$ac_res" != no; then : 8044 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8045 8046fi 8047 8048fi 8049 8050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 8051$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 8052if ${ac_cv_header_sys_types_h_makedev+:} false; then : 8053 $as_echo_n "(cached) " >&6 8054else 8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8056/* end confdefs.h. */ 8057#include <sys/types.h> 8058int 8059main () 8060{ 8061return makedev(0, 0); 8062 ; 8063 return 0; 8064} 8065_ACEOF 8066if ac_fn_c_try_link "$LINENO"; then : 8067 ac_cv_header_sys_types_h_makedev=yes 8068else 8069 ac_cv_header_sys_types_h_makedev=no 8070fi 8071rm -f core conftest.err conftest.$ac_objext \ 8072 conftest$ac_exeext conftest.$ac_ext 8073 8074fi 8075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 8076$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 8077 8078if test $ac_cv_header_sys_types_h_makedev = no; then 8079ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 8080if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 8081 8082$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 8083 8084fi 8085 8086 8087 8088 if test $ac_cv_header_sys_mkdev_h = no; then 8089 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 8090if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 8091 8092$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 8093 8094fi 8095 8096 8097 fi 8098fi 8099 8100 8101# bluetooth/bluetooth.h has been known to not compile with -std=c99. 8102# http://permalink.gmane.org/gmane.linux.bluez.kernel/22294 8103SAVE_CFLAGS=$CFLAGS 8104CFLAGS="-std=c99 $CFLAGS" 8105for ac_header in bluetooth/bluetooth.h 8106do : 8107 ac_fn_c_check_header_mongrel "$LINENO" "bluetooth/bluetooth.h" "ac_cv_header_bluetooth_bluetooth_h" "$ac_includes_default" 8108if test "x$ac_cv_header_bluetooth_bluetooth_h" = xyes; then : 8109 cat >>confdefs.h <<_ACEOF 8110#define HAVE_BLUETOOTH_BLUETOOTH_H 1 8111_ACEOF 8112 8113fi 8114 8115done 8116 8117CFLAGS=$SAVE_CFLAGS 8118 8119# On Darwin (OS X) net/if.h requires sys/socket.h to be imported first. 8120for ac_header in net/if.h 8121do : 8122 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <stdio.h> 8123#ifdef STDC_HEADERS 8124# include <stdlib.h> 8125# include <stddef.h> 8126#else 8127# ifdef HAVE_STDLIB_H 8128# include <stdlib.h> 8129# endif 8130#endif 8131#ifdef HAVE_SYS_SOCKET_H 8132# include <sys/socket.h> 8133#endif 8134 8135" 8136if test "x$ac_cv_header_net_if_h" = xyes; then : 8137 cat >>confdefs.h <<_ACEOF 8138#define HAVE_NET_IF_H 1 8139_ACEOF 8140 8141fi 8142 8143done 8144 8145 8146# On Linux, netlink.h requires asm/types.h 8147for ac_header in linux/netlink.h 8148do : 8149 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 8150#ifdef HAVE_ASM_TYPES_H 8151#include <asm/types.h> 8152#endif 8153#ifdef HAVE_SYS_SOCKET_H 8154#include <sys/socket.h> 8155#endif 8156 8157" 8158if test "x$ac_cv_header_linux_netlink_h" = xyes; then : 8159 cat >>confdefs.h <<_ACEOF 8160#define HAVE_LINUX_NETLINK_H 1 8161_ACEOF 8162 8163fi 8164 8165done 8166 8167 8168# On Linux, qrtr.h requires asm/types.h 8169for ac_header in linux/qrtr.h 8170do : 8171 ac_fn_c_check_header_compile "$LINENO" "linux/qrtr.h" "ac_cv_header_linux_qrtr_h" " 8172#ifdef HAVE_ASM_TYPES_H 8173#include <asm/types.h> 8174#endif 8175#ifdef HAVE_SYS_SOCKET_H 8176#include <sys/socket.h> 8177#endif 8178 8179" 8180if test "x$ac_cv_header_linux_qrtr_h" = xyes; then : 8181 cat >>confdefs.h <<_ACEOF 8182#define HAVE_LINUX_QRTR_H 1 8183_ACEOF 8184 8185fi 8186 8187done 8188 8189 8190for ac_header in linux/vm_sockets.h 8191do : 8192 ac_fn_c_check_header_compile "$LINENO" "linux/vm_sockets.h" "ac_cv_header_linux_vm_sockets_h" " 8193#ifdef HAVE_SYS_SOCKET_H 8194#include <sys/socket.h> 8195#endif 8196 8197" 8198if test "x$ac_cv_header_linux_vm_sockets_h" = xyes; then : 8199 cat >>confdefs.h <<_ACEOF 8200#define HAVE_LINUX_VM_SOCKETS_H 1 8201_ACEOF 8202 8203fi 8204 8205done 8206 8207 8208# On Linux, can.h and can/raw.h require sys/socket.h 8209for ac_header in linux/can.h linux/can/raw.h linux/can/bcm.h 8210do : 8211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8212ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 8213#ifdef HAVE_SYS_SOCKET_H 8214#include <sys/socket.h> 8215#endif 8216 8217" 8218if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8219 cat >>confdefs.h <<_ACEOF 8220#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8221_ACEOF 8222 8223fi 8224 8225done 8226 8227 8228# checks for typedefs 8229was_it_defined=no 8230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 8231$as_echo_n "checking for clock_t in time.h... " >&6; } 8232cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8233/* end confdefs.h. */ 8234#include <time.h> 8235 8236_ACEOF 8237if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8238 $EGREP "clock_t" >/dev/null 2>&1; then : 8239 was_it_defined=yes 8240else 8241 8242 8243$as_echo "#define clock_t long" >>confdefs.h 8244 8245 8246fi 8247rm -f conftest* 8248 8249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 8250$as_echo "$was_it_defined" >&6; } 8251 8252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 8253$as_echo_n "checking for makedev... " >&6; } 8254cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256 8257#if defined(MAJOR_IN_MKDEV) 8258#include <sys/mkdev.h> 8259#elif defined(MAJOR_IN_SYSMACROS) 8260#include <sys/sysmacros.h> 8261#else 8262#include <sys/types.h> 8263#endif 8264 8265int 8266main () 8267{ 8268 8269 makedev(0, 0) 8270 ; 8271 return 0; 8272} 8273 8274_ACEOF 8275if ac_fn_c_try_link "$LINENO"; then : 8276 ac_cv_has_makedev=yes 8277else 8278 ac_cv_has_makedev=no 8279fi 8280rm -f core conftest.err conftest.$ac_objext \ 8281 conftest$ac_exeext conftest.$ac_ext 8282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 8283$as_echo "$ac_cv_has_makedev" >&6; } 8284if test "$ac_cv_has_makedev" = "yes"; then 8285 8286$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h 8287 8288fi 8289 8290# byte swapping 8291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for le64toh" >&5 8292$as_echo_n "checking for le64toh... " >&6; } 8293cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8294/* end confdefs.h. */ 8295 8296#ifdef HAVE_ENDIAN_H 8297#include <endian.h> 8298#elif defined(HAVE_SYS_ENDIAN_H) 8299#include <sys/endian.h> 8300#endif 8301 8302int 8303main () 8304{ 8305 8306 le64toh(1) 8307 ; 8308 return 0; 8309} 8310 8311_ACEOF 8312if ac_fn_c_try_link "$LINENO"; then : 8313 ac_cv_has_le64toh=yes 8314else 8315 ac_cv_has_le64toh=no 8316fi 8317rm -f core conftest.err conftest.$ac_objext \ 8318 conftest$ac_exeext conftest.$ac_ext 8319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_le64toh" >&5 8320$as_echo "$ac_cv_has_le64toh" >&6; } 8321if test "$ac_cv_has_le64toh" = "yes"; then 8322 8323$as_echo "#define HAVE_HTOLE64 1" >>confdefs.h 8324 8325fi 8326 8327use_lfs=yes 8328# Don't use largefile support for GNU/Hurd 8329case $ac_sys_system in GNU*) 8330 use_lfs=no 8331esac 8332 8333if test "$use_lfs" = "yes"; then 8334# Two defines needed to enable largefile support on various platforms 8335# These may affect some typedefs 8336case $ac_sys_system/$ac_sys_release in 8337AIX*) 8338 8339$as_echo "#define _LARGE_FILES 1" >>confdefs.h 8340 8341 ;; 8342esac 8343 8344$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h 8345 8346 8347$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 8348 8349fi 8350 8351# Add some code to confdefs.h so that the test for off_t works on SCO 8352cat >> confdefs.h <<\EOF 8353#if defined(SCO_DS) 8354#undef _OFF_T 8355#endif 8356EOF 8357 8358# Type availability checks 8359ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 8360if test "x$ac_cv_type_mode_t" = xyes; then : 8361 8362else 8363 8364cat >>confdefs.h <<_ACEOF 8365#define mode_t int 8366_ACEOF 8367 8368fi 8369 8370ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 8371if test "x$ac_cv_type_off_t" = xyes; then : 8372 8373else 8374 8375cat >>confdefs.h <<_ACEOF 8376#define off_t long int 8377_ACEOF 8378 8379fi 8380 8381ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8382if test "x$ac_cv_type_pid_t" = xyes; then : 8383 8384else 8385 8386cat >>confdefs.h <<_ACEOF 8387#define pid_t int 8388_ACEOF 8389 8390fi 8391 8392 8393cat >>confdefs.h <<_ACEOF 8394#define RETSIGTYPE void 8395_ACEOF 8396 8397ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8398if test "x$ac_cv_type_size_t" = xyes; then : 8399 8400else 8401 8402cat >>confdefs.h <<_ACEOF 8403#define size_t unsigned int 8404_ACEOF 8405 8406fi 8407 8408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 8409$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 8410if ${ac_cv_type_uid_t+:} false; then : 8411 $as_echo_n "(cached) " >&6 8412else 8413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8414/* end confdefs.h. */ 8415#include <sys/types.h> 8416 8417_ACEOF 8418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8419 $EGREP "uid_t" >/dev/null 2>&1; then : 8420 ac_cv_type_uid_t=yes 8421else 8422 ac_cv_type_uid_t=no 8423fi 8424rm -f conftest* 8425 8426fi 8427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 8428$as_echo "$ac_cv_type_uid_t" >&6; } 8429if test $ac_cv_type_uid_t = no; then 8430 8431$as_echo "#define uid_t int" >>confdefs.h 8432 8433 8434$as_echo "#define gid_t int" >>confdefs.h 8435 8436fi 8437 8438 8439ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 8440if test "x$ac_cv_type_ssize_t" = xyes; then : 8441 8442$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 8443 8444fi 8445 8446ac_fn_c_check_type "$LINENO" "__uint128_t" "ac_cv_type___uint128_t" "$ac_includes_default" 8447if test "x$ac_cv_type___uint128_t" = xyes; then : 8448 8449$as_echo "#define HAVE_GCC_UINT128_T 1" >>confdefs.h 8450 8451fi 8452 8453 8454# Sizes of various common basic types 8455# ANSI C requires sizeof(char) == 1, so no need to check it 8456# The cast to long int works around a bug in the HP C Compiler 8457# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8458# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8459# This bug is HP SR number 8606223364. 8460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 8461$as_echo_n "checking size of int... " >&6; } 8462if ${ac_cv_sizeof_int+:} false; then : 8463 $as_echo_n "(cached) " >&6 8464else 8465 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 8466 8467else 8468 if test "$ac_cv_type_int" = yes; then 8469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8471as_fn_error 77 "cannot compute sizeof (int) 8472See \`config.log' for more details" "$LINENO" 5; } 8473 else 8474 ac_cv_sizeof_int=0 8475 fi 8476fi 8477 8478fi 8479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 8480$as_echo "$ac_cv_sizeof_int" >&6; } 8481 8482 8483 8484cat >>confdefs.h <<_ACEOF 8485#define SIZEOF_INT $ac_cv_sizeof_int 8486_ACEOF 8487 8488 8489# The cast to long int works around a bug in the HP C Compiler 8490# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8491# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8492# This bug is HP SR number 8606223364. 8493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 8494$as_echo_n "checking size of long... " >&6; } 8495if ${ac_cv_sizeof_long+:} false; then : 8496 $as_echo_n "(cached) " >&6 8497else 8498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 8499 8500else 8501 if test "$ac_cv_type_long" = yes; then 8502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8503$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8504as_fn_error 77 "cannot compute sizeof (long) 8505See \`config.log' for more details" "$LINENO" 5; } 8506 else 8507 ac_cv_sizeof_long=0 8508 fi 8509fi 8510 8511fi 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 8513$as_echo "$ac_cv_sizeof_long" >&6; } 8514 8515 8516 8517cat >>confdefs.h <<_ACEOF 8518#define SIZEOF_LONG $ac_cv_sizeof_long 8519_ACEOF 8520 8521 8522# The cast to long int works around a bug in the HP C Compiler 8523# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8524# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8525# This bug is HP SR number 8606223364. 8526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 8527$as_echo_n "checking size of long long... " >&6; } 8528if ${ac_cv_sizeof_long_long+:} false; then : 8529 $as_echo_n "(cached) " >&6 8530else 8531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 8532 8533else 8534 if test "$ac_cv_type_long_long" = yes; then 8535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8537as_fn_error 77 "cannot compute sizeof (long long) 8538See \`config.log' for more details" "$LINENO" 5; } 8539 else 8540 ac_cv_sizeof_long_long=0 8541 fi 8542fi 8543 8544fi 8545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 8546$as_echo "$ac_cv_sizeof_long_long" >&6; } 8547 8548 8549 8550cat >>confdefs.h <<_ACEOF 8551#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 8552_ACEOF 8553 8554 8555# The cast to long int works around a bug in the HP C Compiler 8556# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8557# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8558# This bug is HP SR number 8606223364. 8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 8560$as_echo_n "checking size of void *... " >&6; } 8561if ${ac_cv_sizeof_void_p+:} false; then : 8562 $as_echo_n "(cached) " >&6 8563else 8564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 8565 8566else 8567 if test "$ac_cv_type_void_p" = yes; then 8568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8569$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8570as_fn_error 77 "cannot compute sizeof (void *) 8571See \`config.log' for more details" "$LINENO" 5; } 8572 else 8573 ac_cv_sizeof_void_p=0 8574 fi 8575fi 8576 8577fi 8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 8579$as_echo "$ac_cv_sizeof_void_p" >&6; } 8580 8581 8582 8583cat >>confdefs.h <<_ACEOF 8584#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 8585_ACEOF 8586 8587 8588# The cast to long int works around a bug in the HP C Compiler 8589# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8590# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8591# This bug is HP SR number 8606223364. 8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 8593$as_echo_n "checking size of short... " >&6; } 8594if ${ac_cv_sizeof_short+:} false; then : 8595 $as_echo_n "(cached) " >&6 8596else 8597 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 8598 8599else 8600 if test "$ac_cv_type_short" = yes; then 8601 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8603as_fn_error 77 "cannot compute sizeof (short) 8604See \`config.log' for more details" "$LINENO" 5; } 8605 else 8606 ac_cv_sizeof_short=0 8607 fi 8608fi 8609 8610fi 8611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 8612$as_echo "$ac_cv_sizeof_short" >&6; } 8613 8614 8615 8616cat >>confdefs.h <<_ACEOF 8617#define SIZEOF_SHORT $ac_cv_sizeof_short 8618_ACEOF 8619 8620 8621# The cast to long int works around a bug in the HP C Compiler 8622# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8623# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8624# This bug is HP SR number 8606223364. 8625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 8626$as_echo_n "checking size of float... " >&6; } 8627if ${ac_cv_sizeof_float+:} false; then : 8628 $as_echo_n "(cached) " >&6 8629else 8630 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 8631 8632else 8633 if test "$ac_cv_type_float" = yes; then 8634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8636as_fn_error 77 "cannot compute sizeof (float) 8637See \`config.log' for more details" "$LINENO" 5; } 8638 else 8639 ac_cv_sizeof_float=0 8640 fi 8641fi 8642 8643fi 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 8645$as_echo "$ac_cv_sizeof_float" >&6; } 8646 8647 8648 8649cat >>confdefs.h <<_ACEOF 8650#define SIZEOF_FLOAT $ac_cv_sizeof_float 8651_ACEOF 8652 8653 8654# The cast to long int works around a bug in the HP C Compiler 8655# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8656# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8657# This bug is HP SR number 8606223364. 8658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 8659$as_echo_n "checking size of double... " >&6; } 8660if ${ac_cv_sizeof_double+:} false; then : 8661 $as_echo_n "(cached) " >&6 8662else 8663 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 8664 8665else 8666 if test "$ac_cv_type_double" = yes; then 8667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8669as_fn_error 77 "cannot compute sizeof (double) 8670See \`config.log' for more details" "$LINENO" 5; } 8671 else 8672 ac_cv_sizeof_double=0 8673 fi 8674fi 8675 8676fi 8677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 8678$as_echo "$ac_cv_sizeof_double" >&6; } 8679 8680 8681 8682cat >>confdefs.h <<_ACEOF 8683#define SIZEOF_DOUBLE $ac_cv_sizeof_double 8684_ACEOF 8685 8686 8687# The cast to long int works around a bug in the HP C Compiler 8688# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8689# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8690# This bug is HP SR number 8606223364. 8691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 8692$as_echo_n "checking size of fpos_t... " >&6; } 8693if ${ac_cv_sizeof_fpos_t+:} false; then : 8694 $as_echo_n "(cached) " >&6 8695else 8696 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then : 8697 8698else 8699 if test "$ac_cv_type_fpos_t" = yes; then 8700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8702as_fn_error 77 "cannot compute sizeof (fpos_t) 8703See \`config.log' for more details" "$LINENO" 5; } 8704 else 8705 ac_cv_sizeof_fpos_t=0 8706 fi 8707fi 8708 8709fi 8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 8711$as_echo "$ac_cv_sizeof_fpos_t" >&6; } 8712 8713 8714 8715cat >>confdefs.h <<_ACEOF 8716#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t 8717_ACEOF 8718 8719 8720# The cast to long int works around a bug in the HP C Compiler 8721# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8722# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8723# This bug is HP SR number 8606223364. 8724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 8725$as_echo_n "checking size of size_t... " >&6; } 8726if ${ac_cv_sizeof_size_t+:} false; then : 8727 $as_echo_n "(cached) " >&6 8728else 8729 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 8730 8731else 8732 if test "$ac_cv_type_size_t" = yes; then 8733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8735as_fn_error 77 "cannot compute sizeof (size_t) 8736See \`config.log' for more details" "$LINENO" 5; } 8737 else 8738 ac_cv_sizeof_size_t=0 8739 fi 8740fi 8741 8742fi 8743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 8744$as_echo "$ac_cv_sizeof_size_t" >&6; } 8745 8746 8747 8748cat >>confdefs.h <<_ACEOF 8749#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 8750_ACEOF 8751 8752 8753# The cast to long int works around a bug in the HP C Compiler 8754# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8755# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8756# This bug is HP SR number 8606223364. 8757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 8758$as_echo_n "checking size of pid_t... " >&6; } 8759if ${ac_cv_sizeof_pid_t+:} false; then : 8760 $as_echo_n "(cached) " >&6 8761else 8762 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : 8763 8764else 8765 if test "$ac_cv_type_pid_t" = yes; then 8766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8768as_fn_error 77 "cannot compute sizeof (pid_t) 8769See \`config.log' for more details" "$LINENO" 5; } 8770 else 8771 ac_cv_sizeof_pid_t=0 8772 fi 8773fi 8774 8775fi 8776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 8777$as_echo "$ac_cv_sizeof_pid_t" >&6; } 8778 8779 8780 8781cat >>confdefs.h <<_ACEOF 8782#define SIZEOF_PID_T $ac_cv_sizeof_pid_t 8783_ACEOF 8784 8785 8786# The cast to long int works around a bug in the HP C Compiler 8787# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8788# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8789# This bug is HP SR number 8606223364. 8790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 8791$as_echo_n "checking size of uintptr_t... " >&6; } 8792if ${ac_cv_sizeof_uintptr_t+:} false; then : 8793 $as_echo_n "(cached) " >&6 8794else 8795 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : 8796 8797else 8798 if test "$ac_cv_type_uintptr_t" = yes; then 8799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8801as_fn_error 77 "cannot compute sizeof (uintptr_t) 8802See \`config.log' for more details" "$LINENO" 5; } 8803 else 8804 ac_cv_sizeof_uintptr_t=0 8805 fi 8806fi 8807 8808fi 8809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 8810$as_echo "$ac_cv_sizeof_uintptr_t" >&6; } 8811 8812 8813 8814cat >>confdefs.h <<_ACEOF 8815#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t 8816_ACEOF 8817 8818 8819 8820 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 8822$as_echo_n "checking for long double... " >&6; } 8823if ${ac_cv_type_long_double+:} false; then : 8824 $as_echo_n "(cached) " >&6 8825else 8826 if test "$GCC" = yes; then 8827 ac_cv_type_long_double=yes 8828 else 8829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8830/* end confdefs.h. */ 8831/* The Stardent Vistra knows sizeof (long double), but does 8832 not support it. */ 8833 long double foo = 0.0L; 8834int 8835main () 8836{ 8837static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 8838 sizeof (double) <= sizeof (long double))]; 8839test_array [0] = 0; 8840return test_array [0]; 8841 8842 ; 8843 return 0; 8844} 8845_ACEOF 8846if ac_fn_c_try_compile "$LINENO"; then : 8847 ac_cv_type_long_double=yes 8848else 8849 ac_cv_type_long_double=no 8850fi 8851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8852 fi 8853fi 8854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5 8855$as_echo "$ac_cv_type_long_double" >&6; } 8856 if test $ac_cv_type_long_double = yes; then 8857 8858$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 8859 8860 fi 8861 8862# The cast to long int works around a bug in the HP C Compiler 8863# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8864# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8865# This bug is HP SR number 8606223364. 8866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 8867$as_echo_n "checking size of long double... " >&6; } 8868if ${ac_cv_sizeof_long_double+:} false; then : 8869 $as_echo_n "(cached) " >&6 8870else 8871 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 8872 8873else 8874 if test "$ac_cv_type_long_double" = yes; then 8875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8876$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8877as_fn_error 77 "cannot compute sizeof (long double) 8878See \`config.log' for more details" "$LINENO" 5; } 8879 else 8880 ac_cv_sizeof_long_double=0 8881 fi 8882fi 8883 8884fi 8885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 8886$as_echo "$ac_cv_sizeof_long_double" >&6; } 8887 8888 8889 8890cat >>confdefs.h <<_ACEOF 8891#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 8892_ACEOF 8893 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 _Bool" >&5 8901$as_echo_n "checking size of _Bool... " >&6; } 8902if ${ac_cv_sizeof__Bool+:} false; then : 8903 $as_echo_n "(cached) " >&6 8904else 8905 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : 8906 8907else 8908 if test "$ac_cv_type__Bool" = 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 (_Bool) 8912See \`config.log' for more details" "$LINENO" 5; } 8913 else 8914 ac_cv_sizeof__Bool=0 8915 fi 8916fi 8917 8918fi 8919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 8920$as_echo "$ac_cv_sizeof__Bool" >&6; } 8921 8922 8923 8924cat >>confdefs.h <<_ACEOF 8925#define SIZEOF__BOOL $ac_cv_sizeof__Bool 8926_ACEOF 8927 8928 8929 8930# The cast to long int works around a bug in the HP C Compiler 8931# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8932# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8933# This bug is HP SR number 8606223364. 8934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 8935$as_echo_n "checking size of off_t... " >&6; } 8936if ${ac_cv_sizeof_off_t+:} false; then : 8937 $as_echo_n "(cached) " >&6 8938else 8939 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " 8940#ifdef HAVE_SYS_TYPES_H 8941#include <sys/types.h> 8942#endif 8943 8944"; then : 8945 8946else 8947 if test "$ac_cv_type_off_t" = yes; then 8948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8949$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8950as_fn_error 77 "cannot compute sizeof (off_t) 8951See \`config.log' for more details" "$LINENO" 5; } 8952 else 8953 ac_cv_sizeof_off_t=0 8954 fi 8955fi 8956 8957fi 8958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 8959$as_echo "$ac_cv_sizeof_off_t" >&6; } 8960 8961 8962 8963cat >>confdefs.h <<_ACEOF 8964#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 8965_ACEOF 8966 8967 8968 8969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 8970$as_echo_n "checking whether to enable large file support... " >&6; } 8971if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ 8972 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then 8973 8974$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h 8975 8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8977$as_echo "yes" >&6; } 8978else 8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8980$as_echo "no" >&6; } 8981fi 8982 8983# The cast to long int works around a bug in the HP C Compiler 8984# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8985# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8986# This bug is HP SR number 8606223364. 8987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 8988$as_echo_n "checking size of time_t... " >&6; } 8989if ${ac_cv_sizeof_time_t+:} false; then : 8990 $as_echo_n "(cached) " >&6 8991else 8992 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 8993#ifdef HAVE_SYS_TYPES_H 8994#include <sys/types.h> 8995#endif 8996#ifdef HAVE_TIME_H 8997#include <time.h> 8998#endif 8999 9000"; then : 9001 9002else 9003 if test "$ac_cv_type_time_t" = yes; then 9004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9006as_fn_error 77 "cannot compute sizeof (time_t) 9007See \`config.log' for more details" "$LINENO" 5; } 9008 else 9009 ac_cv_sizeof_time_t=0 9010 fi 9011fi 9012 9013fi 9014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 9015$as_echo "$ac_cv_sizeof_time_t" >&6; } 9016 9017 9018 9019cat >>confdefs.h <<_ACEOF 9020#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 9021_ACEOF 9022 9023 9024 9025# if have pthread_t then define SIZEOF_PTHREAD_T 9026ac_save_cc="$CC" 9027if test "$ac_cv_kpthread" = "yes" 9028then CC="$CC -Kpthread" 9029elif test "$ac_cv_kthread" = "yes" 9030then CC="$CC -Kthread" 9031elif test "$ac_cv_pthread" = "yes" 9032then CC="$CC -pthread" 9033fi 9034 9035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 9036$as_echo_n "checking for pthread_t... " >&6; } 9037have_pthread_t=no 9038cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9039/* end confdefs.h. */ 9040 9041 #include <pthread.h> 9042int 9043main () 9044{ 9045pthread_t x; x = *(pthread_t*)0; 9046 ; 9047 return 0; 9048} 9049 9050_ACEOF 9051if ac_fn_c_try_compile "$LINENO"; then : 9052 have_pthread_t=yes 9053fi 9054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 9056$as_echo "$have_pthread_t" >&6; } 9057if test "$have_pthread_t" = yes ; then 9058 # The cast to long int works around a bug in the HP C Compiler 9059# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9060# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9061# This bug is HP SR number 8606223364. 9062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 9063$as_echo_n "checking size of pthread_t... " >&6; } 9064if ${ac_cv_sizeof_pthread_t+:} false; then : 9065 $as_echo_n "(cached) " >&6 9066else 9067 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 9068#ifdef HAVE_PTHREAD_H 9069#include <pthread.h> 9070#endif 9071 9072"; then : 9073 9074else 9075 if test "$ac_cv_type_pthread_t" = yes; then 9076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9078as_fn_error 77 "cannot compute sizeof (pthread_t) 9079See \`config.log' for more details" "$LINENO" 5; } 9080 else 9081 ac_cv_sizeof_pthread_t=0 9082 fi 9083fi 9084 9085fi 9086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 9087$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 9088 9089 9090 9091cat >>confdefs.h <<_ACEOF 9092#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 9093_ACEOF 9094 9095 9096fi 9097 9098# Issue #25658: POSIX hasn't defined that pthread_key_t is compatible with int. 9099# This checking will be unnecessary after removing deprecated TLS API. 9100# The cast to long int works around a bug in the HP C Compiler 9101# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9102# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9103# This bug is HP SR number 8606223364. 9104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_key_t" >&5 9105$as_echo_n "checking size of pthread_key_t... " >&6; } 9106if ${ac_cv_sizeof_pthread_key_t+:} false; then : 9107 $as_echo_n "(cached) " >&6 9108else 9109 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_key_t))" "ac_cv_sizeof_pthread_key_t" "#include <pthread.h> 9110"; then : 9111 9112else 9113 if test "$ac_cv_type_pthread_key_t" = yes; then 9114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9115$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9116as_fn_error 77 "cannot compute sizeof (pthread_key_t) 9117See \`config.log' for more details" "$LINENO" 5; } 9118 else 9119 ac_cv_sizeof_pthread_key_t=0 9120 fi 9121fi 9122 9123fi 9124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_key_t" >&5 9125$as_echo "$ac_cv_sizeof_pthread_key_t" >&6; } 9126 9127 9128 9129cat >>confdefs.h <<_ACEOF 9130#define SIZEOF_PTHREAD_KEY_T $ac_cv_sizeof_pthread_key_t 9131_ACEOF 9132 9133 9134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthread_key_t is compatible with int" >&5 9135$as_echo_n "checking whether pthread_key_t is compatible with int... " >&6; } 9136if test "$ac_cv_sizeof_pthread_key_t" -eq "$ac_cv_sizeof_int" ; then 9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9138/* end confdefs.h. */ 9139#include <pthread.h> 9140int 9141main () 9142{ 9143pthread_key_t k; k * 1; 9144 ; 9145 return 0; 9146} 9147_ACEOF 9148if ac_fn_c_try_compile "$LINENO"; then : 9149 ac_pthread_key_t_is_arithmetic_type=yes 9150else 9151 ac_pthread_key_t_is_arithmetic_type=no 9152 9153fi 9154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pthread_key_t_is_arithmetic_type" >&5 9156$as_echo "$ac_pthread_key_t_is_arithmetic_type" >&6; } 9157 if test "$ac_pthread_key_t_is_arithmetic_type" = yes ; then 9158 9159$as_echo "#define PTHREAD_KEY_T_IS_COMPATIBLE_WITH_INT 1" >>confdefs.h 9160 9161 fi 9162else 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9164$as_echo "no" >&6; } 9165fi 9166CC="$ac_save_cc" 9167 9168 9169case $ac_sys_system/$ac_sys_release in 9170 Darwin/[01567]\..*) 9171 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" 9172 ;; 9173 Darwin/*) 9174 OTHER_LIBTOOL_OPT="" 9175 ;; 9176esac 9177 9178 9179 9180case $ac_sys_system/$ac_sys_release in 9181 Darwin/[01567]\..*) 9182 LIBTOOL_CRUFT="-framework System -lcc_dynamic" 9183 if test "${enable_universalsdk}"; then 9184 : 9185 else 9186 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" 9187 fi 9188 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9189 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 9190 Darwin/*) 9191 gcc_version=`gcc -dumpversion` 9192 if test ${gcc_version} '<' 4.0 9193 then 9194 LIBTOOL_CRUFT="-lcc_dynamic" 9195 else 9196 LIBTOOL_CRUFT="" 9197 fi 9198 if test "$cross_compiling" = yes; then : 9199 ac_osx_32bit=yes 9200else 9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9202/* end confdefs.h. */ 9203 9204 #include <unistd.h> 9205 int main(int argc, char*argv[]) 9206 { 9207 if (sizeof(long) == 4) { 9208 return 0; 9209 } else { 9210 return 1; 9211 } 9212 } 9213 9214_ACEOF 9215if ac_fn_c_try_run "$LINENO"; then : 9216 ac_osx_32bit=yes 9217else 9218 ac_osx_32bit=no 9219fi 9220rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9221 conftest.$ac_objext conftest.beam conftest.$ac_ext 9222fi 9223 9224 9225 if test "${ac_osx_32bit}" = "yes"; then 9226 case `/usr/bin/arch` in 9227 i386) 9228 MACOSX_DEFAULT_ARCH="i386" 9229 ;; 9230 ppc) 9231 MACOSX_DEFAULT_ARCH="ppc" 9232 ;; 9233 *) 9234 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 9235 ;; 9236 esac 9237 else 9238 case `/usr/bin/arch` in 9239 i386) 9240 MACOSX_DEFAULT_ARCH="x86_64" 9241 ;; 9242 ppc) 9243 MACOSX_DEFAULT_ARCH="ppc64" 9244 ;; 9245 *) 9246 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 9247 ;; 9248 esac 9249 9250 fi 9251 9252 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" 9253 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9254 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 9255esac 9256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 9257$as_echo_n "checking for --enable-framework... " >&6; } 9258if test "$enable_framework" 9259then 9260 BASECFLAGS="$BASECFLAGS -fno-common -dynamic" 9261 # -F. is needed to allow linking to the framework while 9262 # in the build location. 9263 9264$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h 9265 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9267$as_echo "yes" >&6; } 9268 if test $enable_shared = "yes" 9269 then 9270 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead" "$LINENO" 5 9271 fi 9272else 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9274$as_echo "no" >&6; } 9275fi 9276 9277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 9278$as_echo_n "checking for dyld... " >&6; } 9279case $ac_sys_system/$ac_sys_release in 9280 Darwin/*) 9281 9282$as_echo "#define WITH_DYLD 1" >>confdefs.h 9283 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 9285$as_echo "always on for Darwin" >&6; } 9286 ;; 9287 *) 9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9289$as_echo "no" >&6; } 9290 ;; 9291esac 9292 9293# Set info about shared libraries. 9294 9295 9296 9297 9298 9299 9300 9301# SHLIB_SUFFIX is the extension of shared libraries `(including the dot!) 9302# -- usually .so, .sl on HP-UX, .dll on Cygwin 9303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the extension of shared libraries" >&5 9304$as_echo_n "checking the extension of shared libraries... " >&6; } 9305if test -z "$SHLIB_SUFFIX"; then 9306 case $ac_sys_system in 9307 hp*|HP*) 9308 case `uname -m` in 9309 ia64) SHLIB_SUFFIX=.so;; 9310 *) SHLIB_SUFFIX=.sl;; 9311 esac 9312 ;; 9313 CYGWIN*) SHLIB_SUFFIX=.dll;; 9314 *) SHLIB_SUFFIX=.so;; 9315 esac 9316fi 9317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIB_SUFFIX" >&5 9318$as_echo "$SHLIB_SUFFIX" >&6; } 9319 9320# LDSHARED is the ld *command* used to create shared library 9321# -- "cc -G" on SunOS 5.x. 9322# (Shared libraries in this instance are shared modules to be loaded into 9323# Python, as opposed to building Python itself as a shared library.) 9324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 9325$as_echo_n "checking LDSHARED... " >&6; } 9326if test -z "$LDSHARED" 9327then 9328 case $ac_sys_system/$ac_sys_release in 9329 AIX*) 9330 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" 9331 LDSHARED="\$(LIBPL)/ld_so_aix \$(CC) -bI:\$(LIBPL)/python.exp" 9332 ;; 9333 SunOS/5*) 9334 if test "$GCC" = "yes" ; then 9335 LDSHARED='$(CC) -shared' 9336 LDCXXSHARED='$(CXX) -shared' 9337 else 9338 LDSHARED='$(CC) -G' 9339 LDCXXSHARED='$(CXX) -G' 9340 fi ;; 9341 hp*|HP*) 9342 if test "$GCC" = "yes" ; then 9343 LDSHARED='$(CC) -shared' 9344 LDCXXSHARED='$(CXX) -shared' 9345 else 9346 LDSHARED='$(CC) -b' 9347 LDCXXSHARED='$(CXX) -b' 9348 fi ;; 9349 Darwin/1.3*) 9350 LDSHARED='$(CC) -bundle' 9351 LDCXXSHARED='$(CXX) -bundle' 9352 if test "$enable_framework" ; then 9353 # Link against the framework. All externals should be defined. 9354 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9355 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9356 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9357 else 9358 # No framework. Ignore undefined symbols, assuming they come from Python 9359 LDSHARED="$LDSHARED -undefined suppress" 9360 LDCXXSHARED="$LDCXXSHARED -undefined suppress" 9361 fi ;; 9362 Darwin/1.4*|Darwin/5.*|Darwin/6.*) 9363 LDSHARED='$(CC) -bundle' 9364 LDCXXSHARED='$(CXX) -bundle' 9365 if test "$enable_framework" ; then 9366 # Link against the framework. All externals should be defined. 9367 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9368 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9369 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9370 else 9371 # No framework, use the Python app as bundle-loader 9372 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 9373 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9374 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9375 fi ;; 9376 Darwin/*) 9377 # Use -undefined dynamic_lookup whenever possible (10.3 and later). 9378 # This allows an extension to be used in any Python 9379 9380 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 9381 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 9382 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 9383 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 9384 if test ${dep_target_major} -eq 10 && \ 9385 test ${dep_target_minor} -le 2 9386 then 9387 # building for OS X 10.0 through 10.2 9388 LDSHARED='$(CC) -bundle' 9389 LDCXXSHARED='$(CXX) -bundle' 9390 if test "$enable_framework" ; then 9391 # Link against the framework. All externals should be defined. 9392 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9393 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9394 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9395 else 9396 # No framework, use the Python app as bundle-loader 9397 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 9398 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9399 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 9400 fi 9401 else 9402 # building for OS X 10.3 and later 9403 LDSHARED='$(CC) -bundle -undefined dynamic_lookup' 9404 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' 9405 BLDSHARED="$LDSHARED" 9406 fi 9407 ;; 9408 Linux*|GNU*|QNX*|VxWorks*) 9409 LDSHARED='$(CC) -shared' 9410 LDCXXSHARED='$(CXX) -shared';; 9411 FreeBSD*) 9412 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9413 then 9414 LDSHARED='$(CC) -shared' 9415 LDCXXSHARED='$(CXX) -shared' 9416 else 9417 LDSHARED="ld -Bshareable" 9418 fi;; 9419 OpenBSD*) 9420 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9421 then 9422 LDSHARED='$(CC) -shared $(CCSHARED)' 9423 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 9424 else 9425 case `uname -r` in 9426 [01].* | 2.[0-7] | 2.[0-7].*) 9427 LDSHARED="ld -Bshareable ${LDFLAGS}" 9428 ;; 9429 *) 9430 LDSHARED='$(CC) -shared $(CCSHARED)' 9431 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 9432 ;; 9433 esac 9434 fi;; 9435 NetBSD*|DragonFly*) 9436 LDSHARED='$(CC) -shared' 9437 LDCXXSHARED='$(CXX) -shared';; 9438 OpenUNIX*|UnixWare*) 9439 if test "$GCC" = "yes" ; then 9440 LDSHARED='$(CC) -shared' 9441 LDCXXSHARED='$(CXX) -shared' 9442 else 9443 LDSHARED='$(CC) -G' 9444 LDCXXSHARED='$(CXX) -G' 9445 fi;; 9446 SCO_SV*) 9447 LDSHARED='$(CC) -Wl,-G,-Bexport' 9448 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; 9449 CYGWIN*) 9450 LDSHARED="gcc -shared -Wl,--enable-auto-image-base" 9451 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; 9452 *) LDSHARED="ld";; 9453 esac 9454fi 9455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 9456$as_echo "$LDSHARED" >&6; } 9457LDCXXSHARED=${LDCXXSHARED-$LDSHARED} 9458BLDSHARED=${BLDSHARED-$LDSHARED} 9459# CCSHARED are the C *flags* used to create objects to go into a shared 9460# library (module) -- this is only needed for a few systems 9461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 9462$as_echo_n "checking CCSHARED... " >&6; } 9463if test -z "$CCSHARED" 9464then 9465 case $ac_sys_system/$ac_sys_release in 9466 SunOS*) if test "$GCC" = yes; 9467 then CCSHARED="-fPIC"; 9468 elif test `uname -p` = sparc; 9469 then CCSHARED="-xcode=pic32"; 9470 else CCSHARED="-Kpic"; 9471 fi;; 9472 hp*|HP*) if test "$GCC" = yes; 9473 then CCSHARED="-fPIC"; 9474 else CCSHARED="+z"; 9475 fi;; 9476 Linux-android*) ;; 9477 Linux*|GNU*) CCSHARED="-fPIC";; 9478 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 9479 OpenUNIX*|UnixWare*) 9480 if test "$GCC" = "yes" 9481 then CCSHARED="-fPIC" 9482 else CCSHARED="-KPIC" 9483 fi;; 9484 SCO_SV*) 9485 if test "$GCC" = "yes" 9486 then CCSHARED="-fPIC" 9487 else CCSHARED="-Kpic -belf" 9488 fi;; 9489 VxWorks*) 9490 CCSHARED="-fpic -D__SO_PICABILINUX__ -ftls-model=global-dynamic" 9491 esac 9492fi 9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 9494$as_echo "$CCSHARED" >&6; } 9495# LINKFORSHARED are the flags passed to the $(CC) command that links 9496# the python executable -- this is only needed for a few systems 9497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 9498$as_echo_n "checking LINKFORSHARED... " >&6; } 9499if test -z "$LINKFORSHARED" 9500then 9501 case $ac_sys_system/$ac_sys_release in 9502 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; 9503 hp*|HP*) 9504 LINKFORSHARED="-Wl,-E -Wl,+s";; 9505# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 9506 Linux-android*) LINKFORSHARED="-pie -Xlinker -export-dynamic";; 9507 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 9508 # -u libsys_s pulls in all symbols in libsys 9509 Darwin/*) 9510 LINKFORSHARED="$extra_undefs -framework CoreFoundation" 9511 9512 # Issue #18075: the default maximum stack size (8MBytes) is too 9513 # small for the default recursion limit. Increase the stack size 9514 # to ensure that tests don't crash 9515 # Note: This matches the value of THREAD_STACK_SIZE in 9516 # thread_pthread.h 9517 LINKFORSHARED="-Wl,-stack_size,1000000 $LINKFORSHARED" 9518 9519 if test "$enable_framework" 9520 then 9521 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 9522 fi 9523 LINKFORSHARED="$LINKFORSHARED";; 9524 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; 9525 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; 9526 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; 9527 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) 9528 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 9529 then 9530 LINKFORSHARED="-Wl,--export-dynamic" 9531 fi;; 9532 SunOS/5*) case $CC in 9533 *gcc*) 9534 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null 9535 then 9536 LINKFORSHARED="-Xlinker --export-dynamic" 9537 fi;; 9538 esac;; 9539 CYGWIN*) 9540 if test $enable_shared = "no" 9541 then 9542 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' 9543 fi;; 9544 QNX*) 9545 # -Wl,-E causes the symbols to be added to the dynamic 9546 # symbol table so that they can be found when a module 9547 # is loaded. -N 2048K causes the stack size to be set 9548 # to 2048 kilobytes so that the stack doesn't overflow 9549 # when running test_compile.py. 9550 LINKFORSHARED='-Wl,-E -N 2048K';; 9551 VxWorks*) 9552 LINKFORSHARED='--export-dynamic';; 9553 esac 9554fi 9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 9556$as_echo "$LINKFORSHARED" >&6; } 9557 9558 9559 9560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 9561$as_echo_n "checking CFLAGSFORSHARED... " >&6; } 9562if test ! "$LIBRARY" = "$LDLIBRARY" 9563then 9564 case $ac_sys_system in 9565 CYGWIN*) 9566 # Cygwin needs CCSHARED when building extension DLLs 9567 # but not when building the interpreter DLL. 9568 CFLAGSFORSHARED='';; 9569 *) 9570 CFLAGSFORSHARED='$(CCSHARED)' 9571 esac 9572fi 9573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 9574$as_echo "$CFLAGSFORSHARED" >&6; } 9575 9576# SHLIBS are libraries (except -lc and -lm) to link to the python shared 9577# library (with --enable-shared). 9578# For platforms on which shared libraries are not allowed to have unresolved 9579# symbols, this must be set to $(LIBS) (expanded by make). We do this even 9580# if it is not required, since it creates a dependency of the shared library 9581# to LIBS. This, in turn, means that applications linking the shared libpython 9582# don't need to link LIBS explicitly. The default should be only changed 9583# on systems where this approach causes problems. 9584 9585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 9586$as_echo_n "checking SHLIBS... " >&6; } 9587case "$ac_sys_system" in 9588 *) 9589 SHLIBS='$(LIBS)';; 9590esac 9591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 9592$as_echo "$SHLIBS" >&6; } 9593 9594 9595# checks for libraries 9596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sendfile in -lsendfile" >&5 9597$as_echo_n "checking for sendfile in -lsendfile... " >&6; } 9598if ${ac_cv_lib_sendfile_sendfile+:} false; then : 9599 $as_echo_n "(cached) " >&6 9600else 9601 ac_check_lib_save_LIBS=$LIBS 9602LIBS="-lsendfile $LIBS" 9603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9604/* end confdefs.h. */ 9605 9606/* Override any GCC internal prototype to avoid an error. 9607 Use char because int might match the return type of a GCC 9608 builtin and then its argument prototype would still apply. */ 9609#ifdef __cplusplus 9610extern "C" 9611#endif 9612char sendfile (); 9613int 9614main () 9615{ 9616return sendfile (); 9617 ; 9618 return 0; 9619} 9620_ACEOF 9621if ac_fn_c_try_link "$LINENO"; then : 9622 ac_cv_lib_sendfile_sendfile=yes 9623else 9624 ac_cv_lib_sendfile_sendfile=no 9625fi 9626rm -f core conftest.err conftest.$ac_objext \ 9627 conftest$ac_exeext conftest.$ac_ext 9628LIBS=$ac_check_lib_save_LIBS 9629fi 9630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sendfile_sendfile" >&5 9631$as_echo "$ac_cv_lib_sendfile_sendfile" >&6; } 9632if test "x$ac_cv_lib_sendfile_sendfile" = xyes; then : 9633 cat >>confdefs.h <<_ACEOF 9634#define HAVE_LIBSENDFILE 1 9635_ACEOF 9636 9637 LIBS="-lsendfile $LIBS" 9638 9639fi 9640 9641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 9642$as_echo_n "checking for dlopen in -ldl... " >&6; } 9643if ${ac_cv_lib_dl_dlopen+:} false; then : 9644 $as_echo_n "(cached) " >&6 9645else 9646 ac_check_lib_save_LIBS=$LIBS 9647LIBS="-ldl $LIBS" 9648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9649/* end confdefs.h. */ 9650 9651/* Override any GCC internal prototype to avoid an error. 9652 Use char because int might match the return type of a GCC 9653 builtin and then its argument prototype would still apply. */ 9654#ifdef __cplusplus 9655extern "C" 9656#endif 9657char dlopen (); 9658int 9659main () 9660{ 9661return dlopen (); 9662 ; 9663 return 0; 9664} 9665_ACEOF 9666if ac_fn_c_try_link "$LINENO"; then : 9667 ac_cv_lib_dl_dlopen=yes 9668else 9669 ac_cv_lib_dl_dlopen=no 9670fi 9671rm -f core conftest.err conftest.$ac_objext \ 9672 conftest$ac_exeext conftest.$ac_ext 9673LIBS=$ac_check_lib_save_LIBS 9674fi 9675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 9676$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 9677if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 9678 cat >>confdefs.h <<_ACEOF 9679#define HAVE_LIBDL 1 9680_ACEOF 9681 9682 LIBS="-ldl $LIBS" 9683 9684fi 9685 # Dynamic linking for SunOS/Solaris and SYSV 9686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 9687$as_echo_n "checking for shl_load in -ldld... " >&6; } 9688if ${ac_cv_lib_dld_shl_load+:} false; then : 9689 $as_echo_n "(cached) " >&6 9690else 9691 ac_check_lib_save_LIBS=$LIBS 9692LIBS="-ldld $LIBS" 9693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9694/* end confdefs.h. */ 9695 9696/* Override any GCC internal prototype to avoid an error. 9697 Use char because int might match the return type of a GCC 9698 builtin and then its argument prototype would still apply. */ 9699#ifdef __cplusplus 9700extern "C" 9701#endif 9702char shl_load (); 9703int 9704main () 9705{ 9706return shl_load (); 9707 ; 9708 return 0; 9709} 9710_ACEOF 9711if ac_fn_c_try_link "$LINENO"; then : 9712 ac_cv_lib_dld_shl_load=yes 9713else 9714 ac_cv_lib_dld_shl_load=no 9715fi 9716rm -f core conftest.err conftest.$ac_objext \ 9717 conftest$ac_exeext conftest.$ac_ext 9718LIBS=$ac_check_lib_save_LIBS 9719fi 9720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 9721$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 9722if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 9723 cat >>confdefs.h <<_ACEOF 9724#define HAVE_LIBDLD 1 9725_ACEOF 9726 9727 LIBS="-ldld $LIBS" 9728 9729fi 9730 # Dynamic linking for HP-UX 9731 9732# checks for uuid.h location 9733for ac_header in uuid/uuid.h uuid.h 9734do : 9735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9736ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9737if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9738 cat >>confdefs.h <<_ACEOF 9739#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9740_ACEOF 9741 9742fi 9743 9744done 9745 9746 9747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate_time_safe" >&5 9748$as_echo_n "checking for uuid_generate_time_safe... " >&6; } 9749cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9750/* end confdefs.h. */ 9751#include <uuid/uuid.h> 9752int 9753main () 9754{ 9755 9756#ifndef uuid_generate_time_safe 9757void *x = uuid_generate_time_safe 9758#endif 9759 9760 ; 9761 return 0; 9762} 9763_ACEOF 9764if ac_fn_c_try_compile "$LINENO"; then : 9765 9766$as_echo "#define HAVE_UUID_GENERATE_TIME_SAFE 1" >>confdefs.h 9767 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9769$as_echo "yes" >&6; } 9770else 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9772$as_echo "no" >&6; } 9773 9774fi 9775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9776 9777# AIX provides support for RFC4122 (uuid) in libc.a starting with AIX 6.1 (anno 2007) 9778# FreeBSD and OpenBSD provides support as well 9779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create" >&5 9780$as_echo_n "checking for uuid_create... " >&6; } 9781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9782/* end confdefs.h. */ 9783#include <uuid.h> 9784int 9785main () 9786{ 9787 9788#ifndef uuid_create 9789void *x = uuid_create 9790#endif 9791 9792 ; 9793 return 0; 9794} 9795_ACEOF 9796if ac_fn_c_try_compile "$LINENO"; then : 9797 9798$as_echo "#define HAVE_UUID_CREATE 1" >>confdefs.h 9799 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9801$as_echo "yes" >&6; } 9802else 9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9804$as_echo "no" >&6; } 9805 9806fi 9807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9808 9809# Little-endian FreeBSD, OpenBSD and NetBSD needs encoding into an octet 9810# stream in big-endian byte-order 9811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_enc_be" >&5 9812$as_echo_n "checking for uuid_enc_be... " >&6; } 9813cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9814/* end confdefs.h. */ 9815#include <uuid.h> 9816int 9817main () 9818{ 9819 9820#ifndef uuid_enc_be 9821void *x = uuid_enc_be 9822#endif 9823 9824 ; 9825 return 0; 9826} 9827_ACEOF 9828if ac_fn_c_try_compile "$LINENO"; then : 9829 9830$as_echo "#define HAVE_UUID_ENC_BE 1" >>confdefs.h 9831 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9833$as_echo "yes" >&6; } 9834else 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9836$as_echo "no" >&6; } 9837 9838fi 9839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9840 9841# 'Real Time' functions on Solaris 9842# posix4 on Solaris 2.6 9843# pthread (first!) on Linux 9844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 9845$as_echo_n "checking for library containing sem_init... " >&6; } 9846if ${ac_cv_search_sem_init+:} false; then : 9847 $as_echo_n "(cached) " >&6 9848else 9849 ac_func_search_save_LIBS=$LIBS 9850cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9851/* end confdefs.h. */ 9852 9853/* Override any GCC internal prototype to avoid an error. 9854 Use char because int might match the return type of a GCC 9855 builtin and then its argument prototype would still apply. */ 9856#ifdef __cplusplus 9857extern "C" 9858#endif 9859char sem_init (); 9860int 9861main () 9862{ 9863return sem_init (); 9864 ; 9865 return 0; 9866} 9867_ACEOF 9868for ac_lib in '' pthread rt posix4; do 9869 if test -z "$ac_lib"; then 9870 ac_res="none required" 9871 else 9872 ac_res=-l$ac_lib 9873 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9874 fi 9875 if ac_fn_c_try_link "$LINENO"; then : 9876 ac_cv_search_sem_init=$ac_res 9877fi 9878rm -f core conftest.err conftest.$ac_objext \ 9879 conftest$ac_exeext 9880 if ${ac_cv_search_sem_init+:} false; then : 9881 break 9882fi 9883done 9884if ${ac_cv_search_sem_init+:} false; then : 9885 9886else 9887 ac_cv_search_sem_init=no 9888fi 9889rm conftest.$ac_ext 9890LIBS=$ac_func_search_save_LIBS 9891fi 9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 9893$as_echo "$ac_cv_search_sem_init" >&6; } 9894ac_res=$ac_cv_search_sem_init 9895if test "$ac_res" != no; then : 9896 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9897 9898fi 9899 9900 9901# check if we need libintl for locale functions 9902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 9903$as_echo_n "checking for textdomain in -lintl... " >&6; } 9904if ${ac_cv_lib_intl_textdomain+:} false; then : 9905 $as_echo_n "(cached) " >&6 9906else 9907 ac_check_lib_save_LIBS=$LIBS 9908LIBS="-lintl $LIBS" 9909cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9910/* end confdefs.h. */ 9911 9912/* Override any GCC internal prototype to avoid an error. 9913 Use char because int might match the return type of a GCC 9914 builtin and then its argument prototype would still apply. */ 9915#ifdef __cplusplus 9916extern "C" 9917#endif 9918char textdomain (); 9919int 9920main () 9921{ 9922return textdomain (); 9923 ; 9924 return 0; 9925} 9926_ACEOF 9927if ac_fn_c_try_link "$LINENO"; then : 9928 ac_cv_lib_intl_textdomain=yes 9929else 9930 ac_cv_lib_intl_textdomain=no 9931fi 9932rm -f core conftest.err conftest.$ac_objext \ 9933 conftest$ac_exeext conftest.$ac_ext 9934LIBS=$ac_check_lib_save_LIBS 9935fi 9936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 9937$as_echo "$ac_cv_lib_intl_textdomain" >&6; } 9938if test "x$ac_cv_lib_intl_textdomain" = xyes; then : 9939 9940$as_echo "#define WITH_LIBINTL 1" >>confdefs.h 9941 9942 LIBS="-lintl $LIBS" 9943fi 9944 9945 9946# checks for system dependent C++ extensions support 9947case "$ac_sys_system" in 9948 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 9949$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } 9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9951/* end confdefs.h. */ 9952 9953 #include <load.h> 9954int 9955main () 9956{ 9957loadAndInit("", 0, "") 9958 ; 9959 return 0; 9960} 9961 9962_ACEOF 9963if ac_fn_c_try_link "$LINENO"; then : 9964 9965 9966$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h 9967 9968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9969$as_echo "yes" >&6; } 9970 9971else 9972 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9974$as_echo "no" >&6; } 9975 9976fi 9977rm -f core conftest.err conftest.$ac_objext \ 9978 conftest$ac_exeext conftest.$ac_ext;; 9979 *) ;; 9980esac 9981 9982# check for systems that require aligned memory access 9983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking aligned memory access is required" >&5 9984$as_echo_n "checking aligned memory access is required... " >&6; } 9985if ${ac_cv_aligned_required+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987else 9988 if test "$cross_compiling" = yes; then : 9989 ac_cv_aligned_required=yes 9990else 9991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9992/* end confdefs.h. */ 9993 9994int main() 9995{ 9996 char s[16]; 9997 int i, *p1, *p2; 9998 for (i=0; i < 16; i++) 9999 s[i] = i; 10000 p1 = (int*)(s+1); 10001 p2 = (int*)(s+2); 10002 if (*p1 == *p2) 10003 return 1; 10004 return 0; 10005} 10006_ACEOF 10007if ac_fn_c_try_run "$LINENO"; then : 10008 ac_cv_aligned_required=no 10009else 10010 ac_cv_aligned_required=yes 10011fi 10012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10013 conftest.$ac_objext conftest.beam conftest.$ac_ext 10014fi 10015 10016 10017fi 10018 10019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_aligned_required" >&5 10020$as_echo "$ac_cv_aligned_required" >&6; } 10021if test "$ac_cv_aligned_required" = yes ; then 10022 10023$as_echo "#define HAVE_ALIGNED_REQUIRED 1" >>confdefs.h 10024 10025fi 10026 10027# str, bytes and memoryview hash algorithm 10028 10029 10030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-hash-algorithm" >&5 10031$as_echo_n "checking for --with-hash-algorithm... " >&6; } 10032 10033# Check whether --with-hash_algorithm was given. 10034if test "${with_hash_algorithm+set}" = set; then : 10035 withval=$with_hash_algorithm; 10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10037$as_echo "$withval" >&6; } 10038case "$withval" in 10039 siphash24) 10040 $as_echo "#define Py_HASH_ALGORITHM 1" >>confdefs.h 10041 10042 ;; 10043 fnv) 10044 $as_echo "#define Py_HASH_ALGORITHM 2" >>confdefs.h 10045 10046 ;; 10047 *) 10048 as_fn_error $? "unknown hash algorithm '$withval'" "$LINENO" 5 10049 ;; 10050esac 10051 10052else 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5 10054$as_echo "default" >&6; } 10055fi 10056 10057 10058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-address-sanitizer" >&5 10059$as_echo_n "checking for --with-address-sanitizer... " >&6; } 10060 10061# Check whether --with-address_sanitizer was given. 10062if test "${with_address_sanitizer+set}" = set; then : 10063 withval=$with_address_sanitizer; 10064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10065$as_echo "$withval" >&6; } 10066BASECFLAGS="-fsanitize=address -fno-omit-frame-pointer $BASECFLAGS" 10067LDFLAGS="-fsanitize=address $LDFLAGS" 10068# ASan works by controlling memory allocation, our own malloc interferes. 10069with_pymalloc="no" 10070 10071else 10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10073$as_echo "no" >&6; } 10074fi 10075 10076 10077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-memory-sanitizer" >&5 10078$as_echo_n "checking for --with-memory-sanitizer... " >&6; } 10079 10080# Check whether --with-memory_sanitizer was given. 10081if test "${with_memory_sanitizer+set}" = set; then : 10082 withval=$with_memory_sanitizer; 10083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10084$as_echo "$withval" >&6; } 10085BASECFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 -fno-omit-frame-pointer $BASECFLAGS" 10086LDFLAGS="-fsanitize=memory -fsanitize-memory-track-origins=2 $LDFLAGS" 10087# MSan works by controlling memory allocation, our own malloc interferes. 10088with_pymalloc="no" 10089 10090else 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10092$as_echo "no" >&6; } 10093fi 10094 10095 10096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-undefined-behavior-sanitizer" >&5 10097$as_echo_n "checking for --with-undefined-behavior-sanitizer... " >&6; } 10098 10099# Check whether --with-undefined_behavior_sanitizer was given. 10100if test "${with_undefined_behavior_sanitizer+set}" = set; then : 10101 withval=$with_undefined_behavior_sanitizer; 10102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10103$as_echo "$withval" >&6; } 10104BASECFLAGS="-fsanitize=undefined $BASECFLAGS" 10105LDFLAGS="-fsanitize=undefined $LDFLAGS" 10106 10107else 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10109$as_echo "no" >&6; } 10110fi 10111 10112 10113# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. 10114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 10115$as_echo_n "checking for t_open in -lnsl... " >&6; } 10116if ${ac_cv_lib_nsl_t_open+:} false; then : 10117 $as_echo_n "(cached) " >&6 10118else 10119 ac_check_lib_save_LIBS=$LIBS 10120LIBS="-lnsl $LIBS" 10121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10122/* end confdefs.h. */ 10123 10124/* Override any GCC internal prototype to avoid an error. 10125 Use char because int might match the return type of a GCC 10126 builtin and then its argument prototype would still apply. */ 10127#ifdef __cplusplus 10128extern "C" 10129#endif 10130char t_open (); 10131int 10132main () 10133{ 10134return t_open (); 10135 ; 10136 return 0; 10137} 10138_ACEOF 10139if ac_fn_c_try_link "$LINENO"; then : 10140 ac_cv_lib_nsl_t_open=yes 10141else 10142 ac_cv_lib_nsl_t_open=no 10143fi 10144rm -f core conftest.err conftest.$ac_objext \ 10145 conftest$ac_exeext conftest.$ac_ext 10146LIBS=$ac_check_lib_save_LIBS 10147fi 10148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 10149$as_echo "$ac_cv_lib_nsl_t_open" >&6; } 10150if test "x$ac_cv_lib_nsl_t_open" = xyes; then : 10151 LIBS="-lnsl $LIBS" 10152fi 10153 # SVR4 10154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 10155$as_echo_n "checking for socket in -lsocket... " >&6; } 10156if ${ac_cv_lib_socket_socket+:} false; then : 10157 $as_echo_n "(cached) " >&6 10158else 10159 ac_check_lib_save_LIBS=$LIBS 10160LIBS="-lsocket $LIBS $LIBS" 10161cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10162/* end confdefs.h. */ 10163 10164/* Override any GCC internal prototype to avoid an error. 10165 Use char because int might match the return type of a GCC 10166 builtin and then its argument prototype would still apply. */ 10167#ifdef __cplusplus 10168extern "C" 10169#endif 10170char socket (); 10171int 10172main () 10173{ 10174return socket (); 10175 ; 10176 return 0; 10177} 10178_ACEOF 10179if ac_fn_c_try_link "$LINENO"; then : 10180 ac_cv_lib_socket_socket=yes 10181else 10182 ac_cv_lib_socket_socket=no 10183fi 10184rm -f core conftest.err conftest.$ac_objext \ 10185 conftest$ac_exeext conftest.$ac_ext 10186LIBS=$ac_check_lib_save_LIBS 10187fi 10188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 10189$as_echo "$ac_cv_lib_socket_socket" >&6; } 10190if test "x$ac_cv_lib_socket_socket" = xyes; then : 10191 LIBS="-lsocket $LIBS" 10192fi 10193 # SVR4 sockets 10194 10195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 10196$as_echo_n "checking for --with-libs... " >&6; } 10197 10198# Check whether --with-libs was given. 10199if test "${with_libs+set}" = set; then : 10200 withval=$with_libs; 10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 10202$as_echo "$withval" >&6; } 10203LIBS="$withval $LIBS" 10204 10205else 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10207$as_echo "no" >&6; } 10208fi 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 10219 if test -n "$ac_tool_prefix"; then 10220 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 10221set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 10222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10223$as_echo_n "checking for $ac_word... " >&6; } 10224if ${ac_cv_path_PKG_CONFIG+:} false; then : 10225 $as_echo_n "(cached) " >&6 10226else 10227 case $PKG_CONFIG in 10228 [\\/]* | ?:[\\/]*) 10229 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 10230 ;; 10231 *) 10232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10233for as_dir in $PATH 10234do 10235 IFS=$as_save_IFS 10236 test -z "$as_dir" && as_dir=. 10237 for ac_exec_ext in '' $ac_executable_extensions; do 10238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10239 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10241 break 2 10242 fi 10243done 10244 done 10245IFS=$as_save_IFS 10246 10247 ;; 10248esac 10249fi 10250PKG_CONFIG=$ac_cv_path_PKG_CONFIG 10251if test -n "$PKG_CONFIG"; then 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 10253$as_echo "$PKG_CONFIG" >&6; } 10254else 10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10256$as_echo "no" >&6; } 10257fi 10258 10259 10260fi 10261if test -z "$ac_cv_path_PKG_CONFIG"; then 10262 ac_pt_PKG_CONFIG=$PKG_CONFIG 10263 # Extract the first word of "pkg-config", so it can be a program name with args. 10264set dummy pkg-config; ac_word=$2 10265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10266$as_echo_n "checking for $ac_word... " >&6; } 10267if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 10268 $as_echo_n "(cached) " >&6 10269else 10270 case $ac_pt_PKG_CONFIG in 10271 [\\/]* | ?:[\\/]*) 10272 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 10273 ;; 10274 *) 10275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10276for as_dir in $PATH 10277do 10278 IFS=$as_save_IFS 10279 test -z "$as_dir" && as_dir=. 10280 for ac_exec_ext in '' $ac_executable_extensions; do 10281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10282 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10284 break 2 10285 fi 10286done 10287 done 10288IFS=$as_save_IFS 10289 10290 ;; 10291esac 10292fi 10293ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 10294if test -n "$ac_pt_PKG_CONFIG"; then 10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 10296$as_echo "$ac_pt_PKG_CONFIG" >&6; } 10297else 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10299$as_echo "no" >&6; } 10300fi 10301 10302 if test "x$ac_pt_PKG_CONFIG" = x; then 10303 PKG_CONFIG="" 10304 else 10305 case $cross_compiling:$ac_tool_warned in 10306yes:) 10307{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10308$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10309ac_tool_warned=yes ;; 10310esac 10311 PKG_CONFIG=$ac_pt_PKG_CONFIG 10312 fi 10313else 10314 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 10315fi 10316 10317fi 10318if test -n "$PKG_CONFIG"; then 10319 _pkg_min_version=0.9.0 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 10321$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 10322 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10324$as_echo "yes" >&6; } 10325 else 10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10327$as_echo "no" >&6; } 10328 PKG_CONFIG="" 10329 fi 10330fi 10331 10332# Check for use of the system expat library 10333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 10334$as_echo_n "checking for --with-system-expat... " >&6; } 10335 10336# Check whether --with-system_expat was given. 10337if test "${with_system_expat+set}" = set; then : 10338 withval=$with_system_expat; 10339else 10340 with_system_expat="no" 10341fi 10342 10343 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 10345$as_echo "$with_system_expat" >&6; } 10346 10347# Check for use of the system libffi library 10348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 10349$as_echo_n "checking for --with-system-ffi... " >&6; } 10350 10351# Check whether --with-system_ffi was given. 10352if test "${with_system_ffi+set}" = set; then : 10353 withval=$with_system_ffi; 10354fi 10355 10356 10357if test "$ac_sys_system" = "Darwin" 10358then 10359 case "$with_system_ffi" in 10360 "") 10361 with_system_ffi="no" 10362 ;; 10363 yes|no) 10364 ;; 10365 *) 10366 as_fn_error $? "--with-system-ffi accepts no arguments" "$LINENO" 5 10367 ;; 10368 esac 10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 10370$as_echo "$with_system_ffi" >&6; } 10371else 10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10373$as_echo "yes" >&6; } 10374 if test "$with_system_ffi" != "" 10375 then 10376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with(out)-system-ffi is ignored on this platform" >&5 10377$as_echo "$as_me: WARNING: --with(out)-system-ffi is ignored on this platform" >&2;} 10378 fi 10379 with_system_ffi="yes" 10380fi 10381 10382if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then 10383 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" 10384else 10385 LIBFFI_INCLUDEDIR="" 10386fi 10387 10388 10389# Check for use of the system libmpdec library 10390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-libmpdec" >&5 10391$as_echo_n "checking for --with-system-libmpdec... " >&6; } 10392 10393# Check whether --with-system_libmpdec was given. 10394if test "${with_system_libmpdec+set}" = set; then : 10395 withval=$with_system_libmpdec; 10396else 10397 with_system_libmpdec="no" 10398fi 10399 10400 10401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_libmpdec" >&5 10402$as_echo "$with_system_libmpdec" >&6; } 10403 10404# Check for support for loadable sqlite extensions 10405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-loadable-sqlite-extensions" >&5 10406$as_echo_n "checking for --enable-loadable-sqlite-extensions... " >&6; } 10407# Check whether --enable-loadable-sqlite-extensions was given. 10408if test "${enable_loadable_sqlite_extensions+set}" = set; then : 10409 enableval=$enable_loadable_sqlite_extensions; 10410else 10411 enable_loadable_sqlite_extensions="no" 10412fi 10413 10414 10415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_loadable_sqlite_extensions" >&5 10416$as_echo "$enable_loadable_sqlite_extensions" >&6; } 10417 10418# Check for --with-tcltk-includes=path and --with-tcltk-libs=path 10419 10420 10421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 10422$as_echo_n "checking for --with-tcltk-includes... " >&6; } 10423 10424# Check whether --with-tcltk-includes was given. 10425if test "${with_tcltk_includes+set}" = set; then : 10426 withval=$with_tcltk_includes; 10427else 10428 with_tcltk_includes="default" 10429fi 10430 10431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 10432$as_echo "$with_tcltk_includes" >&6; } 10433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 10434$as_echo_n "checking for --with-tcltk-libs... " >&6; } 10435 10436# Check whether --with-tcltk-libs was given. 10437if test "${with_tcltk_libs+set}" = set; then : 10438 withval=$with_tcltk_libs; 10439else 10440 with_tcltk_libs="default" 10441fi 10442 10443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 10444$as_echo "$with_tcltk_libs" >&6; } 10445if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault 10446then 10447 if test "x$with_tcltk_includes" != "x$with_tcltk_libs" 10448 then 10449 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 10450 fi 10451 TCLTK_INCLUDES="" 10452 TCLTK_LIBS="" 10453else 10454 TCLTK_INCLUDES="$with_tcltk_includes" 10455 TCLTK_LIBS="$with_tcltk_libs" 10456fi 10457 10458# Check for --with-dbmliborder 10459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 10460$as_echo_n "checking for --with-dbmliborder... " >&6; } 10461 10462# Check whether --with-dbmliborder was given. 10463if test "${with_dbmliborder+set}" = set; then : 10464 withval=$with_dbmliborder; 10465if test x$with_dbmliborder = xyes 10466then 10467as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 10468else 10469 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do 10470 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb 10471 then 10472 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 10473 fi 10474 done 10475fi 10476fi 10477 10478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 10479$as_echo "$with_dbmliborder" >&6; } 10480 10481# Templates for things AC_DEFINEd more than once. 10482# For a single AC_DEFINE, no template is needed. 10483 10484 10485if test "$ac_cv_pthread_is_default" = yes 10486then 10487 # Defining _REENTRANT on system with POSIX threads should not hurt. 10488 $as_echo "#define _REENTRANT 1" >>confdefs.h 10489 10490 posix_threads=yes 10491 if test "$ac_sys_system" = "SunOS"; then 10492 CFLAGS="$CFLAGS -D_REENTRANT" 10493 fi 10494elif test "$ac_cv_kpthread" = "yes" 10495then 10496 CC="$CC -Kpthread" 10497 if test "$ac_cv_cxx_thread" = "yes"; then 10498 CXX="$CXX -Kpthread" 10499 fi 10500 posix_threads=yes 10501elif test "$ac_cv_kthread" = "yes" 10502then 10503 CC="$CC -Kthread" 10504 if test "$ac_cv_cxx_thread" = "yes"; then 10505 CXX="$CXX -Kthread" 10506 fi 10507 posix_threads=yes 10508elif test "$ac_cv_pthread" = "yes" 10509then 10510 CC="$CC -pthread" 10511 if test "$ac_cv_cxx_thread" = "yes"; then 10512 CXX="$CXX -pthread" 10513 fi 10514 posix_threads=yes 10515else 10516 if test ! -z "$withval" -a -d "$withval" 10517 then LDFLAGS="$LDFLAGS -L$withval" 10518 fi 10519 10520 # According to the POSIX spec, a pthreads implementation must 10521 # define _POSIX_THREADS in unistd.h. Some apparently don't 10522 # (e.g. gnu pth with pthread emulation) 10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 10524$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } 10525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10526/* end confdefs.h. */ 10527 10528#include <unistd.h> 10529#ifdef _POSIX_THREADS 10530yes 10531#endif 10532 10533_ACEOF 10534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10535 $EGREP "yes" >/dev/null 2>&1; then : 10536 unistd_defines_pthreads=yes 10537else 10538 unistd_defines_pthreads=no 10539fi 10540rm -f conftest* 10541 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 10543$as_echo "$unistd_defines_pthreads" >&6; } 10544 10545 $as_echo "#define _REENTRANT 1" >>confdefs.h 10546 10547 # Just looking for pthread_create in libpthread is not enough: 10548 # on HP/UX, pthread.h renames pthread_create to a different symbol name. 10549 # So we really have to include pthread.h, and then link. 10550 _libs=$LIBS 10551 LIBS="$LIBS -lpthread" 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 10553$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10555/* end confdefs.h. */ 10556 10557#include <stdio.h> 10558#include <pthread.h> 10559 10560void * start_routine (void *arg) { exit (0); } 10561int 10562main () 10563{ 10564 10565pthread_create (NULL, NULL, start_routine, NULL) 10566 ; 10567 return 0; 10568} 10569_ACEOF 10570if ac_fn_c_try_link "$LINENO"; then : 10571 10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10573$as_echo "yes" >&6; } 10574 posix_threads=yes 10575 10576else 10577 10578 LIBS=$_libs 10579 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" 10580if test "x$ac_cv_func_pthread_detach" = xyes; then : 10581 10582 posix_threads=yes 10583 10584else 10585 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 10587$as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 10588if ${ac_cv_lib_pthreads_pthread_create+:} false; then : 10589 $as_echo_n "(cached) " >&6 10590else 10591 ac_check_lib_save_LIBS=$LIBS 10592LIBS="-lpthreads $LIBS" 10593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10594/* end confdefs.h. */ 10595 10596/* Override any GCC internal prototype to avoid an error. 10597 Use char because int might match the return type of a GCC 10598 builtin and then its argument prototype would still apply. */ 10599#ifdef __cplusplus 10600extern "C" 10601#endif 10602char pthread_create (); 10603int 10604main () 10605{ 10606return pthread_create (); 10607 ; 10608 return 0; 10609} 10610_ACEOF 10611if ac_fn_c_try_link "$LINENO"; then : 10612 ac_cv_lib_pthreads_pthread_create=yes 10613else 10614 ac_cv_lib_pthreads_pthread_create=no 10615fi 10616rm -f core conftest.err conftest.$ac_objext \ 10617 conftest$ac_exeext conftest.$ac_ext 10618LIBS=$ac_check_lib_save_LIBS 10619fi 10620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 10621$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 10622if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : 10623 10624 posix_threads=yes 10625 LIBS="$LIBS -lpthreads" 10626 10627else 10628 10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 10630$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 10631if ${ac_cv_lib_c_r_pthread_create+:} false; then : 10632 $as_echo_n "(cached) " >&6 10633else 10634 ac_check_lib_save_LIBS=$LIBS 10635LIBS="-lc_r $LIBS" 10636cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10637/* end confdefs.h. */ 10638 10639/* Override any GCC internal prototype to avoid an error. 10640 Use char because int might match the return type of a GCC 10641 builtin and then its argument prototype would still apply. */ 10642#ifdef __cplusplus 10643extern "C" 10644#endif 10645char pthread_create (); 10646int 10647main () 10648{ 10649return pthread_create (); 10650 ; 10651 return 0; 10652} 10653_ACEOF 10654if ac_fn_c_try_link "$LINENO"; then : 10655 ac_cv_lib_c_r_pthread_create=yes 10656else 10657 ac_cv_lib_c_r_pthread_create=no 10658fi 10659rm -f core conftest.err conftest.$ac_objext \ 10660 conftest$ac_exeext conftest.$ac_ext 10661LIBS=$ac_check_lib_save_LIBS 10662fi 10663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 10664$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 10665if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 10666 10667 posix_threads=yes 10668 LIBS="$LIBS -lc_r" 10669 10670else 10671 10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 10673$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } 10674if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : 10675 $as_echo_n "(cached) " >&6 10676else 10677 ac_check_lib_save_LIBS=$LIBS 10678LIBS="-lpthread $LIBS" 10679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10680/* end confdefs.h. */ 10681 10682/* Override any GCC internal prototype to avoid an error. 10683 Use char because int might match the return type of a GCC 10684 builtin and then its argument prototype would still apply. */ 10685#ifdef __cplusplus 10686extern "C" 10687#endif 10688char __pthread_create_system (); 10689int 10690main () 10691{ 10692return __pthread_create_system (); 10693 ; 10694 return 0; 10695} 10696_ACEOF 10697if ac_fn_c_try_link "$LINENO"; then : 10698 ac_cv_lib_pthread___pthread_create_system=yes 10699else 10700 ac_cv_lib_pthread___pthread_create_system=no 10701fi 10702rm -f core conftest.err conftest.$ac_objext \ 10703 conftest$ac_exeext conftest.$ac_ext 10704LIBS=$ac_check_lib_save_LIBS 10705fi 10706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 10707$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } 10708if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : 10709 10710 posix_threads=yes 10711 LIBS="$LIBS -lpthread" 10712 10713else 10714 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 10716$as_echo_n "checking for pthread_create in -lcma... " >&6; } 10717if ${ac_cv_lib_cma_pthread_create+:} false; then : 10718 $as_echo_n "(cached) " >&6 10719else 10720 ac_check_lib_save_LIBS=$LIBS 10721LIBS="-lcma $LIBS" 10722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10723/* end confdefs.h. */ 10724 10725/* Override any GCC internal prototype to avoid an error. 10726 Use char because int might match the return type of a GCC 10727 builtin and then its argument prototype would still apply. */ 10728#ifdef __cplusplus 10729extern "C" 10730#endif 10731char pthread_create (); 10732int 10733main () 10734{ 10735return pthread_create (); 10736 ; 10737 return 0; 10738} 10739_ACEOF 10740if ac_fn_c_try_link "$LINENO"; then : 10741 ac_cv_lib_cma_pthread_create=yes 10742else 10743 ac_cv_lib_cma_pthread_create=no 10744fi 10745rm -f core conftest.err conftest.$ac_objext \ 10746 conftest$ac_exeext conftest.$ac_ext 10747LIBS=$ac_check_lib_save_LIBS 10748fi 10749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cma_pthread_create" >&5 10750$as_echo "$ac_cv_lib_cma_pthread_create" >&6; } 10751if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : 10752 10753 posix_threads=yes 10754 LIBS="$LIBS -lcma" 10755 10756else 10757 10758 as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 10759 10760fi 10761 10762 10763fi 10764 10765fi 10766 10767fi 10768 10769fi 10770 10771fi 10772rm -f core conftest.err conftest.$ac_objext \ 10773 conftest$ac_exeext conftest.$ac_ext 10774 10775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 10776$as_echo_n "checking for usconfig in -lmpc... " >&6; } 10777if ${ac_cv_lib_mpc_usconfig+:} false; then : 10778 $as_echo_n "(cached) " >&6 10779else 10780 ac_check_lib_save_LIBS=$LIBS 10781LIBS="-lmpc $LIBS" 10782cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10783/* end confdefs.h. */ 10784 10785/* Override any GCC internal prototype to avoid an error. 10786 Use char because int might match the return type of a GCC 10787 builtin and then its argument prototype would still apply. */ 10788#ifdef __cplusplus 10789extern "C" 10790#endif 10791char usconfig (); 10792int 10793main () 10794{ 10795return usconfig (); 10796 ; 10797 return 0; 10798} 10799_ACEOF 10800if ac_fn_c_try_link "$LINENO"; then : 10801 ac_cv_lib_mpc_usconfig=yes 10802else 10803 ac_cv_lib_mpc_usconfig=no 10804fi 10805rm -f core conftest.err conftest.$ac_objext \ 10806 conftest$ac_exeext conftest.$ac_ext 10807LIBS=$ac_check_lib_save_LIBS 10808fi 10809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 10810$as_echo "$ac_cv_lib_mpc_usconfig" >&6; } 10811if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : 10812 10813 LIBS="$LIBS -lmpc" 10814 10815fi 10816 10817 10818fi 10819 10820if test "$posix_threads" = "yes"; then 10821 if test "$unistd_defines_pthreads" = "no"; then 10822 10823$as_echo "#define _POSIX_THREADS 1" >>confdefs.h 10824 10825 fi 10826 10827 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. 10828 case $ac_sys_system/$ac_sys_release in 10829 SunOS/5.6) 10830$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h 10831 10832 ;; 10833 SunOS/5.8) 10834$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 10835 10836 ;; 10837 AIX/*) 10838$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 10839 10840 ;; 10841 esac 10842 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 10844$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } 10845 if ${ac_cv_pthread_system_supported+:} false; then : 10846 $as_echo_n "(cached) " >&6 10847else 10848 if test "$cross_compiling" = yes; then : 10849 ac_cv_pthread_system_supported=no 10850else 10851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10852/* end confdefs.h. */ 10853 10854 #include <stdio.h> 10855 #include <pthread.h> 10856 void *foo(void *parm) { 10857 return NULL; 10858 } 10859 main() { 10860 pthread_attr_t attr; 10861 pthread_t id; 10862 if (pthread_attr_init(&attr)) exit(-1); 10863 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); 10864 if (pthread_create(&id, &attr, foo, NULL)) exit(-1); 10865 exit(0); 10866 } 10867_ACEOF 10868if ac_fn_c_try_run "$LINENO"; then : 10869 ac_cv_pthread_system_supported=yes 10870else 10871 ac_cv_pthread_system_supported=no 10872fi 10873rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10874 conftest.$ac_objext conftest.beam conftest.$ac_ext 10875fi 10876 10877 10878fi 10879 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 10881$as_echo "$ac_cv_pthread_system_supported" >&6; } 10882 if test "$ac_cv_pthread_system_supported" = "yes"; then 10883 10884$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h 10885 10886 fi 10887 for ac_func in pthread_sigmask 10888do : 10889 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" 10890if test "x$ac_cv_func_pthread_sigmask" = xyes; then : 10891 cat >>confdefs.h <<_ACEOF 10892#define HAVE_PTHREAD_SIGMASK 1 10893_ACEOF 10894 case $ac_sys_system in 10895 CYGWIN*) 10896 10897$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h 10898 10899 ;; 10900 esac 10901fi 10902done 10903 10904 for ac_func in pthread_getcpuclockid 10905do : 10906 ac_fn_c_check_func "$LINENO" "pthread_getcpuclockid" "ac_cv_func_pthread_getcpuclockid" 10907if test "x$ac_cv_func_pthread_getcpuclockid" = xyes; then : 10908 cat >>confdefs.h <<_ACEOF 10909#define HAVE_PTHREAD_GETCPUCLOCKID 1 10910_ACEOF 10911 10912fi 10913done 10914 10915fi 10916 10917 10918# Check for enable-ipv6 10919 10920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 10921$as_echo_n "checking if --enable-ipv6 is specified... " >&6; } 10922# Check whether --enable-ipv6 was given. 10923if test "${enable_ipv6+set}" = set; then : 10924 enableval=$enable_ipv6; case "$enableval" in 10925 no) 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10927$as_echo "no" >&6; } 10928 ipv6=no 10929 ;; 10930 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10931$as_echo "yes" >&6; } 10932 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 10933 10934 ipv6=yes 10935 ;; 10936 esac 10937else 10938 10939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10940/* end confdefs.h. */ 10941 /* AF_INET6 available check */ 10942#include <sys/types.h> 10943#include <sys/socket.h> 10944int 10945main () 10946{ 10947int domain = AF_INET6; 10948 ; 10949 return 0; 10950} 10951_ACEOF 10952if ac_fn_c_try_compile "$LINENO"; then : 10953 10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10955$as_echo "yes" >&6; } 10956 ipv6=yes 10957 10958else 10959 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10961$as_echo "no" >&6; } 10962 ipv6=no 10963 10964fi 10965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10966 10967if test "$ipv6" = "yes"; then 10968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 10969$as_echo_n "checking if RFC2553 API is available... " >&6; } 10970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10971/* end confdefs.h. */ 10972 10973 #include <sys/types.h> 10974#include <netinet/in.h> 10975int 10976main () 10977{ 10978struct sockaddr_in6 x; 10979 x.sin6_scope_id; 10980 ; 10981 return 0; 10982} 10983 10984_ACEOF 10985if ac_fn_c_try_compile "$LINENO"; then : 10986 10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10988$as_echo "yes" >&6; } 10989 ipv6=yes 10990 10991else 10992 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10994$as_echo "no" >&6; } 10995 ipv6=no 10996 10997fi 10998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10999fi 11000 11001if test "$ipv6" = "yes"; then 11002 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 11003 11004fi 11005 11006fi 11007 11008 11009ipv6type=unknown 11010ipv6lib=none 11011ipv6trylibc=no 11012 11013if test "$ipv6" = "yes"; then 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 11015$as_echo_n "checking ipv6 stack type... " >&6; } 11016 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; 11017 do 11018 case $i in 11019 inria) 11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11021/* end confdefs.h. */ 11022 11023#include <netinet/in.h> 11024#ifdef IPV6_INRIA_VERSION 11025yes 11026#endif 11027_ACEOF 11028if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11029 $EGREP "yes" >/dev/null 2>&1; then : 11030 ipv6type=$i 11031fi 11032rm -f conftest* 11033 11034 ;; 11035 kame) 11036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11037/* end confdefs.h. */ 11038 11039#include <netinet/in.h> 11040#ifdef __KAME__ 11041yes 11042#endif 11043_ACEOF 11044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11045 $EGREP "yes" >/dev/null 2>&1; then : 11046 ipv6type=$i; 11047 ipv6lib=inet6 11048 ipv6libdir=/usr/local/v6/lib 11049 ipv6trylibc=yes 11050fi 11051rm -f conftest* 11052 11053 ;; 11054 linux-glibc) 11055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11056/* end confdefs.h. */ 11057 11058#include <features.h> 11059#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) 11060yes 11061#endif 11062_ACEOF 11063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11064 $EGREP "yes" >/dev/null 2>&1; then : 11065 ipv6type=$i; 11066 ipv6trylibc=yes 11067fi 11068rm -f conftest* 11069 11070 ;; 11071 linux-inet6) 11072 if test -d /usr/inet6; then 11073 ipv6type=$i 11074 ipv6lib=inet6 11075 ipv6libdir=/usr/inet6/lib 11076 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" 11077 fi 11078 ;; 11079 solaris) 11080 if test -f /etc/netconfig; then 11081 if $GREP -q tcp6 /etc/netconfig; then 11082 ipv6type=$i 11083 ipv6trylibc=yes 11084 fi 11085 fi 11086 ;; 11087 toshiba) 11088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11089/* end confdefs.h. */ 11090 11091#include <sys/param.h> 11092#ifdef _TOSHIBA_INET6 11093yes 11094#endif 11095_ACEOF 11096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11097 $EGREP "yes" >/dev/null 2>&1; then : 11098 ipv6type=$i; 11099 ipv6lib=inet6; 11100 ipv6libdir=/usr/local/v6/lib 11101fi 11102rm -f conftest* 11103 11104 ;; 11105 v6d) 11106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11107/* end confdefs.h. */ 11108 11109#include </usr/local/v6/include/sys/v6config.h> 11110#ifdef __V6D__ 11111yes 11112#endif 11113_ACEOF 11114if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11115 $EGREP "yes" >/dev/null 2>&1; then : 11116 ipv6type=$i; 11117 ipv6lib=v6; 11118 ipv6libdir=/usr/local/v6/lib; 11119 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" 11120fi 11121rm -f conftest* 11122 11123 ;; 11124 zeta) 11125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11126/* end confdefs.h. */ 11127 11128#include <sys/param.h> 11129#ifdef _ZETA_MINAMI_INET6 11130yes 11131#endif 11132_ACEOF 11133if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11134 $EGREP "yes" >/dev/null 2>&1; then : 11135 ipv6type=$i; 11136 ipv6lib=inet6; 11137 ipv6libdir=/usr/local/v6/lib 11138fi 11139rm -f conftest* 11140 11141 ;; 11142 esac 11143 if test "$ipv6type" != "unknown"; then 11144 break 11145 fi 11146 done 11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 11148$as_echo "$ipv6type" >&6; } 11149fi 11150 11151if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 11152 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 11153 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 11154 echo "using lib$ipv6lib" 11155 else 11156 if test $ipv6trylibc = "yes"; then 11157 echo "using libc" 11158 else 11159 echo 'Fatal: no $ipv6lib library found. cannot continue.' 11160 echo "You need to fetch lib$ipv6lib.a from appropriate" 11161 echo 'ipv6 kit and compile beforehand.' 11162 exit 1 11163 fi 11164 fi 11165fi 11166 11167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAN_RAW_FD_FRAMES" >&5 11168$as_echo_n "checking for CAN_RAW_FD_FRAMES... " >&6; } 11169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11170/* end confdefs.h. */ 11171 /* CAN_RAW_FD_FRAMES available check */ 11172#include <linux/can/raw.h> 11173int 11174main () 11175{ 11176int can_raw_fd_frames = CAN_RAW_FD_FRAMES; 11177 ; 11178 return 0; 11179} 11180_ACEOF 11181if ac_fn_c_try_compile "$LINENO"; then : 11182 11183 11184$as_echo "#define HAVE_LINUX_CAN_RAW_FD_FRAMES 1" >>confdefs.h 11185 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11187$as_echo "yes" >&6; } 11188 11189else 11190 11191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11192$as_echo "no" >&6; } 11193 11194fi 11195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11196 11197# Check for --with-doc-strings 11198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 11199$as_echo_n "checking for --with-doc-strings... " >&6; } 11200 11201# Check whether --with-doc-strings was given. 11202if test "${with_doc_strings+set}" = set; then : 11203 withval=$with_doc_strings; 11204fi 11205 11206 11207if test -z "$with_doc_strings" 11208then with_doc_strings="yes" 11209fi 11210if test "$with_doc_strings" != "no" 11211then 11212 11213$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h 11214 11215fi 11216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 11217$as_echo "$with_doc_strings" >&6; } 11218 11219# Check for Python-specific malloc support 11220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 11221$as_echo_n "checking for --with-pymalloc... " >&6; } 11222 11223# Check whether --with-pymalloc was given. 11224if test "${with_pymalloc+set}" = set; then : 11225 withval=$with_pymalloc; 11226fi 11227 11228 11229if test -z "$with_pymalloc" 11230then 11231 with_pymalloc="yes" 11232fi 11233if test "$with_pymalloc" != "no" 11234then 11235 11236$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h 11237 11238fi 11239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 11240$as_echo "$with_pymalloc" >&6; } 11241 11242# Check for --with-c-locale-coercion 11243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-c-locale-coercion" >&5 11244$as_echo_n "checking for --with-c-locale-coercion... " >&6; } 11245 11246# Check whether --with-c-locale-coercion was given. 11247if test "${with_c_locale_coercion+set}" = set; then : 11248 withval=$with_c_locale_coercion; 11249fi 11250 11251 11252if test -z "$with_c_locale_coercion" 11253then 11254 with_c_locale_coercion="yes" 11255fi 11256if test "$with_c_locale_coercion" != "no" 11257then 11258 11259$as_echo "#define PY_COERCE_C_LOCALE 1" >>confdefs.h 11260 11261fi 11262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_c_locale_coercion" >&5 11263$as_echo "$with_c_locale_coercion" >&6; } 11264 11265# Check for Valgrind support 11266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 11267$as_echo_n "checking for --with-valgrind... " >&6; } 11268 11269# Check whether --with-valgrind was given. 11270if test "${with_valgrind+set}" = set; then : 11271 withval=$with_valgrind; 11272else 11273 with_valgrind=no 11274fi 11275 11276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 11277$as_echo "$with_valgrind" >&6; } 11278if test "$with_valgrind" != no; then 11279 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 11280if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : 11281 11282$as_echo "#define WITH_VALGRIND 1" >>confdefs.h 11283 11284else 11285 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 11286 11287fi 11288 11289 11290 OPT="-DDYNAMIC_ANNOTATIONS_ENABLED=1 $OPT" 11291fi 11292 11293# Check for DTrace support 11294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dtrace" >&5 11295$as_echo_n "checking for --with-dtrace... " >&6; } 11296 11297# Check whether --with-dtrace was given. 11298if test "${with_dtrace+set}" = set; then : 11299 withval=$with_dtrace; 11300else 11301 with_dtrace=no 11302fi 11303 11304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dtrace" >&5 11305$as_echo "$with_dtrace" >&6; } 11306 11307 11308 11309 11310 11311DTRACE= 11312DFLAGS= 11313DTRACE_HEADERS= 11314DTRACE_OBJS= 11315 11316if test "$with_dtrace" = "yes" 11317then 11318 # Extract the first word of "dtrace", so it can be a program name with args. 11319set dummy dtrace; ac_word=$2 11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11321$as_echo_n "checking for $ac_word... " >&6; } 11322if ${ac_cv_path_DTRACE+:} false; then : 11323 $as_echo_n "(cached) " >&6 11324else 11325 case $DTRACE in 11326 [\\/]* | ?:[\\/]*) 11327 ac_cv_path_DTRACE="$DTRACE" # Let the user override the test with a path. 11328 ;; 11329 *) 11330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11331for as_dir in $PATH 11332do 11333 IFS=$as_save_IFS 11334 test -z "$as_dir" && as_dir=. 11335 for ac_exec_ext in '' $ac_executable_extensions; do 11336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11337 ac_cv_path_DTRACE="$as_dir/$ac_word$ac_exec_ext" 11338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11339 break 2 11340 fi 11341done 11342 done 11343IFS=$as_save_IFS 11344 11345 test -z "$ac_cv_path_DTRACE" && ac_cv_path_DTRACE="not found" 11346 ;; 11347esac 11348fi 11349DTRACE=$ac_cv_path_DTRACE 11350if test -n "$DTRACE"; then 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5 11352$as_echo "$DTRACE" >&6; } 11353else 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11355$as_echo "no" >&6; } 11356fi 11357 11358 11359 if test "$DTRACE" = "not found"; then 11360 as_fn_error $? "dtrace command not found on \$PATH" "$LINENO" 5 11361 fi 11362 11363$as_echo "#define WITH_DTRACE 1" >>confdefs.h 11364 11365 DTRACE_HEADERS="Include/pydtrace_probes.h" 11366 11367 # On OS X, DTrace providers do not need to be explicitly compiled and 11368 # linked into the binary. Correspondingly, dtrace(1) is missing the ELF 11369 # generation flag '-G'. We check for presence of this flag, rather than 11370 # hardcoding support by OS, in the interest of robustness. 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DTrace probes require linking" >&5 11372$as_echo_n "checking whether DTrace probes require linking... " >&6; } 11373if ${ac_cv_dtrace_link+:} false; then : 11374 $as_echo_n "(cached) " >&6 11375else 11376 ac_cv_dtrace_link=no 11377 echo 'BEGIN{}' > conftest.d 11378 "$DTRACE" -G -s conftest.d -o conftest.o > /dev/null 2>&1 && \ 11379 ac_cv_dtrace_link=yes 11380 11381fi 11382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dtrace_link" >&5 11383$as_echo "$ac_cv_dtrace_link" >&6; } 11384 if test "$ac_cv_dtrace_link" = "yes"; then 11385 DTRACE_OBJS="Python/pydtrace.o" 11386 fi 11387fi 11388 11389# -I${DLINCLDIR} is added to the compile rule for importdl.o 11390 11391DLINCLDIR=. 11392 11393# the dlopen() function means we might want to use dynload_shlib.o. some 11394# platforms, such as AIX, have dlopen(), but don't want to use it. 11395for ac_func in dlopen 11396do : 11397 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11398if test "x$ac_cv_func_dlopen" = xyes; then : 11399 cat >>confdefs.h <<_ACEOF 11400#define HAVE_DLOPEN 1 11401_ACEOF 11402 11403fi 11404done 11405 11406 11407# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic 11408# loading of modules. 11409 11410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 11411$as_echo_n "checking DYNLOADFILE... " >&6; } 11412if test -z "$DYNLOADFILE" 11413then 11414 case $ac_sys_system/$ac_sys_release in 11415 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c 11416 if test "$ac_cv_func_dlopen" = yes 11417 then DYNLOADFILE="dynload_shlib.o" 11418 else DYNLOADFILE="dynload_aix.o" 11419 fi 11420 ;; 11421 hp*|HP*) DYNLOADFILE="dynload_hpux.o";; 11422 *) 11423 # use dynload_shlib.c and dlopen() if we have it; otherwise stub 11424 # out any dynamic loading 11425 if test "$ac_cv_func_dlopen" = yes 11426 then DYNLOADFILE="dynload_shlib.o" 11427 else DYNLOADFILE="dynload_stub.o" 11428 fi 11429 ;; 11430 esac 11431fi 11432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 11433$as_echo "$DYNLOADFILE" >&6; } 11434if test "$DYNLOADFILE" != "dynload_stub.o" 11435then 11436 11437$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h 11438 11439fi 11440 11441# MACHDEP_OBJS can be set to platform-specific object files needed by Python 11442 11443 11444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 11445$as_echo_n "checking MACHDEP_OBJS... " >&6; } 11446if test -z "$MACHDEP_OBJS" 11447then 11448 MACHDEP_OBJS=$extra_machdep_objs 11449else 11450 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" 11451fi 11452if test -z "$MACHDEP_OBJS"; then 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 11454$as_echo "none" >&6; } 11455else 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP_OBJS" >&5 11457$as_echo "$MACHDEP_OBJS" >&6; } 11458fi 11459 11460# checks for library functions 11461for ac_func in alarm accept4 setitimer getitimer bind_textdomain_codeset chown \ 11462 clock confstr copy_file_range ctermid dup3 execv explicit_bzero explicit_memset \ 11463 faccessat fchmod fchmodat fchown fchownat \ 11464 fdwalk fexecve fdopendir fork fpathconf fstatat ftime ftruncate futimesat \ 11465 futimens futimes gai_strerror getentropy \ 11466 getgrgid_r getgrnam_r \ 11467 getgrouplist getgroups getlogin getloadavg getpeername getpgid getpid \ 11468 getpriority getresuid getresgid getpwent getpwnam_r getpwuid_r getspnam getspent getsid getwd \ 11469 if_nameindex \ 11470 initgroups kill killpg lchown lockf linkat lstat lutimes mmap \ 11471 memrchr mbrtowc mkdirat mkfifo \ 11472 madvise mkfifoat mknod mknodat mktime mremap nice openat pathconf pause pipe2 plock poll \ 11473 posix_fallocate posix_fadvise posix_spawn posix_spawnp pread preadv preadv2 \ 11474 pthread_condattr_setclock pthread_init pthread_kill putenv pwrite pwritev pwritev2 \ 11475 readlink readlinkat readv realpath renameat \ 11476 sem_open sem_timedwait sem_getvalue sem_unlink sendfile setegid seteuid \ 11477 setgid sethostname \ 11478 setlocale setregid setreuid setresuid setresgid setsid setpgid setpgrp setpriority setuid setvbuf \ 11479 sched_get_priority_max sched_setaffinity sched_setscheduler sched_setparam \ 11480 sched_rr_get_interval \ 11481 sigaction sigaltstack sigfillset siginterrupt sigpending sigrelse \ 11482 sigtimedwait sigwait sigwaitinfo snprintf strftime strlcpy strsignal symlinkat sync \ 11483 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ 11484 truncate uname unlinkat unsetenv utimensat utimes waitid waitpid wait3 wait4 \ 11485 wcscoll wcsftime wcsxfrm wmemcmp writev _getpty rtpSpawn 11486do : 11487 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11488ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11489if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11490 cat >>confdefs.h <<_ACEOF 11491#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11492_ACEOF 11493 11494fi 11495done 11496 11497 11498# Force lchmod off for Linux. Linux disallows changing the mode of symbolic 11499# links. Some libc implementations have a stub lchmod implementation that always 11500# returns an error. 11501if test "$MACHDEP" != linux; then 11502 for ac_func in lchmod 11503do : 11504 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" 11505if test "x$ac_cv_func_lchmod" = xyes; then : 11506 cat >>confdefs.h <<_ACEOF 11507#define HAVE_LCHMOD 1 11508_ACEOF 11509 11510fi 11511done 11512 11513fi 11514 11515ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h> 11516 #include <dirent.h> 11517" 11518if test "x$ac_cv_have_decl_dirfd" = xyes; then : 11519 11520$as_echo "#define HAVE_DIRFD 1" >>confdefs.h 11521 11522fi 11523 11524 11525# For some functions, having a definition is not sufficient, since 11526# we want to take their address. 11527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 11528$as_echo_n "checking for chroot... " >&6; } 11529cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11530/* end confdefs.h. */ 11531#include <unistd.h> 11532int 11533main () 11534{ 11535void *x=chroot 11536 ; 11537 return 0; 11538} 11539_ACEOF 11540if ac_fn_c_try_compile "$LINENO"; then : 11541 11542$as_echo "#define HAVE_CHROOT 1" >>confdefs.h 11543 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11545$as_echo "yes" >&6; } 11546else 11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11548$as_echo "no" >&6; } 11549 11550fi 11551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 11553$as_echo_n "checking for link... " >&6; } 11554cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11555/* end confdefs.h. */ 11556#include <unistd.h> 11557int 11558main () 11559{ 11560void *x=link 11561 ; 11562 return 0; 11563} 11564_ACEOF 11565if ac_fn_c_try_compile "$LINENO"; then : 11566 11567$as_echo "#define HAVE_LINK 1" >>confdefs.h 11568 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11570$as_echo "yes" >&6; } 11571else 11572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11573$as_echo "no" >&6; } 11574 11575fi 11576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 11578$as_echo_n "checking for symlink... " >&6; } 11579cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11580/* end confdefs.h. */ 11581#include <unistd.h> 11582int 11583main () 11584{ 11585void *x=symlink 11586 ; 11587 return 0; 11588} 11589_ACEOF 11590if ac_fn_c_try_compile "$LINENO"; then : 11591 11592$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h 11593 11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11595$as_echo "yes" >&6; } 11596else 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11598$as_echo "no" >&6; } 11599 11600fi 11601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 11603$as_echo_n "checking for fchdir... " >&6; } 11604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11605/* end confdefs.h. */ 11606#include <unistd.h> 11607int 11608main () 11609{ 11610void *x=fchdir 11611 ; 11612 return 0; 11613} 11614_ACEOF 11615if ac_fn_c_try_compile "$LINENO"; then : 11616 11617$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h 11618 11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11620$as_echo "yes" >&6; } 11621else 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11623$as_echo "no" >&6; } 11624 11625fi 11626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 11628$as_echo_n "checking for fsync... " >&6; } 11629cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11630/* end confdefs.h. */ 11631#include <unistd.h> 11632int 11633main () 11634{ 11635void *x=fsync 11636 ; 11637 return 0; 11638} 11639_ACEOF 11640if ac_fn_c_try_compile "$LINENO"; then : 11641 11642$as_echo "#define HAVE_FSYNC 1" >>confdefs.h 11643 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11645$as_echo "yes" >&6; } 11646else 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11648$as_echo "no" >&6; } 11649 11650fi 11651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 11653$as_echo_n "checking for fdatasync... " >&6; } 11654cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11655/* end confdefs.h. */ 11656#include <unistd.h> 11657int 11658main () 11659{ 11660void *x=fdatasync 11661 ; 11662 return 0; 11663} 11664_ACEOF 11665if ac_fn_c_try_compile "$LINENO"; then : 11666 11667$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 11668 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11670$as_echo "yes" >&6; } 11671else 11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11673$as_echo "no" >&6; } 11674 11675fi 11676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 11678$as_echo_n "checking for epoll... " >&6; } 11679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11680/* end confdefs.h. */ 11681#include <sys/epoll.h> 11682int 11683main () 11684{ 11685void *x=epoll_create 11686 ; 11687 return 0; 11688} 11689_ACEOF 11690if ac_fn_c_try_compile "$LINENO"; then : 11691 11692$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 11693 11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11695$as_echo "yes" >&6; } 11696else 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11698$as_echo "no" >&6; } 11699 11700fi 11701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll_create1" >&5 11703$as_echo_n "checking for epoll_create1... " >&6; } 11704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11705/* end confdefs.h. */ 11706#include <sys/epoll.h> 11707int 11708main () 11709{ 11710void *x=epoll_create1 11711 ; 11712 return 0; 11713} 11714_ACEOF 11715if ac_fn_c_try_compile "$LINENO"; then : 11716 11717$as_echo "#define HAVE_EPOLL_CREATE1 1" >>confdefs.h 11718 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11720$as_echo "yes" >&6; } 11721else 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11723$as_echo "no" >&6; } 11724 11725fi 11726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 11728$as_echo_n "checking for kqueue... " >&6; } 11729cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11730/* end confdefs.h. */ 11731 11732#include <sys/types.h> 11733#include <sys/event.h> 11734 11735int 11736main () 11737{ 11738int x=kqueue() 11739 ; 11740 return 0; 11741} 11742_ACEOF 11743if ac_fn_c_try_compile "$LINENO"; then : 11744 11745$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h 11746 11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11748$as_echo "yes" >&6; } 11749else 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11751$as_echo "no" >&6; } 11752 11753fi 11754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prlimit" >&5 11756$as_echo_n "checking for prlimit... " >&6; } 11757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11758/* end confdefs.h. */ 11759 11760#include <sys/time.h> 11761#include <sys/resource.h> 11762 11763int 11764main () 11765{ 11766void *x=prlimit 11767 ; 11768 return 0; 11769} 11770_ACEOF 11771if ac_fn_c_try_compile "$LINENO"; then : 11772 11773$as_echo "#define HAVE_PRLIMIT 1" >>confdefs.h 11774 11775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11776$as_echo "yes" >&6; } 11777else 11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11779$as_echo "no" >&6; } 11780 11781fi 11782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11783 11784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for memfd_create" >&5 11785$as_echo_n "checking for memfd_create... " >&6; } 11786cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11787/* end confdefs.h. */ 11788 11789#ifdef HAVE_SYS_MMAN_H 11790#include <sys/mman.h> 11791#endif 11792#ifdef HAVE_SYS_MEMFD_H 11793#include <sys/memfd.h> 11794#endif 11795 11796int 11797main () 11798{ 11799void *x=memfd_create 11800 ; 11801 return 0; 11802} 11803_ACEOF 11804if ac_fn_c_try_compile "$LINENO"; then : 11805 11806$as_echo "#define HAVE_MEMFD_CREATE 1" >>confdefs.h 11807 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11809$as_echo "yes" >&6; } 11810else 11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11812$as_echo "no" >&6; } 11813 11814fi 11815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11816 11817# On some systems (eg. FreeBSD 5), we would find a definition of the 11818# functions ctermid_r, setgroups in the library, but no prototype 11819# (e.g. because we use _XOPEN_SOURCE). See whether we can take their 11820# address to avoid compiler warnings and potential miscompilations 11821# because of the missing prototypes. 11822 11823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 11824$as_echo_n "checking for ctermid_r... " >&6; } 11825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11826/* end confdefs.h. */ 11827 11828#include <stdio.h> 11829 11830int 11831main () 11832{ 11833void* p = ctermid_r 11834 ; 11835 return 0; 11836} 11837_ACEOF 11838if ac_fn_c_try_compile "$LINENO"; then : 11839 11840$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h 11841 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11843$as_echo "yes" >&6; } 11844else 11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11846$as_echo "no" >&6; } 11847 11848fi 11849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11850 11851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 11852$as_echo_n "checking for flock declaration... " >&6; } 11853if ${ac_cv_flock_decl+:} false; then : 11854 $as_echo_n "(cached) " >&6 11855else 11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11857/* end confdefs.h. */ 11858#include <sys/file.h> 11859int 11860main () 11861{ 11862void* p = flock 11863 11864 ; 11865 return 0; 11866} 11867_ACEOF 11868if ac_fn_c_try_compile "$LINENO"; then : 11869 ac_cv_flock_decl=yes 11870else 11871 ac_cv_flock_decl=no 11872 11873fi 11874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11875 11876fi 11877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 11878$as_echo "$ac_cv_flock_decl" >&6; } 11879if test "x${ac_cv_flock_decl}" = xyes; then 11880 for ac_func in flock 11881do : 11882 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 11883if test "x$ac_cv_func_flock" = xyes; then : 11884 cat >>confdefs.h <<_ACEOF 11885#define HAVE_FLOCK 1 11886_ACEOF 11887 11888else 11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 11890$as_echo_n "checking for flock in -lbsd... " >&6; } 11891if ${ac_cv_lib_bsd_flock+:} false; then : 11892 $as_echo_n "(cached) " >&6 11893else 11894 ac_check_lib_save_LIBS=$LIBS 11895LIBS="-lbsd $LIBS" 11896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11897/* end confdefs.h. */ 11898 11899/* Override any GCC internal prototype to avoid an error. 11900 Use char because int might match the return type of a GCC 11901 builtin and then its argument prototype would still apply. */ 11902#ifdef __cplusplus 11903extern "C" 11904#endif 11905char flock (); 11906int 11907main () 11908{ 11909return flock (); 11910 ; 11911 return 0; 11912} 11913_ACEOF 11914if ac_fn_c_try_link "$LINENO"; then : 11915 ac_cv_lib_bsd_flock=yes 11916else 11917 ac_cv_lib_bsd_flock=no 11918fi 11919rm -f core conftest.err conftest.$ac_objext \ 11920 conftest$ac_exeext conftest.$ac_ext 11921LIBS=$ac_check_lib_save_LIBS 11922fi 11923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 11924$as_echo "$ac_cv_lib_bsd_flock" >&6; } 11925if test "x$ac_cv_lib_bsd_flock" = xyes; then : 11926 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h 11927 11928 11929$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h 11930 11931 11932fi 11933 11934 11935fi 11936done 11937 11938fi 11939 11940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 11941$as_echo_n "checking for getpagesize... " >&6; } 11942cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11943/* end confdefs.h. */ 11944 11945#include <unistd.h> 11946 11947int 11948main () 11949{ 11950void* p = getpagesize 11951 ; 11952 return 0; 11953} 11954_ACEOF 11955if ac_fn_c_try_compile "$LINENO"; then : 11956 11957$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 11958 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11960$as_echo "yes" >&6; } 11961else 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11963$as_echo "no" >&6; } 11964 11965fi 11966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11967 11968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 11969$as_echo_n "checking for broken unsetenv... " >&6; } 11970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11971/* end confdefs.h. */ 11972 11973#include <stdlib.h> 11974 11975int 11976main () 11977{ 11978int res = unsetenv("DUMMY") 11979 ; 11980 return 0; 11981} 11982_ACEOF 11983if ac_fn_c_try_compile "$LINENO"; then : 11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11985$as_echo "no" >&6; } 11986else 11987 11988$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h 11989 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11991$as_echo "yes" >&6; } 11992 11993fi 11994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11995 11996for ac_prog in true 11997do 11998 # Extract the first word of "$ac_prog", so it can be a program name with args. 11999set dummy $ac_prog; ac_word=$2 12000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12001$as_echo_n "checking for $ac_word... " >&6; } 12002if ${ac_cv_prog_TRUE+:} false; then : 12003 $as_echo_n "(cached) " >&6 12004else 12005 if test -n "$TRUE"; then 12006 ac_cv_prog_TRUE="$TRUE" # Let the user override the test. 12007else 12008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12009for as_dir in $PATH 12010do 12011 IFS=$as_save_IFS 12012 test -z "$as_dir" && as_dir=. 12013 for ac_exec_ext in '' $ac_executable_extensions; do 12014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12015 ac_cv_prog_TRUE="$ac_prog" 12016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12017 break 2 12018 fi 12019done 12020 done 12021IFS=$as_save_IFS 12022 12023fi 12024fi 12025TRUE=$ac_cv_prog_TRUE 12026if test -n "$TRUE"; then 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 12028$as_echo "$TRUE" >&6; } 12029else 12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12031$as_echo "no" >&6; } 12032fi 12033 12034 12035 test -n "$TRUE" && break 12036done 12037test -n "$TRUE" || TRUE="/bin/true" 12038 12039 12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 12041$as_echo_n "checking for inet_aton in -lc... " >&6; } 12042if ${ac_cv_lib_c_inet_aton+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044else 12045 ac_check_lib_save_LIBS=$LIBS 12046LIBS="-lc $LIBS" 12047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12048/* end confdefs.h. */ 12049 12050/* Override any GCC internal prototype to avoid an error. 12051 Use char because int might match the return type of a GCC 12052 builtin and then its argument prototype would still apply. */ 12053#ifdef __cplusplus 12054extern "C" 12055#endif 12056char inet_aton (); 12057int 12058main () 12059{ 12060return inet_aton (); 12061 ; 12062 return 0; 12063} 12064_ACEOF 12065if ac_fn_c_try_link "$LINENO"; then : 12066 ac_cv_lib_c_inet_aton=yes 12067else 12068 ac_cv_lib_c_inet_aton=no 12069fi 12070rm -f core conftest.err conftest.$ac_objext \ 12071 conftest$ac_exeext conftest.$ac_ext 12072LIBS=$ac_check_lib_save_LIBS 12073fi 12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 12075$as_echo "$ac_cv_lib_c_inet_aton" >&6; } 12076if test "x$ac_cv_lib_c_inet_aton" = xyes; then : 12077 $ac_cv_prog_TRUE 12078else 12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 12080$as_echo_n "checking for inet_aton in -lresolv... " >&6; } 12081if ${ac_cv_lib_resolv_inet_aton+:} false; then : 12082 $as_echo_n "(cached) " >&6 12083else 12084 ac_check_lib_save_LIBS=$LIBS 12085LIBS="-lresolv $LIBS" 12086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12087/* end confdefs.h. */ 12088 12089/* Override any GCC internal prototype to avoid an error. 12090 Use char because int might match the return type of a GCC 12091 builtin and then its argument prototype would still apply. */ 12092#ifdef __cplusplus 12093extern "C" 12094#endif 12095char inet_aton (); 12096int 12097main () 12098{ 12099return inet_aton (); 12100 ; 12101 return 0; 12102} 12103_ACEOF 12104if ac_fn_c_try_link "$LINENO"; then : 12105 ac_cv_lib_resolv_inet_aton=yes 12106else 12107 ac_cv_lib_resolv_inet_aton=no 12108fi 12109rm -f core conftest.err conftest.$ac_objext \ 12110 conftest$ac_exeext conftest.$ac_ext 12111LIBS=$ac_check_lib_save_LIBS 12112fi 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 12114$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } 12115if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : 12116 cat >>confdefs.h <<_ACEOF 12117#define HAVE_LIBRESOLV 1 12118_ACEOF 12119 12120 LIBS="-lresolv $LIBS" 12121 12122fi 12123 12124 12125fi 12126 12127 12128# On Tru64, chflags seems to be present, but calling it will 12129# exit Python 12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 12131$as_echo_n "checking for chflags... " >&6; } 12132if ${ac_cv_have_chflags+:} false; then : 12133 $as_echo_n "(cached) " >&6 12134else 12135 if test "$cross_compiling" = yes; then : 12136 ac_cv_have_chflags=cross 12137else 12138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12139/* end confdefs.h. */ 12140 12141#include <sys/stat.h> 12142#include <unistd.h> 12143int main(int argc, char*argv[]) 12144{ 12145 if(chflags(argv[0], 0) != 0) 12146 return 1; 12147 return 0; 12148} 12149 12150_ACEOF 12151if ac_fn_c_try_run "$LINENO"; then : 12152 ac_cv_have_chflags=yes 12153else 12154 ac_cv_have_chflags=no 12155fi 12156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12157 conftest.$ac_objext conftest.beam conftest.$ac_ext 12158fi 12159 12160 12161fi 12162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 12163$as_echo "$ac_cv_have_chflags" >&6; } 12164if test "$ac_cv_have_chflags" = cross ; then 12165 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" 12166if test "x$ac_cv_func_chflags" = xyes; then : 12167 ac_cv_have_chflags="yes" 12168else 12169 ac_cv_have_chflags="no" 12170fi 12171 12172fi 12173if test "$ac_cv_have_chflags" = yes ; then 12174 12175$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h 12176 12177fi 12178 12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 12180$as_echo_n "checking for lchflags... " >&6; } 12181if ${ac_cv_have_lchflags+:} false; then : 12182 $as_echo_n "(cached) " >&6 12183else 12184 if test "$cross_compiling" = yes; then : 12185 ac_cv_have_lchflags=cross 12186else 12187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12188/* end confdefs.h. */ 12189 12190#include <sys/stat.h> 12191#include <unistd.h> 12192int main(int argc, char*argv[]) 12193{ 12194 if(lchflags(argv[0], 0) != 0) 12195 return 1; 12196 return 0; 12197} 12198 12199_ACEOF 12200if ac_fn_c_try_run "$LINENO"; then : 12201 ac_cv_have_lchflags=yes 12202else 12203 ac_cv_have_lchflags=no 12204fi 12205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12206 conftest.$ac_objext conftest.beam conftest.$ac_ext 12207fi 12208 12209 12210fi 12211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 12212$as_echo "$ac_cv_have_lchflags" >&6; } 12213if test "$ac_cv_have_lchflags" = cross ; then 12214 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" 12215if test "x$ac_cv_func_lchflags" = xyes; then : 12216 ac_cv_have_lchflags="yes" 12217else 12218 ac_cv_have_lchflags="no" 12219fi 12220 12221fi 12222if test "$ac_cv_have_lchflags" = yes ; then 12223 12224$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h 12225 12226fi 12227 12228case $ac_sys_system/$ac_sys_release in 12229Darwin/*) 12230 _CUR_CFLAGS="${CFLAGS}" 12231 _CUR_LDFLAGS="${LDFLAGS}" 12232 CFLAGS="${CFLAGS} -Wl,-search_paths_first" 12233 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" 12234 ;; 12235esac 12236 12237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 12238$as_echo_n "checking for inflateCopy in -lz... " >&6; } 12239if ${ac_cv_lib_z_inflateCopy+:} false; then : 12240 $as_echo_n "(cached) " >&6 12241else 12242 ac_check_lib_save_LIBS=$LIBS 12243LIBS="-lz $LIBS" 12244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12245/* end confdefs.h. */ 12246 12247/* Override any GCC internal prototype to avoid an error. 12248 Use char because int might match the return type of a GCC 12249 builtin and then its argument prototype would still apply. */ 12250#ifdef __cplusplus 12251extern "C" 12252#endif 12253char inflateCopy (); 12254int 12255main () 12256{ 12257return inflateCopy (); 12258 ; 12259 return 0; 12260} 12261_ACEOF 12262if ac_fn_c_try_link "$LINENO"; then : 12263 ac_cv_lib_z_inflateCopy=yes 12264else 12265 ac_cv_lib_z_inflateCopy=no 12266fi 12267rm -f core conftest.err conftest.$ac_objext \ 12268 conftest$ac_exeext conftest.$ac_ext 12269LIBS=$ac_check_lib_save_LIBS 12270fi 12271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 12272$as_echo "$ac_cv_lib_z_inflateCopy" >&6; } 12273if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : 12274 12275$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h 12276 12277fi 12278 12279 12280case $ac_sys_system/$ac_sys_release in 12281Darwin/*) 12282 CFLAGS="${_CUR_CFLAGS}" 12283 LDFLAGS="${_CUR_LDFLAGS}" 12284 ;; 12285esac 12286 12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 12288$as_echo_n "checking for hstrerror... " >&6; } 12289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12290/* end confdefs.h. */ 12291 12292#include <netdb.h> 12293 12294int 12295main () 12296{ 12297void* p = hstrerror; hstrerror(0) 12298 ; 12299 return 0; 12300} 12301_ACEOF 12302if ac_fn_c_try_link "$LINENO"; then : 12303 12304$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h 12305 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12307$as_echo "yes" >&6; } 12308else 12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12310$as_echo "no" >&6; } 12311 12312fi 12313rm -f core conftest.err conftest.$ac_objext \ 12314 conftest$ac_exeext conftest.$ac_ext 12315 12316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 12317$as_echo_n "checking for inet_aton... " >&6; } 12318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12319/* end confdefs.h. */ 12320 12321#include <sys/types.h> 12322#include <sys/socket.h> 12323#include <netinet/in.h> 12324#include <arpa/inet.h> 12325 12326int 12327main () 12328{ 12329void* p = inet_aton;inet_aton(0,0) 12330 ; 12331 return 0; 12332} 12333_ACEOF 12334if ac_fn_c_try_link "$LINENO"; then : 12335 12336$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 12337 12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12339$as_echo "yes" >&6; } 12340else 12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12342$as_echo "no" >&6; } 12343 12344fi 12345rm -f core conftest.err conftest.$ac_objext \ 12346 conftest$ac_exeext conftest.$ac_ext 12347 12348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 12349$as_echo_n "checking for inet_pton... " >&6; } 12350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12351/* end confdefs.h. */ 12352 12353#include <sys/types.h> 12354#include <sys/socket.h> 12355#include <netinet/in.h> 12356#include <arpa/inet.h> 12357 12358int 12359main () 12360{ 12361void* p = inet_pton 12362 ; 12363 return 0; 12364} 12365_ACEOF 12366if ac_fn_c_try_compile "$LINENO"; then : 12367 12368$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 12369 12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12371$as_echo "yes" >&6; } 12372else 12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12374$as_echo "no" >&6; } 12375 12376fi 12377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12378 12379# On some systems, setgroups is in unistd.h, on others, in grp.h 12380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 12381$as_echo_n "checking for setgroups... " >&6; } 12382cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12383/* end confdefs.h. */ 12384 12385#include <unistd.h> 12386#ifdef HAVE_GRP_H 12387#include <grp.h> 12388#endif 12389 12390int 12391main () 12392{ 12393void* p = setgroups 12394 ; 12395 return 0; 12396} 12397_ACEOF 12398if ac_fn_c_try_compile "$LINENO"; then : 12399 12400$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h 12401 12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12403$as_echo "yes" >&6; } 12404else 12405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12406$as_echo "no" >&6; } 12407 12408fi 12409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12410 12411# check for openpty and forkpty 12412 12413for ac_func in openpty 12414do : 12415 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 12416if test "x$ac_cv_func_openpty" = xyes; then : 12417 cat >>confdefs.h <<_ACEOF 12418#define HAVE_OPENPTY 1 12419_ACEOF 12420 12421else 12422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 12423$as_echo_n "checking for openpty in -lutil... " >&6; } 12424if ${ac_cv_lib_util_openpty+:} false; then : 12425 $as_echo_n "(cached) " >&6 12426else 12427 ac_check_lib_save_LIBS=$LIBS 12428LIBS="-lutil $LIBS" 12429cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12430/* end confdefs.h. */ 12431 12432/* Override any GCC internal prototype to avoid an error. 12433 Use char because int might match the return type of a GCC 12434 builtin and then its argument prototype would still apply. */ 12435#ifdef __cplusplus 12436extern "C" 12437#endif 12438char openpty (); 12439int 12440main () 12441{ 12442return openpty (); 12443 ; 12444 return 0; 12445} 12446_ACEOF 12447if ac_fn_c_try_link "$LINENO"; then : 12448 ac_cv_lib_util_openpty=yes 12449else 12450 ac_cv_lib_util_openpty=no 12451fi 12452rm -f core conftest.err conftest.$ac_objext \ 12453 conftest$ac_exeext conftest.$ac_ext 12454LIBS=$ac_check_lib_save_LIBS 12455fi 12456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 12457$as_echo "$ac_cv_lib_util_openpty" >&6; } 12458if test "x$ac_cv_lib_util_openpty" = xyes; then : 12459 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 12460 LIBS="$LIBS -lutil" 12461else 12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 12463$as_echo_n "checking for openpty in -lbsd... " >&6; } 12464if ${ac_cv_lib_bsd_openpty+:} false; then : 12465 $as_echo_n "(cached) " >&6 12466else 12467 ac_check_lib_save_LIBS=$LIBS 12468LIBS="-lbsd $LIBS" 12469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12470/* end confdefs.h. */ 12471 12472/* Override any GCC internal prototype to avoid an error. 12473 Use char because int might match the return type of a GCC 12474 builtin and then its argument prototype would still apply. */ 12475#ifdef __cplusplus 12476extern "C" 12477#endif 12478char openpty (); 12479int 12480main () 12481{ 12482return openpty (); 12483 ; 12484 return 0; 12485} 12486_ACEOF 12487if ac_fn_c_try_link "$LINENO"; then : 12488 ac_cv_lib_bsd_openpty=yes 12489else 12490 ac_cv_lib_bsd_openpty=no 12491fi 12492rm -f core conftest.err conftest.$ac_objext \ 12493 conftest$ac_exeext conftest.$ac_ext 12494LIBS=$ac_check_lib_save_LIBS 12495fi 12496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 12497$as_echo "$ac_cv_lib_bsd_openpty" >&6; } 12498if test "x$ac_cv_lib_bsd_openpty" = xyes; then : 12499 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 12500 LIBS="$LIBS -lbsd" 12501fi 12502 12503 12504fi 12505 12506 12507fi 12508done 12509 12510for ac_func in forkpty 12511do : 12512 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" 12513if test "x$ac_cv_func_forkpty" = xyes; then : 12514 cat >>confdefs.h <<_ACEOF 12515#define HAVE_FORKPTY 1 12516_ACEOF 12517 12518else 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 12520$as_echo_n "checking for forkpty in -lutil... " >&6; } 12521if ${ac_cv_lib_util_forkpty+:} false; then : 12522 $as_echo_n "(cached) " >&6 12523else 12524 ac_check_lib_save_LIBS=$LIBS 12525LIBS="-lutil $LIBS" 12526cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12527/* end confdefs.h. */ 12528 12529/* Override any GCC internal prototype to avoid an error. 12530 Use char because int might match the return type of a GCC 12531 builtin and then its argument prototype would still apply. */ 12532#ifdef __cplusplus 12533extern "C" 12534#endif 12535char forkpty (); 12536int 12537main () 12538{ 12539return forkpty (); 12540 ; 12541 return 0; 12542} 12543_ACEOF 12544if ac_fn_c_try_link "$LINENO"; then : 12545 ac_cv_lib_util_forkpty=yes 12546else 12547 ac_cv_lib_util_forkpty=no 12548fi 12549rm -f core conftest.err conftest.$ac_objext \ 12550 conftest$ac_exeext conftest.$ac_ext 12551LIBS=$ac_check_lib_save_LIBS 12552fi 12553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 12554$as_echo "$ac_cv_lib_util_forkpty" >&6; } 12555if test "x$ac_cv_lib_util_forkpty" = xyes; then : 12556 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 12557 LIBS="$LIBS -lutil" 12558else 12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 12560$as_echo_n "checking for forkpty in -lbsd... " >&6; } 12561if ${ac_cv_lib_bsd_forkpty+:} false; then : 12562 $as_echo_n "(cached) " >&6 12563else 12564 ac_check_lib_save_LIBS=$LIBS 12565LIBS="-lbsd $LIBS" 12566cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12567/* end confdefs.h. */ 12568 12569/* Override any GCC internal prototype to avoid an error. 12570 Use char because int might match the return type of a GCC 12571 builtin and then its argument prototype would still apply. */ 12572#ifdef __cplusplus 12573extern "C" 12574#endif 12575char forkpty (); 12576int 12577main () 12578{ 12579return forkpty (); 12580 ; 12581 return 0; 12582} 12583_ACEOF 12584if ac_fn_c_try_link "$LINENO"; then : 12585 ac_cv_lib_bsd_forkpty=yes 12586else 12587 ac_cv_lib_bsd_forkpty=no 12588fi 12589rm -f core conftest.err conftest.$ac_objext \ 12590 conftest$ac_exeext conftest.$ac_ext 12591LIBS=$ac_check_lib_save_LIBS 12592fi 12593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 12594$as_echo "$ac_cv_lib_bsd_forkpty" >&6; } 12595if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : 12596 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 12597 LIBS="$LIBS -lbsd" 12598fi 12599 12600 12601fi 12602 12603 12604fi 12605done 12606 12607 12608# check for long file support functions 12609for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs 12610do : 12611 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12612ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12613if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12614 cat >>confdefs.h <<_ACEOF 12615#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12616_ACEOF 12617 12618fi 12619done 12620 12621 12622ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 12623if test "x$ac_cv_func_dup2" = xyes; then : 12624 $as_echo "#define HAVE_DUP2 1" >>confdefs.h 12625 12626else 12627 case " $LIBOBJS " in 12628 *" dup2.$ac_objext "* ) ;; 12629 *) LIBOBJS="$LIBOBJS dup2.$ac_objext" 12630 ;; 12631esac 12632 12633fi 12634 12635ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 12636if test "x$ac_cv_func_strdup" = xyes; then : 12637 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h 12638 12639else 12640 case " $LIBOBJS " in 12641 *" strdup.$ac_objext "* ) ;; 12642 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 12643 ;; 12644esac 12645 12646fi 12647 12648 12649for ac_func in getpgrp 12650do : 12651 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 12652if test "x$ac_cv_func_getpgrp" = xyes; then : 12653 cat >>confdefs.h <<_ACEOF 12654#define HAVE_GETPGRP 1 12655_ACEOF 12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12657/* end confdefs.h. */ 12658#include <unistd.h> 12659int 12660main () 12661{ 12662getpgrp(0); 12663 ; 12664 return 0; 12665} 12666_ACEOF 12667if ac_fn_c_try_compile "$LINENO"; then : 12668 12669$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h 12670 12671fi 12672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12673 12674fi 12675done 12676 12677for ac_func in setpgrp 12678do : 12679 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 12680if test "x$ac_cv_func_setpgrp" = xyes; then : 12681 cat >>confdefs.h <<_ACEOF 12682#define HAVE_SETPGRP 1 12683_ACEOF 12684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12685/* end confdefs.h. */ 12686#include <unistd.h> 12687int 12688main () 12689{ 12690setpgrp(0,0); 12691 ; 12692 return 0; 12693} 12694_ACEOF 12695if ac_fn_c_try_compile "$LINENO"; then : 12696 12697$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h 12698 12699fi 12700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12701 12702fi 12703done 12704 12705for ac_func in gettimeofday 12706do : 12707 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 12708if test "x$ac_cv_func_gettimeofday" = xyes; then : 12709 cat >>confdefs.h <<_ACEOF 12710#define HAVE_GETTIMEOFDAY 1 12711_ACEOF 12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12713/* end confdefs.h. */ 12714#include <sys/time.h> 12715int 12716main () 12717{ 12718gettimeofday((struct timeval*)0,(struct timezone*)0); 12719 ; 12720 return 0; 12721} 12722_ACEOF 12723if ac_fn_c_try_compile "$LINENO"; then : 12724 12725else 12726 12727$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h 12728 12729 12730fi 12731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12732 12733fi 12734done 12735 12736 12737# We search for both crypt and crypt_r as one or the other may be defined 12738# This gets us our -lcrypt in LIBS when required on the target platform. 12739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 12740$as_echo_n "checking for library containing crypt... " >&6; } 12741if ${ac_cv_search_crypt+:} false; then : 12742 $as_echo_n "(cached) " >&6 12743else 12744 ac_func_search_save_LIBS=$LIBS 12745cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12746/* end confdefs.h. */ 12747 12748/* Override any GCC internal prototype to avoid an error. 12749 Use char because int might match the return type of a GCC 12750 builtin and then its argument prototype would still apply. */ 12751#ifdef __cplusplus 12752extern "C" 12753#endif 12754char crypt (); 12755int 12756main () 12757{ 12758return crypt (); 12759 ; 12760 return 0; 12761} 12762_ACEOF 12763for ac_lib in '' crypt; do 12764 if test -z "$ac_lib"; then 12765 ac_res="none required" 12766 else 12767 ac_res=-l$ac_lib 12768 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12769 fi 12770 if ac_fn_c_try_link "$LINENO"; then : 12771 ac_cv_search_crypt=$ac_res 12772fi 12773rm -f core conftest.err conftest.$ac_objext \ 12774 conftest$ac_exeext 12775 if ${ac_cv_search_crypt+:} false; then : 12776 break 12777fi 12778done 12779if ${ac_cv_search_crypt+:} false; then : 12780 12781else 12782 ac_cv_search_crypt=no 12783fi 12784rm conftest.$ac_ext 12785LIBS=$ac_func_search_save_LIBS 12786fi 12787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 12788$as_echo "$ac_cv_search_crypt" >&6; } 12789ac_res=$ac_cv_search_crypt 12790if test "$ac_res" != no; then : 12791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12792 12793fi 12794 12795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt_r" >&5 12796$as_echo_n "checking for library containing crypt_r... " >&6; } 12797if ${ac_cv_search_crypt_r+:} false; then : 12798 $as_echo_n "(cached) " >&6 12799else 12800 ac_func_search_save_LIBS=$LIBS 12801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12802/* end confdefs.h. */ 12803 12804/* Override any GCC internal prototype to avoid an error. 12805 Use char because int might match the return type of a GCC 12806 builtin and then its argument prototype would still apply. */ 12807#ifdef __cplusplus 12808extern "C" 12809#endif 12810char crypt_r (); 12811int 12812main () 12813{ 12814return crypt_r (); 12815 ; 12816 return 0; 12817} 12818_ACEOF 12819for ac_lib in '' crypt; do 12820 if test -z "$ac_lib"; then 12821 ac_res="none required" 12822 else 12823 ac_res=-l$ac_lib 12824 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 12825 fi 12826 if ac_fn_c_try_link "$LINENO"; then : 12827 ac_cv_search_crypt_r=$ac_res 12828fi 12829rm -f core conftest.err conftest.$ac_objext \ 12830 conftest$ac_exeext 12831 if ${ac_cv_search_crypt_r+:} false; then : 12832 break 12833fi 12834done 12835if ${ac_cv_search_crypt_r+:} false; then : 12836 12837else 12838 ac_cv_search_crypt_r=no 12839fi 12840rm conftest.$ac_ext 12841LIBS=$ac_func_search_save_LIBS 12842fi 12843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt_r" >&5 12844$as_echo "$ac_cv_search_crypt_r" >&6; } 12845ac_res=$ac_cv_search_crypt_r 12846if test "$ac_res" != no; then : 12847 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12848 12849fi 12850 12851 12852ac_fn_c_check_func "$LINENO" "crypt_r" "ac_cv_func_crypt_r" 12853if test "x$ac_cv_func_crypt_r" = xyes; then : 12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12855/* end confdefs.h. */ 12856 12857#define _GNU_SOURCE /* Required for crypt_r()'s prototype in glibc. */ 12858#include <crypt.h> 12859 12860int 12861main () 12862{ 12863 12864struct crypt_data d; 12865char *r = crypt_r("", "", &d); 12866 12867 ; 12868 return 0; 12869} 12870_ACEOF 12871if ac_fn_c_try_compile "$LINENO"; then : 12872 12873$as_echo "#define HAVE_CRYPT_R 1" >>confdefs.h 12874 12875fi 12876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12877 12878fi 12879 12880 12881for ac_func in clock_gettime 12882do : 12883 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" 12884if test "x$ac_cv_func_clock_gettime" = xyes; then : 12885 cat >>confdefs.h <<_ACEOF 12886#define HAVE_CLOCK_GETTIME 1 12887_ACEOF 12888 12889else 12890 12891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 12892$as_echo_n "checking for clock_gettime in -lrt... " >&6; } 12893if ${ac_cv_lib_rt_clock_gettime+:} false; then : 12894 $as_echo_n "(cached) " >&6 12895else 12896 ac_check_lib_save_LIBS=$LIBS 12897LIBS="-lrt $LIBS" 12898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12899/* end confdefs.h. */ 12900 12901/* Override any GCC internal prototype to avoid an error. 12902 Use char because int might match the return type of a GCC 12903 builtin and then its argument prototype would still apply. */ 12904#ifdef __cplusplus 12905extern "C" 12906#endif 12907char clock_gettime (); 12908int 12909main () 12910{ 12911return clock_gettime (); 12912 ; 12913 return 0; 12914} 12915_ACEOF 12916if ac_fn_c_try_link "$LINENO"; then : 12917 ac_cv_lib_rt_clock_gettime=yes 12918else 12919 ac_cv_lib_rt_clock_gettime=no 12920fi 12921rm -f core conftest.err conftest.$ac_objext \ 12922 conftest$ac_exeext conftest.$ac_ext 12923LIBS=$ac_check_lib_save_LIBS 12924fi 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 12926$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 12927if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 12928 12929 LIBS="$LIBS -lrt" 12930 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h 12931 12932 12933$as_echo "#define TIMEMODULE_LIB rt" >>confdefs.h 12934 12935 12936fi 12937 12938 12939fi 12940done 12941 12942 12943for ac_func in clock_getres 12944do : 12945 ac_fn_c_check_func "$LINENO" "clock_getres" "ac_cv_func_clock_getres" 12946if test "x$ac_cv_func_clock_getres" = xyes; then : 12947 cat >>confdefs.h <<_ACEOF 12948#define HAVE_CLOCK_GETRES 1 12949_ACEOF 12950 12951else 12952 12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_getres in -lrt" >&5 12954$as_echo_n "checking for clock_getres in -lrt... " >&6; } 12955if ${ac_cv_lib_rt_clock_getres+:} false; then : 12956 $as_echo_n "(cached) " >&6 12957else 12958 ac_check_lib_save_LIBS=$LIBS 12959LIBS="-lrt $LIBS" 12960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12961/* end confdefs.h. */ 12962 12963/* Override any GCC internal prototype to avoid an error. 12964 Use char because int might match the return type of a GCC 12965 builtin and then its argument prototype would still apply. */ 12966#ifdef __cplusplus 12967extern "C" 12968#endif 12969char clock_getres (); 12970int 12971main () 12972{ 12973return clock_getres (); 12974 ; 12975 return 0; 12976} 12977_ACEOF 12978if ac_fn_c_try_link "$LINENO"; then : 12979 ac_cv_lib_rt_clock_getres=yes 12980else 12981 ac_cv_lib_rt_clock_getres=no 12982fi 12983rm -f core conftest.err conftest.$ac_objext \ 12984 conftest$ac_exeext conftest.$ac_ext 12985LIBS=$ac_check_lib_save_LIBS 12986fi 12987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_getres" >&5 12988$as_echo "$ac_cv_lib_rt_clock_getres" >&6; } 12989if test "x$ac_cv_lib_rt_clock_getres" = xyes; then : 12990 12991 $as_echo "#define HAVE_CLOCK_GETRES 1" >>confdefs.h 12992 12993 12994fi 12995 12996 12997fi 12998done 12999 13000 13001for ac_func in clock_settime 13002do : 13003 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime" 13004if test "x$ac_cv_func_clock_settime" = xyes; then : 13005 cat >>confdefs.h <<_ACEOF 13006#define HAVE_CLOCK_SETTIME 1 13007_ACEOF 13008 13009else 13010 13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lrt" >&5 13012$as_echo_n "checking for clock_settime in -lrt... " >&6; } 13013if ${ac_cv_lib_rt_clock_settime+:} false; then : 13014 $as_echo_n "(cached) " >&6 13015else 13016 ac_check_lib_save_LIBS=$LIBS 13017LIBS="-lrt $LIBS" 13018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13019/* end confdefs.h. */ 13020 13021/* Override any GCC internal prototype to avoid an error. 13022 Use char because int might match the return type of a GCC 13023 builtin and then its argument prototype would still apply. */ 13024#ifdef __cplusplus 13025extern "C" 13026#endif 13027char clock_settime (); 13028int 13029main () 13030{ 13031return clock_settime (); 13032 ; 13033 return 0; 13034} 13035_ACEOF 13036if ac_fn_c_try_link "$LINENO"; then : 13037 ac_cv_lib_rt_clock_settime=yes 13038else 13039 ac_cv_lib_rt_clock_settime=no 13040fi 13041rm -f core conftest.err conftest.$ac_objext \ 13042 conftest$ac_exeext conftest.$ac_ext 13043LIBS=$ac_check_lib_save_LIBS 13044fi 13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_settime" >&5 13046$as_echo "$ac_cv_lib_rt_clock_settime" >&6; } 13047if test "x$ac_cv_lib_rt_clock_settime" = xyes; then : 13048 13049 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h 13050 13051 13052fi 13053 13054 13055fi 13056done 13057 13058 13059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 13060$as_echo_n "checking for major... " >&6; } 13061cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13062/* end confdefs.h. */ 13063 13064#if defined(MAJOR_IN_MKDEV) 13065#include <sys/mkdev.h> 13066#elif defined(MAJOR_IN_SYSMACROS) 13067#include <sys/sysmacros.h> 13068#else 13069#include <sys/types.h> 13070#endif 13071 13072int 13073main () 13074{ 13075 13076 makedev(major(0),minor(0)); 13077 13078 ; 13079 return 0; 13080} 13081_ACEOF 13082if ac_fn_c_try_link "$LINENO"; then : 13083 13084 13085$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h 13086 13087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13088$as_echo "yes" >&6; } 13089 13090else 13091 13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13093$as_echo "no" >&6; } 13094 13095fi 13096rm -f core conftest.err conftest.$ac_objext \ 13097 conftest$ac_exeext conftest.$ac_ext 13098 13099# On OSF/1 V5.1, getaddrinfo is available, but a define 13100# for [no]getaddrinfo in netdb.h. 13101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 13102$as_echo_n "checking for getaddrinfo... " >&6; } 13103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13104/* end confdefs.h. */ 13105 13106#include <sys/types.h> 13107#include <sys/socket.h> 13108#include <netdb.h> 13109#include <stdio.h> 13110 13111int 13112main () 13113{ 13114getaddrinfo(NULL, NULL, NULL, NULL); 13115 ; 13116 return 0; 13117} 13118_ACEOF 13119if ac_fn_c_try_link "$LINENO"; then : 13120 have_getaddrinfo=yes 13121else 13122 have_getaddrinfo=no 13123fi 13124rm -f core conftest.err conftest.$ac_objext \ 13125 conftest$ac_exeext conftest.$ac_ext 13126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 13127$as_echo "$have_getaddrinfo" >&6; } 13128if test $have_getaddrinfo = yes 13129then 13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 13131$as_echo_n "checking getaddrinfo bug... " >&6; } 13132 if ${ac_cv_buggy_getaddrinfo+:} false; then : 13133 $as_echo_n "(cached) " >&6 13134else 13135 if test "$cross_compiling" = yes; then : 13136 13137if test "${enable_ipv6+set}" = set; then 13138 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" 13139else 13140 ac_cv_buggy_getaddrinfo=yes 13141fi 13142else 13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13144/* end confdefs.h. */ 13145 13146#include <stdio.h> 13147#include <sys/types.h> 13148#include <netdb.h> 13149#include <string.h> 13150#include <sys/socket.h> 13151#include <netinet/in.h> 13152 13153int main() 13154{ 13155 int passive, gaierr, inet4 = 0, inet6 = 0; 13156 struct addrinfo hints, *ai, *aitop; 13157 char straddr[INET6_ADDRSTRLEN], strport[16]; 13158 13159 for (passive = 0; passive <= 1; passive++) { 13160 memset(&hints, 0, sizeof(hints)); 13161 hints.ai_family = AF_UNSPEC; 13162 hints.ai_flags = passive ? AI_PASSIVE : 0; 13163 hints.ai_socktype = SOCK_STREAM; 13164 hints.ai_protocol = IPPROTO_TCP; 13165 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 13166 (void)gai_strerror(gaierr); 13167 goto bad; 13168 } 13169 for (ai = aitop; ai; ai = ai->ai_next) { 13170 if (ai->ai_addr == NULL || 13171 ai->ai_addrlen == 0 || 13172 getnameinfo(ai->ai_addr, ai->ai_addrlen, 13173 straddr, sizeof(straddr), strport, sizeof(strport), 13174 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 13175 goto bad; 13176 } 13177 switch (ai->ai_family) { 13178 case AF_INET: 13179 if (strcmp(strport, "54321") != 0) { 13180 goto bad; 13181 } 13182 if (passive) { 13183 if (strcmp(straddr, "0.0.0.0") != 0) { 13184 goto bad; 13185 } 13186 } else { 13187 if (strcmp(straddr, "127.0.0.1") != 0) { 13188 goto bad; 13189 } 13190 } 13191 inet4++; 13192 break; 13193 case AF_INET6: 13194 if (strcmp(strport, "54321") != 0) { 13195 goto bad; 13196 } 13197 if (passive) { 13198 if (strcmp(straddr, "::") != 0) { 13199 goto bad; 13200 } 13201 } else { 13202 if (strcmp(straddr, "::1") != 0) { 13203 goto bad; 13204 } 13205 } 13206 inet6++; 13207 break; 13208 case AF_UNSPEC: 13209 goto bad; 13210 break; 13211 default: 13212 /* another family support? */ 13213 break; 13214 } 13215 } 13216 freeaddrinfo(aitop); 13217 aitop = NULL; 13218 } 13219 13220 if (!(inet4 == 0 || inet4 == 2)) 13221 goto bad; 13222 if (!(inet6 == 0 || inet6 == 2)) 13223 goto bad; 13224 13225 if (aitop) 13226 freeaddrinfo(aitop); 13227 return 0; 13228 13229 bad: 13230 if (aitop) 13231 freeaddrinfo(aitop); 13232 return 1; 13233} 13234 13235_ACEOF 13236if ac_fn_c_try_run "$LINENO"; then : 13237 ac_cv_buggy_getaddrinfo=no 13238else 13239 ac_cv_buggy_getaddrinfo=yes 13240fi 13241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13242 conftest.$ac_objext conftest.beam conftest.$ac_ext 13243fi 13244 13245fi 13246 13247fi 13248 13249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 13250$as_echo "$ac_cv_buggy_getaddrinfo" >&6; } 13251 13252if test $have_getaddrinfo = no || test "$ac_cv_buggy_getaddrinfo" = yes 13253then 13254 if test $ipv6 = yes 13255 then 13256 echo 'Fatal: You must get working getaddrinfo() function.' 13257 echo ' or you can specify "--disable-ipv6"'. 13258 exit 1 13259 fi 13260else 13261 13262$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 13263 13264fi 13265 13266for ac_func in getnameinfo 13267do : 13268 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 13269if test "x$ac_cv_func_getnameinfo" = xyes; then : 13270 cat >>confdefs.h <<_ACEOF 13271#define HAVE_GETNAMEINFO 1 13272_ACEOF 13273 13274fi 13275done 13276 13277 13278# checks for structures 13279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 13280$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 13281if ${ac_cv_header_time+:} false; then : 13282 $as_echo_n "(cached) " >&6 13283else 13284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13285/* end confdefs.h. */ 13286#include <sys/types.h> 13287#include <sys/time.h> 13288#include <time.h> 13289 13290int 13291main () 13292{ 13293if ((struct tm *) 0) 13294return 0; 13295 ; 13296 return 0; 13297} 13298_ACEOF 13299if ac_fn_c_try_compile "$LINENO"; then : 13300 ac_cv_header_time=yes 13301else 13302 ac_cv_header_time=no 13303fi 13304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13305fi 13306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 13307$as_echo "$ac_cv_header_time" >&6; } 13308if test $ac_cv_header_time = yes; then 13309 13310$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 13311 13312fi 13313 13314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 13315$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 13316if ${ac_cv_struct_tm+:} false; then : 13317 $as_echo_n "(cached) " >&6 13318else 13319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13320/* end confdefs.h. */ 13321#include <sys/types.h> 13322#include <time.h> 13323 13324int 13325main () 13326{ 13327struct tm tm; 13328 int *p = &tm.tm_sec; 13329 return !p; 13330 ; 13331 return 0; 13332} 13333_ACEOF 13334if ac_fn_c_try_compile "$LINENO"; then : 13335 ac_cv_struct_tm=time.h 13336else 13337 ac_cv_struct_tm=sys/time.h 13338fi 13339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13340fi 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 13342$as_echo "$ac_cv_struct_tm" >&6; } 13343if test $ac_cv_struct_tm = sys/time.h; then 13344 13345$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 13346 13347fi 13348 13349ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 13350#include <$ac_cv_struct_tm> 13351 13352" 13353if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 13354 13355cat >>confdefs.h <<_ACEOF 13356#define HAVE_STRUCT_TM_TM_ZONE 1 13357_ACEOF 13358 13359 13360fi 13361 13362if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 13363 13364$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 13365 13366else 13367 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 13368" 13369if test "x$ac_cv_have_decl_tzname" = xyes; then : 13370 ac_have_decl=1 13371else 13372 ac_have_decl=0 13373fi 13374 13375cat >>confdefs.h <<_ACEOF 13376#define HAVE_DECL_TZNAME $ac_have_decl 13377_ACEOF 13378 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 13380$as_echo_n "checking for tzname... " >&6; } 13381if ${ac_cv_var_tzname+:} false; then : 13382 $as_echo_n "(cached) " >&6 13383else 13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13385/* end confdefs.h. */ 13386#include <time.h> 13387#if !HAVE_DECL_TZNAME 13388extern char *tzname[]; 13389#endif 13390 13391int 13392main () 13393{ 13394return tzname[0][0]; 13395 ; 13396 return 0; 13397} 13398_ACEOF 13399if ac_fn_c_try_link "$LINENO"; then : 13400 ac_cv_var_tzname=yes 13401else 13402 ac_cv_var_tzname=no 13403fi 13404rm -f core conftest.err conftest.$ac_objext \ 13405 conftest$ac_exeext conftest.$ac_ext 13406fi 13407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 13408$as_echo "$ac_cv_var_tzname" >&6; } 13409 if test $ac_cv_var_tzname = yes; then 13410 13411$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 13412 13413 fi 13414fi 13415 13416ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 13417if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 13418 13419cat >>confdefs.h <<_ACEOF 13420#define HAVE_STRUCT_STAT_ST_RDEV 1 13421_ACEOF 13422 13423 13424fi 13425 13426ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 13427if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 13428 13429cat >>confdefs.h <<_ACEOF 13430#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 13431_ACEOF 13432 13433 13434fi 13435 13436ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" 13437if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : 13438 13439cat >>confdefs.h <<_ACEOF 13440#define HAVE_STRUCT_STAT_ST_FLAGS 1 13441_ACEOF 13442 13443 13444fi 13445 13446ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" 13447if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : 13448 13449cat >>confdefs.h <<_ACEOF 13450#define HAVE_STRUCT_STAT_ST_GEN 1 13451_ACEOF 13452 13453 13454fi 13455 13456ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" 13457if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : 13458 13459cat >>confdefs.h <<_ACEOF 13460#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 13461_ACEOF 13462 13463 13464fi 13465 13466ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 13467if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 13468 13469cat >>confdefs.h <<_ACEOF 13470#define HAVE_STRUCT_STAT_ST_BLOCKS 1 13471_ACEOF 13472 13473 13474fi 13475 13476ac_fn_c_check_member "$LINENO" "struct passwd" "pw_gecos" "ac_cv_member_struct_passwd_pw_gecos" " 13477 #include <sys/types.h> 13478 #include <pwd.h> 13479 13480" 13481if test "x$ac_cv_member_struct_passwd_pw_gecos" = xyes; then : 13482 13483cat >>confdefs.h <<_ACEOF 13484#define HAVE_STRUCT_PASSWD_PW_GECOS 1 13485_ACEOF 13486 13487 13488fi 13489ac_fn_c_check_member "$LINENO" "struct passwd" "pw_passwd" "ac_cv_member_struct_passwd_pw_passwd" " 13490 #include <sys/types.h> 13491 #include <pwd.h> 13492 13493" 13494if test "x$ac_cv_member_struct_passwd_pw_passwd" = xyes; then : 13495 13496cat >>confdefs.h <<_ACEOF 13497#define HAVE_STRUCT_PASSWD_PW_PASSWD 1 13498_ACEOF 13499 13500 13501fi 13502 13503# Issue #21085: In Cygwin, siginfo_t does not have si_band field. 13504ac_fn_c_check_member "$LINENO" "siginfo_t" "si_band" "ac_cv_member_siginfo_t_si_band" "#include <signal.h> 13505" 13506if test "x$ac_cv_member_siginfo_t_si_band" = xyes; then : 13507 13508cat >>confdefs.h <<_ACEOF 13509#define HAVE_SIGINFO_T_SI_BAND 1 13510_ACEOF 13511 13512 13513fi 13514 13515 13516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 13517$as_echo_n "checking for time.h that defines altzone... " >&6; } 13518if ${ac_cv_header_time_altzone+:} false; then : 13519 $as_echo_n "(cached) " >&6 13520else 13521 13522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13523/* end confdefs.h. */ 13524#include <time.h> 13525int 13526main () 13527{ 13528return altzone; 13529 ; 13530 return 0; 13531} 13532_ACEOF 13533if ac_fn_c_try_compile "$LINENO"; then : 13534 ac_cv_header_time_altzone=yes 13535else 13536 ac_cv_header_time_altzone=no 13537fi 13538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13539 13540fi 13541 13542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 13543$as_echo "$ac_cv_header_time_altzone" >&6; } 13544if test $ac_cv_header_time_altzone = yes; then 13545 13546$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 13547 13548fi 13549 13550was_it_defined=no 13551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 13552$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 13553cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13554/* end confdefs.h. */ 13555 13556#include <sys/types.h> 13557#include <sys/select.h> 13558#include <sys/time.h> 13559 13560int 13561main () 13562{ 13563; 13564 ; 13565 return 0; 13566} 13567_ACEOF 13568if ac_fn_c_try_compile "$LINENO"; then : 13569 13570 13571$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 13572 13573 was_it_defined=yes 13574 13575fi 13576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 13578$as_echo "$was_it_defined" >&6; } 13579 13580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 13581$as_echo_n "checking for addrinfo... " >&6; } 13582if ${ac_cv_struct_addrinfo+:} false; then : 13583 $as_echo_n "(cached) " >&6 13584else 13585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13586/* end confdefs.h. */ 13587#include <netdb.h> 13588int 13589main () 13590{ 13591struct addrinfo a 13592 ; 13593 return 0; 13594} 13595_ACEOF 13596if ac_fn_c_try_compile "$LINENO"; then : 13597 ac_cv_struct_addrinfo=yes 13598else 13599 ac_cv_struct_addrinfo=no 13600fi 13601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13602fi 13603 13604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 13605$as_echo "$ac_cv_struct_addrinfo" >&6; } 13606if test $ac_cv_struct_addrinfo = yes; then 13607 13608$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h 13609 13610fi 13611 13612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 13613$as_echo_n "checking for sockaddr_storage... " >&6; } 13614if ${ac_cv_struct_sockaddr_storage+:} false; then : 13615 $as_echo_n "(cached) " >&6 13616else 13617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13618/* end confdefs.h. */ 13619 13620# include <sys/types.h> 13621# include <sys/socket.h> 13622int 13623main () 13624{ 13625struct sockaddr_storage s 13626 ; 13627 return 0; 13628} 13629_ACEOF 13630if ac_fn_c_try_compile "$LINENO"; then : 13631 ac_cv_struct_sockaddr_storage=yes 13632else 13633 ac_cv_struct_sockaddr_storage=no 13634fi 13635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13636fi 13637 13638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 13639$as_echo "$ac_cv_struct_sockaddr_storage" >&6; } 13640if test $ac_cv_struct_sockaddr_storage = yes; then 13641 13642$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h 13643 13644fi 13645 13646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_alg" >&5 13647$as_echo_n "checking for sockaddr_alg... " >&6; } 13648if ${ac_cv_struct_sockaddr_alg+:} false; then : 13649 $as_echo_n "(cached) " >&6 13650else 13651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13652/* end confdefs.h. */ 13653 13654# include <sys/types.h> 13655# include <sys/socket.h> 13656# include <linux/if_alg.h> 13657int 13658main () 13659{ 13660struct sockaddr_alg s 13661 ; 13662 return 0; 13663} 13664_ACEOF 13665if ac_fn_c_try_compile "$LINENO"; then : 13666 ac_cv_struct_sockaddr_alg=yes 13667else 13668 ac_cv_struct_sockaddr_alg=no 13669fi 13670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13671fi 13672 13673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_alg" >&5 13674$as_echo "$ac_cv_struct_sockaddr_alg" >&6; } 13675if test $ac_cv_struct_sockaddr_alg = yes; then 13676 13677$as_echo "#define HAVE_SOCKADDR_ALG 1" >>confdefs.h 13678 13679fi 13680 13681# checks for compiler characteristics 13682 13683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 13684$as_echo_n "checking whether char is unsigned... " >&6; } 13685if ${ac_cv_c_char_unsigned+:} false; then : 13686 $as_echo_n "(cached) " >&6 13687else 13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13689/* end confdefs.h. */ 13690$ac_includes_default 13691int 13692main () 13693{ 13694static int test_array [1 - 2 * !(((char) -1) < 0)]; 13695test_array [0] = 0; 13696return test_array [0]; 13697 13698 ; 13699 return 0; 13700} 13701_ACEOF 13702if ac_fn_c_try_compile "$LINENO"; then : 13703 ac_cv_c_char_unsigned=no 13704else 13705 ac_cv_c_char_unsigned=yes 13706fi 13707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13708fi 13709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 13710$as_echo "$ac_cv_c_char_unsigned" >&6; } 13711if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 13712 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 13713 13714fi 13715 13716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 13717$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 13718if ${ac_cv_c_const+:} false; then : 13719 $as_echo_n "(cached) " >&6 13720else 13721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13722/* end confdefs.h. */ 13723 13724int 13725main () 13726{ 13727 13728#ifndef __cplusplus 13729 /* Ultrix mips cc rejects this sort of thing. */ 13730 typedef int charset[2]; 13731 const charset cs = { 0, 0 }; 13732 /* SunOS 4.1.1 cc rejects this. */ 13733 char const *const *pcpcc; 13734 char **ppc; 13735 /* NEC SVR4.0.2 mips cc rejects this. */ 13736 struct point {int x, y;}; 13737 static struct point const zero = {0,0}; 13738 /* AIX XL C 1.02.0.0 rejects this. 13739 It does not let you subtract one const X* pointer from another in 13740 an arm of an if-expression whose if-part is not a constant 13741 expression */ 13742 const char *g = "string"; 13743 pcpcc = &g + (g ? g-g : 0); 13744 /* HPUX 7.0 cc rejects these. */ 13745 ++pcpcc; 13746 ppc = (char**) pcpcc; 13747 pcpcc = (char const *const *) ppc; 13748 { /* SCO 3.2v4 cc rejects this sort of thing. */ 13749 char tx; 13750 char *t = &tx; 13751 char const *s = 0 ? (char *) 0 : (char const *) 0; 13752 13753 *t++ = 0; 13754 if (s) return 0; 13755 } 13756 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 13757 int x[] = {25, 17}; 13758 const int *foo = &x[0]; 13759 ++foo; 13760 } 13761 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 13762 typedef const int *iptr; 13763 iptr p = 0; 13764 ++p; 13765 } 13766 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 13767 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 13768 struct s { int j; const int *ap[3]; } bx; 13769 struct s *b = &bx; b->j = 5; 13770 } 13771 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 13772 const int foo = 10; 13773 if (!foo) return 0; 13774 } 13775 return !cs[0] && !zero.x; 13776#endif 13777 13778 ; 13779 return 0; 13780} 13781_ACEOF 13782if ac_fn_c_try_compile "$LINENO"; then : 13783 ac_cv_c_const=yes 13784else 13785 ac_cv_c_const=no 13786fi 13787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13788fi 13789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 13790$as_echo "$ac_cv_c_const" >&6; } 13791if test $ac_cv_c_const = no; then 13792 13793$as_echo "#define const /**/" >>confdefs.h 13794 13795fi 13796 13797 13798works=no 13799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 13800$as_echo_n "checking for working signed char... " >&6; } 13801cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13802/* end confdefs.h. */ 13803 13804int 13805main () 13806{ 13807signed char c; 13808 ; 13809 return 0; 13810} 13811_ACEOF 13812if ac_fn_c_try_compile "$LINENO"; then : 13813 works=yes 13814else 13815 13816$as_echo "#define signed /**/" >>confdefs.h 13817 13818 13819fi 13820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 13822$as_echo "$works" >&6; } 13823 13824have_prototypes=no 13825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 13826$as_echo_n "checking for prototypes... " >&6; } 13827cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13828/* end confdefs.h. */ 13829int foo(int x) { return 0; } 13830int 13831main () 13832{ 13833return foo(10); 13834 ; 13835 return 0; 13836} 13837_ACEOF 13838if ac_fn_c_try_compile "$LINENO"; then : 13839 13840$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h 13841 13842 have_prototypes=yes 13843fi 13844rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 13846$as_echo "$have_prototypes" >&6; } 13847 13848works=no 13849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 13850$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } 13851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13852/* end confdefs.h. */ 13853 13854#include <stdarg.h> 13855int foo(int x, ...) { 13856 va_list va; 13857 va_start(va, x); 13858 va_arg(va, int); 13859 va_arg(va, char *); 13860 va_arg(va, double); 13861 return 0; 13862} 13863 13864int 13865main () 13866{ 13867return foo(10, "", 3.14); 13868 ; 13869 return 0; 13870} 13871_ACEOF 13872if ac_fn_c_try_compile "$LINENO"; then : 13873 13874 13875$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h 13876 13877 works=yes 13878 13879fi 13880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 13882$as_echo "$works" >&6; } 13883 13884# check for socketpair 13885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 13886$as_echo_n "checking for socketpair... " >&6; } 13887cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13888/* end confdefs.h. */ 13889 13890#include <sys/types.h> 13891#include <sys/socket.h> 13892 13893int 13894main () 13895{ 13896void *x=socketpair 13897 ; 13898 return 0; 13899} 13900_ACEOF 13901if ac_fn_c_try_compile "$LINENO"; then : 13902 13903$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h 13904 13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13906$as_echo "yes" >&6; } 13907else 13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13909$as_echo "no" >&6; } 13910 13911fi 13912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13913 13914# check if sockaddr has sa_len member 13915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 13916$as_echo_n "checking if sockaddr has sa_len member... " >&6; } 13917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13918/* end confdefs.h. */ 13919#include <sys/types.h> 13920#include <sys/socket.h> 13921int 13922main () 13923{ 13924struct sockaddr x; 13925x.sa_len = 0; 13926 ; 13927 return 0; 13928} 13929_ACEOF 13930if ac_fn_c_try_compile "$LINENO"; then : 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13932$as_echo "yes" >&6; } 13933 13934$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 13935 13936else 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13938$as_echo "no" >&6; } 13939 13940fi 13941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13942 13943# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( 13944 13945 13946ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 13947if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 13948 13949 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13950 13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 13952$as_echo_n "checking gethostbyname_r with 6 args... " >&6; } 13953 OLD_CFLAGS=$CFLAGS 13954 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 13955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13956/* end confdefs.h. */ 13957 13958# include <netdb.h> 13959 13960int 13961main () 13962{ 13963 13964 char *name; 13965 struct hostent *he, *res; 13966 char buffer[2048]; 13967 int buflen = 2048; 13968 int h_errnop; 13969 13970 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) 13971 13972 ; 13973 return 0; 13974} 13975_ACEOF 13976if ac_fn_c_try_compile "$LINENO"; then : 13977 13978 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 13979 13980 13981$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 13982 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13984$as_echo "yes" >&6; } 13985 13986else 13987 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13989$as_echo "no" >&6; } 13990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 13991$as_echo_n "checking gethostbyname_r with 5 args... " >&6; } 13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13993/* end confdefs.h. */ 13994 13995# include <netdb.h> 13996 13997int 13998main () 13999{ 14000 14001 char *name; 14002 struct hostent *he; 14003 char buffer[2048]; 14004 int buflen = 2048; 14005 int h_errnop; 14006 14007 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) 14008 14009 ; 14010 return 0; 14011} 14012_ACEOF 14013if ac_fn_c_try_compile "$LINENO"; then : 14014 14015 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14016 14017 14018$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 14019 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14021$as_echo "yes" >&6; } 14022 14023else 14024 14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14026$as_echo "no" >&6; } 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 14028$as_echo_n "checking gethostbyname_r with 3 args... " >&6; } 14029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14030/* end confdefs.h. */ 14031 14032# include <netdb.h> 14033 14034int 14035main () 14036{ 14037 14038 char *name; 14039 struct hostent *he; 14040 struct hostent_data data; 14041 14042 (void) gethostbyname_r(name, he, &data); 14043 14044 ; 14045 return 0; 14046} 14047_ACEOF 14048if ac_fn_c_try_compile "$LINENO"; then : 14049 14050 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 14051 14052 14053$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 14054 14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14056$as_echo "yes" >&6; } 14057 14058else 14059 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14061$as_echo "no" >&6; } 14062 14063fi 14064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14065 14066fi 14067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14068 14069fi 14070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14071 CFLAGS=$OLD_CFLAGS 14072 14073else 14074 14075 for ac_func in gethostbyname 14076do : 14077 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 14078if test "x$ac_cv_func_gethostbyname" = xyes; then : 14079 cat >>confdefs.h <<_ACEOF 14080#define HAVE_GETHOSTBYNAME 1 14081_ACEOF 14082 14083fi 14084done 14085 14086 14087fi 14088 14089 14090 14091 14092 14093 14094 14095# checks for system services 14096# (none yet) 14097 14098# Linux requires this for correct f.p. operations 14099ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" 14100if test "x$ac_cv_func___fpu_control" = xyes; then : 14101 14102else 14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 14104$as_echo_n "checking for __fpu_control in -lieee... " >&6; } 14105if ${ac_cv_lib_ieee___fpu_control+:} false; then : 14106 $as_echo_n "(cached) " >&6 14107else 14108 ac_check_lib_save_LIBS=$LIBS 14109LIBS="-lieee $LIBS" 14110cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14111/* end confdefs.h. */ 14112 14113/* Override any GCC internal prototype to avoid an error. 14114 Use char because int might match the return type of a GCC 14115 builtin and then its argument prototype would still apply. */ 14116#ifdef __cplusplus 14117extern "C" 14118#endif 14119char __fpu_control (); 14120int 14121main () 14122{ 14123return __fpu_control (); 14124 ; 14125 return 0; 14126} 14127_ACEOF 14128if ac_fn_c_try_link "$LINENO"; then : 14129 ac_cv_lib_ieee___fpu_control=yes 14130else 14131 ac_cv_lib_ieee___fpu_control=no 14132fi 14133rm -f core conftest.err conftest.$ac_objext \ 14134 conftest$ac_exeext conftest.$ac_ext 14135LIBS=$ac_check_lib_save_LIBS 14136fi 14137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 14138$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } 14139if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : 14140 cat >>confdefs.h <<_ACEOF 14141#define HAVE_LIBIEEE 1 14142_ACEOF 14143 14144 LIBS="-lieee $LIBS" 14145 14146fi 14147 14148 14149fi 14150 14151 14152# check for --with-libm=... 14153 14154case $ac_sys_system in 14155Darwin) ;; 14156*) LIBM=-lm 14157esac 14158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 14159$as_echo_n "checking for --with-libm=STRING... " >&6; } 14160 14161# Check whether --with-libm was given. 14162if test "${with_libm+set}" = set; then : 14163 withval=$with_libm; 14164if test "$withval" = no 14165then LIBM= 14166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 14167$as_echo "force LIBM empty" >&6; } 14168elif test "$withval" != yes 14169then LIBM=$withval 14170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 14171$as_echo "set LIBM=\"$withval\"" >&6; } 14172else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 14173fi 14174else 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 14176$as_echo "default LIBM=\"$LIBM\"" >&6; } 14177fi 14178 14179 14180# check for --with-libc=... 14181 14182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 14183$as_echo_n "checking for --with-libc=STRING... " >&6; } 14184 14185# Check whether --with-libc was given. 14186if test "${with_libc+set}" = set; then : 14187 withval=$with_libc; 14188if test "$withval" = no 14189then LIBC= 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 14191$as_echo "force LIBC empty" >&6; } 14192elif test "$withval" != yes 14193then LIBC=$withval 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 14195$as_echo "set LIBC=\"$withval\"" >&6; } 14196else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 14197fi 14198else 14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 14200$as_echo "default LIBC=\"$LIBC\"" >&6; } 14201fi 14202 14203 14204# ************************************** 14205# * Check for gcc x64 inline assembler * 14206# ************************************** 14207 14208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x64 gcc inline assembler" >&5 14209$as_echo_n "checking for x64 gcc inline assembler... " >&6; } 14210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14211/* end confdefs.h. */ 14212 14213int 14214main () 14215{ 14216 14217 __asm__ __volatile__ ("movq %rcx, %rax"); 14218 14219 ; 14220 return 0; 14221} 14222_ACEOF 14223if ac_fn_c_try_link "$LINENO"; then : 14224 have_gcc_asm_for_x64=yes 14225else 14226 have_gcc_asm_for_x64=no 14227fi 14228rm -f core conftest.err conftest.$ac_objext \ 14229 conftest$ac_exeext conftest.$ac_ext 14230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x64" >&5 14231$as_echo "$have_gcc_asm_for_x64" >&6; } 14232if test "$have_gcc_asm_for_x64" = yes 14233then 14234 14235$as_echo "#define HAVE_GCC_ASM_FOR_X64 1" >>confdefs.h 14236 14237fi 14238 14239# ************************************************** 14240# * Check for various properties of floating point * 14241# ************************************************** 14242 14243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether float word ordering is bigendian" >&5 14244$as_echo_n "checking whether float word ordering is bigendian... " >&6; } 14245if ${ax_cv_c_float_words_bigendian+:} false; then : 14246 $as_echo_n "(cached) " >&6 14247else 14248 14249 14250ax_cv_c_float_words_bigendian=unknown 14251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14252/* end confdefs.h. */ 14253 14254 14255double d = 90904234967036810337470478905505011476211692735615632014797120844053488865816695273723469097858056257517020191247487429516932130503560650002327564517570778480236724525140520121371739201496540132640109977779420565776568942592.0; 14256 14257 14258_ACEOF 14259if ac_fn_c_try_compile "$LINENO"; then : 14260 14261 14262if grep noonsees conftest.$ac_objext >/dev/null ; then 14263 ax_cv_c_float_words_bigendian=yes 14264fi 14265if grep seesnoon conftest.$ac_objext >/dev/null ; then 14266 if test "$ax_cv_c_float_words_bigendian" = unknown; then 14267 ax_cv_c_float_words_bigendian=no 14268 else 14269 ax_cv_c_float_words_bigendian=unknown 14270 fi 14271fi 14272 14273 14274fi 14275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14276fi 14277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_float_words_bigendian" >&5 14278$as_echo "$ax_cv_c_float_words_bigendian" >&6; } 14279 14280case $ax_cv_c_float_words_bigendian in 14281 yes) 14282 14283$as_echo "#define FLOAT_WORDS_BIGENDIAN 1" >>confdefs.h 14284 ;; 14285 no) 14286 ;; 14287 *) 14288 as_fn_error $? " 14289 14290Unknown float word ordering. You need to manually preset 14291ax_cv_c_float_words_bigendian=no (or yes) according to your system. 14292 14293 " "$LINENO" 5 ;; 14294esac 14295 14296 14297if test "$ax_cv_c_float_words_bigendian" = "yes" 14298then 14299 14300$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h 14301 14302elif test "$ax_cv_c_float_words_bigendian" = "no" 14303then 14304 14305$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h 14306 14307else 14308 # Some ARM platforms use a mixed-endian representation for doubles. 14309 # While Python doesn't currently have full support for these platforms 14310 # (see e.g., issue 1762561), we can at least make sure that float <-> string 14311 # conversions work. 14312 # FLOAT_WORDS_BIGENDIAN doesnt actually detect this case, but if it's not big 14313 # or little, then it must be this? 14314 14315$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h 14316 14317fi 14318 14319# The short float repr introduced in Python 3.1 requires the 14320# correctly-rounded string <-> double conversion functions from 14321# Python/dtoa.c, which in turn require that the FPU uses 53-bit 14322# rounding; this is a problem on x86, where the x87 FPU has a default 14323# rounding precision of 64 bits. For gcc/x86, we can fix this by 14324# using inline assembler to get and set the x87 FPU control word. 14325 14326# This inline assembler syntax may also work for suncc and icc, 14327# so we try it on all platforms. 14328 14329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 14330$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } 14331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14332/* end confdefs.h. */ 14333 14334int 14335main () 14336{ 14337 14338 unsigned short cw; 14339 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); 14340 __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); 14341 14342 ; 14343 return 0; 14344} 14345_ACEOF 14346if ac_fn_c_try_link "$LINENO"; then : 14347 have_gcc_asm_for_x87=yes 14348else 14349 have_gcc_asm_for_x87=no 14350fi 14351rm -f core conftest.err conftest.$ac_objext \ 14352 conftest$ac_exeext conftest.$ac_ext 14353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 14354$as_echo "$have_gcc_asm_for_x87" >&6; } 14355if test "$have_gcc_asm_for_x87" = yes 14356then 14357 14358$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h 14359 14360fi 14361 14362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set mc68881 fpcr" >&5 14363$as_echo_n "checking whether we can use gcc inline assembler to get and set mc68881 fpcr... " >&6; } 14364cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14365/* end confdefs.h. */ 14366 14367int 14368main () 14369{ 14370 14371 unsigned int fpcr; 14372 __asm__ __volatile__ ("fmove.l %%fpcr,%0" : "=g" (fpcr)); 14373 __asm__ __volatile__ ("fmove.l %0,%%fpcr" : : "g" (fpcr)); 14374 14375 ; 14376 return 0; 14377} 14378_ACEOF 14379if ac_fn_c_try_link "$LINENO"; then : 14380 have_gcc_asm_for_mc68881=yes 14381else 14382 have_gcc_asm_for_mc68881=no 14383fi 14384rm -f core conftest.err conftest.$ac_objext \ 14385 conftest$ac_exeext conftest.$ac_ext 14386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_mc68881" >&5 14387$as_echo "$have_gcc_asm_for_mc68881" >&6; } 14388if test "$have_gcc_asm_for_mc68881" = yes 14389then 14390 14391$as_echo "#define HAVE_GCC_ASM_FOR_MC68881 1" >>confdefs.h 14392 14393fi 14394 14395# Detect whether system arithmetic is subject to x87-style double 14396# rounding issues. The result of this test has little meaning on non 14397# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding 14398# mode is round-to-nearest and double rounding issues are present, and 14399# 0 otherwise. See http://bugs.python.org/issue2937 for more info. 14400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 14401$as_echo_n "checking for x87-style double rounding... " >&6; } 14402# $BASECFLAGS may affect the result 14403ac_save_cc="$CC" 14404CC="$CC $BASECFLAGS" 14405if test "$cross_compiling" = yes; then : 14406 ac_cv_x87_double_rounding=no 14407else 14408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14409/* end confdefs.h. */ 14410 14411#include <stdlib.h> 14412#include <math.h> 14413int main() { 14414 volatile double x, y, z; 14415 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ 14416 x = 0.99999999999999989; /* 1-2**-53 */ 14417 y = 1./x; 14418 if (y != 1.) 14419 exit(0); 14420 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ 14421 x = 1e16; 14422 y = 2.99999; 14423 z = x + y; 14424 if (z != 1e16+4.) 14425 exit(0); 14426 /* both tests show evidence of double rounding */ 14427 exit(1); 14428} 14429 14430_ACEOF 14431if ac_fn_c_try_run "$LINENO"; then : 14432 ac_cv_x87_double_rounding=no 14433else 14434 ac_cv_x87_double_rounding=yes 14435fi 14436rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14437 conftest.$ac_objext conftest.beam conftest.$ac_ext 14438fi 14439 14440CC="$ac_save_cc" 14441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 14442$as_echo "$ac_cv_x87_double_rounding" >&6; } 14443if test "$ac_cv_x87_double_rounding" = yes 14444then 14445 14446$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h 14447 14448fi 14449 14450# ************************************ 14451# * Check for mathematical functions * 14452# ************************************ 14453 14454LIBS_SAVE=$LIBS 14455LIBS="$LIBS $LIBM" 14456 14457for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma 14458do : 14459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14460ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14461if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14462 cat >>confdefs.h <<_ACEOF 14463#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14464_ACEOF 14465 14466fi 14467done 14468 14469for ac_func in hypot lgamma log1p log2 round tgamma 14470do : 14471 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14472ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14473if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14474 cat >>confdefs.h <<_ACEOF 14475#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14476_ACEOF 14477 14478fi 14479done 14480 14481ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> 14482" 14483if test "x$ac_cv_have_decl_isinf" = xyes; then : 14484 ac_have_decl=1 14485else 14486 ac_have_decl=0 14487fi 14488 14489cat >>confdefs.h <<_ACEOF 14490#define HAVE_DECL_ISINF $ac_have_decl 14491_ACEOF 14492ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> 14493" 14494if test "x$ac_cv_have_decl_isnan" = xyes; then : 14495 ac_have_decl=1 14496else 14497 ac_have_decl=0 14498fi 14499 14500cat >>confdefs.h <<_ACEOF 14501#define HAVE_DECL_ISNAN $ac_have_decl 14502_ACEOF 14503ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> 14504" 14505if test "x$ac_cv_have_decl_isfinite" = xyes; then : 14506 ac_have_decl=1 14507else 14508 ac_have_decl=0 14509fi 14510 14511cat >>confdefs.h <<_ACEOF 14512#define HAVE_DECL_ISFINITE $ac_have_decl 14513_ACEOF 14514 14515 14516# For multiprocessing module, check that sem_open 14517# actually works. For FreeBSD versions <= 7.2, 14518# the kernel module that provides POSIX semaphores 14519# isn't loaded by default, so an attempt to call 14520# sem_open results in a 'Signal 12' error. 14521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 14522$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } 14523if ${ac_cv_posix_semaphores_enabled+:} false; then : 14524 $as_echo_n "(cached) " >&6 14525else 14526 if test "$cross_compiling" = yes; then : 14527 ac_cv_posix_semaphores_enabled=yes 14528else 14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14530/* end confdefs.h. */ 14531 14532#include <unistd.h> 14533#include <fcntl.h> 14534#include <stdio.h> 14535#include <semaphore.h> 14536#include <sys/stat.h> 14537 14538int main(void) { 14539 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); 14540 if (a == SEM_FAILED) { 14541 perror("sem_open"); 14542 return 1; 14543 } 14544 sem_close(a); 14545 sem_unlink("/autoconf"); 14546 return 0; 14547} 14548 14549_ACEOF 14550if ac_fn_c_try_run "$LINENO"; then : 14551 ac_cv_posix_semaphores_enabled=yes 14552else 14553 ac_cv_posix_semaphores_enabled=no 14554fi 14555rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14556 conftest.$ac_objext conftest.beam conftest.$ac_ext 14557fi 14558 14559 14560fi 14561 14562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 14563$as_echo "$ac_cv_posix_semaphores_enabled" >&6; } 14564if test $ac_cv_posix_semaphores_enabled = no 14565then 14566 14567$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h 14568 14569fi 14570 14571# Multiprocessing check for broken sem_getvalue 14572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 14573$as_echo_n "checking for broken sem_getvalue... " >&6; } 14574if ${ac_cv_broken_sem_getvalue+:} false; then : 14575 $as_echo_n "(cached) " >&6 14576else 14577 if test "$cross_compiling" = yes; then : 14578 ac_cv_broken_sem_getvalue=yes 14579else 14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14581/* end confdefs.h. */ 14582 14583#include <unistd.h> 14584#include <fcntl.h> 14585#include <stdio.h> 14586#include <semaphore.h> 14587#include <sys/stat.h> 14588 14589int main(void){ 14590 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); 14591 int count; 14592 int res; 14593 if(a==SEM_FAILED){ 14594 perror("sem_open"); 14595 return 1; 14596 14597 } 14598 res = sem_getvalue(a, &count); 14599 sem_close(a); 14600 sem_unlink("/autocftw"); 14601 return res==-1 ? 1 : 0; 14602} 14603 14604_ACEOF 14605if ac_fn_c_try_run "$LINENO"; then : 14606 ac_cv_broken_sem_getvalue=no 14607else 14608 ac_cv_broken_sem_getvalue=yes 14609fi 14610rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14611 conftest.$ac_objext conftest.beam conftest.$ac_ext 14612fi 14613 14614 14615fi 14616 14617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 14618$as_echo "$ac_cv_broken_sem_getvalue" >&6; } 14619if test $ac_cv_broken_sem_getvalue = yes 14620then 14621 14622$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h 14623 14624fi 14625 14626ac_fn_c_check_decl "$LINENO" "RTLD_LAZY" "ac_cv_have_decl_RTLD_LAZY" "#include <dlfcn.h> 14627" 14628if test "x$ac_cv_have_decl_RTLD_LAZY" = xyes; then : 14629 ac_have_decl=1 14630else 14631 ac_have_decl=0 14632fi 14633 14634cat >>confdefs.h <<_ACEOF 14635#define HAVE_DECL_RTLD_LAZY $ac_have_decl 14636_ACEOF 14637ac_fn_c_check_decl "$LINENO" "RTLD_NOW" "ac_cv_have_decl_RTLD_NOW" "#include <dlfcn.h> 14638" 14639if test "x$ac_cv_have_decl_RTLD_NOW" = xyes; then : 14640 ac_have_decl=1 14641else 14642 ac_have_decl=0 14643fi 14644 14645cat >>confdefs.h <<_ACEOF 14646#define HAVE_DECL_RTLD_NOW $ac_have_decl 14647_ACEOF 14648ac_fn_c_check_decl "$LINENO" "RTLD_GLOBAL" "ac_cv_have_decl_RTLD_GLOBAL" "#include <dlfcn.h> 14649" 14650if test "x$ac_cv_have_decl_RTLD_GLOBAL" = xyes; then : 14651 ac_have_decl=1 14652else 14653 ac_have_decl=0 14654fi 14655 14656cat >>confdefs.h <<_ACEOF 14657#define HAVE_DECL_RTLD_GLOBAL $ac_have_decl 14658_ACEOF 14659ac_fn_c_check_decl "$LINENO" "RTLD_LOCAL" "ac_cv_have_decl_RTLD_LOCAL" "#include <dlfcn.h> 14660" 14661if test "x$ac_cv_have_decl_RTLD_LOCAL" = xyes; then : 14662 ac_have_decl=1 14663else 14664 ac_have_decl=0 14665fi 14666 14667cat >>confdefs.h <<_ACEOF 14668#define HAVE_DECL_RTLD_LOCAL $ac_have_decl 14669_ACEOF 14670ac_fn_c_check_decl "$LINENO" "RTLD_NODELETE" "ac_cv_have_decl_RTLD_NODELETE" "#include <dlfcn.h> 14671" 14672if test "x$ac_cv_have_decl_RTLD_NODELETE" = xyes; then : 14673 ac_have_decl=1 14674else 14675 ac_have_decl=0 14676fi 14677 14678cat >>confdefs.h <<_ACEOF 14679#define HAVE_DECL_RTLD_NODELETE $ac_have_decl 14680_ACEOF 14681ac_fn_c_check_decl "$LINENO" "RTLD_NOLOAD" "ac_cv_have_decl_RTLD_NOLOAD" "#include <dlfcn.h> 14682" 14683if test "x$ac_cv_have_decl_RTLD_NOLOAD" = xyes; then : 14684 ac_have_decl=1 14685else 14686 ac_have_decl=0 14687fi 14688 14689cat >>confdefs.h <<_ACEOF 14690#define HAVE_DECL_RTLD_NOLOAD $ac_have_decl 14691_ACEOF 14692ac_fn_c_check_decl "$LINENO" "RTLD_DEEPBIND" "ac_cv_have_decl_RTLD_DEEPBIND" "#include <dlfcn.h> 14693" 14694if test "x$ac_cv_have_decl_RTLD_DEEPBIND" = xyes; then : 14695 ac_have_decl=1 14696else 14697 ac_have_decl=0 14698fi 14699 14700cat >>confdefs.h <<_ACEOF 14701#define HAVE_DECL_RTLD_DEEPBIND $ac_have_decl 14702_ACEOF 14703ac_fn_c_check_decl "$LINENO" "RTLD_MEMBER" "ac_cv_have_decl_RTLD_MEMBER" "#include <dlfcn.h> 14704" 14705if test "x$ac_cv_have_decl_RTLD_MEMBER" = xyes; then : 14706 ac_have_decl=1 14707else 14708 ac_have_decl=0 14709fi 14710 14711cat >>confdefs.h <<_ACEOF 14712#define HAVE_DECL_RTLD_MEMBER $ac_have_decl 14713_ACEOF 14714 14715 14716# determine what size digit to use for Python's longs 14717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 14718$as_echo_n "checking digit size for Python's longs... " >&6; } 14719# Check whether --enable-big-digits was given. 14720if test "${enable_big_digits+set}" = set; then : 14721 enableval=$enable_big_digits; case $enable_big_digits in 14722yes) 14723 enable_big_digits=30 ;; 14724no) 14725 enable_big_digits=15 ;; 1472615|30) 14727 ;; 14728*) 14729 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; 14730esac 14731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 14732$as_echo "$enable_big_digits" >&6; } 14733 14734cat >>confdefs.h <<_ACEOF 14735#define PYLONG_BITS_IN_DIGIT $enable_big_digits 14736_ACEOF 14737 14738 14739else 14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 14741$as_echo "no value specified" >&6; } 14742fi 14743 14744 14745# check for wchar.h 14746ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 14747if test "x$ac_cv_header_wchar_h" = xyes; then : 14748 14749 14750$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h 14751 14752 wchar_h="yes" 14753 14754else 14755 wchar_h="no" 14756 14757fi 14758 14759 14760 14761# determine wchar_t size 14762if test "$wchar_h" = yes 14763then 14764 # The cast to long int works around a bug in the HP C Compiler 14765# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14766# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14767# This bug is HP SR number 8606223364. 14768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 14769$as_echo_n "checking size of wchar_t... " >&6; } 14770if ${ac_cv_sizeof_wchar_t+:} false; then : 14771 $as_echo_n "(cached) " >&6 14772else 14773 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> 14774"; then : 14775 14776else 14777 if test "$ac_cv_type_wchar_t" = yes; then 14778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14780as_fn_error 77 "cannot compute sizeof (wchar_t) 14781See \`config.log' for more details" "$LINENO" 5; } 14782 else 14783 ac_cv_sizeof_wchar_t=0 14784 fi 14785fi 14786 14787fi 14788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 14789$as_echo "$ac_cv_sizeof_wchar_t" >&6; } 14790 14791 14792 14793cat >>confdefs.h <<_ACEOF 14794#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 14795_ACEOF 14796 14797 14798fi 14799 14800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 14801$as_echo_n "checking for UCS-4 tcl... " >&6; } 14802have_ucs4_tcl=no 14803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14804/* end confdefs.h. */ 14805 14806#include <tcl.h> 14807#if TCL_UTF_MAX != 6 14808# error "NOT UCS4_TCL" 14809#endif 14810int 14811main () 14812{ 14813 14814 ; 14815 return 0; 14816} 14817_ACEOF 14818if ac_fn_c_try_compile "$LINENO"; then : 14819 14820 14821$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h 14822 14823 have_ucs4_tcl=yes 14824 14825fi 14826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 14828$as_echo "$have_ucs4_tcl" >&6; } 14829 14830# check whether wchar_t is signed or not 14831if test "$wchar_h" = yes 14832then 14833 # check whether wchar_t is signed or not 14834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 14835$as_echo_n "checking whether wchar_t is signed... " >&6; } 14836 if ${ac_cv_wchar_t_signed+:} false; then : 14837 $as_echo_n "(cached) " >&6 14838else 14839 14840 if test "$cross_compiling" = yes; then : 14841 ac_cv_wchar_t_signed=yes 14842else 14843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14844/* end confdefs.h. */ 14845 14846 #include <wchar.h> 14847 int main() 14848 { 14849 /* Success: exit code 0 */ 14850 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); 14851 } 14852 14853_ACEOF 14854if ac_fn_c_try_run "$LINENO"; then : 14855 ac_cv_wchar_t_signed=yes 14856else 14857 ac_cv_wchar_t_signed=no 14858fi 14859rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14860 conftest.$ac_objext conftest.beam conftest.$ac_ext 14861fi 14862 14863fi 14864 14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 14866$as_echo "$ac_cv_wchar_t_signed" >&6; } 14867fi 14868 14869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is usable" >&5 14870$as_echo_n "checking whether wchar_t is usable... " >&6; } 14871# wchar_t is only usable if it maps to an unsigned type 14872if test "$ac_cv_sizeof_wchar_t" -ge 2 \ 14873 -a "$ac_cv_wchar_t_signed" = "no" 14874then 14875 14876$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h 14877 14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14879$as_echo "yes" >&6; } 14880else 14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14882$as_echo "no" >&6; } 14883fi 14884 14885# check for endianness 14886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 14887$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 14888if ${ac_cv_c_bigendian+:} false; then : 14889 $as_echo_n "(cached) " >&6 14890else 14891 ac_cv_c_bigendian=unknown 14892 # See if we're dealing with a universal compiler. 14893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14894/* end confdefs.h. */ 14895#ifndef __APPLE_CC__ 14896 not a universal capable compiler 14897 #endif 14898 typedef int dummy; 14899 14900_ACEOF 14901if ac_fn_c_try_compile "$LINENO"; then : 14902 14903 # Check for potential -arch flags. It is not universal unless 14904 # there are at least two -arch flags with different values. 14905 ac_arch= 14906 ac_prev= 14907 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 14908 if test -n "$ac_prev"; then 14909 case $ac_word in 14910 i?86 | x86_64 | ppc | ppc64) 14911 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 14912 ac_arch=$ac_word 14913 else 14914 ac_cv_c_bigendian=universal 14915 break 14916 fi 14917 ;; 14918 esac 14919 ac_prev= 14920 elif test "x$ac_word" = "x-arch"; then 14921 ac_prev=arch 14922 fi 14923 done 14924fi 14925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14926 if test $ac_cv_c_bigendian = unknown; then 14927 # See if sys/param.h defines the BYTE_ORDER macro. 14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14929/* end confdefs.h. */ 14930#include <sys/types.h> 14931 #include <sys/param.h> 14932 14933int 14934main () 14935{ 14936#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 14937 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 14938 && LITTLE_ENDIAN) 14939 bogus endian macros 14940 #endif 14941 14942 ; 14943 return 0; 14944} 14945_ACEOF 14946if ac_fn_c_try_compile "$LINENO"; then : 14947 # It does; now see whether it defined to BIG_ENDIAN or not. 14948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14949/* end confdefs.h. */ 14950#include <sys/types.h> 14951 #include <sys/param.h> 14952 14953int 14954main () 14955{ 14956#if BYTE_ORDER != BIG_ENDIAN 14957 not big endian 14958 #endif 14959 14960 ; 14961 return 0; 14962} 14963_ACEOF 14964if ac_fn_c_try_compile "$LINENO"; then : 14965 ac_cv_c_bigendian=yes 14966else 14967 ac_cv_c_bigendian=no 14968fi 14969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14970fi 14971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14972 fi 14973 if test $ac_cv_c_bigendian = unknown; then 14974 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 14975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14976/* end confdefs.h. */ 14977#include <limits.h> 14978 14979int 14980main () 14981{ 14982#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 14983 bogus endian macros 14984 #endif 14985 14986 ; 14987 return 0; 14988} 14989_ACEOF 14990if ac_fn_c_try_compile "$LINENO"; then : 14991 # It does; now see whether it defined to _BIG_ENDIAN or not. 14992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14993/* end confdefs.h. */ 14994#include <limits.h> 14995 14996int 14997main () 14998{ 14999#ifndef _BIG_ENDIAN 15000 not big endian 15001 #endif 15002 15003 ; 15004 return 0; 15005} 15006_ACEOF 15007if ac_fn_c_try_compile "$LINENO"; then : 15008 ac_cv_c_bigendian=yes 15009else 15010 ac_cv_c_bigendian=no 15011fi 15012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15013fi 15014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15015 fi 15016 if test $ac_cv_c_bigendian = unknown; then 15017 # Compile a test program. 15018 if test "$cross_compiling" = yes; then : 15019 # Try to guess by grepping values from an object file. 15020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15021/* end confdefs.h. */ 15022short int ascii_mm[] = 15023 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 15024 short int ascii_ii[] = 15025 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 15026 int use_ascii (int i) { 15027 return ascii_mm[i] + ascii_ii[i]; 15028 } 15029 short int ebcdic_ii[] = 15030 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 15031 short int ebcdic_mm[] = 15032 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 15033 int use_ebcdic (int i) { 15034 return ebcdic_mm[i] + ebcdic_ii[i]; 15035 } 15036 extern int foo; 15037 15038int 15039main () 15040{ 15041return use_ascii (foo) == use_ebcdic (foo); 15042 ; 15043 return 0; 15044} 15045_ACEOF 15046if ac_fn_c_try_compile "$LINENO"; then : 15047 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 15048 ac_cv_c_bigendian=yes 15049 fi 15050 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 15051 if test "$ac_cv_c_bigendian" = unknown; then 15052 ac_cv_c_bigendian=no 15053 else 15054 # finding both strings is unlikely to happen, but who knows? 15055 ac_cv_c_bigendian=unknown 15056 fi 15057 fi 15058fi 15059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15060else 15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15062/* end confdefs.h. */ 15063$ac_includes_default 15064int 15065main () 15066{ 15067 15068 /* Are we little or big endian? From Harbison&Steele. */ 15069 union 15070 { 15071 long int l; 15072 char c[sizeof (long int)]; 15073 } u; 15074 u.l = 1; 15075 return u.c[sizeof (long int) - 1] == 1; 15076 15077 ; 15078 return 0; 15079} 15080_ACEOF 15081if ac_fn_c_try_run "$LINENO"; then : 15082 ac_cv_c_bigendian=no 15083else 15084 ac_cv_c_bigendian=yes 15085fi 15086rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15087 conftest.$ac_objext conftest.beam conftest.$ac_ext 15088fi 15089 15090 fi 15091fi 15092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 15093$as_echo "$ac_cv_c_bigendian" >&6; } 15094 case $ac_cv_c_bigendian in #( 15095 yes) 15096 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 15097;; #( 15098 no) 15099 ;; #( 15100 universal) 15101 15102$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 15103 15104 ;; #( 15105 *) 15106 as_fn_error $? "unknown endianness 15107 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 15108 esac 15109 15110 15111# ABI version string for Python extension modules. This appears between the 15112# periods in shared library file names, e.g. foo.<SOABI>.so. It is calculated 15113# from the following attributes which affect the ABI of this Python build (in 15114# this order): 15115# 15116# * The Python implementation (always 'cpython-' for us) 15117# * The major and minor version numbers 15118# * --with-pydebug (adds a 'd') 15119# 15120# Thus for example, Python 3.2 built with wide unicode, pydebug, and pymalloc, 15121# would get a shared library ABI version tag of 'cpython-32dmu' and shared 15122# libraries would be named 'foo.cpython-32dmu.so'. 15123# 15124# In Python 3.2 and older, --with-wide-unicode added a 'u' flag. 15125# In Python 3.7 and older, --with-pymalloc added a 'm' flag. 15126 15127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking ABIFLAGS" >&5 15128$as_echo_n "checking ABIFLAGS... " >&6; } 15129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ABIFLAGS" >&5 15130$as_echo "$ABIFLAGS" >&6; } 15131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SOABI" >&5 15132$as_echo_n "checking SOABI... " >&6; } 15133SOABI='cpython-'`echo $VERSION | tr -d .`${ABIFLAGS}${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} 15134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SOABI" >&5 15135$as_echo "$SOABI" >&6; } 15136 15137# Release and debug (Py_DEBUG) ABI are compatible, but not Py_TRACE_REFS ABI 15138if test "$Py_DEBUG" = 'true' -a "$with_trace_refs" != "yes"; then 15139 # Similar to SOABI but remove "d" flag from ABIFLAGS 15140 15141 ALT_SOABI='cpython-'`echo $VERSION | tr -d .``echo $ABIFLAGS | tr -d d`${PLATFORM_TRIPLET:+-$PLATFORM_TRIPLET} 15142 15143cat >>confdefs.h <<_ACEOF 15144#define ALT_SOABI "${ALT_SOABI}" 15145_ACEOF 15146 15147fi 15148 15149 15150case $ac_sys_system in 15151 Linux*|GNU*|Darwin|VxWorks) 15152 EXT_SUFFIX=.${SOABI}${SHLIB_SUFFIX};; 15153 *) 15154 EXT_SUFFIX=${SHLIB_SUFFIX};; 15155esac 15156 15157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDVERSION" >&5 15158$as_echo_n "checking LDVERSION... " >&6; } 15159LDVERSION='$(VERSION)$(ABIFLAGS)' 15160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDVERSION" >&5 15161$as_echo "$LDVERSION" >&6; } 15162 15163# On Android and Cygwin the shared libraries must be linked with libpython. 15164 15165if test -n "$ANDROID_API_LEVEL" -o "$MACHDEP" = "cygwin"; then 15166 LIBPYTHON="-lpython${VERSION}${ABIFLAGS}" 15167else 15168 LIBPYTHON='' 15169fi 15170 15171 15172if test x$PLATFORM_TRIPLET = x; then 15173 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}" 15174else 15175 LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}" 15176fi 15177 15178 15179# Check whether right shifting a negative integer extends the sign bit 15180# or fills with zeros (like the Cray J90, according to Tim Peters). 15181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 15182$as_echo_n "checking whether right shift extends the sign bit... " >&6; } 15183if ${ac_cv_rshift_extends_sign+:} false; then : 15184 $as_echo_n "(cached) " >&6 15185else 15186 15187if test "$cross_compiling" = yes; then : 15188 ac_cv_rshift_extends_sign=yes 15189else 15190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15191/* end confdefs.h. */ 15192 15193int main() 15194{ 15195 exit(((-1)>>3 == -1) ? 0 : 1); 15196} 15197 15198_ACEOF 15199if ac_fn_c_try_run "$LINENO"; then : 15200 ac_cv_rshift_extends_sign=yes 15201else 15202 ac_cv_rshift_extends_sign=no 15203fi 15204rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15205 conftest.$ac_objext conftest.beam conftest.$ac_ext 15206fi 15207 15208fi 15209 15210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 15211$as_echo "$ac_cv_rshift_extends_sign" >&6; } 15212if test "$ac_cv_rshift_extends_sign" = no 15213then 15214 15215$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h 15216 15217fi 15218 15219# check for getc_unlocked and related locking functions 15220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 15221$as_echo_n "checking for getc_unlocked() and friends... " >&6; } 15222if ${ac_cv_have_getc_unlocked+:} false; then : 15223 $as_echo_n "(cached) " >&6 15224else 15225 15226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15227/* end confdefs.h. */ 15228#include <stdio.h> 15229int 15230main () 15231{ 15232 15233 FILE *f = fopen("/dev/null", "r"); 15234 flockfile(f); 15235 getc_unlocked(f); 15236 funlockfile(f); 15237 15238 ; 15239 return 0; 15240} 15241_ACEOF 15242if ac_fn_c_try_link "$LINENO"; then : 15243 ac_cv_have_getc_unlocked=yes 15244else 15245 ac_cv_have_getc_unlocked=no 15246fi 15247rm -f core conftest.err conftest.$ac_objext \ 15248 conftest$ac_exeext conftest.$ac_ext 15249fi 15250 15251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 15252$as_echo "$ac_cv_have_getc_unlocked" >&6; } 15253if test "$ac_cv_have_getc_unlocked" = yes 15254then 15255 15256$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h 15257 15258fi 15259 15260# check where readline lives 15261# save the value of LIBS so we don't actually link Python with readline 15262LIBS_no_readline=$LIBS 15263 15264# On some systems we need to link readline to a termcap compatible 15265# library. NOTE: Keep the precedence of listed libraries synchronised 15266# with setup.py. 15267py_cv_lib_readline=no 15268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 15269$as_echo_n "checking how to link readline libs... " >&6; } 15270for py_libtermcap in "" tinfo ncursesw ncurses curses termcap; do 15271 if test -z "$py_libtermcap"; then 15272 READLINE_LIBS="-lreadline" 15273 else 15274 READLINE_LIBS="-lreadline -l$py_libtermcap" 15275 fi 15276 LIBS="$READLINE_LIBS $LIBS_no_readline" 15277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15278/* end confdefs.h. */ 15279 15280/* Override any GCC internal prototype to avoid an error. 15281 Use char because int might match the return type of a GCC 15282 builtin and then its argument prototype would still apply. */ 15283#ifdef __cplusplus 15284extern "C" 15285#endif 15286char readline (); 15287int 15288main () 15289{ 15290return readline (); 15291 ; 15292 return 0; 15293} 15294_ACEOF 15295if ac_fn_c_try_link "$LINENO"; then : 15296 py_cv_lib_readline=yes 15297fi 15298rm -f core conftest.err conftest.$ac_objext \ 15299 conftest$ac_exeext conftest.$ac_ext 15300 if test $py_cv_lib_readline = yes; then 15301 break 15302 fi 15303done 15304# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts 15305#AC_SUBST([READLINE_LIBS]) 15306if test $py_cv_lib_readline = no; then 15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 15308$as_echo "none" >&6; } 15309else 15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 15311$as_echo "$READLINE_LIBS" >&6; } 15312 15313$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 15314 15315fi 15316 15317# check for readline 2.2 15318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15319/* end confdefs.h. */ 15320#include <readline/readline.h> 15321_ACEOF 15322if ac_fn_c_try_cpp "$LINENO"; then : 15323 have_readline=yes 15324else 15325 have_readline=no 15326 15327fi 15328rm -f conftest.err conftest.i conftest.$ac_ext 15329if test $have_readline = yes 15330then 15331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15332/* end confdefs.h. */ 15333#include <readline/readline.h> 15334 15335_ACEOF 15336if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15337 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : 15338 15339$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h 15340 15341fi 15342rm -f conftest* 15343 15344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15345/* end confdefs.h. */ 15346#include <readline/readline.h> 15347 15348_ACEOF 15349if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15350 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : 15351 15352$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h 15353 15354fi 15355rm -f conftest* 15356 15357fi 15358 15359# check for readline 4.0 15360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 15361$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } 15362if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : 15363 $as_echo_n "(cached) " >&6 15364else 15365 ac_check_lib_save_LIBS=$LIBS 15366LIBS="-lreadline $READLINE_LIBS $LIBS" 15367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15368/* end confdefs.h. */ 15369 15370/* Override any GCC internal prototype to avoid an error. 15371 Use char because int might match the return type of a GCC 15372 builtin and then its argument prototype would still apply. */ 15373#ifdef __cplusplus 15374extern "C" 15375#endif 15376char rl_pre_input_hook (); 15377int 15378main () 15379{ 15380return rl_pre_input_hook (); 15381 ; 15382 return 0; 15383} 15384_ACEOF 15385if ac_fn_c_try_link "$LINENO"; then : 15386 ac_cv_lib_readline_rl_pre_input_hook=yes 15387else 15388 ac_cv_lib_readline_rl_pre_input_hook=no 15389fi 15390rm -f core conftest.err conftest.$ac_objext \ 15391 conftest$ac_exeext conftest.$ac_ext 15392LIBS=$ac_check_lib_save_LIBS 15393fi 15394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 15395$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } 15396if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : 15397 15398$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h 15399 15400fi 15401 15402 15403# also in 4.0 15404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 15405$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } 15406if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : 15407 $as_echo_n "(cached) " >&6 15408else 15409 ac_check_lib_save_LIBS=$LIBS 15410LIBS="-lreadline $READLINE_LIBS $LIBS" 15411cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15412/* end confdefs.h. */ 15413 15414/* Override any GCC internal prototype to avoid an error. 15415 Use char because int might match the return type of a GCC 15416 builtin and then its argument prototype would still apply. */ 15417#ifdef __cplusplus 15418extern "C" 15419#endif 15420char rl_completion_display_matches_hook (); 15421int 15422main () 15423{ 15424return rl_completion_display_matches_hook (); 15425 ; 15426 return 0; 15427} 15428_ACEOF 15429if ac_fn_c_try_link "$LINENO"; then : 15430 ac_cv_lib_readline_rl_completion_display_matches_hook=yes 15431else 15432 ac_cv_lib_readline_rl_completion_display_matches_hook=no 15433fi 15434rm -f core conftest.err conftest.$ac_objext \ 15435 conftest$ac_exeext conftest.$ac_ext 15436LIBS=$ac_check_lib_save_LIBS 15437fi 15438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 15439$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } 15440if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : 15441 15442$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h 15443 15444fi 15445 15446 15447# also in 4.0, but not in editline 15448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 15449$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } 15450if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : 15451 $as_echo_n "(cached) " >&6 15452else 15453 ac_check_lib_save_LIBS=$LIBS 15454LIBS="-lreadline $READLINE_LIBS $LIBS" 15455cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15456/* end confdefs.h. */ 15457 15458/* Override any GCC internal prototype to avoid an error. 15459 Use char because int might match the return type of a GCC 15460 builtin and then its argument prototype would still apply. */ 15461#ifdef __cplusplus 15462extern "C" 15463#endif 15464char rl_resize_terminal (); 15465int 15466main () 15467{ 15468return rl_resize_terminal (); 15469 ; 15470 return 0; 15471} 15472_ACEOF 15473if ac_fn_c_try_link "$LINENO"; then : 15474 ac_cv_lib_readline_rl_resize_terminal=yes 15475else 15476 ac_cv_lib_readline_rl_resize_terminal=no 15477fi 15478rm -f core conftest.err conftest.$ac_objext \ 15479 conftest$ac_exeext conftest.$ac_ext 15480LIBS=$ac_check_lib_save_LIBS 15481fi 15482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 15483$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } 15484if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : 15485 15486$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h 15487 15488fi 15489 15490 15491# check for readline 4.2 15492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 15493$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } 15494if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : 15495 $as_echo_n "(cached) " >&6 15496else 15497 ac_check_lib_save_LIBS=$LIBS 15498LIBS="-lreadline $READLINE_LIBS $LIBS" 15499cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15500/* end confdefs.h. */ 15501 15502/* Override any GCC internal prototype to avoid an error. 15503 Use char because int might match the return type of a GCC 15504 builtin and then its argument prototype would still apply. */ 15505#ifdef __cplusplus 15506extern "C" 15507#endif 15508char rl_completion_matches (); 15509int 15510main () 15511{ 15512return rl_completion_matches (); 15513 ; 15514 return 0; 15515} 15516_ACEOF 15517if ac_fn_c_try_link "$LINENO"; then : 15518 ac_cv_lib_readline_rl_completion_matches=yes 15519else 15520 ac_cv_lib_readline_rl_completion_matches=no 15521fi 15522rm -f core conftest.err conftest.$ac_objext \ 15523 conftest$ac_exeext conftest.$ac_ext 15524LIBS=$ac_check_lib_save_LIBS 15525fi 15526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 15527$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } 15528if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : 15529 15530$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h 15531 15532fi 15533 15534 15535# also in readline 4.2 15536cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15537/* end confdefs.h. */ 15538#include <readline/readline.h> 15539_ACEOF 15540if ac_fn_c_try_cpp "$LINENO"; then : 15541 have_readline=yes 15542else 15543 have_readline=no 15544 15545fi 15546rm -f conftest.err conftest.i conftest.$ac_ext 15547if test $have_readline = yes 15548then 15549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15550/* end confdefs.h. */ 15551#include <readline/readline.h> 15552 15553_ACEOF 15554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15555 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : 15556 15557$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h 15558 15559fi 15560rm -f conftest* 15561 15562fi 15563 15564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 15565$as_echo_n "checking for append_history in -lreadline... " >&6; } 15566if ${ac_cv_lib_readline_append_history+:} false; then : 15567 $as_echo_n "(cached) " >&6 15568else 15569 ac_check_lib_save_LIBS=$LIBS 15570LIBS="-lreadline $READLINE_LIBS $LIBS" 15571cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15572/* end confdefs.h. */ 15573 15574/* Override any GCC internal prototype to avoid an error. 15575 Use char because int might match the return type of a GCC 15576 builtin and then its argument prototype would still apply. */ 15577#ifdef __cplusplus 15578extern "C" 15579#endif 15580char append_history (); 15581int 15582main () 15583{ 15584return append_history (); 15585 ; 15586 return 0; 15587} 15588_ACEOF 15589if ac_fn_c_try_link "$LINENO"; then : 15590 ac_cv_lib_readline_append_history=yes 15591else 15592 ac_cv_lib_readline_append_history=no 15593fi 15594rm -f core conftest.err conftest.$ac_objext \ 15595 conftest$ac_exeext conftest.$ac_ext 15596LIBS=$ac_check_lib_save_LIBS 15597fi 15598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 15599$as_echo "$ac_cv_lib_readline_append_history" >&6; } 15600if test "x$ac_cv_lib_readline_append_history" = xyes; then : 15601 15602$as_echo "#define HAVE_RL_APPEND_HISTORY 1" >>confdefs.h 15603 15604fi 15605 15606 15607# End of readline checks: restore LIBS 15608LIBS=$LIBS_no_readline 15609 15610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 15611$as_echo_n "checking for broken nice()... " >&6; } 15612if ${ac_cv_broken_nice+:} false; then : 15613 $as_echo_n "(cached) " >&6 15614else 15615 15616if test "$cross_compiling" = yes; then : 15617 ac_cv_broken_nice=no 15618else 15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15620/* end confdefs.h. */ 15621 15622#include <stdlib.h> 15623#include <unistd.h> 15624int main() 15625{ 15626 int val1 = nice(1); 15627 if (val1 != -1 && val1 == nice(2)) 15628 exit(0); 15629 exit(1); 15630} 15631 15632_ACEOF 15633if ac_fn_c_try_run "$LINENO"; then : 15634 ac_cv_broken_nice=yes 15635else 15636 ac_cv_broken_nice=no 15637fi 15638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15639 conftest.$ac_objext conftest.beam conftest.$ac_ext 15640fi 15641 15642fi 15643 15644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 15645$as_echo "$ac_cv_broken_nice" >&6; } 15646if test "$ac_cv_broken_nice" = yes 15647then 15648 15649$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h 15650 15651fi 15652 15653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 15654$as_echo_n "checking for broken poll()... " >&6; } 15655if ${ac_cv_broken_poll+:} false; then : 15656 $as_echo_n "(cached) " >&6 15657else 15658 if test "$cross_compiling" = yes; then : 15659 ac_cv_broken_poll=no 15660else 15661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15662/* end confdefs.h. */ 15663 15664#include <poll.h> 15665 15666int main() 15667{ 15668 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; 15669 int poll_test; 15670 15671 close (42); 15672 15673 poll_test = poll(&poll_struct, 1, 0); 15674 if (poll_test < 0) 15675 return 0; 15676 else if (poll_test == 0 && poll_struct.revents != POLLNVAL) 15677 return 0; 15678 else 15679 return 1; 15680} 15681 15682_ACEOF 15683if ac_fn_c_try_run "$LINENO"; then : 15684 ac_cv_broken_poll=yes 15685else 15686 ac_cv_broken_poll=no 15687fi 15688rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15689 conftest.$ac_objext conftest.beam conftest.$ac_ext 15690fi 15691 15692fi 15693 15694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 15695$as_echo "$ac_cv_broken_poll" >&6; } 15696if test "$ac_cv_broken_poll" = yes 15697then 15698 15699$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h 15700 15701fi 15702 15703# check tzset(3) exists and works like we expect it to 15704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 15705$as_echo_n "checking for working tzset()... " >&6; } 15706if ${ac_cv_working_tzset+:} false; then : 15707 $as_echo_n "(cached) " >&6 15708else 15709 15710if test "$cross_compiling" = yes; then : 15711 ac_cv_working_tzset=no 15712else 15713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15714/* end confdefs.h. */ 15715 15716#include <stdlib.h> 15717#include <time.h> 15718#include <string.h> 15719 15720#if HAVE_TZNAME 15721extern char *tzname[]; 15722#endif 15723 15724int main() 15725{ 15726 /* Note that we need to ensure that not only does tzset(3) 15727 do 'something' with localtime, but it works as documented 15728 in the library reference and as expected by the test suite. 15729 This includes making sure that tzname is set properly if 15730 tm->tm_zone does not exist since it is the alternative way 15731 of getting timezone info. 15732 15733 Red Hat 6.2 doesn't understand the southern hemisphere 15734 after New Year's Day. 15735 */ 15736 15737 time_t groundhogday = 1044144000; /* GMT-based */ 15738 time_t midyear = groundhogday + (365 * 24 * 3600 / 2); 15739 15740 putenv("TZ=UTC+0"); 15741 tzset(); 15742 if (localtime(&groundhogday)->tm_hour != 0) 15743 exit(1); 15744#if HAVE_TZNAME 15745 /* For UTC, tzname[1] is sometimes "", sometimes " " */ 15746 if (strcmp(tzname[0], "UTC") || 15747 (tzname[1][0] != 0 && tzname[1][0] != ' ')) 15748 exit(1); 15749#endif 15750 15751 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); 15752 tzset(); 15753 if (localtime(&groundhogday)->tm_hour != 19) 15754 exit(1); 15755#if HAVE_TZNAME 15756 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) 15757 exit(1); 15758#endif 15759 15760 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); 15761 tzset(); 15762 if (localtime(&groundhogday)->tm_hour != 11) 15763 exit(1); 15764#if HAVE_TZNAME 15765 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) 15766 exit(1); 15767#endif 15768 15769#if HAVE_STRUCT_TM_TM_ZONE 15770 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) 15771 exit(1); 15772 if (strcmp(localtime(&midyear)->tm_zone, "AEST")) 15773 exit(1); 15774#endif 15775 15776 exit(0); 15777} 15778 15779_ACEOF 15780if ac_fn_c_try_run "$LINENO"; then : 15781 ac_cv_working_tzset=yes 15782else 15783 ac_cv_working_tzset=no 15784fi 15785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15786 conftest.$ac_objext conftest.beam conftest.$ac_ext 15787fi 15788 15789fi 15790 15791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 15792$as_echo "$ac_cv_working_tzset" >&6; } 15793if test "$ac_cv_working_tzset" = yes 15794then 15795 15796$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h 15797 15798fi 15799 15800# Look for subsecond timestamps in struct stat 15801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 15802$as_echo_n "checking for tv_nsec in struct stat... " >&6; } 15803if ${ac_cv_stat_tv_nsec+:} false; then : 15804 $as_echo_n "(cached) " >&6 15805else 15806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15807/* end confdefs.h. */ 15808#include <sys/stat.h> 15809int 15810main () 15811{ 15812 15813struct stat st; 15814st.st_mtim.tv_nsec = 1; 15815 15816 ; 15817 return 0; 15818} 15819_ACEOF 15820if ac_fn_c_try_compile "$LINENO"; then : 15821 ac_cv_stat_tv_nsec=yes 15822else 15823 ac_cv_stat_tv_nsec=no 15824fi 15825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15826fi 15827 15828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 15829$as_echo "$ac_cv_stat_tv_nsec" >&6; } 15830if test "$ac_cv_stat_tv_nsec" = yes 15831then 15832 15833$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h 15834 15835fi 15836 15837# Look for BSD style subsecond timestamps in struct stat 15838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 15839$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } 15840if ${ac_cv_stat_tv_nsec2+:} false; then : 15841 $as_echo_n "(cached) " >&6 15842else 15843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15844/* end confdefs.h. */ 15845#include <sys/stat.h> 15846int 15847main () 15848{ 15849 15850struct stat st; 15851st.st_mtimespec.tv_nsec = 1; 15852 15853 ; 15854 return 0; 15855} 15856_ACEOF 15857if ac_fn_c_try_compile "$LINENO"; then : 15858 ac_cv_stat_tv_nsec2=yes 15859else 15860 ac_cv_stat_tv_nsec2=no 15861fi 15862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15863fi 15864 15865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 15866$as_echo "$ac_cv_stat_tv_nsec2" >&6; } 15867if test "$ac_cv_stat_tv_nsec2" = yes 15868then 15869 15870$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h 15871 15872fi 15873 15874# first curses header check 15875ac_save_cppflags="$CPPFLAGS" 15876if test "$cross_compiling" = no; then 15877 CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" 15878fi 15879 15880for ac_header in curses.h ncurses.h 15881do : 15882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15883ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15884if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15885 cat >>confdefs.h <<_ACEOF 15886#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15887_ACEOF 15888 15889fi 15890 15891done 15892 15893 15894# On Solaris, term.h requires curses.h 15895for ac_header in term.h 15896do : 15897 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " 15898#ifdef HAVE_CURSES_H 15899#include <curses.h> 15900#endif 15901 15902" 15903if test "x$ac_cv_header_term_h" = xyes; then : 15904 cat >>confdefs.h <<_ACEOF 15905#define HAVE_TERM_H 1 15906_ACEOF 15907 15908fi 15909 15910done 15911 15912 15913# On HP/UX 11.0, mvwdelch is a block with a return statement 15914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 15915$as_echo_n "checking whether mvwdelch is an expression... " >&6; } 15916if ${ac_cv_mvwdelch_is_expression+:} false; then : 15917 $as_echo_n "(cached) " >&6 15918else 15919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15920/* end confdefs.h. */ 15921#include <curses.h> 15922int 15923main () 15924{ 15925 15926 int rtn; 15927 rtn = mvwdelch(0,0,0); 15928 15929 ; 15930 return 0; 15931} 15932_ACEOF 15933if ac_fn_c_try_compile "$LINENO"; then : 15934 ac_cv_mvwdelch_is_expression=yes 15935else 15936 ac_cv_mvwdelch_is_expression=no 15937fi 15938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15939fi 15940 15941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 15942$as_echo "$ac_cv_mvwdelch_is_expression" >&6; } 15943 15944if test "$ac_cv_mvwdelch_is_expression" = yes 15945then 15946 15947$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h 15948 15949fi 15950 15951# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque 15952# structs since version 5.7. If the macro is defined as zero before including 15953# [n]curses.h, ncurses will expose fields of the structs regardless of the 15954# configuration. 15955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 15956$as_echo_n "checking whether WINDOW has _flags... " >&6; } 15957if ${ac_cv_window_has_flags+:} false; then : 15958 $as_echo_n "(cached) " >&6 15959else 15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15961/* end confdefs.h. */ 15962 15963 #define NCURSES_OPAQUE 0 15964 #include <curses.h> 15965 15966int 15967main () 15968{ 15969 15970 WINDOW *w; 15971 w->_flags = 0; 15972 15973 ; 15974 return 0; 15975} 15976_ACEOF 15977if ac_fn_c_try_compile "$LINENO"; then : 15978 ac_cv_window_has_flags=yes 15979else 15980 ac_cv_window_has_flags=no 15981fi 15982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15983fi 15984 15985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 15986$as_echo "$ac_cv_window_has_flags" >&6; } 15987 15988 15989if test "$ac_cv_window_has_flags" = yes 15990then 15991 15992$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h 15993 15994fi 15995 15996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 15997$as_echo_n "checking for is_pad... " >&6; } 15998cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15999/* end confdefs.h. */ 16000#include <curses.h> 16001int 16002main () 16003{ 16004 16005#ifndef is_pad 16006void *x=is_pad 16007#endif 16008 16009 ; 16010 return 0; 16011} 16012_ACEOF 16013if ac_fn_c_try_compile "$LINENO"; then : 16014 16015$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h 16016 16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16018$as_echo "yes" >&6; } 16019else 16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16021$as_echo "no" >&6; } 16022 16023fi 16024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16025 16026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 16027$as_echo_n "checking for is_term_resized... " >&6; } 16028cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16029/* end confdefs.h. */ 16030#include <curses.h> 16031int 16032main () 16033{ 16034void *x=is_term_resized 16035 ; 16036 return 0; 16037} 16038_ACEOF 16039if ac_fn_c_try_compile "$LINENO"; then : 16040 16041$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h 16042 16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16044$as_echo "yes" >&6; } 16045else 16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16047$as_echo "no" >&6; } 16048 16049fi 16050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16051 16052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 16053$as_echo_n "checking for resize_term... " >&6; } 16054cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16055/* end confdefs.h. */ 16056#include <curses.h> 16057int 16058main () 16059{ 16060void *x=resize_term 16061 ; 16062 return 0; 16063} 16064_ACEOF 16065if ac_fn_c_try_compile "$LINENO"; then : 16066 16067$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h 16068 16069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16070$as_echo "yes" >&6; } 16071else 16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16073$as_echo "no" >&6; } 16074 16075fi 16076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16077 16078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 16079$as_echo_n "checking for resizeterm... " >&6; } 16080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16081/* end confdefs.h. */ 16082#include <curses.h> 16083int 16084main () 16085{ 16086void *x=resizeterm 16087 ; 16088 return 0; 16089} 16090_ACEOF 16091if ac_fn_c_try_compile "$LINENO"; then : 16092 16093$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h 16094 16095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16096$as_echo "yes" >&6; } 16097else 16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16099$as_echo "no" >&6; } 16100 16101fi 16102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16103 16104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 16105$as_echo_n "checking for immedok... " >&6; } 16106cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16107/* end confdefs.h. */ 16108#include <curses.h> 16109int 16110main () 16111{ 16112 16113#ifndef immedok 16114void *x=immedok 16115#endif 16116 16117 ; 16118 return 0; 16119} 16120_ACEOF 16121if ac_fn_c_try_compile "$LINENO"; then : 16122 16123$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h 16124 16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16126$as_echo "yes" >&6; } 16127else 16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16129$as_echo "no" >&6; } 16130 16131fi 16132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16133 16134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 16135$as_echo_n "checking for syncok... " >&6; } 16136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16137/* end confdefs.h. */ 16138#include <curses.h> 16139int 16140main () 16141{ 16142 16143#ifndef syncok 16144void *x=syncok 16145#endif 16146 16147 ; 16148 return 0; 16149} 16150_ACEOF 16151if ac_fn_c_try_compile "$LINENO"; then : 16152 16153$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h 16154 16155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16156$as_echo "yes" >&6; } 16157else 16158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16159$as_echo "no" >&6; } 16160 16161fi 16162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16163 16164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 16165$as_echo_n "checking for wchgat... " >&6; } 16166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16167/* end confdefs.h. */ 16168#include <curses.h> 16169int 16170main () 16171{ 16172 16173#ifndef wchgat 16174void *x=wchgat 16175#endif 16176 16177 ; 16178 return 0; 16179} 16180_ACEOF 16181if ac_fn_c_try_compile "$LINENO"; then : 16182 16183$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h 16184 16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16186$as_echo "yes" >&6; } 16187else 16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16189$as_echo "no" >&6; } 16190 16191fi 16192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16193 16194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 16195$as_echo_n "checking for filter... " >&6; } 16196cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16197/* end confdefs.h. */ 16198#include <curses.h> 16199int 16200main () 16201{ 16202 16203#ifndef filter 16204void *x=filter 16205#endif 16206 16207 ; 16208 return 0; 16209} 16210_ACEOF 16211if ac_fn_c_try_compile "$LINENO"; then : 16212 16213$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h 16214 16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16216$as_echo "yes" >&6; } 16217else 16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16219$as_echo "no" >&6; } 16220 16221fi 16222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16223 16224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 16225$as_echo_n "checking for has_key... " >&6; } 16226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16227/* end confdefs.h. */ 16228#include <curses.h> 16229int 16230main () 16231{ 16232 16233#ifndef has_key 16234void *x=has_key 16235#endif 16236 16237 ; 16238 return 0; 16239} 16240_ACEOF 16241if ac_fn_c_try_compile "$LINENO"; then : 16242 16243$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h 16244 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16246$as_echo "yes" >&6; } 16247else 16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16249$as_echo "no" >&6; } 16250 16251fi 16252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16253 16254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 16255$as_echo_n "checking for typeahead... " >&6; } 16256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16257/* end confdefs.h. */ 16258#include <curses.h> 16259int 16260main () 16261{ 16262 16263#ifndef typeahead 16264void *x=typeahead 16265#endif 16266 16267 ; 16268 return 0; 16269} 16270_ACEOF 16271if ac_fn_c_try_compile "$LINENO"; then : 16272 16273$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h 16274 16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16276$as_echo "yes" >&6; } 16277else 16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16279$as_echo "no" >&6; } 16280 16281fi 16282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16283 16284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 16285$as_echo_n "checking for use_env... " >&6; } 16286cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16287/* end confdefs.h. */ 16288#include <curses.h> 16289int 16290main () 16291{ 16292 16293#ifndef use_env 16294void *x=use_env 16295#endif 16296 16297 ; 16298 return 0; 16299} 16300_ACEOF 16301if ac_fn_c_try_compile "$LINENO"; then : 16302 16303$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h 16304 16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16306$as_echo "yes" >&6; } 16307else 16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16309$as_echo "no" >&6; } 16310 16311fi 16312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16313# last curses configure check 16314CPPFLAGS=$ac_save_cppflags 16315 16316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 16317$as_echo "$as_me: checking for device files" >&6;} 16318 16319if test "x$cross_compiling" = xyes; then 16320 if test "${ac_cv_file__dev_ptmx+set}" != set; then 16321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 16322$as_echo_n "checking for /dev/ptmx... " >&6; } 16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 16324$as_echo "not set" >&6; } 16325 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 16326 fi 16327 if test "${ac_cv_file__dev_ptc+set}" != set; then 16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 16329$as_echo_n "checking for /dev/ptc... " >&6; } 16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 16331$as_echo "not set" >&6; } 16332 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 16333 fi 16334fi 16335 16336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 16337$as_echo_n "checking for /dev/ptmx... " >&6; } 16338if ${ac_cv_file__dev_ptmx+:} false; then : 16339 $as_echo_n "(cached) " >&6 16340else 16341 test "$cross_compiling" = yes && 16342 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16343if test -r "/dev/ptmx"; then 16344 ac_cv_file__dev_ptmx=yes 16345else 16346 ac_cv_file__dev_ptmx=no 16347fi 16348fi 16349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 16350$as_echo "$ac_cv_file__dev_ptmx" >&6; } 16351if test "x$ac_cv_file__dev_ptmx" = xyes; then : 16352 16353fi 16354 16355if test "x$ac_cv_file__dev_ptmx" = xyes; then 16356 16357$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 16358 16359fi 16360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 16361$as_echo_n "checking for /dev/ptc... " >&6; } 16362if ${ac_cv_file__dev_ptc+:} false; then : 16363 $as_echo_n "(cached) " >&6 16364else 16365 test "$cross_compiling" = yes && 16366 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 16367if test -r "/dev/ptc"; then 16368 ac_cv_file__dev_ptc=yes 16369else 16370 ac_cv_file__dev_ptc=no 16371fi 16372fi 16373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 16374$as_echo "$ac_cv_file__dev_ptc" >&6; } 16375if test "x$ac_cv_file__dev_ptc" = xyes; then : 16376 16377fi 16378 16379if test "x$ac_cv_file__dev_ptc" = xyes; then 16380 16381$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 16382 16383fi 16384 16385if test $ac_sys_system = Darwin 16386then 16387 LIBS="$LIBS -framework CoreFoundation" 16388fi 16389 16390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 16391$as_echo_n "checking for %zd printf() format support... " >&6; } 16392if ${ac_cv_have_size_t_format+:} false; then : 16393 $as_echo_n "(cached) " >&6 16394else 16395 if test "$cross_compiling" = yes; then : 16396 ac_cv_have_size_t_format="cross -- assuming yes" 16397 16398else 16399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16400/* end confdefs.h. */ 16401 16402#include <stdio.h> 16403#include <stddef.h> 16404#include <string.h> 16405 16406#ifdef HAVE_SYS_TYPES_H 16407#include <sys/types.h> 16408#endif 16409 16410#ifdef HAVE_SSIZE_T 16411typedef ssize_t Py_ssize_t; 16412#elif SIZEOF_VOID_P == SIZEOF_LONG 16413typedef long Py_ssize_t; 16414#else 16415typedef int Py_ssize_t; 16416#endif 16417 16418int main() 16419{ 16420 char buffer[256]; 16421 16422 if(sprintf(buffer, "%zd", (size_t)123) < 0) 16423 return 1; 16424 16425 if (strcmp(buffer, "123")) 16426 return 1; 16427 16428 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) 16429 return 1; 16430 16431 if (strcmp(buffer, "-123")) 16432 return 1; 16433 16434 return 0; 16435} 16436 16437_ACEOF 16438if ac_fn_c_try_run "$LINENO"; then : 16439 ac_cv_have_size_t_format=yes 16440else 16441 ac_cv_have_size_t_format=no 16442fi 16443rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16444 conftest.$ac_objext conftest.beam conftest.$ac_ext 16445fi 16446 16447fi 16448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 16449$as_echo "$ac_cv_have_size_t_format" >&6; } 16450if test "$ac_cv_have_size_t_format" != no ; then 16451 16452$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h 16453 16454fi 16455 16456ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 16457#ifdef HAVE_SYS_TYPES_H 16458#include <sys/types.h> 16459#endif 16460#ifdef HAVE_SYS_SOCKET_H 16461#include <sys/socket.h> 16462#endif 16463 16464" 16465if test "x$ac_cv_type_socklen_t" = xyes; then : 16466 16467else 16468 16469$as_echo "#define socklen_t int" >>confdefs.h 16470 16471fi 16472 16473 16474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken mbstowcs" >&5 16475$as_echo_n "checking for broken mbstowcs... " >&6; } 16476if ${ac_cv_broken_mbstowcs+:} false; then : 16477 $as_echo_n "(cached) " >&6 16478else 16479 if test "$cross_compiling" = yes; then : 16480 ac_cv_broken_mbstowcs=no 16481else 16482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16483/* end confdefs.h. */ 16484 16485#include <stdio.h> 16486#include<stdlib.h> 16487int main() { 16488 size_t len = -1; 16489 const char *str = "text"; 16490 len = mbstowcs(NULL, str, 0); 16491 return (len != 4); 16492} 16493 16494_ACEOF 16495if ac_fn_c_try_run "$LINENO"; then : 16496 ac_cv_broken_mbstowcs=no 16497else 16498 ac_cv_broken_mbstowcs=yes 16499fi 16500rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16501 conftest.$ac_objext conftest.beam conftest.$ac_ext 16502fi 16503 16504fi 16505 16506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_mbstowcs" >&5 16507$as_echo "$ac_cv_broken_mbstowcs" >&6; } 16508if test "$ac_cv_broken_mbstowcs" = yes 16509then 16510 16511$as_echo "#define HAVE_BROKEN_MBSTOWCS 1" >>confdefs.h 16512 16513fi 16514 16515# Check for --with-computed-gotos 16516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 16517$as_echo_n "checking for --with-computed-gotos... " >&6; } 16518 16519# Check whether --with-computed-gotos was given. 16520if test "${with_computed_gotos+set}" = set; then : 16521 withval=$with_computed_gotos; 16522if test "$withval" = yes 16523then 16524 16525$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h 16526 16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16528$as_echo "yes" >&6; } 16529fi 16530if test "$withval" = no 16531then 16532 16533$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h 16534 16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16536$as_echo "no" >&6; } 16537fi 16538 16539else 16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 16541$as_echo "no value specified" >&6; } 16542fi 16543 16544 16545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 16546$as_echo_n "checking whether $CC supports computed gotos... " >&6; } 16547if ${ac_cv_computed_gotos+:} false; then : 16548 $as_echo_n "(cached) " >&6 16549else 16550 if test "$cross_compiling" = yes; then : 16551 if test "${with_computed_gotos+set}" = set; then 16552 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" 16553 else 16554 ac_cv_computed_gotos=no 16555 fi 16556else 16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16558/* end confdefs.h. */ 16559 16560int main(int argc, char **argv) 16561{ 16562 static void *targets[1] = { &&LABEL1 }; 16563 goto LABEL2; 16564LABEL1: 16565 return 0; 16566LABEL2: 16567 goto *targets[0]; 16568 return 1; 16569} 16570 16571_ACEOF 16572if ac_fn_c_try_run "$LINENO"; then : 16573 ac_cv_computed_gotos=yes 16574else 16575 ac_cv_computed_gotos=no 16576fi 16577rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16578 conftest.$ac_objext conftest.beam conftest.$ac_ext 16579fi 16580 16581fi 16582 16583{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 16584$as_echo "$ac_cv_computed_gotos" >&6; } 16585case "$ac_cv_computed_gotos" in yes*) 16586 16587$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h 16588 16589esac 16590 16591case $ac_sys_system in 16592AIX*) 16593 16594$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h 16595 ;; 16596esac 16597 16598 16599 16600 16601for h in `(cd $srcdir;echo Python/thread_*.h)` 16602do 16603 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" 16604done 16605 16606 16607SRCDIRS="Parser Objects Python Modules Modules/_io Programs" 16608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 16609$as_echo_n "checking for build directories... " >&6; } 16610for dir in $SRCDIRS; do 16611 if test ! -d $dir; then 16612 mkdir $dir 16613 fi 16614done 16615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 16616$as_echo "done" >&6; } 16617 16618# Availability of -O2: 16619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -O2" >&5 16620$as_echo_n "checking for -O2... " >&6; } 16621saved_cflags="$CFLAGS" 16622CFLAGS="-O2" 16623cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16624/* end confdefs.h. */ 16625 16626int 16627main () 16628{ 16629 16630 16631 ; 16632 return 0; 16633} 16634_ACEOF 16635if ac_fn_c_try_compile "$LINENO"; then : 16636 have_O2=yes 16637else 16638 have_O2=no 16639fi 16640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 16641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_O2" >&5 16642$as_echo "$have_O2" >&6; } 16643CFLAGS="$saved_cflags" 16644 16645# _FORTIFY_SOURCE wrappers for memmove and bcopy are incorrect: 16646# http://sourceware.org/ml/libc-alpha/2010-12/msg00009.html 16647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glibc _FORTIFY_SOURCE/memmove bug" >&5 16648$as_echo_n "checking for glibc _FORTIFY_SOURCE/memmove bug... " >&6; } 16649saved_cflags="$CFLAGS" 16650CFLAGS="-O2 -D_FORTIFY_SOURCE=2" 16651if test "$have_O2" = no; then 16652 CFLAGS="" 16653fi 16654if test "$cross_compiling" = yes; then : 16655 have_glibc_memmove_bug=undefined 16656else 16657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16658/* end confdefs.h. */ 16659 16660#include <stdio.h> 16661#include <stdlib.h> 16662#include <string.h> 16663void foo(void *p, void *q) { memmove(p, q, 19); } 16664int main() { 16665 char a[32] = "123456789000000000"; 16666 foo(&a[9], a); 16667 if (strcmp(a, "123456789123456789000000000") != 0) 16668 return 1; 16669 foo(a, &a[9]); 16670 if (strcmp(a, "123456789000000000") != 0) 16671 return 1; 16672 return 0; 16673} 16674 16675_ACEOF 16676if ac_fn_c_try_run "$LINENO"; then : 16677 have_glibc_memmove_bug=no 16678else 16679 have_glibc_memmove_bug=yes 16680fi 16681rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16682 conftest.$ac_objext conftest.beam conftest.$ac_ext 16683fi 16684 16685CFLAGS="$saved_cflags" 16686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_glibc_memmove_bug" >&5 16687$as_echo "$have_glibc_memmove_bug" >&6; } 16688if test "$have_glibc_memmove_bug" = yes; then 16689 16690$as_echo "#define HAVE_GLIBC_MEMMOVE_BUG 1" >>confdefs.h 16691 16692fi 16693 16694if test "$have_gcc_asm_for_x87" = yes; then 16695 # Some versions of gcc miscompile inline asm: 16696 # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491 16697 # http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html 16698 case $CC in 16699 *gcc*) 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5 16701$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; } 16702 saved_cflags="$CFLAGS" 16703 CFLAGS="-O2" 16704 if test "$cross_compiling" = yes; then : 16705 have_ipa_pure_const_bug=undefined 16706else 16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16708/* end confdefs.h. */ 16709 16710 __attribute__((noinline)) int 16711 foo(int *p) { 16712 int r; 16713 asm ( "movl \$6, (%1)\n\t" 16714 "xorl %0, %0\n\t" 16715 : "=r" (r) : "r" (p) : "memory" 16716 ); 16717 return r; 16718 } 16719 int main() { 16720 int p = 8; 16721 if ((foo(&p) ? : p) != 6) 16722 return 1; 16723 return 0; 16724 } 16725 16726_ACEOF 16727if ac_fn_c_try_run "$LINENO"; then : 16728 have_ipa_pure_const_bug=no 16729else 16730 have_ipa_pure_const_bug=yes 16731fi 16732rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16733 conftest.$ac_objext conftest.beam conftest.$ac_ext 16734fi 16735 16736 CFLAGS="$saved_cflags" 16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ipa_pure_const_bug" >&5 16738$as_echo "$have_ipa_pure_const_bug" >&6; } 16739 if test "$have_ipa_pure_const_bug" = yes; then 16740 16741$as_echo "#define HAVE_IPA_PURE_CONST_BUG 1" >>confdefs.h 16742 16743 fi 16744 ;; 16745 esac 16746fi 16747 16748# Check for stdatomic.h 16749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdatomic.h" >&5 16750$as_echo_n "checking for stdatomic.h... " >&6; } 16751cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16752/* end confdefs.h. */ 16753 16754 16755 #include <stdatomic.h> 16756 atomic_int int_var; 16757 atomic_uintptr_t uintptr_var; 16758 int main() { 16759 atomic_store_explicit(&int_var, 5, memory_order_relaxed); 16760 atomic_store_explicit(&uintptr_var, 0, memory_order_relaxed); 16761 int loaded_value = atomic_load_explicit(&int_var, memory_order_seq_cst); 16762 return 0; 16763 } 16764 16765 16766_ACEOF 16767if ac_fn_c_try_link "$LINENO"; then : 16768 have_stdatomic_h=yes 16769else 16770 have_stdatomic_h=no 16771fi 16772rm -f core conftest.err conftest.$ac_objext \ 16773 conftest$ac_exeext conftest.$ac_ext 16774 16775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_stdatomic_h" >&5 16776$as_echo "$have_stdatomic_h" >&6; } 16777 16778if test "$have_stdatomic_h" = yes; then 16779 16780$as_echo "#define HAVE_STD_ATOMIC 1" >>confdefs.h 16781 16782fi 16783 16784# Check for GCC >= 4.7 __atomic builtins 16785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC >= 4.7 __atomic builtins" >&5 16786$as_echo_n "checking for GCC >= 4.7 __atomic builtins... " >&6; } 16787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16788/* end confdefs.h. */ 16789 16790 16791 volatile int val = 1; 16792 int main() { 16793 __atomic_load_n(&val, __ATOMIC_SEQ_CST); 16794 return 0; 16795 } 16796 16797 16798_ACEOF 16799if ac_fn_c_try_link "$LINENO"; then : 16800 have_builtin_atomic=yes 16801else 16802 have_builtin_atomic=no 16803fi 16804rm -f core conftest.err conftest.$ac_objext \ 16805 conftest$ac_exeext conftest.$ac_ext 16806 16807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_builtin_atomic" >&5 16808$as_echo "$have_builtin_atomic" >&6; } 16809 16810if test "$have_builtin_atomic" = yes; then 16811 16812$as_echo "#define HAVE_BUILTIN_ATOMIC 1" >>confdefs.h 16813 16814fi 16815 16816# ensurepip option 16817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 16818$as_echo_n "checking for ensurepip... " >&6; } 16819 16820# Check whether --with-ensurepip was given. 16821if test "${with_ensurepip+set}" = set; then : 16822 withval=$with_ensurepip; 16823else 16824 with_ensurepip=upgrade 16825fi 16826 16827case $with_ensurepip in #( 16828 yes|upgrade) : 16829 ENSUREPIP=upgrade ;; #( 16830 install) : 16831 ENSUREPIP=install ;; #( 16832 no) : 16833 ENSUREPIP=no ;; #( 16834 *) : 16835 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; 16836esac 16837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 16838$as_echo "$ENSUREPIP" >&6; } 16839 16840 16841# check if the dirent structure of a d_type field and DT_UNKNOWN is defined 16842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the dirent structure of a d_type field" >&5 16843$as_echo_n "checking if the dirent structure of a d_type field... " >&6; } 16844cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16845/* end confdefs.h. */ 16846 16847 16848 #include <dirent.h> 16849 16850 int main() { 16851 struct dirent entry; 16852 return entry.d_type == DT_UNKNOWN; 16853 } 16854 16855 16856_ACEOF 16857if ac_fn_c_try_link "$LINENO"; then : 16858 have_dirent_d_type=yes 16859else 16860 have_dirent_d_type=no 16861fi 16862rm -f core conftest.err conftest.$ac_objext \ 16863 conftest$ac_exeext conftest.$ac_ext 16864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_dirent_d_type" >&5 16865$as_echo "$have_dirent_d_type" >&6; } 16866 16867if test "$have_dirent_d_type" = yes; then 16868 16869$as_echo "#define HAVE_DIRENT_D_TYPE 1" >>confdefs.h 16870 16871fi 16872 16873# check if the Linux getrandom() syscall is available 16874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the Linux getrandom() syscall" >&5 16875$as_echo_n "checking for the Linux getrandom() syscall... " >&6; } 16876cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16877/* end confdefs.h. */ 16878 16879 16880 #include <unistd.h> 16881 #include <sys/syscall.h> 16882 #include <linux/random.h> 16883 16884 int main() { 16885 char buffer[1]; 16886 const size_t buflen = sizeof(buffer); 16887 const int flags = GRND_NONBLOCK; 16888 /* ignore the result, Python checks for ENOSYS and EAGAIN at runtime */ 16889 (void)syscall(SYS_getrandom, buffer, buflen, flags); 16890 return 0; 16891 } 16892 16893 16894_ACEOF 16895if ac_fn_c_try_link "$LINENO"; then : 16896 have_getrandom_syscall=yes 16897else 16898 have_getrandom_syscall=no 16899fi 16900rm -f core conftest.err conftest.$ac_objext \ 16901 conftest$ac_exeext conftest.$ac_ext 16902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom_syscall" >&5 16903$as_echo "$have_getrandom_syscall" >&6; } 16904 16905if test "$have_getrandom_syscall" = yes; then 16906 16907$as_echo "#define HAVE_GETRANDOM_SYSCALL 1" >>confdefs.h 16908 16909fi 16910 16911# check if the getrandom() function is available 16912# the test was written for the Solaris function of <sys/random.h> 16913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the getrandom() function" >&5 16914$as_echo_n "checking for the getrandom() function... " >&6; } 16915cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16916/* end confdefs.h. */ 16917 16918 16919 #include <sys/random.h> 16920 16921 int main() { 16922 char buffer[1]; 16923 const size_t buflen = sizeof(buffer); 16924 const int flags = 0; 16925 /* ignore the result, Python checks for ENOSYS at runtime */ 16926 (void)getrandom(buffer, buflen, flags); 16927 return 0; 16928 } 16929 16930 16931_ACEOF 16932if ac_fn_c_try_link "$LINENO"; then : 16933 have_getrandom=yes 16934else 16935 have_getrandom=no 16936fi 16937rm -f core conftest.err conftest.$ac_objext \ 16938 conftest$ac_exeext conftest.$ac_ext 16939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getrandom" >&5 16940$as_echo "$have_getrandom" >&6; } 16941 16942if test "$have_getrandom" = yes; then 16943 16944$as_echo "#define HAVE_GETRANDOM 1" >>confdefs.h 16945 16946fi 16947 16948# checks for POSIX shared memory, used by Modules/_multiprocessing/posixshmem.c 16949# shm_* may only be available if linking against librt 16950save_LIBS="$LIBS" 16951save_includes_default="$ac_includes_default" 16952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5 16953$as_echo_n "checking for library containing shm_open... " >&6; } 16954if ${ac_cv_search_shm_open+:} false; then : 16955 $as_echo_n "(cached) " >&6 16956else 16957 ac_func_search_save_LIBS=$LIBS 16958cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16959/* end confdefs.h. */ 16960 16961/* Override any GCC internal prototype to avoid an error. 16962 Use char because int might match the return type of a GCC 16963 builtin and then its argument prototype would still apply. */ 16964#ifdef __cplusplus 16965extern "C" 16966#endif 16967char shm_open (); 16968int 16969main () 16970{ 16971return shm_open (); 16972 ; 16973 return 0; 16974} 16975_ACEOF 16976for ac_lib in '' rt; do 16977 if test -z "$ac_lib"; then 16978 ac_res="none required" 16979 else 16980 ac_res=-l$ac_lib 16981 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 16982 fi 16983 if ac_fn_c_try_link "$LINENO"; then : 16984 ac_cv_search_shm_open=$ac_res 16985fi 16986rm -f core conftest.err conftest.$ac_objext \ 16987 conftest$ac_exeext 16988 if ${ac_cv_search_shm_open+:} false; then : 16989 break 16990fi 16991done 16992if ${ac_cv_search_shm_open+:} false; then : 16993 16994else 16995 ac_cv_search_shm_open=no 16996fi 16997rm conftest.$ac_ext 16998LIBS=$ac_func_search_save_LIBS 16999fi 17000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5 17001$as_echo "$ac_cv_search_shm_open" >&6; } 17002ac_res=$ac_cv_search_shm_open 17003if test "$ac_res" != no; then : 17004 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17005 17006fi 17007 17008if test "$ac_cv_search_shm_open" = "-lrt"; then 17009 17010$as_echo "#define SHM_NEEDS_LIBRT 1" >>confdefs.h 17011 17012fi 17013for ac_header in sys/mman.h 17014do : 17015 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" 17016if test "x$ac_cv_header_sys_mman_h" = xyes; then : 17017 cat >>confdefs.h <<_ACEOF 17018#define HAVE_SYS_MMAN_H 1 17019_ACEOF 17020 17021fi 17022 17023done 17024 17025# temporarily override ac_includes_default for AC_CHECK_FUNCS below 17026ac_includes_default="\ 17027${ac_includes_default} 17028#ifndef __cplusplus 17029# ifdef HAVE_SYS_MMAN_H 17030# include <sys/mman.h> 17031# endif 17032#endif 17033" 17034for ac_func in shm_open shm_unlink 17035do : 17036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17037ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17038if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17039 cat >>confdefs.h <<_ACEOF 17040#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17041_ACEOF 17042 17043fi 17044done 17045 17046# we don't want to link with librt always, restore LIBS 17047LIBS="$save_LIBS" 17048ac_includes_default="$save_includes_default" 17049 17050# Check for usable OpenSSL 17051 17052 found=false 17053 17054# Check whether --with-openssl was given. 17055if test "${with_openssl+set}" = set; then : 17056 withval=$with_openssl; 17057 case "$withval" in 17058 "" | y | ye | yes | n | no) 17059 as_fn_error $? "Invalid --with-openssl value" "$LINENO" 5 17060 ;; 17061 *) ssldirs="$withval" 17062 ;; 17063 esac 17064 17065else 17066 17067 # if pkg-config is installed and openssl has installed a .pc file, 17068 # then use that information and don't search ssldirs 17069 if test -n "$ac_tool_prefix"; then 17070 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17071set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17073$as_echo_n "checking for $ac_word... " >&6; } 17074if ${ac_cv_prog_PKG_CONFIG+:} false; then : 17075 $as_echo_n "(cached) " >&6 17076else 17077 if test -n "$PKG_CONFIG"; then 17078 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test. 17079else 17080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17081for as_dir in $PATH 17082do 17083 IFS=$as_save_IFS 17084 test -z "$as_dir" && as_dir=. 17085 for ac_exec_ext in '' $ac_executable_extensions; do 17086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17087 ac_cv_prog_PKG_CONFIG="${ac_tool_prefix}pkg-config" 17088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17089 break 2 17090 fi 17091done 17092 done 17093IFS=$as_save_IFS 17094 17095fi 17096fi 17097PKG_CONFIG=$ac_cv_prog_PKG_CONFIG 17098if test -n "$PKG_CONFIG"; then 17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17100$as_echo "$PKG_CONFIG" >&6; } 17101else 17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17103$as_echo "no" >&6; } 17104fi 17105 17106 17107fi 17108if test -z "$ac_cv_prog_PKG_CONFIG"; then 17109 ac_ct_PKG_CONFIG=$PKG_CONFIG 17110 # Extract the first word of "pkg-config", so it can be a program name with args. 17111set dummy pkg-config; ac_word=$2 17112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17113$as_echo_n "checking for $ac_word... " >&6; } 17114if ${ac_cv_prog_ac_ct_PKG_CONFIG+:} false; then : 17115 $as_echo_n "(cached) " >&6 17116else 17117 if test -n "$ac_ct_PKG_CONFIG"; then 17118 ac_cv_prog_ac_ct_PKG_CONFIG="$ac_ct_PKG_CONFIG" # Let the user override the test. 17119else 17120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17121for as_dir in $PATH 17122do 17123 IFS=$as_save_IFS 17124 test -z "$as_dir" && as_dir=. 17125 for ac_exec_ext in '' $ac_executable_extensions; do 17126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17127 ac_cv_prog_ac_ct_PKG_CONFIG="pkg-config" 17128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17129 break 2 17130 fi 17131done 17132 done 17133IFS=$as_save_IFS 17134 17135fi 17136fi 17137ac_ct_PKG_CONFIG=$ac_cv_prog_ac_ct_PKG_CONFIG 17138if test -n "$ac_ct_PKG_CONFIG"; then 17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PKG_CONFIG" >&5 17140$as_echo "$ac_ct_PKG_CONFIG" >&6; } 17141else 17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17143$as_echo "no" >&6; } 17144fi 17145 17146 if test "x$ac_ct_PKG_CONFIG" = x; then 17147 PKG_CONFIG="" 17148 else 17149 case $cross_compiling:$ac_tool_warned in 17150yes:) 17151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17153ac_tool_warned=yes ;; 17154esac 17155 PKG_CONFIG=$ac_ct_PKG_CONFIG 17156 fi 17157else 17158 PKG_CONFIG="$ac_cv_prog_PKG_CONFIG" 17159fi 17160 17161 if test x"$PKG_CONFIG" != x""; then 17162 OPENSSL_LDFLAGS=`$PKG_CONFIG openssl --libs-only-L 2>/dev/null` 17163 if test $? = 0; then 17164 OPENSSL_LIBS=`$PKG_CONFIG openssl --libs-only-l 2>/dev/null` 17165 OPENSSL_INCLUDES=`$PKG_CONFIG openssl --cflags-only-I 2>/dev/null` 17166 found=true 17167 fi 17168 fi 17169 17170 # no such luck; use some default ssldirs 17171 if ! $found; then 17172 ssldirs="/usr/local/ssl /usr/lib/ssl /usr/ssl /usr/pkg /usr/local /usr" 17173 fi 17174 17175 17176fi 17177 17178 17179 17180 # note that we #include <openssl/foo.h>, so the OpenSSL headers have to be in 17181 # an 'openssl' subdirectory 17182 17183 if ! $found; then 17184 OPENSSL_INCLUDES= 17185 for ssldir in $ssldirs; do 17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl/ssl.h in $ssldir" >&5 17187$as_echo_n "checking for openssl/ssl.h in $ssldir... " >&6; } 17188 if test -f "$ssldir/include/openssl/ssl.h"; then 17189 OPENSSL_INCLUDES="-I$ssldir/include" 17190 OPENSSL_LDFLAGS="-L$ssldir/lib" 17191 OPENSSL_LIBS="-lssl -lcrypto" 17192 found=true 17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17194$as_echo "yes" >&6; } 17195 break 17196 else 17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17198$as_echo "no" >&6; } 17199 fi 17200 done 17201 17202 # if the file wasn't found, well, go ahead and try the link anyway -- maybe 17203 # it will just work! 17204 fi 17205 17206 # try the preprocessor and linker with our new flags, 17207 # being careful not to pollute the global LIBS, LDFLAGS, and CPPFLAGS 17208 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiling and linking against OpenSSL works" >&5 17210$as_echo_n "checking whether compiling and linking against OpenSSL works... " >&6; } 17211 echo "Trying link with OPENSSL_LDFLAGS=$OPENSSL_LDFLAGS;" \ 17212 "OPENSSL_LIBS=$OPENSSL_LIBS; OPENSSL_INCLUDES=$OPENSSL_INCLUDES" >&5 17213 17214 save_LIBS="$LIBS" 17215 save_LDFLAGS="$LDFLAGS" 17216 save_CPPFLAGS="$CPPFLAGS" 17217 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 17218 LIBS="$OPENSSL_LIBS $LIBS" 17219 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 17220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17221/* end confdefs.h. */ 17222#include <openssl/ssl.h> 17223int 17224main () 17225{ 17226SSL_new(NULL) 17227 ; 17228 return 0; 17229} 17230_ACEOF 17231if ac_fn_c_try_link "$LINENO"; then : 17232 17233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17234$as_echo "yes" >&6; } 17235 have_openssl=yes 17236 17237else 17238 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17240$as_echo "no" >&6; } 17241 have_openssl=no 17242 17243fi 17244rm -f core conftest.err conftest.$ac_objext \ 17245 conftest$ac_exeext conftest.$ac_ext 17246 CPPFLAGS="$save_CPPFLAGS" 17247 LDFLAGS="$save_LDFLAGS" 17248 LIBS="$save_LIBS" 17249 17250 17251 17252 17253 17254 17255if test "$have_openssl" = yes; then 17256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host in libssl" >&5 17257$as_echo_n "checking for X509_VERIFY_PARAM_set1_host in libssl... " >&6; } 17258 17259 save_LIBS="$LIBS" 17260 save_LDFLAGS="$LDFLAGS" 17261 save_CPPFLAGS="$CPPFLAGS" 17262 LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" 17263 LIBS="$OPENSSL_LIBS $LIBS" 17264 CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS" 17265 17266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17267/* end confdefs.h. */ 17268 17269 #include <openssl/x509_vfy.h> 17270 17271int 17272main () 17273{ 17274 17275 X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new(); 17276 X509_VERIFY_PARAM_set1_host(p, "localhost", 0); 17277 X509_VERIFY_PARAM_set1_ip_asc(p, "127.0.0.1"); 17278 X509_VERIFY_PARAM_set_hostflags(p, 0); 17279 17280 ; 17281 return 0; 17282} 17283 17284_ACEOF 17285if ac_fn_c_try_link "$LINENO"; then : 17286 17287 ac_cv_has_x509_verify_param_set1_host=yes 17288 17289else 17290 17291 ac_cv_has_x509_verify_param_set1_host=no 17292 17293fi 17294rm -f core conftest.err conftest.$ac_objext \ 17295 conftest$ac_exeext conftest.$ac_ext 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_x509_verify_param_set1_host" >&5 17297$as_echo "$ac_cv_has_x509_verify_param_set1_host" >&6; } 17298 if test "$ac_cv_has_x509_verify_param_set1_host" = "yes"; then 17299 17300$as_echo "#define HAVE_X509_VERIFY_PARAM_SET1_HOST 1" >>confdefs.h 17301 17302 fi 17303 17304 CPPFLAGS="$save_CPPFLAGS" 17305 LDFLAGS="$save_LDFLAGS" 17306 LIBS="$save_LIBS" 17307fi 17308 17309# ssl module default cipher suite string 17310 17311 17312 17313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-ssl-default-suites" >&5 17314$as_echo_n "checking for --with-ssl-default-suites... " >&6; } 17315 17316# Check whether --with-ssl-default-suites was given. 17317if test "${with_ssl_default_suites+set}" = set; then : 17318 withval=$with_ssl_default_suites; 17319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 17320$as_echo "$withval" >&6; } 17321case "$withval" in 17322 python) 17323 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h 17324 17325 ;; 17326 openssl) 17327 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 2" >>confdefs.h 17328 17329 ;; 17330 *) 17331 $as_echo "#define PY_SSL_DEFAULT_CIPHERS 0" >>confdefs.h 17332 17333 cat >>confdefs.h <<_ACEOF 17334#define PY_SSL_DEFAULT_CIPHER_STRING "$withval" 17335_ACEOF 17336 17337 ;; 17338esac 17339 17340else 17341 17342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: python" >&5 17343$as_echo "python" >&6; } 17344$as_echo "#define PY_SSL_DEFAULT_CIPHERS 1" >>confdefs.h 17345 17346 17347fi 17348 17349 17350 17351# generate output files 17352ac_config_files="$ac_config_files Makefile.pre Misc/python.pc Misc/python-embed.pc Misc/python-config.sh" 17353 17354ac_config_files="$ac_config_files Modules/ld_so_aix" 17355 17356cat >confcache <<\_ACEOF 17357# This file is a shell script that caches the results of configure 17358# tests run on this system so they can be shared between configure 17359# scripts and configure runs, see configure's option --config-cache. 17360# It is not useful on other systems. If it contains results you don't 17361# want to keep, you may remove or edit it. 17362# 17363# config.status only pays attention to the cache file if you give it 17364# the --recheck option to rerun configure. 17365# 17366# `ac_cv_env_foo' variables (set or unset) will be overridden when 17367# loading this file, other *unset* `ac_cv_foo' will be assigned the 17368# following values. 17369 17370_ACEOF 17371 17372# The following way of writing the cache mishandles newlines in values, 17373# but we know of no workaround that is simple, portable, and efficient. 17374# So, we kill variables containing newlines. 17375# Ultrix sh set writes to stderr and can't be redirected directly, 17376# and sets the high bit in the cache file unless we assign to the vars. 17377( 17378 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17379 eval ac_val=\$$ac_var 17380 case $ac_val in #( 17381 *${as_nl}*) 17382 case $ac_var in #( 17383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17384$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17385 esac 17386 case $ac_var in #( 17387 _ | IFS | as_nl) ;; #( 17388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17389 *) { eval $ac_var=; unset $ac_var;} ;; 17390 esac ;; 17391 esac 17392 done 17393 17394 (set) 2>&1 | 17395 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17396 *${as_nl}ac_space=\ *) 17397 # `set' does not quote correctly, so add quotes: double-quote 17398 # substitution turns \\\\ into \\, and sed turns \\ into \. 17399 sed -n \ 17400 "s/'/'\\\\''/g; 17401 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 17402 ;; #( 17403 *) 17404 # `set' quotes correctly as required by POSIX, so do not add quotes. 17405 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 17406 ;; 17407 esac | 17408 sort 17409) | 17410 sed ' 17411 /^ac_cv_env_/b end 17412 t clear 17413 :clear 17414 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 17415 t end 17416 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 17417 :end' >>confcache 17418if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 17419 if test -w "$cache_file"; then 17420 if test "x$cache_file" != "x/dev/null"; then 17421 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 17422$as_echo "$as_me: updating cache $cache_file" >&6;} 17423 if test ! -f "$cache_file" || test -h "$cache_file"; then 17424 cat confcache >"$cache_file" 17425 else 17426 case $cache_file in #( 17427 */* | ?:*) 17428 mv -f confcache "$cache_file"$$ && 17429 mv -f "$cache_file"$$ "$cache_file" ;; #( 17430 *) 17431 mv -f confcache "$cache_file" ;; 17432 esac 17433 fi 17434 fi 17435 else 17436 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 17437$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 17438 fi 17439fi 17440rm -f confcache 17441 17442test "x$prefix" = xNONE && prefix=$ac_default_prefix 17443# Let make expand exec_prefix. 17444test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17445 17446DEFS=-DHAVE_CONFIG_H 17447 17448ac_libobjs= 17449ac_ltlibobjs= 17450U= 17451for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 17452 # 1. Remove the extension, and $U if already installed. 17453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 17454 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 17455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 17456 # will be set to the directory where LIBOBJS objects are built. 17457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 17458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 17459done 17460LIBOBJS=$ac_libobjs 17461 17462LTLIBOBJS=$ac_ltlibobjs 17463 17464 17465 17466 17467: "${CONFIG_STATUS=./config.status}" 17468ac_write_fail=0 17469ac_clean_files_save=$ac_clean_files 17470ac_clean_files="$ac_clean_files $CONFIG_STATUS" 17471{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 17472$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 17473as_write_fail=0 17474cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 17475#! $SHELL 17476# Generated by $as_me. 17477# Run this file to recreate the current configuration. 17478# Compiler output produced by configure, useful for debugging 17479# configure, is in config.log if it exists. 17480 17481debug=false 17482ac_cs_recheck=false 17483ac_cs_silent=false 17484 17485SHELL=\${CONFIG_SHELL-$SHELL} 17486export SHELL 17487_ASEOF 17488cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 17489## -------------------- ## 17490## M4sh Initialization. ## 17491## -------------------- ## 17492 17493# Be more Bourne compatible 17494DUALCASE=1; export DUALCASE # for MKS sh 17495if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 17496 emulate sh 17497 NULLCMD=: 17498 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 17499 # is contrary to our usage. Disable this feature. 17500 alias -g '${1+"$@"}'='"$@"' 17501 setopt NO_GLOB_SUBST 17502else 17503 case `(set -o) 2>/dev/null` in #( 17504 *posix*) : 17505 set -o posix ;; #( 17506 *) : 17507 ;; 17508esac 17509fi 17510 17511 17512as_nl=' 17513' 17514export as_nl 17515# Printing a long string crashes Solaris 7 /usr/bin/printf. 17516as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 17517as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 17518as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 17519# Prefer a ksh shell builtin over an external printf program on Solaris, 17520# but without wasting forks for bash or zsh. 17521if test -z "$BASH_VERSION$ZSH_VERSION" \ 17522 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 17523 as_echo='print -r --' 17524 as_echo_n='print -rn --' 17525elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 17526 as_echo='printf %s\n' 17527 as_echo_n='printf %s' 17528else 17529 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 17530 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 17531 as_echo_n='/usr/ucb/echo -n' 17532 else 17533 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 17534 as_echo_n_body='eval 17535 arg=$1; 17536 case $arg in #( 17537 *"$as_nl"*) 17538 expr "X$arg" : "X\\(.*\\)$as_nl"; 17539 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 17540 esac; 17541 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 17542 ' 17543 export as_echo_n_body 17544 as_echo_n='sh -c $as_echo_n_body as_echo' 17545 fi 17546 export as_echo_body 17547 as_echo='sh -c $as_echo_body as_echo' 17548fi 17549 17550# The user is always right. 17551if test "${PATH_SEPARATOR+set}" != set; then 17552 PATH_SEPARATOR=: 17553 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 17554 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 17555 PATH_SEPARATOR=';' 17556 } 17557fi 17558 17559 17560# IFS 17561# We need space, tab and new line, in precisely that order. Quoting is 17562# there to prevent editors from complaining about space-tab. 17563# (If _AS_PATH_WALK were called with IFS unset, it would disable word 17564# splitting by setting IFS to empty value.) 17565IFS=" "" $as_nl" 17566 17567# Find who we are. Look in the path if we contain no directory separator. 17568as_myself= 17569case $0 in #(( 17570 *[\\/]* ) as_myself=$0 ;; 17571 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17572for as_dir in $PATH 17573do 17574 IFS=$as_save_IFS 17575 test -z "$as_dir" && as_dir=. 17576 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 17577 done 17578IFS=$as_save_IFS 17579 17580 ;; 17581esac 17582# We did not find ourselves, most probably we were run as `sh COMMAND' 17583# in which case we are not to be found in the path. 17584if test "x$as_myself" = x; then 17585 as_myself=$0 17586fi 17587if test ! -f "$as_myself"; then 17588 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 17589 exit 1 17590fi 17591 17592# Unset variables that we do not need and which cause bugs (e.g. in 17593# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 17594# suppresses any "Segmentation fault" message there. '((' could 17595# trigger a bug in pdksh 5.2.14. 17596for as_var in BASH_ENV ENV MAIL MAILPATH 17597do eval test x\${$as_var+set} = xset \ 17598 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 17599done 17600PS1='$ ' 17601PS2='> ' 17602PS4='+ ' 17603 17604# NLS nuisances. 17605LC_ALL=C 17606export LC_ALL 17607LANGUAGE=C 17608export LANGUAGE 17609 17610# CDPATH. 17611(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 17612 17613 17614# as_fn_error STATUS ERROR [LINENO LOG_FD] 17615# ---------------------------------------- 17616# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 17617# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 17618# script with STATUS, using 1 if that was 0. 17619as_fn_error () 17620{ 17621 as_status=$1; test $as_status -eq 0 && as_status=1 17622 if test "$4"; then 17623 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 17624 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 17625 fi 17626 $as_echo "$as_me: error: $2" >&2 17627 as_fn_exit $as_status 17628} # as_fn_error 17629 17630 17631# as_fn_set_status STATUS 17632# ----------------------- 17633# Set $? to STATUS, without forking. 17634as_fn_set_status () 17635{ 17636 return $1 17637} # as_fn_set_status 17638 17639# as_fn_exit STATUS 17640# ----------------- 17641# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 17642as_fn_exit () 17643{ 17644 set +e 17645 as_fn_set_status $1 17646 exit $1 17647} # as_fn_exit 17648 17649# as_fn_unset VAR 17650# --------------- 17651# Portably unset VAR. 17652as_fn_unset () 17653{ 17654 { eval $1=; unset $1;} 17655} 17656as_unset=as_fn_unset 17657# as_fn_append VAR VALUE 17658# ---------------------- 17659# Append the text in VALUE to the end of the definition contained in VAR. Take 17660# advantage of any shell optimizations that allow amortized linear growth over 17661# repeated appends, instead of the typical quadratic growth present in naive 17662# implementations. 17663if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 17664 eval 'as_fn_append () 17665 { 17666 eval $1+=\$2 17667 }' 17668else 17669 as_fn_append () 17670 { 17671 eval $1=\$$1\$2 17672 } 17673fi # as_fn_append 17674 17675# as_fn_arith ARG... 17676# ------------------ 17677# Perform arithmetic evaluation on the ARGs, and store the result in the 17678# global $as_val. Take advantage of shells that can avoid forks. The arguments 17679# must be portable across $(()) and expr. 17680if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 17681 eval 'as_fn_arith () 17682 { 17683 as_val=$(( $* )) 17684 }' 17685else 17686 as_fn_arith () 17687 { 17688 as_val=`expr "$@" || test $? -eq 1` 17689 } 17690fi # as_fn_arith 17691 17692 17693if expr a : '\(a\)' >/dev/null 2>&1 && 17694 test "X`expr 00001 : '.*\(...\)'`" = X001; then 17695 as_expr=expr 17696else 17697 as_expr=false 17698fi 17699 17700if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 17701 as_basename=basename 17702else 17703 as_basename=false 17704fi 17705 17706if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 17707 as_dirname=dirname 17708else 17709 as_dirname=false 17710fi 17711 17712as_me=`$as_basename -- "$0" || 17713$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 17714 X"$0" : 'X\(//\)$' \| \ 17715 X"$0" : 'X\(/\)' \| . 2>/dev/null || 17716$as_echo X/"$0" | 17717 sed '/^.*\/\([^/][^/]*\)\/*$/{ 17718 s//\1/ 17719 q 17720 } 17721 /^X\/\(\/\/\)$/{ 17722 s//\1/ 17723 q 17724 } 17725 /^X\/\(\/\).*/{ 17726 s//\1/ 17727 q 17728 } 17729 s/.*/./; q'` 17730 17731# Avoid depending upon Character Ranges. 17732as_cr_letters='abcdefghijklmnopqrstuvwxyz' 17733as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 17734as_cr_Letters=$as_cr_letters$as_cr_LETTERS 17735as_cr_digits='0123456789' 17736as_cr_alnum=$as_cr_Letters$as_cr_digits 17737 17738ECHO_C= ECHO_N= ECHO_T= 17739case `echo -n x` in #((((( 17740-n*) 17741 case `echo 'xy\c'` in 17742 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 17743 xy) ECHO_C='\c';; 17744 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 17745 ECHO_T=' ';; 17746 esac;; 17747*) 17748 ECHO_N='-n';; 17749esac 17750 17751rm -f conf$$ conf$$.exe conf$$.file 17752if test -d conf$$.dir; then 17753 rm -f conf$$.dir/conf$$.file 17754else 17755 rm -f conf$$.dir 17756 mkdir conf$$.dir 2>/dev/null 17757fi 17758if (echo >conf$$.file) 2>/dev/null; then 17759 if ln -s conf$$.file conf$$ 2>/dev/null; then 17760 as_ln_s='ln -s' 17761 # ... but there are two gotchas: 17762 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 17763 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 17764 # In both cases, we have to default to `cp -pR'. 17765 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 17766 as_ln_s='cp -pR' 17767 elif ln conf$$.file conf$$ 2>/dev/null; then 17768 as_ln_s=ln 17769 else 17770 as_ln_s='cp -pR' 17771 fi 17772else 17773 as_ln_s='cp -pR' 17774fi 17775rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 17776rmdir conf$$.dir 2>/dev/null 17777 17778 17779# as_fn_mkdir_p 17780# ------------- 17781# Create "$as_dir" as a directory, including parents if necessary. 17782as_fn_mkdir_p () 17783{ 17784 17785 case $as_dir in #( 17786 -*) as_dir=./$as_dir;; 17787 esac 17788 test -d "$as_dir" || eval $as_mkdir_p || { 17789 as_dirs= 17790 while :; do 17791 case $as_dir in #( 17792 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 17793 *) as_qdir=$as_dir;; 17794 esac 17795 as_dirs="'$as_qdir' $as_dirs" 17796 as_dir=`$as_dirname -- "$as_dir" || 17797$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 17798 X"$as_dir" : 'X\(//\)[^/]' \| \ 17799 X"$as_dir" : 'X\(//\)$' \| \ 17800 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 17801$as_echo X"$as_dir" | 17802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 17803 s//\1/ 17804 q 17805 } 17806 /^X\(\/\/\)[^/].*/{ 17807 s//\1/ 17808 q 17809 } 17810 /^X\(\/\/\)$/{ 17811 s//\1/ 17812 q 17813 } 17814 /^X\(\/\).*/{ 17815 s//\1/ 17816 q 17817 } 17818 s/.*/./; q'` 17819 test -d "$as_dir" && break 17820 done 17821 test -z "$as_dirs" || eval "mkdir $as_dirs" 17822 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 17823 17824 17825} # as_fn_mkdir_p 17826if mkdir -p . 2>/dev/null; then 17827 as_mkdir_p='mkdir -p "$as_dir"' 17828else 17829 test -d ./-p && rmdir ./-p 17830 as_mkdir_p=false 17831fi 17832 17833 17834# as_fn_executable_p FILE 17835# ----------------------- 17836# Test if FILE is an executable regular file. 17837as_fn_executable_p () 17838{ 17839 test -f "$1" && test -x "$1" 17840} # as_fn_executable_p 17841as_test_x='test -x' 17842as_executable_p=as_fn_executable_p 17843 17844# Sed expression to map a string onto a valid CPP name. 17845as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 17846 17847# Sed expression to map a string onto a valid variable name. 17848as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 17849 17850 17851exec 6>&1 17852## ----------------------------------- ## 17853## Main body of $CONFIG_STATUS script. ## 17854## ----------------------------------- ## 17855_ASEOF 17856test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 17857 17858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17859# Save the log message, to keep $0 and so on meaningful, and to 17860# report actual input values of CONFIG_FILES etc. instead of their 17861# values after options handling. 17862ac_log=" 17863This file was extended by python $as_me 3.8, which was 17864generated by GNU Autoconf 2.69. Invocation command line was 17865 17866 CONFIG_FILES = $CONFIG_FILES 17867 CONFIG_HEADERS = $CONFIG_HEADERS 17868 CONFIG_LINKS = $CONFIG_LINKS 17869 CONFIG_COMMANDS = $CONFIG_COMMANDS 17870 $ $0 $@ 17871 17872on `(hostname || uname -n) 2>/dev/null | sed 1q` 17873" 17874 17875_ACEOF 17876 17877case $ac_config_files in *" 17878"*) set x $ac_config_files; shift; ac_config_files=$*;; 17879esac 17880 17881case $ac_config_headers in *" 17882"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17883esac 17884 17885 17886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17887# Files that config.status was made for. 17888config_files="$ac_config_files" 17889config_headers="$ac_config_headers" 17890 17891_ACEOF 17892 17893cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17894ac_cs_usage="\ 17895\`$as_me' instantiates files and other configuration actions 17896from templates according to the current configuration. Unless the files 17897and actions are specified as TAGs, all are instantiated by default. 17898 17899Usage: $0 [OPTION]... [TAG]... 17900 17901 -h, --help print this help, then exit 17902 -V, --version print version number and configuration settings, then exit 17903 --config print configuration, then exit 17904 -q, --quiet, --silent 17905 do not print progress messages 17906 -d, --debug don't remove temporary files 17907 --recheck update $as_me by reconfiguring in the same conditions 17908 --file=FILE[:TEMPLATE] 17909 instantiate the configuration file FILE 17910 --header=FILE[:TEMPLATE] 17911 instantiate the configuration header FILE 17912 17913Configuration files: 17914$config_files 17915 17916Configuration headers: 17917$config_headers 17918 17919Report bugs to <https://bugs.python.org/>." 17920 17921_ACEOF 17922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 17923ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 17924ac_cs_version="\\ 17925python config.status 3.8 17926configured by $0, generated by GNU Autoconf 2.69, 17927 with options \\"\$ac_cs_config\\" 17928 17929Copyright (C) 2012 Free Software Foundation, Inc. 17930This config.status script is free software; the Free Software Foundation 17931gives unlimited permission to copy, distribute and modify it." 17932 17933ac_pwd='$ac_pwd' 17934srcdir='$srcdir' 17935INSTALL='$INSTALL' 17936MKDIR_P='$MKDIR_P' 17937test -n "\$AWK" || AWK=awk 17938_ACEOF 17939 17940cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 17941# The default lists apply if the user does not specify any file. 17942ac_need_defaults=: 17943while test $# != 0 17944do 17945 case $1 in 17946 --*=?*) 17947 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17948 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 17949 ac_shift=: 17950 ;; 17951 --*=) 17952 ac_option=`expr "X$1" : 'X\([^=]*\)='` 17953 ac_optarg= 17954 ac_shift=: 17955 ;; 17956 *) 17957 ac_option=$1 17958 ac_optarg=$2 17959 ac_shift=shift 17960 ;; 17961 esac 17962 17963 case $ac_option in 17964 # Handling of the options. 17965 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 17966 ac_cs_recheck=: ;; 17967 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 17968 $as_echo "$ac_cs_version"; exit ;; 17969 --config | --confi | --conf | --con | --co | --c ) 17970 $as_echo "$ac_cs_config"; exit ;; 17971 --debug | --debu | --deb | --de | --d | -d ) 17972 debug=: ;; 17973 --file | --fil | --fi | --f ) 17974 $ac_shift 17975 case $ac_optarg in 17976 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17977 '') as_fn_error $? "missing file argument" ;; 17978 esac 17979 as_fn_append CONFIG_FILES " '$ac_optarg'" 17980 ac_need_defaults=false;; 17981 --header | --heade | --head | --hea ) 17982 $ac_shift 17983 case $ac_optarg in 17984 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17985 esac 17986 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17987 ac_need_defaults=false;; 17988 --he | --h) 17989 # Conflict between --help and --header 17990 as_fn_error $? "ambiguous option: \`$1' 17991Try \`$0 --help' for more information.";; 17992 --help | --hel | -h ) 17993 $as_echo "$ac_cs_usage"; exit ;; 17994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 17995 | -silent | --silent | --silen | --sile | --sil | --si | --s) 17996 ac_cs_silent=: ;; 17997 17998 # This is an error. 17999 -*) as_fn_error $? "unrecognized option: \`$1' 18000Try \`$0 --help' for more information." ;; 18001 18002 *) as_fn_append ac_config_targets " $1" 18003 ac_need_defaults=false ;; 18004 18005 esac 18006 shift 18007done 18008 18009ac_configure_extra_args= 18010 18011if $ac_cs_silent; then 18012 exec 6>/dev/null 18013 ac_configure_extra_args="$ac_configure_extra_args --silent" 18014fi 18015 18016_ACEOF 18017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18018if \$ac_cs_recheck; then 18019 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18020 shift 18021 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18022 CONFIG_SHELL='$SHELL' 18023 export CONFIG_SHELL 18024 exec "\$@" 18025fi 18026 18027_ACEOF 18028cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18029exec 5>>config.log 18030{ 18031 echo 18032 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18033## Running $as_me. ## 18034_ASBOX 18035 $as_echo "$ac_log" 18036} >&5 18037 18038_ACEOF 18039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18040_ACEOF 18041 18042cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18043 18044# Handling of arguments. 18045for ac_config_target in $ac_config_targets 18046do 18047 case $ac_config_target in 18048 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; 18049 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; 18050 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; 18051 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; 18052 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; 18053 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; 18054 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; 18055 "Misc/python-embed.pc") CONFIG_FILES="$CONFIG_FILES Misc/python-embed.pc" ;; 18056 "Misc/python-config.sh") CONFIG_FILES="$CONFIG_FILES Misc/python-config.sh" ;; 18057 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; 18058 18059 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18060 esac 18061done 18062 18063 18064# If the user did not use the arguments to specify the items to instantiate, 18065# then the envvar interface is used. Set only those that are not. 18066# We use the long form for the default assignment because of an extremely 18067# bizarre bug on SunOS 4.1.3. 18068if $ac_need_defaults; then 18069 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18070 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18071fi 18072 18073# Have a temporary directory for convenience. Make it in the build tree 18074# simply because there is no reason against having it here, and in addition, 18075# creating and moving files from /tmp can sometimes cause problems. 18076# Hook for its removal unless debugging. 18077# Note that there is a small window in which the directory will not be cleaned: 18078# after its creation but before its name has been assigned to `$tmp'. 18079$debug || 18080{ 18081 tmp= ac_tmp= 18082 trap 'exit_status=$? 18083 : "${ac_tmp:=$tmp}" 18084 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 18085' 0 18086 trap 'as_fn_exit 1' 1 2 13 15 18087} 18088# Create a (secure) tmp directory for tmp files. 18089 18090{ 18091 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18092 test -d "$tmp" 18093} || 18094{ 18095 tmp=./conf$$-$RANDOM 18096 (umask 077 && mkdir "$tmp") 18097} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18098ac_tmp=$tmp 18099 18100# Set up the scripts for CONFIG_FILES section. 18101# No need to generate them if there are no CONFIG_FILES. 18102# This happens for instance with `./config.status config.h'. 18103if test -n "$CONFIG_FILES"; then 18104 18105 18106ac_cr=`echo X | tr X '\015'` 18107# On cygwin, bash can eat \r inside `` if the user requested igncr. 18108# But we know of no other shell where ac_cr would be empty at this 18109# point, so we can use a bashism as a fallback. 18110if test "x$ac_cr" = x; then 18111 eval ac_cr=\$\'\\r\' 18112fi 18113ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 18114if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 18115 ac_cs_awk_cr='\\r' 18116else 18117 ac_cs_awk_cr=$ac_cr 18118fi 18119 18120echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 18121_ACEOF 18122 18123 18124{ 18125 echo "cat >conf$$subs.awk <<_ACEOF" && 18126 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 18127 echo "_ACEOF" 18128} >conf$$subs.sh || 18129 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18130ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 18131ac_delim='%!_!# ' 18132for ac_last_try in false false false false false :; do 18133 . ./conf$$subs.sh || 18134 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18135 18136 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 18137 if test $ac_delim_n = $ac_delim_num; then 18138 break 18139 elif $ac_last_try; then 18140 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 18141 else 18142 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18143 fi 18144done 18145rm -f conf$$subs.sh 18146 18147cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18148cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 18149_ACEOF 18150sed -n ' 18151h 18152s/^/S["/; s/!.*/"]=/ 18153p 18154g 18155s/^[^!]*!// 18156:repl 18157t repl 18158s/'"$ac_delim"'$// 18159t delim 18160:nl 18161h 18162s/\(.\{148\}\)..*/\1/ 18163t more1 18164s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 18165p 18166n 18167b repl 18168:more1 18169s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18170p 18171g 18172s/.\{148\}// 18173t nl 18174:delim 18175h 18176s/\(.\{148\}\)..*/\1/ 18177t more2 18178s/["\\]/\\&/g; s/^/"/; s/$/"/ 18179p 18180b 18181:more2 18182s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 18183p 18184g 18185s/.\{148\}// 18186t delim 18187' <conf$$subs.awk | sed ' 18188/^[^""]/{ 18189 N 18190 s/\n// 18191} 18192' >>$CONFIG_STATUS || ac_write_fail=1 18193rm -f conf$$subs.awk 18194cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18195_ACAWK 18196cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 18197 for (key in S) S_is_set[key] = 1 18198 FS = "" 18199 18200} 18201{ 18202 line = $ 0 18203 nfields = split(line, field, "@") 18204 substed = 0 18205 len = length(field[1]) 18206 for (i = 2; i < nfields; i++) { 18207 key = field[i] 18208 keylen = length(key) 18209 if (S_is_set[key]) { 18210 value = S[key] 18211 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 18212 len += length(value) + length(field[++i]) 18213 substed = 1 18214 } else 18215 len += 1 + keylen 18216 } 18217 18218 print line 18219} 18220 18221_ACAWK 18222_ACEOF 18223cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18224if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 18225 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 18226else 18227 cat 18228fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 18229 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 18230_ACEOF 18231 18232# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 18233# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 18234# trailing colons and then remove the whole line if VPATH becomes empty 18235# (actually we leave an empty line to preserve line numbers). 18236if test "x$srcdir" = x.; then 18237 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 18238h 18239s/// 18240s/^/:/ 18241s/[ ]*$/:/ 18242s/:\$(srcdir):/:/g 18243s/:\${srcdir}:/:/g 18244s/:@srcdir@:/:/g 18245s/^:*// 18246s/:*$// 18247x 18248s/\(=[ ]*\).*/\1/ 18249G 18250s/\n// 18251s/^[^=]*=[ ]*$// 18252}' 18253fi 18254 18255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18256fi # test -n "$CONFIG_FILES" 18257 18258# Set up the scripts for CONFIG_HEADERS section. 18259# No need to generate them if there are no CONFIG_HEADERS. 18260# This happens for instance with `./config.status Makefile'. 18261if test -n "$CONFIG_HEADERS"; then 18262cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18263BEGIN { 18264_ACEOF 18265 18266# Transform confdefs.h into an awk script `defines.awk', embedded as 18267# here-document in config.status, that substitutes the proper values into 18268# config.h.in to produce config.h. 18269 18270# Create a delimiter string that does not exist in confdefs.h, to ease 18271# handling of long lines. 18272ac_delim='%!_!# ' 18273for ac_last_try in false false :; do 18274 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18275 if test -z "$ac_tt"; then 18276 break 18277 elif $ac_last_try; then 18278 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18279 else 18280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18281 fi 18282done 18283 18284# For the awk script, D is an array of macro values keyed by name, 18285# likewise P contains macro parameters if any. Preserve backslash 18286# newline sequences. 18287 18288ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18289sed -n ' 18290s/.\{148\}/&'"$ac_delim"'/g 18291t rset 18292:rset 18293s/^[ ]*#[ ]*define[ ][ ]*/ / 18294t def 18295d 18296:def 18297s/\\$// 18298t bsnl 18299s/["\\]/\\&/g 18300s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18301D["\1"]=" \3"/p 18302s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18303d 18304:bsnl 18305s/["\\]/\\&/g 18306s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18307D["\1"]=" \3\\\\\\n"\\/p 18308t cont 18309s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18310t cont 18311d 18312:cont 18313n 18314s/.\{148\}/&'"$ac_delim"'/g 18315t clear 18316:clear 18317s/\\$// 18318t bsnlc 18319s/["\\]/\\&/g; s/^/"/; s/$/"/p 18320d 18321:bsnlc 18322s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18323b cont 18324' <confdefs.h | sed ' 18325s/'"$ac_delim"'/"\\\ 18326"/g' >>$CONFIG_STATUS || ac_write_fail=1 18327 18328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18329 for (key in D) D_is_set[key] = 1 18330 FS = "" 18331} 18332/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18333 line = \$ 0 18334 split(line, arg, " ") 18335 if (arg[1] == "#") { 18336 defundef = arg[2] 18337 mac1 = arg[3] 18338 } else { 18339 defundef = substr(arg[1], 2) 18340 mac1 = arg[2] 18341 } 18342 split(mac1, mac2, "(") #) 18343 macro = mac2[1] 18344 prefix = substr(line, 1, index(line, defundef) - 1) 18345 if (D_is_set[macro]) { 18346 # Preserve the white space surrounding the "#". 18347 print prefix "define", macro P[macro] D[macro] 18348 next 18349 } else { 18350 # Replace #undef with comments. This is necessary, for example, 18351 # in the case of _POSIX_SOURCE, which is predefined and required 18352 # on some systems where configure will not decide to define it. 18353 if (defundef == "undef") { 18354 print "/*", prefix defundef, macro, "*/" 18355 next 18356 } 18357 } 18358} 18359{ print } 18360_ACAWK 18361_ACEOF 18362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18363 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18364fi # test -n "$CONFIG_HEADERS" 18365 18366 18367eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 18368shift 18369for ac_tag 18370do 18371 case $ac_tag in 18372 :[FHLC]) ac_mode=$ac_tag; continue;; 18373 esac 18374 case $ac_mode$ac_tag in 18375 :[FHL]*:*);; 18376 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 18377 :[FH]-) ac_tag=-:-;; 18378 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 18379 esac 18380 ac_save_IFS=$IFS 18381 IFS=: 18382 set x $ac_tag 18383 IFS=$ac_save_IFS 18384 shift 18385 ac_file=$1 18386 shift 18387 18388 case $ac_mode in 18389 :L) ac_source=$1;; 18390 :[FH]) 18391 ac_file_inputs= 18392 for ac_f 18393 do 18394 case $ac_f in 18395 -) ac_f="$ac_tmp/stdin";; 18396 *) # Look for the file first in the build tree, then in the source tree 18397 # (if the path is not absolute). The absolute path cannot be DOS-style, 18398 # because $ac_f cannot contain `:'. 18399 test -f "$ac_f" || 18400 case $ac_f in 18401 [\\/$]*) false;; 18402 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 18403 esac || 18404 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 18405 esac 18406 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 18407 as_fn_append ac_file_inputs " '$ac_f'" 18408 done 18409 18410 # Let's still pretend it is `configure' which instantiates (i.e., don't 18411 # use $as_me), people would be surprised to read: 18412 # /* config.h. Generated by config.status. */ 18413 configure_input='Generated from '` 18414 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 18415 `' by configure.' 18416 if test x"$ac_file" != x-; then 18417 configure_input="$ac_file. $configure_input" 18418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 18419$as_echo "$as_me: creating $ac_file" >&6;} 18420 fi 18421 # Neutralize special characters interpreted by sed in replacement strings. 18422 case $configure_input in #( 18423 *\&* | *\|* | *\\* ) 18424 ac_sed_conf_input=`$as_echo "$configure_input" | 18425 sed 's/[\\\\&|]/\\\\&/g'`;; #( 18426 *) ac_sed_conf_input=$configure_input;; 18427 esac 18428 18429 case $ac_tag in 18430 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 18431 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 18432 esac 18433 ;; 18434 esac 18435 18436 ac_dir=`$as_dirname -- "$ac_file" || 18437$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18438 X"$ac_file" : 'X\(//\)[^/]' \| \ 18439 X"$ac_file" : 'X\(//\)$' \| \ 18440 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 18441$as_echo X"$ac_file" | 18442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18443 s//\1/ 18444 q 18445 } 18446 /^X\(\/\/\)[^/].*/{ 18447 s//\1/ 18448 q 18449 } 18450 /^X\(\/\/\)$/{ 18451 s//\1/ 18452 q 18453 } 18454 /^X\(\/\).*/{ 18455 s//\1/ 18456 q 18457 } 18458 s/.*/./; q'` 18459 as_dir="$ac_dir"; as_fn_mkdir_p 18460 ac_builddir=. 18461 18462case "$ac_dir" in 18463.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 18464*) 18465 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 18466 # A ".." for each directory in $ac_dir_suffix. 18467 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 18468 case $ac_top_builddir_sub in 18469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 18470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 18471 esac ;; 18472esac 18473ac_abs_top_builddir=$ac_pwd 18474ac_abs_builddir=$ac_pwd$ac_dir_suffix 18475# for backward compatibility: 18476ac_top_builddir=$ac_top_build_prefix 18477 18478case $srcdir in 18479 .) # We are building in place. 18480 ac_srcdir=. 18481 ac_top_srcdir=$ac_top_builddir_sub 18482 ac_abs_top_srcdir=$ac_pwd ;; 18483 [\\/]* | ?:[\\/]* ) # Absolute name. 18484 ac_srcdir=$srcdir$ac_dir_suffix; 18485 ac_top_srcdir=$srcdir 18486 ac_abs_top_srcdir=$srcdir ;; 18487 *) # Relative name. 18488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 18489 ac_top_srcdir=$ac_top_build_prefix$srcdir 18490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 18491esac 18492ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 18493 18494 18495 case $ac_mode in 18496 :F) 18497 # 18498 # CONFIG_FILE 18499 # 18500 18501 case $INSTALL in 18502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 18503 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 18504 esac 18505 ac_MKDIR_P=$MKDIR_P 18506 case $MKDIR_P in 18507 [\\/$]* | ?:[\\/]* ) ;; 18508 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 18509 esac 18510_ACEOF 18511 18512cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18513# If the template does not know about datarootdir, expand it. 18514# FIXME: This hack should be removed a few years after 2.60. 18515ac_datarootdir_hack=; ac_datarootdir_seen= 18516ac_sed_dataroot=' 18517/datarootdir/ { 18518 p 18519 q 18520} 18521/@datadir@/p 18522/@docdir@/p 18523/@infodir@/p 18524/@localedir@/p 18525/@mandir@/p' 18526case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 18527*datarootdir*) ac_datarootdir_seen=yes;; 18528*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 18529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 18530$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 18531_ACEOF 18532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18533 ac_datarootdir_hack=' 18534 s&@datadir@&$datadir&g 18535 s&@docdir@&$docdir&g 18536 s&@infodir@&$infodir&g 18537 s&@localedir@&$localedir&g 18538 s&@mandir@&$mandir&g 18539 s&\\\${datarootdir}&$datarootdir&g' ;; 18540esac 18541_ACEOF 18542 18543# Neutralize VPATH when `$srcdir' = `.'. 18544# Shell code in configure.ac might set extrasub. 18545# FIXME: do we really want to maintain this feature? 18546cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18547ac_sed_extra="$ac_vpsub 18548$extrasub 18549_ACEOF 18550cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18551:t 18552/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 18553s|@configure_input@|$ac_sed_conf_input|;t t 18554s&@top_builddir@&$ac_top_builddir_sub&;t t 18555s&@top_build_prefix@&$ac_top_build_prefix&;t t 18556s&@srcdir@&$ac_srcdir&;t t 18557s&@abs_srcdir@&$ac_abs_srcdir&;t t 18558s&@top_srcdir@&$ac_top_srcdir&;t t 18559s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 18560s&@builddir@&$ac_builddir&;t t 18561s&@abs_builddir@&$ac_abs_builddir&;t t 18562s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 18563s&@INSTALL@&$ac_INSTALL&;t t 18564s&@MKDIR_P@&$ac_MKDIR_P&;t t 18565$ac_datarootdir_hack 18566" 18567eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 18568 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18569 18570test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 18571 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 18572 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 18573 "$ac_tmp/out"`; test -z "$ac_out"; } && 18574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18575which seems to be undefined. Please make sure it is defined" >&5 18576$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 18577which seems to be undefined. Please make sure it is defined" >&2;} 18578 18579 rm -f "$ac_tmp/stdin" 18580 case $ac_file in 18581 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 18582 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 18583 esac \ 18584 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18585 ;; 18586 :H) 18587 # 18588 # CONFIG_HEADER 18589 # 18590 if test x"$ac_file" != x-; then 18591 { 18592 $as_echo "/* $configure_input */" \ 18593 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18594 } >"$ac_tmp/config.h" \ 18595 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18596 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18597 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18598$as_echo "$as_me: $ac_file is unchanged" >&6;} 18599 else 18600 rm -f "$ac_file" 18601 mv "$ac_tmp/config.h" "$ac_file" \ 18602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18603 fi 18604 else 18605 $as_echo "/* $configure_input */" \ 18606 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18607 || as_fn_error $? "could not create -" "$LINENO" 5 18608 fi 18609 ;; 18610 18611 18612 esac 18613 18614 18615 case $ac_file$ac_mode in 18616 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; 18617 18618 esac 18619done # for ac_tag 18620 18621 18622as_fn_exit 0 18623_ACEOF 18624ac_clean_files=$ac_clean_files_save 18625 18626test $ac_write_fail = 0 || 18627 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 18628 18629 18630# configure is writing to config.log, and then calls config.status. 18631# config.status does its own redirection, appending to config.log. 18632# Unfortunately, on DOS this fails, as config.log is still kept open 18633# by configure, so config.status won't be able to write to it; its 18634# output is simply discarded. So we exec the FD to /dev/null, 18635# effectively closing config.log, so it can be properly (re)opened and 18636# appended to by config.status. When coming back to configure, we 18637# need to make the FD available again. 18638if test "$no_create" != yes; then 18639 ac_cs_success=: 18640 ac_config_status_args= 18641 test "$silent" = yes && 18642 ac_config_status_args="$ac_config_status_args --quiet" 18643 exec 5>/dev/null 18644 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 18645 exec 5>>config.log 18646 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 18647 # would make configure fail if this is the last instruction. 18648 $ac_cs_success || as_fn_exit 1 18649fi 18650if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 18651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 18652$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 18653fi 18654 18655 18656echo "creating Modules/Setup.local" >&6 18657if test ! -f Modules/Setup.local 18658then 18659 echo "# Edit this file for local setup changes" >Modules/Setup.local 18660fi 18661 18662echo "creating Makefile" >&6 18663$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 18664 -s Modules \ 18665 Modules/Setup.local $srcdir/Modules/Setup 18666mv config.c Modules 18667 18668if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then 18669 echo "" >&6 18670 echo "" >&6 18671 echo "If you want a release build with all stable optimizations active (PGO, etc)," >&6 18672 echo "please run ./configure --enable-optimizations" >&6 18673 echo "" >&6 18674 echo "" >&6 18675fi 18676 18677