1#! /bin/sh 2# From configure.ac Revision. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.69 for python 2.7. 5# 6# Report bugs to <https://bugs.python.org/>. 7# 8# 9# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 21 emulate sh 22 NULLCMD=: 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 24 # is contrary to our usage. Disable this feature. 25 alias -g '${1+"$@"}'='"$@"' 26 setopt NO_GLOB_SUBST 27else 28 case `(set -o) 2>/dev/null` in #( 29 *posix*) : 30 set -o posix ;; #( 31 *) : 32 ;; 33esac 34fi 35 36 37as_nl=' 38' 39export as_nl 40# Printing a long string crashes Solaris 7 /usr/bin/printf. 41as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 44# Prefer a ksh shell builtin over an external printf program on Solaris, 45# but without wasting forks for bash or zsh. 46if test -z "$BASH_VERSION$ZSH_VERSION" \ 47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='print -r --' 49 as_echo_n='print -rn --' 50elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 51 as_echo='printf %s\n' 52 as_echo_n='printf %s' 53else 54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 56 as_echo_n='/usr/ucb/echo -n' 57 else 58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 59 as_echo_n_body='eval 60 arg=$1; 61 case $arg in #( 62 *"$as_nl"*) 63 expr "X$arg" : "X\\(.*\\)$as_nl"; 64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 65 esac; 66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 67 ' 68 export as_echo_n_body 69 as_echo_n='sh -c $as_echo_n_body as_echo' 70 fi 71 export as_echo_body 72 as_echo='sh -c $as_echo_body as_echo' 73fi 74 75# The user is always right. 76if test "${PATH_SEPARATOR+set}" != set; then 77 PATH_SEPARATOR=: 78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 80 PATH_SEPARATOR=';' 81 } 82fi 83 84 85# IFS 86# We need space, tab and new line, in precisely that order. Quoting is 87# there to prevent editors from complaining about space-tab. 88# (If _AS_PATH_WALK were called with IFS unset, it would disable word 89# splitting by setting IFS to empty value.) 90IFS=" "" $as_nl" 91 92# Find who we are. Look in the path if we contain no directory separator. 93as_myself= 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138# Use a proper internal environment variable to ensure we don't fall 139 # into an infinite loop, continuously re-executing ourselves. 140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 141 _as_can_reexec=no; export _as_can_reexec; 142 # We cannot yet assume a decent shell, so we have to provide a 143# neutralization value for shells without unset; and this also 144# works around shells that cannot unset nonexistent variables. 145# Preserve -v and -x to the replacement shell. 146BASH_ENV=/dev/null 147ENV=/dev/null 148(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 149case $- in # (((( 150 *v*x* | *x*v* ) as_opts=-vx ;; 151 *v* ) as_opts=-v ;; 152 *x* ) as_opts=-x ;; 153 * ) as_opts= ;; 154esac 155exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 156# Admittedly, this is quite paranoid, since all the known shells bail 157# out after a failed `exec'. 158$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 159as_fn_exit 255 160 fi 161 # We don't want this to propagate to other subprocesses. 162 { _as_can_reexec=; unset _as_can_reexec;} 163if test "x$CONFIG_SHELL" = x; then 164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 165 emulate sh 166 NULLCMD=: 167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 168 # is contrary to our usage. Disable this feature. 169 alias -g '\${1+\"\$@\"}'='\"\$@\"' 170 setopt NO_GLOB_SUBST 171else 172 case \`(set -o) 2>/dev/null\` in #( 173 *posix*) : 174 set -o posix ;; #( 175 *) : 176 ;; 177esac 178fi 179" 180 as_required="as_fn_return () { (exit \$1); } 181as_fn_success () { as_fn_return 0; } 182as_fn_failure () { as_fn_return 1; } 183as_fn_ret_success () { return 0; } 184as_fn_ret_failure () { return 1; } 185 186exitcode=0 187as_fn_success || { exitcode=1; echo as_fn_success failed.; } 188as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 189as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 190as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 191if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 192 193else 194 exitcode=1; echo positional parameters were not saved. 195fi 196test x\$exitcode = x0 || exit 1 197test -x / || exit 1" 198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 202test \$(( 1 + 1 )) = 2 || exit 1" 203 if (eval "$as_required") 2>/dev/null; then : 204 as_have_required=yes 205else 206 as_have_required=no 207fi 208 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 209 210else 211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 212as_found=false 213for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 214do 215 IFS=$as_save_IFS 216 test -z "$as_dir" && as_dir=. 217 as_found=: 218 case $as_dir in #( 219 /*) 220 for as_base in sh bash ksh sh5; do 221 # Try only shells that exist, to save several forks. 222 as_shell=$as_dir/$as_base 223 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 224 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 225 CONFIG_SHELL=$as_shell as_have_required=yes 226 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 227 break 2 228fi 229fi 230 done;; 231 esac 232 as_found=false 233done 234$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 235 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 236 CONFIG_SHELL=$SHELL as_have_required=yes 237fi; } 238IFS=$as_save_IFS 239 240 241 if test "x$CONFIG_SHELL" != x; then : 242 export CONFIG_SHELL 243 # We cannot yet assume a decent shell, so we have to provide a 244# neutralization value for shells without unset; and this also 245# works around shells that cannot unset nonexistent variables. 246# Preserve -v and -x to the replacement shell. 247BASH_ENV=/dev/null 248ENV=/dev/null 249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 250case $- in # (((( 251 *v*x* | *x*v* ) as_opts=-vx ;; 252 *v* ) as_opts=-v ;; 253 *x* ) as_opts=-x ;; 254 * ) as_opts= ;; 255esac 256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 257# Admittedly, this is quite paranoid, since all the known shells bail 258# out after a failed `exec'. 259$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 260exit 255 261fi 262 263 if test x$as_have_required = xno; then : 264 $as_echo "$0: This script requires a shell more modern than all" 265 $as_echo "$0: the shells that I found on your system." 266 if test x${ZSH_VERSION+set} = xset ; then 267 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 $as_echo "$0: Please tell bug-autoconf@gnu.org and 271$0: https://bugs.python.org/ about your system, including 272$0: any error possibly output before this message. Then 273$0: install a modern shell, or manually run the script 274$0: under such a shell if you do have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='python' 583PACKAGE_TARNAME='python' 584PACKAGE_VERSION='2.7' 585PACKAGE_STRING='python 2.7' 586PACKAGE_BUGREPORT='https://bugs.python.org/' 587PACKAGE_URL='' 588 589ac_unique_file="Include/object.h" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='LTLIBOBJS 627ENSUREPIP 628SRCDIRS 629THREADHEADERS 630UNICODE_OBJS 631LIBC 632LIBM 633HAVE_GETHOSTBYNAME 634HAVE_GETHOSTBYNAME_R 635HAVE_GETHOSTBYNAME_R_3_ARG 636HAVE_GETHOSTBYNAME_R_5_ARG 637HAVE_GETHOSTBYNAME_R_6_ARG 638LIBOBJS 639TRUE 640MACHDEP_OBJS 641DYNLOADFILE 642DLINCLDIR 643THREADOBJ 644LDLAST 645USE_THREAD_MODULE 646SIGNAL_OBJS 647USE_SIGNAL_MODULE 648TCLTK_LIBS 649TCLTK_INCLUDES 650LIBFFI_INCLUDEDIR 651PKG_CONFIG_LIBDIR 652PKG_CONFIG_PATH 653PKG_CONFIG 654SHLIBS 655CFLAGSFORSHARED 656LINKFORSHARED 657CCSHARED 658BLDSHARED 659LDCXXSHARED 660LDSHARED 661SO 662LIBTOOL_CRUFT 663OTHER_LIBTOOL_OPT 664LLVM_PROF_FOUND 665target_os 666target_vendor 667target_cpu 668target 669LLVM_PROFDATA 670LLVM_PROF_ERR 671LLVM_PROF_FILE 672LLVM_PROF_MERGER 673PGO_PROF_USE_FLAG 674PGO_PROF_GEN_FLAG 675LTOFLAGS 676DEF_MAKE_RULE 677DEF_MAKE_ALL_RULE 678UNIVERSAL_ARCH_FLAGS 679BASECFLAGS 680OPT 681LN 682MKDIR_P 683INSTALL_DATA 684INSTALL_SCRIPT 685INSTALL_PROGRAM 686HAS_GIT 687GITBRANCH 688GITTAG 689GITVERSION 690ARFLAGS 691ac_ct_AR 692AR 693RANLIB 694GNULD 695LINKCC 696RUNSHARED 697INSTSONAME 698LDLIBRARYDIR 699BLDLIBRARY 700DLLLIBRARY 701LDLIBRARY 702LIBRARY 703BUILDEXEEXT 704EGREP 705GREP 706CPP 707MULTIARCH 708ac_ct_CXX 709MAINCC 710CXX 711OBJEXT 712EXEEXT 713ac_ct_CC 714CPPFLAGS 715LDFLAGS 716CFLAGS 717CC 718EXPORT_MACOSX_DEPLOYMENT_TARGET 719CONFIGURE_MACOSX_DEPLOYMENT_TARGET 720EXTRAMACHDEPPATH 721EXTRAPLATDIR 722PLATDIR 723SGI_ABI 724_PYTHON_HOST_PLATFORM 725MACHDEP 726FRAMEWORKINSTALLAPPSPREFIX 727FRAMEWORKUNIXTOOLSPREFIX 728FRAMEWORKALTINSTALLLAST 729FRAMEWORKALTINSTALLFIRST 730FRAMEWORKINSTALLLAST 731FRAMEWORKINSTALLFIRST 732PYTHONFRAMEWORKINSTALLDIR 733PYTHONFRAMEWORKPREFIX 734PYTHONFRAMEWORKDIR 735PYTHONFRAMEWORKIDENTIFIER 736PYTHONFRAMEWORK 737LIPO_32BIT_FLAGS 738ARCH_RUN_32BIT 739UNIVERSALSDK 740CONFIG_ARGS 741SOVERSION 742VERSION 743PYTHON_FOR_BUILD 744PYTHON_FOR_REGEN 745host_os 746host_vendor 747host_cpu 748host 749build_os 750build_vendor 751build_cpu 752build 753target_alias 754host_alias 755build_alias 756LIBS 757ECHO_T 758ECHO_N 759ECHO_C 760DEFS 761mandir 762localedir 763libdir 764psdir 765pdfdir 766dvidir 767htmldir 768infodir 769docdir 770oldincludedir 771includedir 772localstatedir 773sharedstatedir 774sysconfdir 775datadir 776datarootdir 777libexecdir 778sbindir 779bindir 780program_transform_name 781prefix 782exec_prefix 783PACKAGE_URL 784PACKAGE_BUGREPORT 785PACKAGE_STRING 786PACKAGE_VERSION 787PACKAGE_TARNAME 788PACKAGE_NAME 789PATH_SEPARATOR 790SHELL' 791ac_subst_files='' 792ac_user_opts=' 793enable_option_checking 794enable_universalsdk 795with_universal_archs 796with_framework_name 797enable_framework 798with_gcc 799with_icc 800with_cxx_main 801with_suffix 802enable_shared 803enable_profiling 804with_pydebug 805enable_optimizations 806with_lto 807enable_toolbox_glue 808with_libs 809with_system_expat 810with_system_ffi 811with_tcltk_includes 812with_tcltk_libs 813with_dbmliborder 814with_signal_module 815with_dec_threads 816with_threads 817with_thread 818with_pth 819enable_ipv6 820with_doc_strings 821with_tsc 822with_pymalloc 823with_valgrind 824with_wctype_functions 825with_fpectl 826with_libm 827with_libc 828enable_big_digits 829enable_unicode 830with_computed_gotos 831with_ensurepip 832' 833 ac_precious_vars='build_alias 834host_alias 835target_alias 836CC 837CFLAGS 838LDFLAGS 839LIBS 840CPPFLAGS 841CPP 842PKG_CONFIG 843PKG_CONFIG_PATH 844PKG_CONFIG_LIBDIR' 845 846 847# Initialize some variables set by options. 848ac_init_help= 849ac_init_version=false 850ac_unrecognized_opts= 851ac_unrecognized_sep= 852# The variables have the same names as the options, with 853# dashes changed to underlines. 854cache_file=/dev/null 855exec_prefix=NONE 856no_create= 857no_recursion= 858prefix=NONE 859program_prefix=NONE 860program_suffix=NONE 861program_transform_name=s,x,x, 862silent= 863site= 864srcdir= 865verbose= 866x_includes=NONE 867x_libraries=NONE 868 869# Installation directory options. 870# These are left unexpanded so users can "make install exec_prefix=/foo" 871# and all the variables that are supposed to be based on exec_prefix 872# by default will actually change. 873# Use braces instead of parens because sh, perl, etc. also accept them. 874# (The list follows the same order as the GNU Coding Standards.) 875bindir='${exec_prefix}/bin' 876sbindir='${exec_prefix}/sbin' 877libexecdir='${exec_prefix}/libexec' 878datarootdir='${prefix}/share' 879datadir='${datarootdir}' 880sysconfdir='${prefix}/etc' 881sharedstatedir='${prefix}/com' 882localstatedir='${prefix}/var' 883includedir='${prefix}/include' 884oldincludedir='/usr/include' 885docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 886infodir='${datarootdir}/info' 887htmldir='${docdir}' 888dvidir='${docdir}' 889pdfdir='${docdir}' 890psdir='${docdir}' 891libdir='${exec_prefix}/lib' 892localedir='${datarootdir}/locale' 893mandir='${datarootdir}/man' 894 895ac_prev= 896ac_dashdash= 897for ac_option 898do 899 # If the previous option needs an argument, assign it. 900 if test -n "$ac_prev"; then 901 eval $ac_prev=\$ac_option 902 ac_prev= 903 continue 904 fi 905 906 case $ac_option in 907 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 908 *=) ac_optarg= ;; 909 *) ac_optarg=yes ;; 910 esac 911 912 # Accept the important Cygnus configure options, so we can diagnose typos. 913 914 case $ac_dashdash$ac_option in 915 --) 916 ac_dashdash=yes ;; 917 918 -bindir | --bindir | --bindi | --bind | --bin | --bi) 919 ac_prev=bindir ;; 920 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 921 bindir=$ac_optarg ;; 922 923 -build | --build | --buil | --bui | --bu) 924 ac_prev=build_alias ;; 925 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 926 build_alias=$ac_optarg ;; 927 928 -cache-file | --cache-file | --cache-fil | --cache-fi \ 929 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 930 ac_prev=cache_file ;; 931 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 932 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 933 cache_file=$ac_optarg ;; 934 935 --config-cache | -C) 936 cache_file=config.cache ;; 937 938 -datadir | --datadir | --datadi | --datad) 939 ac_prev=datadir ;; 940 -datadir=* | --datadir=* | --datadi=* | --datad=*) 941 datadir=$ac_optarg ;; 942 943 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 944 | --dataroo | --dataro | --datar) 945 ac_prev=datarootdir ;; 946 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 947 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 948 datarootdir=$ac_optarg ;; 949 950 -disable-* | --disable-*) 951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 952 # Reject names that are not valid shell variable names. 953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 954 as_fn_error $? "invalid feature name: $ac_useropt" 955 ac_useropt_orig=$ac_useropt 956 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 957 case $ac_user_opts in 958 *" 959"enable_$ac_useropt" 960"*) ;; 961 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 962 ac_unrecognized_sep=', ';; 963 esac 964 eval enable_$ac_useropt=no ;; 965 966 -docdir | --docdir | --docdi | --doc | --do) 967 ac_prev=docdir ;; 968 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 969 docdir=$ac_optarg ;; 970 971 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 972 ac_prev=dvidir ;; 973 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 974 dvidir=$ac_optarg ;; 975 976 -enable-* | --enable-*) 977 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 978 # Reject names that are not valid shell variable names. 979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 980 as_fn_error $? "invalid feature name: $ac_useropt" 981 ac_useropt_orig=$ac_useropt 982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 983 case $ac_user_opts in 984 *" 985"enable_$ac_useropt" 986"*) ;; 987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 988 ac_unrecognized_sep=', ';; 989 esac 990 eval enable_$ac_useropt=\$ac_optarg ;; 991 992 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 993 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 994 | --exec | --exe | --ex) 995 ac_prev=exec_prefix ;; 996 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 997 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 998 | --exec=* | --exe=* | --ex=*) 999 exec_prefix=$ac_optarg ;; 1000 1001 -gas | --gas | --ga | --g) 1002 # Obsolete; use --with-gas. 1003 with_gas=yes ;; 1004 1005 -help | --help | --hel | --he | -h) 1006 ac_init_help=long ;; 1007 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1008 ac_init_help=recursive ;; 1009 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1010 ac_init_help=short ;; 1011 1012 -host | --host | --hos | --ho) 1013 ac_prev=host_alias ;; 1014 -host=* | --host=* | --hos=* | --ho=*) 1015 host_alias=$ac_optarg ;; 1016 1017 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1018 ac_prev=htmldir ;; 1019 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1020 | --ht=*) 1021 htmldir=$ac_optarg ;; 1022 1023 -includedir | --includedir | --includedi | --included | --include \ 1024 | --includ | --inclu | --incl | --inc) 1025 ac_prev=includedir ;; 1026 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1027 | --includ=* | --inclu=* | --incl=* | --inc=*) 1028 includedir=$ac_optarg ;; 1029 1030 -infodir | --infodir | --infodi | --infod | --info | --inf) 1031 ac_prev=infodir ;; 1032 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1033 infodir=$ac_optarg ;; 1034 1035 -libdir | --libdir | --libdi | --libd) 1036 ac_prev=libdir ;; 1037 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1038 libdir=$ac_optarg ;; 1039 1040 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1041 | --libexe | --libex | --libe) 1042 ac_prev=libexecdir ;; 1043 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1044 | --libexe=* | --libex=* | --libe=*) 1045 libexecdir=$ac_optarg ;; 1046 1047 -localedir | --localedir | --localedi | --localed | --locale) 1048 ac_prev=localedir ;; 1049 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1050 localedir=$ac_optarg ;; 1051 1052 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1053 | --localstate | --localstat | --localsta | --localst | --locals) 1054 ac_prev=localstatedir ;; 1055 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1056 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1057 localstatedir=$ac_optarg ;; 1058 1059 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1060 ac_prev=mandir ;; 1061 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1062 mandir=$ac_optarg ;; 1063 1064 -nfp | --nfp | --nf) 1065 # Obsolete; use --without-fp. 1066 with_fp=no ;; 1067 1068 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1069 | --no-cr | --no-c | -n) 1070 no_create=yes ;; 1071 1072 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1073 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1074 no_recursion=yes ;; 1075 1076 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1077 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1078 | --oldin | --oldi | --old | --ol | --o) 1079 ac_prev=oldincludedir ;; 1080 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1081 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1082 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1083 oldincludedir=$ac_optarg ;; 1084 1085 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1086 ac_prev=prefix ;; 1087 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1088 prefix=$ac_optarg ;; 1089 1090 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1091 | --program-pre | --program-pr | --program-p) 1092 ac_prev=program_prefix ;; 1093 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1094 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1095 program_prefix=$ac_optarg ;; 1096 1097 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1098 | --program-suf | --program-su | --program-s) 1099 ac_prev=program_suffix ;; 1100 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1101 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1102 program_suffix=$ac_optarg ;; 1103 1104 -program-transform-name | --program-transform-name \ 1105 | --program-transform-nam | --program-transform-na \ 1106 | --program-transform-n | --program-transform- \ 1107 | --program-transform | --program-transfor \ 1108 | --program-transfo | --program-transf \ 1109 | --program-trans | --program-tran \ 1110 | --progr-tra | --program-tr | --program-t) 1111 ac_prev=program_transform_name ;; 1112 -program-transform-name=* | --program-transform-name=* \ 1113 | --program-transform-nam=* | --program-transform-na=* \ 1114 | --program-transform-n=* | --program-transform-=* \ 1115 | --program-transform=* | --program-transfor=* \ 1116 | --program-transfo=* | --program-transf=* \ 1117 | --program-trans=* | --program-tran=* \ 1118 | --progr-tra=* | --program-tr=* | --program-t=*) 1119 program_transform_name=$ac_optarg ;; 1120 1121 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1122 ac_prev=pdfdir ;; 1123 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1124 pdfdir=$ac_optarg ;; 1125 1126 -psdir | --psdir | --psdi | --psd | --ps) 1127 ac_prev=psdir ;; 1128 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1129 psdir=$ac_optarg ;; 1130 1131 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1132 | -silent | --silent | --silen | --sile | --sil) 1133 silent=yes ;; 1134 1135 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1136 ac_prev=sbindir ;; 1137 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1138 | --sbi=* | --sb=*) 1139 sbindir=$ac_optarg ;; 1140 1141 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1142 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1143 | --sharedst | --shareds | --shared | --share | --shar \ 1144 | --sha | --sh) 1145 ac_prev=sharedstatedir ;; 1146 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1147 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1148 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1149 | --sha=* | --sh=*) 1150 sharedstatedir=$ac_optarg ;; 1151 1152 -site | --site | --sit) 1153 ac_prev=site ;; 1154 -site=* | --site=* | --sit=*) 1155 site=$ac_optarg ;; 1156 1157 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1158 ac_prev=srcdir ;; 1159 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1160 srcdir=$ac_optarg ;; 1161 1162 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1163 | --syscon | --sysco | --sysc | --sys | --sy) 1164 ac_prev=sysconfdir ;; 1165 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1166 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1167 sysconfdir=$ac_optarg ;; 1168 1169 -target | --target | --targe | --targ | --tar | --ta | --t) 1170 ac_prev=target_alias ;; 1171 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1172 target_alias=$ac_optarg ;; 1173 1174 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1175 verbose=yes ;; 1176 1177 -version | --version | --versio | --versi | --vers | -V) 1178 ac_init_version=: ;; 1179 1180 -with-* | --with-*) 1181 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1182 # Reject names that are not valid shell variable names. 1183 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1184 as_fn_error $? "invalid package name: $ac_useropt" 1185 ac_useropt_orig=$ac_useropt 1186 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1187 case $ac_user_opts in 1188 *" 1189"with_$ac_useropt" 1190"*) ;; 1191 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1192 ac_unrecognized_sep=', ';; 1193 esac 1194 eval with_$ac_useropt=\$ac_optarg ;; 1195 1196 -without-* | --without-*) 1197 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1198 # Reject names that are not valid shell variable names. 1199 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1200 as_fn_error $? "invalid package name: $ac_useropt" 1201 ac_useropt_orig=$ac_useropt 1202 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1203 case $ac_user_opts in 1204 *" 1205"with_$ac_useropt" 1206"*) ;; 1207 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1208 ac_unrecognized_sep=', ';; 1209 esac 1210 eval with_$ac_useropt=no ;; 1211 1212 --x) 1213 # Obsolete; use --with-x. 1214 with_x=yes ;; 1215 1216 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1217 | --x-incl | --x-inc | --x-in | --x-i) 1218 ac_prev=x_includes ;; 1219 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1220 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1221 x_includes=$ac_optarg ;; 1222 1223 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1224 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1225 ac_prev=x_libraries ;; 1226 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1227 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1228 x_libraries=$ac_optarg ;; 1229 1230 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1231Try \`$0 --help' for more information" 1232 ;; 1233 1234 *=*) 1235 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1236 # Reject names that are not valid shell variable names. 1237 case $ac_envvar in #( 1238 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1239 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1240 esac 1241 eval $ac_envvar=\$ac_optarg 1242 export $ac_envvar ;; 1243 1244 *) 1245 # FIXME: should be removed in autoconf 3.0. 1246 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1247 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1248 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1249 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1250 ;; 1251 1252 esac 1253done 1254 1255if test -n "$ac_prev"; then 1256 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1257 as_fn_error $? "missing argument to $ac_option" 1258fi 1259 1260if test -n "$ac_unrecognized_opts"; then 1261 case $enable_option_checking in 1262 no) ;; 1263 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1264 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1265 esac 1266fi 1267 1268# Check all directory arguments for consistency. 1269for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1270 datadir sysconfdir sharedstatedir localstatedir includedir \ 1271 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1272 libdir localedir mandir 1273do 1274 eval ac_val=\$$ac_var 1275 # Remove trailing slashes. 1276 case $ac_val in 1277 */ ) 1278 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1279 eval $ac_var=\$ac_val;; 1280 esac 1281 # Be sure to have absolute directory names. 1282 case $ac_val in 1283 [\\/$]* | ?:[\\/]* ) continue;; 1284 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1285 esac 1286 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1287done 1288 1289# There might be people who depend on the old broken behavior: `$host' 1290# used to hold the argument of --host etc. 1291# FIXME: To remove some day. 1292build=$build_alias 1293host=$host_alias 1294target=$target_alias 1295 1296# FIXME: To remove some day. 1297if test "x$host_alias" != x; then 1298 if test "x$build_alias" = x; then 1299 cross_compiling=maybe 1300 elif test "x$build_alias" != "x$host_alias"; then 1301 cross_compiling=yes 1302 fi 1303fi 1304 1305ac_tool_prefix= 1306test -n "$host_alias" && ac_tool_prefix=$host_alias- 1307 1308test "$silent" = yes && exec 6>/dev/null 1309 1310 1311ac_pwd=`pwd` && test -n "$ac_pwd" && 1312ac_ls_di=`ls -di .` && 1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1314 as_fn_error $? "working directory cannot be determined" 1315test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1316 as_fn_error $? "pwd does not report name of working directory" 1317 1318 1319# Find the source files, if location was not specified. 1320if test -z "$srcdir"; then 1321 ac_srcdir_defaulted=yes 1322 # Try the directory containing this script, then the parent directory. 1323 ac_confdir=`$as_dirname -- "$as_myself" || 1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1325 X"$as_myself" : 'X\(//\)[^/]' \| \ 1326 X"$as_myself" : 'X\(//\)$' \| \ 1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1328$as_echo X"$as_myself" | 1329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\/\)[^/].*/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\/\)$/{ 1338 s//\1/ 1339 q 1340 } 1341 /^X\(\/\).*/{ 1342 s//\1/ 1343 q 1344 } 1345 s/.*/./; q'` 1346 srcdir=$ac_confdir 1347 if test ! -r "$srcdir/$ac_unique_file"; then 1348 srcdir=.. 1349 fi 1350else 1351 ac_srcdir_defaulted=no 1352fi 1353if test ! -r "$srcdir/$ac_unique_file"; then 1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1356fi 1357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1358ac_abs_confdir=`( 1359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1360 pwd)` 1361# When building in place, set srcdir=. 1362if test "$ac_abs_confdir" = "$ac_pwd"; then 1363 srcdir=. 1364fi 1365# Remove unnecessary trailing slashes from srcdir. 1366# Double slashes in file names in object file debugging info 1367# mess up M-x gdb in Emacs. 1368case $srcdir in 1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1370esac 1371for ac_var in $ac_precious_vars; do 1372 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1373 eval ac_env_${ac_var}_value=\$${ac_var} 1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1375 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1376done 1377 1378# 1379# Report the --help message. 1380# 1381if test "$ac_init_help" = "long"; then 1382 # Omit some internal or obsolete options to make the list less imposing. 1383 # This message is too long to be a string in the A/UX 3.1 sh. 1384 cat <<_ACEOF 1385\`configure' configures python 2.7 to adapt to many kinds of systems. 1386 1387Usage: $0 [OPTION]... [VAR=VALUE]... 1388 1389To assign environment variables (e.g., CC, CFLAGS...), specify them as 1390VAR=VALUE. See below for descriptions of some of the useful variables. 1391 1392Defaults for the options are specified in brackets. 1393 1394Configuration: 1395 -h, --help display this help and exit 1396 --help=short display options specific to this package 1397 --help=recursive display the short help of all the included packages 1398 -V, --version display version information and exit 1399 -q, --quiet, --silent do not print \`checking ...' messages 1400 --cache-file=FILE cache test results in FILE [disabled] 1401 -C, --config-cache alias for \`--cache-file=config.cache' 1402 -n, --no-create do not create output files 1403 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1404 1405Installation directories: 1406 --prefix=PREFIX install architecture-independent files in PREFIX 1407 [$ac_default_prefix] 1408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1409 [PREFIX] 1410 1411By default, \`make install' will install all the files in 1412\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1413an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1414for instance \`--prefix=\$HOME'. 1415 1416For better control, use the options below. 1417 1418Fine tuning of the installation directories: 1419 --bindir=DIR user executables [EPREFIX/bin] 1420 --sbindir=DIR system admin executables [EPREFIX/sbin] 1421 --libexecdir=DIR program executables [EPREFIX/libexec] 1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1425 --libdir=DIR object code libraries [EPREFIX/lib] 1426 --includedir=DIR C header files [PREFIX/include] 1427 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1430 --infodir=DIR info documentation [DATAROOTDIR/info] 1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1432 --mandir=DIR man documentation [DATAROOTDIR/man] 1433 --docdir=DIR documentation root [DATAROOTDIR/doc/python] 1434 --htmldir=DIR html documentation [DOCDIR] 1435 --dvidir=DIR dvi documentation [DOCDIR] 1436 --pdfdir=DIR pdf documentation [DOCDIR] 1437 --psdir=DIR ps documentation [DOCDIR] 1438_ACEOF 1439 1440 cat <<\_ACEOF 1441 1442System types: 1443 --build=BUILD configure for building on BUILD [guessed] 1444 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1445 --target=TARGET configure for building compilers for TARGET [HOST] 1446_ACEOF 1447fi 1448 1449if test -n "$ac_init_help"; then 1450 case $ac_init_help in 1451 short | recursive ) echo "Configuration of python 2.7:";; 1452 esac 1453 cat <<\_ACEOF 1454 1455Optional Features: 1456 --disable-option-checking ignore unrecognized --enable/--with options 1457 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1458 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1459 --enable-universalsdk[=SDKDIR] 1460 Build fat binary against Mac OS X SDK 1461 --enable-framework[=INSTALLDIR] 1462 Build (MacOSX|Darwin) framework 1463 --enable-shared disable/enable building shared python library 1464 --enable-profiling enable C-level code profiling 1465 --enable-optimizations Enable expensive optimizations (PGO, maybe LTO, 1466 etc). Disabled by default. 1467 --enable-toolbox-glue disable/enable MacOSX glue code for extensions 1468 --enable-ipv6 Enable ipv6 (with ipv4) support 1469 --disable-ipv6 Disable ipv6 support 1470 --enable-big-digits[=BITS] 1471 use big digits for Python longs [[BITS=30]] 1472 --enable-unicode[=ucs[24]] 1473 Enable Unicode strings (default is ucs2) 1474 1475Optional Packages: 1476 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1477 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1478 --with-universal-archs=ARCH 1479 select architectures for universal build ("32-bit", 1480 "64-bit", "3-way", "intel", "intel-32", "intel-64", 1481 or "all") 1482 --with-framework-name=FRAMEWORK 1483 specify an alternate name of the framework built 1484 with --enable-framework 1485 --without-gcc never use gcc 1486 --with-icc build with icc 1487 --with-cxx-main=<compiler> 1488 compile main() and link python executable with C++ 1489 compiler 1490 --with-suffix=.exe set executable suffix 1491 --with-pydebug build with Py_DEBUG defined 1492 --with-lto Enable Link Time Optimization in PGO builds. 1493 Disabled by default. 1494 --with-libs='lib1 ...' link against additional libs 1495 --with-system-expat build pyexpat module using an installed expat 1496 library 1497 --with-system-ffi build _ctypes module using an installed ffi library 1498 --with-tcltk-includes='-I...' 1499 override search for Tcl and Tk include files 1500 --with-tcltk-libs='-L...' 1501 override search for Tcl and Tk libs 1502 --with-dbmliborder=db1:db2:... 1503 order to check db backends for dbm. Valid value is a 1504 colon separated string with the backend names 1505 `ndbm', `gdbm' and `bdb'. 1506 --with-signal-module disable/enable signal module 1507 --with-dec-threads use DEC Alpha/OSF1 thread-safe libraries 1508 --with(out)-threads[=DIRECTORY] 1509 disable/enable thread support 1510 --with(out)-thread[=DIRECTORY] 1511 deprecated; use --with(out)-threads 1512 --with-pth use GNU pth threading libraries 1513 --with(out)-doc-strings disable/enable documentation strings 1514 --with(out)-tsc enable/disable timestamp counter profile 1515 --with(out)-pymalloc disable/enable specialized mallocs 1516 --with-valgrind Enable Valgrind support 1517 --with-wctype-functions use wctype.h functions 1518 --with-fpectl enable SIGFPE catching 1519 --with-libm=STRING math library 1520 --with-libc=STRING C library 1521 --with(out)-computed-gotos 1522 Use computed gotos in evaluation loop (enabled by 1523 default on supported compilers) 1524 --with(out)-ensurepip=[=OPTION] 1525 "install" or "upgrade" using bundled pip, default is 1526 "no" 1527 1528Some influential environment variables: 1529 CC C compiler command 1530 CFLAGS C compiler flags 1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1532 nonstandard directory <lib dir> 1533 LIBS libraries to pass to the linker, e.g. -l<library> 1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1535 you have headers in a nonstandard directory <include dir> 1536 CPP C preprocessor 1537 PKG_CONFIG path to pkg-config utility 1538 PKG_CONFIG_PATH 1539 directories to add to pkg-config's search path 1540 PKG_CONFIG_LIBDIR 1541 path overriding pkg-config's built-in search path 1542 1543Use these variables to override the choices made by `configure' or to help 1544it to find libraries and programs with nonstandard names/locations. 1545 1546Report bugs to <https://bugs.python.org/>. 1547_ACEOF 1548ac_status=$? 1549fi 1550 1551if test "$ac_init_help" = "recursive"; then 1552 # If there are subdirs, report their specific --help. 1553 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1554 test -d "$ac_dir" || 1555 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1556 continue 1557 ac_builddir=. 1558 1559case "$ac_dir" in 1560.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1561*) 1562 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1563 # A ".." for each directory in $ac_dir_suffix. 1564 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1565 case $ac_top_builddir_sub in 1566 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1567 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1568 esac ;; 1569esac 1570ac_abs_top_builddir=$ac_pwd 1571ac_abs_builddir=$ac_pwd$ac_dir_suffix 1572# for backward compatibility: 1573ac_top_builddir=$ac_top_build_prefix 1574 1575case $srcdir in 1576 .) # We are building in place. 1577 ac_srcdir=. 1578 ac_top_srcdir=$ac_top_builddir_sub 1579 ac_abs_top_srcdir=$ac_pwd ;; 1580 [\\/]* | ?:[\\/]* ) # Absolute name. 1581 ac_srcdir=$srcdir$ac_dir_suffix; 1582 ac_top_srcdir=$srcdir 1583 ac_abs_top_srcdir=$srcdir ;; 1584 *) # Relative name. 1585 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1586 ac_top_srcdir=$ac_top_build_prefix$srcdir 1587 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1588esac 1589ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1590 1591 cd "$ac_dir" || { ac_status=$?; continue; } 1592 # Check for guested configure. 1593 if test -f "$ac_srcdir/configure.gnu"; then 1594 echo && 1595 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1596 elif test -f "$ac_srcdir/configure"; then 1597 echo && 1598 $SHELL "$ac_srcdir/configure" --help=recursive 1599 else 1600 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1601 fi || ac_status=$? 1602 cd "$ac_pwd" || { ac_status=$?; break; } 1603 done 1604fi 1605 1606test -n "$ac_init_help" && exit $ac_status 1607if $ac_init_version; then 1608 cat <<\_ACEOF 1609python configure 2.7 1610generated by GNU Autoconf 2.69 1611 1612Copyright (C) 2012 Free Software Foundation, Inc. 1613This configure script is free software; the Free Software Foundation 1614gives unlimited permission to copy, distribute and modify it. 1615_ACEOF 1616 exit 1617fi 1618 1619## ------------------------ ## 1620## Autoconf initialization. ## 1621## ------------------------ ## 1622 1623# ac_fn_c_try_compile LINENO 1624# -------------------------- 1625# Try to compile conftest.$ac_ext, and return whether this succeeded. 1626ac_fn_c_try_compile () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 rm -f conftest.$ac_objext 1630 if { { ac_try="$ac_compile" 1631case "(($ac_try" in 1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1633 *) ac_try_echo=$ac_try;; 1634esac 1635eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1636$as_echo "$ac_try_echo"; } >&5 1637 (eval "$ac_compile") 2>conftest.err 1638 ac_status=$? 1639 if test -s conftest.err; then 1640 grep -v '^ *+' conftest.err >conftest.er1 1641 cat conftest.er1 >&5 1642 mv -f conftest.er1 conftest.err 1643 fi 1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1645 test $ac_status = 0; } && { 1646 test -z "$ac_c_werror_flag" || 1647 test ! -s conftest.err 1648 } && test -s conftest.$ac_objext; then : 1649 ac_retval=0 1650else 1651 $as_echo "$as_me: failed program was:" >&5 1652sed 's/^/| /' conftest.$ac_ext >&5 1653 1654 ac_retval=1 1655fi 1656 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1657 as_fn_set_status $ac_retval 1658 1659} # ac_fn_c_try_compile 1660 1661# ac_fn_c_try_cpp LINENO 1662# ---------------------- 1663# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1664ac_fn_c_try_cpp () 1665{ 1666 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1667 if { { ac_try="$ac_cpp conftest.$ac_ext" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } > conftest.i && { 1683 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 }; then : 1686 ac_retval=0 1687else 1688 $as_echo "$as_me: failed program was:" >&5 1689sed 's/^/| /' conftest.$ac_ext >&5 1690 1691 ac_retval=1 1692fi 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 as_fn_set_status $ac_retval 1695 1696} # ac_fn_c_try_cpp 1697 1698# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1699# ------------------------------------------------------- 1700# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1701# the include files in INCLUDES and setting the cache variable VAR 1702# accordingly. 1703ac_fn_c_check_header_mongrel () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 if eval \${$3+:} false; then : 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1708$as_echo_n "checking for $2... " >&6; } 1709if eval \${$3+:} false; then : 1710 $as_echo_n "(cached) " >&6 1711fi 1712eval ac_res=\$$3 1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1714$as_echo "$ac_res" >&6; } 1715else 1716 # Is the header compilable? 1717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1718$as_echo_n "checking $2 usability... " >&6; } 1719cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1720/* end confdefs.h. */ 1721$4 1722#include <$2> 1723_ACEOF 1724if ac_fn_c_try_compile "$LINENO"; then : 1725 ac_header_compiler=yes 1726else 1727 ac_header_compiler=no 1728fi 1729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1731$as_echo "$ac_header_compiler" >&6; } 1732 1733# Is the header present? 1734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1735$as_echo_n "checking $2 presence... " >&6; } 1736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1737/* end confdefs.h. */ 1738#include <$2> 1739_ACEOF 1740if ac_fn_c_try_cpp "$LINENO"; then : 1741 ac_header_preproc=yes 1742else 1743 ac_header_preproc=no 1744fi 1745rm -f conftest.err conftest.i conftest.$ac_ext 1746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1747$as_echo "$ac_header_preproc" >&6; } 1748 1749# So? What about this header? 1750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1751 yes:no: ) 1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1753$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1755$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1756 ;; 1757 no:yes:* ) 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1759$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1761$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1763$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1765$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1767$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1768( $as_echo "## --------------------------------------- ## 1769## Report this to https://bugs.python.org/ ## 1770## --------------------------------------- ##" 1771 ) | sed "s/^/$as_me: WARNING: /" >&2 1772 ;; 1773esac 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1775$as_echo_n "checking for $2... " >&6; } 1776if eval \${$3+:} false; then : 1777 $as_echo_n "(cached) " >&6 1778else 1779 eval "$3=\$ac_header_compiler" 1780fi 1781eval ac_res=\$$3 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1783$as_echo "$ac_res" >&6; } 1784fi 1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1786 1787} # ac_fn_c_check_header_mongrel 1788 1789# ac_fn_c_try_run LINENO 1790# ---------------------- 1791# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1792# that executables *can* be run. 1793ac_fn_c_try_run () 1794{ 1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1796 if { { ac_try="$ac_link" 1797case "(($ac_try" in 1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1799 *) ac_try_echo=$ac_try;; 1800esac 1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1802$as_echo "$ac_try_echo"; } >&5 1803 (eval "$ac_link") 2>&5 1804 ac_status=$? 1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1807 { { case "(($ac_try" in 1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1809 *) ac_try_echo=$ac_try;; 1810esac 1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1812$as_echo "$ac_try_echo"; } >&5 1813 (eval "$ac_try") 2>&5 1814 ac_status=$? 1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1816 test $ac_status = 0; }; }; then : 1817 ac_retval=0 1818else 1819 $as_echo "$as_me: program exited with status $ac_status" >&5 1820 $as_echo "$as_me: failed program was:" >&5 1821sed 's/^/| /' conftest.$ac_ext >&5 1822 1823 ac_retval=$ac_status 1824fi 1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_c_try_run 1830 1831# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1832# ------------------------------------------------------- 1833# Tests whether HEADER exists and can be compiled using the include files in 1834# INCLUDES, setting the cache variable VAR accordingly. 1835ac_fn_c_check_header_compile () 1836{ 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1839$as_echo_n "checking for $2... " >&6; } 1840if eval \${$3+:} false; then : 1841 $as_echo_n "(cached) " >&6 1842else 1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1844/* end confdefs.h. */ 1845$4 1846#include <$2> 1847_ACEOF 1848if ac_fn_c_try_compile "$LINENO"; then : 1849 eval "$3=yes" 1850else 1851 eval "$3=no" 1852fi 1853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1854fi 1855eval ac_res=\$$3 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1857$as_echo "$ac_res" >&6; } 1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1859 1860} # ac_fn_c_check_header_compile 1861 1862# ac_fn_c_try_link LINENO 1863# ----------------------- 1864# Try to link conftest.$ac_ext, and return whether this succeeded. 1865ac_fn_c_try_link () 1866{ 1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1868 rm -f conftest.$ac_objext conftest$ac_exeext 1869 if { { ac_try="$ac_link" 1870case "(($ac_try" in 1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1872 *) ac_try_echo=$ac_try;; 1873esac 1874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1875$as_echo "$ac_try_echo"; } >&5 1876 (eval "$ac_link") 2>conftest.err 1877 ac_status=$? 1878 if test -s conftest.err; then 1879 grep -v '^ *+' conftest.err >conftest.er1 1880 cat conftest.er1 >&5 1881 mv -f conftest.er1 conftest.err 1882 fi 1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1884 test $ac_status = 0; } && { 1885 test -z "$ac_c_werror_flag" || 1886 test ! -s conftest.err 1887 } && test -s conftest$ac_exeext && { 1888 test "$cross_compiling" = yes || 1889 test -x conftest$ac_exeext 1890 }; then : 1891 ac_retval=0 1892else 1893 $as_echo "$as_me: failed program was:" >&5 1894sed 's/^/| /' conftest.$ac_ext >&5 1895 1896 ac_retval=1 1897fi 1898 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1899 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1900 # interfere with the next link command; also delete a directory that is 1901 # left behind by Apple's compiler. We do this before executing the actions. 1902 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1903 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1904 as_fn_set_status $ac_retval 1905 1906} # ac_fn_c_try_link 1907 1908# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1909# ------------------------------------------- 1910# Tests whether TYPE exists after having included INCLUDES, setting cache 1911# variable VAR accordingly. 1912ac_fn_c_check_type () 1913{ 1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1916$as_echo_n "checking for $2... " >&6; } 1917if eval \${$3+:} false; then : 1918 $as_echo_n "(cached) " >&6 1919else 1920 eval "$3=no" 1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1922/* end confdefs.h. */ 1923$4 1924int 1925main () 1926{ 1927if (sizeof ($2)) 1928 return 0; 1929 ; 1930 return 0; 1931} 1932_ACEOF 1933if ac_fn_c_try_compile "$LINENO"; then : 1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1935/* end confdefs.h. */ 1936$4 1937int 1938main () 1939{ 1940if (sizeof (($2))) 1941 return 0; 1942 ; 1943 return 0; 1944} 1945_ACEOF 1946if ac_fn_c_try_compile "$LINENO"; then : 1947 1948else 1949 eval "$3=yes" 1950fi 1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1952fi 1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1954fi 1955eval ac_res=\$$3 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1957$as_echo "$ac_res" >&6; } 1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1959 1960} # ac_fn_c_check_type 1961 1962# ac_fn_c_find_uintX_t LINENO BITS VAR 1963# ------------------------------------ 1964# Finds an unsigned integer type with width BITS, setting cache variable VAR 1965# accordingly. 1966ac_fn_c_find_uintX_t () 1967{ 1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 1970$as_echo_n "checking for uint$2_t... " >&6; } 1971if eval \${$3+:} false; then : 1972 $as_echo_n "(cached) " >&6 1973else 1974 eval "$3=no" 1975 # Order is important - never check a type that is potentially smaller 1976 # than half of the expected target width. 1977 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 1978 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1980/* end confdefs.h. */ 1981$ac_includes_default 1982int 1983main () 1984{ 1985static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 1986test_array [0] = 0; 1987return test_array [0]; 1988 1989 ; 1990 return 0; 1991} 1992_ACEOF 1993if ac_fn_c_try_compile "$LINENO"; then : 1994 case $ac_type in #( 1995 uint$2_t) : 1996 eval "$3=yes" ;; #( 1997 *) : 1998 eval "$3=\$ac_type" ;; 1999esac 2000fi 2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2002 if eval test \"x\$"$3"\" = x"no"; then : 2003 2004else 2005 break 2006fi 2007 done 2008fi 2009eval ac_res=\$$3 2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2011$as_echo "$ac_res" >&6; } 2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2013 2014} # ac_fn_c_find_uintX_t 2015 2016# ac_fn_c_find_intX_t LINENO BITS VAR 2017# ----------------------------------- 2018# Finds a signed integer type with width BITS, setting cache variable VAR 2019# accordingly. 2020ac_fn_c_find_intX_t () 2021{ 2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2024$as_echo_n "checking for int$2_t... " >&6; } 2025if eval \${$3+:} false; then : 2026 $as_echo_n "(cached) " >&6 2027else 2028 eval "$3=no" 2029 # Order is important - never check a type that is potentially smaller 2030 # than half of the expected target width. 2031 for ac_type in int$2_t 'int' 'long int' \ 2032 'long long int' 'short int' 'signed char'; do 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$ac_includes_default 2036 enum { N = $2 / 2 - 1 }; 2037int 2038main () 2039{ 2040static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2041test_array [0] = 0; 2042return test_array [0]; 2043 2044 ; 2045 return 0; 2046} 2047_ACEOF 2048if ac_fn_c_try_compile "$LINENO"; then : 2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2050/* end confdefs.h. */ 2051$ac_includes_default 2052 enum { N = $2 / 2 - 1 }; 2053int 2054main () 2055{ 2056static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2057 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2058test_array [0] = 0; 2059return test_array [0]; 2060 2061 ; 2062 return 0; 2063} 2064_ACEOF 2065if ac_fn_c_try_compile "$LINENO"; then : 2066 2067else 2068 case $ac_type in #( 2069 int$2_t) : 2070 eval "$3=yes" ;; #( 2071 *) : 2072 eval "$3=\$ac_type" ;; 2073esac 2074fi 2075rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2076fi 2077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2078 if eval test \"x\$"$3"\" = x"no"; then : 2079 2080else 2081 break 2082fi 2083 done 2084fi 2085eval ac_res=\$$3 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2087$as_echo "$ac_res" >&6; } 2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2089 2090} # ac_fn_c_find_intX_t 2091 2092# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2093# -------------------------------------------- 2094# Tries to find the compile-time value of EXPR in a program that includes 2095# INCLUDES, setting VAR accordingly. Returns whether the value could be 2096# computed 2097ac_fn_c_compute_int () 2098{ 2099 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2100 if test "$cross_compiling" = yes; then 2101 # Depending upon the size, compute the lo and hi bounds. 2102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2103/* end confdefs.h. */ 2104$4 2105int 2106main () 2107{ 2108static int test_array [1 - 2 * !(($2) >= 0)]; 2109test_array [0] = 0; 2110return test_array [0]; 2111 2112 ; 2113 return 0; 2114} 2115_ACEOF 2116if ac_fn_c_try_compile "$LINENO"; then : 2117 ac_lo=0 ac_mid=0 2118 while :; do 2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120/* end confdefs.h. */ 2121$4 2122int 2123main () 2124{ 2125static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2126test_array [0] = 0; 2127return test_array [0]; 2128 2129 ; 2130 return 0; 2131} 2132_ACEOF 2133if ac_fn_c_try_compile "$LINENO"; then : 2134 ac_hi=$ac_mid; break 2135else 2136 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2137 if test $ac_lo -le $ac_mid; then 2138 ac_lo= ac_hi= 2139 break 2140 fi 2141 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2142fi 2143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2144 done 2145else 2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2147/* end confdefs.h. */ 2148$4 2149int 2150main () 2151{ 2152static int test_array [1 - 2 * !(($2) < 0)]; 2153test_array [0] = 0; 2154return test_array [0]; 2155 2156 ; 2157 return 0; 2158} 2159_ACEOF 2160if ac_fn_c_try_compile "$LINENO"; then : 2161 ac_hi=-1 ac_mid=-1 2162 while :; do 2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2164/* end confdefs.h. */ 2165$4 2166int 2167main () 2168{ 2169static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2170test_array [0] = 0; 2171return test_array [0]; 2172 2173 ; 2174 return 0; 2175} 2176_ACEOF 2177if ac_fn_c_try_compile "$LINENO"; then : 2178 ac_lo=$ac_mid; break 2179else 2180 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2181 if test $ac_mid -le $ac_hi; then 2182 ac_lo= ac_hi= 2183 break 2184 fi 2185 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2186fi 2187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2188 done 2189else 2190 ac_lo= ac_hi= 2191fi 2192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2193fi 2194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2195# Binary search between lo and hi bounds. 2196while test "x$ac_lo" != "x$ac_hi"; do 2197 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2199/* end confdefs.h. */ 2200$4 2201int 2202main () 2203{ 2204static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2205test_array [0] = 0; 2206return test_array [0]; 2207 2208 ; 2209 return 0; 2210} 2211_ACEOF 2212if ac_fn_c_try_compile "$LINENO"; then : 2213 ac_hi=$ac_mid 2214else 2215 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2216fi 2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2218done 2219case $ac_lo in #(( 2220?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2221'') ac_retval=1 ;; 2222esac 2223 else 2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2225/* end confdefs.h. */ 2226$4 2227static long int longval () { return $2; } 2228static unsigned long int ulongval () { return $2; } 2229#include <stdio.h> 2230#include <stdlib.h> 2231int 2232main () 2233{ 2234 2235 FILE *f = fopen ("conftest.val", "w"); 2236 if (! f) 2237 return 1; 2238 if (($2) < 0) 2239 { 2240 long int i = longval (); 2241 if (i != ($2)) 2242 return 1; 2243 fprintf (f, "%ld", i); 2244 } 2245 else 2246 { 2247 unsigned long int i = ulongval (); 2248 if (i != ($2)) 2249 return 1; 2250 fprintf (f, "%lu", i); 2251 } 2252 /* Do not output a trailing newline, as this causes \r\n confusion 2253 on some platforms. */ 2254 return ferror (f) || fclose (f) != 0; 2255 2256 ; 2257 return 0; 2258} 2259_ACEOF 2260if ac_fn_c_try_run "$LINENO"; then : 2261 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2262else 2263 ac_retval=1 2264fi 2265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2266 conftest.$ac_objext conftest.beam conftest.$ac_ext 2267rm -f conftest.val 2268 2269 fi 2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2271 as_fn_set_status $ac_retval 2272 2273} # ac_fn_c_compute_int 2274 2275# ac_fn_c_check_func LINENO FUNC VAR 2276# ---------------------------------- 2277# Tests whether FUNC exists, setting the cache variable VAR accordingly 2278ac_fn_c_check_func () 2279{ 2280 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2282$as_echo_n "checking for $2... " >&6; } 2283if eval \${$3+:} false; then : 2284 $as_echo_n "(cached) " >&6 2285else 2286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2287/* end confdefs.h. */ 2288/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2289 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2290#define $2 innocuous_$2 2291 2292/* System header to define __stub macros and hopefully few prototypes, 2293 which can conflict with char $2 (); below. 2294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2295 <limits.h> exists even on freestanding compilers. */ 2296 2297#ifdef __STDC__ 2298# include <limits.h> 2299#else 2300# include <assert.h> 2301#endif 2302 2303#undef $2 2304 2305/* Override any GCC internal prototype to avoid an error. 2306 Use char because int might match the return type of a GCC 2307 builtin and then its argument prototype would still apply. */ 2308#ifdef __cplusplus 2309extern "C" 2310#endif 2311char $2 (); 2312/* The GNU C library defines this for functions which it implements 2313 to always fail with ENOSYS. Some functions are actually named 2314 something starting with __ and the normal name is an alias. */ 2315#if defined __stub_$2 || defined __stub___$2 2316choke me 2317#endif 2318 2319int 2320main () 2321{ 2322return $2 (); 2323 ; 2324 return 0; 2325} 2326_ACEOF 2327if ac_fn_c_try_link "$LINENO"; then : 2328 eval "$3=yes" 2329else 2330 eval "$3=no" 2331fi 2332rm -f core conftest.err conftest.$ac_objext \ 2333 conftest$ac_exeext conftest.$ac_ext 2334fi 2335eval ac_res=\$$3 2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2337$as_echo "$ac_res" >&6; } 2338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2339 2340} # ac_fn_c_check_func 2341 2342# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2343# ---------------------------------------------------- 2344# Tries to find if the field MEMBER exists in type AGGR, after including 2345# INCLUDES, setting cache variable VAR accordingly. 2346ac_fn_c_check_member () 2347{ 2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2350$as_echo_n "checking for $2.$3... " >&6; } 2351if eval \${$4+:} false; then : 2352 $as_echo_n "(cached) " >&6 2353else 2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2355/* end confdefs.h. */ 2356$5 2357int 2358main () 2359{ 2360static $2 ac_aggr; 2361if (ac_aggr.$3) 2362return 0; 2363 ; 2364 return 0; 2365} 2366_ACEOF 2367if ac_fn_c_try_compile "$LINENO"; then : 2368 eval "$4=yes" 2369else 2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2371/* end confdefs.h. */ 2372$5 2373int 2374main () 2375{ 2376static $2 ac_aggr; 2377if (sizeof ac_aggr.$3) 2378return 0; 2379 ; 2380 return 0; 2381} 2382_ACEOF 2383if ac_fn_c_try_compile "$LINENO"; then : 2384 eval "$4=yes" 2385else 2386 eval "$4=no" 2387fi 2388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2389fi 2390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2391fi 2392eval ac_res=\$$4 2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2394$as_echo "$ac_res" >&6; } 2395 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2396 2397} # ac_fn_c_check_member 2398 2399# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2400# --------------------------------------------- 2401# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2402# accordingly. 2403ac_fn_c_check_decl () 2404{ 2405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2406 as_decl_name=`echo $2|sed 's/ *(.*//'` 2407 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2409$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2410if eval \${$3+:} false; then : 2411 $as_echo_n "(cached) " >&6 2412else 2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2414/* end confdefs.h. */ 2415$4 2416int 2417main () 2418{ 2419#ifndef $as_decl_name 2420#ifdef __cplusplus 2421 (void) $as_decl_use; 2422#else 2423 (void) $as_decl_name; 2424#endif 2425#endif 2426 2427 ; 2428 return 0; 2429} 2430_ACEOF 2431if ac_fn_c_try_compile "$LINENO"; then : 2432 eval "$3=yes" 2433else 2434 eval "$3=no" 2435fi 2436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2437fi 2438eval ac_res=\$$3 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2440$as_echo "$ac_res" >&6; } 2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2442 2443} # ac_fn_c_check_decl 2444cat >config.log <<_ACEOF 2445This file contains any messages produced by compilers while 2446running configure, to aid debugging if configure makes a mistake. 2447 2448It was created by python $as_me 2.7, which was 2449generated by GNU Autoconf 2.69. Invocation command line was 2450 2451 $ $0 $@ 2452 2453_ACEOF 2454exec 5>>config.log 2455{ 2456cat <<_ASUNAME 2457## --------- ## 2458## Platform. ## 2459## --------- ## 2460 2461hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2462uname -m = `(uname -m) 2>/dev/null || echo unknown` 2463uname -r = `(uname -r) 2>/dev/null || echo unknown` 2464uname -s = `(uname -s) 2>/dev/null || echo unknown` 2465uname -v = `(uname -v) 2>/dev/null || echo unknown` 2466 2467/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2468/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2469 2470/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2471/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2472/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2473/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2474/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2475/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2476/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2477 2478_ASUNAME 2479 2480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2481for as_dir in $PATH 2482do 2483 IFS=$as_save_IFS 2484 test -z "$as_dir" && as_dir=. 2485 $as_echo "PATH: $as_dir" 2486 done 2487IFS=$as_save_IFS 2488 2489} >&5 2490 2491cat >&5 <<_ACEOF 2492 2493 2494## ----------- ## 2495## Core tests. ## 2496## ----------- ## 2497 2498_ACEOF 2499 2500 2501# Keep a trace of the command line. 2502# Strip out --no-create and --no-recursion so they do not pile up. 2503# Strip out --silent because we don't want to record it for future runs. 2504# Also quote any args containing shell meta-characters. 2505# Make two passes to allow for proper duplicate-argument suppression. 2506ac_configure_args= 2507ac_configure_args0= 2508ac_configure_args1= 2509ac_must_keep_next=false 2510for ac_pass in 1 2 2511do 2512 for ac_arg 2513 do 2514 case $ac_arg in 2515 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2516 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2517 | -silent | --silent | --silen | --sile | --sil) 2518 continue ;; 2519 *\'*) 2520 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2521 esac 2522 case $ac_pass in 2523 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2524 2) 2525 as_fn_append ac_configure_args1 " '$ac_arg'" 2526 if test $ac_must_keep_next = true; then 2527 ac_must_keep_next=false # Got value, back to normal. 2528 else 2529 case $ac_arg in 2530 *=* | --config-cache | -C | -disable-* | --disable-* \ 2531 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2532 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2533 | -with-* | --with-* | -without-* | --without-* | --x) 2534 case "$ac_configure_args0 " in 2535 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2536 esac 2537 ;; 2538 -* ) ac_must_keep_next=true ;; 2539 esac 2540 fi 2541 as_fn_append ac_configure_args " '$ac_arg'" 2542 ;; 2543 esac 2544 done 2545done 2546{ ac_configure_args0=; unset ac_configure_args0;} 2547{ ac_configure_args1=; unset ac_configure_args1;} 2548 2549# When interrupted or exit'd, cleanup temporary files, and complete 2550# config.log. We remove comments because anyway the quotes in there 2551# would cause problems or look ugly. 2552# WARNING: Use '\'' to represent an apostrophe within the trap. 2553# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2554trap 'exit_status=$? 2555 # Save into config.log some information that might help in debugging. 2556 { 2557 echo 2558 2559 $as_echo "## ---------------- ## 2560## Cache variables. ## 2561## ---------------- ##" 2562 echo 2563 # The following way of writing the cache mishandles newlines in values, 2564( 2565 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2566 eval ac_val=\$$ac_var 2567 case $ac_val in #( 2568 *${as_nl}*) 2569 case $ac_var in #( 2570 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2571$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2572 esac 2573 case $ac_var in #( 2574 _ | IFS | as_nl) ;; #( 2575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2576 *) { eval $ac_var=; unset $ac_var;} ;; 2577 esac ;; 2578 esac 2579 done 2580 (set) 2>&1 | 2581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2582 *${as_nl}ac_space=\ *) 2583 sed -n \ 2584 "s/'\''/'\''\\\\'\'''\''/g; 2585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2586 ;; #( 2587 *) 2588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2589 ;; 2590 esac | 2591 sort 2592) 2593 echo 2594 2595 $as_echo "## ----------------- ## 2596## Output variables. ## 2597## ----------------- ##" 2598 echo 2599 for ac_var in $ac_subst_vars 2600 do 2601 eval ac_val=\$$ac_var 2602 case $ac_val in 2603 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2604 esac 2605 $as_echo "$ac_var='\''$ac_val'\''" 2606 done | sort 2607 echo 2608 2609 if test -n "$ac_subst_files"; then 2610 $as_echo "## ------------------- ## 2611## File substitutions. ## 2612## ------------------- ##" 2613 echo 2614 for ac_var in $ac_subst_files 2615 do 2616 eval ac_val=\$$ac_var 2617 case $ac_val in 2618 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2619 esac 2620 $as_echo "$ac_var='\''$ac_val'\''" 2621 done | sort 2622 echo 2623 fi 2624 2625 if test -s confdefs.h; then 2626 $as_echo "## ----------- ## 2627## confdefs.h. ## 2628## ----------- ##" 2629 echo 2630 cat confdefs.h 2631 echo 2632 fi 2633 test "$ac_signal" != 0 && 2634 $as_echo "$as_me: caught signal $ac_signal" 2635 $as_echo "$as_me: exit $exit_status" 2636 } >&5 2637 rm -f core *.core core.conftest.* && 2638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2639 exit $exit_status 2640' 0 2641for ac_signal in 1 2 13 15; do 2642 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2643done 2644ac_signal=0 2645 2646# confdefs.h avoids OS command line length limits that DEFS can exceed. 2647rm -f -r conftest* confdefs.h 2648 2649$as_echo "/* confdefs.h */" > confdefs.h 2650 2651# Predefined preprocessor variables. 2652 2653cat >>confdefs.h <<_ACEOF 2654#define PACKAGE_NAME "$PACKAGE_NAME" 2655_ACEOF 2656 2657cat >>confdefs.h <<_ACEOF 2658#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2659_ACEOF 2660 2661cat >>confdefs.h <<_ACEOF 2662#define PACKAGE_VERSION "$PACKAGE_VERSION" 2663_ACEOF 2664 2665cat >>confdefs.h <<_ACEOF 2666#define PACKAGE_STRING "$PACKAGE_STRING" 2667_ACEOF 2668 2669cat >>confdefs.h <<_ACEOF 2670#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2671_ACEOF 2672 2673cat >>confdefs.h <<_ACEOF 2674#define PACKAGE_URL "$PACKAGE_URL" 2675_ACEOF 2676 2677 2678# Let the site file select an alternate cache file if it wants to. 2679# Prefer an explicitly selected file to automatically selected ones. 2680ac_site_file1=NONE 2681ac_site_file2=NONE 2682if test -n "$CONFIG_SITE"; then 2683 # We do not want a PATH search for config.site. 2684 case $CONFIG_SITE in #(( 2685 -*) ac_site_file1=./$CONFIG_SITE;; 2686 */*) ac_site_file1=$CONFIG_SITE;; 2687 *) ac_site_file1=./$CONFIG_SITE;; 2688 esac 2689elif test "x$prefix" != xNONE; then 2690 ac_site_file1=$prefix/share/config.site 2691 ac_site_file2=$prefix/etc/config.site 2692else 2693 ac_site_file1=$ac_default_prefix/share/config.site 2694 ac_site_file2=$ac_default_prefix/etc/config.site 2695fi 2696for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2697do 2698 test "x$ac_site_file" = xNONE && continue 2699 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2701$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2702 sed 's/^/| /' "$ac_site_file" >&5 2703 . "$ac_site_file" \ 2704 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2705$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2706as_fn_error $? "failed to load site script $ac_site_file 2707See \`config.log' for more details" "$LINENO" 5; } 2708 fi 2709done 2710 2711if test -r "$cache_file"; then 2712 # Some versions of bash will fail to source /dev/null (special files 2713 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2714 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2715 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2716$as_echo "$as_me: loading cache $cache_file" >&6;} 2717 case $cache_file in 2718 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2719 *) . "./$cache_file";; 2720 esac 2721 fi 2722else 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2724$as_echo "$as_me: creating cache $cache_file" >&6;} 2725 >$cache_file 2726fi 2727 2728# Check that the precious variables saved in the cache have kept the same 2729# value. 2730ac_cache_corrupted=false 2731for ac_var in $ac_precious_vars; do 2732 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2733 eval ac_new_set=\$ac_env_${ac_var}_set 2734 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2735 eval ac_new_val=\$ac_env_${ac_var}_value 2736 case $ac_old_set,$ac_new_set in 2737 set,) 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2739$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2740 ac_cache_corrupted=: ;; 2741 ,set) 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2743$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2744 ac_cache_corrupted=: ;; 2745 ,);; 2746 *) 2747 if test "x$ac_old_val" != "x$ac_new_val"; then 2748 # differences in whitespace do not lead to failure. 2749 ac_old_val_w=`echo x $ac_old_val` 2750 ac_new_val_w=`echo x $ac_new_val` 2751 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2752 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2753$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2754 ac_cache_corrupted=: 2755 else 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2757$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2758 eval $ac_var=\$ac_old_val 2759 fi 2760 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2761$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2762 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2763$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2764 fi;; 2765 esac 2766 # Pass precious variables to config.status. 2767 if test "$ac_new_set" = set; then 2768 case $ac_new_val in 2769 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2770 *) ac_arg=$ac_var=$ac_new_val ;; 2771 esac 2772 case " $ac_configure_args " in 2773 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2774 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2775 esac 2776 fi 2777done 2778if $ac_cache_corrupted; then 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2780$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2782$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2783 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2784fi 2785## -------------------- ## 2786## Main body of script. ## 2787## -------------------- ## 2788 2789ac_ext=c 2790ac_cpp='$CPP $CPPFLAGS' 2791ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2792ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2793ac_compiler_gnu=$ac_cv_c_compiler_gnu 2794 2795 2796 2797ac_config_headers="$ac_config_headers pyconfig.h" 2798 2799 2800ac_aux_dir= 2801for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2802 if test -f "$ac_dir/install-sh"; then 2803 ac_aux_dir=$ac_dir 2804 ac_install_sh="$ac_aux_dir/install-sh -c" 2805 break 2806 elif test -f "$ac_dir/install.sh"; then 2807 ac_aux_dir=$ac_dir 2808 ac_install_sh="$ac_aux_dir/install.sh -c" 2809 break 2810 elif test -f "$ac_dir/shtool"; then 2811 ac_aux_dir=$ac_dir 2812 ac_install_sh="$ac_aux_dir/shtool install -c" 2813 break 2814 fi 2815done 2816if test -z "$ac_aux_dir"; then 2817 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2818fi 2819 2820# These three variables are undocumented and unsupported, 2821# and are intended to be withdrawn in a future Autoconf release. 2822# They can cause serious problems if a builder's source tree is in a directory 2823# whose full name contains unusual characters. 2824ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2825ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2826ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2827 2828 2829# Make sure we can run config.sub. 2830$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2831 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2832 2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2834$as_echo_n "checking build system type... " >&6; } 2835if ${ac_cv_build+:} false; then : 2836 $as_echo_n "(cached) " >&6 2837else 2838 ac_build_alias=$build_alias 2839test "x$ac_build_alias" = x && 2840 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2841test "x$ac_build_alias" = x && 2842 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2843ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2844 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2845 2846fi 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2848$as_echo "$ac_cv_build" >&6; } 2849case $ac_cv_build in 2850*-*-*) ;; 2851*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2852esac 2853build=$ac_cv_build 2854ac_save_IFS=$IFS; IFS='-' 2855set x $ac_cv_build 2856shift 2857build_cpu=$1 2858build_vendor=$2 2859shift; shift 2860# Remember, the first character of IFS is used to create $*, 2861# except with old shells: 2862build_os=$* 2863IFS=$ac_save_IFS 2864case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2865 2866 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2868$as_echo_n "checking host system type... " >&6; } 2869if ${ac_cv_host+:} false; then : 2870 $as_echo_n "(cached) " >&6 2871else 2872 if test "x$host_alias" = x; then 2873 ac_cv_host=$ac_cv_build 2874else 2875 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2876 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2877fi 2878 2879fi 2880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2881$as_echo "$ac_cv_host" >&6; } 2882case $ac_cv_host in 2883*-*-*) ;; 2884*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2885esac 2886host=$ac_cv_host 2887ac_save_IFS=$IFS; IFS='-' 2888set x $ac_cv_host 2889shift 2890host_cpu=$1 2891host_vendor=$2 2892shift; shift 2893# Remember, the first character of IFS is used to create $*, 2894# except with old shells: 2895host_os=$* 2896IFS=$ac_save_IFS 2897case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2898 2899 2900 2901 2902 2903# pybuilddir.txt will be created by --generate-posix-vars in the Makefile 2904rm -f pybuilddir.txt 2905 2906for ac_prog in python$PACKAGE_VERSION python3 python 2907do 2908 # Extract the first word of "$ac_prog", so it can be a program name with args. 2909set dummy $ac_prog; ac_word=$2 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2911$as_echo_n "checking for $ac_word... " >&6; } 2912if ${ac_cv_prog_PYTHON_FOR_REGEN+:} false; then : 2913 $as_echo_n "(cached) " >&6 2914else 2915 if test -n "$PYTHON_FOR_REGEN"; then 2916 ac_cv_prog_PYTHON_FOR_REGEN="$PYTHON_FOR_REGEN" # Let the user override the test. 2917else 2918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2919for as_dir in $PATH 2920do 2921 IFS=$as_save_IFS 2922 test -z "$as_dir" && as_dir=. 2923 for ac_exec_ext in '' $ac_executable_extensions; do 2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2925 ac_cv_prog_PYTHON_FOR_REGEN="$ac_prog" 2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2927 break 2 2928 fi 2929done 2930 done 2931IFS=$as_save_IFS 2932 2933fi 2934fi 2935PYTHON_FOR_REGEN=$ac_cv_prog_PYTHON_FOR_REGEN 2936if test -n "$PYTHON_FOR_REGEN"; then 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_FOR_REGEN" >&5 2938$as_echo "$PYTHON_FOR_REGEN" >&6; } 2939else 2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2941$as_echo "no" >&6; } 2942fi 2943 2944 2945 test -n "$PYTHON_FOR_REGEN" && break 2946done 2947test -n "$PYTHON_FOR_REGEN" || PYTHON_FOR_REGEN="python3" 2948 2949 2950 2951if test "$cross_compiling" = yes; then 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python interpreter for cross build" >&5 2953$as_echo_n "checking for python interpreter for cross build... " >&6; } 2954 if test -z "$PYTHON_FOR_BUILD"; then 2955 for interp in python$PACKAGE_VERSION python2 python; do 2956 which $interp >/dev/null 2>&1 || continue 2957 if $interp -c 'import sys;sys.exit(not (sys.version_info[:2] >= (2,7) and sys.version_info[0] < 3))'; then 2958 break 2959 fi 2960 interp= 2961 done 2962 if test x$interp = x; then 2963 as_fn_error $? "python$PACKAGE_VERSION interpreter not found" "$LINENO" 5 2964 fi 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $interp" >&5 2966$as_echo "$interp" >&6; } 2967 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:$(srcdir)/Lib/$(PLATDIR) '$interp 2968 fi 2969elif test "$cross_compiling" = maybe; then 2970 as_fn_error $? "Cross compiling required --host=HOST-TUPLE and --build=ARCH" "$LINENO" 5 2971else 2972 PYTHON_FOR_BUILD='./$(BUILDPYTHON) -E' 2973fi 2974 2975 2976 2977if test "$prefix" != "/"; then 2978 prefix=`echo "$prefix" | sed -e 's/\/$//g'` 2979fi 2980 2981 2982 2983 2984# We don't use PACKAGE_ variables, and they cause conflicts 2985# with other autoconf-based packages that include Python.h 2986grep -v 'define PACKAGE_' <confdefs.h >confdefs.h.new 2987rm confdefs.h 2988mv confdefs.h.new confdefs.h 2989 2990 2991VERSION=2.7 2992 2993 2994SOVERSION=1.0 2995 2996# The later defininition of _XOPEN_SOURCE disables certain features 2997# on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone). 2998 2999$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3000 3001 3002# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3003# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable 3004# them. 3005 3006$as_echo "#define _NETBSD_SOURCE 1" >>confdefs.h 3007 3008 3009# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3010# u_int on Irix 5.3. Defining _BSD_TYPES brings it back. 3011 3012$as_echo "#define _BSD_TYPES 1" >>confdefs.h 3013 3014 3015# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables 3016# certain features on Mac OS X, so we need _DARWIN_C_SOURCE to re-enable 3017# them. 3018 3019$as_echo "#define _DARWIN_C_SOURCE 1" >>confdefs.h 3020 3021 3022 3023define_xopen_source=yes 3024 3025# Arguments passed to configure. 3026 3027CONFIG_ARGS="$ac_configure_args" 3028 3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-universalsdk" >&5 3030$as_echo_n "checking for --enable-universalsdk... " >&6; } 3031# Check whether --enable-universalsdk was given. 3032if test "${enable_universalsdk+set}" = set; then : 3033 enableval=$enable_universalsdk; 3034 case $enableval in 3035 yes) 3036 # Locate the best usable SDK, see Mac/README for more 3037 # information 3038 enableval="`/usr/bin/xcodebuild -version -sdk macosx Path 2>/dev/null`" 3039 if ! ( echo $enableval | grep -E '\.sdk' 1>/dev/null ) 3040 then 3041 enableval=/Developer/SDKs/MacOSX10.4u.sdk 3042 if test ! -d "${enableval}" 3043 then 3044 enableval=/ 3045 fi 3046 fi 3047 ;; 3048 esac 3049 case $enableval in 3050 no) 3051 UNIVERSALSDK= 3052 enable_universalsdk= 3053 ;; 3054 *) 3055 UNIVERSALSDK=$enableval 3056 if test ! -d "${UNIVERSALSDK}" 3057 then 3058 as_fn_error $? "--enable-universalsdk specifies non-existing SDK: ${UNIVERSALSDK}" "$LINENO" 5 3059 fi 3060 ;; 3061 esac 3062 3063 3064else 3065 3066 UNIVERSALSDK= 3067 enable_universalsdk= 3068 3069fi 3070 3071if test -n "${UNIVERSALSDK}" 3072then 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSALSDK}" >&5 3074$as_echo "${UNIVERSALSDK}" >&6; } 3075else 3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3077$as_echo "no" >&6; } 3078fi 3079 3080 3081 3082ARCH_RUN_32BIT="" 3083 3084# For backward compatibility reasons we prefer to select '32-bit' if available, 3085# otherwise use 'intel' 3086UNIVERSAL_ARCHS="32-bit" 3087if test "`uname -s`" = "Darwin" 3088then 3089 if test -n "${UNIVERSALSDK}" 3090 then 3091 if test -z "`/usr/bin/file -L "${UNIVERSALSDK}/usr/lib/libSystem.dylib" | grep ppc`" 3092 then 3093 UNIVERSAL_ARCHS="intel" 3094 fi 3095 fi 3096fi 3097 3098 3099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-universal-archs" >&5 3100$as_echo_n "checking for --with-universal-archs... " >&6; } 3101 3102# Check whether --with-universal-archs was given. 3103if test "${with_universal_archs+set}" = set; then : 3104 withval=$with_universal_archs; 3105 UNIVERSAL_ARCHS="$withval" 3106 3107fi 3108 3109if test -n "${UNIVERSALSDK}" 3110then 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${UNIVERSAL_ARCHS}" >&5 3112$as_echo "${UNIVERSAL_ARCHS}" >&6; } 3113else 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3115$as_echo "no" >&6; } 3116fi 3117 3118 3119# Check whether --with-framework-name was given. 3120if test "${with_framework_name+set}" = set; then : 3121 withval=$with_framework_name; 3122 if test "${enable_framework}"; then 3123 : 3124 else 3125 as_fn_error $? "--with-framework-name without --enable-framework. See Mac/README" "$LINENO" 5 3126 fi 3127 PYTHONFRAMEWORK=${withval} 3128 PYTHONFRAMEWORKDIR=${withval}.framework 3129 PYTHONFRAMEWORKIDENTIFIER=org.python.`echo $withval | tr 'A-Z' 'a-z'` 3130 3131else 3132 3133 PYTHONFRAMEWORK=Python 3134 PYTHONFRAMEWORKDIR=Python.framework 3135 PYTHONFRAMEWORKIDENTIFIER=org.python.python 3136 3137fi 3138 3139# Check whether --enable-framework was given. 3140if test "${enable_framework+set}" = set; then : 3141 enableval=$enable_framework; 3142 case $enableval in 3143 yes) 3144 enableval=/Library/Frameworks 3145 esac 3146 case $enableval in 3147 no) 3148 PYTHONFRAMEWORK= 3149 PYTHONFRAMEWORKDIR=no-framework 3150 PYTHONFRAMEWORKPREFIX= 3151 PYTHONFRAMEWORKINSTALLDIR= 3152 FRAMEWORKINSTALLFIRST= 3153 FRAMEWORKINSTALLLAST= 3154 FRAMEWORKALTINSTALLFIRST= 3155 FRAMEWORKALTINSTALLLAST= 3156 if test "x${prefix}" = "xNONE"; then 3157 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3158 else 3159 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3160 fi 3161 enable_framework= 3162 ;; 3163 *) 3164 PYTHONFRAMEWORKPREFIX="${enableval}" 3165 PYTHONFRAMEWORKINSTALLDIR=$PYTHONFRAMEWORKPREFIX/$PYTHONFRAMEWORKDIR 3166 FRAMEWORKINSTALLFIRST="frameworkinstallstructure" 3167 FRAMEWORKALTINSTALLFIRST="frameworkinstallstructure bininstall maninstall" 3168 FRAMEWORKINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkinstallunixtools" 3169 FRAMEWORKALTINSTALLLAST="frameworkinstallmaclib frameworkinstallapps frameworkaltinstallunixtools" 3170 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3171 3172 if test "x${prefix}" = "xNONE" ; then 3173 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3174 3175 else 3176 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3177 fi 3178 3179 case "${enableval}" in 3180 /System*) 3181 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3182 if test "${prefix}" = "NONE" ; then 3183 # See below 3184 FRAMEWORKUNIXTOOLSPREFIX="/usr" 3185 fi 3186 ;; 3187 3188 /Library*) 3189 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3190 ;; 3191 3192 */Library/Frameworks) 3193 MDIR="`dirname "${enableval}"`" 3194 MDIR="`dirname "${MDIR}"`" 3195 FRAMEWORKINSTALLAPPSPREFIX="${MDIR}/Applications" 3196 3197 if test "${prefix}" = "NONE"; then 3198 # User hasn't specified the 3199 # --prefix option, but wants to install 3200 # the framework in a non-default location, 3201 # ensure that the compatibility links get 3202 # installed relative to that prefix as well 3203 # instead of in /usr/local. 3204 FRAMEWORKUNIXTOOLSPREFIX="${MDIR}" 3205 fi 3206 ;; 3207 3208 *) 3209 FRAMEWORKINSTALLAPPSPREFIX="/Applications" 3210 ;; 3211 esac 3212 3213 prefix=$PYTHONFRAMEWORKINSTALLDIR/Versions/$VERSION 3214 3215 # Add files for Mac specific code to the list of output 3216 # files: 3217 ac_config_files="$ac_config_files Mac/Makefile" 3218 3219 ac_config_files="$ac_config_files Mac/PythonLauncher/Makefile" 3220 3221 ac_config_files="$ac_config_files Mac/IDLE/Makefile" 3222 3223 ac_config_files="$ac_config_files Mac/Resources/framework/Info.plist" 3224 3225 ac_config_files="$ac_config_files Mac/Resources/app/Info.plist" 3226 3227 esac 3228 3229else 3230 3231 PYTHONFRAMEWORK= 3232 PYTHONFRAMEWORKDIR=no-framework 3233 PYTHONFRAMEWORKPREFIX= 3234 PYTHONFRAMEWORKINSTALLDIR= 3235 FRAMEWORKINSTALLFIRST= 3236 FRAMEWORKINSTALLLAST= 3237 FRAMEWORKALTINSTALLFIRST= 3238 FRAMEWORKALTINSTALLLAST= 3239 if test "x${prefix}" = "xNONE" ; then 3240 FRAMEWORKUNIXTOOLSPREFIX="${ac_default_prefix}" 3241 else 3242 FRAMEWORKUNIXTOOLSPREFIX="${prefix}" 3243 fi 3244 enable_framework= 3245 3246 3247fi 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261##AC_ARG_WITH(dyld, 3262## AS_HELP_STRING([--with-dyld], 3263## [Use (OpenStep|Rhapsody) dynamic linker])) 3264## 3265# Set name for machine-dependent library files 3266 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP" >&5 3268$as_echo_n "checking MACHDEP... " >&6; } 3269if test -z "$MACHDEP" 3270then 3271 # avoid using uname for cross builds 3272 if test "$cross_compiling" = yes; then 3273 # ac_sys_system and ac_sys_release are only used for setting 3274 # `define_xopen_source' in the case statement below. For the 3275 # current supported cross builds, this macro is not adjusted. 3276 case "$host" in 3277 *-*-linux*) 3278 ac_sys_system=Linux 3279 ;; 3280 *-*-cygwin*) 3281 ac_sys_system=Cygwin 3282 ;; 3283 *) 3284 # for now, limit cross builds to known configurations 3285 MACHDEP="unknown" 3286 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3287 esac 3288 ac_sys_release= 3289 else 3290 ac_sys_system=`uname -s` 3291 if test "$ac_sys_system" = "AIX" \ 3292 -o "$ac_sys_system" = "UnixWare" -o "$ac_sys_system" = "OpenUNIX"; then 3293 ac_sys_release=`uname -v` 3294 else 3295 ac_sys_release="6.3-DPORTS" 3296 fi 3297 fi 3298 ac_md_system=`echo $ac_sys_system | 3299 tr -d '/ ' | tr '[A-Z]' '[a-z]'` 3300 ac_md_release=`echo $ac_sys_release | 3301 tr -d '/ ' | sed 's/^[A-Z]\.//' | sed 's/\..*//'` 3302 MACHDEP="$ac_md_system$ac_md_release" 3303 3304 case $MACHDEP in 3305 linux*) MACHDEP="linux2";; 3306 cygwin*) MACHDEP="cygwin";; 3307 darwin*) MACHDEP="darwin";; 3308 atheos*) MACHDEP="atheos";; 3309 irix646) MACHDEP="irix6";; 3310 '') MACHDEP="unknown";; 3311 esac 3312fi 3313 3314 3315if test "$cross_compiling" = yes; then 3316 case "$host" in 3317 *-*-linux*) 3318 case "$host_cpu" in 3319 arm*) 3320 _host_cpu=arm 3321 ;; 3322 *) 3323 _host_cpu=$host_cpu 3324 esac 3325 ;; 3326 *-*-cygwin*) 3327 _host_cpu= 3328 ;; 3329 *) 3330 # for now, limit cross builds to known configurations 3331 MACHDEP="unknown" 3332 as_fn_error $? "cross build not supported for $host" "$LINENO" 5 3333 esac 3334 _PYTHON_HOST_PLATFORM="$MACHDEP${_host_cpu:+-$_host_cpu}" 3335fi 3336 3337# Some systems cannot stand _XOPEN_SOURCE being defined at all; they 3338# disable features if it is defined, without any means to access these 3339# features as extensions. For these systems, we skip the definition of 3340# _XOPEN_SOURCE. Before adding a system to the list to gain access to 3341# some feature, make sure there is no alternative way to access this 3342# feature. Also, when using wildcards, make sure you have verified the 3343# need for not defining _XOPEN_SOURCE on all systems matching the 3344# wildcard, and that the wildcard does not include future systems 3345# (which may remove their limitations). 3346case $ac_sys_system/$ac_sys_release in 3347 # On OpenBSD, select(2) is not available if _XOPEN_SOURCE is defined, 3348 # even though select is a POSIX function. Reported by J. Ribbens. 3349 # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. 3350 # In addition, Stefan Krah confirms that issue #1244610 exists through 3351 # OpenBSD 4.6, but is fixed in 4.7. 3352 OpenBSD/2.* | OpenBSD/3.* | OpenBSD/4.[0123456]) 3353 define_xopen_source=no 3354 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3355 # also defined. This can be overridden by defining _BSD_SOURCE 3356 # As this has a different meaning on Linux, only define it on OpenBSD 3357 3358$as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3359 3360 ;; 3361 OpenBSD/*) 3362 # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is 3363 # also defined. This can be overridden by defining _BSD_SOURCE 3364 # As this has a different meaning on Linux, only define it on OpenBSD 3365 3366$as_echo "#define _BSD_SOURCE 1" >>confdefs.h 3367 3368 ;; 3369 # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of 3370 # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by 3371 # Marc Recht 3372 NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) 3373 define_xopen_source=no;; 3374 # From the perspective of Solaris, _XOPEN_SOURCE is not so much a 3375 # request to enable features supported by the standard as a request 3376 # to disable features not supported by the standard. The best way 3377 # for Python to use Solaris is simply to leave _XOPEN_SOURCE out 3378 # entirely and define __EXTENSIONS__ instead. 3379 SunOS/*) 3380 define_xopen_source=no;; 3381 # On UnixWare 7, u_long is never defined with _XOPEN_SOURCE, 3382 # but used in /usr/include/netinet/tcp.h. Reported by Tim Rice. 3383 # Reconfirmed for 7.1.4 by Martin v. Loewis. 3384 OpenUNIX/8.0.0| UnixWare/7.1.[0-4]) 3385 define_xopen_source=no;; 3386 # On OpenServer 5, u_short is never defined with _XOPEN_SOURCE, 3387 # but used in struct sockaddr.sa_family. Reported by Tim Rice. 3388 SCO_SV/3.2) 3389 define_xopen_source=no;; 3390 # On FreeBSD, defining _XOPEN_SOURCE to 600 requests a strict environment. 3391 FreeBSD/* | DragonFly/*) 3392 define_xopen_source=no;; 3393 # On MacOS X 10.2, a bug in ncurses.h means that it craps out if 3394 # _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which 3395 # identifies itself as Darwin/7.* 3396 # On Mac OS X 10.4, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3397 # disables platform specific features beyond repair. 3398 # On Mac OS X 10.3, defining _POSIX_C_SOURCE or _XOPEN_SOURCE 3399 # has no effect, don't bother defining them 3400 Darwin/[6789].*) 3401 define_xopen_source=no;; 3402 Darwin/1[0-9].*) 3403 define_xopen_source=no;; 3404 # On AIX 4 and 5.1, mbstate_t is defined only when _XOPEN_SOURCE == 500 but 3405 # used in wcsnrtombs() and mbsnrtowcs() even if _XOPEN_SOURCE is not defined 3406 # or has another value. By not (re)defining it, the defaults come in place. 3407 AIX/4) 3408 define_xopen_source=no;; 3409 AIX/5) 3410 if test "6.3-DPORTS" -eq 1; then 3411 define_xopen_source=no 3412 fi 3413 ;; 3414 # On QNX 6.3.2, defining _XOPEN_SOURCE prevents netdb.h from 3415 # defining NI_NUMERICHOST. 3416 QNX/6.3.2) 3417 define_xopen_source=no 3418 ;; 3419 3420esac 3421 3422if test $define_xopen_source = yes 3423then 3424 3425$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h 3426 3427 3428 # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires 3429 # definition of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else 3430 # several APIs are not declared. Since this is also needed in some 3431 # cases for HP-UX, we define it globally. 3432 3433$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h 3434 3435 3436 3437$as_echo "#define _POSIX_C_SOURCE 200112L" >>confdefs.h 3438 3439 3440fi 3441 3442# 3443# SGI compilers allow the specification of the both the ABI and the 3444# ISA on the command line. Depending on the values of these switches, 3445# different and often incompatible code will be generated. 3446# 3447# The SGI_ABI variable can be used to modify the CC and LDFLAGS and 3448# thus supply support for various ABI/ISA combinations. The MACHDEP 3449# variable is also adjusted. 3450# 3451 3452if test ! -z "$SGI_ABI" 3453then 3454 CC="cc $SGI_ABI" 3455 LDFLAGS="$SGI_ABI $LDFLAGS" 3456 MACHDEP=`echo "${MACHDEP}${SGI_ABI}" | sed 's/ *//g'` 3457fi 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACHDEP" >&5 3459$as_echo "$MACHDEP" >&6; } 3460 3461 3462PLATDIR=plat-$MACHDEP 3463 3464# And add extra plat-mac for darwin 3465 3466 3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking EXTRAPLATDIR" >&5 3468$as_echo_n "checking EXTRAPLATDIR... " >&6; } 3469if test -z "$EXTRAPLATDIR" 3470then 3471 case $MACHDEP in 3472 darwin) 3473 EXTRAPLATDIR="\$(PLATMACDIRS)" 3474 EXTRAMACHDEPPATH="\$(PLATMACPATH)" 3475 ;; 3476 *) 3477 EXTRAPLATDIR="" 3478 EXTRAMACHDEPPATH="" 3479 ;; 3480 esac 3481fi 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRAPLATDIR" >&5 3483$as_echo "$EXTRAPLATDIR" >&6; } 3484 3485# Record the configure-time value of MACOSX_DEPLOYMENT_TARGET, 3486# it may influence the way we can build extensions, so distutils 3487# needs to check it 3488 3489 3490CONFIGURE_MACOSX_DEPLOYMENT_TARGET= 3491EXPORT_MACOSX_DEPLOYMENT_TARGET='#' 3492 3493# checks for alternative programs 3494 3495# compiler flags are generated in two sets, BASECFLAGS and OPT. OPT is just 3496# for debug/optimization stuff. BASECFLAGS is for flags that are required 3497# just to get things to compile and link. Users are free to override OPT 3498# when running configure or make. The build should not break if they do. 3499# BASECFLAGS should generally not be messed with, however. 3500 3501# XXX shouldn't some/most/all of this code be merged with the stuff later 3502# on that fiddles with OPT and BASECFLAGS? 3503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --without-gcc" >&5 3504$as_echo_n "checking for --without-gcc... " >&6; } 3505 3506# Check whether --with-gcc was given. 3507if test "${with_gcc+set}" = set; then : 3508 withval=$with_gcc; 3509 case $withval in 3510 no) CC=${CC:-cc} 3511 without_gcc=yes;; 3512 yes) CC=gcc 3513 without_gcc=no;; 3514 *) CC=$withval 3515 without_gcc=$withval;; 3516 esac 3517else 3518 3519 case $ac_sys_system in 3520 AIX*) CC=${CC:-xlc_r} 3521 without_gcc=;; 3522 BeOS*) 3523 case $BE_HOST_CPU in 3524 ppc) 3525 CC=mwcc 3526 without_gcc=yes 3527 BASECFLAGS="$BASECFLAGS -export pragma" 3528 OPT="$OPT -O" 3529 LDFLAGS="$LDFLAGS -nodup" 3530 ;; 3531 x86) 3532 CC=gcc 3533 without_gcc=no 3534 OPT="$OPT -O" 3535 ;; 3536 *) 3537 as_fn_error $? "Unknown BeOS platform \"$BE_HOST_CPU\"" "$LINENO" 5 3538 ;; 3539 esac 3540 AR="\$(srcdir)/Modules/ar_beos" 3541 RANLIB=: 3542 ;; 3543 *) without_gcc=no;; 3544 esac 3545fi 3546 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $without_gcc" >&5 3548$as_echo "$without_gcc" >&6; } 3549 3550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-icc" >&5 3551$as_echo_n "checking for --with-icc... " >&6; } 3552 3553# Check whether --with-icc was given. 3554if test "${with_icc+set}" = set; then : 3555 withval=$with_icc; 3556 case $withval in 3557 no) CC=${CC:-cc} 3558 with_icc=no;; 3559 yes) CC=icc 3560 CXX=icpc 3561 with_icc=yes;; 3562 *) CC=$withval 3563 with_icc=$withval;; 3564 esac 3565else 3566 3567 with_icc=no 3568fi 3569 3570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_icc" >&5 3571$as_echo "$with_icc" >&6; } 3572 3573# If the user switches compilers, we can't believe the cache 3574if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC" 3575then 3576 as_fn_error $? "cached CC is different -- throw away $cache_file 3577(it is also a good idea to do 'make clean' before compiling)" "$LINENO" 5 3578fi 3579 3580if test "$MACHDEP" = "irix6" && test "$CC" != "gcc"; then 3581 # Normally, MIPSpro CC treats #error directives as warnings, which means 3582 # a successful exit code is returned (0). This is a problem because IRIX 3583 # has a bunch of system headers with this guard at the top: 3584 # 3585 # #ifndef __c99 3586 # #error This header file is to be used only for c99 mode compilations 3587 # #else 3588 # 3589 # When autoconf tests for such a header, like stdint.h, this happens: 3590 # 3591 # configure:4619: cc -c conftest.c >&5 3592 # cc-1035 cc: WARNING File = /usr/include/stdint.h, Line = 5 3593 # #error directive: This header file is to be used only for c99 mode 3594 # compilations 3595 # 3596 # #error This header file is to be used only for c99 mode compilations 3597 # ^ 3598 # 3599 # configure:4619: $? = 0 3600 # configure:4619: result: yes 3601 # 3602 # Therefore, we use `-diag_error 1035` to have the compiler treat the 3603 # warning as an error, which causes cc to return a non-zero result, 3604 # which autoconf can interpret correctly. 3605 CFLAGS="$CFLAGS -diag_error 1035" 3606 # Whilst we're here, we might as well make sure CXX defaults to something 3607 # sensible if we're not using gcc. 3608 if test -z "$CXX"; then 3609 CXX="CC" 3610 fi 3611fi 3612 3613# If the user set CFLAGS, use this instead of the automatically 3614# determined setting 3615preset_cflags="$CFLAGS" 3616ac_ext=c 3617ac_cpp='$CPP $CPPFLAGS' 3618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3620ac_compiler_gnu=$ac_cv_c_compiler_gnu 3621if test -n "$ac_tool_prefix"; then 3622 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3623set dummy ${ac_tool_prefix}gcc; ac_word=$2 3624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3625$as_echo_n "checking for $ac_word... " >&6; } 3626if ${ac_cv_prog_CC+:} false; then : 3627 $as_echo_n "(cached) " >&6 3628else 3629 if test -n "$CC"; then 3630 ac_cv_prog_CC="$CC" # Let the user override the test. 3631else 3632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3633for as_dir in $PATH 3634do 3635 IFS=$as_save_IFS 3636 test -z "$as_dir" && as_dir=. 3637 for ac_exec_ext in '' $ac_executable_extensions; do 3638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3639 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3641 break 2 3642 fi 3643done 3644 done 3645IFS=$as_save_IFS 3646 3647fi 3648fi 3649CC=$ac_cv_prog_CC 3650if test -n "$CC"; then 3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3652$as_echo "$CC" >&6; } 3653else 3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3655$as_echo "no" >&6; } 3656fi 3657 3658 3659fi 3660if test -z "$ac_cv_prog_CC"; then 3661 ac_ct_CC=$CC 3662 # Extract the first word of "gcc", so it can be a program name with args. 3663set dummy gcc; ac_word=$2 3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3665$as_echo_n "checking for $ac_word... " >&6; } 3666if ${ac_cv_prog_ac_ct_CC+:} false; then : 3667 $as_echo_n "(cached) " >&6 3668else 3669 if test -n "$ac_ct_CC"; then 3670 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3671else 3672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3673for as_dir in $PATH 3674do 3675 IFS=$as_save_IFS 3676 test -z "$as_dir" && as_dir=. 3677 for ac_exec_ext in '' $ac_executable_extensions; do 3678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3679 ac_cv_prog_ac_ct_CC="gcc" 3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3681 break 2 3682 fi 3683done 3684 done 3685IFS=$as_save_IFS 3686 3687fi 3688fi 3689ac_ct_CC=$ac_cv_prog_ac_ct_CC 3690if test -n "$ac_ct_CC"; then 3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3692$as_echo "$ac_ct_CC" >&6; } 3693else 3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3695$as_echo "no" >&6; } 3696fi 3697 3698 if test "x$ac_ct_CC" = x; then 3699 CC="" 3700 else 3701 case $cross_compiling:$ac_tool_warned in 3702yes:) 3703{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3704$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3705ac_tool_warned=yes ;; 3706esac 3707 CC=$ac_ct_CC 3708 fi 3709else 3710 CC="$ac_cv_prog_CC" 3711fi 3712 3713if test -z "$CC"; then 3714 if test -n "$ac_tool_prefix"; then 3715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3716set dummy ${ac_tool_prefix}cc; ac_word=$2 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3718$as_echo_n "checking for $ac_word... " >&6; } 3719if ${ac_cv_prog_CC+:} false; then : 3720 $as_echo_n "(cached) " >&6 3721else 3722 if test -n "$CC"; then 3723 ac_cv_prog_CC="$CC" # Let the user override the test. 3724else 3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3726for as_dir in $PATH 3727do 3728 IFS=$as_save_IFS 3729 test -z "$as_dir" && as_dir=. 3730 for ac_exec_ext in '' $ac_executable_extensions; do 3731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3732 ac_cv_prog_CC="${ac_tool_prefix}cc" 3733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3734 break 2 3735 fi 3736done 3737 done 3738IFS=$as_save_IFS 3739 3740fi 3741fi 3742CC=$ac_cv_prog_CC 3743if test -n "$CC"; then 3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3745$as_echo "$CC" >&6; } 3746else 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3748$as_echo "no" >&6; } 3749fi 3750 3751 3752 fi 3753fi 3754if test -z "$CC"; then 3755 # Extract the first word of "cc", so it can be a program name with args. 3756set dummy cc; ac_word=$2 3757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3758$as_echo_n "checking for $ac_word... " >&6; } 3759if ${ac_cv_prog_CC+:} false; then : 3760 $as_echo_n "(cached) " >&6 3761else 3762 if test -n "$CC"; then 3763 ac_cv_prog_CC="$CC" # Let the user override the test. 3764else 3765 ac_prog_rejected=no 3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3767for as_dir in $PATH 3768do 3769 IFS=$as_save_IFS 3770 test -z "$as_dir" && as_dir=. 3771 for ac_exec_ext in '' $ac_executable_extensions; do 3772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3773 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3774 ac_prog_rejected=yes 3775 continue 3776 fi 3777 ac_cv_prog_CC="cc" 3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3779 break 2 3780 fi 3781done 3782 done 3783IFS=$as_save_IFS 3784 3785if test $ac_prog_rejected = yes; then 3786 # We found a bogon in the path, so make sure we never use it. 3787 set dummy $ac_cv_prog_CC 3788 shift 3789 if test $# != 0; then 3790 # We chose a different compiler from the bogus one. 3791 # However, it has the same basename, so the bogon will be chosen 3792 # first if we set CC to just the basename; use the full file name. 3793 shift 3794 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3795 fi 3796fi 3797fi 3798fi 3799CC=$ac_cv_prog_CC 3800if test -n "$CC"; then 3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3802$as_echo "$CC" >&6; } 3803else 3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3805$as_echo "no" >&6; } 3806fi 3807 3808 3809fi 3810if test -z "$CC"; then 3811 if test -n "$ac_tool_prefix"; then 3812 for ac_prog in cl.exe 3813 do 3814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3815set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3817$as_echo_n "checking for $ac_word... " >&6; } 3818if ${ac_cv_prog_CC+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820else 3821 if test -n "$CC"; then 3822 ac_cv_prog_CC="$CC" # Let the user override the test. 3823else 3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825for as_dir in $PATH 3826do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for ac_exec_ext in '' $ac_executable_extensions; do 3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3831 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3833 break 2 3834 fi 3835done 3836 done 3837IFS=$as_save_IFS 3838 3839fi 3840fi 3841CC=$ac_cv_prog_CC 3842if test -n "$CC"; then 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3844$as_echo "$CC" >&6; } 3845else 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847$as_echo "no" >&6; } 3848fi 3849 3850 3851 test -n "$CC" && break 3852 done 3853fi 3854if test -z "$CC"; then 3855 ac_ct_CC=$CC 3856 for ac_prog in cl.exe 3857do 3858 # Extract the first word of "$ac_prog", so it can be a program name with args. 3859set dummy $ac_prog; ac_word=$2 3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3861$as_echo_n "checking for $ac_word... " >&6; } 3862if ${ac_cv_prog_ac_ct_CC+:} false; then : 3863 $as_echo_n "(cached) " >&6 3864else 3865 if test -n "$ac_ct_CC"; then 3866 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3867else 3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3869for as_dir in $PATH 3870do 3871 IFS=$as_save_IFS 3872 test -z "$as_dir" && as_dir=. 3873 for ac_exec_ext in '' $ac_executable_extensions; do 3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3875 ac_cv_prog_ac_ct_CC="$ac_prog" 3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3877 break 2 3878 fi 3879done 3880 done 3881IFS=$as_save_IFS 3882 3883fi 3884fi 3885ac_ct_CC=$ac_cv_prog_ac_ct_CC 3886if test -n "$ac_ct_CC"; then 3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3888$as_echo "$ac_ct_CC" >&6; } 3889else 3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3891$as_echo "no" >&6; } 3892fi 3893 3894 3895 test -n "$ac_ct_CC" && break 3896done 3897 3898 if test "x$ac_ct_CC" = x; then 3899 CC="" 3900 else 3901 case $cross_compiling:$ac_tool_warned in 3902yes:) 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3905ac_tool_warned=yes ;; 3906esac 3907 CC=$ac_ct_CC 3908 fi 3909fi 3910 3911fi 3912 3913 3914test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3916as_fn_error $? "no acceptable C compiler found in \$PATH 3917See \`config.log' for more details" "$LINENO" 5; } 3918 3919# Provide some information about the compiler. 3920$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3921set X $ac_compile 3922ac_compiler=$2 3923for ac_option in --version -v -V -qversion; do 3924 { { ac_try="$ac_compiler $ac_option >&5" 3925case "(($ac_try" in 3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3927 *) ac_try_echo=$ac_try;; 3928esac 3929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3930$as_echo "$ac_try_echo"; } >&5 3931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3932 ac_status=$? 3933 if test -s conftest.err; then 3934 sed '10a\ 3935... rest of stderr output deleted ... 3936 10q' conftest.err >conftest.er1 3937 cat conftest.er1 >&5 3938 fi 3939 rm -f conftest.er1 conftest.err 3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3941 test $ac_status = 0; } 3942done 3943 3944cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3945/* end confdefs.h. */ 3946 3947int 3948main () 3949{ 3950 3951 ; 3952 return 0; 3953} 3954_ACEOF 3955ac_clean_files_save=$ac_clean_files 3956ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3957# Try to create an executable without -o first, disregard a.out. 3958# It will help us diagnose broken compilers, and finding out an intuition 3959# of exeext. 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3961$as_echo_n "checking whether the C compiler works... " >&6; } 3962ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3963 3964# The possible output files: 3965ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3966 3967ac_rmfiles= 3968for ac_file in $ac_files 3969do 3970 case $ac_file in 3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3972 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3973 esac 3974done 3975rm -f $ac_rmfiles 3976 3977if { { ac_try="$ac_link_default" 3978case "(($ac_try" in 3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3980 *) ac_try_echo=$ac_try;; 3981esac 3982eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3983$as_echo "$ac_try_echo"; } >&5 3984 (eval "$ac_link_default") 2>&5 3985 ac_status=$? 3986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3987 test $ac_status = 0; }; then : 3988 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3989# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3990# in a Makefile. We should not override ac_cv_exeext if it was cached, 3991# so that the user can short-circuit this test for compilers unknown to 3992# Autoconf. 3993for ac_file in $ac_files '' 3994do 3995 test -f "$ac_file" || continue 3996 case $ac_file in 3997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3998 ;; 3999 [ab].out ) 4000 # We found the default executable, but exeext='' is most 4001 # certainly right. 4002 break;; 4003 *.* ) 4004 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4005 then :; else 4006 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4007 fi 4008 # We set ac_cv_exeext here because the later test for it is not 4009 # safe: cross compilers may not add the suffix if given an `-o' 4010 # argument, so we may need to know it at that point already. 4011 # Even if this section looks crufty: it has the advantage of 4012 # actually working. 4013 break;; 4014 * ) 4015 break;; 4016 esac 4017done 4018test "$ac_cv_exeext" = no && ac_cv_exeext= 4019 4020else 4021 ac_file='' 4022fi 4023if test -z "$ac_file"; then : 4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4025$as_echo "no" >&6; } 4026$as_echo "$as_me: failed program was:" >&5 4027sed 's/^/| /' conftest.$ac_ext >&5 4028 4029{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4030$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4031as_fn_error 77 "C compiler cannot create executables 4032See \`config.log' for more details" "$LINENO" 5; } 4033else 4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4035$as_echo "yes" >&6; } 4036fi 4037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4038$as_echo_n "checking for C compiler default output file name... " >&6; } 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4040$as_echo "$ac_file" >&6; } 4041ac_exeext=$ac_cv_exeext 4042 4043rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4044ac_clean_files=$ac_clean_files_save 4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4046$as_echo_n "checking for suffix of executables... " >&6; } 4047if { { ac_try="$ac_link" 4048case "(($ac_try" in 4049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4050 *) ac_try_echo=$ac_try;; 4051esac 4052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4053$as_echo "$ac_try_echo"; } >&5 4054 (eval "$ac_link") 2>&5 4055 ac_status=$? 4056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4057 test $ac_status = 0; }; then : 4058 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4059# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4060# work properly (i.e., refer to `conftest.exe'), while it won't with 4061# `rm'. 4062for ac_file in conftest.exe conftest conftest.*; do 4063 test -f "$ac_file" || continue 4064 case $ac_file in 4065 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4066 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4067 break;; 4068 * ) break;; 4069 esac 4070done 4071else 4072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4074as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4075See \`config.log' for more details" "$LINENO" 5; } 4076fi 4077rm -f conftest conftest$ac_cv_exeext 4078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4079$as_echo "$ac_cv_exeext" >&6; } 4080 4081rm -f conftest.$ac_ext 4082EXEEXT=$ac_cv_exeext 4083ac_exeext=$EXEEXT 4084cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4085/* end confdefs.h. */ 4086#include <stdio.h> 4087int 4088main () 4089{ 4090FILE *f = fopen ("conftest.out", "w"); 4091 return ferror (f) || fclose (f) != 0; 4092 4093 ; 4094 return 0; 4095} 4096_ACEOF 4097ac_clean_files="$ac_clean_files conftest.out" 4098# Check that the compiler produces executables we can run. If not, either 4099# the compiler is broken, or we cross compile. 4100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4101$as_echo_n "checking whether we are cross compiling... " >&6; } 4102if test "$cross_compiling" != yes; then 4103 { { ac_try="$ac_link" 4104case "(($ac_try" in 4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4106 *) ac_try_echo=$ac_try;; 4107esac 4108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4109$as_echo "$ac_try_echo"; } >&5 4110 (eval "$ac_link") 2>&5 4111 ac_status=$? 4112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4113 test $ac_status = 0; } 4114 if { ac_try='./conftest$ac_cv_exeext' 4115 { { case "(($ac_try" in 4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4117 *) ac_try_echo=$ac_try;; 4118esac 4119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4120$as_echo "$ac_try_echo"; } >&5 4121 (eval "$ac_try") 2>&5 4122 ac_status=$? 4123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4124 test $ac_status = 0; }; }; then 4125 cross_compiling=no 4126 else 4127 if test "$cross_compiling" = maybe; then 4128 cross_compiling=yes 4129 else 4130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4132as_fn_error $? "cannot run C compiled programs. 4133If you meant to cross compile, use \`--host'. 4134See \`config.log' for more details" "$LINENO" 5; } 4135 fi 4136 fi 4137fi 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4139$as_echo "$cross_compiling" >&6; } 4140 4141rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4142ac_clean_files=$ac_clean_files_save 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4144$as_echo_n "checking for suffix of object files... " >&6; } 4145if ${ac_cv_objext+:} false; then : 4146 $as_echo_n "(cached) " >&6 4147else 4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4149/* end confdefs.h. */ 4150 4151int 4152main () 4153{ 4154 4155 ; 4156 return 0; 4157} 4158_ACEOF 4159rm -f conftest.o conftest.obj 4160if { { ac_try="$ac_compile" 4161case "(($ac_try" in 4162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4163 *) ac_try_echo=$ac_try;; 4164esac 4165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4166$as_echo "$ac_try_echo"; } >&5 4167 (eval "$ac_compile") 2>&5 4168 ac_status=$? 4169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4170 test $ac_status = 0; }; then : 4171 for ac_file in conftest.o conftest.obj conftest.*; do 4172 test -f "$ac_file" || continue; 4173 case $ac_file in 4174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4176 break;; 4177 esac 4178done 4179else 4180 $as_echo "$as_me: failed program was:" >&5 4181sed 's/^/| /' conftest.$ac_ext >&5 4182 4183{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4185as_fn_error $? "cannot compute suffix of object files: cannot compile 4186See \`config.log' for more details" "$LINENO" 5; } 4187fi 4188rm -f conftest.$ac_cv_objext conftest.$ac_ext 4189fi 4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4191$as_echo "$ac_cv_objext" >&6; } 4192OBJEXT=$ac_cv_objext 4193ac_objext=$OBJEXT 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4195$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4196if ${ac_cv_c_compiler_gnu+:} false; then : 4197 $as_echo_n "(cached) " >&6 4198else 4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4200/* end confdefs.h. */ 4201 4202int 4203main () 4204{ 4205#ifndef __GNUC__ 4206 choke me 4207#endif 4208 4209 ; 4210 return 0; 4211} 4212_ACEOF 4213if ac_fn_c_try_compile "$LINENO"; then : 4214 ac_compiler_gnu=yes 4215else 4216 ac_compiler_gnu=no 4217fi 4218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4219ac_cv_c_compiler_gnu=$ac_compiler_gnu 4220 4221fi 4222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4223$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4224if test $ac_compiler_gnu = yes; then 4225 GCC=yes 4226else 4227 GCC= 4228fi 4229ac_test_CFLAGS=${CFLAGS+set} 4230ac_save_CFLAGS=$CFLAGS 4231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4232$as_echo_n "checking whether $CC accepts -g... " >&6; } 4233if ${ac_cv_prog_cc_g+:} false; then : 4234 $as_echo_n "(cached) " >&6 4235else 4236 ac_save_c_werror_flag=$ac_c_werror_flag 4237 ac_c_werror_flag=yes 4238 ac_cv_prog_cc_g=no 4239 CFLAGS="-g" 4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4241/* end confdefs.h. */ 4242 4243int 4244main () 4245{ 4246 4247 ; 4248 return 0; 4249} 4250_ACEOF 4251if ac_fn_c_try_compile "$LINENO"; then : 4252 ac_cv_prog_cc_g=yes 4253else 4254 CFLAGS="" 4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4256/* end confdefs.h. */ 4257 4258int 4259main () 4260{ 4261 4262 ; 4263 return 0; 4264} 4265_ACEOF 4266if ac_fn_c_try_compile "$LINENO"; then : 4267 4268else 4269 ac_c_werror_flag=$ac_save_c_werror_flag 4270 CFLAGS="-g" 4271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4272/* end confdefs.h. */ 4273 4274int 4275main () 4276{ 4277 4278 ; 4279 return 0; 4280} 4281_ACEOF 4282if ac_fn_c_try_compile "$LINENO"; then : 4283 ac_cv_prog_cc_g=yes 4284fi 4285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4286fi 4287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4288fi 4289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4290 ac_c_werror_flag=$ac_save_c_werror_flag 4291fi 4292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4293$as_echo "$ac_cv_prog_cc_g" >&6; } 4294if test "$ac_test_CFLAGS" = set; then 4295 CFLAGS=$ac_save_CFLAGS 4296elif test $ac_cv_prog_cc_g = yes; then 4297 if test "$GCC" = yes; then 4298 CFLAGS="-g -O2" 4299 else 4300 CFLAGS="-g" 4301 fi 4302else 4303 if test "$GCC" = yes; then 4304 CFLAGS="-O2" 4305 else 4306 CFLAGS= 4307 fi 4308fi 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4310$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4311if ${ac_cv_prog_cc_c89+:} false; then : 4312 $as_echo_n "(cached) " >&6 4313else 4314 ac_cv_prog_cc_c89=no 4315ac_save_CC=$CC 4316cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4317/* end confdefs.h. */ 4318#include <stdarg.h> 4319#include <stdio.h> 4320struct stat; 4321/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4322struct buf { int x; }; 4323FILE * (*rcsopen) (struct buf *, struct stat *, int); 4324static char *e (p, i) 4325 char **p; 4326 int i; 4327{ 4328 return p[i]; 4329} 4330static char *f (char * (*g) (char **, int), char **p, ...) 4331{ 4332 char *s; 4333 va_list v; 4334 va_start (v,p); 4335 s = g (p, va_arg (v,int)); 4336 va_end (v); 4337 return s; 4338} 4339 4340/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4341 function prototypes and stuff, but not '\xHH' hex character constants. 4342 These don't provoke an error unfortunately, instead are silently treated 4343 as 'x'. The following induces an error, until -std is added to get 4344 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4345 array size at least. It's necessary to write '\x00'==0 to get something 4346 that's true only with -std. */ 4347int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4348 4349/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4350 inside strings and character constants. */ 4351#define FOO(x) 'x' 4352int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4353 4354int test (int i, double x); 4355struct s1 {int (*f) (int a);}; 4356struct s2 {int (*f) (double a);}; 4357int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4358int argc; 4359char **argv; 4360int 4361main () 4362{ 4363return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4364 ; 4365 return 0; 4366} 4367_ACEOF 4368for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4369 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4370do 4371 CC="$ac_save_CC $ac_arg" 4372 if ac_fn_c_try_compile "$LINENO"; then : 4373 ac_cv_prog_cc_c89=$ac_arg 4374fi 4375rm -f core conftest.err conftest.$ac_objext 4376 test "x$ac_cv_prog_cc_c89" != "xno" && break 4377done 4378rm -f conftest.$ac_ext 4379CC=$ac_save_CC 4380 4381fi 4382# AC_CACHE_VAL 4383case "x$ac_cv_prog_cc_c89" in 4384 x) 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4386$as_echo "none needed" >&6; } ;; 4387 xno) 4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4389$as_echo "unsupported" >&6; } ;; 4390 *) 4391 CC="$CC $ac_cv_prog_cc_c89" 4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4393$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4394esac 4395if test "x$ac_cv_prog_cc_c89" != xno; then : 4396 4397fi 4398 4399ac_ext=c 4400ac_cpp='$CPP $CPPFLAGS' 4401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4403ac_compiler_gnu=$ac_cv_c_compiler_gnu 4404 4405if test ! -z "$preset_cflags" 4406then 4407 CFLAGS=$preset_cflags 4408fi 4409 4410 4411 4412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-cxx-main=<compiler>" >&5 4413$as_echo_n "checking for --with-cxx-main=<compiler>... " >&6; } 4414 4415# Check whether --with-cxx_main was given. 4416if test "${with_cxx_main+set}" = set; then : 4417 withval=$with_cxx_main; 4418 4419 case $withval in 4420 no) with_cxx_main=no 4421 MAINCC='$(CC)';; 4422 yes) with_cxx_main=yes 4423 MAINCC='$(CXX)';; 4424 *) with_cxx_main=yes 4425 MAINCC=$withval 4426 if test -z "$CXX" 4427 then 4428 CXX=$withval 4429 fi;; 4430 esac 4431else 4432 4433 with_cxx_main=no 4434 MAINCC='$(CC)' 4435 4436fi 4437 4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_cxx_main" >&5 4439$as_echo "$with_cxx_main" >&6; } 4440 4441preset_cxx="$CXX" 4442if test -z "$CXX" 4443then 4444 case "$CC" in 4445 gcc) if test -n "$ac_tool_prefix"; then 4446 # Extract the first word of "${ac_tool_prefix}g++", so it can be a program name with args. 4447set dummy ${ac_tool_prefix}g++; ac_word=$2 4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4449$as_echo_n "checking for $ac_word... " >&6; } 4450if ${ac_cv_path_CXX+:} false; then : 4451 $as_echo_n "(cached) " >&6 4452else 4453 case $CXX in 4454 [\\/]* | ?:[\\/]*) 4455 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4456 ;; 4457 *) 4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4459for as_dir in notfound 4460do 4461 IFS=$as_save_IFS 4462 test -z "$as_dir" && as_dir=. 4463 for ac_exec_ext in '' $ac_executable_extensions; do 4464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4465 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4467 break 2 4468 fi 4469done 4470 done 4471IFS=$as_save_IFS 4472 4473 ;; 4474esac 4475fi 4476CXX=$ac_cv_path_CXX 4477if test -n "$CXX"; then 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4479$as_echo "$CXX" >&6; } 4480else 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4482$as_echo "no" >&6; } 4483fi 4484 4485 4486fi 4487if test -z "$ac_cv_path_CXX"; then 4488 ac_pt_CXX=$CXX 4489 # Extract the first word of "g++", so it can be a program name with args. 4490set dummy g++; ac_word=$2 4491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4492$as_echo_n "checking for $ac_word... " >&6; } 4493if ${ac_cv_path_ac_pt_CXX+:} false; then : 4494 $as_echo_n "(cached) " >&6 4495else 4496 case $ac_pt_CXX in 4497 [\\/]* | ?:[\\/]*) 4498 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4499 ;; 4500 *) 4501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4502for as_dir in notfound 4503do 4504 IFS=$as_save_IFS 4505 test -z "$as_dir" && as_dir=. 4506 for ac_exec_ext in '' $ac_executable_extensions; do 4507 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4508 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4510 break 2 4511 fi 4512done 4513 done 4514IFS=$as_save_IFS 4515 4516 ;; 4517esac 4518fi 4519ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4520if test -n "$ac_pt_CXX"; then 4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4522$as_echo "$ac_pt_CXX" >&6; } 4523else 4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4525$as_echo "no" >&6; } 4526fi 4527 4528 if test "x$ac_pt_CXX" = x; then 4529 CXX="g++" 4530 else 4531 case $cross_compiling:$ac_tool_warned in 4532yes:) 4533{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4534$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4535ac_tool_warned=yes ;; 4536esac 4537 CXX=$ac_pt_CXX 4538 fi 4539else 4540 CXX="$ac_cv_path_CXX" 4541fi 4542 ;; 4543 cc) if test -n "$ac_tool_prefix"; then 4544 # Extract the first word of "${ac_tool_prefix}c++", so it can be a program name with args. 4545set dummy ${ac_tool_prefix}c++; ac_word=$2 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4547$as_echo_n "checking for $ac_word... " >&6; } 4548if ${ac_cv_path_CXX+:} false; then : 4549 $as_echo_n "(cached) " >&6 4550else 4551 case $CXX in 4552 [\\/]* | ?:[\\/]*) 4553 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 4554 ;; 4555 *) 4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4557for as_dir in notfound 4558do 4559 IFS=$as_save_IFS 4560 test -z "$as_dir" && as_dir=. 4561 for ac_exec_ext in '' $ac_executable_extensions; do 4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4563 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 4564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4565 break 2 4566 fi 4567done 4568 done 4569IFS=$as_save_IFS 4570 4571 ;; 4572esac 4573fi 4574CXX=$ac_cv_path_CXX 4575if test -n "$CXX"; then 4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4577$as_echo "$CXX" >&6; } 4578else 4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4580$as_echo "no" >&6; } 4581fi 4582 4583 4584fi 4585if test -z "$ac_cv_path_CXX"; then 4586 ac_pt_CXX=$CXX 4587 # Extract the first word of "c++", so it can be a program name with args. 4588set dummy c++; ac_word=$2 4589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4590$as_echo_n "checking for $ac_word... " >&6; } 4591if ${ac_cv_path_ac_pt_CXX+:} false; then : 4592 $as_echo_n "(cached) " >&6 4593else 4594 case $ac_pt_CXX in 4595 [\\/]* | ?:[\\/]*) 4596 ac_cv_path_ac_pt_CXX="$ac_pt_CXX" # Let the user override the test with a path. 4597 ;; 4598 *) 4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4600for as_dir in notfound 4601do 4602 IFS=$as_save_IFS 4603 test -z "$as_dir" && as_dir=. 4604 for ac_exec_ext in '' $ac_executable_extensions; do 4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4606 ac_cv_path_ac_pt_CXX="$as_dir/$ac_word$ac_exec_ext" 4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4608 break 2 4609 fi 4610done 4611 done 4612IFS=$as_save_IFS 4613 4614 ;; 4615esac 4616fi 4617ac_pt_CXX=$ac_cv_path_ac_pt_CXX 4618if test -n "$ac_pt_CXX"; then 4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CXX" >&5 4620$as_echo "$ac_pt_CXX" >&6; } 4621else 4622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4623$as_echo "no" >&6; } 4624fi 4625 4626 if test "x$ac_pt_CXX" = x; then 4627 CXX="c++" 4628 else 4629 case $cross_compiling:$ac_tool_warned in 4630yes:) 4631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4633ac_tool_warned=yes ;; 4634esac 4635 CXX=$ac_pt_CXX 4636 fi 4637else 4638 CXX="$ac_cv_path_CXX" 4639fi 4640 ;; 4641 esac 4642 if test "$CXX" = "notfound" 4643 then 4644 CXX="" 4645 fi 4646fi 4647if test -z "$CXX" 4648then 4649 if test -n "$ac_tool_prefix"; then 4650 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 4651 do 4652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4653set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4655$as_echo_n "checking for $ac_word... " >&6; } 4656if ${ac_cv_prog_CXX+:} false; then : 4657 $as_echo_n "(cached) " >&6 4658else 4659 if test -n "$CXX"; then 4660 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4661else 4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4663for as_dir in $PATH 4664do 4665 IFS=$as_save_IFS 4666 test -z "$as_dir" && as_dir=. 4667 for ac_exec_ext in '' $ac_executable_extensions; do 4668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4669 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4671 break 2 4672 fi 4673done 4674 done 4675IFS=$as_save_IFS 4676 4677fi 4678fi 4679CXX=$ac_cv_prog_CXX 4680if test -n "$CXX"; then 4681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4682$as_echo "$CXX" >&6; } 4683else 4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4685$as_echo "no" >&6; } 4686fi 4687 4688 4689 test -n "$CXX" && break 4690 done 4691fi 4692if test -z "$CXX"; then 4693 ac_ct_CXX=$CXX 4694 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl 4695do 4696 # Extract the first word of "$ac_prog", so it can be a program name with args. 4697set dummy $ac_prog; ac_word=$2 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4699$as_echo_n "checking for $ac_word... " >&6; } 4700if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4701 $as_echo_n "(cached) " >&6 4702else 4703 if test -n "$ac_ct_CXX"; then 4704 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4705else 4706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4707for as_dir in $PATH 4708do 4709 IFS=$as_save_IFS 4710 test -z "$as_dir" && as_dir=. 4711 for ac_exec_ext in '' $ac_executable_extensions; do 4712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4713 ac_cv_prog_ac_ct_CXX="$ac_prog" 4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4715 break 2 4716 fi 4717done 4718 done 4719IFS=$as_save_IFS 4720 4721fi 4722fi 4723ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4724if test -n "$ac_ct_CXX"; then 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4726$as_echo "$ac_ct_CXX" >&6; } 4727else 4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4729$as_echo "no" >&6; } 4730fi 4731 4732 4733 test -n "$ac_ct_CXX" && break 4734done 4735 4736 if test "x$ac_ct_CXX" = x; then 4737 CXX="notfound" 4738 else 4739 case $cross_compiling:$ac_tool_warned in 4740yes:) 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4743ac_tool_warned=yes ;; 4744esac 4745 CXX=$ac_ct_CXX 4746 fi 4747fi 4748 4749 if test "$CXX" = "notfound" 4750 then 4751 CXX="" 4752 fi 4753fi 4754if test "$preset_cxx" != "$CXX" 4755then 4756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 4757 4758 By default, distutils will build C++ extension modules with \"$CXX\". 4759 If this is not intended, then set CXX on the configure command line. 4760 " >&5 4761$as_echo "$as_me: WARNING: 4762 4763 By default, distutils will build C++ extension modules with \"$CXX\". 4764 If this is not intended, then set CXX on the configure command line. 4765 " >&2;} 4766fi 4767 4768MULTIARCH=$($CC --print-multiarch 2>/dev/null) 4769 4770 4771 4772# checks for UNIX variants that set C preprocessor variables 4773 4774ac_ext=c 4775ac_cpp='$CPP $CPPFLAGS' 4776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4778ac_compiler_gnu=$ac_cv_c_compiler_gnu 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4780$as_echo_n "checking how to run the C preprocessor... " >&6; } 4781# On Suns, sometimes $CPP names a directory. 4782if test -n "$CPP" && test -d "$CPP"; then 4783 CPP= 4784fi 4785if test -z "$CPP"; then 4786 if ${ac_cv_prog_CPP+:} false; then : 4787 $as_echo_n "(cached) " >&6 4788else 4789 # Double quotes because CPP needs to be expanded 4790 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4791 do 4792 ac_preproc_ok=false 4793for ac_c_preproc_warn_flag in '' yes 4794do 4795 # Use a header file that comes with gcc, so configuring glibc 4796 # with a fresh cross-compiler works. 4797 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4798 # <limits.h> exists even on freestanding compilers. 4799 # On the NeXT, cc -E runs the code through the compiler's parser, 4800 # not just through cpp. "Syntax error" is here to catch this case. 4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4802/* end confdefs.h. */ 4803#ifdef __STDC__ 4804# include <limits.h> 4805#else 4806# include <assert.h> 4807#endif 4808 Syntax error 4809_ACEOF 4810if ac_fn_c_try_cpp "$LINENO"; then : 4811 4812else 4813 # Broken: fails on valid input. 4814continue 4815fi 4816rm -f conftest.err conftest.i conftest.$ac_ext 4817 4818 # OK, works on sane cases. Now check whether nonexistent headers 4819 # can be detected and how. 4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4821/* end confdefs.h. */ 4822#include <ac_nonexistent.h> 4823_ACEOF 4824if ac_fn_c_try_cpp "$LINENO"; then : 4825 # Broken: success on invalid input. 4826continue 4827else 4828 # Passes both tests. 4829ac_preproc_ok=: 4830break 4831fi 4832rm -f conftest.err conftest.i conftest.$ac_ext 4833 4834done 4835# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4836rm -f conftest.i conftest.err conftest.$ac_ext 4837if $ac_preproc_ok; then : 4838 break 4839fi 4840 4841 done 4842 ac_cv_prog_CPP=$CPP 4843 4844fi 4845 CPP=$ac_cv_prog_CPP 4846else 4847 ac_cv_prog_CPP=$CPP 4848fi 4849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4850$as_echo "$CPP" >&6; } 4851ac_preproc_ok=false 4852for ac_c_preproc_warn_flag in '' yes 4853do 4854 # Use a header file that comes with gcc, so configuring glibc 4855 # with a fresh cross-compiler works. 4856 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4857 # <limits.h> exists even on freestanding compilers. 4858 # On the NeXT, cc -E runs the code through the compiler's parser, 4859 # not just through cpp. "Syntax error" is here to catch this case. 4860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4861/* end confdefs.h. */ 4862#ifdef __STDC__ 4863# include <limits.h> 4864#else 4865# include <assert.h> 4866#endif 4867 Syntax error 4868_ACEOF 4869if ac_fn_c_try_cpp "$LINENO"; then : 4870 4871else 4872 # Broken: fails on valid input. 4873continue 4874fi 4875rm -f conftest.err conftest.i conftest.$ac_ext 4876 4877 # OK, works on sane cases. Now check whether nonexistent headers 4878 # can be detected and how. 4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4880/* end confdefs.h. */ 4881#include <ac_nonexistent.h> 4882_ACEOF 4883if ac_fn_c_try_cpp "$LINENO"; then : 4884 # Broken: success on invalid input. 4885continue 4886else 4887 # Passes both tests. 4888ac_preproc_ok=: 4889break 4890fi 4891rm -f conftest.err conftest.i conftest.$ac_ext 4892 4893done 4894# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4895rm -f conftest.i conftest.err conftest.$ac_ext 4896if $ac_preproc_ok; then : 4897 4898else 4899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4900$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4901as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4902See \`config.log' for more details" "$LINENO" 5; } 4903fi 4904 4905ac_ext=c 4906ac_cpp='$CPP $CPPFLAGS' 4907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4909ac_compiler_gnu=$ac_cv_c_compiler_gnu 4910 4911 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4913$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4914if ${ac_cv_path_GREP+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 if test -z "$GREP"; then 4918 ac_path_GREP_found=false 4919 # Loop through the user's path and test for each of PROGNAME-LIST 4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4922do 4923 IFS=$as_save_IFS 4924 test -z "$as_dir" && as_dir=. 4925 for ac_prog in grep ggrep; do 4926 for ac_exec_ext in '' $ac_executable_extensions; do 4927 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4928 as_fn_executable_p "$ac_path_GREP" || continue 4929# Check for GNU ac_path_GREP and select it if it is found. 4930 # Check for GNU $ac_path_GREP 4931case `"$ac_path_GREP" --version 2>&1` in 4932*GNU*) 4933 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4934*) 4935 ac_count=0 4936 $as_echo_n 0123456789 >"conftest.in" 4937 while : 4938 do 4939 cat "conftest.in" "conftest.in" >"conftest.tmp" 4940 mv "conftest.tmp" "conftest.in" 4941 cp "conftest.in" "conftest.nl" 4942 $as_echo 'GREP' >> "conftest.nl" 4943 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4945 as_fn_arith $ac_count + 1 && ac_count=$as_val 4946 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4947 # Best one so far, save it but keep looking for a better one 4948 ac_cv_path_GREP="$ac_path_GREP" 4949 ac_path_GREP_max=$ac_count 4950 fi 4951 # 10*(2^10) chars as input seems more than enough 4952 test $ac_count -gt 10 && break 4953 done 4954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4955esac 4956 4957 $ac_path_GREP_found && break 3 4958 done 4959 done 4960 done 4961IFS=$as_save_IFS 4962 if test -z "$ac_cv_path_GREP"; then 4963 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4964 fi 4965else 4966 ac_cv_path_GREP=$GREP 4967fi 4968 4969fi 4970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4971$as_echo "$ac_cv_path_GREP" >&6; } 4972 GREP="$ac_cv_path_GREP" 4973 4974 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4976$as_echo_n "checking for egrep... " >&6; } 4977if ${ac_cv_path_EGREP+:} false; then : 4978 $as_echo_n "(cached) " >&6 4979else 4980 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4981 then ac_cv_path_EGREP="$GREP -E" 4982 else 4983 if test -z "$EGREP"; then 4984 ac_path_EGREP_found=false 4985 # Loop through the user's path and test for each of PROGNAME-LIST 4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4987for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4988do 4989 IFS=$as_save_IFS 4990 test -z "$as_dir" && as_dir=. 4991 for ac_prog in egrep; do 4992 for ac_exec_ext in '' $ac_executable_extensions; do 4993 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4994 as_fn_executable_p "$ac_path_EGREP" || continue 4995# Check for GNU ac_path_EGREP and select it if it is found. 4996 # Check for GNU $ac_path_EGREP 4997case `"$ac_path_EGREP" --version 2>&1` in 4998*GNU*) 4999 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5000*) 5001 ac_count=0 5002 $as_echo_n 0123456789 >"conftest.in" 5003 while : 5004 do 5005 cat "conftest.in" "conftest.in" >"conftest.tmp" 5006 mv "conftest.tmp" "conftest.in" 5007 cp "conftest.in" "conftest.nl" 5008 $as_echo 'EGREP' >> "conftest.nl" 5009 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5010 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5011 as_fn_arith $ac_count + 1 && ac_count=$as_val 5012 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5013 # Best one so far, save it but keep looking for a better one 5014 ac_cv_path_EGREP="$ac_path_EGREP" 5015 ac_path_EGREP_max=$ac_count 5016 fi 5017 # 10*(2^10) chars as input seems more than enough 5018 test $ac_count -gt 10 && break 5019 done 5020 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5021esac 5022 5023 $ac_path_EGREP_found && break 3 5024 done 5025 done 5026 done 5027IFS=$as_save_IFS 5028 if test -z "$ac_cv_path_EGREP"; then 5029 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5030 fi 5031else 5032 ac_cv_path_EGREP=$EGREP 5033fi 5034 5035 fi 5036fi 5037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5038$as_echo "$ac_cv_path_EGREP" >&6; } 5039 EGREP="$ac_cv_path_EGREP" 5040 5041 5042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5043$as_echo_n "checking for ANSI C header files... " >&6; } 5044if ${ac_cv_header_stdc+:} false; then : 5045 $as_echo_n "(cached) " >&6 5046else 5047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5048/* end confdefs.h. */ 5049#include <stdlib.h> 5050#include <stdarg.h> 5051#include <string.h> 5052#include <float.h> 5053 5054int 5055main () 5056{ 5057 5058 ; 5059 return 0; 5060} 5061_ACEOF 5062if ac_fn_c_try_compile "$LINENO"; then : 5063 ac_cv_header_stdc=yes 5064else 5065 ac_cv_header_stdc=no 5066fi 5067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5068 5069if test $ac_cv_header_stdc = yes; then 5070 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5072/* end confdefs.h. */ 5073#include <string.h> 5074 5075_ACEOF 5076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5077 $EGREP "memchr" >/dev/null 2>&1; then : 5078 5079else 5080 ac_cv_header_stdc=no 5081fi 5082rm -f conftest* 5083 5084fi 5085 5086if test $ac_cv_header_stdc = yes; then 5087 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5089/* end confdefs.h. */ 5090#include <stdlib.h> 5091 5092_ACEOF 5093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5094 $EGREP "free" >/dev/null 2>&1; then : 5095 5096else 5097 ac_cv_header_stdc=no 5098fi 5099rm -f conftest* 5100 5101fi 5102 5103if test $ac_cv_header_stdc = yes; then 5104 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5105 if test "$cross_compiling" = yes; then : 5106 : 5107else 5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5109/* end confdefs.h. */ 5110#include <ctype.h> 5111#include <stdlib.h> 5112#if ((' ' & 0x0FF) == 0x020) 5113# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5114# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5115#else 5116# define ISLOWER(c) \ 5117 (('a' <= (c) && (c) <= 'i') \ 5118 || ('j' <= (c) && (c) <= 'r') \ 5119 || ('s' <= (c) && (c) <= 'z')) 5120# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5121#endif 5122 5123#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5124int 5125main () 5126{ 5127 int i; 5128 for (i = 0; i < 256; i++) 5129 if (XOR (islower (i), ISLOWER (i)) 5130 || toupper (i) != TOUPPER (i)) 5131 return 2; 5132 return 0; 5133} 5134_ACEOF 5135if ac_fn_c_try_run "$LINENO"; then : 5136 5137else 5138 ac_cv_header_stdc=no 5139fi 5140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5141 conftest.$ac_objext conftest.beam conftest.$ac_ext 5142fi 5143 5144fi 5145fi 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5147$as_echo "$ac_cv_header_stdc" >&6; } 5148if test $ac_cv_header_stdc = yes; then 5149 5150$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5151 5152fi 5153 5154# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5155for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5156 inttypes.h stdint.h unistd.h 5157do : 5158 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5159ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5160" 5161if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5162 cat >>confdefs.h <<_ACEOF 5163#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5164_ACEOF 5165 5166fi 5167 5168done 5169 5170 5171 5172 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5173if test "x$ac_cv_header_minix_config_h" = xyes; then : 5174 MINIX=yes 5175else 5176 MINIX= 5177fi 5178 5179 5180 if test "$MINIX" = yes; then 5181 5182$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5183 5184 5185$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5186 5187 5188$as_echo "#define _MINIX 1" >>confdefs.h 5189 5190 fi 5191 5192 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5194$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5195if ${ac_cv_safe_to_define___extensions__+:} false; then : 5196 $as_echo_n "(cached) " >&6 5197else 5198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5199/* end confdefs.h. */ 5200 5201# define __EXTENSIONS__ 1 5202 $ac_includes_default 5203int 5204main () 5205{ 5206 5207 ; 5208 return 0; 5209} 5210_ACEOF 5211if ac_fn_c_try_compile "$LINENO"; then : 5212 ac_cv_safe_to_define___extensions__=yes 5213else 5214 ac_cv_safe_to_define___extensions__=no 5215fi 5216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5217fi 5218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5219$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5220 test $ac_cv_safe_to_define___extensions__ = yes && 5221 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5222 5223 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5224 5225 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5226 5227 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5228 5229 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5230 5231 5232 5233# Check for unsupported systems 5234case $ac_sys_system/$ac_sys_release in 5235atheos*|Linux*/1*) 5236 echo This system \($ac_sys_system/$ac_sys_release\) is no longer supported. 5237 echo See README for details. 5238 exit 1;; 5239esac 5240 5241 5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-suffix" >&5 5243$as_echo_n "checking for --with-suffix... " >&6; } 5244 5245# Check whether --with-suffix was given. 5246if test "${with_suffix+set}" = set; then : 5247 withval=$with_suffix; 5248 case $withval in 5249 no) EXEEXT=;; 5250 yes) EXEEXT=.exe;; 5251 *) EXEEXT=$withval;; 5252 esac 5253fi 5254 5255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT" >&5 5256$as_echo "$EXEEXT" >&6; } 5257 5258# Test whether we're running on a non-case-sensitive system, in which 5259# case we give a warning if no ext is given 5260 5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for case-insensitive build directory" >&5 5262$as_echo_n "checking for case-insensitive build directory... " >&6; } 5263if test ! -d CaseSensitiveTestDir; then 5264mkdir CaseSensitiveTestDir 5265fi 5266 5267if test -d casesensitivetestdir 5268then 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5270$as_echo "yes" >&6; } 5271 BUILDEXEEXT=.exe 5272else 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5274$as_echo "no" >&6; } 5275 BUILDEXEEXT=$EXEEXT 5276fi 5277rmdir CaseSensitiveTestDir 5278 5279case $MACHDEP in 5280bsdos*) 5281 case $CC in 5282 gcc) CC="$CC -D_HAVE_BSDI";; 5283 esac;; 5284esac 5285 5286case $ac_sys_system in 5287hp*|HP*) 5288 case $CC in 5289 cc|*/cc) CC="$CC -Ae";; 5290 esac;; 5291SunOS*) 5292 # Some functions have a prototype only with that define, e.g. confstr 5293 5294$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5295 5296 ;; 5297esac 5298 5299 5300 5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBRARY" >&5 5302$as_echo_n "checking LIBRARY... " >&6; } 5303if test -z "$LIBRARY" 5304then 5305 LIBRARY='libpython$(VERSION).a' 5306fi 5307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBRARY" >&5 5308$as_echo "$LIBRARY" >&6; } 5309 5310# LDLIBRARY is the name of the library to link against (as opposed to the 5311# name of the library into which to insert object files). BLDLIBRARY is also 5312# the library to link against, usually. On Mac OS X frameworks, BLDLIBRARY 5313# is blank as the main program is not linked directly against LDLIBRARY. 5314# LDLIBRARYDIR is the path to LDLIBRARY, which is made in a subdirectory. On 5315# systems without shared libraries, LDLIBRARY is the same as LIBRARY 5316# (defined in the Makefiles). On Cygwin LDLIBRARY is the import library, 5317# DLLLIBRARY is the shared (i.e., DLL) library. 5318# 5319# RUNSHARED is used to run shared python without installed libraries 5320# 5321# INSTSONAME is the name of the shared library that will be use to install 5322# on the system - some systems like version suffix, others don't 5323 5324 5325 5326 5327 5328 5329LDLIBRARY="$LIBRARY" 5330BLDLIBRARY='$(LDLIBRARY)' 5331INSTSONAME='$(LDLIBRARY)' 5332DLLLIBRARY='' 5333LDLIBRARYDIR='' 5334RUNSHARED='' 5335 5336# LINKCC is the command that links the python executable -- default is $(CC). 5337# If CXX is set, and if it is needed to link a main function that was 5338# compiled with CXX, LINKCC is CXX instead. Always using CXX is undesirable: 5339# python might then depend on the C++ runtime 5340# This is altered for AIX in order to build the export list before 5341# linking. 5342 5343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKCC" >&5 5344$as_echo_n "checking LINKCC... " >&6; } 5345if test -z "$LINKCC" 5346then 5347 LINKCC='$(PURIFY) $(MAINCC)' 5348 case $ac_sys_system in 5349 AIX*) 5350 exp_extra="\"\"" 5351 if test $ac_sys_release -ge 5 -o \ 5352 $ac_sys_release -eq 4 -a "6.3-DPORTS" -ge 2 ; then 5353 exp_extra="." 5354 fi 5355 LINKCC="\$(srcdir)/Modules/makexp_aix Modules/python.exp $exp_extra \$(LIBRARY); $LINKCC";; 5356 QNX*) 5357 # qcc must be used because the other compilers do not 5358 # support -N. 5359 LINKCC=qcc;; 5360 esac 5361fi 5362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKCC" >&5 5363$as_echo "$LINKCC" >&6; } 5364 5365# GNULD is set to "yes" if the GNU linker is used. If this goes wrong 5366# make sure we default having it set to "no": this is used by 5367# distutils.unixccompiler to know if it should add --enable-new-dtags 5368# to linker command lines, and failing to detect GNU ld simply results 5369# in the same bahaviour as before. 5370 5371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5372$as_echo_n "checking for GNU ld... " >&6; } 5373ac_prog=ld 5374if test "$GCC" = yes; then 5375 ac_prog=`$CC -print-prog-name=ld` 5376fi 5377case `"$ac_prog" -V 2>&1 < /dev/null` in 5378 *GNU*) 5379 GNULD=yes;; 5380 *) 5381 GNULD=no;; 5382esac 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNULD" >&5 5384$as_echo "$GNULD" >&6; } 5385 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-shared" >&5 5387$as_echo_n "checking for --enable-shared... " >&6; } 5388# Check whether --enable-shared was given. 5389if test "${enable_shared+set}" = set; then : 5390 enableval=$enable_shared; 5391fi 5392 5393 5394if test -z "$enable_shared" 5395then 5396 case $ac_sys_system in 5397 CYGWIN* | atheos*) 5398 enable_shared="yes";; 5399 *) 5400 enable_shared="no";; 5401 esac 5402fi 5403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 5404$as_echo "$enable_shared" >&6; } 5405 5406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-profiling" >&5 5407$as_echo_n "checking for --enable-profiling... " >&6; } 5408# Check whether --enable-profiling was given. 5409if test "${enable_profiling+set}" = set; then : 5410 enableval=$enable_profiling; 5411fi 5412 5413if test "x$enable_profiling" = xyes; then 5414 ac_save_cc="$CC" 5415 CC="$CC -pg" 5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418int main() { return 0; } 5419_ACEOF 5420if ac_fn_c_try_link "$LINENO"; then : 5421 5422else 5423 enable_profiling=no 5424fi 5425rm -f core conftest.err conftest.$ac_objext \ 5426 conftest$ac_exeext conftest.$ac_ext 5427 CC="$ac_save_cc" 5428else 5429 enable_profiling=no 5430fi 5431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_profiling" >&5 5432$as_echo "$enable_profiling" >&6; } 5433 5434if test "x$enable_profiling" = xyes; then 5435 BASECFLAGS="-pg $BASECFLAGS" 5436 LDFLAGS="-pg $LDFLAGS" 5437fi 5438 5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDLIBRARY" >&5 5440$as_echo_n "checking LDLIBRARY... " >&6; } 5441 5442# MacOSX framework builds need more magic. LDLIBRARY is the dynamic 5443# library that we build, but we do not want to link against it (we 5444# will find it with a -framework option). For this reason there is an 5445# extra variable BLDLIBRARY against which Python and the extension 5446# modules are linked, BLDLIBRARY. This is normally the same as 5447# LDLIBRARY, but empty for MacOSX framework builds. 5448if test "$enable_framework" 5449then 5450 LDLIBRARY='$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 5451 RUNSHARED=DYLD_FRAMEWORK_PATH=`pwd`${DYLD_FRAMEWORK_PATH:+:${DYLD_FRAMEWORK_PATH}} 5452 BLDLIBRARY='' 5453else 5454 BLDLIBRARY='$(LDLIBRARY)' 5455fi 5456 5457# Other platforms follow 5458if test $enable_shared = "yes"; then 5459 5460$as_echo "#define Py_ENABLE_SHARED 1" >>confdefs.h 5461 5462 case $ac_sys_system in 5463 BeOS*) 5464 LDLIBRARY='libpython$(VERSION).so' 5465 ;; 5466 CYGWIN*) 5467 LDLIBRARY='libpython$(VERSION).dll.a' 5468 DLLLIBRARY='libpython$(VERSION).dll' 5469 ;; 5470 SunOS*) 5471 LDLIBRARY='libpython$(VERSION).so' 5472 BLDLIBRARY='-Wl,-R,$(LIBDIR) -L. -lpython$(VERSION)' 5473 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5474 INSTSONAME="$LDLIBRARY".$SOVERSION 5475 ;; 5476 Linux*|GNU*|NetBSD*|FreeBSD*|DragonFly*|OpenBSD*) 5477 LDLIBRARY='libpython$(VERSION).so' 5478 BLDLIBRARY='-L. -lpython$(VERSION)' 5479 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5480 case $ac_sys_system in 5481 DragonFly*|FreeBSD*) 5482 SOVERSION=`echo $SOVERSION|cut -d "." -f 1` 5483 ;; 5484 esac 5485 INSTSONAME="$LDLIBRARY".$SOVERSION 5486 ;; 5487 hp*|HP*) 5488 case `uname -m` in 5489 ia64) 5490 LDLIBRARY='libpython$(VERSION).so' 5491 ;; 5492 *) 5493 LDLIBRARY='libpython$(VERSION).sl' 5494 ;; 5495 esac 5496 BLDLIBRARY='-Wl,+b,$(LIBDIR) -L. -lpython$(VERSION)' 5497 RUNSHARED=SHLIB_PATH=`pwd`${SHLIB_PATH:+:${SHLIB_PATH}} 5498 ;; 5499 OSF*) 5500 LDLIBRARY='libpython$(VERSION).so' 5501 BLDLIBRARY='-rpath $(LIBDIR) -L. -lpython$(VERSION)' 5502 RUNSHARED=LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} 5503 ;; 5504 atheos*) 5505 LDLIBRARY='libpython$(VERSION).so' 5506 BLDLIBRARY='-L. -lpython$(VERSION)' 5507 RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} 5508 ;; 5509 Darwin*) 5510 LDLIBRARY='libpython$(VERSION).dylib' 5511 BLDLIBRARY='-L. -lpython$(VERSION)' 5512 RUNSHARED=DYLD_LIBRARY_PATH=`pwd`${DYLD_LIBRARY_PATH:+:${DYLD_LIBRARY_PATH}} 5513 ;; 5514 AIX*) 5515 LDLIBRARY='libpython$(VERSION).so' 5516 RUNSHARED=LIBPATH=`pwd`${LIBPATH:+:${LIBPATH}} 5517 ;; 5518 5519 esac 5520else # shared is disabled 5521 case $ac_sys_system in 5522 CYGWIN*) 5523 BLDLIBRARY='$(LIBRARY)' 5524 LDLIBRARY='libpython$(VERSION).dll.a' 5525 ;; 5526 esac 5527fi 5528 5529if test "$cross_compiling" = yes; then 5530 RUNSHARED= 5531fi 5532 5533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDLIBRARY" >&5 5534$as_echo "$LDLIBRARY" >&6; } 5535 5536if test -n "$ac_tool_prefix"; then 5537 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5538set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5540$as_echo_n "checking for $ac_word... " >&6; } 5541if ${ac_cv_prog_RANLIB+:} false; then : 5542 $as_echo_n "(cached) " >&6 5543else 5544 if test -n "$RANLIB"; then 5545 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5546else 5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5548for as_dir in $PATH 5549do 5550 IFS=$as_save_IFS 5551 test -z "$as_dir" && as_dir=. 5552 for ac_exec_ext in '' $ac_executable_extensions; do 5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5556 break 2 5557 fi 5558done 5559 done 5560IFS=$as_save_IFS 5561 5562fi 5563fi 5564RANLIB=$ac_cv_prog_RANLIB 5565if test -n "$RANLIB"; then 5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5567$as_echo "$RANLIB" >&6; } 5568else 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5570$as_echo "no" >&6; } 5571fi 5572 5573 5574fi 5575if test -z "$ac_cv_prog_RANLIB"; then 5576 ac_ct_RANLIB=$RANLIB 5577 # Extract the first word of "ranlib", so it can be a program name with args. 5578set dummy ranlib; ac_word=$2 5579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5580$as_echo_n "checking for $ac_word... " >&6; } 5581if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583else 5584 if test -n "$ac_ct_RANLIB"; then 5585 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5586else 5587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5588for as_dir in $PATH 5589do 5590 IFS=$as_save_IFS 5591 test -z "$as_dir" && as_dir=. 5592 for ac_exec_ext in '' $ac_executable_extensions; do 5593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5594 ac_cv_prog_ac_ct_RANLIB="ranlib" 5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5596 break 2 5597 fi 5598done 5599 done 5600IFS=$as_save_IFS 5601 5602fi 5603fi 5604ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5605if test -n "$ac_ct_RANLIB"; then 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5607$as_echo "$ac_ct_RANLIB" >&6; } 5608else 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5610$as_echo "no" >&6; } 5611fi 5612 5613 if test "x$ac_ct_RANLIB" = x; then 5614 RANLIB=":" 5615 else 5616 case $cross_compiling:$ac_tool_warned in 5617yes:) 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5620ac_tool_warned=yes ;; 5621esac 5622 RANLIB=$ac_ct_RANLIB 5623 fi 5624else 5625 RANLIB="$ac_cv_prog_RANLIB" 5626fi 5627 5628 5629if test -n "$ac_tool_prefix"; then 5630 for ac_prog in ar aal 5631 do 5632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5633set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5635$as_echo_n "checking for $ac_word... " >&6; } 5636if ${ac_cv_prog_AR+:} false; then : 5637 $as_echo_n "(cached) " >&6 5638else 5639 if test -n "$AR"; then 5640 ac_cv_prog_AR="$AR" # Let the user override the test. 5641else 5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5643for as_dir in $PATH 5644do 5645 IFS=$as_save_IFS 5646 test -z "$as_dir" && as_dir=. 5647 for ac_exec_ext in '' $ac_executable_extensions; do 5648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5649 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5651 break 2 5652 fi 5653done 5654 done 5655IFS=$as_save_IFS 5656 5657fi 5658fi 5659AR=$ac_cv_prog_AR 5660if test -n "$AR"; then 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5662$as_echo "$AR" >&6; } 5663else 5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5665$as_echo "no" >&6; } 5666fi 5667 5668 5669 test -n "$AR" && break 5670 done 5671fi 5672if test -z "$AR"; then 5673 ac_ct_AR=$AR 5674 for ac_prog in ar aal 5675do 5676 # Extract the first word of "$ac_prog", so it can be a program name with args. 5677set dummy $ac_prog; ac_word=$2 5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5679$as_echo_n "checking for $ac_word... " >&6; } 5680if ${ac_cv_prog_ac_ct_AR+:} false; then : 5681 $as_echo_n "(cached) " >&6 5682else 5683 if test -n "$ac_ct_AR"; then 5684 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5685else 5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5687for as_dir in $PATH 5688do 5689 IFS=$as_save_IFS 5690 test -z "$as_dir" && as_dir=. 5691 for ac_exec_ext in '' $ac_executable_extensions; do 5692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5693 ac_cv_prog_ac_ct_AR="$ac_prog" 5694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5695 break 2 5696 fi 5697done 5698 done 5699IFS=$as_save_IFS 5700 5701fi 5702fi 5703ac_ct_AR=$ac_cv_prog_ac_ct_AR 5704if test -n "$ac_ct_AR"; then 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5706$as_echo "$ac_ct_AR" >&6; } 5707else 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5709$as_echo "no" >&6; } 5710fi 5711 5712 5713 test -n "$ac_ct_AR" && break 5714done 5715 5716 if test "x$ac_ct_AR" = x; then 5717 AR="ar" 5718 else 5719 case $cross_compiling:$ac_tool_warned in 5720yes:) 5721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5723ac_tool_warned=yes ;; 5724esac 5725 AR=$ac_ct_AR 5726 fi 5727fi 5728 5729 5730# tweak ARFLAGS only if the user didn't set it on the command line 5731 5732if test -z "$ARFLAGS" 5733then 5734 ARFLAGS="rc" 5735fi 5736 5737 5738 5739 5740 5741if test -e $srcdir/.git 5742then 5743# Extract the first word of "git", so it can be a program name with args. 5744set dummy git; ac_word=$2 5745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5746$as_echo_n "checking for $ac_word... " >&6; } 5747if ${ac_cv_prog_HAS_GIT+:} false; then : 5748 $as_echo_n "(cached) " >&6 5749else 5750 if test -n "$HAS_GIT"; then 5751 ac_cv_prog_HAS_GIT="$HAS_GIT" # Let the user override the test. 5752else 5753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5754for as_dir in $PATH 5755do 5756 IFS=$as_save_IFS 5757 test -z "$as_dir" && as_dir=. 5758 for ac_exec_ext in '' $ac_executable_extensions; do 5759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5760 ac_cv_prog_HAS_GIT="found" 5761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5762 break 2 5763 fi 5764done 5765 done 5766IFS=$as_save_IFS 5767 5768 test -z "$ac_cv_prog_HAS_GIT" && ac_cv_prog_HAS_GIT="not-found" 5769fi 5770fi 5771HAS_GIT=$ac_cv_prog_HAS_GIT 5772if test -n "$HAS_GIT"; then 5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAS_GIT" >&5 5774$as_echo "$HAS_GIT" >&6; } 5775else 5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5777$as_echo "no" >&6; } 5778fi 5779 5780 5781else 5782HAS_GIT=no-repository 5783fi 5784if test $HAS_GIT = found 5785then 5786 GITVERSION="git --git-dir \$(srcdir)/.git rev-parse --short HEAD" 5787 GITTAG="git --git-dir \$(srcdir)/.git describe --all --always --dirty" 5788 GITBRANCH="git --git-dir \$(srcdir)/.git name-rev --name-only HEAD" 5789else 5790 GITVERSION="" 5791 GITTAG="" 5792 GITBRANCH="" 5793fi 5794 5795case $MACHDEP in 5796bsdos*|hp*|HP*) 5797 # install -d does not work on BSDI or HP-UX 5798 if test -z "$INSTALL" 5799 then 5800 INSTALL="${srcdir}/install-sh -c" 5801 fi 5802esac 5803# Find a good install program. We prefer a C program (faster), 5804# so one script is as good as another. But avoid the broken or 5805# incompatible versions: 5806# SysV /etc/install, /usr/sbin/install 5807# SunOS /usr/etc/install 5808# IRIX /sbin/install 5809# AIX /bin/install 5810# AmigaOS /C/install, which installs bootblocks on floppy discs 5811# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5812# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5813# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5814# OS/2's system install, which has a completely different semantic 5815# ./install, which can be erroneously created by make from ./install.sh. 5816# Reject install programs that cannot install multiple files. 5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5818$as_echo_n "checking for a BSD-compatible install... " >&6; } 5819if test -z "$INSTALL"; then 5820if ${ac_cv_path_install+:} false; then : 5821 $as_echo_n "(cached) " >&6 5822else 5823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5824for as_dir in $PATH 5825do 5826 IFS=$as_save_IFS 5827 test -z "$as_dir" && as_dir=. 5828 # Account for people who put trailing slashes in PATH elements. 5829case $as_dir/ in #(( 5830 ./ | .// | /[cC]/* | \ 5831 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5832 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5833 /usr/ucb/* ) ;; 5834 *) 5835 # OSF1 and SCO ODT 3.0 have their own names for install. 5836 # Don't use installbsd from OSF since it installs stuff as root 5837 # by default. 5838 for ac_prog in ginstall scoinst install; do 5839 for ac_exec_ext in '' $ac_executable_extensions; do 5840 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 5841 if test $ac_prog = install && 5842 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5843 # AIX install. It has an incompatible calling convention. 5844 : 5845 elif test $ac_prog = install && 5846 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5847 # program-specific install script used by HP pwplus--don't use. 5848 : 5849 else 5850 rm -rf conftest.one conftest.two conftest.dir 5851 echo one > conftest.one 5852 echo two > conftest.two 5853 mkdir conftest.dir 5854 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5855 test -s conftest.one && test -s conftest.two && 5856 test -s conftest.dir/conftest.one && 5857 test -s conftest.dir/conftest.two 5858 then 5859 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5860 break 3 5861 fi 5862 fi 5863 fi 5864 done 5865 done 5866 ;; 5867esac 5868 5869 done 5870IFS=$as_save_IFS 5871 5872rm -rf conftest.one conftest.two conftest.dir 5873 5874fi 5875 if test "${ac_cv_path_install+set}" = set; then 5876 INSTALL=$ac_cv_path_install 5877 else 5878 # As a last resort, use the slow shell script. Don't cache a 5879 # value for INSTALL within a source directory, because that will 5880 # break other packages using the cache if that directory is 5881 # removed, or if the value is a relative name. 5882 INSTALL=$ac_install_sh 5883 fi 5884fi 5885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5886$as_echo "$INSTALL" >&6; } 5887 5888# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5889# It thinks the first close brace ends the variable substitution. 5890test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5891 5892test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5893 5894test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5895 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 5897$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 5898if test -z "$MKDIR_P"; then 5899 if ${ac_cv_path_mkdir+:} false; then : 5900 $as_echo_n "(cached) " >&6 5901else 5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5903for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 5904do 5905 IFS=$as_save_IFS 5906 test -z "$as_dir" && as_dir=. 5907 for ac_prog in mkdir gmkdir; do 5908 for ac_exec_ext in '' $ac_executable_extensions; do 5909 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 5910 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 5911 'mkdir (GNU coreutils) '* | \ 5912 'mkdir (coreutils) '* | \ 5913 'mkdir (fileutils) '4.1*) 5914 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 5915 break 3;; 5916 esac 5917 done 5918 done 5919 done 5920IFS=$as_save_IFS 5921 5922fi 5923 5924 test -d ./--version && rmdir ./--version 5925 if test "${ac_cv_path_mkdir+set}" = set; then 5926 MKDIR_P="$ac_cv_path_mkdir -p" 5927 else 5928 # As a last resort, use the slow shell script. Don't cache a 5929 # value for MKDIR_P within a source directory, because that will 5930 # break other packages using the cache if that directory is 5931 # removed, or if the value is a relative name. 5932 MKDIR_P="$ac_install_sh -d" 5933 fi 5934fi 5935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 5936$as_echo "$MKDIR_P" >&6; } 5937 5938 5939# Not every filesystem supports hard links 5940 5941if test -z "$LN" ; then 5942 case $ac_sys_system in 5943 BeOS*) LN="ln -s";; 5944 CYGWIN*) LN="ln -s";; 5945 atheos*) LN="ln -s";; 5946 *) LN=ln;; 5947 esac 5948fi 5949 5950# Check for --with-pydebug 5951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pydebug" >&5 5952$as_echo_n "checking for --with-pydebug... " >&6; } 5953 5954# Check whether --with-pydebug was given. 5955if test "${with_pydebug+set}" = set; then : 5956 withval=$with_pydebug; 5957if test "$withval" != no 5958then 5959 5960$as_echo "#define Py_DEBUG 1" >>confdefs.h 5961 5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5963$as_echo "yes" >&6; }; 5964 Py_DEBUG='true' 5965else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5966$as_echo "no" >&6; }; Py_DEBUG='false' 5967fi 5968else 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5970$as_echo "no" >&6; } 5971fi 5972 5973 5974# XXX Shouldn't the code above that fiddles with BASECFLAGS and OPT be 5975# merged with this chunk of code? 5976 5977# Optimizer/debugger flags 5978# ------------------------ 5979# (The following bit of code is complicated enough - please keep things 5980# indented properly. Just pretend you're editing Python code. ;-) 5981 5982# There are two parallel sets of case statements below, one that checks to 5983# see if OPT was set and one that does BASECFLAGS setting based upon 5984# compiler and platform. BASECFLAGS tweaks need to be made even if the 5985# user set OPT. 5986 5987# tweak OPT based on compiler and platform, only if the user didn't set 5988# it on the command line 5989 5990if test "${OPT-unset}" = "unset" 5991then 5992 case $GCC in 5993 yes) 5994 if test "$CC" != 'g++' ; then 5995 STRICT_PROTO="-Wstrict-prototypes" 5996 fi 5997 # For gcc 4.x we need to use -fwrapv so lets check if its supported 5998 if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then 5999 WRAP="-fwrapv" 6000 fi 6001 6002 # Clang also needs -fwrapv 6003 case $CC in 6004 *clang*) WRAP="-fwrapv" 6005 ;; 6006 esac 6007 6008 case $ac_cv_prog_cc_g in 6009 yes) 6010 if test "$Py_DEBUG" = 'true' ; then 6011 # Optimization messes up debuggers, so turn it off for 6012 # debug builds. 6013 OPT="-g -O0 -Wall $STRICT_PROTO" 6014 else 6015 OPT="-g $WRAP -O3 -Wall $STRICT_PROTO" 6016 fi 6017 ;; 6018 *) 6019 OPT="-O3 -Wall $STRICT_PROTO" 6020 ;; 6021 esac 6022 case $ac_sys_system in 6023 SCO_SV*) OPT="$OPT -m486 -DSCO5" 6024 ;; 6025 esac 6026 ;; 6027 6028 *) 6029 OPT="-O" 6030 ;; 6031 esac 6032fi 6033 6034 6035 6036# The -arch flags for universal builds on OSX 6037UNIVERSAL_ARCH_FLAGS= 6038 6039 6040# tweak BASECFLAGS based on compiler and platform 6041case $GCC in 6042yes) 6043 # Python violates C99 rules, by casting between incompatible 6044 # pointer types. GCC may generate bad code as a result of that, 6045 # so use -fno-strict-aliasing if supported. 6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-strict-aliasing" >&5 6047$as_echo_n "checking whether $CC accepts -fno-strict-aliasing... " >&6; } 6048 ac_save_cc="$CC" 6049 CC="$CC -fno-strict-aliasing" 6050 if ${ac_cv_no_strict_aliasing_ok+:} false; then : 6051 $as_echo_n "(cached) " >&6 6052else 6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6054/* end confdefs.h. */ 6055 6056int 6057main () 6058{ 6059 6060 ; 6061 return 0; 6062} 6063_ACEOF 6064if ac_fn_c_try_compile "$LINENO"; then : 6065 ac_cv_no_strict_aliasing_ok=yes 6066else 6067 ac_cv_no_strict_aliasing_ok=no 6068fi 6069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6070fi 6071 6072 CC="$ac_save_cc" 6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_no_strict_aliasing_ok" >&5 6074$as_echo "$ac_cv_no_strict_aliasing_ok" >&6; } 6075 if test $ac_cv_no_strict_aliasing_ok = yes 6076 then 6077 BASECFLAGS="$BASECFLAGS -fno-strict-aliasing" 6078 fi 6079 6080 # if using gcc on alpha, use -mieee to get (near) full IEEE 754 6081 # support. Without this, treatment of subnormals doesn't follow 6082 # the standard. 6083 case $host in 6084 alpha*) 6085 BASECFLAGS="$BASECFLAGS -mieee" 6086 ;; 6087 esac 6088 6089 case $ac_sys_system in 6090 SCO_SV*) 6091 BASECFLAGS="$BASECFLAGS -m486 -DSCO5" 6092 ;; 6093 # is there any other compiler on Darwin besides gcc? 6094 Darwin*) 6095 # -Wno-long-double, -no-cpp-precomp, and -mno-fused-madd 6096 # used to be here, but non-Apple gcc doesn't accept them. 6097 if test "${CC}" = gcc 6098 then 6099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which compiler should be used" >&5 6100$as_echo_n "checking which compiler should be used... " >&6; } 6101 case "${UNIVERSALSDK}" in 6102 */MacOSX10.4u.sdk) 6103 # Build using 10.4 SDK, force usage of gcc when the 6104 # compiler is gcc, otherwise the user will get very 6105 # confusing error messages when building on OSX 10.6 6106 CC=gcc-4.0 6107 CPP=cpp-4.0 6108 ;; 6109 esac 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 6111$as_echo "$CC" >&6; } 6112 fi 6113 6114 if test "${enable_universalsdk}" 6115 then 6116 case "$UNIVERSAL_ARCHS" in 6117 32-bit) 6118 UNIVERSAL_ARCH_FLAGS="-arch ppc -arch i386" 6119 LIPO_32BIT_FLAGS="" 6120 ARCH_RUN_32BIT="" 6121 ;; 6122 64-bit) 6123 UNIVERSAL_ARCH_FLAGS="-arch ppc64 -arch x86_64" 6124 LIPO_32BIT_FLAGS="" 6125 ARCH_RUN_32BIT="" 6126 ;; 6127 all) 6128 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch ppc64 -arch x86_64" 6129 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 6130 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 6131 ;; 6132 intel) 6133 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch x86_64" 6134 LIPO_32BIT_FLAGS="-extract i386" 6135 ARCH_RUN_32BIT="/usr/bin/arch -i386" 6136 ;; 6137 intel-32) 6138 UNIVERSAL_ARCH_FLAGS="-arch i386" 6139 LIPO_32BIT_FLAGS="" 6140 ARCH_RUN_32BIT="" 6141 ;; 6142 intel-64) 6143 UNIVERSAL_ARCH_FLAGS="-arch x86_64" 6144 LIPO_32BIT_FLAGS="" 6145 ARCH_RUN_32BIT="" 6146 ;; 6147 3-way) 6148 UNIVERSAL_ARCH_FLAGS="-arch i386 -arch ppc -arch x86_64" 6149 LIPO_32BIT_FLAGS="-extract ppc7400 -extract i386" 6150 ARCH_RUN_32BIT="/usr/bin/arch -i386 -ppc" 6151 ;; 6152 *) 6153 as_fn_error $? "proper usage is --with-universal-arch=32-bit|64-bit|all|intel|3-way" "$LINENO" 5 6154 ;; 6155 esac 6156 6157 if test "${UNIVERSALSDK}" != "/" 6158 then 6159 CFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${CFLAGS}" 6160 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}" 6161 CPPFLAGS="-isysroot ${UNIVERSALSDK} ${CPPFLAGS}" 6162 else 6163 CFLAGS="${UNIVERSAL_ARCH_FLAGS} ${CFLAGS}" 6164 LDFLAGS="${UNIVERSAL_ARCH_FLAGS} ${LDFLAGS}" 6165 fi 6166 fi 6167 6168 # Calculate an appropriate deployment target for this build: 6169 # The deployment target value is used explicitly to enable certain 6170 # features are enabled (such as builtin libedit support for readline) 6171 # through the use of Apple's Availability Macros and is used as a 6172 # component of the string returned by distutils.get_platform(). 6173 # 6174 # Use the value from: 6175 # 1. the MACOSX_DEPLOYMENT_TARGET environment variable if specified 6176 # 2. the operating system version of the build machine if >= 10.6 6177 # 3. If running on OS X 10.3 through 10.5, use the legacy tests 6178 # below to pick either 10.3, 10.4, or 10.5 as the target. 6179 # 4. If we are running on OS X 10.2 or earlier, good luck! 6180 6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which MACOSX_DEPLOYMENT_TARGET to use" >&5 6182$as_echo_n "checking which MACOSX_DEPLOYMENT_TARGET to use... " >&6; } 6183 cur_target_major=`sw_vers -productVersion | \ 6184 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 6185 cur_target_minor=`sw_vers -productVersion | \ 6186 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 6187 cur_target="${cur_target_major}.${cur_target_minor}" 6188 if test ${cur_target_major} -eq 10 && \ 6189 test ${cur_target_minor} -ge 3 && \ 6190 test ${cur_target_minor} -le 5 6191 then 6192 # OS X 10.3 through 10.5 6193 cur_target=10.3 6194 if test ${enable_universalsdk} 6195 then 6196 case "$UNIVERSAL_ARCHS" in 6197 all|3-way|intel|64-bit) 6198 # These configurations were first supported in 10.5 6199 cur_target='10.5' 6200 ;; 6201 esac 6202 else 6203 if test `/usr/bin/arch` = "i386" 6204 then 6205 # 10.4 was the first release to support Intel archs 6206 cur_target="10.4" 6207 fi 6208 fi 6209 fi 6210 CONFIGURE_MACOSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET-${cur_target}} 6211 6212 # Make sure that MACOSX_DEPLOYMENT_TARGET is set in the 6213 # environment with a value that is the same as what we'll use 6214 # in the Makefile to ensure that we'll get the same compiler 6215 # environment during configure and build time. 6216 MACOSX_DEPLOYMENT_TARGET="$CONFIGURE_MACOSX_DEPLOYMENT_TARGET" 6217 export MACOSX_DEPLOYMENT_TARGET 6218 EXPORT_MACOSX_DEPLOYMENT_TARGET='' 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MACOSX_DEPLOYMENT_TARGET" >&5 6220$as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; } 6221 6222 # end of Darwin* tests 6223 ;; 6224 OSF*) 6225 BASECFLAGS="$BASECFLAGS -mieee" 6226 ;; 6227 esac 6228 ;; 6229 6230*) 6231 case $ac_sys_system in 6232 OpenUNIX*|UnixWare*) 6233 BASECFLAGS="$BASECFLAGS -K pentium,host,inline,loop_unroll,alloca " 6234 ;; 6235 OSF*) 6236 BASECFLAGS="$BASECFLAGS -ieee -std" 6237 ;; 6238 SCO_SV*) 6239 BASECFLAGS="$BASECFLAGS -belf -Ki486 -DSCO5" 6240 ;; 6241 esac 6242 ;; 6243esac 6244 6245# ICC needs -fp-model strict or floats behave badly 6246case "$CC" in 6247*icc*) 6248 BASECFLAGS="$BASECFLAGS -fp-model strict" 6249 ;; 6250esac 6251 6252if test "$Py_DEBUG" = 'true'; then 6253 : 6254else 6255 OPT="-DNDEBUG $OPT" 6256fi 6257 6258if test "$ac_arch_flags" 6259then 6260 BASECFLAGS="$BASECFLAGS $ac_arch_flags" 6261fi 6262 6263# disable check for icc since it seems to pass, but generates a warning 6264if test "$CC" = icc 6265then 6266 ac_cv_opt_olimit_ok=no 6267fi 6268 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -OPT:Olimit=0" >&5 6270$as_echo_n "checking whether $CC accepts -OPT:Olimit=0... " >&6; } 6271if ${ac_cv_opt_olimit_ok+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 ac_save_cc="$CC" 6275CC="$CC -OPT:Olimit=0" 6276cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6277/* end confdefs.h. */ 6278 6279int 6280main () 6281{ 6282 6283 ; 6284 return 0; 6285} 6286_ACEOF 6287if ac_fn_c_try_compile "$LINENO"; then : 6288 ac_cv_opt_olimit_ok=yes 6289else 6290 ac_cv_opt_olimit_ok=no 6291 6292fi 6293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6294CC="$ac_save_cc" 6295fi 6296 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_opt_olimit_ok" >&5 6298$as_echo "$ac_cv_opt_olimit_ok" >&6; } 6299if test $ac_cv_opt_olimit_ok = yes; then 6300 case $ac_sys_system in 6301 # XXX is this branch needed? On MacOSX 10.2.2 the result of the 6302 # olimit_ok test is "no". Is it "yes" in some other Darwin-esque 6303 # environment? 6304 Darwin*) 6305 ;; 6306 # XXX thankfully this useless troublemaker of a flag has been 6307 # eradicated in the 3.x line. For now, make sure it isn't picked 6308 # up by any of our other platforms that use CC. 6309 AIX*|SunOS*|HP-UX*|IRIX*) 6310 ;; 6311 *) 6312 BASECFLAGS="$BASECFLAGS -OPT:Olimit=0" 6313 ;; 6314 esac 6315else 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Olimit 1500" >&5 6317$as_echo_n "checking whether $CC accepts -Olimit 1500... " >&6; } 6318 if ${ac_cv_olimit_ok+:} false; then : 6319 $as_echo_n "(cached) " >&6 6320else 6321 ac_save_cc="$CC" 6322 CC="$CC -Olimit 1500" 6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6324/* end confdefs.h. */ 6325 6326int 6327main () 6328{ 6329 6330 ; 6331 return 0; 6332} 6333_ACEOF 6334if ac_fn_c_try_compile "$LINENO"; then : 6335 ac_cv_olimit_ok=yes 6336else 6337 ac_cv_olimit_ok=no 6338 6339fi 6340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6341 CC="$ac_save_cc" 6342fi 6343 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_olimit_ok" >&5 6345$as_echo "$ac_cv_olimit_ok" >&6; } 6346 if test $ac_cv_olimit_ok = yes; then 6347 case $ac_sys_system in 6348 # Issue #16534: On HP-UX ac_cv_olimit_ok=yes is a false positive. 6349 HP-UX*) 6350 ;; 6351 *) 6352 BASECFLAGS="$BASECFLAGS -Olimit 1500" 6353 ;; 6354 esac 6355 fi 6356fi 6357 6358# Check whether GCC supports PyArg_ParseTuple format 6359if test "$GCC" = "yes" 6360then 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports ParseTuple __format__" >&5 6362$as_echo_n "checking whether gcc supports ParseTuple __format__... " >&6; } 6363 save_CFLAGS=$CFLAGS 6364 CFLAGS="$CFLAGS -Werror -Wformat" 6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6366/* end confdefs.h. */ 6367 6368 void f(char*,...)__attribute((format(PyArg_ParseTuple, 1, 2))); 6369int 6370main () 6371{ 6372 6373 ; 6374 return 0; 6375} 6376 6377_ACEOF 6378if ac_fn_c_try_compile "$LINENO"; then : 6379 6380 6381$as_echo "#define HAVE_ATTRIBUTE_FORMAT_PARSETUPLE 1" >>confdefs.h 6382 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6384$as_echo "yes" >&6; } 6385 6386else 6387 6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6389$as_echo "no" >&6; } 6390 6391fi 6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6393 CFLAGS=$save_CFLAGS 6394fi 6395 6396 6397# Enable optimization flags 6398 6399 6400Py_OPT='false' 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-optimizations" >&5 6402$as_echo_n "checking for --enable-optimizations... " >&6; } 6403# Check whether --enable-optimizations was given. 6404if test "${enable_optimizations+set}" = set; then : 6405 enableval=$enable_optimizations; 6406if test "$enableval" != no 6407then 6408 Py_OPT='true' 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6410$as_echo "yes" >&6; }; 6411else 6412 Py_OPT='false' 6413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6414$as_echo "no" >&6; }; 6415fi 6416else 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6418$as_echo "no" >&6; } 6419fi 6420 6421if test "$Py_OPT" = 'true' ; then 6422 # Intentionally not forcing Py_LTO='true' here. Too many toolchains do not 6423 # compile working code using it and both test_distutils and test_gdb are 6424 # broken when you do managed to get a toolchain that works with it. People 6425 # who want LTO need to use --with-lto themselves. 6426 DEF_MAKE_ALL_RULE="profile-opt" 6427 REQUIRE_PGO="yes" 6428 DEF_MAKE_RULE="build_all" 6429else 6430 DEF_MAKE_ALL_RULE="build_all" 6431 REQUIRE_PGO="no" 6432 DEF_MAKE_RULE="all" 6433fi 6434 6435 6436# Enable LTO flags 6437 6438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-lto" >&5 6439$as_echo_n "checking for --with-lto... " >&6; } 6440 6441# Check whether --with-lto was given. 6442if test "${with_lto+set}" = set; then : 6443 withval=$with_lto; 6444if test "$withval" != no 6445then 6446 Py_LTO='true' 6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6448$as_echo "yes" >&6; }; 6449else 6450 Py_LTO='false' 6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6452$as_echo "no" >&6; }; 6453fi 6454else 6455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6456$as_echo "no" >&6; } 6457fi 6458 6459if test "$Py_LTO" = 'true' ; then 6460 case $CC in 6461 *clang*) 6462 # Any changes made here should be reflected in the GCC+Darwin case below 6463 LTOFLAGS="-flto" 6464 ;; 6465 *gcc*) 6466 case $ac_sys_system in 6467 Darwin*) 6468 LTOFLAGS="-flto" 6469 ;; 6470 *) 6471 LTOFLAGS="-flto -fuse-linker-plugin -ffat-lto-objects -flto-partition=none" 6472 ;; 6473 esac 6474 ;; 6475 esac 6476 6477 if test "$ac_cv_prog_cc_g" = "yes" 6478 then 6479 # bpo-30345: Add -g to LDFLAGS when compiling with LTO 6480 # to get debug symbols. 6481 LTOFLAGS="$LTOFLAGS -g" 6482 fi 6483fi 6484 6485 6486# Enable PGO flags. 6487 6488 6489 6490 6491 6492# Make this work on systems where llvm tools are not installed with their 6493# normal names in the default $PATH (ie: Ubuntu). They exist under the 6494# non-suffixed name in their versioned llvm directory. 6495llvm_bin_dir='' 6496llvm_path="${PATH}" 6497if test "${CC}" = "clang" 6498then 6499 clang_bin=`which clang` 6500 # Some systems install clang elsewhere as a symlink to the real path 6501 # which is where the related llvm tools are located. 6502 if test -L "${clang_bin}" 6503 then 6504 clang_dir=`dirname "${clang_bin}"` 6505 clang_bin=`readlink "${clang_bin}"` 6506 llvm_bin_dir="${clang_dir}/"`dirname "${clang_bin}"` 6507 llvm_path="${llvm_path}${PATH_SEPARATOR}${llvm_bin_dir}" 6508 fi 6509fi 6510 6511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 6512$as_echo_n "checking target system type... " >&6; } 6513if ${ac_cv_target+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 if test "x$target_alias" = x; then 6517 ac_cv_target=$ac_cv_host 6518else 6519 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 6520 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 6521fi 6522 6523fi 6524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 6525$as_echo "$ac_cv_target" >&6; } 6526case $ac_cv_target in 6527*-*-*) ;; 6528*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 6529esac 6530target=$ac_cv_target 6531ac_save_IFS=$IFS; IFS='-' 6532set x $ac_cv_target 6533shift 6534target_cpu=$1 6535target_vendor=$2 6536shift; shift 6537# Remember, the first character of IFS is used to create $*, 6538# except with old shells: 6539target_os=$* 6540IFS=$ac_save_IFS 6541case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 6542 6543 6544# The aliases save the names the user supplied, while $host etc. 6545# will get canonicalized. 6546test -n "$target_alias" && 6547 test "$program_prefix$program_suffix$program_transform_name" = \ 6548 NONENONEs,x,x, && 6549 program_prefix=${target_alias}- 6550# Extract the first word of "$target_alias-llvm-profdata", so it can be a program name with args. 6551set dummy $target_alias-llvm-profdata; ac_word=$2 6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6553$as_echo_n "checking for $ac_word... " >&6; } 6554if ${ac_cv_path_LLVM_PROFDATA+:} false; then : 6555 $as_echo_n "(cached) " >&6 6556else 6557 case $LLVM_PROFDATA in 6558 [\\/]* | ?:[\\/]*) 6559 ac_cv_path_LLVM_PROFDATA="$LLVM_PROFDATA" # Let the user override the test with a path. 6560 ;; 6561 *) 6562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6563for as_dir in ${llvm_path} 6564do 6565 IFS=$as_save_IFS 6566 test -z "$as_dir" && as_dir=. 6567 for ac_exec_ext in '' $ac_executable_extensions; do 6568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6569 ac_cv_path_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6571 break 2 6572 fi 6573done 6574 done 6575IFS=$as_save_IFS 6576 6577 ;; 6578esac 6579fi 6580LLVM_PROFDATA=$ac_cv_path_LLVM_PROFDATA 6581if test -n "$LLVM_PROFDATA"; then 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_PROFDATA" >&5 6583$as_echo "$LLVM_PROFDATA" >&6; } 6584else 6585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6586$as_echo "no" >&6; } 6587fi 6588 6589 6590if test -z "$ac_cv_path_LLVM_PROFDATA"; then 6591 if test "$build" = "$target"; then 6592 ac_pt_LLVM_PROFDATA=$LLVM_PROFDATA 6593 # Extract the first word of "llvm-profdata", so it can be a program name with args. 6594set dummy llvm-profdata; ac_word=$2 6595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6596$as_echo_n "checking for $ac_word... " >&6; } 6597if ${ac_cv_path_ac_pt_LLVM_PROFDATA+:} false; then : 6598 $as_echo_n "(cached) " >&6 6599else 6600 case $ac_pt_LLVM_PROFDATA in 6601 [\\/]* | ?:[\\/]*) 6602 ac_cv_path_ac_pt_LLVM_PROFDATA="$ac_pt_LLVM_PROFDATA" # Let the user override the test with a path. 6603 ;; 6604 *) 6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6606for as_dir in ${llvm_path} 6607do 6608 IFS=$as_save_IFS 6609 test -z "$as_dir" && as_dir=. 6610 for ac_exec_ext in '' $ac_executable_extensions; do 6611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6612 ac_cv_path_ac_pt_LLVM_PROFDATA="$as_dir/$ac_word$ac_exec_ext" 6613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6614 break 2 6615 fi 6616done 6617 done 6618IFS=$as_save_IFS 6619 6620 test -z "$ac_cv_path_ac_pt_LLVM_PROFDATA" && ac_cv_path_ac_pt_LLVM_PROFDATA="''" 6621 ;; 6622esac 6623fi 6624ac_pt_LLVM_PROFDATA=$ac_cv_path_ac_pt_LLVM_PROFDATA 6625if test -n "$ac_pt_LLVM_PROFDATA"; then 6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LLVM_PROFDATA" >&5 6627$as_echo "$ac_pt_LLVM_PROFDATA" >&6; } 6628else 6629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6630$as_echo "no" >&6; } 6631fi 6632 6633 LLVM_PROFDATA=$ac_pt_LLVM_PROFDATA 6634 else 6635 LLVM_PROFDATA="''" 6636 fi 6637else 6638 LLVM_PROFDATA="$ac_cv_path_LLVM_PROFDATA" 6639fi 6640 6641 6642if test -n "${LLVM_PROFDATA}" -a -x "${LLVM_PROFDATA}" 6643then 6644 LLVM_PROF_FOUND="found" 6645else 6646 LLVM_PROF_FOUND="not-found" 6647fi 6648if test "$ac_sys_system" = "Darwin" -a "${LLVM_PROF_FOUND}" = "not-found" 6649then 6650 found_llvm_profdata=`/usr/bin/xcrun -find llvm-profdata 2>/dev/null` 6651 if test -n "${found_llvm_profdata}" 6652 then 6653 # llvm-profdata isn't directly in $PATH in some cases. 6654 # https://apple.stackexchange.com/questions/197053/ 6655 LLVM_PROFDATA='/usr/bin/xcrun llvm-profdata' 6656 LLVM_PROF_FOUND=found 6657 { $as_echo "$as_me:${as_lineno-$LINENO}: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&5 6658$as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;} 6659 fi 6660fi 6661LLVM_PROF_ERR=no 6662case $CC in 6663 *clang*) 6664 # Any changes made here should be reflected in the GCC+Darwin case below 6665 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6666 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6667 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6668 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6669 if test $LLVM_PROF_FOUND = not-found 6670 then 6671 LLVM_PROF_ERR=yes 6672 if test "${REQUIRE_PGO}" = "yes" 6673 then 6674 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6675 fi 6676 fi 6677 ;; 6678 *gcc*) 6679 case $ac_sys_system in 6680 Darwin*) 6681 PGO_PROF_GEN_FLAG="-fprofile-instr-generate" 6682 PGO_PROF_USE_FLAG="-fprofile-instr-use=code.profclangd" 6683 LLVM_PROF_MERGER="${LLVM_PROFDATA} merge -output=code.profclangd *.profclangr" 6684 LLVM_PROF_FILE="LLVM_PROFILE_FILE=\"code-%p.profclangr\"" 6685 if test "${LLVM_PROF_FOUND}" = "not-found" 6686 then 6687 LLVM_PROF_ERR=yes 6688 if test "${REQUIRE_PGO}" = "yes" 6689 then 6690 as_fn_error $? "llvm-profdata is required for a --enable-optimizations build but could not be found." "$LINENO" 5 6691 fi 6692 fi 6693 ;; 6694 *) 6695 PGO_PROF_GEN_FLAG="-fprofile-generate" 6696 PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction" 6697 LLVM_PROF_MERGER="true" 6698 LLVM_PROF_FILE="" 6699 ;; 6700 esac 6701 ;; 6702 *icc*) 6703 PGO_PROF_GEN_FLAG="-prof-gen" 6704 PGO_PROF_USE_FLAG="-prof-use" 6705 LLVM_PROF_MERGER="true" 6706 LLVM_PROF_FILE="" 6707 ;; 6708esac 6709 6710 6711# On some compilers, pthreads are available without further options 6712# (e.g. MacOS X). On some of these systems, the compiler will not 6713# complain if unaccepted options are passed (e.g. gcc on Mac OS X). 6714# So we have to see first whether pthreads are available without 6715# options before we can check whether -Kpthread improves anything. 6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads are available without options" >&5 6717$as_echo_n "checking whether pthreads are available without options... " >&6; } 6718if ${ac_cv_pthread_is_default+:} false; then : 6719 $as_echo_n "(cached) " >&6 6720else 6721 if test "$cross_compiling" = yes; then : 6722 ac_cv_pthread_is_default=no 6723else 6724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6725/* end confdefs.h. */ 6726 6727#include <stdio.h> 6728#include <pthread.h> 6729 6730void* routine(void* p){return NULL;} 6731 6732int main(){ 6733 pthread_t p; 6734 if(pthread_create(&p,NULL,routine,NULL)!=0) 6735 return 1; 6736 (void)pthread_detach(p); 6737 return 0; 6738} 6739 6740_ACEOF 6741if ac_fn_c_try_run "$LINENO"; then : 6742 6743 ac_cv_pthread_is_default=yes 6744 ac_cv_kthread=no 6745 ac_cv_pthread=no 6746 6747else 6748 ac_cv_pthread_is_default=no 6749fi 6750rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6751 conftest.$ac_objext conftest.beam conftest.$ac_ext 6752fi 6753 6754 6755fi 6756 6757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_is_default" >&5 6758$as_echo "$ac_cv_pthread_is_default" >&6; } 6759 6760 6761if test $ac_cv_pthread_is_default = yes 6762then 6763 ac_cv_kpthread=no 6764else 6765# -Kpthread, if available, provides the right #defines 6766# and linker options to make pthread_create available 6767# Some compilers won't report that they do not support -Kpthread, 6768# so we need to run a program to see whether it really made the 6769# function available. 6770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kpthread" >&5 6771$as_echo_n "checking whether $CC accepts -Kpthread... " >&6; } 6772if ${ac_cv_kpthread+:} false; then : 6773 $as_echo_n "(cached) " >&6 6774else 6775 ac_save_cc="$CC" 6776CC="$CC -Kpthread" 6777if test "$cross_compiling" = yes; then : 6778 ac_cv_kpthread=no 6779else 6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6781/* end confdefs.h. */ 6782 6783#include <stdio.h> 6784#include <pthread.h> 6785 6786void* routine(void* p){return NULL;} 6787 6788int main(){ 6789 pthread_t p; 6790 if(pthread_create(&p,NULL,routine,NULL)!=0) 6791 return 1; 6792 (void)pthread_detach(p); 6793 return 0; 6794} 6795 6796_ACEOF 6797if ac_fn_c_try_run "$LINENO"; then : 6798 ac_cv_kpthread=yes 6799else 6800 ac_cv_kpthread=no 6801fi 6802rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6803 conftest.$ac_objext conftest.beam conftest.$ac_ext 6804fi 6805 6806CC="$ac_save_cc" 6807fi 6808 6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kpthread" >&5 6810$as_echo "$ac_cv_kpthread" >&6; } 6811fi 6812 6813if test $ac_cv_kpthread = no -a $ac_cv_pthread_is_default = no 6814then 6815# -Kthread, if available, provides the right #defines 6816# and linker options to make pthread_create available 6817# Some compilers won't report that they do not support -Kthread, 6818# so we need to run a program to see whether it really made the 6819# function available. 6820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Kthread" >&5 6821$as_echo_n "checking whether $CC accepts -Kthread... " >&6; } 6822if ${ac_cv_kthread+:} false; then : 6823 $as_echo_n "(cached) " >&6 6824else 6825 ac_save_cc="$CC" 6826CC="$CC -Kthread" 6827if test "$cross_compiling" = yes; then : 6828 ac_cv_kthread=no 6829else 6830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6831/* end confdefs.h. */ 6832 6833#include <stdio.h> 6834#include <pthread.h> 6835 6836void* routine(void* p){return NULL;} 6837 6838int main(){ 6839 pthread_t p; 6840 if(pthread_create(&p,NULL,routine,NULL)!=0) 6841 return 1; 6842 (void)pthread_detach(p); 6843 return 0; 6844} 6845 6846_ACEOF 6847if ac_fn_c_try_run "$LINENO"; then : 6848 ac_cv_kthread=yes 6849else 6850 ac_cv_kthread=no 6851fi 6852rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6853 conftest.$ac_objext conftest.beam conftest.$ac_ext 6854fi 6855 6856CC="$ac_save_cc" 6857fi 6858 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_kthread" >&5 6860$as_echo "$ac_cv_kthread" >&6; } 6861fi 6862 6863if test $ac_cv_kthread = no -a $ac_cv_pthread_is_default = no 6864then 6865# -pthread, if available, provides the right #defines 6866# and linker options to make pthread_create available 6867# Some compilers won't report that they do not support -pthread, 6868# so we need to run a program to see whether it really made the 6869# function available. 6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pthread" >&5 6871$as_echo_n "checking whether $CC accepts -pthread... " >&6; } 6872if ${ac_cv_pthread+:} false; then : 6873 $as_echo_n "(cached) " >&6 6874else 6875 ac_save_cc="$CC" 6876CC="$CC -pthread" 6877if test "$cross_compiling" = yes; then : 6878 ac_cv_pthread=no 6879else 6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6881/* end confdefs.h. */ 6882 6883#include <stdio.h> 6884#include <pthread.h> 6885 6886void* routine(void* p){return NULL;} 6887 6888int main(){ 6889 pthread_t p; 6890 if(pthread_create(&p,NULL,routine,NULL)!=0) 6891 return 1; 6892 (void)pthread_detach(p); 6893 return 0; 6894} 6895 6896_ACEOF 6897if ac_fn_c_try_run "$LINENO"; then : 6898 ac_cv_pthread=yes 6899else 6900 ac_cv_pthread=no 6901fi 6902rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6903 conftest.$ac_objext conftest.beam conftest.$ac_ext 6904fi 6905 6906CC="$ac_save_cc" 6907fi 6908 6909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread" >&5 6910$as_echo "$ac_cv_pthread" >&6; } 6911fi 6912 6913# If we have set a CC compiler flag for thread support then 6914# check if it works for CXX, too. 6915ac_cv_cxx_thread=no 6916if test ! -z "$CXX" 6917then 6918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX also accepts flags for thread support" >&5 6919$as_echo_n "checking whether $CXX also accepts flags for thread support... " >&6; } 6920ac_save_cxx="$CXX" 6921 6922if test "$ac_cv_kpthread" = "yes" 6923then 6924 CXX="$CXX -Kpthread" 6925 ac_cv_cxx_thread=yes 6926elif test "$ac_cv_kthread" = "yes" 6927then 6928 CXX="$CXX -Kthread" 6929 ac_cv_cxx_thread=yes 6930elif test "$ac_cv_pthread" = "yes" 6931then 6932 CXX="$CXX -pthread" 6933 ac_cv_cxx_thread=yes 6934fi 6935 6936if test $ac_cv_cxx_thread = yes 6937then 6938 echo 'void foo();int main(){foo();}void foo(){}' > conftest.$ac_ext 6939 $CXX -c conftest.$ac_ext 2>&5 6940 if $CXX -o conftest$ac_exeext conftest.$ac_objext 2>&5 \ 6941 && test -s conftest$ac_exeext && ./conftest$ac_exeext 6942 then 6943 ac_cv_cxx_thread=yes 6944 else 6945 ac_cv_cxx_thread=no 6946 fi 6947 rm -fr conftest* 6948fi 6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_thread" >&5 6950$as_echo "$ac_cv_cxx_thread" >&6; } 6951fi 6952CXX="$ac_save_cxx" 6953 6954 6955# checks for header files 6956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6957$as_echo_n "checking for ANSI C header files... " >&6; } 6958if ${ac_cv_header_stdc+:} false; then : 6959 $as_echo_n "(cached) " >&6 6960else 6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6962/* end confdefs.h. */ 6963#include <stdlib.h> 6964#include <stdarg.h> 6965#include <string.h> 6966#include <float.h> 6967 6968int 6969main () 6970{ 6971 6972 ; 6973 return 0; 6974} 6975_ACEOF 6976if ac_fn_c_try_compile "$LINENO"; then : 6977 ac_cv_header_stdc=yes 6978else 6979 ac_cv_header_stdc=no 6980fi 6981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6982 6983if test $ac_cv_header_stdc = yes; then 6984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6986/* end confdefs.h. */ 6987#include <string.h> 6988 6989_ACEOF 6990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6991 $EGREP "memchr" >/dev/null 2>&1; then : 6992 6993else 6994 ac_cv_header_stdc=no 6995fi 6996rm -f conftest* 6997 6998fi 6999 7000if test $ac_cv_header_stdc = yes; then 7001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003/* end confdefs.h. */ 7004#include <stdlib.h> 7005 7006_ACEOF 7007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7008 $EGREP "free" >/dev/null 2>&1; then : 7009 7010else 7011 ac_cv_header_stdc=no 7012fi 7013rm -f conftest* 7014 7015fi 7016 7017if test $ac_cv_header_stdc = yes; then 7018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7019 if test "$cross_compiling" = yes; then : 7020 : 7021else 7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7023/* end confdefs.h. */ 7024#include <ctype.h> 7025#include <stdlib.h> 7026#if ((' ' & 0x0FF) == 0x020) 7027# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7028# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7029#else 7030# define ISLOWER(c) \ 7031 (('a' <= (c) && (c) <= 'i') \ 7032 || ('j' <= (c) && (c) <= 'r') \ 7033 || ('s' <= (c) && (c) <= 'z')) 7034# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7035#endif 7036 7037#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7038int 7039main () 7040{ 7041 int i; 7042 for (i = 0; i < 256; i++) 7043 if (XOR (islower (i), ISLOWER (i)) 7044 || toupper (i) != TOUPPER (i)) 7045 return 2; 7046 return 0; 7047} 7048_ACEOF 7049if ac_fn_c_try_run "$LINENO"; then : 7050 7051else 7052 ac_cv_header_stdc=no 7053fi 7054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7055 conftest.$ac_objext conftest.beam conftest.$ac_ext 7056fi 7057 7058fi 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7061$as_echo "$ac_cv_header_stdc" >&6; } 7062if test $ac_cv_header_stdc = yes; then 7063 7064$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7065 7066fi 7067 7068for ac_header in asm/types.h crypt.h conio.h direct.h dlfcn.h errno.h \ 7069fcntl.h grp.h \ 7070ieeefp.h io.h langinfo.h libintl.h poll.h process.h pthread.h \ 7071shadow.h signal.h stdint.h stropts.h termios.h thread.h \ 7072unistd.h utime.h \ 7073sys/audioio.h sys/bsdtty.h sys/epoll.h sys/event.h sys/file.h sys/loadavg.h \ 7074sys/lock.h sys/mkdev.h sys/modem.h \ 7075sys/param.h sys/poll.h sys/random.h sys/select.h sys/socket.h sys/statvfs.h sys/stat.h \ 7076sys/termio.h sys/time.h \ 7077sys/times.h sys/types.h sys/un.h sys/utsname.h sys/wait.h pty.h libutil.h \ 7078sys/resource.h netpacket/packet.h sysexits.h bluetooth.h \ 7079bluetooth/bluetooth.h linux/tipc.h spawn.h util.h alloca.h sys/sysmacros.h 7080do : 7081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7082ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7083if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7084 cat >>confdefs.h <<_ACEOF 7085#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7086_ACEOF 7087 7088fi 7089 7090done 7091 7092ac_header_dirent=no 7093for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 7094 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 7096$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 7097if eval \${$as_ac_Header+:} false; then : 7098 $as_echo_n "(cached) " >&6 7099else 7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7101/* end confdefs.h. */ 7102#include <sys/types.h> 7103#include <$ac_hdr> 7104 7105int 7106main () 7107{ 7108if ((DIR *) 0) 7109return 0; 7110 ; 7111 return 0; 7112} 7113_ACEOF 7114if ac_fn_c_try_compile "$LINENO"; then : 7115 eval "$as_ac_Header=yes" 7116else 7117 eval "$as_ac_Header=no" 7118fi 7119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7120fi 7121eval ac_res=\$$as_ac_Header 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 7123$as_echo "$ac_res" >&6; } 7124if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7125 cat >>confdefs.h <<_ACEOF 7126#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 7127_ACEOF 7128 7129ac_header_dirent=$ac_hdr; break 7130fi 7131 7132done 7133# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 7134if test $ac_header_dirent = dirent.h; then 7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7136$as_echo_n "checking for library containing opendir... " >&6; } 7137if ${ac_cv_search_opendir+:} false; then : 7138 $as_echo_n "(cached) " >&6 7139else 7140 ac_func_search_save_LIBS=$LIBS 7141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7142/* end confdefs.h. */ 7143 7144/* Override any GCC internal prototype to avoid an error. 7145 Use char because int might match the return type of a GCC 7146 builtin and then its argument prototype would still apply. */ 7147#ifdef __cplusplus 7148extern "C" 7149#endif 7150char opendir (); 7151int 7152main () 7153{ 7154return opendir (); 7155 ; 7156 return 0; 7157} 7158_ACEOF 7159for ac_lib in '' dir; do 7160 if test -z "$ac_lib"; then 7161 ac_res="none required" 7162 else 7163 ac_res=-l$ac_lib 7164 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7165 fi 7166 if ac_fn_c_try_link "$LINENO"; then : 7167 ac_cv_search_opendir=$ac_res 7168fi 7169rm -f core conftest.err conftest.$ac_objext \ 7170 conftest$ac_exeext 7171 if ${ac_cv_search_opendir+:} false; then : 7172 break 7173fi 7174done 7175if ${ac_cv_search_opendir+:} false; then : 7176 7177else 7178 ac_cv_search_opendir=no 7179fi 7180rm conftest.$ac_ext 7181LIBS=$ac_func_search_save_LIBS 7182fi 7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7184$as_echo "$ac_cv_search_opendir" >&6; } 7185ac_res=$ac_cv_search_opendir 7186if test "$ac_res" != no; then : 7187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7188 7189fi 7190 7191else 7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 7193$as_echo_n "checking for library containing opendir... " >&6; } 7194if ${ac_cv_search_opendir+:} false; then : 7195 $as_echo_n "(cached) " >&6 7196else 7197 ac_func_search_save_LIBS=$LIBS 7198cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7199/* end confdefs.h. */ 7200 7201/* Override any GCC internal prototype to avoid an error. 7202 Use char because int might match the return type of a GCC 7203 builtin and then its argument prototype would still apply. */ 7204#ifdef __cplusplus 7205extern "C" 7206#endif 7207char opendir (); 7208int 7209main () 7210{ 7211return opendir (); 7212 ; 7213 return 0; 7214} 7215_ACEOF 7216for ac_lib in '' x; do 7217 if test -z "$ac_lib"; then 7218 ac_res="none required" 7219 else 7220 ac_res=-l$ac_lib 7221 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7222 fi 7223 if ac_fn_c_try_link "$LINENO"; then : 7224 ac_cv_search_opendir=$ac_res 7225fi 7226rm -f core conftest.err conftest.$ac_objext \ 7227 conftest$ac_exeext 7228 if ${ac_cv_search_opendir+:} false; then : 7229 break 7230fi 7231done 7232if ${ac_cv_search_opendir+:} false; then : 7233 7234else 7235 ac_cv_search_opendir=no 7236fi 7237rm conftest.$ac_ext 7238LIBS=$ac_func_search_save_LIBS 7239fi 7240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 7241$as_echo "$ac_cv_search_opendir" >&6; } 7242ac_res=$ac_cv_search_opendir 7243if test "$ac_res" != no; then : 7244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7245 7246fi 7247 7248fi 7249 7250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5 7251$as_echo_n "checking whether sys/types.h defines makedev... " >&6; } 7252if ${ac_cv_header_sys_types_h_makedev+:} false; then : 7253 $as_echo_n "(cached) " >&6 7254else 7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7256/* end confdefs.h. */ 7257#include <sys/types.h> 7258int 7259main () 7260{ 7261return makedev(0, 0); 7262 ; 7263 return 0; 7264} 7265_ACEOF 7266if ac_fn_c_try_link "$LINENO"; then : 7267 ac_cv_header_sys_types_h_makedev=yes 7268else 7269 ac_cv_header_sys_types_h_makedev=no 7270fi 7271rm -f core conftest.err conftest.$ac_objext \ 7272 conftest$ac_exeext conftest.$ac_ext 7273 7274fi 7275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5 7276$as_echo "$ac_cv_header_sys_types_h_makedev" >&6; } 7277 7278if test $ac_cv_header_sys_types_h_makedev = no; then 7279ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" 7280if test "x$ac_cv_header_sys_mkdev_h" = xyes; then : 7281 7282$as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h 7283 7284fi 7285 7286 7287 7288 if test $ac_cv_header_sys_mkdev_h = no; then 7289 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" 7290if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then : 7291 7292$as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h 7293 7294fi 7295 7296 7297 fi 7298fi 7299 7300 7301# On Linux, netlink.h requires asm/types.h 7302for ac_header in linux/netlink.h 7303do : 7304 ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" " 7305#ifdef HAVE_ASM_TYPES_H 7306#include <asm/types.h> 7307#endif 7308#ifdef HAVE_SYS_SOCKET_H 7309#include <sys/socket.h> 7310#endif 7311 7312" 7313if test "x$ac_cv_header_linux_netlink_h" = xyes; then : 7314 cat >>confdefs.h <<_ACEOF 7315#define HAVE_LINUX_NETLINK_H 1 7316_ACEOF 7317 7318fi 7319 7320done 7321 7322 7323# checks for typedefs 7324was_it_defined=no 7325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_t in time.h" >&5 7326$as_echo_n "checking for clock_t in time.h... " >&6; } 7327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329#include <time.h> 7330 7331_ACEOF 7332if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7333 $EGREP "clock_t" >/dev/null 2>&1; then : 7334 was_it_defined=yes 7335else 7336 7337 7338$as_echo "#define clock_t long" >>confdefs.h 7339 7340 7341fi 7342rm -f conftest* 7343 7344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 7345$as_echo "$was_it_defined" >&6; } 7346 7347# Check whether using makedev requires defining _OSF_SOURCE 7348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for makedev" >&5 7349$as_echo_n "checking for makedev... " >&6; } 7350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7351/* end confdefs.h. */ 7352 7353#if defined(MAJOR_IN_MKDEV) 7354#include <sys/mkdev.h> 7355#elif defined(MAJOR_IN_SYSMACROS) 7356#include <sys/sysmacros.h> 7357#else 7358#include <sys/types.h> 7359#endif 7360int 7361main () 7362{ 7363 makedev(0, 0) 7364 ; 7365 return 0; 7366} 7367_ACEOF 7368if ac_fn_c_try_link "$LINENO"; then : 7369 ac_cv_has_makedev=yes 7370else 7371 ac_cv_has_makedev=no 7372fi 7373rm -f core conftest.err conftest.$ac_objext \ 7374 conftest$ac_exeext conftest.$ac_ext 7375if test "$ac_cv_has_makedev" = "no"; then 7376 # we didn't link, try if _OSF_SOURCE will allow us to link 7377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7378/* end confdefs.h. */ 7379 7380#define _OSF_SOURCE 1 7381#include <sys/types.h> 7382 7383int 7384main () 7385{ 7386 makedev(0, 0) 7387 ; 7388 return 0; 7389} 7390_ACEOF 7391if ac_fn_c_try_link "$LINENO"; then : 7392 ac_cv_has_makedev=yes 7393else 7394 ac_cv_has_makedev=no 7395fi 7396rm -f core conftest.err conftest.$ac_objext \ 7397 conftest$ac_exeext conftest.$ac_ext 7398 if test "$ac_cv_has_makedev" = "yes"; then 7399 7400$as_echo "#define _OSF_SOURCE 1" >>confdefs.h 7401 7402 fi 7403fi 7404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_has_makedev" >&5 7405$as_echo "$ac_cv_has_makedev" >&6; } 7406if test "$ac_cv_has_makedev" = "yes"; then 7407 7408$as_echo "#define HAVE_MAKEDEV 1" >>confdefs.h 7409 7410fi 7411 7412# Enabling LFS on Solaris (2.6 to 9) with gcc 2.95 triggers a bug in 7413# the system headers: If _XOPEN_SOURCE and _LARGEFILE_SOURCE are 7414# defined, but the compiler does not support pragma redefine_extname, 7415# and _LARGEFILE64_SOURCE is not defined, the headers refer to 64-bit 7416# structures (such as rlimit64) without declaring them. As a 7417# work-around, disable LFS on such configurations 7418 7419use_lfs=yes 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Solaris LFS bug" >&5 7421$as_echo_n "checking Solaris LFS bug... " >&6; } 7422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424 7425#define _LARGEFILE_SOURCE 1 7426#define _FILE_OFFSET_BITS 64 7427#include <sys/resource.h> 7428 7429int 7430main () 7431{ 7432struct rlimit foo; 7433 ; 7434 return 0; 7435} 7436_ACEOF 7437if ac_fn_c_try_compile "$LINENO"; then : 7438 sol_lfs_bug=no 7439else 7440 sol_lfs_bug=yes 7441fi 7442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $sol_lfs_bug" >&5 7444$as_echo "$sol_lfs_bug" >&6; } 7445if test "$sol_lfs_bug" = "yes"; then 7446 use_lfs=no 7447fi 7448 7449if test "$use_lfs" = "yes"; then 7450# Two defines needed to enable largefile support on various platforms 7451# These may affect some typedefs 7452case $ac_sys_system/$ac_sys_release in 7453AIX*) 7454 7455$as_echo "#define _LARGE_FILES 1" >>confdefs.h 7456 7457 ;; 7458esac 7459 7460$as_echo "#define _LARGEFILE_SOURCE 1" >>confdefs.h 7461 7462 7463$as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h 7464 7465fi 7466 7467# Add some code to confdefs.h so that the test for off_t works on SCO 7468cat >> confdefs.h <<\EOF 7469#if defined(SCO_DS) 7470#undef _OFF_T 7471#endif 7472EOF 7473 7474# Type availability checks 7475ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 7476if test "x$ac_cv_type_mode_t" = xyes; then : 7477 7478else 7479 7480cat >>confdefs.h <<_ACEOF 7481#define mode_t int 7482_ACEOF 7483 7484fi 7485 7486ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 7487if test "x$ac_cv_type_off_t" = xyes; then : 7488 7489else 7490 7491cat >>confdefs.h <<_ACEOF 7492#define off_t long int 7493_ACEOF 7494 7495fi 7496 7497ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 7498if test "x$ac_cv_type_pid_t" = xyes; then : 7499 7500else 7501 7502cat >>confdefs.h <<_ACEOF 7503#define pid_t int 7504_ACEOF 7505 7506fi 7507 7508 7509cat >>confdefs.h <<_ACEOF 7510#define RETSIGTYPE void 7511_ACEOF 7512 7513ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 7514if test "x$ac_cv_type_size_t" = xyes; then : 7515 7516else 7517 7518cat >>confdefs.h <<_ACEOF 7519#define size_t unsigned int 7520_ACEOF 7521 7522fi 7523 7524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 7525$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 7526if ${ac_cv_type_uid_t+:} false; then : 7527 $as_echo_n "(cached) " >&6 7528else 7529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7530/* end confdefs.h. */ 7531#include <sys/types.h> 7532 7533_ACEOF 7534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7535 $EGREP "uid_t" >/dev/null 2>&1; then : 7536 ac_cv_type_uid_t=yes 7537else 7538 ac_cv_type_uid_t=no 7539fi 7540rm -f conftest* 7541 7542fi 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 7544$as_echo "$ac_cv_type_uid_t" >&6; } 7545if test $ac_cv_type_uid_t = no; then 7546 7547$as_echo "#define uid_t int" >>confdefs.h 7548 7549 7550$as_echo "#define gid_t int" >>confdefs.h 7551 7552fi 7553 7554 7555# There are two separate checks for each of the exact-width integer types we 7556# need. First we check whether the type is available using the usual 7557# AC_CHECK_TYPE macro with the default includes (which includes <inttypes.h> 7558# and <stdint.h> where available). We then also use the special type checks of 7559# the form AC_TYPE_UINT32_T, which in the case that uint32_t is not available 7560# directly, #define's uint32_t to be a suitable type. 7561 7562ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default" 7563if test "x$ac_cv_type_uint32_t" = xyes; then : 7564 7565$as_echo "#define HAVE_UINT32_T 1" >>confdefs.h 7566 7567fi 7568 7569ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" 7570case $ac_cv_c_uint32_t in #( 7571 no|yes) ;; #( 7572 *) 7573 7574$as_echo "#define _UINT32_T 1" >>confdefs.h 7575 7576 7577cat >>confdefs.h <<_ACEOF 7578#define uint32_t $ac_cv_c_uint32_t 7579_ACEOF 7580;; 7581 esac 7582 7583 7584ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default" 7585if test "x$ac_cv_type_uint64_t" = xyes; then : 7586 7587$as_echo "#define HAVE_UINT64_T 1" >>confdefs.h 7588 7589fi 7590 7591ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" 7592case $ac_cv_c_uint64_t in #( 7593 no|yes) ;; #( 7594 *) 7595 7596$as_echo "#define _UINT64_T 1" >>confdefs.h 7597 7598 7599cat >>confdefs.h <<_ACEOF 7600#define uint64_t $ac_cv_c_uint64_t 7601_ACEOF 7602;; 7603 esac 7604 7605 7606ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default" 7607if test "x$ac_cv_type_int32_t" = xyes; then : 7608 7609$as_echo "#define HAVE_INT32_T 1" >>confdefs.h 7610 7611fi 7612 7613ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" 7614case $ac_cv_c_int32_t in #( 7615 no|yes) ;; #( 7616 *) 7617 7618cat >>confdefs.h <<_ACEOF 7619#define int32_t $ac_cv_c_int32_t 7620_ACEOF 7621;; 7622esac 7623 7624 7625ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default" 7626if test "x$ac_cv_type_int64_t" = xyes; then : 7627 7628$as_echo "#define HAVE_INT64_T 1" >>confdefs.h 7629 7630fi 7631 7632ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" 7633case $ac_cv_c_int64_t in #( 7634 no|yes) ;; #( 7635 *) 7636 7637cat >>confdefs.h <<_ACEOF 7638#define int64_t $ac_cv_c_int64_t 7639_ACEOF 7640;; 7641esac 7642 7643 7644ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" 7645if test "x$ac_cv_type_ssize_t" = xyes; then : 7646 7647$as_echo "#define HAVE_SSIZE_T 1" >>confdefs.h 7648 7649fi 7650 7651 7652# Sizes of various common basic types 7653# ANSI C requires sizeof(char) == 1, so no need to check it 7654# The cast to long int works around a bug in the HP C Compiler 7655# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7656# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7657# This bug is HP SR number 8606223364. 7658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 7659$as_echo_n "checking size of int... " >&6; } 7660if ${ac_cv_sizeof_int+:} false; then : 7661 $as_echo_n "(cached) " >&6 7662else 7663 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 7664 7665else 7666 if test "$ac_cv_type_int" = yes; then 7667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7669as_fn_error 77 "cannot compute sizeof (int) 7670See \`config.log' for more details" "$LINENO" 5; } 7671 else 7672 ac_cv_sizeof_int=0 7673 fi 7674fi 7675 7676fi 7677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 7678$as_echo "$ac_cv_sizeof_int" >&6; } 7679 7680 7681 7682cat >>confdefs.h <<_ACEOF 7683#define SIZEOF_INT $ac_cv_sizeof_int 7684_ACEOF 7685 7686 7687# The cast to long int works around a bug in the HP C Compiler 7688# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7689# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7690# This bug is HP SR number 8606223364. 7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 7692$as_echo_n "checking size of long... " >&6; } 7693if ${ac_cv_sizeof_long+:} false; then : 7694 $as_echo_n "(cached) " >&6 7695else 7696 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 7697 7698else 7699 if test "$ac_cv_type_long" = yes; then 7700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7701$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7702as_fn_error 77 "cannot compute sizeof (long) 7703See \`config.log' for more details" "$LINENO" 5; } 7704 else 7705 ac_cv_sizeof_long=0 7706 fi 7707fi 7708 7709fi 7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 7711$as_echo "$ac_cv_sizeof_long" >&6; } 7712 7713 7714 7715cat >>confdefs.h <<_ACEOF 7716#define SIZEOF_LONG $ac_cv_sizeof_long 7717_ACEOF 7718 7719 7720# The cast to long int works around a bug in the HP C Compiler 7721# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7722# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7723# This bug is HP SR number 8606223364. 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 7725$as_echo_n "checking size of void *... " >&6; } 7726if ${ac_cv_sizeof_void_p+:} false; then : 7727 $as_echo_n "(cached) " >&6 7728else 7729 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 7730 7731else 7732 if test "$ac_cv_type_void_p" = yes; then 7733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7735as_fn_error 77 "cannot compute sizeof (void *) 7736See \`config.log' for more details" "$LINENO" 5; } 7737 else 7738 ac_cv_sizeof_void_p=0 7739 fi 7740fi 7741 7742fi 7743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 7744$as_echo "$ac_cv_sizeof_void_p" >&6; } 7745 7746 7747 7748cat >>confdefs.h <<_ACEOF 7749#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 7750_ACEOF 7751 7752 7753# The cast to long int works around a bug in the HP C Compiler 7754# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7755# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7756# This bug is HP SR number 8606223364. 7757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 7758$as_echo_n "checking size of short... " >&6; } 7759if ${ac_cv_sizeof_short+:} false; then : 7760 $as_echo_n "(cached) " >&6 7761else 7762 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 7763 7764else 7765 if test "$ac_cv_type_short" = yes; then 7766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7768as_fn_error 77 "cannot compute sizeof (short) 7769See \`config.log' for more details" "$LINENO" 5; } 7770 else 7771 ac_cv_sizeof_short=0 7772 fi 7773fi 7774 7775fi 7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 7777$as_echo "$ac_cv_sizeof_short" >&6; } 7778 7779 7780 7781cat >>confdefs.h <<_ACEOF 7782#define SIZEOF_SHORT $ac_cv_sizeof_short 7783_ACEOF 7784 7785 7786# The cast to long int works around a bug in the HP C Compiler 7787# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7788# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7789# This bug is HP SR number 8606223364. 7790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5 7791$as_echo_n "checking size of float... " >&6; } 7792if ${ac_cv_sizeof_float+:} false; then : 7793 $as_echo_n "(cached) " >&6 7794else 7795 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then : 7796 7797else 7798 if test "$ac_cv_type_float" = yes; then 7799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7801as_fn_error 77 "cannot compute sizeof (float) 7802See \`config.log' for more details" "$LINENO" 5; } 7803 else 7804 ac_cv_sizeof_float=0 7805 fi 7806fi 7807 7808fi 7809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5 7810$as_echo "$ac_cv_sizeof_float" >&6; } 7811 7812 7813 7814cat >>confdefs.h <<_ACEOF 7815#define SIZEOF_FLOAT $ac_cv_sizeof_float 7816_ACEOF 7817 7818 7819# The cast to long int works around a bug in the HP C Compiler 7820# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7821# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7822# This bug is HP SR number 8606223364. 7823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5 7824$as_echo_n "checking size of double... " >&6; } 7825if ${ac_cv_sizeof_double+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then : 7829 7830else 7831 if test "$ac_cv_type_double" = yes; then 7832 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7834as_fn_error 77 "cannot compute sizeof (double) 7835See \`config.log' for more details" "$LINENO" 5; } 7836 else 7837 ac_cv_sizeof_double=0 7838 fi 7839fi 7840 7841fi 7842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5 7843$as_echo "$ac_cv_sizeof_double" >&6; } 7844 7845 7846 7847cat >>confdefs.h <<_ACEOF 7848#define SIZEOF_DOUBLE $ac_cv_sizeof_double 7849_ACEOF 7850 7851 7852# The cast to long int works around a bug in the HP C Compiler 7853# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7854# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7855# This bug is HP SR number 8606223364. 7856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of fpos_t" >&5 7857$as_echo_n "checking size of fpos_t... " >&6; } 7858if ${ac_cv_sizeof_fpos_t+:} false; then : 7859 $as_echo_n "(cached) " >&6 7860else 7861 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (fpos_t))" "ac_cv_sizeof_fpos_t" "$ac_includes_default"; then : 7862 7863else 7864 if test "$ac_cv_type_fpos_t" = yes; then 7865 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7866$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7867as_fn_error 77 "cannot compute sizeof (fpos_t) 7868See \`config.log' for more details" "$LINENO" 5; } 7869 else 7870 ac_cv_sizeof_fpos_t=0 7871 fi 7872fi 7873 7874fi 7875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_fpos_t" >&5 7876$as_echo "$ac_cv_sizeof_fpos_t" >&6; } 7877 7878 7879 7880cat >>confdefs.h <<_ACEOF 7881#define SIZEOF_FPOS_T $ac_cv_sizeof_fpos_t 7882_ACEOF 7883 7884 7885# The cast to long int works around a bug in the HP C Compiler 7886# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7887# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7888# This bug is HP SR number 8606223364. 7889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 7890$as_echo_n "checking size of size_t... " >&6; } 7891if ${ac_cv_sizeof_size_t+:} false; then : 7892 $as_echo_n "(cached) " >&6 7893else 7894 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : 7895 7896else 7897 if test "$ac_cv_type_size_t" = yes; then 7898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7899$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7900as_fn_error 77 "cannot compute sizeof (size_t) 7901See \`config.log' for more details" "$LINENO" 5; } 7902 else 7903 ac_cv_sizeof_size_t=0 7904 fi 7905fi 7906 7907fi 7908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 7909$as_echo "$ac_cv_sizeof_size_t" >&6; } 7910 7911 7912 7913cat >>confdefs.h <<_ACEOF 7914#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t 7915_ACEOF 7916 7917 7918# The cast to long int works around a bug in the HP C Compiler 7919# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7920# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7921# This bug is HP SR number 8606223364. 7922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pid_t" >&5 7923$as_echo_n "checking size of pid_t... " >&6; } 7924if ${ac_cv_sizeof_pid_t+:} false; then : 7925 $as_echo_n "(cached) " >&6 7926else 7927 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pid_t))" "ac_cv_sizeof_pid_t" "$ac_includes_default"; then : 7928 7929else 7930 if test "$ac_cv_type_pid_t" = yes; then 7931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7933as_fn_error 77 "cannot compute sizeof (pid_t) 7934See \`config.log' for more details" "$LINENO" 5; } 7935 else 7936 ac_cv_sizeof_pid_t=0 7937 fi 7938fi 7939 7940fi 7941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pid_t" >&5 7942$as_echo "$ac_cv_sizeof_pid_t" >&6; } 7943 7944 7945 7946cat >>confdefs.h <<_ACEOF 7947#define SIZEOF_PID_T $ac_cv_sizeof_pid_t 7948_ACEOF 7949 7950 7951 7952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long support" >&5 7953$as_echo_n "checking for long long support... " >&6; } 7954have_long_long=no 7955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7956/* end confdefs.h. */ 7957 7958int 7959main () 7960{ 7961long long x; x = (long long)0; 7962 ; 7963 return 0; 7964} 7965_ACEOF 7966if ac_fn_c_try_compile "$LINENO"; then : 7967 7968 7969$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 7970 7971 have_long_long=yes 7972 7973fi 7974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_long" >&5 7976$as_echo "$have_long_long" >&6; } 7977if test "$have_long_long" = yes ; then 7978# The cast to long int works around a bug in the HP C Compiler 7979# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7980# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7981# This bug is HP SR number 8606223364. 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 7983$as_echo_n "checking size of long long... " >&6; } 7984if ${ac_cv_sizeof_long_long+:} false; then : 7985 $as_echo_n "(cached) " >&6 7986else 7987 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 7988 7989else 7990 if test "$ac_cv_type_long_long" = yes; then 7991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7993as_fn_error 77 "cannot compute sizeof (long long) 7994See \`config.log' for more details" "$LINENO" 5; } 7995 else 7996 ac_cv_sizeof_long_long=0 7997 fi 7998fi 7999 8000fi 8001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 8002$as_echo "$ac_cv_sizeof_long_long" >&6; } 8003 8004 8005 8006cat >>confdefs.h <<_ACEOF 8007#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 8008_ACEOF 8009 8010 8011fi 8012 8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double support" >&5 8014$as_echo_n "checking for long double support... " >&6; } 8015have_long_double=no 8016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8017/* end confdefs.h. */ 8018 8019int 8020main () 8021{ 8022long double x; x = (long double)0; 8023 ; 8024 return 0; 8025} 8026_ACEOF 8027if ac_fn_c_try_compile "$LINENO"; then : 8028 8029 8030$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 8031 8032 have_long_double=yes 8033 8034fi 8035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_long_double" >&5 8037$as_echo "$have_long_double" >&6; } 8038if test "$have_long_double" = yes ; then 8039# The cast to long int works around a bug in the HP C Compiler 8040# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8041# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8042# This bug is HP SR number 8606223364. 8043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5 8044$as_echo_n "checking size of long double... " >&6; } 8045if ${ac_cv_sizeof_long_double+:} false; then : 8046 $as_echo_n "(cached) " >&6 8047else 8048 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then : 8049 8050else 8051 if test "$ac_cv_type_long_double" = yes; then 8052 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8054as_fn_error 77 "cannot compute sizeof (long double) 8055See \`config.log' for more details" "$LINENO" 5; } 8056 else 8057 ac_cv_sizeof_long_double=0 8058 fi 8059fi 8060 8061fi 8062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5 8063$as_echo "$ac_cv_sizeof_long_double" >&6; } 8064 8065 8066 8067cat >>confdefs.h <<_ACEOF 8068#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double 8069_ACEOF 8070 8071 8072fi 8073 8074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Bool support" >&5 8075$as_echo_n "checking for _Bool support... " >&6; } 8076have_c99_bool=no 8077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079 8080int 8081main () 8082{ 8083_Bool x; x = (_Bool)0; 8084 ; 8085 return 0; 8086} 8087_ACEOF 8088if ac_fn_c_try_compile "$LINENO"; then : 8089 8090 8091$as_echo "#define HAVE_C99_BOOL 1" >>confdefs.h 8092 8093 have_c99_bool=yes 8094 8095fi 8096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_c99_bool" >&5 8098$as_echo "$have_c99_bool" >&6; } 8099if test "$have_c99_bool" = yes ; then 8100# The cast to long int works around a bug in the HP C Compiler 8101# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8102# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8103# This bug is HP SR number 8606223364. 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of _Bool" >&5 8105$as_echo_n "checking size of _Bool... " >&6; } 8106if ${ac_cv_sizeof__Bool+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108else 8109 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (_Bool))" "ac_cv_sizeof__Bool" "$ac_includes_default"; then : 8110 8111else 8112 if test "$ac_cv_type__Bool" = yes; then 8113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8114$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8115as_fn_error 77 "cannot compute sizeof (_Bool) 8116See \`config.log' for more details" "$LINENO" 5; } 8117 else 8118 ac_cv_sizeof__Bool=0 8119 fi 8120fi 8121 8122fi 8123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof__Bool" >&5 8124$as_echo "$ac_cv_sizeof__Bool" >&6; } 8125 8126 8127 8128cat >>confdefs.h <<_ACEOF 8129#define SIZEOF__BOOL $ac_cv_sizeof__Bool 8130_ACEOF 8131 8132 8133fi 8134 8135ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H 8136 #include <stdint.h> 8137 #endif 8138 #ifdef HAVE_INTTYPES_H 8139 #include <inttypes.h> 8140 #endif 8141" 8142if test "x$ac_cv_type_uintptr_t" = xyes; then : 8143 8144cat >>confdefs.h <<_ACEOF 8145#define HAVE_UINTPTR_T 1 8146_ACEOF 8147 8148# The cast to long int works around a bug in the HP C Compiler 8149# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8150# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8151# This bug is HP SR number 8606223364. 8152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of uintptr_t" >&5 8153$as_echo_n "checking size of uintptr_t... " >&6; } 8154if ${ac_cv_sizeof_uintptr_t+:} false; then : 8155 $as_echo_n "(cached) " >&6 8156else 8157 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintptr_t))" "ac_cv_sizeof_uintptr_t" "$ac_includes_default"; then : 8158 8159else 8160 if test "$ac_cv_type_uintptr_t" = yes; then 8161 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8162$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8163as_fn_error 77 "cannot compute sizeof (uintptr_t) 8164See \`config.log' for more details" "$LINENO" 5; } 8165 else 8166 ac_cv_sizeof_uintptr_t=0 8167 fi 8168fi 8169 8170fi 8171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintptr_t" >&5 8172$as_echo "$ac_cv_sizeof_uintptr_t" >&6; } 8173 8174 8175 8176cat >>confdefs.h <<_ACEOF 8177#define SIZEOF_UINTPTR_T $ac_cv_sizeof_uintptr_t 8178_ACEOF 8179 8180 8181fi 8182 8183 8184# The cast to long int works around a bug in the HP C Compiler 8185# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8186# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8187# This bug is HP SR number 8606223364. 8188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 8189$as_echo_n "checking size of off_t... " >&6; } 8190if ${ac_cv_sizeof_off_t+:} false; then : 8191 $as_echo_n "(cached) " >&6 8192else 8193 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" " 8194#ifdef HAVE_SYS_TYPES_H 8195#include <sys/types.h> 8196#endif 8197 8198"; then : 8199 8200else 8201 if test "$ac_cv_type_off_t" = yes; then 8202 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8204as_fn_error 77 "cannot compute sizeof (off_t) 8205See \`config.log' for more details" "$LINENO" 5; } 8206 else 8207 ac_cv_sizeof_off_t=0 8208 fi 8209fi 8210 8211fi 8212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 8213$as_echo "$ac_cv_sizeof_off_t" >&6; } 8214 8215 8216 8217cat >>confdefs.h <<_ACEOF 8218#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 8219_ACEOF 8220 8221 8222 8223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable large file support" >&5 8224$as_echo_n "checking whether to enable large file support... " >&6; } 8225if test "$have_long_long" = yes 8226then 8227if test "$ac_cv_sizeof_off_t" -gt "$ac_cv_sizeof_long" -a \ 8228 "$ac_cv_sizeof_long_long" -ge "$ac_cv_sizeof_off_t"; then 8229 8230$as_echo "#define HAVE_LARGEFILE_SUPPORT 1" >>confdefs.h 8231 8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8233$as_echo "yes" >&6; } 8234else 8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8236$as_echo "no" >&6; } 8237fi 8238else 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8240$as_echo "no" >&6; } 8241fi 8242 8243# The cast to long int works around a bug in the HP C Compiler 8244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8246# This bug is HP SR number 8606223364. 8247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 8248$as_echo_n "checking size of time_t... " >&6; } 8249if ${ac_cv_sizeof_time_t+:} false; then : 8250 $as_echo_n "(cached) " >&6 8251else 8252 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" " 8253#ifdef HAVE_SYS_TYPES_H 8254#include <sys/types.h> 8255#endif 8256#ifdef HAVE_TIME_H 8257#include <time.h> 8258#endif 8259 8260"; then : 8261 8262else 8263 if test "$ac_cv_type_time_t" = yes; then 8264 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8265$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8266as_fn_error 77 "cannot compute sizeof (time_t) 8267See \`config.log' for more details" "$LINENO" 5; } 8268 else 8269 ac_cv_sizeof_time_t=0 8270 fi 8271fi 8272 8273fi 8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 8275$as_echo "$ac_cv_sizeof_time_t" >&6; } 8276 8277 8278 8279cat >>confdefs.h <<_ACEOF 8280#define SIZEOF_TIME_T $ac_cv_sizeof_time_t 8281_ACEOF 8282 8283 8284 8285# if have pthread_t then define SIZEOF_PTHREAD_T 8286ac_save_cc="$CC" 8287if test "$ac_cv_kpthread" = "yes" 8288then CC="$CC -Kpthread" 8289elif test "$ac_cv_kthread" = "yes" 8290then CC="$CC -Kthread" 8291elif test "$ac_cv_pthread" = "yes" 8292then CC="$CC -pthread" 8293fi 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_t" >&5 8295$as_echo_n "checking for pthread_t... " >&6; } 8296have_pthread_t=no 8297cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8298/* end confdefs.h. */ 8299 8300 #include <pthread.h> 8301int 8302main () 8303{ 8304pthread_t x; x = *(pthread_t*)0; 8305 ; 8306 return 0; 8307} 8308 8309_ACEOF 8310if ac_fn_c_try_compile "$LINENO"; then : 8311 have_pthread_t=yes 8312fi 8313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread_t" >&5 8315$as_echo "$have_pthread_t" >&6; } 8316if test "$have_pthread_t" = yes ; then 8317 # The cast to long int works around a bug in the HP C Compiler 8318# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8319# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8320# This bug is HP SR number 8606223364. 8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of pthread_t" >&5 8322$as_echo_n "checking size of pthread_t... " >&6; } 8323if ${ac_cv_sizeof_pthread_t+:} false; then : 8324 $as_echo_n "(cached) " >&6 8325else 8326 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (pthread_t))" "ac_cv_sizeof_pthread_t" " 8327#ifdef HAVE_PTHREAD_H 8328#include <pthread.h> 8329#endif 8330 8331"; then : 8332 8333else 8334 if test "$ac_cv_type_pthread_t" = yes; then 8335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8337as_fn_error 77 "cannot compute sizeof (pthread_t) 8338See \`config.log' for more details" "$LINENO" 5; } 8339 else 8340 ac_cv_sizeof_pthread_t=0 8341 fi 8342fi 8343 8344fi 8345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_pthread_t" >&5 8346$as_echo "$ac_cv_sizeof_pthread_t" >&6; } 8347 8348 8349 8350cat >>confdefs.h <<_ACEOF 8351#define SIZEOF_PTHREAD_T $ac_cv_sizeof_pthread_t 8352_ACEOF 8353 8354 8355fi 8356CC="$ac_save_cc" 8357 8358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-toolbox-glue" >&5 8359$as_echo_n "checking for --enable-toolbox-glue... " >&6; } 8360# Check whether --enable-toolbox-glue was given. 8361if test "${enable_toolbox_glue+set}" = set; then : 8362 enableval=$enable_toolbox_glue; 8363fi 8364 8365 8366if test -z "$enable_toolbox_glue" 8367then 8368 case $ac_sys_system/$ac_sys_release in 8369 Darwin/*) 8370 enable_toolbox_glue="yes";; 8371 *) 8372 enable_toolbox_glue="no";; 8373 esac 8374fi 8375case "$enable_toolbox_glue" in 8376yes) 8377 extra_machdep_objs="Python/mactoolboxglue.o" 8378 extra_undefs="-u _PyMac_Error" 8379 8380$as_echo "#define USE_TOOLBOX_OBJECT_GLUE 1" >>confdefs.h 8381 8382 ;; 8383*) 8384 extra_machdep_objs="" 8385 extra_undefs="" 8386 ;; 8387esac 8388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_toolbox_glue" >&5 8389$as_echo "$enable_toolbox_glue" >&6; } 8390 8391 8392 8393case $ac_sys_system/$ac_sys_release in 8394 Darwin/[01567]\..*) 8395 OTHER_LIBTOOL_OPT="-prebind -seg1addr 0x10000000" 8396 ;; 8397 Darwin/*) 8398 OTHER_LIBTOOL_OPT="" 8399 ;; 8400esac 8401 8402 8403 8404case $ac_sys_system/$ac_sys_release in 8405 Darwin/[01567]\..*) 8406 LIBTOOL_CRUFT="-framework System -lcc_dynamic" 8407 if test "${enable_universalsdk}"; then 8408 : 8409 else 8410 LIBTOOL_CRUFT="${LIBTOOL_CRUFT} -arch_only `/usr/bin/arch`" 8411 fi 8412 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8413 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 8414 Darwin/*) 8415 gcc_version=`gcc -dumpversion` 8416 if test ${gcc_version} '<' 4.0 8417 then 8418 LIBTOOL_CRUFT="-lcc_dynamic" 8419 else 8420 LIBTOOL_CRUFT="" 8421 fi 8422 if test "$cross_compiling" = yes; then : 8423 ac_osx_32bit=yes 8424else 8425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8426/* end confdefs.h. */ 8427 8428 #include <unistd.h> 8429 int main(int argc, char*argv[]) 8430 { 8431 if (sizeof(long) == 4) { 8432 return 0; 8433 } else { 8434 return 1; 8435 } 8436 } 8437 8438_ACEOF 8439if ac_fn_c_try_run "$LINENO"; then : 8440 ac_osx_32bit=yes 8441else 8442 ac_osx_32bit=no 8443fi 8444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8445 conftest.$ac_objext conftest.beam conftest.$ac_ext 8446fi 8447 8448 8449 if test "${ac_osx_32bit}" = "yes"; then 8450 case `/usr/bin/arch` in 8451 i386) 8452 MACOSX_DEFAULT_ARCH="i386" 8453 ;; 8454 ppc) 8455 MACOSX_DEFAULT_ARCH="ppc" 8456 ;; 8457 *) 8458 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 8459 ;; 8460 esac 8461 else 8462 case `/usr/bin/arch` in 8463 i386) 8464 MACOSX_DEFAULT_ARCH="x86_64" 8465 ;; 8466 ppc) 8467 MACOSX_DEFAULT_ARCH="ppc64" 8468 ;; 8469 *) 8470 as_fn_error $? "Unexpected output of 'arch' on OSX" "$LINENO" 5 8471 ;; 8472 esac 8473 8474 fi 8475 8476 LIBTOOL_CRUFT=$LIBTOOL_CRUFT" -lSystem -lSystemStubs -arch_only ${MACOSX_DEFAULT_ARCH}" 8477 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -install_name $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8478 LIBTOOL_CRUFT=$LIBTOOL_CRUFT' -compatibility_version $(VERSION) -current_version $(VERSION)';; 8479esac 8480 8481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-framework" >&5 8482$as_echo_n "checking for --enable-framework... " >&6; } 8483if test "$enable_framework" 8484then 8485 BASECFLAGS="$BASECFLAGS -fno-common -dynamic" 8486 # -F. is needed to allow linking to the framework while 8487 # in the build location. 8488 8489$as_echo "#define WITH_NEXT_FRAMEWORK 1" >>confdefs.h 8490 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8492$as_echo "yes" >&6; } 8493 if test $enable_shared = "yes" 8494 then 8495 as_fn_error $? "Specifying both --enable-shared and --enable-framework is not supported, use only --enable-framework instead. See Mac/README." "$LINENO" 5 8496 fi 8497else 8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8499$as_echo "no" >&6; } 8500fi 8501 8502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dyld" >&5 8503$as_echo_n "checking for dyld... " >&6; } 8504case $ac_sys_system/$ac_sys_release in 8505 Darwin/*) 8506 8507$as_echo "#define WITH_DYLD 1" >>confdefs.h 8508 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always on for Darwin" >&5 8510$as_echo "always on for Darwin" >&6; } 8511 ;; 8512 *) 8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8514$as_echo "no" >&6; } 8515 ;; 8516esac 8517 8518# Set info about shared libraries. 8519 8520 8521 8522 8523 8524 8525# SO is the extension of shared libraries `(including the dot!) 8526# -- usually .so, .sl on HP-UX, .dll on Cygwin 8527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SO" >&5 8528$as_echo_n "checking SO... " >&6; } 8529if test -z "$SO" 8530then 8531 case $ac_sys_system in 8532 hp*|HP*) 8533 case `uname -m` in 8534 ia64) SO=.so;; 8535 *) SO=.sl;; 8536 esac 8537 ;; 8538 CYGWIN*) SO=.dll;; 8539 *) SO=.so;; 8540 esac 8541else 8542 # this might also be a termcap variable, see #610332 8543 echo 8544 echo '=====================================================================' 8545 echo '+ +' 8546 echo '+ WARNING: You have set SO in your environment. +' 8547 echo '+ Do you really mean to change the extension for shared libraries? +' 8548 echo '+ Continuing in 10 seconds to let you to ponder. +' 8549 echo '+ +' 8550 echo '=====================================================================' 8551 sleep 10 8552fi 8553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SO" >&5 8554$as_echo "$SO" >&6; } 8555 8556 8557cat >>confdefs.h <<_ACEOF 8558#define SHLIB_EXT "$SO" 8559_ACEOF 8560 8561# LDSHARED is the ld *command* used to create shared library 8562# -- "cc -G" on SunOS 5.x, "ld -shared" on IRIX 5 8563# (Shared libraries in this instance are shared modules to be loaded into 8564# Python, as opposed to building Python itself as a shared library.) 8565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LDSHARED" >&5 8566$as_echo_n "checking LDSHARED... " >&6; } 8567if test -z "$LDSHARED" 8568then 8569 case $ac_sys_system/$ac_sys_release in 8570 AIX*) 8571 BLDSHARED="Modules/ld_so_aix \$(CC) -bI:Modules/python.exp" 8572 LDSHARED="\$(BINLIBDEST)/config/ld_so_aix \$(CC) -bI:\$(BINLIBDEST)/config/python.exp" 8573 ;; 8574 BeOS*) 8575 BLDSHARED="\$(srcdir)/Modules/ld_so_beos $LDLIBRARY" 8576 LDSHARED="\$(BINLIBDEST)/config/ld_so_beos \$(LIBDIR)/$LDLIBRARY" 8577 ;; 8578 IRIX/5*) LDSHARED="ld -shared";; 8579 IRIX*/6*) LDSHARED="ld ${SGI_ABI} -shared -all";; 8580 SunOS/5*) 8581 if test "$GCC" = "yes" ; then 8582 LDSHARED='$(CC) -shared' 8583 LDCXXSHARED='$(CXX) -shared' 8584 else 8585 LDSHARED='$(CC) -G' 8586 LDCXXSHARED='$(CXX) -G' 8587 fi ;; 8588 hp*|HP*) 8589 if test "$GCC" = "yes" ; then 8590 LDSHARED='$(CC) -shared' 8591 LDCXXSHARED='$(CXX) -shared' 8592 else 8593 LDSHARED='ld -b' 8594 fi ;; 8595 OSF*) LDSHARED="ld -shared -expect_unresolved \"*\"";; 8596 Darwin/1.3*) 8597 LDSHARED='$(CC) -bundle' 8598 LDCXXSHARED='$(CXX) -bundle' 8599 if test "$enable_framework" ; then 8600 # Link against the framework. All externals should be defined. 8601 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8602 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8603 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8604 else 8605 # No framework. Ignore undefined symbols, assuming they come from Python 8606 LDSHARED="$LDSHARED -undefined suppress" 8607 LDCXXSHARED="$LDCXXSHARED -undefined suppress" 8608 fi ;; 8609 Darwin/1.4*|Darwin/5.*|Darwin/6.*) 8610 LDSHARED='$(CC) -bundle' 8611 LDCXXSHARED='$(CXX) -bundle' 8612 if test "$enable_framework" ; then 8613 # Link against the framework. All externals should be defined. 8614 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8615 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8616 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8617 else 8618 # No framework, use the Python app as bundle-loader 8619 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 8620 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 8621 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 8622 fi ;; 8623 Darwin/*) 8624 # Use -undefined dynamic_lookup whenever possible (10.3 and later). 8625 # This allows an extension to be used in any Python 8626 8627 dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 8628 sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'` 8629 dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \ 8630 sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'` 8631 if test ${dep_target_major} -eq 10 && \ 8632 test ${dep_target_minor} -le 2 8633 then 8634 # building for OS X 10.0 through 10.2 8635 LDSHARED='$(CC) -bundle' 8636 LDCXXSHARED='$(CXX) -bundle' 8637 if test "$enable_framework" ; then 8638 # Link against the framework. All externals should be defined. 8639 BLDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8640 LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8641 LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8642 else 8643 # No framework, use the Python app as bundle-loader 8644 BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' 8645 LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 8646 LDCXXSHARED="$LDCXXSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' 8647 fi 8648 else 8649 # building for OS X 10.3 and later 8650 LDSHARED='$(CC) -bundle -undefined dynamic_lookup' 8651 LDCXXSHARED='$(CXX) -bundle -undefined dynamic_lookup' 8652 BLDSHARED="$LDSHARED" 8653 fi 8654 ;; 8655 Linux*|GNU*|QNX*) 8656 LDSHARED='$(CC) -shared' 8657 LDCXXSHARED='$(CXX) -shared';; 8658 BSD/OS*/4*) 8659 LDSHARED="gcc -shared" 8660 LDCXXSHARED="g++ -shared";; 8661 FreeBSD*) 8662 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 8663 then 8664 LDSHARED='$(CC) -shared' 8665 LDCXXSHARED='$(CXX) -shared' 8666 else 8667 LDSHARED="ld -Bshareable" 8668 fi;; 8669 OpenBSD*) 8670 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 8671 then 8672 LDSHARED='$(CC) -shared $(CCSHARED)' 8673 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 8674 else 8675 case "6.3-DPORTS" in 8676 [01].* | 2.[0-7] | 2.[0-7].*) 8677 LDSHARED="ld -Bshareable ${LDFLAGS}" 8678 ;; 8679 *) 8680 LDSHARED='$(CC) -shared $(CCSHARED)' 8681 LDCXXSHARED='$(CXX) -shared $(CCSHARED)' 8682 ;; 8683 esac 8684 fi;; 8685 NetBSD*|DragonFly*) 8686 LDSHARED='$(CC) -shared' 8687 LDCXXSHARED='$(CXX) -shared';; 8688 OpenUNIX*|UnixWare*) 8689 if test "$GCC" = "yes" ; then 8690 LDSHARED='$(CC) -shared' 8691 LDCXXSHARED='$(CXX) -shared' 8692 else 8693 LDSHARED='$(CC) -G' 8694 LDCXXSHARED='$(CXX) -G' 8695 fi;; 8696 SCO_SV*) 8697 LDSHARED='$(CC) -Wl,-G,-Bexport' 8698 LDCXXSHARED='$(CXX) -Wl,-G,-Bexport';; 8699 CYGWIN*) 8700 LDSHARED="gcc -shared -Wl,--enable-auto-image-base" 8701 LDCXXSHARED="g++ -shared -Wl,--enable-auto-image-base";; 8702 atheos*) 8703 LDSHARED="gcc -shared" 8704 LDCXXSHARED="g++ -shared";; 8705 *) LDSHARED="ld";; 8706 esac 8707fi 8708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDSHARED" >&5 8709$as_echo "$LDSHARED" >&6; } 8710LDCXXSHARED=${LDCXXSHARED-$LDSHARED} 8711BLDSHARED=${BLDSHARED-$LDSHARED} 8712# CCSHARED are the C *flags* used to create objects to go into a shared 8713# library (module) -- this is only needed for a few systems 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CCSHARED" >&5 8715$as_echo_n "checking CCSHARED... " >&6; } 8716if test -z "$CCSHARED" 8717then 8718 case $ac_sys_system/$ac_sys_release in 8719 SunOS*) if test "$GCC" = yes; 8720 then CCSHARED="-fPIC"; 8721 elif test `uname -p` = sparc; 8722 then CCSHARED="-xcode=pic32"; 8723 else CCSHARED="-Kpic"; 8724 fi;; 8725 hp*|HP*) if test "$GCC" = yes; 8726 then CCSHARED="-fPIC"; 8727 else CCSHARED="+z"; 8728 fi;; 8729 Linux*|GNU*) CCSHARED="-fPIC";; 8730 BSD/OS*/4*) CCSHARED="-fpic";; 8731 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; 8732 OpenUNIX*|UnixWare*) 8733 if test "$GCC" = "yes" 8734 then CCSHARED="-fPIC" 8735 else CCSHARED="-KPIC" 8736 fi;; 8737 SCO_SV*) 8738 if test "$GCC" = "yes" 8739 then CCSHARED="-fPIC" 8740 else CCSHARED="-Kpic -belf" 8741 fi;; 8742 IRIX*/6*) case $CC in 8743 *gcc*) CCSHARED="-shared";; 8744 *) CCSHARED="";; 8745 esac;; 8746 atheos*) CCSHARED="-fPIC";; 8747 esac 8748fi 8749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCSHARED" >&5 8750$as_echo "$CCSHARED" >&6; } 8751# LINKFORSHARED are the flags passed to the $(CC) command that links 8752# the python executable -- this is only needed for a few systems 8753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking LINKFORSHARED" >&5 8754$as_echo_n "checking LINKFORSHARED... " >&6; } 8755if test -z "$LINKFORSHARED" 8756then 8757 case $ac_sys_system/$ac_sys_release in 8758 AIX*) LINKFORSHARED='-Wl,-bE:Modules/python.exp -lld';; 8759 hp*|HP*) 8760 LINKFORSHARED="-Wl,-E -Wl,+s";; 8761# LINKFORSHARED="-Wl,-E -Wl,+s -Wl,+b\$(BINLIBDEST)/lib-dynload";; 8762 BSD/OS/4*) LINKFORSHARED="-Xlinker -export-dynamic";; 8763 Linux*|GNU*) LINKFORSHARED="-Xlinker -export-dynamic";; 8764 # -u libsys_s pulls in all symbols in libsys 8765 Darwin/*) 8766 # -u _PyMac_Error is needed to pull in the mac toolbox glue, 8767 # which is 8768 # not used by the core itself but which needs to be in the core so 8769 # that dynamically loaded extension modules have access to it. 8770 # -prebind is no longer used, because it actually seems to give a 8771 # slowdown in stead of a speedup, maybe due to the large number of 8772 # dynamic loads Python does. 8773 8774 LINKFORSHARED="$extra_undefs" 8775 if test "$enable_framework" 8776 then 8777 LINKFORSHARED="$LINKFORSHARED "'$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' 8778 fi 8779 LINKFORSHARED="$LINKFORSHARED";; 8780 OpenUNIX*|UnixWare*) LINKFORSHARED="-Wl,-Bexport";; 8781 SCO_SV*) LINKFORSHARED="-Wl,-Bexport";; 8782 ReliantUNIX*) LINKFORSHARED="-W1 -Blargedynsym";; 8783 FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) 8784 if [ "`$CC -dM -E - </dev/null | grep __ELF__`" != "" ] 8785 then 8786 LINKFORSHARED="-Wl,--export-dynamic" 8787 fi;; 8788 SunOS/5*) case $CC in 8789 *gcc*) 8790 if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null 8791 then 8792 LINKFORSHARED="-Xlinker --export-dynamic" 8793 fi;; 8794 esac;; 8795 CYGWIN*) 8796 if test $enable_shared = "no" 8797 then 8798 LINKFORSHARED='-Wl,--out-implib=$(LDLIBRARY)' 8799 fi;; 8800 QNX*) 8801 # -Wl,-E causes the symbols to be added to the dynamic 8802 # symbol table so that they can be found when a module 8803 # is loaded. -N 2048K causes the stack size to be set 8804 # to 2048 kilobytes so that the stack doesn't overflow 8805 # when running test_compile.py. 8806 LINKFORSHARED='-Wl,-E -N 2048K';; 8807 esac 8808fi 8809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINKFORSHARED" >&5 8810$as_echo "$LINKFORSHARED" >&6; } 8811 8812 8813 8814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGSFORSHARED" >&5 8815$as_echo_n "checking CFLAGSFORSHARED... " >&6; } 8816if test ! "$LIBRARY" = "$LDLIBRARY" 8817then 8818 case $ac_sys_system in 8819 CYGWIN*) 8820 # Cygwin needs CCSHARED when building extension DLLs 8821 # but not when building the interpreter DLL. 8822 CFLAGSFORSHARED='';; 8823 *) 8824 CFLAGSFORSHARED='$(CCSHARED)' 8825 esac 8826fi 8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CFLAGSFORSHARED" >&5 8828$as_echo "$CFLAGSFORSHARED" >&6; } 8829 8830# SHLIBS are libraries (except -lc and -lm) to link to the python shared 8831# library (with --enable-shared). 8832# For platforms on which shared libraries are not allowed to have unresolved 8833# symbols, this must be set to $(LIBS) (expanded by make). We do this even 8834# if it is not required, since it creates a dependency of the shared library 8835# to LIBS. This, in turn, means that applications linking the shared libpython 8836# don't need to link LIBS explicitly. The default should be only changed 8837# on systems where this approach causes problems. 8838 8839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking SHLIBS" >&5 8840$as_echo_n "checking SHLIBS... " >&6; } 8841case "$ac_sys_system" in 8842 *) 8843 SHLIBS='$(LIBS)';; 8844esac 8845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHLIBS" >&5 8846$as_echo "$SHLIBS" >&6; } 8847 8848 8849# checks for libraries 8850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 8851$as_echo_n "checking for dlopen in -ldl... " >&6; } 8852if ${ac_cv_lib_dl_dlopen+:} false; then : 8853 $as_echo_n "(cached) " >&6 8854else 8855 ac_check_lib_save_LIBS=$LIBS 8856LIBS="-ldl $LIBS" 8857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8858/* end confdefs.h. */ 8859 8860/* Override any GCC internal prototype to avoid an error. 8861 Use char because int might match the return type of a GCC 8862 builtin and then its argument prototype would still apply. */ 8863#ifdef __cplusplus 8864extern "C" 8865#endif 8866char dlopen (); 8867int 8868main () 8869{ 8870return dlopen (); 8871 ; 8872 return 0; 8873} 8874_ACEOF 8875if ac_fn_c_try_link "$LINENO"; then : 8876 ac_cv_lib_dl_dlopen=yes 8877else 8878 ac_cv_lib_dl_dlopen=no 8879fi 8880rm -f core conftest.err conftest.$ac_objext \ 8881 conftest$ac_exeext conftest.$ac_ext 8882LIBS=$ac_check_lib_save_LIBS 8883fi 8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 8885$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 8886if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 8887 cat >>confdefs.h <<_ACEOF 8888#define HAVE_LIBDL 1 8889_ACEOF 8890 8891 LIBS="-ldl $LIBS" 8892 8893fi 8894 # Dynamic linking for SunOS/Solaris and SYSV 8895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 8896$as_echo_n "checking for shl_load in -ldld... " >&6; } 8897if ${ac_cv_lib_dld_shl_load+:} false; then : 8898 $as_echo_n "(cached) " >&6 8899else 8900 ac_check_lib_save_LIBS=$LIBS 8901LIBS="-ldld $LIBS" 8902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8903/* end confdefs.h. */ 8904 8905/* Override any GCC internal prototype to avoid an error. 8906 Use char because int might match the return type of a GCC 8907 builtin and then its argument prototype would still apply. */ 8908#ifdef __cplusplus 8909extern "C" 8910#endif 8911char shl_load (); 8912int 8913main () 8914{ 8915return shl_load (); 8916 ; 8917 return 0; 8918} 8919_ACEOF 8920if ac_fn_c_try_link "$LINENO"; then : 8921 ac_cv_lib_dld_shl_load=yes 8922else 8923 ac_cv_lib_dld_shl_load=no 8924fi 8925rm -f core conftest.err conftest.$ac_objext \ 8926 conftest$ac_exeext conftest.$ac_ext 8927LIBS=$ac_check_lib_save_LIBS 8928fi 8929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 8930$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 8931if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 8932 cat >>confdefs.h <<_ACEOF 8933#define HAVE_LIBDLD 1 8934_ACEOF 8935 8936 LIBS="-ldld $LIBS" 8937 8938fi 8939 # Dynamic linking for HP-UX 8940 8941# only check for sem_init if thread support is requested 8942if test "$with_threads" = "yes" -o -z "$with_threads"; then 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_init" >&5 8944$as_echo_n "checking for library containing sem_init... " >&6; } 8945if ${ac_cv_search_sem_init+:} false; then : 8946 $as_echo_n "(cached) " >&6 8947else 8948 ac_func_search_save_LIBS=$LIBS 8949cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8950/* end confdefs.h. */ 8951 8952/* Override any GCC internal prototype to avoid an error. 8953 Use char because int might match the return type of a GCC 8954 builtin and then its argument prototype would still apply. */ 8955#ifdef __cplusplus 8956extern "C" 8957#endif 8958char sem_init (); 8959int 8960main () 8961{ 8962return sem_init (); 8963 ; 8964 return 0; 8965} 8966_ACEOF 8967for ac_lib in '' pthread rt posix4; do 8968 if test -z "$ac_lib"; then 8969 ac_res="none required" 8970 else 8971 ac_res=-l$ac_lib 8972 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8973 fi 8974 if ac_fn_c_try_link "$LINENO"; then : 8975 ac_cv_search_sem_init=$ac_res 8976fi 8977rm -f core conftest.err conftest.$ac_objext \ 8978 conftest$ac_exeext 8979 if ${ac_cv_search_sem_init+:} false; then : 8980 break 8981fi 8982done 8983if ${ac_cv_search_sem_init+:} false; then : 8984 8985else 8986 ac_cv_search_sem_init=no 8987fi 8988rm conftest.$ac_ext 8989LIBS=$ac_func_search_save_LIBS 8990fi 8991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_init" >&5 8992$as_echo "$ac_cv_search_sem_init" >&6; } 8993ac_res=$ac_cv_search_sem_init 8994if test "$ac_res" != no; then : 8995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8996 8997fi 8998 # 'Real Time' functions on Solaris 8999 # posix4 on Solaris 2.6 9000 # pthread (first!) on Linux 9001fi 9002 9003# check if we need libintl for locale functions 9004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 9005$as_echo_n "checking for textdomain in -lintl... " >&6; } 9006if ${ac_cv_lib_intl_textdomain+:} false; then : 9007 $as_echo_n "(cached) " >&6 9008else 9009 ac_check_lib_save_LIBS=$LIBS 9010LIBS="-lintl $LIBS" 9011cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9012/* end confdefs.h. */ 9013 9014/* Override any GCC internal prototype to avoid an error. 9015 Use char because int might match the return type of a GCC 9016 builtin and then its argument prototype would still apply. */ 9017#ifdef __cplusplus 9018extern "C" 9019#endif 9020char textdomain (); 9021int 9022main () 9023{ 9024return textdomain (); 9025 ; 9026 return 0; 9027} 9028_ACEOF 9029if ac_fn_c_try_link "$LINENO"; then : 9030 ac_cv_lib_intl_textdomain=yes 9031else 9032 ac_cv_lib_intl_textdomain=no 9033fi 9034rm -f core conftest.err conftest.$ac_objext \ 9035 conftest$ac_exeext conftest.$ac_ext 9036LIBS=$ac_check_lib_save_LIBS 9037fi 9038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 9039$as_echo "$ac_cv_lib_intl_textdomain" >&6; } 9040if test "x$ac_cv_lib_intl_textdomain" = xyes; then : 9041 9042$as_echo "#define WITH_LIBINTL 1" >>confdefs.h 9043 9044fi 9045 9046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bind_textdomain_codeset" >&5 9047$as_echo_n "checking for library containing bind_textdomain_codeset... " >&6; } 9048if ${ac_cv_search_bind_textdomain_codeset+:} false; then : 9049 $as_echo_n "(cached) " >&6 9050else 9051 ac_func_search_save_LIBS=$LIBS 9052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9053/* end confdefs.h. */ 9054 9055/* Override any GCC internal prototype to avoid an error. 9056 Use char because int might match the return type of a GCC 9057 builtin and then its argument prototype would still apply. */ 9058#ifdef __cplusplus 9059extern "C" 9060#endif 9061char bind_textdomain_codeset (); 9062int 9063main () 9064{ 9065return bind_textdomain_codeset (); 9066 ; 9067 return 0; 9068} 9069_ACEOF 9070for ac_lib in '' intl; do 9071 if test -z "$ac_lib"; then 9072 ac_res="none required" 9073 else 9074 ac_res=-l$ac_lib 9075 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 9076 fi 9077 if ac_fn_c_try_link "$LINENO"; then : 9078 ac_cv_search_bind_textdomain_codeset=$ac_res 9079fi 9080rm -f core conftest.err conftest.$ac_objext \ 9081 conftest$ac_exeext 9082 if ${ac_cv_search_bind_textdomain_codeset+:} false; then : 9083 break 9084fi 9085done 9086if ${ac_cv_search_bind_textdomain_codeset+:} false; then : 9087 9088else 9089 ac_cv_search_bind_textdomain_codeset=no 9090fi 9091rm conftest.$ac_ext 9092LIBS=$ac_func_search_save_LIBS 9093fi 9094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bind_textdomain_codeset" >&5 9095$as_echo "$ac_cv_search_bind_textdomain_codeset" >&6; } 9096ac_res=$ac_cv_search_bind_textdomain_codeset 9097if test "$ac_res" != no; then : 9098 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 9099 9100$as_echo "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h 9101 9102fi 9103 9104 9105# checks for system dependent C++ extensions support 9106case "$ac_sys_system" in 9107 AIX*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for genuine AIX C++ extensions support" >&5 9108$as_echo_n "checking for genuine AIX C++ extensions support... " >&6; } 9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9110/* end confdefs.h. */ 9111 9112 #include <load.h> 9113int 9114main () 9115{ 9116loadAndInit("", 0, "") 9117 ; 9118 return 0; 9119} 9120 9121_ACEOF 9122if ac_fn_c_try_link "$LINENO"; then : 9123 9124 9125$as_echo "#define AIX_GENUINE_CPLUSPLUS 1" >>confdefs.h 9126 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9128$as_echo "yes" >&6; } 9129 9130else 9131 9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9133$as_echo "no" >&6; } 9134 9135fi 9136rm -f core conftest.err conftest.$ac_objext \ 9137 conftest$ac_exeext conftest.$ac_ext;; 9138 *) ;; 9139esac 9140 9141# Most SVR4 platforms (e.g. Solaris) need -lsocket and -lnsl. 9142# BeOS' sockets are stashed in libnet. 9143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for t_open in -lnsl" >&5 9144$as_echo_n "checking for t_open in -lnsl... " >&6; } 9145if ${ac_cv_lib_nsl_t_open+:} false; then : 9146 $as_echo_n "(cached) " >&6 9147else 9148 ac_check_lib_save_LIBS=$LIBS 9149LIBS="-lnsl $LIBS" 9150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9151/* end confdefs.h. */ 9152 9153/* Override any GCC internal prototype to avoid an error. 9154 Use char because int might match the return type of a GCC 9155 builtin and then its argument prototype would still apply. */ 9156#ifdef __cplusplus 9157extern "C" 9158#endif 9159char t_open (); 9160int 9161main () 9162{ 9163return t_open (); 9164 ; 9165 return 0; 9166} 9167_ACEOF 9168if ac_fn_c_try_link "$LINENO"; then : 9169 ac_cv_lib_nsl_t_open=yes 9170else 9171 ac_cv_lib_nsl_t_open=no 9172fi 9173rm -f core conftest.err conftest.$ac_objext \ 9174 conftest$ac_exeext conftest.$ac_ext 9175LIBS=$ac_check_lib_save_LIBS 9176fi 9177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_t_open" >&5 9178$as_echo "$ac_cv_lib_nsl_t_open" >&6; } 9179if test "x$ac_cv_lib_nsl_t_open" = xyes; then : 9180 LIBS="-lnsl $LIBS" 9181fi 9182 # SVR4 9183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 9184$as_echo_n "checking for socket in -lsocket... " >&6; } 9185if ${ac_cv_lib_socket_socket+:} false; then : 9186 $as_echo_n "(cached) " >&6 9187else 9188 ac_check_lib_save_LIBS=$LIBS 9189LIBS="-lsocket $LIBS $LIBS" 9190cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9191/* end confdefs.h. */ 9192 9193/* Override any GCC internal prototype to avoid an error. 9194 Use char because int might match the return type of a GCC 9195 builtin and then its argument prototype would still apply. */ 9196#ifdef __cplusplus 9197extern "C" 9198#endif 9199char socket (); 9200int 9201main () 9202{ 9203return socket (); 9204 ; 9205 return 0; 9206} 9207_ACEOF 9208if ac_fn_c_try_link "$LINENO"; then : 9209 ac_cv_lib_socket_socket=yes 9210else 9211 ac_cv_lib_socket_socket=no 9212fi 9213rm -f core conftest.err conftest.$ac_objext \ 9214 conftest$ac_exeext conftest.$ac_ext 9215LIBS=$ac_check_lib_save_LIBS 9216fi 9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 9218$as_echo "$ac_cv_lib_socket_socket" >&6; } 9219if test "x$ac_cv_lib_socket_socket" = xyes; then : 9220 LIBS="-lsocket $LIBS" 9221fi 9222 # SVR4 sockets 9223 9224case "$ac_sys_system" in 9225BeOS*) 9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lnet" >&5 9227$as_echo_n "checking for socket in -lnet... " >&6; } 9228if ${ac_cv_lib_net_socket+:} false; then : 9229 $as_echo_n "(cached) " >&6 9230else 9231 ac_check_lib_save_LIBS=$LIBS 9232LIBS="-lnet $LIBS $LIBS" 9233cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9234/* end confdefs.h. */ 9235 9236/* Override any GCC internal prototype to avoid an error. 9237 Use char because int might match the return type of a GCC 9238 builtin and then its argument prototype would still apply. */ 9239#ifdef __cplusplus 9240extern "C" 9241#endif 9242char socket (); 9243int 9244main () 9245{ 9246return socket (); 9247 ; 9248 return 0; 9249} 9250_ACEOF 9251if ac_fn_c_try_link "$LINENO"; then : 9252 ac_cv_lib_net_socket=yes 9253else 9254 ac_cv_lib_net_socket=no 9255fi 9256rm -f core conftest.err conftest.$ac_objext \ 9257 conftest$ac_exeext conftest.$ac_ext 9258LIBS=$ac_check_lib_save_LIBS 9259fi 9260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_socket" >&5 9261$as_echo "$ac_cv_lib_net_socket" >&6; } 9262if test "x$ac_cv_lib_net_socket" = xyes; then : 9263 LIBS="-lnet $LIBS" 9264fi 9265 # BeOS 9266;; 9267esac 9268 9269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libs" >&5 9270$as_echo_n "checking for --with-libs... " >&6; } 9271 9272# Check whether --with-libs was given. 9273if test "${with_libs+set}" = set; then : 9274 withval=$with_libs; 9275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 9276$as_echo "$withval" >&6; } 9277LIBS="$withval $LIBS" 9278 9279else 9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9281$as_echo "no" >&6; } 9282fi 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9293 if test -n "$ac_tool_prefix"; then 9294 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9295set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9297$as_echo_n "checking for $ac_word... " >&6; } 9298if ${ac_cv_path_PKG_CONFIG+:} false; then : 9299 $as_echo_n "(cached) " >&6 9300else 9301 case $PKG_CONFIG in 9302 [\\/]* | ?:[\\/]*) 9303 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9304 ;; 9305 *) 9306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9307for as_dir in $PATH 9308do 9309 IFS=$as_save_IFS 9310 test -z "$as_dir" && as_dir=. 9311 for ac_exec_ext in '' $ac_executable_extensions; do 9312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9313 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9315 break 2 9316 fi 9317done 9318 done 9319IFS=$as_save_IFS 9320 9321 ;; 9322esac 9323fi 9324PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9325if test -n "$PKG_CONFIG"; then 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9327$as_echo "$PKG_CONFIG" >&6; } 9328else 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9330$as_echo "no" >&6; } 9331fi 9332 9333 9334fi 9335if test -z "$ac_cv_path_PKG_CONFIG"; then 9336 ac_pt_PKG_CONFIG=$PKG_CONFIG 9337 # Extract the first word of "pkg-config", so it can be a program name with args. 9338set dummy pkg-config; ac_word=$2 9339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9340$as_echo_n "checking for $ac_word... " >&6; } 9341if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9342 $as_echo_n "(cached) " >&6 9343else 9344 case $ac_pt_PKG_CONFIG in 9345 [\\/]* | ?:[\\/]*) 9346 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9347 ;; 9348 *) 9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9350for as_dir in $PATH 9351do 9352 IFS=$as_save_IFS 9353 test -z "$as_dir" && as_dir=. 9354 for ac_exec_ext in '' $ac_executable_extensions; do 9355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9356 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9358 break 2 9359 fi 9360done 9361 done 9362IFS=$as_save_IFS 9363 9364 ;; 9365esac 9366fi 9367ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9368if test -n "$ac_pt_PKG_CONFIG"; then 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9370$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9371else 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9373$as_echo "no" >&6; } 9374fi 9375 9376 if test "x$ac_pt_PKG_CONFIG" = x; then 9377 PKG_CONFIG="" 9378 else 9379 case $cross_compiling:$ac_tool_warned in 9380yes:) 9381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9383ac_tool_warned=yes ;; 9384esac 9385 PKG_CONFIG=$ac_pt_PKG_CONFIG 9386 fi 9387else 9388 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9389fi 9390 9391fi 9392if test -n "$PKG_CONFIG"; then 9393 _pkg_min_version=0.9.0 9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 9395$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 9396 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9398$as_echo "yes" >&6; } 9399 else 9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9401$as_echo "no" >&6; } 9402 PKG_CONFIG="" 9403 fi 9404fi 9405 9406# Check for use of the system expat library 9407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-expat" >&5 9408$as_echo_n "checking for --with-system-expat... " >&6; } 9409 9410# Check whether --with-system_expat was given. 9411if test "${with_system_expat+set}" = set; then : 9412 withval=$with_system_expat; 9413else 9414 with_system_expat="no" 9415fi 9416 9417 9418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_expat" >&5 9419$as_echo "$with_system_expat" >&6; } 9420 9421# Check for use of the system libffi library 9422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-system-ffi" >&5 9423$as_echo_n "checking for --with-system-ffi... " >&6; } 9424 9425# Check whether --with-system_ffi was given. 9426if test "${with_system_ffi+set}" = set; then : 9427 withval=$with_system_ffi; 9428else 9429 with_system_ffi="no" 9430fi 9431 9432 9433if test "$with_system_ffi" = "yes" && test -n "$PKG_CONFIG"; then 9434 LIBFFI_INCLUDEDIR="`"$PKG_CONFIG" libffi --cflags-only-I 2>/dev/null | sed -e 's/^-I//;s/ *$//'`" 9435else 9436 LIBFFI_INCLUDEDIR="" 9437fi 9438 9439 9440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_system_ffi" >&5 9441$as_echo "$with_system_ffi" >&6; } 9442 9443# Check for --with-tcltk-includes=path and --with-tcltk-libs=path 9444 9445 9446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-includes" >&5 9447$as_echo_n "checking for --with-tcltk-includes... " >&6; } 9448 9449# Check whether --with-tcltk-includes was given. 9450if test "${with_tcltk_includes+set}" = set; then : 9451 withval=$with_tcltk_includes; 9452else 9453 with_tcltk_includes="default" 9454fi 9455 9456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_includes" >&5 9457$as_echo "$with_tcltk_includes" >&6; } 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tcltk-libs" >&5 9459$as_echo_n "checking for --with-tcltk-libs... " >&6; } 9460 9461# Check whether --with-tcltk-libs was given. 9462if test "${with_tcltk_libs+set}" = set; then : 9463 withval=$with_tcltk_libs; 9464else 9465 with_tcltk_libs="default" 9466fi 9467 9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_tcltk_libs" >&5 9469$as_echo "$with_tcltk_libs" >&6; } 9470if test "x$with_tcltk_includes" = xdefault || test "x$with_tcltk_libs" = xdefault 9471then 9472 if test "x$with_tcltk_includes" != "x$with_tcltk_libs" 9473 then 9474 as_fn_error $? "use both --with-tcltk-includes='...' and --with-tcltk-libs='...' or neither" "$LINENO" 5 9475 fi 9476 TCLTK_INCLUDES="" 9477 TCLTK_LIBS="" 9478else 9479 TCLTK_INCLUDES="$with_tcltk_includes" 9480 TCLTK_LIBS="$with_tcltk_libs" 9481fi 9482 9483# Check for --with-dbmliborder 9484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dbmliborder" >&5 9485$as_echo_n "checking for --with-dbmliborder... " >&6; } 9486 9487# Check whether --with-dbmliborder was given. 9488if test "${with_dbmliborder+set}" = set; then : 9489 withval=$with_dbmliborder; 9490if test x$with_dbmliborder = xyes 9491then 9492as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 9493else 9494 for db in `echo $with_dbmliborder | sed 's/:/ /g'`; do 9495 if test x$db != xndbm && test x$db != xgdbm && test x$db != xbdb 9496 then 9497 as_fn_error $? "proper usage is --with-dbmliborder=db1:db2:..." "$LINENO" 5 9498 fi 9499 done 9500fi 9501fi 9502 9503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_dbmliborder" >&5 9504$as_echo "$with_dbmliborder" >&6; } 9505 9506# Determine if signalmodule should be used. 9507 9508 9509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-signal-module" >&5 9510$as_echo_n "checking for --with-signal-module... " >&6; } 9511 9512# Check whether --with-signal-module was given. 9513if test "${with_signal_module+set}" = set; then : 9514 withval=$with_signal_module; 9515fi 9516 9517 9518if test -z "$with_signal_module" 9519then with_signal_module="yes" 9520fi 9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_signal_module" >&5 9522$as_echo "$with_signal_module" >&6; } 9523 9524if test "${with_signal_module}" = "yes"; then 9525 USE_SIGNAL_MODULE="" 9526 SIGNAL_OBJS="" 9527else 9528 USE_SIGNAL_MODULE="#" 9529 SIGNAL_OBJS="Parser/intrcheck.o Python/sigcheck.o" 9530fi 9531 9532# This is used to generate Setup.config 9533 9534USE_THREAD_MODULE="" 9535 9536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-dec-threads" >&5 9537$as_echo_n "checking for --with-dec-threads... " >&6; } 9538 9539 9540# Check whether --with-dec-threads was given. 9541if test "${with_dec_threads+set}" = set; then : 9542 withval=$with_dec_threads; 9543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 9544$as_echo "$withval" >&6; } 9545LDLAST=-threads 9546if test "${with_thread+set}" != set; then 9547 with_thread="$withval"; 9548fi 9549else 9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9551$as_echo "no" >&6; } 9552fi 9553 9554 9555# Templates for things AC_DEFINEd more than once. 9556# For a single AC_DEFINE, no template is needed. 9557 9558 9559 9560 9561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-threads" >&5 9562$as_echo_n "checking for --with-threads... " >&6; } 9563 9564# Check whether --with-threads was given. 9565if test "${with_threads+set}" = set; then : 9566 withval=$with_threads; 9567fi 9568 9569 9570# --with-thread is deprecated, but check for it anyway 9571 9572# Check whether --with-thread was given. 9573if test "${with_thread+set}" = set; then : 9574 withval=$with_thread; with_threads=$with_thread 9575fi 9576 9577 9578if test -z "$with_threads" 9579then with_threads="yes" 9580fi 9581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_threads" >&5 9582$as_echo "$with_threads" >&6; } 9583 9584 9585if test "$with_threads" = "no" 9586then 9587 USE_THREAD_MODULE="#" 9588elif test "$ac_cv_pthread_is_default" = yes 9589then 9590 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9591 9592 # Defining _REENTRANT on system with POSIX threads should not hurt. 9593 $as_echo "#define _REENTRANT 1" >>confdefs.h 9594 9595 posix_threads=yes 9596 THREADOBJ="Python/thread.o" 9597 if test "$ac_sys_system" = "SunOS"; then 9598 CFLAGS="$CFLAGS -D_REENTRANT" 9599 fi 9600elif test "$ac_cv_kpthread" = "yes" 9601then 9602 CC="$CC -Kpthread" 9603 if test "$ac_cv_cxx_thread" = "yes"; then 9604 CXX="$CXX -Kpthread" 9605 fi 9606 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9607 9608 posix_threads=yes 9609 THREADOBJ="Python/thread.o" 9610elif test "$ac_cv_kthread" = "yes" 9611then 9612 CC="$CC -Kthread" 9613 if test "$ac_cv_cxx_thread" = "yes"; then 9614 CXX="$CXX -Kthread" 9615 fi 9616 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9617 9618 posix_threads=yes 9619 THREADOBJ="Python/thread.o" 9620elif test "$ac_cv_pthread" = "yes" 9621then 9622 CC="$CC -pthread" 9623 if test "$ac_cv_cxx_thread" = "yes"; then 9624 CXX="$CXX -pthread" 9625 fi 9626 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9627 9628 posix_threads=yes 9629 THREADOBJ="Python/thread.o" 9630else 9631 if test ! -z "$with_threads" -a -d "$with_threads" 9632 then LDFLAGS="$LDFLAGS -L$with_threads" 9633 fi 9634 if test ! -z "$withval" -a -d "$withval" 9635 then LDFLAGS="$LDFLAGS -L$withval" 9636 fi 9637 9638 # According to the POSIX spec, a pthreads implementation must 9639 # define _POSIX_THREADS in unistd.h. Some apparently don't 9640 # (e.g. gnu pth with pthread emulation) 9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _POSIX_THREADS in unistd.h" >&5 9642$as_echo_n "checking for _POSIX_THREADS in unistd.h... " >&6; } 9643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9644/* end confdefs.h. */ 9645 9646#include <unistd.h> 9647#ifdef _POSIX_THREADS 9648yes 9649#endif 9650 9651_ACEOF 9652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9653 $EGREP "yes" >/dev/null 2>&1; then : 9654 unistd_defines_pthreads=yes 9655else 9656 unistd_defines_pthreads=no 9657fi 9658rm -f conftest* 9659 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $unistd_defines_pthreads" >&5 9661$as_echo "$unistd_defines_pthreads" >&6; } 9662 9663 $as_echo "#define _REENTRANT 1" >>confdefs.h 9664 9665 ac_fn_c_check_header_mongrel "$LINENO" "cthreads.h" "ac_cv_header_cthreads_h" "$ac_includes_default" 9666if test "x$ac_cv_header_cthreads_h" = xyes; then : 9667 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9668 9669 $as_echo "#define C_THREADS 1" >>confdefs.h 9670 9671 9672$as_echo "#define HURD_C_THREADS 1" >>confdefs.h 9673 9674 LIBS="$LIBS -lthreads" 9675 THREADOBJ="Python/thread.o" 9676else 9677 9678 ac_fn_c_check_header_mongrel "$LINENO" "mach/cthreads.h" "ac_cv_header_mach_cthreads_h" "$ac_includes_default" 9679if test "x$ac_cv_header_mach_cthreads_h" = xyes; then : 9680 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9681 9682 $as_echo "#define C_THREADS 1" >>confdefs.h 9683 9684 9685$as_echo "#define MACH_C_THREADS 1" >>confdefs.h 9686 9687 THREADOBJ="Python/thread.o" 9688else 9689 9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pth" >&5 9691$as_echo_n "checking for --with-pth... " >&6; } 9692 9693# Check whether --with-pth was given. 9694if test "${with_pth+set}" = set; then : 9695 withval=$with_pth; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5 9696$as_echo "$withval" >&6; } 9697 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9698 9699 9700$as_echo "#define HAVE_PTH 1" >>confdefs.h 9701 9702 LIBS="-lpth $LIBS" 9703 THREADOBJ="Python/thread.o" 9704else 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9706$as_echo "no" >&6; } 9707 9708 # Just looking for pthread_create in libpthread is not enough: 9709 # on HP/UX, pthread.h renames pthread_create to a different symbol name. 9710 # So we really have to include pthread.h, and then link. 9711 _libs=$LIBS 9712 LIBS="$LIBS -lpthread" 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 9714$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9716/* end confdefs.h. */ 9717 9718#include <stdio.h> 9719#include <pthread.h> 9720 9721void * start_routine (void *arg) { exit (0); } 9722int 9723main () 9724{ 9725 9726pthread_create (NULL, NULL, start_routine, NULL) 9727 ; 9728 return 0; 9729} 9730_ACEOF 9731if ac_fn_c_try_link "$LINENO"; then : 9732 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9734$as_echo "yes" >&6; } 9735 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9736 9737 posix_threads=yes 9738 THREADOBJ="Python/thread.o" 9739else 9740 9741 LIBS=$_libs 9742 ac_fn_c_check_func "$LINENO" "pthread_detach" "ac_cv_func_pthread_detach" 9743if test "x$ac_cv_func_pthread_detach" = xyes; then : 9744 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9745 9746 posix_threads=yes 9747 THREADOBJ="Python/thread.o" 9748else 9749 9750 ac_fn_c_check_header_mongrel "$LINENO" "atheos/threads.h" "ac_cv_header_atheos_threads_h" "$ac_includes_default" 9751if test "x$ac_cv_header_atheos_threads_h" = xyes; then : 9752 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9753 9754 9755$as_echo "#define ATHEOS_THREADS 1" >>confdefs.h 9756 9757 THREADOBJ="Python/thread.o" 9758else 9759 9760 ac_fn_c_check_header_mongrel "$LINENO" "kernel/OS.h" "ac_cv_header_kernel_OS_h" "$ac_includes_default" 9761if test "x$ac_cv_header_kernel_OS_h" = xyes; then : 9762 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9763 9764 9765$as_echo "#define BEOS_THREADS 1" >>confdefs.h 9766 9767 THREADOBJ="Python/thread.o" 9768else 9769 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5 9771$as_echo_n "checking for pthread_create in -lpthreads... " >&6; } 9772if ${ac_cv_lib_pthreads_pthread_create+:} false; then : 9773 $as_echo_n "(cached) " >&6 9774else 9775 ac_check_lib_save_LIBS=$LIBS 9776LIBS="-lpthreads $LIBS" 9777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9778/* end confdefs.h. */ 9779 9780/* Override any GCC internal prototype to avoid an error. 9781 Use char because int might match the return type of a GCC 9782 builtin and then its argument prototype would still apply. */ 9783#ifdef __cplusplus 9784extern "C" 9785#endif 9786char pthread_create (); 9787int 9788main () 9789{ 9790return pthread_create (); 9791 ; 9792 return 0; 9793} 9794_ACEOF 9795if ac_fn_c_try_link "$LINENO"; then : 9796 ac_cv_lib_pthreads_pthread_create=yes 9797else 9798 ac_cv_lib_pthreads_pthread_create=no 9799fi 9800rm -f core conftest.err conftest.$ac_objext \ 9801 conftest$ac_exeext conftest.$ac_ext 9802LIBS=$ac_check_lib_save_LIBS 9803fi 9804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5 9805$as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; } 9806if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then : 9807 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9808 9809 posix_threads=yes 9810 LIBS="$LIBS -lpthreads" 9811 THREADOBJ="Python/thread.o" 9812else 9813 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5 9815$as_echo_n "checking for pthread_create in -lc_r... " >&6; } 9816if ${ac_cv_lib_c_r_pthread_create+:} false; then : 9817 $as_echo_n "(cached) " >&6 9818else 9819 ac_check_lib_save_LIBS=$LIBS 9820LIBS="-lc_r $LIBS" 9821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9822/* end confdefs.h. */ 9823 9824/* Override any GCC internal prototype to avoid an error. 9825 Use char because int might match the return type of a GCC 9826 builtin and then its argument prototype would still apply. */ 9827#ifdef __cplusplus 9828extern "C" 9829#endif 9830char pthread_create (); 9831int 9832main () 9833{ 9834return pthread_create (); 9835 ; 9836 return 0; 9837} 9838_ACEOF 9839if ac_fn_c_try_link "$LINENO"; then : 9840 ac_cv_lib_c_r_pthread_create=yes 9841else 9842 ac_cv_lib_c_r_pthread_create=no 9843fi 9844rm -f core conftest.err conftest.$ac_objext \ 9845 conftest$ac_exeext conftest.$ac_ext 9846LIBS=$ac_check_lib_save_LIBS 9847fi 9848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5 9849$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; } 9850if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then : 9851 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9852 9853 posix_threads=yes 9854 LIBS="$LIBS -lc_r" 9855 THREADOBJ="Python/thread.o" 9856else 9857 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __pthread_create_system in -lpthread" >&5 9859$as_echo_n "checking for __pthread_create_system in -lpthread... " >&6; } 9860if ${ac_cv_lib_pthread___pthread_create_system+:} false; then : 9861 $as_echo_n "(cached) " >&6 9862else 9863 ac_check_lib_save_LIBS=$LIBS 9864LIBS="-lpthread $LIBS" 9865cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9866/* end confdefs.h. */ 9867 9868/* Override any GCC internal prototype to avoid an error. 9869 Use char because int might match the return type of a GCC 9870 builtin and then its argument prototype would still apply. */ 9871#ifdef __cplusplus 9872extern "C" 9873#endif 9874char __pthread_create_system (); 9875int 9876main () 9877{ 9878return __pthread_create_system (); 9879 ; 9880 return 0; 9881} 9882_ACEOF 9883if ac_fn_c_try_link "$LINENO"; then : 9884 ac_cv_lib_pthread___pthread_create_system=yes 9885else 9886 ac_cv_lib_pthread___pthread_create_system=no 9887fi 9888rm -f core conftest.err conftest.$ac_objext \ 9889 conftest$ac_exeext conftest.$ac_ext 9890LIBS=$ac_check_lib_save_LIBS 9891fi 9892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread___pthread_create_system" >&5 9893$as_echo "$ac_cv_lib_pthread___pthread_create_system" >&6; } 9894if test "x$ac_cv_lib_pthread___pthread_create_system" = xyes; then : 9895 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9896 9897 posix_threads=yes 9898 LIBS="$LIBS -lpthread" 9899 THREADOBJ="Python/thread.o" 9900else 9901 9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lcma" >&5 9903$as_echo_n "checking for pthread_create in -lcma... " >&6; } 9904if ${ac_cv_lib_cma_pthread_create+:} false; then : 9905 $as_echo_n "(cached) " >&6 9906else 9907 ac_check_lib_save_LIBS=$LIBS 9908LIBS="-lcma $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 pthread_create (); 9919int 9920main () 9921{ 9922return pthread_create (); 9923 ; 9924 return 0; 9925} 9926_ACEOF 9927if ac_fn_c_try_link "$LINENO"; then : 9928 ac_cv_lib_cma_pthread_create=yes 9929else 9930 ac_cv_lib_cma_pthread_create=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_cma_pthread_create" >&5 9937$as_echo "$ac_cv_lib_cma_pthread_create" >&6; } 9938if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : 9939 $as_echo "#define WITH_THREAD 1" >>confdefs.h 9940 9941 posix_threads=yes 9942 LIBS="$LIBS -lcma" 9943 THREADOBJ="Python/thread.o" 9944else 9945 9946 USE_THREAD_MODULE="#" 9947fi 9948 9949 9950fi 9951 9952fi 9953 9954fi 9955 9956fi 9957 9958 9959fi 9960 9961 9962fi 9963 9964fi 9965rm -f core conftest.err conftest.$ac_objext \ 9966 conftest$ac_exeext conftest.$ac_ext 9967fi 9968 9969fi 9970 9971 9972fi 9973 9974 9975 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usconfig in -lmpc" >&5 9977$as_echo_n "checking for usconfig in -lmpc... " >&6; } 9978if ${ac_cv_lib_mpc_usconfig+:} false; then : 9979 $as_echo_n "(cached) " >&6 9980else 9981 ac_check_lib_save_LIBS=$LIBS 9982LIBS="-lmpc $LIBS" 9983cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9984/* end confdefs.h. */ 9985 9986/* Override any GCC internal prototype to avoid an error. 9987 Use char because int might match the return type of a GCC 9988 builtin and then its argument prototype would still apply. */ 9989#ifdef __cplusplus 9990extern "C" 9991#endif 9992char usconfig (); 9993int 9994main () 9995{ 9996return usconfig (); 9997 ; 9998 return 0; 9999} 10000_ACEOF 10001if ac_fn_c_try_link "$LINENO"; then : 10002 ac_cv_lib_mpc_usconfig=yes 10003else 10004 ac_cv_lib_mpc_usconfig=no 10005fi 10006rm -f core conftest.err conftest.$ac_objext \ 10007 conftest$ac_exeext conftest.$ac_ext 10008LIBS=$ac_check_lib_save_LIBS 10009fi 10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpc_usconfig" >&5 10011$as_echo "$ac_cv_lib_mpc_usconfig" >&6; } 10012if test "x$ac_cv_lib_mpc_usconfig" = xyes; then : 10013 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10014 10015 LIBS="$LIBS -lmpc" 10016 THREADOBJ="Python/thread.o" 10017 USE_THREAD_MODULE="" 10018fi 10019 10020 10021 if test "$posix_threads" != "yes"; then 10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thr_create in -lthread" >&5 10023$as_echo_n "checking for thr_create in -lthread... " >&6; } 10024if ${ac_cv_lib_thread_thr_create+:} false; then : 10025 $as_echo_n "(cached) " >&6 10026else 10027 ac_check_lib_save_LIBS=$LIBS 10028LIBS="-lthread $LIBS" 10029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10030/* end confdefs.h. */ 10031 10032/* Override any GCC internal prototype to avoid an error. 10033 Use char because int might match the return type of a GCC 10034 builtin and then its argument prototype would still apply. */ 10035#ifdef __cplusplus 10036extern "C" 10037#endif 10038char thr_create (); 10039int 10040main () 10041{ 10042return thr_create (); 10043 ; 10044 return 0; 10045} 10046_ACEOF 10047if ac_fn_c_try_link "$LINENO"; then : 10048 ac_cv_lib_thread_thr_create=yes 10049else 10050 ac_cv_lib_thread_thr_create=no 10051fi 10052rm -f core conftest.err conftest.$ac_objext \ 10053 conftest$ac_exeext conftest.$ac_ext 10054LIBS=$ac_check_lib_save_LIBS 10055fi 10056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thread_thr_create" >&5 10057$as_echo "$ac_cv_lib_thread_thr_create" >&6; } 10058if test "x$ac_cv_lib_thread_thr_create" = xyes; then : 10059 $as_echo "#define WITH_THREAD 1" >>confdefs.h 10060 10061 LIBS="$LIBS -lthread" 10062 THREADOBJ="Python/thread.o" 10063 USE_THREAD_MODULE="" 10064fi 10065 10066 fi 10067 10068 if test "$USE_THREAD_MODULE" != "#" 10069 then 10070 # If the above checks didn't disable threads, (at least) OSF1 10071 # needs this '-threads' argument during linking. 10072 case $ac_sys_system in 10073 OSF1) LDLAST=-threads;; 10074 esac 10075 fi 10076fi 10077 10078if test "$posix_threads" = "yes"; then 10079 if test "$unistd_defines_pthreads" = "no"; then 10080 10081$as_echo "#define _POSIX_THREADS 1" >>confdefs.h 10082 10083 fi 10084 10085 # Bug 662787: Using semaphores causes unexplicable hangs on Solaris 8. 10086 case $ac_sys_system/$ac_sys_release in 10087 SunOS/5.6) 10088$as_echo "#define HAVE_PTHREAD_DESTRUCTOR 1" >>confdefs.h 10089 10090 ;; 10091 SunOS/5.8) 10092$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 10093 10094 ;; 10095 AIX/*) 10096$as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h 10097 10098 ;; 10099 esac 10100 10101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PTHREAD_SCOPE_SYSTEM is supported" >&5 10102$as_echo_n "checking if PTHREAD_SCOPE_SYSTEM is supported... " >&6; } 10103 if ${ac_cv_pthread_system_supported+:} false; then : 10104 $as_echo_n "(cached) " >&6 10105else 10106 if test "$cross_compiling" = yes; then : 10107 ac_cv_pthread_system_supported=no 10108else 10109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10110/* end confdefs.h. */ 10111 10112 #include <stdio.h> 10113 #include <pthread.h> 10114 void *foo(void *parm) { 10115 return NULL; 10116 } 10117 main() { 10118 pthread_attr_t attr; 10119 pthread_t id; 10120 if (pthread_attr_init(&attr)) exit(-1); 10121 if (pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM)) exit(-1); 10122 if (pthread_create(&id, &attr, foo, NULL)) exit(-1); 10123 exit(0); 10124 } 10125_ACEOF 10126if ac_fn_c_try_run "$LINENO"; then : 10127 ac_cv_pthread_system_supported=yes 10128else 10129 ac_cv_pthread_system_supported=no 10130fi 10131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10132 conftest.$ac_objext conftest.beam conftest.$ac_ext 10133fi 10134 10135 10136fi 10137 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_pthread_system_supported" >&5 10139$as_echo "$ac_cv_pthread_system_supported" >&6; } 10140 if test "$ac_cv_pthread_system_supported" = "yes"; then 10141 10142$as_echo "#define PTHREAD_SYSTEM_SCHED_SUPPORTED 1" >>confdefs.h 10143 10144 fi 10145 for ac_func in pthread_sigmask 10146do : 10147 ac_fn_c_check_func "$LINENO" "pthread_sigmask" "ac_cv_func_pthread_sigmask" 10148if test "x$ac_cv_func_pthread_sigmask" = xyes; then : 10149 cat >>confdefs.h <<_ACEOF 10150#define HAVE_PTHREAD_SIGMASK 1 10151_ACEOF 10152 case $ac_sys_system in 10153 CYGWIN*) 10154 10155$as_echo "#define HAVE_BROKEN_PTHREAD_SIGMASK 1" >>confdefs.h 10156 10157 ;; 10158 esac 10159fi 10160done 10161 10162 for ac_func in pthread_atfork 10163do : 10164 ac_fn_c_check_func "$LINENO" "pthread_atfork" "ac_cv_func_pthread_atfork" 10165if test "x$ac_cv_func_pthread_atfork" = xyes; then : 10166 cat >>confdefs.h <<_ACEOF 10167#define HAVE_PTHREAD_ATFORK 1 10168_ACEOF 10169 10170fi 10171done 10172 10173fi 10174 10175 10176# Check for enable-ipv6 10177 10178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 10179$as_echo_n "checking if --enable-ipv6 is specified... " >&6; } 10180# Check whether --enable-ipv6 was given. 10181if test "${enable_ipv6+set}" = set; then : 10182 enableval=$enable_ipv6; case "$enableval" in 10183 no) 10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10185$as_echo "no" >&6; } 10186 ipv6=no 10187 ;; 10188 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10189$as_echo "yes" >&6; } 10190 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 10191 10192 ipv6=yes 10193 ;; 10194 esac 10195else 10196 10197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10198/* end confdefs.h. */ 10199 /* AF_INET6 available check */ 10200#include <sys/types.h> 10201#include <sys/socket.h> 10202int 10203main () 10204{ 10205int domain = AF_INET6; 10206 ; 10207 return 0; 10208} 10209_ACEOF 10210if ac_fn_c_try_compile "$LINENO"; then : 10211 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10213$as_echo "yes" >&6; } 10214 ipv6=yes 10215 10216else 10217 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10219$as_echo "no" >&6; } 10220 ipv6=no 10221 10222fi 10223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10224 10225if test "$ipv6" = "yes"; then 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if RFC2553 API is available" >&5 10227$as_echo_n "checking if RFC2553 API is available... " >&6; } 10228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10229/* end confdefs.h. */ 10230 10231 #include <sys/types.h> 10232#include <netinet/in.h> 10233int 10234main () 10235{ 10236struct sockaddr_in6 x; 10237 x.sin6_scope_id; 10238 ; 10239 return 0; 10240} 10241 10242_ACEOF 10243if ac_fn_c_try_compile "$LINENO"; then : 10244 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10246$as_echo "yes" >&6; } 10247 ipv6=yes 10248 10249else 10250 10251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10252$as_echo "no" >&6; } 10253 ipv6=no 10254 10255fi 10256rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10257fi 10258 10259if test "$ipv6" = "yes"; then 10260 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h 10261 10262fi 10263 10264fi 10265 10266 10267ipv6type=unknown 10268ipv6lib=none 10269ipv6trylibc=no 10270 10271if test "$ipv6" = "yes"; then 10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ipv6 stack type" >&5 10273$as_echo_n "checking ipv6 stack type... " >&6; } 10274 for i in inria kame linux-glibc linux-inet6 solaris toshiba v6d zeta; 10275 do 10276 case $i in 10277 inria) 10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10279/* end confdefs.h. */ 10280 10281#include <netinet/in.h> 10282#ifdef IPV6_INRIA_VERSION 10283yes 10284#endif 10285_ACEOF 10286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10287 $EGREP "yes" >/dev/null 2>&1; then : 10288 ipv6type=$i 10289fi 10290rm -f conftest* 10291 10292 ;; 10293 kame) 10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10295/* end confdefs.h. */ 10296 10297#include <netinet/in.h> 10298#ifdef __KAME__ 10299yes 10300#endif 10301_ACEOF 10302if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10303 $EGREP "yes" >/dev/null 2>&1; then : 10304 ipv6type=$i; 10305 ipv6lib=inet6 10306 ipv6libdir=/usr/local/v6/lib 10307 ipv6trylibc=yes 10308fi 10309rm -f conftest* 10310 10311 ;; 10312 linux-glibc) 10313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10314/* end confdefs.h. */ 10315 10316#include <features.h> 10317#if defined(__GLIBC__) && ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)) 10318yes 10319#endif 10320_ACEOF 10321if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10322 $EGREP "yes" >/dev/null 2>&1; then : 10323 ipv6type=$i; 10324 ipv6trylibc=yes 10325fi 10326rm -f conftest* 10327 10328 ;; 10329 linux-inet6) 10330 if test -d /usr/inet6; then 10331 ipv6type=$i 10332 ipv6lib=inet6 10333 ipv6libdir=/usr/inet6/lib 10334 BASECFLAGS="-I/usr/inet6/include $BASECFLAGS" 10335 fi 10336 ;; 10337 solaris) 10338 if test -f /etc/netconfig; then 10339 if $GREP -q tcp6 /etc/netconfig; then 10340 ipv6type=$i 10341 ipv6trylibc=yes 10342 fi 10343 fi 10344 ;; 10345 toshiba) 10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10347/* end confdefs.h. */ 10348 10349#include <sys/param.h> 10350#ifdef _TOSHIBA_INET6 10351yes 10352#endif 10353_ACEOF 10354if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10355 $EGREP "yes" >/dev/null 2>&1; then : 10356 ipv6type=$i; 10357 ipv6lib=inet6; 10358 ipv6libdir=/usr/local/v6/lib 10359fi 10360rm -f conftest* 10361 10362 ;; 10363 v6d) 10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10365/* end confdefs.h. */ 10366 10367#include </usr/local/v6/include/sys/v6config.h> 10368#ifdef __V6D__ 10369yes 10370#endif 10371_ACEOF 10372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10373 $EGREP "yes" >/dev/null 2>&1; then : 10374 ipv6type=$i; 10375 ipv6lib=v6; 10376 ipv6libdir=/usr/local/v6/lib; 10377 BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS" 10378fi 10379rm -f conftest* 10380 10381 ;; 10382 zeta) 10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10384/* end confdefs.h. */ 10385 10386#include <sys/param.h> 10387#ifdef _ZETA_MINAMI_INET6 10388yes 10389#endif 10390_ACEOF 10391if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10392 $EGREP "yes" >/dev/null 2>&1; then : 10393 ipv6type=$i; 10394 ipv6lib=inet6; 10395 ipv6libdir=/usr/local/v6/lib 10396fi 10397rm -f conftest* 10398 10399 ;; 10400 esac 10401 if test "$ipv6type" != "unknown"; then 10402 break 10403 fi 10404 done 10405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ipv6type" >&5 10406$as_echo "$ipv6type" >&6; } 10407fi 10408 10409if test "$ipv6" = "yes" -a "$ipv6lib" != "none"; then 10410 if test -d $ipv6libdir -a -f $ipv6libdir/lib$ipv6lib.a; then 10411 LIBS="-L$ipv6libdir -l$ipv6lib $LIBS" 10412 echo "using lib$ipv6lib" 10413 else 10414 if test $ipv6trylibc = "yes"; then 10415 echo "using libc" 10416 else 10417 echo 'Fatal: no $ipv6lib library found. cannot continue.' 10418 echo "You need to fetch lib$ipv6lib.a from appropriate" 10419 echo 'ipv6 kit and compile beforehand.' 10420 exit 1 10421 fi 10422 fi 10423fi 10424 10425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSX 10.5 SDK or later" >&5 10426$as_echo_n "checking for OSX 10.5 SDK or later... " >&6; } 10427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10428/* end confdefs.h. */ 10429 10430 #include <Carbon/Carbon.h> 10431int 10432main () 10433{ 10434FSIORefNum fRef = 0 10435 ; 10436 return 0; 10437} 10438 10439_ACEOF 10440if ac_fn_c_try_compile "$LINENO"; then : 10441 10442 10443$as_echo "#define HAVE_OSX105_SDK 1" >>confdefs.h 10444 10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10446$as_echo "yes" >&6; } 10447 10448else 10449 10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10451$as_echo "no" >&6; } 10452 10453fi 10454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10455 10456# Check for --with-doc-strings 10457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-doc-strings" >&5 10458$as_echo_n "checking for --with-doc-strings... " >&6; } 10459 10460# Check whether --with-doc-strings was given. 10461if test "${with_doc_strings+set}" = set; then : 10462 withval=$with_doc_strings; 10463fi 10464 10465 10466if test -z "$with_doc_strings" 10467then with_doc_strings="yes" 10468fi 10469if test "$with_doc_strings" != "no" 10470then 10471 10472$as_echo "#define WITH_DOC_STRINGS 1" >>confdefs.h 10473 10474fi 10475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_doc_strings" >&5 10476$as_echo "$with_doc_strings" >&6; } 10477 10478# Check for Python-specific malloc support 10479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-tsc" >&5 10480$as_echo_n "checking for --with-tsc... " >&6; } 10481 10482# Check whether --with-tsc was given. 10483if test "${with_tsc+set}" = set; then : 10484 withval=$with_tsc; 10485if test "$withval" != no 10486then 10487 10488$as_echo "#define WITH_TSC 1" >>confdefs.h 10489 10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10491$as_echo "yes" >&6; } 10492else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10493$as_echo "no" >&6; } 10494fi 10495else 10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10497$as_echo "no" >&6; } 10498fi 10499 10500 10501# Check for Python-specific malloc support 10502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-pymalloc" >&5 10503$as_echo_n "checking for --with-pymalloc... " >&6; } 10504 10505# Check whether --with-pymalloc was given. 10506if test "${with_pymalloc+set}" = set; then : 10507 withval=$with_pymalloc; 10508fi 10509 10510 10511if test -z "$with_pymalloc" 10512then with_pymalloc="yes" 10513fi 10514if test "$with_pymalloc" != "no" 10515then 10516 10517$as_echo "#define WITH_PYMALLOC 1" >>confdefs.h 10518 10519fi 10520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pymalloc" >&5 10521$as_echo "$with_pymalloc" >&6; } 10522 10523# Check for Valgrind support 10524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-valgrind" >&5 10525$as_echo_n "checking for --with-valgrind... " >&6; } 10526 10527# Check whether --with-valgrind was given. 10528if test "${with_valgrind+set}" = set; then : 10529 withval=$with_valgrind; 10530else 10531 with_valgrind=no 10532fi 10533 10534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_valgrind" >&5 10535$as_echo "$with_valgrind" >&6; } 10536if test "$with_valgrind" != no; then 10537 ac_fn_c_check_header_mongrel "$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default" 10538if test "x$ac_cv_header_valgrind_valgrind_h" = xyes; then : 10539 10540$as_echo "#define WITH_VALGRIND 1" >>confdefs.h 10541 10542else 10543 as_fn_error $? "Valgrind support requested but headers not available" "$LINENO" 5 10544 10545fi 10546 10547 10548fi 10549 10550# Check for --with-wctype-functions 10551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-wctype-functions" >&5 10552$as_echo_n "checking for --with-wctype-functions... " >&6; } 10553 10554# Check whether --with-wctype-functions was given. 10555if test "${with_wctype_functions+set}" = set; then : 10556 withval=$with_wctype_functions; 10557if test "$withval" != no 10558then 10559 10560$as_echo "#define WANT_WCTYPE_FUNCTIONS 1" >>confdefs.h 10561 10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10563$as_echo "yes" >&6; } 10564else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10565$as_echo "no" >&6; } 10566fi 10567else 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10569$as_echo "no" >&6; } 10570fi 10571 10572 10573# -I${DLINCLDIR} is added to the compile rule for importdl.o 10574 10575DLINCLDIR=. 10576 10577# the dlopen() function means we might want to use dynload_shlib.o. some 10578# platforms, such as AIX, have dlopen(), but don't want to use it. 10579for ac_func in dlopen 10580do : 10581 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10582if test "x$ac_cv_func_dlopen" = xyes; then : 10583 cat >>confdefs.h <<_ACEOF 10584#define HAVE_DLOPEN 1 10585_ACEOF 10586 10587fi 10588done 10589 10590 10591# DYNLOADFILE specifies which dynload_*.o file we will use for dynamic 10592# loading of modules. 10593 10594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking DYNLOADFILE" >&5 10595$as_echo_n "checking DYNLOADFILE... " >&6; } 10596if test -z "$DYNLOADFILE" 10597then 10598 case $ac_sys_system/$ac_sys_release in 10599 AIX*) # Use dynload_shlib.c and dlopen() if we have it; otherwise dynload_aix.c 10600 if test "$ac_cv_func_dlopen" = yes 10601 then DYNLOADFILE="dynload_shlib.o" 10602 else DYNLOADFILE="dynload_aix.o" 10603 fi 10604 ;; 10605 BeOS*) DYNLOADFILE="dynload_beos.o";; 10606 hp*|HP*) DYNLOADFILE="dynload_hpux.o";; 10607 # Use dynload_next.c only on 10.2 and below, which don't have native dlopen() 10608 Darwin/[0156]\..*) DYNLOADFILE="dynload_next.o";; 10609 atheos*) DYNLOADFILE="dynload_atheos.o";; 10610 *) 10611 # use dynload_shlib.c and dlopen() if we have it; otherwise stub 10612 # out any dynamic loading 10613 if test "$ac_cv_func_dlopen" = yes 10614 then DYNLOADFILE="dynload_shlib.o" 10615 else DYNLOADFILE="dynload_stub.o" 10616 fi 10617 ;; 10618 esac 10619fi 10620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DYNLOADFILE" >&5 10621$as_echo "$DYNLOADFILE" >&6; } 10622if test "$DYNLOADFILE" != "dynload_stub.o" 10623then 10624 10625$as_echo "#define HAVE_DYNAMIC_LOADING 1" >>confdefs.h 10626 10627fi 10628 10629# MACHDEP_OBJS can be set to platform-specific object files needed by Python 10630 10631 10632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking MACHDEP_OBJS" >&5 10633$as_echo_n "checking MACHDEP_OBJS... " >&6; } 10634if test -z "$MACHDEP_OBJS" 10635then 10636 MACHDEP_OBJS=$extra_machdep_objs 10637else 10638 MACHDEP_OBJS="$MACHDEP_OBJS $extra_machdep_objs" 10639fi 10640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: MACHDEP_OBJS" >&5 10641$as_echo "MACHDEP_OBJS" >&6; } 10642 10643# checks for library functions 10644for ac_func in alarm setitimer getitimer chown \ 10645 clock confstr ctermid execv fchmod fchown fork fpathconf ftime ftruncate \ 10646 gai_strerror getgroups getlogin getloadavg getpeername getpgid getpid \ 10647 getentropy \ 10648 getpriority getresuid getresgid getpwent getspnam getspent getsid getwd \ 10649 initgroups kill killpg lchown lstat mkfifo mknod mktime mmap \ 10650 mremap nice pathconf pause plock poll pthread_init \ 10651 putenv readlink realpath \ 10652 select sem_open sem_timedwait sem_getvalue sem_unlink setegid seteuid \ 10653 setgid \ 10654 setlocale setregid setreuid setsid setpgid setpgrp setuid setvbuf snprintf \ 10655 setlocale setregid setreuid setresuid setresgid \ 10656 setsid setpgid setpgrp setuid setvbuf snprintf \ 10657 sigaction siginterrupt sigrelse strftime \ 10658 sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile tmpnam tmpnam_r \ 10659 truncate uname unsetenv utimes waitpid wait3 wait4 wcscoll _getpty 10660do : 10661 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10662ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10663if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10664 cat >>confdefs.h <<_ACEOF 10665#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10666_ACEOF 10667 10668fi 10669done 10670 10671 10672# Force lchmod off for Linux. Linux disallows changing the mode of symbolic 10673# links. Some libc implementations have a stub lchmod implementation that always 10674# returns an error. 10675if test "$MACHDEP" != linux; then 10676 for ac_func in lchmod 10677do : 10678 ac_fn_c_check_func "$LINENO" "lchmod" "ac_cv_func_lchmod" 10679if test "x$ac_cv_func_lchmod" = xyes; then : 10680 cat >>confdefs.h <<_ACEOF 10681#define HAVE_LCHMOD 1 10682_ACEOF 10683 10684fi 10685done 10686 10687fi 10688 10689# For some functions, having a definition is not sufficient, since 10690# we want to take their address. 10691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chroot" >&5 10692$as_echo_n "checking for chroot... " >&6; } 10693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10694/* end confdefs.h. */ 10695#include <unistd.h> 10696int 10697main () 10698{ 10699void *x=chroot 10700 ; 10701 return 0; 10702} 10703_ACEOF 10704if ac_fn_c_try_compile "$LINENO"; then : 10705 10706$as_echo "#define HAVE_CHROOT 1" >>confdefs.h 10707 10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10709$as_echo "yes" >&6; } 10710else 10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10712$as_echo "no" >&6; } 10713 10714fi 10715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for link" >&5 10717$as_echo_n "checking for link... " >&6; } 10718cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10719/* end confdefs.h. */ 10720#include <unistd.h> 10721int 10722main () 10723{ 10724void *x=link 10725 ; 10726 return 0; 10727} 10728_ACEOF 10729if ac_fn_c_try_compile "$LINENO"; then : 10730 10731$as_echo "#define HAVE_LINK 1" >>confdefs.h 10732 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10734$as_echo "yes" >&6; } 10735else 10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10737$as_echo "no" >&6; } 10738 10739fi 10740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symlink" >&5 10742$as_echo_n "checking for symlink... " >&6; } 10743cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10744/* end confdefs.h. */ 10745#include <unistd.h> 10746int 10747main () 10748{ 10749void *x=symlink 10750 ; 10751 return 0; 10752} 10753_ACEOF 10754if ac_fn_c_try_compile "$LINENO"; then : 10755 10756$as_echo "#define HAVE_SYMLINK 1" >>confdefs.h 10757 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10759$as_echo "yes" >&6; } 10760else 10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10762$as_echo "no" >&6; } 10763 10764fi 10765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fchdir" >&5 10767$as_echo_n "checking for fchdir... " >&6; } 10768cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10769/* end confdefs.h. */ 10770#include <unistd.h> 10771int 10772main () 10773{ 10774void *x=fchdir 10775 ; 10776 return 0; 10777} 10778_ACEOF 10779if ac_fn_c_try_compile "$LINENO"; then : 10780 10781$as_echo "#define HAVE_FCHDIR 1" >>confdefs.h 10782 10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10784$as_echo "yes" >&6; } 10785else 10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10787$as_echo "no" >&6; } 10788 10789fi 10790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fsync" >&5 10792$as_echo_n "checking for fsync... " >&6; } 10793cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10794/* end confdefs.h. */ 10795#include <unistd.h> 10796int 10797main () 10798{ 10799void *x=fsync 10800 ; 10801 return 0; 10802} 10803_ACEOF 10804if ac_fn_c_try_compile "$LINENO"; then : 10805 10806$as_echo "#define HAVE_FSYNC 1" >>confdefs.h 10807 10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10809$as_echo "yes" >&6; } 10810else 10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10812$as_echo "no" >&6; } 10813 10814fi 10815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fdatasync" >&5 10817$as_echo_n "checking for fdatasync... " >&6; } 10818cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10819/* end confdefs.h. */ 10820#include <unistd.h> 10821int 10822main () 10823{ 10824void *x=fdatasync 10825 ; 10826 return 0; 10827} 10828_ACEOF 10829if ac_fn_c_try_compile "$LINENO"; then : 10830 10831$as_echo "#define HAVE_FDATASYNC 1" >>confdefs.h 10832 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10834$as_echo "yes" >&6; } 10835else 10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10837$as_echo "no" >&6; } 10838 10839fi 10840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for epoll" >&5 10842$as_echo_n "checking for epoll... " >&6; } 10843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10844/* end confdefs.h. */ 10845#include <sys/epoll.h> 10846int 10847main () 10848{ 10849void *x=epoll_create 10850 ; 10851 return 0; 10852} 10853_ACEOF 10854if ac_fn_c_try_compile "$LINENO"; then : 10855 10856$as_echo "#define HAVE_EPOLL 1" >>confdefs.h 10857 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10859$as_echo "yes" >&6; } 10860else 10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10862$as_echo "no" >&6; } 10863 10864fi 10865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kqueue" >&5 10867$as_echo_n "checking for kqueue... " >&6; } 10868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10869/* end confdefs.h. */ 10870 10871#include <sys/types.h> 10872#include <sys/event.h> 10873 10874int 10875main () 10876{ 10877int x=kqueue() 10878 ; 10879 return 0; 10880} 10881_ACEOF 10882if ac_fn_c_try_compile "$LINENO"; then : 10883 10884$as_echo "#define HAVE_KQUEUE 1" >>confdefs.h 10885 10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10887$as_echo "yes" >&6; } 10888else 10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10890$as_echo "no" >&6; } 10891 10892fi 10893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10894# On some systems (eg. FreeBSD 5), we would find a definition of the 10895# functions ctermid_r, setgroups in the library, but no prototype 10896# (e.g. because we use _XOPEN_SOURCE). See whether we can take their 10897# address to avoid compiler warnings and potential miscompilations 10898# because of the missing prototypes. 10899 10900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctermid_r" >&5 10901$as_echo_n "checking for ctermid_r... " >&6; } 10902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10903/* end confdefs.h. */ 10904 10905#include <stdio.h> 10906 10907int 10908main () 10909{ 10910void* p = ctermid_r 10911 ; 10912 return 0; 10913} 10914_ACEOF 10915if ac_fn_c_try_compile "$LINENO"; then : 10916 10917$as_echo "#define HAVE_CTERMID_R 1" >>confdefs.h 10918 10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10920$as_echo "yes" >&6; } 10921else 10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10923$as_echo "no" >&6; } 10924 10925fi 10926rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10927 10928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock declaration" >&5 10929$as_echo_n "checking for flock declaration... " >&6; } 10930if ${ac_cv_flock_decl+:} false; then : 10931 $as_echo_n "(cached) " >&6 10932else 10933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10934/* end confdefs.h. */ 10935#include <sys/file.h> 10936int 10937main () 10938{ 10939void* p = flock 10940 10941 ; 10942 return 0; 10943} 10944_ACEOF 10945if ac_fn_c_try_compile "$LINENO"; then : 10946 ac_cv_flock_decl=yes 10947else 10948 ac_cv_flock_decl=no 10949 10950fi 10951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10952 10953fi 10954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flock_decl" >&5 10955$as_echo "$ac_cv_flock_decl" >&6; } 10956if test "x${ac_cv_flock_decl}" = xyes; then 10957 for ac_func in flock 10958do : 10959 ac_fn_c_check_func "$LINENO" "flock" "ac_cv_func_flock" 10960if test "x$ac_cv_func_flock" = xyes; then : 10961 cat >>confdefs.h <<_ACEOF 10962#define HAVE_FLOCK 1 10963_ACEOF 10964 10965else 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock in -lbsd" >&5 10967$as_echo_n "checking for flock in -lbsd... " >&6; } 10968if ${ac_cv_lib_bsd_flock+:} false; then : 10969 $as_echo_n "(cached) " >&6 10970else 10971 ac_check_lib_save_LIBS=$LIBS 10972LIBS="-lbsd $LIBS" 10973cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10974/* end confdefs.h. */ 10975 10976/* Override any GCC internal prototype to avoid an error. 10977 Use char because int might match the return type of a GCC 10978 builtin and then its argument prototype would still apply. */ 10979#ifdef __cplusplus 10980extern "C" 10981#endif 10982char flock (); 10983int 10984main () 10985{ 10986return flock (); 10987 ; 10988 return 0; 10989} 10990_ACEOF 10991if ac_fn_c_try_link "$LINENO"; then : 10992 ac_cv_lib_bsd_flock=yes 10993else 10994 ac_cv_lib_bsd_flock=no 10995fi 10996rm -f core conftest.err conftest.$ac_objext \ 10997 conftest$ac_exeext conftest.$ac_ext 10998LIBS=$ac_check_lib_save_LIBS 10999fi 11000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_flock" >&5 11001$as_echo "$ac_cv_lib_bsd_flock" >&6; } 11002if test "x$ac_cv_lib_bsd_flock" = xyes; then : 11003 $as_echo "#define HAVE_FLOCK 1" >>confdefs.h 11004 11005 11006$as_echo "#define FLOCK_NEEDS_LIBBSD 1" >>confdefs.h 11007 11008 11009fi 11010 11011 11012fi 11013done 11014 11015fi 11016 11017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpagesize" >&5 11018$as_echo_n "checking for getpagesize... " >&6; } 11019cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11020/* end confdefs.h. */ 11021 11022#include <unistd.h> 11023 11024int 11025main () 11026{ 11027void* p = getpagesize 11028 ; 11029 return 0; 11030} 11031_ACEOF 11032if ac_fn_c_try_compile "$LINENO"; then : 11033 11034$as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h 11035 11036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11037$as_echo "yes" >&6; } 11038else 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11040$as_echo "no" >&6; } 11041 11042fi 11043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11044 11045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unsetenv" >&5 11046$as_echo_n "checking for broken unsetenv... " >&6; } 11047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11048/* end confdefs.h. */ 11049 11050#include <stdlib.h> 11051 11052int 11053main () 11054{ 11055int res = unsetenv("DUMMY") 11056 ; 11057 return 0; 11058} 11059_ACEOF 11060if ac_fn_c_try_compile "$LINENO"; then : 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11062$as_echo "no" >&6; } 11063else 11064 11065$as_echo "#define HAVE_BROKEN_UNSETENV 1" >>confdefs.h 11066 11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11068$as_echo "yes" >&6; } 11069 11070fi 11071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11072 11073for ac_prog in true 11074do 11075 # Extract the first word of "$ac_prog", so it can be a program name with args. 11076set dummy $ac_prog; ac_word=$2 11077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11078$as_echo_n "checking for $ac_word... " >&6; } 11079if ${ac_cv_prog_TRUE+:} false; then : 11080 $as_echo_n "(cached) " >&6 11081else 11082 if test -n "$TRUE"; then 11083 ac_cv_prog_TRUE="$TRUE" # Let the user override the test. 11084else 11085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11086for as_dir in $PATH 11087do 11088 IFS=$as_save_IFS 11089 test -z "$as_dir" && as_dir=. 11090 for ac_exec_ext in '' $ac_executable_extensions; do 11091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11092 ac_cv_prog_TRUE="$ac_prog" 11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11094 break 2 11095 fi 11096done 11097 done 11098IFS=$as_save_IFS 11099 11100fi 11101fi 11102TRUE=$ac_cv_prog_TRUE 11103if test -n "$TRUE"; then 11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUE" >&5 11105$as_echo "$TRUE" >&6; } 11106else 11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11108$as_echo "no" >&6; } 11109fi 11110 11111 11112 test -n "$TRUE" && break 11113done 11114test -n "$TRUE" || TRUE="/bin/true" 11115 11116 11117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lc" >&5 11118$as_echo_n "checking for inet_aton in -lc... " >&6; } 11119if ${ac_cv_lib_c_inet_aton+:} false; then : 11120 $as_echo_n "(cached) " >&6 11121else 11122 ac_check_lib_save_LIBS=$LIBS 11123LIBS="-lc $LIBS" 11124cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11125/* end confdefs.h. */ 11126 11127/* Override any GCC internal prototype to avoid an error. 11128 Use char because int might match the return type of a GCC 11129 builtin and then its argument prototype would still apply. */ 11130#ifdef __cplusplus 11131extern "C" 11132#endif 11133char inet_aton (); 11134int 11135main () 11136{ 11137return inet_aton (); 11138 ; 11139 return 0; 11140} 11141_ACEOF 11142if ac_fn_c_try_link "$LINENO"; then : 11143 ac_cv_lib_c_inet_aton=yes 11144else 11145 ac_cv_lib_c_inet_aton=no 11146fi 11147rm -f core conftest.err conftest.$ac_objext \ 11148 conftest$ac_exeext conftest.$ac_ext 11149LIBS=$ac_check_lib_save_LIBS 11150fi 11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_inet_aton" >&5 11152$as_echo "$ac_cv_lib_c_inet_aton" >&6; } 11153if test "x$ac_cv_lib_c_inet_aton" = xyes; then : 11154 $ac_cv_prog_TRUE 11155else 11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5 11157$as_echo_n "checking for inet_aton in -lresolv... " >&6; } 11158if ${ac_cv_lib_resolv_inet_aton+:} false; then : 11159 $as_echo_n "(cached) " >&6 11160else 11161 ac_check_lib_save_LIBS=$LIBS 11162LIBS="-lresolv $LIBS" 11163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11164/* end confdefs.h. */ 11165 11166/* Override any GCC internal prototype to avoid an error. 11167 Use char because int might match the return type of a GCC 11168 builtin and then its argument prototype would still apply. */ 11169#ifdef __cplusplus 11170extern "C" 11171#endif 11172char inet_aton (); 11173int 11174main () 11175{ 11176return inet_aton (); 11177 ; 11178 return 0; 11179} 11180_ACEOF 11181if ac_fn_c_try_link "$LINENO"; then : 11182 ac_cv_lib_resolv_inet_aton=yes 11183else 11184 ac_cv_lib_resolv_inet_aton=no 11185fi 11186rm -f core conftest.err conftest.$ac_objext \ 11187 conftest$ac_exeext conftest.$ac_ext 11188LIBS=$ac_check_lib_save_LIBS 11189fi 11190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5 11191$as_echo "$ac_cv_lib_resolv_inet_aton" >&6; } 11192if test "x$ac_cv_lib_resolv_inet_aton" = xyes; then : 11193 cat >>confdefs.h <<_ACEOF 11194#define HAVE_LIBRESOLV 1 11195_ACEOF 11196 11197 LIBS="-lresolv $LIBS" 11198 11199fi 11200 11201 11202fi 11203 11204 11205# On Tru64, chflags seems to be present, but calling it will 11206# exit Python 11207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for chflags" >&5 11208$as_echo_n "checking for chflags... " >&6; } 11209if ${ac_cv_have_chflags+:} false; then : 11210 $as_echo_n "(cached) " >&6 11211else 11212 if test "$cross_compiling" = yes; then : 11213 ac_cv_have_chflags=cross 11214else 11215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11216/* end confdefs.h. */ 11217 11218#include <sys/stat.h> 11219#include <unistd.h> 11220int main(int argc, char*argv[]) 11221{ 11222 if(chflags(argv[0], 0) != 0) 11223 return 1; 11224 return 0; 11225} 11226 11227_ACEOF 11228if ac_fn_c_try_run "$LINENO"; then : 11229 ac_cv_have_chflags=yes 11230else 11231 ac_cv_have_chflags=no 11232fi 11233rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11234 conftest.$ac_objext conftest.beam conftest.$ac_ext 11235fi 11236 11237 11238fi 11239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_chflags" >&5 11240$as_echo "$ac_cv_have_chflags" >&6; } 11241if test "$ac_cv_have_chflags" = cross ; then 11242 ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags" 11243if test "x$ac_cv_func_chflags" = xyes; then : 11244 ac_cv_have_chflags="yes" 11245else 11246 ac_cv_have_chflags="no" 11247fi 11248 11249fi 11250if test "$ac_cv_have_chflags" = yes ; then 11251 11252$as_echo "#define HAVE_CHFLAGS 1" >>confdefs.h 11253 11254fi 11255 11256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lchflags" >&5 11257$as_echo_n "checking for lchflags... " >&6; } 11258if ${ac_cv_have_lchflags+:} false; then : 11259 $as_echo_n "(cached) " >&6 11260else 11261 if test "$cross_compiling" = yes; then : 11262 ac_cv_have_lchflags=cross 11263else 11264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11265/* end confdefs.h. */ 11266 11267#include <sys/stat.h> 11268#include <unistd.h> 11269int main(int argc, char*argv[]) 11270{ 11271 if(lchflags(argv[0], 0) != 0) 11272 return 1; 11273 return 0; 11274} 11275 11276_ACEOF 11277if ac_fn_c_try_run "$LINENO"; then : 11278 ac_cv_have_lchflags=yes 11279else 11280 ac_cv_have_lchflags=no 11281fi 11282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11283 conftest.$ac_objext conftest.beam conftest.$ac_ext 11284fi 11285 11286 11287fi 11288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_lchflags" >&5 11289$as_echo "$ac_cv_have_lchflags" >&6; } 11290if test "$ac_cv_have_lchflags" = cross ; then 11291 ac_fn_c_check_func "$LINENO" "lchflags" "ac_cv_func_lchflags" 11292if test "x$ac_cv_func_lchflags" = xyes; then : 11293 ac_cv_have_lchflags="yes" 11294else 11295 ac_cv_have_lchflags="no" 11296fi 11297 11298fi 11299if test "$ac_cv_have_lchflags" = yes ; then 11300 11301$as_echo "#define HAVE_LCHFLAGS 1" >>confdefs.h 11302 11303fi 11304 11305case $ac_sys_system/$ac_sys_release in 11306Darwin/*) 11307 _CUR_CFLAGS="${CFLAGS}" 11308 _CUR_LDFLAGS="${LDFLAGS}" 11309 CFLAGS="${CFLAGS} -Wl,-search_paths_first" 11310 LDFLAGS="${LDFLAGS} -Wl,-search_paths_first -L/usr/local/lib" 11311 ;; 11312esac 11313 11314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 11315$as_echo_n "checking for inflateCopy in -lz... " >&6; } 11316if ${ac_cv_lib_z_inflateCopy+:} false; then : 11317 $as_echo_n "(cached) " >&6 11318else 11319 ac_check_lib_save_LIBS=$LIBS 11320LIBS="-lz $LIBS" 11321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11322/* end confdefs.h. */ 11323 11324/* Override any GCC internal prototype to avoid an error. 11325 Use char because int might match the return type of a GCC 11326 builtin and then its argument prototype would still apply. */ 11327#ifdef __cplusplus 11328extern "C" 11329#endif 11330char inflateCopy (); 11331int 11332main () 11333{ 11334return inflateCopy (); 11335 ; 11336 return 0; 11337} 11338_ACEOF 11339if ac_fn_c_try_link "$LINENO"; then : 11340 ac_cv_lib_z_inflateCopy=yes 11341else 11342 ac_cv_lib_z_inflateCopy=no 11343fi 11344rm -f core conftest.err conftest.$ac_objext \ 11345 conftest$ac_exeext conftest.$ac_ext 11346LIBS=$ac_check_lib_save_LIBS 11347fi 11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 11349$as_echo "$ac_cv_lib_z_inflateCopy" >&6; } 11350if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : 11351 11352$as_echo "#define HAVE_ZLIB_COPY 1" >>confdefs.h 11353 11354fi 11355 11356 11357case $ac_sys_system/$ac_sys_release in 11358Darwin/*) 11359 CFLAGS="${_CUR_CFLAGS}" 11360 LDFLAGS="${_CUR_LDFLAGS}" 11361 ;; 11362esac 11363 11364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hstrerror" >&5 11365$as_echo_n "checking for hstrerror... " >&6; } 11366cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11367/* end confdefs.h. */ 11368 11369#include <netdb.h> 11370 11371int 11372main () 11373{ 11374void* p = hstrerror; hstrerror(0) 11375 ; 11376 return 0; 11377} 11378_ACEOF 11379if ac_fn_c_try_link "$LINENO"; then : 11380 11381$as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h 11382 11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11384$as_echo "yes" >&6; } 11385else 11386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11387$as_echo "no" >&6; } 11388 11389fi 11390rm -f core conftest.err conftest.$ac_objext \ 11391 conftest$ac_exeext conftest.$ac_ext 11392 11393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_aton" >&5 11394$as_echo_n "checking for inet_aton... " >&6; } 11395cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11396/* end confdefs.h. */ 11397 11398#include <sys/types.h> 11399#include <sys/socket.h> 11400#include <netinet/in.h> 11401#include <arpa/inet.h> 11402 11403int 11404main () 11405{ 11406void* p = inet_aton;inet_aton(0,0) 11407 ; 11408 return 0; 11409} 11410_ACEOF 11411if ac_fn_c_try_link "$LINENO"; then : 11412 11413$as_echo "#define HAVE_INET_ATON 1" >>confdefs.h 11414 11415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11416$as_echo "yes" >&6; } 11417else 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11419$as_echo "no" >&6; } 11420 11421fi 11422rm -f core conftest.err conftest.$ac_objext \ 11423 conftest$ac_exeext conftest.$ac_ext 11424 11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_pton" >&5 11426$as_echo_n "checking for inet_pton... " >&6; } 11427cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11428/* end confdefs.h. */ 11429 11430#include <sys/types.h> 11431#include <sys/socket.h> 11432#include <netinet/in.h> 11433#include <arpa/inet.h> 11434 11435int 11436main () 11437{ 11438void* p = inet_pton 11439 ; 11440 return 0; 11441} 11442_ACEOF 11443if ac_fn_c_try_compile "$LINENO"; then : 11444 11445$as_echo "#define HAVE_INET_PTON 1" >>confdefs.h 11446 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11448$as_echo "yes" >&6; } 11449else 11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11451$as_echo "no" >&6; } 11452 11453fi 11454rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11455 11456# On some systems, setgroups is in unistd.h, on others, in grp.h 11457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgroups" >&5 11458$as_echo_n "checking for setgroups... " >&6; } 11459cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11460/* end confdefs.h. */ 11461 11462#include <unistd.h> 11463#ifdef HAVE_GRP_H 11464#include <grp.h> 11465#endif 11466 11467int 11468main () 11469{ 11470void* p = setgroups 11471 ; 11472 return 0; 11473} 11474_ACEOF 11475if ac_fn_c_try_compile "$LINENO"; then : 11476 11477$as_echo "#define HAVE_SETGROUPS 1" >>confdefs.h 11478 11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11480$as_echo "yes" >&6; } 11481else 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11483$as_echo "no" >&6; } 11484 11485fi 11486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11487 11488# check for openpty and forkpty 11489 11490for ac_func in openpty 11491do : 11492 ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" 11493if test "x$ac_cv_func_openpty" = xyes; then : 11494 cat >>confdefs.h <<_ACEOF 11495#define HAVE_OPENPTY 1 11496_ACEOF 11497 11498else 11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 11500$as_echo_n "checking for openpty in -lutil... " >&6; } 11501if ${ac_cv_lib_util_openpty+:} false; then : 11502 $as_echo_n "(cached) " >&6 11503else 11504 ac_check_lib_save_LIBS=$LIBS 11505LIBS="-lutil $LIBS" 11506cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11507/* end confdefs.h. */ 11508 11509/* Override any GCC internal prototype to avoid an error. 11510 Use char because int might match the return type of a GCC 11511 builtin and then its argument prototype would still apply. */ 11512#ifdef __cplusplus 11513extern "C" 11514#endif 11515char openpty (); 11516int 11517main () 11518{ 11519return openpty (); 11520 ; 11521 return 0; 11522} 11523_ACEOF 11524if ac_fn_c_try_link "$LINENO"; then : 11525 ac_cv_lib_util_openpty=yes 11526else 11527 ac_cv_lib_util_openpty=no 11528fi 11529rm -f core conftest.err conftest.$ac_objext \ 11530 conftest$ac_exeext conftest.$ac_ext 11531LIBS=$ac_check_lib_save_LIBS 11532fi 11533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 11534$as_echo "$ac_cv_lib_util_openpty" >&6; } 11535if test "x$ac_cv_lib_util_openpty" = xyes; then : 11536 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 11537 LIBS="$LIBS -lutil" 11538else 11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lbsd" >&5 11540$as_echo_n "checking for openpty in -lbsd... " >&6; } 11541if ${ac_cv_lib_bsd_openpty+:} false; then : 11542 $as_echo_n "(cached) " >&6 11543else 11544 ac_check_lib_save_LIBS=$LIBS 11545LIBS="-lbsd $LIBS" 11546cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11547/* end confdefs.h. */ 11548 11549/* Override any GCC internal prototype to avoid an error. 11550 Use char because int might match the return type of a GCC 11551 builtin and then its argument prototype would still apply. */ 11552#ifdef __cplusplus 11553extern "C" 11554#endif 11555char openpty (); 11556int 11557main () 11558{ 11559return openpty (); 11560 ; 11561 return 0; 11562} 11563_ACEOF 11564if ac_fn_c_try_link "$LINENO"; then : 11565 ac_cv_lib_bsd_openpty=yes 11566else 11567 ac_cv_lib_bsd_openpty=no 11568fi 11569rm -f core conftest.err conftest.$ac_objext \ 11570 conftest$ac_exeext conftest.$ac_ext 11571LIBS=$ac_check_lib_save_LIBS 11572fi 11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_openpty" >&5 11574$as_echo "$ac_cv_lib_bsd_openpty" >&6; } 11575if test "x$ac_cv_lib_bsd_openpty" = xyes; then : 11576 $as_echo "#define HAVE_OPENPTY 1" >>confdefs.h 11577 LIBS="$LIBS -lbsd" 11578fi 11579 11580 11581fi 11582 11583 11584fi 11585done 11586 11587for ac_func in forkpty 11588do : 11589 ac_fn_c_check_func "$LINENO" "forkpty" "ac_cv_func_forkpty" 11590if test "x$ac_cv_func_forkpty" = xyes; then : 11591 cat >>confdefs.h <<_ACEOF 11592#define HAVE_FORKPTY 1 11593_ACEOF 11594 11595else 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lutil" >&5 11597$as_echo_n "checking for forkpty in -lutil... " >&6; } 11598if ${ac_cv_lib_util_forkpty+:} false; then : 11599 $as_echo_n "(cached) " >&6 11600else 11601 ac_check_lib_save_LIBS=$LIBS 11602LIBS="-lutil $LIBS" 11603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11604/* end confdefs.h. */ 11605 11606/* Override any GCC internal prototype to avoid an error. 11607 Use char because int might match the return type of a GCC 11608 builtin and then its argument prototype would still apply. */ 11609#ifdef __cplusplus 11610extern "C" 11611#endif 11612char forkpty (); 11613int 11614main () 11615{ 11616return forkpty (); 11617 ; 11618 return 0; 11619} 11620_ACEOF 11621if ac_fn_c_try_link "$LINENO"; then : 11622 ac_cv_lib_util_forkpty=yes 11623else 11624 ac_cv_lib_util_forkpty=no 11625fi 11626rm -f core conftest.err conftest.$ac_objext \ 11627 conftest$ac_exeext conftest.$ac_ext 11628LIBS=$ac_check_lib_save_LIBS 11629fi 11630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_forkpty" >&5 11631$as_echo "$ac_cv_lib_util_forkpty" >&6; } 11632if test "x$ac_cv_lib_util_forkpty" = xyes; then : 11633 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 11634 LIBS="$LIBS -lutil" 11635else 11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for forkpty in -lbsd" >&5 11637$as_echo_n "checking for forkpty in -lbsd... " >&6; } 11638if ${ac_cv_lib_bsd_forkpty+:} false; then : 11639 $as_echo_n "(cached) " >&6 11640else 11641 ac_check_lib_save_LIBS=$LIBS 11642LIBS="-lbsd $LIBS" 11643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11644/* end confdefs.h. */ 11645 11646/* Override any GCC internal prototype to avoid an error. 11647 Use char because int might match the return type of a GCC 11648 builtin and then its argument prototype would still apply. */ 11649#ifdef __cplusplus 11650extern "C" 11651#endif 11652char forkpty (); 11653int 11654main () 11655{ 11656return forkpty (); 11657 ; 11658 return 0; 11659} 11660_ACEOF 11661if ac_fn_c_try_link "$LINENO"; then : 11662 ac_cv_lib_bsd_forkpty=yes 11663else 11664 ac_cv_lib_bsd_forkpty=no 11665fi 11666rm -f core conftest.err conftest.$ac_objext \ 11667 conftest$ac_exeext conftest.$ac_ext 11668LIBS=$ac_check_lib_save_LIBS 11669fi 11670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_forkpty" >&5 11671$as_echo "$ac_cv_lib_bsd_forkpty" >&6; } 11672if test "x$ac_cv_lib_bsd_forkpty" = xyes; then : 11673 $as_echo "#define HAVE_FORKPTY 1" >>confdefs.h 11674 LIBS="$LIBS -lbsd" 11675fi 11676 11677 11678fi 11679 11680 11681fi 11682done 11683 11684 11685# Stuff for expat. 11686for ac_func in memmove 11687do : 11688 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove" 11689if test "x$ac_cv_func_memmove" = xyes; then : 11690 cat >>confdefs.h <<_ACEOF 11691#define HAVE_MEMMOVE 1 11692_ACEOF 11693 11694fi 11695done 11696 11697 11698# check for long file support functions 11699for ac_func in fseek64 fseeko fstatvfs ftell64 ftello statvfs 11700do : 11701 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11702ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11703if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11704 cat >>confdefs.h <<_ACEOF 11705#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11706_ACEOF 11707 11708fi 11709done 11710 11711 11712ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_dup2" 11713if test "x$ac_cv_func_dup2" = xyes; then : 11714 $as_echo "#define HAVE_DUP2 1" >>confdefs.h 11715 11716else 11717 case " $LIBOBJS " in 11718 *" dup2.$ac_objext "* ) ;; 11719 *) LIBOBJS="$LIBOBJS dup2.$ac_objext" 11720 ;; 11721esac 11722 11723fi 11724 11725ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" 11726if test "x$ac_cv_func_getcwd" = xyes; then : 11727 $as_echo "#define HAVE_GETCWD 1" >>confdefs.h 11728 11729else 11730 case " $LIBOBJS " in 11731 *" getcwd.$ac_objext "* ) ;; 11732 *) LIBOBJS="$LIBOBJS getcwd.$ac_objext" 11733 ;; 11734esac 11735 11736fi 11737 11738ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup" 11739if test "x$ac_cv_func_strdup" = xyes; then : 11740 $as_echo "#define HAVE_STRDUP 1" >>confdefs.h 11741 11742else 11743 case " $LIBOBJS " in 11744 *" strdup.$ac_objext "* ) ;; 11745 *) LIBOBJS="$LIBOBJS strdup.$ac_objext" 11746 ;; 11747esac 11748 11749fi 11750 11751 11752for ac_func in getpgrp 11753do : 11754 ac_fn_c_check_func "$LINENO" "getpgrp" "ac_cv_func_getpgrp" 11755if test "x$ac_cv_func_getpgrp" = xyes; then : 11756 cat >>confdefs.h <<_ACEOF 11757#define HAVE_GETPGRP 1 11758_ACEOF 11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11760/* end confdefs.h. */ 11761#include <unistd.h> 11762int 11763main () 11764{ 11765getpgrp(0); 11766 ; 11767 return 0; 11768} 11769_ACEOF 11770if ac_fn_c_try_compile "$LINENO"; then : 11771 11772$as_echo "#define GETPGRP_HAVE_ARG 1" >>confdefs.h 11773 11774fi 11775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11776 11777fi 11778done 11779 11780for ac_func in setpgrp 11781do : 11782 ac_fn_c_check_func "$LINENO" "setpgrp" "ac_cv_func_setpgrp" 11783if test "x$ac_cv_func_setpgrp" = xyes; then : 11784 cat >>confdefs.h <<_ACEOF 11785#define HAVE_SETPGRP 1 11786_ACEOF 11787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11788/* end confdefs.h. */ 11789#include <unistd.h> 11790int 11791main () 11792{ 11793setpgrp(0,0); 11794 ; 11795 return 0; 11796} 11797_ACEOF 11798if ac_fn_c_try_compile "$LINENO"; then : 11799 11800$as_echo "#define SETPGRP_HAVE_ARG 1" >>confdefs.h 11801 11802fi 11803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11804 11805fi 11806done 11807 11808for ac_func in gettimeofday 11809do : 11810 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 11811if test "x$ac_cv_func_gettimeofday" = xyes; then : 11812 cat >>confdefs.h <<_ACEOF 11813#define HAVE_GETTIMEOFDAY 1 11814_ACEOF 11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11816/* end confdefs.h. */ 11817#include <sys/time.h> 11818int 11819main () 11820{ 11821gettimeofday((struct timeval*)0,(struct timezone*)0); 11822 ; 11823 return 0; 11824} 11825_ACEOF 11826if ac_fn_c_try_compile "$LINENO"; then : 11827 11828else 11829 11830$as_echo "#define GETTIMEOFDAY_NO_TZ 1" >>confdefs.h 11831 11832 11833fi 11834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11835 11836fi 11837done 11838 11839 11840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for major" >&5 11841$as_echo_n "checking for major... " >&6; } 11842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11843/* end confdefs.h. */ 11844 11845#if defined(MAJOR_IN_MKDEV) 11846#include <sys/mkdev.h> 11847#elif defined(MAJOR_IN_SYSMACROS) 11848#include <sys/sysmacros.h> 11849#else 11850#include <sys/types.h> 11851#endif 11852 11853int 11854main () 11855{ 11856 11857 makedev(major(0),minor(0)); 11858 11859 ; 11860 return 0; 11861} 11862_ACEOF 11863if ac_fn_c_try_link "$LINENO"; then : 11864 11865 11866$as_echo "#define HAVE_DEVICE_MACROS 1" >>confdefs.h 11867 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11869$as_echo "yes" >&6; } 11870 11871else 11872 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11874$as_echo "no" >&6; } 11875 11876fi 11877rm -f core conftest.err conftest.$ac_objext \ 11878 conftest$ac_exeext conftest.$ac_ext 11879 11880# On OSF/1 V5.1, getaddrinfo is available, but a define 11881# for [no]getaddrinfo in netdb.h. 11882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo" >&5 11883$as_echo_n "checking for getaddrinfo... " >&6; } 11884cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11885/* end confdefs.h. */ 11886 11887#include <sys/types.h> 11888#include <sys/socket.h> 11889#include <netdb.h> 11890#include <stdio.h> 11891 11892int 11893main () 11894{ 11895getaddrinfo(NULL, NULL, NULL, NULL); 11896 ; 11897 return 0; 11898} 11899_ACEOF 11900if ac_fn_c_try_link "$LINENO"; then : 11901 have_getaddrinfo=yes 11902else 11903 have_getaddrinfo=no 11904fi 11905rm -f core conftest.err conftest.$ac_objext \ 11906 conftest$ac_exeext conftest.$ac_ext 11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_getaddrinfo" >&5 11908$as_echo "$have_getaddrinfo" >&6; } 11909if test $have_getaddrinfo = yes 11910then 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking getaddrinfo bug" >&5 11912$as_echo_n "checking getaddrinfo bug... " >&6; } 11913 if ${ac_cv_buggy_getaddrinfo+:} false; then : 11914 $as_echo_n "(cached) " >&6 11915else 11916 if test "$cross_compiling" = yes; then : 11917 11918if test "${enable_ipv6+set}" = set; then 11919 ac_cv_buggy_getaddrinfo="no -- configured with --(en|dis)able-ipv6" 11920else 11921 ac_cv_buggy_getaddrinfo=yes 11922fi 11923else 11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11925/* end confdefs.h. */ 11926 11927#include <stdio.h> 11928#include <sys/types.h> 11929#include <netdb.h> 11930#include <string.h> 11931#include <sys/socket.h> 11932#include <netinet/in.h> 11933 11934int main() 11935{ 11936 int passive, gaierr, inet4 = 0, inet6 = 0; 11937 struct addrinfo hints, *ai, *aitop; 11938 char straddr[INET6_ADDRSTRLEN], strport[16]; 11939 11940 for (passive = 0; passive <= 1; passive++) { 11941 memset(&hints, 0, sizeof(hints)); 11942 hints.ai_family = AF_UNSPEC; 11943 hints.ai_flags = passive ? AI_PASSIVE : 0; 11944 hints.ai_socktype = SOCK_STREAM; 11945 hints.ai_protocol = IPPROTO_TCP; 11946 if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) { 11947 (void)gai_strerror(gaierr); 11948 goto bad; 11949 } 11950 for (ai = aitop; ai; ai = ai->ai_next) { 11951 if (ai->ai_addr == NULL || 11952 ai->ai_addrlen == 0 || 11953 getnameinfo(ai->ai_addr, ai->ai_addrlen, 11954 straddr, sizeof(straddr), strport, sizeof(strport), 11955 NI_NUMERICHOST|NI_NUMERICSERV) != 0) { 11956 goto bad; 11957 } 11958 switch (ai->ai_family) { 11959 case AF_INET: 11960 if (strcmp(strport, "54321") != 0) { 11961 goto bad; 11962 } 11963 if (passive) { 11964 if (strcmp(straddr, "0.0.0.0") != 0) { 11965 goto bad; 11966 } 11967 } else { 11968 if (strcmp(straddr, "127.0.0.1") != 0) { 11969 goto bad; 11970 } 11971 } 11972 inet4++; 11973 break; 11974 case AF_INET6: 11975 if (strcmp(strport, "54321") != 0) { 11976 goto bad; 11977 } 11978 if (passive) { 11979 if (strcmp(straddr, "::") != 0) { 11980 goto bad; 11981 } 11982 } else { 11983 if (strcmp(straddr, "::1") != 0) { 11984 goto bad; 11985 } 11986 } 11987 inet6++; 11988 break; 11989 case AF_UNSPEC: 11990 goto bad; 11991 break; 11992 default: 11993 /* another family support? */ 11994 break; 11995 } 11996 } 11997 freeaddrinfo(aitop); 11998 aitop = NULL; 11999 } 12000 12001 if (!(inet4 == 0 || inet4 == 2)) 12002 goto bad; 12003 if (!(inet6 == 0 || inet6 == 2)) 12004 goto bad; 12005 12006 if (aitop) 12007 freeaddrinfo(aitop); 12008 return 0; 12009 12010 bad: 12011 if (aitop) 12012 freeaddrinfo(aitop); 12013 return 1; 12014} 12015 12016_ACEOF 12017if ac_fn_c_try_run "$LINENO"; then : 12018 ac_cv_buggy_getaddrinfo=no 12019else 12020 ac_cv_buggy_getaddrinfo=yes 12021fi 12022rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12023 conftest.$ac_objext conftest.beam conftest.$ac_ext 12024fi 12025 12026fi 12027 12028fi 12029 12030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_buggy_getaddrinfo" >&5 12031$as_echo "$ac_cv_buggy_getaddrinfo" >&6; } 12032 12033if test $have_getaddrinfo = no -o "$ac_cv_buggy_getaddrinfo" = yes 12034then 12035 if test $ipv6 = yes 12036 then 12037 echo 'Fatal: You must get working getaddrinfo() function.' 12038 echo ' or you can specify "--disable-ipv6"'. 12039 exit 1 12040 fi 12041else 12042 12043$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h 12044 12045fi 12046 12047for ac_func in getnameinfo 12048do : 12049 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo" 12050if test "x$ac_cv_func_getnameinfo" = xyes; then : 12051 cat >>confdefs.h <<_ACEOF 12052#define HAVE_GETNAMEINFO 1 12053_ACEOF 12054 12055fi 12056done 12057 12058 12059# checks for structures 12060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 12061$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12062if ${ac_cv_header_time+:} false; then : 12063 $as_echo_n "(cached) " >&6 12064else 12065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12066/* end confdefs.h. */ 12067#include <sys/types.h> 12068#include <sys/time.h> 12069#include <time.h> 12070 12071int 12072main () 12073{ 12074if ((struct tm *) 0) 12075return 0; 12076 ; 12077 return 0; 12078} 12079_ACEOF 12080if ac_fn_c_try_compile "$LINENO"; then : 12081 ac_cv_header_time=yes 12082else 12083 ac_cv_header_time=no 12084fi 12085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12086fi 12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 12088$as_echo "$ac_cv_header_time" >&6; } 12089if test $ac_cv_header_time = yes; then 12090 12091$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 12092 12093fi 12094 12095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 12096$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 12097if ${ac_cv_struct_tm+:} false; then : 12098 $as_echo_n "(cached) " >&6 12099else 12100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12101/* end confdefs.h. */ 12102#include <sys/types.h> 12103#include <time.h> 12104 12105int 12106main () 12107{ 12108struct tm tm; 12109 int *p = &tm.tm_sec; 12110 return !p; 12111 ; 12112 return 0; 12113} 12114_ACEOF 12115if ac_fn_c_try_compile "$LINENO"; then : 12116 ac_cv_struct_tm=time.h 12117else 12118 ac_cv_struct_tm=sys/time.h 12119fi 12120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12121fi 12122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 12123$as_echo "$ac_cv_struct_tm" >&6; } 12124if test $ac_cv_struct_tm = sys/time.h; then 12125 12126$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 12127 12128fi 12129 12130ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 12131#include <$ac_cv_struct_tm> 12132 12133" 12134if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then : 12135 12136cat >>confdefs.h <<_ACEOF 12137#define HAVE_STRUCT_TM_TM_ZONE 1 12138_ACEOF 12139 12140 12141fi 12142 12143if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 12144 12145$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 12146 12147else 12148 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 12149" 12150if test "x$ac_cv_have_decl_tzname" = xyes; then : 12151 ac_have_decl=1 12152else 12153 ac_have_decl=0 12154fi 12155 12156cat >>confdefs.h <<_ACEOF 12157#define HAVE_DECL_TZNAME $ac_have_decl 12158_ACEOF 12159 12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 12161$as_echo_n "checking for tzname... " >&6; } 12162if ${ac_cv_var_tzname+:} false; then : 12163 $as_echo_n "(cached) " >&6 12164else 12165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12166/* end confdefs.h. */ 12167#include <time.h> 12168#if !HAVE_DECL_TZNAME 12169extern char *tzname[]; 12170#endif 12171 12172int 12173main () 12174{ 12175return tzname[0][0]; 12176 ; 12177 return 0; 12178} 12179_ACEOF 12180if ac_fn_c_try_link "$LINENO"; then : 12181 ac_cv_var_tzname=yes 12182else 12183 ac_cv_var_tzname=no 12184fi 12185rm -f core conftest.err conftest.$ac_objext \ 12186 conftest$ac_exeext conftest.$ac_ext 12187fi 12188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 12189$as_echo "$ac_cv_var_tzname" >&6; } 12190 if test $ac_cv_var_tzname = yes; then 12191 12192$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 12193 12194 fi 12195fi 12196 12197ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" 12198if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then : 12199 12200cat >>confdefs.h <<_ACEOF 12201#define HAVE_STRUCT_STAT_ST_RDEV 1 12202_ACEOF 12203 12204 12205fi 12206 12207ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" 12208if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then : 12209 12210cat >>confdefs.h <<_ACEOF 12211#define HAVE_STRUCT_STAT_ST_BLKSIZE 1 12212_ACEOF 12213 12214 12215fi 12216 12217ac_fn_c_check_member "$LINENO" "struct stat" "st_flags" "ac_cv_member_struct_stat_st_flags" "$ac_includes_default" 12218if test "x$ac_cv_member_struct_stat_st_flags" = xyes; then : 12219 12220cat >>confdefs.h <<_ACEOF 12221#define HAVE_STRUCT_STAT_ST_FLAGS 1 12222_ACEOF 12223 12224 12225fi 12226 12227ac_fn_c_check_member "$LINENO" "struct stat" "st_gen" "ac_cv_member_struct_stat_st_gen" "$ac_includes_default" 12228if test "x$ac_cv_member_struct_stat_st_gen" = xyes; then : 12229 12230cat >>confdefs.h <<_ACEOF 12231#define HAVE_STRUCT_STAT_ST_GEN 1 12232_ACEOF 12233 12234 12235fi 12236 12237ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtime" "ac_cv_member_struct_stat_st_birthtime" "$ac_includes_default" 12238if test "x$ac_cv_member_struct_stat_st_birthtime" = xyes; then : 12239 12240cat >>confdefs.h <<_ACEOF 12241#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1 12242_ACEOF 12243 12244 12245fi 12246 12247ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" 12248if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then : 12249 12250cat >>confdefs.h <<_ACEOF 12251#define HAVE_STRUCT_STAT_ST_BLOCKS 1 12252_ACEOF 12253 12254 12255fi 12256 12257 12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for time.h that defines altzone" >&5 12259$as_echo_n "checking for time.h that defines altzone... " >&6; } 12260if ${ac_cv_header_time_altzone+:} false; then : 12261 $as_echo_n "(cached) " >&6 12262else 12263 12264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12265/* end confdefs.h. */ 12266#include <time.h> 12267int 12268main () 12269{ 12270return altzone; 12271 ; 12272 return 0; 12273} 12274_ACEOF 12275if ac_fn_c_try_compile "$LINENO"; then : 12276 ac_cv_header_time_altzone=yes 12277else 12278 ac_cv_header_time_altzone=no 12279fi 12280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12281 12282fi 12283 12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time_altzone" >&5 12285$as_echo "$ac_cv_header_time_altzone" >&6; } 12286if test $ac_cv_header_time_altzone = yes; then 12287 12288$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 12289 12290fi 12291 12292was_it_defined=no 12293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/select.h and sys/time.h may both be included" >&5 12294$as_echo_n "checking whether sys/select.h and sys/time.h may both be included... " >&6; } 12295cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12296/* end confdefs.h. */ 12297 12298#include <sys/types.h> 12299#include <sys/select.h> 12300#include <sys/time.h> 12301 12302int 12303main () 12304{ 12305; 12306 ; 12307 return 0; 12308} 12309_ACEOF 12310if ac_fn_c_try_compile "$LINENO"; then : 12311 12312 12313$as_echo "#define SYS_SELECT_WITH_SYS_TIME 1" >>confdefs.h 12314 12315 was_it_defined=yes 12316 12317fi 12318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $was_it_defined" >&5 12320$as_echo "$was_it_defined" >&6; } 12321 12322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for addrinfo" >&5 12323$as_echo_n "checking for addrinfo... " >&6; } 12324if ${ac_cv_struct_addrinfo+:} false; then : 12325 $as_echo_n "(cached) " >&6 12326else 12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12328/* end confdefs.h. */ 12329#include <netdb.h> 12330int 12331main () 12332{ 12333struct addrinfo a 12334 ; 12335 return 0; 12336} 12337_ACEOF 12338if ac_fn_c_try_compile "$LINENO"; then : 12339 ac_cv_struct_addrinfo=yes 12340else 12341 ac_cv_struct_addrinfo=no 12342fi 12343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12344fi 12345 12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5 12347$as_echo "$ac_cv_struct_addrinfo" >&6; } 12348if test $ac_cv_struct_addrinfo = yes; then 12349 12350$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h 12351 12352fi 12353 12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_storage" >&5 12355$as_echo_n "checking for sockaddr_storage... " >&6; } 12356if ${ac_cv_struct_sockaddr_storage+:} false; then : 12357 $as_echo_n "(cached) " >&6 12358else 12359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12360/* end confdefs.h. */ 12361 12362# include <sys/types.h> 12363# include <sys/socket.h> 12364int 12365main () 12366{ 12367struct sockaddr_storage s 12368 ; 12369 return 0; 12370} 12371_ACEOF 12372if ac_fn_c_try_compile "$LINENO"; then : 12373 ac_cv_struct_sockaddr_storage=yes 12374else 12375 ac_cv_struct_sockaddr_storage=no 12376fi 12377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12378fi 12379 12380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5 12381$as_echo "$ac_cv_struct_sockaddr_storage" >&6; } 12382if test $ac_cv_struct_sockaddr_storage = yes; then 12383 12384$as_echo "#define HAVE_SOCKADDR_STORAGE 1" >>confdefs.h 12385 12386fi 12387 12388# checks for compiler characteristics 12389 12390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5 12391$as_echo_n "checking whether char is unsigned... " >&6; } 12392if ${ac_cv_c_char_unsigned+:} false; then : 12393 $as_echo_n "(cached) " >&6 12394else 12395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12396/* end confdefs.h. */ 12397$ac_includes_default 12398int 12399main () 12400{ 12401static int test_array [1 - 2 * !(((char) -1) < 0)]; 12402test_array [0] = 0; 12403return test_array [0]; 12404 12405 ; 12406 return 0; 12407} 12408_ACEOF 12409if ac_fn_c_try_compile "$LINENO"; then : 12410 ac_cv_c_char_unsigned=no 12411else 12412 ac_cv_c_char_unsigned=yes 12413fi 12414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12415fi 12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5 12417$as_echo "$ac_cv_c_char_unsigned" >&6; } 12418if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then 12419 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h 12420 12421fi 12422 12423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12424$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12425if ${ac_cv_c_const+:} false; then : 12426 $as_echo_n "(cached) " >&6 12427else 12428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12429/* end confdefs.h. */ 12430 12431int 12432main () 12433{ 12434 12435#ifndef __cplusplus 12436 /* Ultrix mips cc rejects this sort of thing. */ 12437 typedef int charset[2]; 12438 const charset cs = { 0, 0 }; 12439 /* SunOS 4.1.1 cc rejects this. */ 12440 char const *const *pcpcc; 12441 char **ppc; 12442 /* NEC SVR4.0.2 mips cc rejects this. */ 12443 struct point {int x, y;}; 12444 static struct point const zero = {0,0}; 12445 /* AIX XL C 1.02.0.0 rejects this. 12446 It does not let you subtract one const X* pointer from another in 12447 an arm of an if-expression whose if-part is not a constant 12448 expression */ 12449 const char *g = "string"; 12450 pcpcc = &g + (g ? g-g : 0); 12451 /* HPUX 7.0 cc rejects these. */ 12452 ++pcpcc; 12453 ppc = (char**) pcpcc; 12454 pcpcc = (char const *const *) ppc; 12455 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12456 char tx; 12457 char *t = &tx; 12458 char const *s = 0 ? (char *) 0 : (char const *) 0; 12459 12460 *t++ = 0; 12461 if (s) return 0; 12462 } 12463 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12464 int x[] = {25, 17}; 12465 const int *foo = &x[0]; 12466 ++foo; 12467 } 12468 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12469 typedef const int *iptr; 12470 iptr p = 0; 12471 ++p; 12472 } 12473 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12474 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12475 struct s { int j; const int *ap[3]; } bx; 12476 struct s *b = &bx; b->j = 5; 12477 } 12478 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12479 const int foo = 10; 12480 if (!foo) return 0; 12481 } 12482 return !cs[0] && !zero.x; 12483#endif 12484 12485 ; 12486 return 0; 12487} 12488_ACEOF 12489if ac_fn_c_try_compile "$LINENO"; then : 12490 ac_cv_c_const=yes 12491else 12492 ac_cv_c_const=no 12493fi 12494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12495fi 12496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12497$as_echo "$ac_cv_c_const" >&6; } 12498if test $ac_cv_c_const = no; then 12499 12500$as_echo "#define const /**/" >>confdefs.h 12501 12502fi 12503 12504 12505works=no 12506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 12507$as_echo_n "checking for working volatile... " >&6; } 12508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12509/* end confdefs.h. */ 12510 12511int 12512main () 12513{ 12514volatile int x; x = 0; 12515 ; 12516 return 0; 12517} 12518_ACEOF 12519if ac_fn_c_try_compile "$LINENO"; then : 12520 works=yes 12521else 12522 12523$as_echo "#define volatile /**/" >>confdefs.h 12524 12525 12526fi 12527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 12529$as_echo "$works" >&6; } 12530 12531works=no 12532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working signed char" >&5 12533$as_echo_n "checking for working signed char... " >&6; } 12534cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12535/* end confdefs.h. */ 12536 12537int 12538main () 12539{ 12540signed char c; 12541 ; 12542 return 0; 12543} 12544_ACEOF 12545if ac_fn_c_try_compile "$LINENO"; then : 12546 works=yes 12547else 12548 12549$as_echo "#define signed /**/" >>confdefs.h 12550 12551 12552fi 12553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 12555$as_echo "$works" >&6; } 12556 12557have_prototypes=no 12558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for prototypes" >&5 12559$as_echo_n "checking for prototypes... " >&6; } 12560cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12561/* end confdefs.h. */ 12562int foo(int x) { return 0; } 12563int 12564main () 12565{ 12566return foo(10); 12567 ; 12568 return 0; 12569} 12570_ACEOF 12571if ac_fn_c_try_compile "$LINENO"; then : 12572 12573$as_echo "#define HAVE_PROTOTYPES 1" >>confdefs.h 12574 12575 have_prototypes=yes 12576fi 12577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_prototypes" >&5 12579$as_echo "$have_prototypes" >&6; } 12580 12581works=no 12582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for variable length prototypes and stdarg.h" >&5 12583$as_echo_n "checking for variable length prototypes and stdarg.h... " >&6; } 12584cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12585/* end confdefs.h. */ 12586 12587#include <stdarg.h> 12588int foo(int x, ...) { 12589 va_list va; 12590 va_start(va, x); 12591 va_arg(va, int); 12592 va_arg(va, char *); 12593 va_arg(va, double); 12594 return 0; 12595} 12596 12597int 12598main () 12599{ 12600return foo(10, "", 3.14); 12601 ; 12602 return 0; 12603} 12604_ACEOF 12605if ac_fn_c_try_compile "$LINENO"; then : 12606 12607 12608$as_echo "#define HAVE_STDARG_PROTOTYPES 1" >>confdefs.h 12609 12610 works=yes 12611 12612fi 12613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $works" >&5 12615$as_echo "$works" >&6; } 12616 12617# check for socketpair 12618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair" >&5 12619$as_echo_n "checking for socketpair... " >&6; } 12620cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12621/* end confdefs.h. */ 12622 12623#include <sys/types.h> 12624#include <sys/socket.h> 12625 12626int 12627main () 12628{ 12629void *x=socketpair 12630 ; 12631 return 0; 12632} 12633_ACEOF 12634if ac_fn_c_try_compile "$LINENO"; then : 12635 12636$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h 12637 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12639$as_echo "yes" >&6; } 12640else 12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12642$as_echo "no" >&6; } 12643 12644fi 12645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12646 12647# check if sockaddr has sa_len member 12648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if sockaddr has sa_len member" >&5 12649$as_echo_n "checking if sockaddr has sa_len member... " >&6; } 12650cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12651/* end confdefs.h. */ 12652#include <sys/types.h> 12653#include <sys/socket.h> 12654int 12655main () 12656{ 12657struct sockaddr x; 12658x.sa_len = 0; 12659 ; 12660 return 0; 12661} 12662_ACEOF 12663if ac_fn_c_try_compile "$LINENO"; then : 12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12665$as_echo "yes" >&6; } 12666 12667$as_echo "#define HAVE_SOCKADDR_SA_LEN 1" >>confdefs.h 12668 12669else 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12671$as_echo "no" >&6; } 12672 12673fi 12674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12675 12676va_list_is_array=no 12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether va_list is an array" >&5 12678$as_echo_n "checking whether va_list is an array... " >&6; } 12679cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12680/* end confdefs.h. */ 12681 12682#ifdef HAVE_STDARG_PROTOTYPES 12683#include <stdarg.h> 12684#else 12685#include <varargs.h> 12686#endif 12687 12688int 12689main () 12690{ 12691va_list list1, list2; list1 = list2; 12692 ; 12693 return 0; 12694} 12695_ACEOF 12696if ac_fn_c_try_compile "$LINENO"; then : 12697 12698else 12699 12700 12701$as_echo "#define VA_LIST_IS_ARRAY 1" >>confdefs.h 12702 12703 va_list_is_array=yes 12704 12705fi 12706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $va_list_is_array" >&5 12708$as_echo "$va_list_is_array" >&6; } 12709 12710# sigh -- gethostbyname_r is a mess; it can have 3, 5 or 6 arguments :-( 12711 12712 12713ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r" 12714if test "x$ac_cv_func_gethostbyname_r" = xyes; then : 12715 12716 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 12717 12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 6 args" >&5 12719$as_echo_n "checking gethostbyname_r with 6 args... " >&6; } 12720 OLD_CFLAGS=$CFLAGS 12721 CFLAGS="$CFLAGS $MY_CPPFLAGS $MY_THREAD_CPPFLAGS $MY_CFLAGS" 12722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12723/* end confdefs.h. */ 12724 12725# include <netdb.h> 12726 12727int 12728main () 12729{ 12730 12731 char *name; 12732 struct hostent *he, *res; 12733 char buffer[2048]; 12734 int buflen = 2048; 12735 int h_errnop; 12736 12737 (void) gethostbyname_r(name, he, buffer, buflen, &res, &h_errnop) 12738 12739 ; 12740 return 0; 12741} 12742_ACEOF 12743if ac_fn_c_try_compile "$LINENO"; then : 12744 12745 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 12746 12747 12748$as_echo "#define HAVE_GETHOSTBYNAME_R_6_ARG 1" >>confdefs.h 12749 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12751$as_echo "yes" >&6; } 12752 12753else 12754 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12756$as_echo "no" >&6; } 12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 5 args" >&5 12758$as_echo_n "checking gethostbyname_r with 5 args... " >&6; } 12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12760/* end confdefs.h. */ 12761 12762# include <netdb.h> 12763 12764int 12765main () 12766{ 12767 12768 char *name; 12769 struct hostent *he; 12770 char buffer[2048]; 12771 int buflen = 2048; 12772 int h_errnop; 12773 12774 (void) gethostbyname_r(name, he, buffer, buflen, &h_errnop) 12775 12776 ; 12777 return 0; 12778} 12779_ACEOF 12780if ac_fn_c_try_compile "$LINENO"; then : 12781 12782 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 12783 12784 12785$as_echo "#define HAVE_GETHOSTBYNAME_R_5_ARG 1" >>confdefs.h 12786 12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12788$as_echo "yes" >&6; } 12789 12790else 12791 12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12793$as_echo "no" >&6; } 12794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gethostbyname_r with 3 args" >&5 12795$as_echo_n "checking gethostbyname_r with 3 args... " >&6; } 12796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12797/* end confdefs.h. */ 12798 12799# include <netdb.h> 12800 12801int 12802main () 12803{ 12804 12805 char *name; 12806 struct hostent *he; 12807 struct hostent_data data; 12808 12809 (void) gethostbyname_r(name, he, &data); 12810 12811 ; 12812 return 0; 12813} 12814_ACEOF 12815if ac_fn_c_try_compile "$LINENO"; then : 12816 12817 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h 12818 12819 12820$as_echo "#define HAVE_GETHOSTBYNAME_R_3_ARG 1" >>confdefs.h 12821 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12823$as_echo "yes" >&6; } 12824 12825else 12826 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12828$as_echo "no" >&6; } 12829 12830fi 12831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12832 12833fi 12834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12835 12836fi 12837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12838 CFLAGS=$OLD_CFLAGS 12839 12840else 12841 12842 for ac_func in gethostbyname 12843do : 12844 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 12845if test "x$ac_cv_func_gethostbyname" = xyes; then : 12846 cat >>confdefs.h <<_ACEOF 12847#define HAVE_GETHOSTBYNAME 1 12848_ACEOF 12849 12850fi 12851done 12852 12853 12854fi 12855 12856 12857 12858 12859 12860 12861 12862# checks for system services 12863# (none yet) 12864 12865# Linux requires this for correct f.p. operations 12866ac_fn_c_check_func "$LINENO" "__fpu_control" "ac_cv_func___fpu_control" 12867if test "x$ac_cv_func___fpu_control" = xyes; then : 12868 12869else 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __fpu_control in -lieee" >&5 12871$as_echo_n "checking for __fpu_control in -lieee... " >&6; } 12872if ${ac_cv_lib_ieee___fpu_control+:} false; then : 12873 $as_echo_n "(cached) " >&6 12874else 12875 ac_check_lib_save_LIBS=$LIBS 12876LIBS="-lieee $LIBS" 12877cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12878/* end confdefs.h. */ 12879 12880/* Override any GCC internal prototype to avoid an error. 12881 Use char because int might match the return type of a GCC 12882 builtin and then its argument prototype would still apply. */ 12883#ifdef __cplusplus 12884extern "C" 12885#endif 12886char __fpu_control (); 12887int 12888main () 12889{ 12890return __fpu_control (); 12891 ; 12892 return 0; 12893} 12894_ACEOF 12895if ac_fn_c_try_link "$LINENO"; then : 12896 ac_cv_lib_ieee___fpu_control=yes 12897else 12898 ac_cv_lib_ieee___fpu_control=no 12899fi 12900rm -f core conftest.err conftest.$ac_objext \ 12901 conftest$ac_exeext conftest.$ac_ext 12902LIBS=$ac_check_lib_save_LIBS 12903fi 12904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ieee___fpu_control" >&5 12905$as_echo "$ac_cv_lib_ieee___fpu_control" >&6; } 12906if test "x$ac_cv_lib_ieee___fpu_control" = xyes; then : 12907 cat >>confdefs.h <<_ACEOF 12908#define HAVE_LIBIEEE 1 12909_ACEOF 12910 12911 LIBS="-lieee $LIBS" 12912 12913fi 12914 12915 12916fi 12917 12918 12919# Check for --with-fpectl 12920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-fpectl" >&5 12921$as_echo_n "checking for --with-fpectl... " >&6; } 12922 12923# Check whether --with-fpectl was given. 12924if test "${with_fpectl+set}" = set; then : 12925 withval=$with_fpectl; 12926if test "$withval" != no 12927then 12928 12929$as_echo "#define WANT_SIGFPE_HANDLER 1" >>confdefs.h 12930 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12932$as_echo "yes" >&6; } 12933else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12934$as_echo "no" >&6; } 12935fi 12936else 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12938$as_echo "no" >&6; } 12939fi 12940 12941 12942# check for --with-libm=... 12943 12944case $ac_sys_system in 12945Darwin) ;; 12946BeOS) ;; 12947*) LIBM=-lm 12948esac 12949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libm=STRING" >&5 12950$as_echo_n "checking for --with-libm=STRING... " >&6; } 12951 12952# Check whether --with-libm was given. 12953if test "${with_libm+set}" = set; then : 12954 withval=$with_libm; 12955if test "$withval" = no 12956then LIBM= 12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBM empty" >&5 12958$as_echo "force LIBM empty" >&6; } 12959elif test "$withval" != yes 12960then LIBM=$withval 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBM=\"$withval\"" >&5 12962$as_echo "set LIBM=\"$withval\"" >&6; } 12963else as_fn_error $? "proper usage is --with-libm=STRING" "$LINENO" 5 12964fi 12965else 12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBM=\"$LIBM\"" >&5 12967$as_echo "default LIBM=\"$LIBM\"" >&6; } 12968fi 12969 12970 12971# check for --with-libc=... 12972 12973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-libc=STRING" >&5 12974$as_echo_n "checking for --with-libc=STRING... " >&6; } 12975 12976# Check whether --with-libc was given. 12977if test "${with_libc+set}" = set; then : 12978 withval=$with_libc; 12979if test "$withval" = no 12980then LIBC= 12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: force LIBC empty" >&5 12982$as_echo "force LIBC empty" >&6; } 12983elif test "$withval" != yes 12984then LIBC=$withval 12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set LIBC=\"$withval\"" >&5 12986$as_echo "set LIBC=\"$withval\"" >&6; } 12987else as_fn_error $? "proper usage is --with-libc=STRING" "$LINENO" 5 12988fi 12989else 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: default LIBC=\"$LIBC\"" >&5 12991$as_echo "default LIBC=\"$LIBC\"" >&6; } 12992fi 12993 12994 12995# ************************************************** 12996# * Check for various properties of floating point * 12997# ************************************************** 12998 12999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are little-endian IEEE 754 binary64" >&5 13000$as_echo_n "checking whether C doubles are little-endian IEEE 754 binary64... " >&6; } 13001if ${ac_cv_little_endian_double+:} false; then : 13002 $as_echo_n "(cached) " >&6 13003else 13004 13005if test "$cross_compiling" = yes; then : 13006 ac_cv_little_endian_double=no 13007else 13008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13009/* end confdefs.h. */ 13010 13011#include <string.h> 13012int main() { 13013 double x = 9006104071832581.0; 13014 if (memcmp(&x, "\x05\x04\x03\x02\x01\xff\x3f\x43", 8) == 0) 13015 return 0; 13016 else 13017 return 1; 13018} 13019 13020_ACEOF 13021if ac_fn_c_try_run "$LINENO"; then : 13022 ac_cv_little_endian_double=yes 13023else 13024 ac_cv_little_endian_double=no 13025fi 13026rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13027 conftest.$ac_objext conftest.beam conftest.$ac_ext 13028fi 13029 13030fi 13031 13032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_little_endian_double" >&5 13033$as_echo "$ac_cv_little_endian_double" >&6; } 13034if test "$ac_cv_little_endian_double" = yes 13035then 13036 13037$as_echo "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h 13038 13039fi 13040 13041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are big-endian IEEE 754 binary64" >&5 13042$as_echo_n "checking whether C doubles are big-endian IEEE 754 binary64... " >&6; } 13043if ${ac_cv_big_endian_double+:} false; then : 13044 $as_echo_n "(cached) " >&6 13045else 13046 13047if test "$cross_compiling" = yes; then : 13048 ac_cv_big_endian_double=no 13049else 13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13051/* end confdefs.h. */ 13052 13053#include <string.h> 13054int main() { 13055 double x = 9006104071832581.0; 13056 if (memcmp(&x, "\x43\x3f\xff\x01\x02\x03\x04\x05", 8) == 0) 13057 return 0; 13058 else 13059 return 1; 13060} 13061 13062_ACEOF 13063if ac_fn_c_try_run "$LINENO"; then : 13064 ac_cv_big_endian_double=yes 13065else 13066 ac_cv_big_endian_double=no 13067fi 13068rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13069 conftest.$ac_objext conftest.beam conftest.$ac_ext 13070fi 13071 13072fi 13073 13074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_big_endian_double" >&5 13075$as_echo "$ac_cv_big_endian_double" >&6; } 13076if test "$ac_cv_big_endian_double" = yes 13077then 13078 13079$as_echo "#define DOUBLE_IS_BIG_ENDIAN_IEEE754 1" >>confdefs.h 13080 13081fi 13082 13083# Some ARM platforms use a mixed-endian representation for doubles. 13084# While Python doesn't currently have full support for these platforms 13085# (see e.g., issue 1762561), we can at least make sure that float <-> string 13086# conversions work. 13087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C doubles are ARM mixed-endian IEEE 754 binary64" >&5 13088$as_echo_n "checking whether C doubles are ARM mixed-endian IEEE 754 binary64... " >&6; } 13089if ${ac_cv_mixed_endian_double+:} false; then : 13090 $as_echo_n "(cached) " >&6 13091else 13092 13093if test "$cross_compiling" = yes; then : 13094 ac_cv_mixed_endian_double=no 13095else 13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13097/* end confdefs.h. */ 13098 13099#include <string.h> 13100int main() { 13101 double x = 9006104071832581.0; 13102 if (memcmp(&x, "\x01\xff\x3f\x43\x05\x04\x03\x02", 8) == 0) 13103 return 0; 13104 else 13105 return 1; 13106} 13107 13108_ACEOF 13109if ac_fn_c_try_run "$LINENO"; then : 13110 ac_cv_mixed_endian_double=yes 13111else 13112 ac_cv_mixed_endian_double=no 13113fi 13114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13115 conftest.$ac_objext conftest.beam conftest.$ac_ext 13116fi 13117 13118fi 13119 13120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mixed_endian_double" >&5 13121$as_echo "$ac_cv_mixed_endian_double" >&6; } 13122if test "$ac_cv_mixed_endian_double" = yes 13123then 13124 13125$as_echo "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h 13126 13127fi 13128 13129# The short float repr introduced in Python 3.1 requires the 13130# correctly-rounded string <-> double conversion functions from 13131# Python/dtoa.c, which in turn require that the FPU uses 53-bit 13132# rounding; this is a problem on x86, where the x87 FPU has a default 13133# rounding precision of 64 bits. For gcc/x86, we can fix this by 13134# using inline assembler to get and set the x87 FPU control word. 13135 13136# This inline assembler syntax may also work for suncc and icc, 13137# so we try it on all platforms. 13138 13139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use gcc inline assembler to get and set x87 control word" >&5 13140$as_echo_n "checking whether we can use gcc inline assembler to get and set x87 control word... " >&6; } 13141cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13142/* end confdefs.h. */ 13143 13144int 13145main () 13146{ 13147 13148 unsigned short cw; 13149 __asm__ __volatile__ ("fnstcw %0" : "=m" (cw)); 13150 __asm__ __volatile__ ("fldcw %0" : : "m" (cw)); 13151 13152 ; 13153 return 0; 13154} 13155_ACEOF 13156if ac_fn_c_try_link "$LINENO"; then : 13157 have_gcc_asm_for_x87=yes 13158else 13159 have_gcc_asm_for_x87=no 13160fi 13161rm -f core conftest.err conftest.$ac_objext \ 13162 conftest$ac_exeext conftest.$ac_ext 13163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gcc_asm_for_x87" >&5 13164$as_echo "$have_gcc_asm_for_x87" >&6; } 13165if test "$have_gcc_asm_for_x87" = yes 13166then 13167 13168$as_echo "#define HAVE_GCC_ASM_FOR_X87 1" >>confdefs.h 13169 13170fi 13171 13172# Detect whether system arithmetic is subject to x87-style double 13173# rounding issues. The result of this test has little meaning on non 13174# IEEE 754 platforms. On IEEE 754, test should return 1 if rounding 13175# mode is round-to-nearest and double rounding issues are present, and 13176# 0 otherwise. See http://bugs.python.org/issue2937 for more info. 13177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x87-style double rounding" >&5 13178$as_echo_n "checking for x87-style double rounding... " >&6; } 13179# $BASECFLAGS may affect the result 13180ac_save_cc="$CC" 13181CC="$CC $BASECFLAGS" 13182if test "$cross_compiling" = yes; then : 13183 ac_cv_x87_double_rounding=no 13184else 13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13186/* end confdefs.h. */ 13187 13188#include <stdlib.h> 13189#include <math.h> 13190int main() { 13191 volatile double x, y, z; 13192 /* 1./(1-2**-53) -> 1+2**-52 (correct), 1.0 (double rounding) */ 13193 x = 0.99999999999999989; /* 1-2**-53 */ 13194 y = 1./x; 13195 if (y != 1.) 13196 exit(0); 13197 /* 1e16+2.99999 -> 1e16+2. (correct), 1e16+4. (double rounding) */ 13198 x = 1e16; 13199 y = 2.99999; 13200 z = x + y; 13201 if (z != 1e16+4.) 13202 exit(0); 13203 /* both tests show evidence of double rounding */ 13204 exit(1); 13205} 13206 13207_ACEOF 13208if ac_fn_c_try_run "$LINENO"; then : 13209 ac_cv_x87_double_rounding=no 13210else 13211 ac_cv_x87_double_rounding=yes 13212fi 13213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13214 conftest.$ac_objext conftest.beam conftest.$ac_ext 13215fi 13216 13217CC="$ac_save_cc" 13218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x87_double_rounding" >&5 13219$as_echo "$ac_cv_x87_double_rounding" >&6; } 13220if test "$ac_cv_x87_double_rounding" = yes 13221then 13222 13223$as_echo "#define X87_DOUBLE_ROUNDING 1" >>confdefs.h 13224 13225fi 13226 13227# ************************************ 13228# * Check for mathematical functions * 13229# ************************************ 13230 13231LIBS_SAVE=$LIBS 13232LIBS="$LIBS $LIBM" 13233 13234# On FreeBSD 6.2, it appears that tanh(-0.) returns 0. instead of 13235# -0. on some architectures. 13236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tanh preserves the sign of zero" >&5 13237$as_echo_n "checking whether tanh preserves the sign of zero... " >&6; } 13238if ${ac_cv_tanh_preserves_zero_sign+:} false; then : 13239 $as_echo_n "(cached) " >&6 13240else 13241 13242if test "$cross_compiling" = yes; then : 13243 ac_cv_tanh_preserves_zero_sign=no 13244else 13245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13246/* end confdefs.h. */ 13247 13248#include <math.h> 13249#include <stdlib.h> 13250int main() { 13251 /* return 0 if either negative zeros don't exist 13252 on this platform or if negative zeros exist 13253 and tanh(-0.) == -0. */ 13254 if (atan2(0., -1.) == atan2(-0., -1.) || 13255 atan2(tanh(-0.), -1.) == atan2(-0., -1.)) exit(0); 13256 else exit(1); 13257} 13258 13259_ACEOF 13260if ac_fn_c_try_run "$LINENO"; then : 13261 ac_cv_tanh_preserves_zero_sign=yes 13262else 13263 ac_cv_tanh_preserves_zero_sign=no 13264fi 13265rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13266 conftest.$ac_objext conftest.beam conftest.$ac_ext 13267fi 13268 13269fi 13270 13271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tanh_preserves_zero_sign" >&5 13272$as_echo "$ac_cv_tanh_preserves_zero_sign" >&6; } 13273if test "$ac_cv_tanh_preserves_zero_sign" = yes 13274then 13275 13276$as_echo "#define TANH_PRESERVES_ZERO_SIGN 1" >>confdefs.h 13277 13278fi 13279 13280for ac_func in acosh asinh atanh copysign erf erfc expm1 finite gamma 13281do : 13282 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13283ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13284if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13285 cat >>confdefs.h <<_ACEOF 13286#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13287_ACEOF 13288 13289fi 13290done 13291 13292for ac_func in hypot lgamma log1p round tgamma 13293do : 13294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13295ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13296if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13297 cat >>confdefs.h <<_ACEOF 13298#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13299_ACEOF 13300 13301fi 13302done 13303 13304ac_fn_c_check_decl "$LINENO" "isinf" "ac_cv_have_decl_isinf" "#include <math.h> 13305" 13306if test "x$ac_cv_have_decl_isinf" = xyes; then : 13307 ac_have_decl=1 13308else 13309 ac_have_decl=0 13310fi 13311 13312cat >>confdefs.h <<_ACEOF 13313#define HAVE_DECL_ISINF $ac_have_decl 13314_ACEOF 13315ac_fn_c_check_decl "$LINENO" "isnan" "ac_cv_have_decl_isnan" "#include <math.h> 13316" 13317if test "x$ac_cv_have_decl_isnan" = xyes; then : 13318 ac_have_decl=1 13319else 13320 ac_have_decl=0 13321fi 13322 13323cat >>confdefs.h <<_ACEOF 13324#define HAVE_DECL_ISNAN $ac_have_decl 13325_ACEOF 13326ac_fn_c_check_decl "$LINENO" "isfinite" "ac_cv_have_decl_isfinite" "#include <math.h> 13327" 13328if test "x$ac_cv_have_decl_isfinite" = xyes; then : 13329 ac_have_decl=1 13330else 13331 ac_have_decl=0 13332fi 13333 13334cat >>confdefs.h <<_ACEOF 13335#define HAVE_DECL_ISFINITE $ac_have_decl 13336_ACEOF 13337 13338 13339LIBS=$LIBS_SAVE 13340 13341# For multiprocessing module, check that sem_open 13342# actually works. For FreeBSD versions <= 7.2, 13343# the kernel module that provides POSIX semaphores 13344# isn't loaded by default, so an attempt to call 13345# sem_open results in a 'Signal 12' error. 13346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether POSIX semaphores are enabled" >&5 13347$as_echo_n "checking whether POSIX semaphores are enabled... " >&6; } 13348if ${ac_cv_posix_semaphores_enabled+:} false; then : 13349 $as_echo_n "(cached) " >&6 13350else 13351 if test "$cross_compiling" = yes; then : 13352 ac_cv_posix_semaphores_enabled=yes 13353else 13354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13355/* end confdefs.h. */ 13356 13357#include <unistd.h> 13358#include <fcntl.h> 13359#include <stdio.h> 13360#include <semaphore.h> 13361#include <sys/stat.h> 13362 13363int main(void) { 13364 sem_t *a = sem_open("/autoconf", O_CREAT, S_IRUSR|S_IWUSR, 0); 13365 if (a == SEM_FAILED) { 13366 perror("sem_open"); 13367 return 1; 13368 } 13369 sem_close(a); 13370 sem_unlink("/autoconf"); 13371 return 0; 13372} 13373 13374_ACEOF 13375if ac_fn_c_try_run "$LINENO"; then : 13376 ac_cv_posix_semaphores_enabled=yes 13377else 13378 ac_cv_posix_semaphores_enabled=no 13379fi 13380rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13381 conftest.$ac_objext conftest.beam conftest.$ac_ext 13382fi 13383 13384 13385fi 13386 13387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_posix_semaphores_enabled" >&5 13388$as_echo "$ac_cv_posix_semaphores_enabled" >&6; } 13389if test $ac_cv_posix_semaphores_enabled = no 13390then 13391 13392$as_echo "#define POSIX_SEMAPHORES_NOT_ENABLED 1" >>confdefs.h 13393 13394fi 13395 13396# Multiprocessing check for broken sem_getvalue 13397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken sem_getvalue" >&5 13398$as_echo_n "checking for broken sem_getvalue... " >&6; } 13399if ${ac_cv_broken_sem_getvalue+:} false; then : 13400 $as_echo_n "(cached) " >&6 13401else 13402 if test "$cross_compiling" = yes; then : 13403 ac_cv_broken_sem_getvalue=yes 13404else 13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13406/* end confdefs.h. */ 13407 13408#include <unistd.h> 13409#include <fcntl.h> 13410#include <stdio.h> 13411#include <semaphore.h> 13412#include <sys/stat.h> 13413 13414int main(void){ 13415 sem_t *a = sem_open("/autocftw", O_CREAT, S_IRUSR|S_IWUSR, 0); 13416 int count; 13417 int res; 13418 if(a==SEM_FAILED){ 13419 perror("sem_open"); 13420 return 1; 13421 13422 } 13423 res = sem_getvalue(a, &count); 13424 sem_close(a); 13425 sem_unlink("/autocftw"); 13426 return res==-1 ? 1 : 0; 13427} 13428 13429_ACEOF 13430if ac_fn_c_try_run "$LINENO"; then : 13431 ac_cv_broken_sem_getvalue=no 13432else 13433 ac_cv_broken_sem_getvalue=yes 13434fi 13435rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13436 conftest.$ac_objext conftest.beam conftest.$ac_ext 13437fi 13438 13439 13440fi 13441 13442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_sem_getvalue" >&5 13443$as_echo "$ac_cv_broken_sem_getvalue" >&6; } 13444if test $ac_cv_broken_sem_getvalue = yes 13445then 13446 13447$as_echo "#define HAVE_BROKEN_SEM_GETVALUE 1" >>confdefs.h 13448 13449fi 13450 13451# determine what size digit to use for Python's longs 13452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking digit size for Python's longs" >&5 13453$as_echo_n "checking digit size for Python's longs... " >&6; } 13454# Check whether --enable-big-digits was given. 13455if test "${enable_big_digits+set}" = set; then : 13456 enableval=$enable_big_digits; case $enable_big_digits in 13457yes) 13458 enable_big_digits=30 ;; 13459no) 13460 enable_big_digits=15 ;; 1346115|30) 13462 ;; 13463*) 13464 as_fn_error $? "bad value $enable_big_digits for --enable-big-digits; value should be 15 or 30" "$LINENO" 5 ;; 13465esac 13466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_big_digits" >&5 13467$as_echo "$enable_big_digits" >&6; } 13468 13469cat >>confdefs.h <<_ACEOF 13470#define PYLONG_BITS_IN_DIGIT $enable_big_digits 13471_ACEOF 13472 13473 13474else 13475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 13476$as_echo "no value specified" >&6; } 13477fi 13478 13479 13480# check for wchar.h 13481ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" 13482if test "x$ac_cv_header_wchar_h" = xyes; then : 13483 13484 13485$as_echo "#define HAVE_WCHAR_H 1" >>confdefs.h 13486 13487 wchar_h="yes" 13488 13489else 13490 wchar_h="no" 13491 13492fi 13493 13494 13495 13496# determine wchar_t size 13497if test "$wchar_h" = yes 13498then 13499 # The cast to long int works around a bug in the HP C Compiler 13500# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 13501# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 13502# This bug is HP SR number 8606223364. 13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 13504$as_echo_n "checking size of wchar_t... " >&6; } 13505if ${ac_cv_sizeof_wchar_t+:} false; then : 13506 $as_echo_n "(cached) " >&6 13507else 13508 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "#include <wchar.h> 13509"; then : 13510 13511else 13512 if test "$ac_cv_type_wchar_t" = yes; then 13513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13515as_fn_error 77 "cannot compute sizeof (wchar_t) 13516See \`config.log' for more details" "$LINENO" 5; } 13517 else 13518 ac_cv_sizeof_wchar_t=0 13519 fi 13520fi 13521 13522fi 13523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 13524$as_echo "$ac_cv_sizeof_wchar_t" >&6; } 13525 13526 13527 13528cat >>confdefs.h <<_ACEOF 13529#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t 13530_ACEOF 13531 13532 13533fi 13534 13535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UCS-4 tcl" >&5 13536$as_echo_n "checking for UCS-4 tcl... " >&6; } 13537have_ucs4_tcl=no 13538cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13539/* end confdefs.h. */ 13540 13541#include <tcl.h> 13542#if TCL_UTF_MAX != 6 13543# error "NOT UCS4_TCL" 13544#endif 13545int 13546main () 13547{ 13548 13549 ; 13550 return 0; 13551} 13552_ACEOF 13553if ac_fn_c_try_compile "$LINENO"; then : 13554 13555 13556$as_echo "#define HAVE_UCS4_TCL 1" >>confdefs.h 13557 13558 have_ucs4_tcl=yes 13559 13560fi 13561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ucs4_tcl" >&5 13563$as_echo "$have_ucs4_tcl" >&6; } 13564 13565# check whether wchar_t is signed or not 13566if test "$wchar_h" = yes 13567then 13568 # check whether wchar_t is signed or not 13569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5 13570$as_echo_n "checking whether wchar_t is signed... " >&6; } 13571 if ${ac_cv_wchar_t_signed+:} false; then : 13572 $as_echo_n "(cached) " >&6 13573else 13574 13575 if test "$cross_compiling" = yes; then : 13576 ac_cv_wchar_t_signed=yes 13577else 13578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13579/* end confdefs.h. */ 13580 13581 #include <wchar.h> 13582 int main() 13583 { 13584 /* Success: exit code 0 */ 13585 exit((((wchar_t) -1) < ((wchar_t) 0)) ? 0 : 1); 13586 } 13587 13588_ACEOF 13589if ac_fn_c_try_run "$LINENO"; then : 13590 ac_cv_wchar_t_signed=yes 13591else 13592 ac_cv_wchar_t_signed=no 13593fi 13594rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13595 conftest.$ac_objext conftest.beam conftest.$ac_ext 13596fi 13597 13598fi 13599 13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_wchar_t_signed" >&5 13601$as_echo "$ac_cv_wchar_t_signed" >&6; } 13602fi 13603 13604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what type to use for unicode" >&5 13605$as_echo_n "checking what type to use for unicode... " >&6; } 13606# Check whether --enable-unicode was given. 13607if test "${enable_unicode+set}" = set; then : 13608 enableval=$enable_unicode; 13609else 13610 enable_unicode=yes 13611fi 13612 13613 13614if test $enable_unicode = yes 13615then 13616 # Without any arguments, Py_UNICODE defaults to two-byte mode 13617 case "$have_ucs4_tcl" in 13618 yes) enable_unicode="ucs4" 13619 ;; 13620 *) enable_unicode="ucs2" 13621 ;; 13622 esac 13623fi 13624 13625 13626case "$enable_unicode" in 13627ucs2) unicode_size="2" 13628 $as_echo "#define Py_UNICODE_SIZE 2" >>confdefs.h 13629 13630 ;; 13631ucs4) unicode_size="4" 13632 $as_echo "#define Py_UNICODE_SIZE 4" >>confdefs.h 13633 13634 ;; 13635no) ;; # To allow --disable-unicode 13636*) as_fn_error $? "invalid value for --enable-unicode. Use either ucs2 or ucs4 (lowercase)." "$LINENO" 5 ;; 13637esac 13638 13639 13640 13641 13642if test "$enable_unicode" = "no" 13643then 13644 UNICODE_OBJS="" 13645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not used" >&5 13646$as_echo "not used" >&6; } 13647else 13648 UNICODE_OBJS="Objects/unicodeobject.o Objects/unicodectype.o" 13649 13650$as_echo "#define Py_USING_UNICODE 1" >>confdefs.h 13651 13652 13653 # wchar_t is only usable if it maps to an unsigned type 13654 if test "$unicode_size" = "$ac_cv_sizeof_wchar_t" \ 13655 -a "$ac_cv_wchar_t_signed" = "no" 13656 then 13657 PY_UNICODE_TYPE="wchar_t" 13658 13659$as_echo "#define HAVE_USABLE_WCHAR_T 1" >>confdefs.h 13660 13661 $as_echo "#define PY_UNICODE_TYPE wchar_t" >>confdefs.h 13662 13663 elif test "$ac_cv_sizeof_short" = "$unicode_size" 13664 then 13665 PY_UNICODE_TYPE="unsigned short" 13666 $as_echo "#define PY_UNICODE_TYPE unsigned short" >>confdefs.h 13667 13668 elif test "$ac_cv_sizeof_long" = "$unicode_size" 13669 then 13670 PY_UNICODE_TYPE="unsigned long" 13671 $as_echo "#define PY_UNICODE_TYPE unsigned long" >>confdefs.h 13672 13673 else 13674 PY_UNICODE_TYPE="no type found" 13675 fi 13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_UNICODE_TYPE" >&5 13677$as_echo "$PY_UNICODE_TYPE" >&6; } 13678fi 13679 13680# check for endianness 13681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 13682$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 13683if ${ac_cv_c_bigendian+:} false; then : 13684 $as_echo_n "(cached) " >&6 13685else 13686 ac_cv_c_bigendian=unknown 13687 # See if we're dealing with a universal compiler. 13688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13689/* end confdefs.h. */ 13690#ifndef __APPLE_CC__ 13691 not a universal capable compiler 13692 #endif 13693 typedef int dummy; 13694 13695_ACEOF 13696if ac_fn_c_try_compile "$LINENO"; then : 13697 13698 # Check for potential -arch flags. It is not universal unless 13699 # there are at least two -arch flags with different values. 13700 ac_arch= 13701 ac_prev= 13702 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 13703 if test -n "$ac_prev"; then 13704 case $ac_word in 13705 i?86 | x86_64 | ppc | ppc64) 13706 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 13707 ac_arch=$ac_word 13708 else 13709 ac_cv_c_bigendian=universal 13710 break 13711 fi 13712 ;; 13713 esac 13714 ac_prev= 13715 elif test "x$ac_word" = "x-arch"; then 13716 ac_prev=arch 13717 fi 13718 done 13719fi 13720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13721 if test $ac_cv_c_bigendian = unknown; then 13722 # See if sys/param.h defines the BYTE_ORDER macro. 13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13724/* end confdefs.h. */ 13725#include <sys/types.h> 13726 #include <sys/param.h> 13727 13728int 13729main () 13730{ 13731#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 13732 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 13733 && LITTLE_ENDIAN) 13734 bogus endian macros 13735 #endif 13736 13737 ; 13738 return 0; 13739} 13740_ACEOF 13741if ac_fn_c_try_compile "$LINENO"; then : 13742 # It does; now see whether it defined to BIG_ENDIAN or not. 13743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13744/* end confdefs.h. */ 13745#include <sys/types.h> 13746 #include <sys/param.h> 13747 13748int 13749main () 13750{ 13751#if BYTE_ORDER != BIG_ENDIAN 13752 not big endian 13753 #endif 13754 13755 ; 13756 return 0; 13757} 13758_ACEOF 13759if ac_fn_c_try_compile "$LINENO"; then : 13760 ac_cv_c_bigendian=yes 13761else 13762 ac_cv_c_bigendian=no 13763fi 13764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13765fi 13766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13767 fi 13768 if test $ac_cv_c_bigendian = unknown; then 13769 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 13770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13771/* end confdefs.h. */ 13772#include <limits.h> 13773 13774int 13775main () 13776{ 13777#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 13778 bogus endian macros 13779 #endif 13780 13781 ; 13782 return 0; 13783} 13784_ACEOF 13785if ac_fn_c_try_compile "$LINENO"; then : 13786 # It does; now see whether it defined to _BIG_ENDIAN or not. 13787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13788/* end confdefs.h. */ 13789#include <limits.h> 13790 13791int 13792main () 13793{ 13794#ifndef _BIG_ENDIAN 13795 not big endian 13796 #endif 13797 13798 ; 13799 return 0; 13800} 13801_ACEOF 13802if ac_fn_c_try_compile "$LINENO"; then : 13803 ac_cv_c_bigendian=yes 13804else 13805 ac_cv_c_bigendian=no 13806fi 13807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13808fi 13809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13810 fi 13811 if test $ac_cv_c_bigendian = unknown; then 13812 # Compile a test program. 13813 if test "$cross_compiling" = yes; then : 13814 # Try to guess by grepping values from an object file. 13815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13816/* end confdefs.h. */ 13817short int ascii_mm[] = 13818 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 13819 short int ascii_ii[] = 13820 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 13821 int use_ascii (int i) { 13822 return ascii_mm[i] + ascii_ii[i]; 13823 } 13824 short int ebcdic_ii[] = 13825 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 13826 short int ebcdic_mm[] = 13827 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 13828 int use_ebcdic (int i) { 13829 return ebcdic_mm[i] + ebcdic_ii[i]; 13830 } 13831 extern int foo; 13832 13833int 13834main () 13835{ 13836return use_ascii (foo) == use_ebcdic (foo); 13837 ; 13838 return 0; 13839} 13840_ACEOF 13841if ac_fn_c_try_compile "$LINENO"; then : 13842 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 13843 ac_cv_c_bigendian=yes 13844 fi 13845 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 13846 if test "$ac_cv_c_bigendian" = unknown; then 13847 ac_cv_c_bigendian=no 13848 else 13849 # finding both strings is unlikely to happen, but who knows? 13850 ac_cv_c_bigendian=unknown 13851 fi 13852 fi 13853fi 13854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13855else 13856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13857/* end confdefs.h. */ 13858$ac_includes_default 13859int 13860main () 13861{ 13862 13863 /* Are we little or big endian? From Harbison&Steele. */ 13864 union 13865 { 13866 long int l; 13867 char c[sizeof (long int)]; 13868 } u; 13869 u.l = 1; 13870 return u.c[sizeof (long int) - 1] == 1; 13871 13872 ; 13873 return 0; 13874} 13875_ACEOF 13876if ac_fn_c_try_run "$LINENO"; then : 13877 ac_cv_c_bigendian=no 13878else 13879 ac_cv_c_bigendian=yes 13880fi 13881rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13882 conftest.$ac_objext conftest.beam conftest.$ac_ext 13883fi 13884 13885 fi 13886fi 13887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 13888$as_echo "$ac_cv_c_bigendian" >&6; } 13889 case $ac_cv_c_bigendian in #( 13890 yes) 13891 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 13892;; #( 13893 no) 13894 ;; #( 13895 universal) 13896 13897$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 13898 13899 ;; #( 13900 *) 13901 as_fn_error $? "unknown endianness 13902 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 13903 esac 13904 13905 13906# Check whether right shifting a negative integer extends the sign bit 13907# or fills with zeros (like the Cray J90, according to Tim Peters). 13908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether right shift extends the sign bit" >&5 13909$as_echo_n "checking whether right shift extends the sign bit... " >&6; } 13910if ${ac_cv_rshift_extends_sign+:} false; then : 13911 $as_echo_n "(cached) " >&6 13912else 13913 13914if test "$cross_compiling" = yes; then : 13915 ac_cv_rshift_extends_sign=yes 13916else 13917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13918/* end confdefs.h. */ 13919 13920int main() 13921{ 13922 exit(((-1)>>3 == -1) ? 0 : 1); 13923} 13924 13925_ACEOF 13926if ac_fn_c_try_run "$LINENO"; then : 13927 ac_cv_rshift_extends_sign=yes 13928else 13929 ac_cv_rshift_extends_sign=no 13930fi 13931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13932 conftest.$ac_objext conftest.beam conftest.$ac_ext 13933fi 13934 13935fi 13936 13937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rshift_extends_sign" >&5 13938$as_echo "$ac_cv_rshift_extends_sign" >&6; } 13939if test "$ac_cv_rshift_extends_sign" = no 13940then 13941 13942$as_echo "#define SIGNED_RIGHT_SHIFT_ZERO_FILLS 1" >>confdefs.h 13943 13944fi 13945 13946# check for getc_unlocked and related locking functions 13947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getc_unlocked() and friends" >&5 13948$as_echo_n "checking for getc_unlocked() and friends... " >&6; } 13949if ${ac_cv_have_getc_unlocked+:} false; then : 13950 $as_echo_n "(cached) " >&6 13951else 13952 13953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13954/* end confdefs.h. */ 13955#include <stdio.h> 13956int 13957main () 13958{ 13959 13960 FILE *f = fopen("/dev/null", "r"); 13961 flockfile(f); 13962 getc_unlocked(f); 13963 funlockfile(f); 13964 13965 ; 13966 return 0; 13967} 13968_ACEOF 13969if ac_fn_c_try_link "$LINENO"; then : 13970 ac_cv_have_getc_unlocked=yes 13971else 13972 ac_cv_have_getc_unlocked=no 13973fi 13974rm -f core conftest.err conftest.$ac_objext \ 13975 conftest$ac_exeext conftest.$ac_ext 13976fi 13977 13978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_getc_unlocked" >&5 13979$as_echo "$ac_cv_have_getc_unlocked" >&6; } 13980if test "$ac_cv_have_getc_unlocked" = yes 13981then 13982 13983$as_echo "#define HAVE_GETC_UNLOCKED 1" >>confdefs.h 13984 13985fi 13986 13987# check where readline lives 13988# save the value of LIBS so we don't actually link Python with readline 13989LIBS_no_readline=$LIBS 13990 13991# On some systems we need to link readline to a termcap compatible 13992# library. NOTE: Keep the precedence of listed libraries synchronised 13993# with setup.py. 13994py_cv_lib_readline=no 13995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link readline libs" >&5 13996$as_echo_n "checking how to link readline libs... " >&6; } 13997for py_libtermcap in "" ncursesw ncurses curses termcap; do 13998 if test -z "$py_libtermcap"; then 13999 READLINE_LIBS="-lreadline" 14000 else 14001 READLINE_LIBS="-lreadline -l$py_libtermcap" 14002 fi 14003 LIBS="$READLINE_LIBS $LIBS_no_readline" 14004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14005/* end confdefs.h. */ 14006 14007/* Override any GCC internal prototype to avoid an error. 14008 Use char because int might match the return type of a GCC 14009 builtin and then its argument prototype would still apply. */ 14010#ifdef __cplusplus 14011extern "C" 14012#endif 14013char readline (); 14014int 14015main () 14016{ 14017return readline (); 14018 ; 14019 return 0; 14020} 14021_ACEOF 14022if ac_fn_c_try_link "$LINENO"; then : 14023 py_cv_lib_readline=yes 14024fi 14025rm -f core conftest.err conftest.$ac_objext \ 14026 conftest$ac_exeext conftest.$ac_ext 14027 if test $py_cv_lib_readline = yes; then 14028 break 14029 fi 14030done 14031# Uncomment this line if you want to use READINE_LIBS in Makefile or scripts 14032#AC_SUBST([READLINE_LIBS]) 14033if test $py_cv_lib_readline = no; then 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 14035$as_echo "none" >&6; } 14036else 14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINE_LIBS" >&5 14038$as_echo "$READLINE_LIBS" >&6; } 14039 14040$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 14041 14042fi 14043 14044# check for readline 2.1 14045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5 14046$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; } 14047if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then : 14048 $as_echo_n "(cached) " >&6 14049else 14050 ac_check_lib_save_LIBS=$LIBS 14051LIBS="-lreadline $READLINE_LIBS $LIBS" 14052cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14053/* end confdefs.h. */ 14054 14055/* Override any GCC internal prototype to avoid an error. 14056 Use char because int might match the return type of a GCC 14057 builtin and then its argument prototype would still apply. */ 14058#ifdef __cplusplus 14059extern "C" 14060#endif 14061char rl_callback_handler_install (); 14062int 14063main () 14064{ 14065return rl_callback_handler_install (); 14066 ; 14067 return 0; 14068} 14069_ACEOF 14070if ac_fn_c_try_link "$LINENO"; then : 14071 ac_cv_lib_readline_rl_callback_handler_install=yes 14072else 14073 ac_cv_lib_readline_rl_callback_handler_install=no 14074fi 14075rm -f core conftest.err conftest.$ac_objext \ 14076 conftest$ac_exeext conftest.$ac_ext 14077LIBS=$ac_check_lib_save_LIBS 14078fi 14079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5 14080$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; } 14081if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then : 14082 14083$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h 14084 14085fi 14086 14087 14088# check for readline 2.2 14089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14090/* end confdefs.h. */ 14091#include <readline/readline.h> 14092_ACEOF 14093if ac_fn_c_try_cpp "$LINENO"; then : 14094 have_readline=yes 14095else 14096 have_readline=no 14097 14098fi 14099rm -f conftest.err conftest.i conftest.$ac_ext 14100if test $have_readline = yes 14101then 14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14103/* end confdefs.h. */ 14104#include <readline/readline.h> 14105 14106_ACEOF 14107if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14108 $EGREP "extern int rl_completion_append_character;" >/dev/null 2>&1; then : 14109 14110$as_echo "#define HAVE_RL_COMPLETION_APPEND_CHARACTER 1" >>confdefs.h 14111 14112fi 14113rm -f conftest* 14114 14115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14116/* end confdefs.h. */ 14117#include <readline/readline.h> 14118 14119_ACEOF 14120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14121 $EGREP "extern int rl_completion_suppress_append;" >/dev/null 2>&1; then : 14122 14123$as_echo "#define HAVE_RL_COMPLETION_SUPPRESS_APPEND 1" >>confdefs.h 14124 14125fi 14126rm -f conftest* 14127 14128fi 14129 14130# check for readline 4.0 14131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_pre_input_hook in -lreadline" >&5 14132$as_echo_n "checking for rl_pre_input_hook in -lreadline... " >&6; } 14133if ${ac_cv_lib_readline_rl_pre_input_hook+:} false; then : 14134 $as_echo_n "(cached) " >&6 14135else 14136 ac_check_lib_save_LIBS=$LIBS 14137LIBS="-lreadline $READLINE_LIBS $LIBS" 14138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14139/* end confdefs.h. */ 14140 14141/* Override any GCC internal prototype to avoid an error. 14142 Use char because int might match the return type of a GCC 14143 builtin and then its argument prototype would still apply. */ 14144#ifdef __cplusplus 14145extern "C" 14146#endif 14147char rl_pre_input_hook (); 14148int 14149main () 14150{ 14151return rl_pre_input_hook (); 14152 ; 14153 return 0; 14154} 14155_ACEOF 14156if ac_fn_c_try_link "$LINENO"; then : 14157 ac_cv_lib_readline_rl_pre_input_hook=yes 14158else 14159 ac_cv_lib_readline_rl_pre_input_hook=no 14160fi 14161rm -f core conftest.err conftest.$ac_objext \ 14162 conftest$ac_exeext conftest.$ac_ext 14163LIBS=$ac_check_lib_save_LIBS 14164fi 14165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_pre_input_hook" >&5 14166$as_echo "$ac_cv_lib_readline_rl_pre_input_hook" >&6; } 14167if test "x$ac_cv_lib_readline_rl_pre_input_hook" = xyes; then : 14168 14169$as_echo "#define HAVE_RL_PRE_INPUT_HOOK 1" >>confdefs.h 14170 14171fi 14172 14173 14174# also in 4.0 14175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_display_matches_hook in -lreadline" >&5 14176$as_echo_n "checking for rl_completion_display_matches_hook in -lreadline... " >&6; } 14177if ${ac_cv_lib_readline_rl_completion_display_matches_hook+:} false; then : 14178 $as_echo_n "(cached) " >&6 14179else 14180 ac_check_lib_save_LIBS=$LIBS 14181LIBS="-lreadline $READLINE_LIBS $LIBS" 14182cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14183/* end confdefs.h. */ 14184 14185/* Override any GCC internal prototype to avoid an error. 14186 Use char because int might match the return type of a GCC 14187 builtin and then its argument prototype would still apply. */ 14188#ifdef __cplusplus 14189extern "C" 14190#endif 14191char rl_completion_display_matches_hook (); 14192int 14193main () 14194{ 14195return rl_completion_display_matches_hook (); 14196 ; 14197 return 0; 14198} 14199_ACEOF 14200if ac_fn_c_try_link "$LINENO"; then : 14201 ac_cv_lib_readline_rl_completion_display_matches_hook=yes 14202else 14203 ac_cv_lib_readline_rl_completion_display_matches_hook=no 14204fi 14205rm -f core conftest.err conftest.$ac_objext \ 14206 conftest$ac_exeext conftest.$ac_ext 14207LIBS=$ac_check_lib_save_LIBS 14208fi 14209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_display_matches_hook" >&5 14210$as_echo "$ac_cv_lib_readline_rl_completion_display_matches_hook" >&6; } 14211if test "x$ac_cv_lib_readline_rl_completion_display_matches_hook" = xyes; then : 14212 14213$as_echo "#define HAVE_RL_COMPLETION_DISPLAY_MATCHES_HOOK 1" >>confdefs.h 14214 14215fi 14216 14217 14218# also in 4.0, but not in editline 14219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_resize_terminal in -lreadline" >&5 14220$as_echo_n "checking for rl_resize_terminal in -lreadline... " >&6; } 14221if ${ac_cv_lib_readline_rl_resize_terminal+:} false; then : 14222 $as_echo_n "(cached) " >&6 14223else 14224 ac_check_lib_save_LIBS=$LIBS 14225LIBS="-lreadline $READLINE_LIBS $LIBS" 14226cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14227/* end confdefs.h. */ 14228 14229/* Override any GCC internal prototype to avoid an error. 14230 Use char because int might match the return type of a GCC 14231 builtin and then its argument prototype would still apply. */ 14232#ifdef __cplusplus 14233extern "C" 14234#endif 14235char rl_resize_terminal (); 14236int 14237main () 14238{ 14239return rl_resize_terminal (); 14240 ; 14241 return 0; 14242} 14243_ACEOF 14244if ac_fn_c_try_link "$LINENO"; then : 14245 ac_cv_lib_readline_rl_resize_terminal=yes 14246else 14247 ac_cv_lib_readline_rl_resize_terminal=no 14248fi 14249rm -f core conftest.err conftest.$ac_objext \ 14250 conftest$ac_exeext conftest.$ac_ext 14251LIBS=$ac_check_lib_save_LIBS 14252fi 14253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_resize_terminal" >&5 14254$as_echo "$ac_cv_lib_readline_rl_resize_terminal" >&6; } 14255if test "x$ac_cv_lib_readline_rl_resize_terminal" = xyes; then : 14256 14257$as_echo "#define HAVE_RL_RESIZE_TERMINAL 1" >>confdefs.h 14258 14259fi 14260 14261 14262# check for readline 4.2 14263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_completion_matches in -lreadline" >&5 14264$as_echo_n "checking for rl_completion_matches in -lreadline... " >&6; } 14265if ${ac_cv_lib_readline_rl_completion_matches+:} false; then : 14266 $as_echo_n "(cached) " >&6 14267else 14268 ac_check_lib_save_LIBS=$LIBS 14269LIBS="-lreadline $READLINE_LIBS $LIBS" 14270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14271/* end confdefs.h. */ 14272 14273/* Override any GCC internal prototype to avoid an error. 14274 Use char because int might match the return type of a GCC 14275 builtin and then its argument prototype would still apply. */ 14276#ifdef __cplusplus 14277extern "C" 14278#endif 14279char rl_completion_matches (); 14280int 14281main () 14282{ 14283return rl_completion_matches (); 14284 ; 14285 return 0; 14286} 14287_ACEOF 14288if ac_fn_c_try_link "$LINENO"; then : 14289 ac_cv_lib_readline_rl_completion_matches=yes 14290else 14291 ac_cv_lib_readline_rl_completion_matches=no 14292fi 14293rm -f core conftest.err conftest.$ac_objext \ 14294 conftest$ac_exeext conftest.$ac_ext 14295LIBS=$ac_check_lib_save_LIBS 14296fi 14297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_completion_matches" >&5 14298$as_echo "$ac_cv_lib_readline_rl_completion_matches" >&6; } 14299if test "x$ac_cv_lib_readline_rl_completion_matches" = xyes; then : 14300 14301$as_echo "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h 14302 14303fi 14304 14305 14306# also in readline 4.2 14307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14308/* end confdefs.h. */ 14309#include <readline/readline.h> 14310_ACEOF 14311if ac_fn_c_try_cpp "$LINENO"; then : 14312 have_readline=yes 14313else 14314 have_readline=no 14315 14316fi 14317rm -f conftest.err conftest.i conftest.$ac_ext 14318if test $have_readline = yes 14319then 14320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14321/* end confdefs.h. */ 14322#include <readline/readline.h> 14323 14324_ACEOF 14325if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14326 $EGREP "extern int rl_catch_signals;" >/dev/null 2>&1; then : 14327 14328$as_echo "#define HAVE_RL_CATCH_SIGNAL 1" >>confdefs.h 14329 14330fi 14331rm -f conftest* 14332 14333fi 14334 14335# End of readline checks: restore LIBS 14336LIBS=$LIBS_no_readline 14337 14338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken nice()" >&5 14339$as_echo_n "checking for broken nice()... " >&6; } 14340if ${ac_cv_broken_nice+:} false; then : 14341 $as_echo_n "(cached) " >&6 14342else 14343 14344if test "$cross_compiling" = yes; then : 14345 ac_cv_broken_nice=no 14346else 14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14348/* end confdefs.h. */ 14349 14350#include <stdlib.h> 14351#include <unistd.h> 14352int main() 14353{ 14354 int val1 = nice(1); 14355 if (val1 != -1 && val1 == nice(2)) 14356 exit(0); 14357 exit(1); 14358} 14359 14360_ACEOF 14361if ac_fn_c_try_run "$LINENO"; then : 14362 ac_cv_broken_nice=yes 14363else 14364 ac_cv_broken_nice=no 14365fi 14366rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14367 conftest.$ac_objext conftest.beam conftest.$ac_ext 14368fi 14369 14370fi 14371 14372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_nice" >&5 14373$as_echo "$ac_cv_broken_nice" >&6; } 14374if test "$ac_cv_broken_nice" = yes 14375then 14376 14377$as_echo "#define HAVE_BROKEN_NICE 1" >>confdefs.h 14378 14379fi 14380 14381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken poll()" >&5 14382$as_echo_n "checking for broken poll()... " >&6; } 14383if ${ac_cv_broken_poll+:} false; then : 14384 $as_echo_n "(cached) " >&6 14385else 14386 if test "$cross_compiling" = yes; then : 14387 ac_cv_broken_poll=no 14388else 14389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14390/* end confdefs.h. */ 14391 14392#include <poll.h> 14393 14394int main() 14395{ 14396 struct pollfd poll_struct = { 42, POLLIN|POLLPRI|POLLOUT, 0 }; 14397 int poll_test; 14398 14399 close (42); 14400 14401 poll_test = poll(&poll_struct, 1, 0); 14402 if (poll_test < 0) 14403 return 0; 14404 else if (poll_test == 0 && poll_struct.revents != POLLNVAL) 14405 return 0; 14406 else 14407 return 1; 14408} 14409 14410_ACEOF 14411if ac_fn_c_try_run "$LINENO"; then : 14412 ac_cv_broken_poll=yes 14413else 14414 ac_cv_broken_poll=no 14415fi 14416rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14417 conftest.$ac_objext conftest.beam conftest.$ac_ext 14418fi 14419 14420fi 14421 14422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_broken_poll" >&5 14423$as_echo "$ac_cv_broken_poll" >&6; } 14424if test "$ac_cv_broken_poll" = yes 14425then 14426 14427$as_echo "#define HAVE_BROKEN_POLL 1" >>confdefs.h 14428 14429fi 14430 14431# check tzset(3) exists and works like we expect it to 14432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working tzset()" >&5 14433$as_echo_n "checking for working tzset()... " >&6; } 14434if ${ac_cv_working_tzset+:} false; then : 14435 $as_echo_n "(cached) " >&6 14436else 14437 14438if test "$cross_compiling" = yes; then : 14439 ac_cv_working_tzset=no 14440else 14441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14442/* end confdefs.h. */ 14443 14444#include <stdlib.h> 14445#include <time.h> 14446#include <string.h> 14447 14448#if HAVE_TZNAME 14449extern char *tzname[]; 14450#endif 14451 14452int main() 14453{ 14454 /* Note that we need to ensure that not only does tzset(3) 14455 do 'something' with localtime, but it works as documented 14456 in the library reference and as expected by the test suite. 14457 This includes making sure that tzname is set properly if 14458 tm->tm_zone does not exist since it is the alternative way 14459 of getting timezone info. 14460 14461 Red Hat 6.2 doesn't understand the southern hemisphere 14462 after New Year's Day. 14463 */ 14464 14465 time_t groundhogday = 1044144000; /* GMT-based */ 14466 time_t midyear = groundhogday + (365 * 24 * 3600 / 2); 14467 14468 putenv("TZ=UTC+0"); 14469 tzset(); 14470 if (localtime(&groundhogday)->tm_hour != 0) 14471 exit(1); 14472#if HAVE_TZNAME 14473 /* For UTC, tzname[1] is sometimes "", sometimes " " */ 14474 if (strcmp(tzname[0], "UTC") || 14475 (tzname[1][0] != 0 && tzname[1][0] != ' ')) 14476 exit(1); 14477#endif 14478 14479 putenv("TZ=EST+5EDT,M4.1.0,M10.5.0"); 14480 tzset(); 14481 if (localtime(&groundhogday)->tm_hour != 19) 14482 exit(1); 14483#if HAVE_TZNAME 14484 if (strcmp(tzname[0], "EST") || strcmp(tzname[1], "EDT")) 14485 exit(1); 14486#endif 14487 14488 putenv("TZ=AEST-10AEDT-11,M10.5.0,M3.5.0"); 14489 tzset(); 14490 if (localtime(&groundhogday)->tm_hour != 11) 14491 exit(1); 14492#if HAVE_TZNAME 14493 if (strcmp(tzname[0], "AEST") || strcmp(tzname[1], "AEDT")) 14494 exit(1); 14495#endif 14496 14497#if HAVE_STRUCT_TM_TM_ZONE 14498 if (strcmp(localtime(&groundhogday)->tm_zone, "AEDT")) 14499 exit(1); 14500 if (strcmp(localtime(&midyear)->tm_zone, "AEST")) 14501 exit(1); 14502#endif 14503 14504 exit(0); 14505} 14506 14507_ACEOF 14508if ac_fn_c_try_run "$LINENO"; then : 14509 ac_cv_working_tzset=yes 14510else 14511 ac_cv_working_tzset=no 14512fi 14513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14514 conftest.$ac_objext conftest.beam conftest.$ac_ext 14515fi 14516 14517fi 14518 14519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_tzset" >&5 14520$as_echo "$ac_cv_working_tzset" >&6; } 14521if test "$ac_cv_working_tzset" = yes 14522then 14523 14524$as_echo "#define HAVE_WORKING_TZSET 1" >>confdefs.h 14525 14526fi 14527 14528# Look for subsecond timestamps in struct stat 14529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec in struct stat" >&5 14530$as_echo_n "checking for tv_nsec in struct stat... " >&6; } 14531if ${ac_cv_stat_tv_nsec+:} false; then : 14532 $as_echo_n "(cached) " >&6 14533else 14534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14535/* end confdefs.h. */ 14536#include <sys/stat.h> 14537int 14538main () 14539{ 14540 14541struct stat st; 14542st.st_mtim.tv_nsec = 1; 14543 14544 ; 14545 return 0; 14546} 14547_ACEOF 14548if ac_fn_c_try_compile "$LINENO"; then : 14549 ac_cv_stat_tv_nsec=yes 14550else 14551 ac_cv_stat_tv_nsec=no 14552fi 14553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14554fi 14555 14556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec" >&5 14557$as_echo "$ac_cv_stat_tv_nsec" >&6; } 14558if test "$ac_cv_stat_tv_nsec" = yes 14559then 14560 14561$as_echo "#define HAVE_STAT_TV_NSEC 1" >>confdefs.h 14562 14563fi 14564 14565# Look for BSD style subsecond timestamps in struct stat 14566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tv_nsec2 in struct stat" >&5 14567$as_echo_n "checking for tv_nsec2 in struct stat... " >&6; } 14568if ${ac_cv_stat_tv_nsec2+:} false; then : 14569 $as_echo_n "(cached) " >&6 14570else 14571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14572/* end confdefs.h. */ 14573#include <sys/stat.h> 14574int 14575main () 14576{ 14577 14578struct stat st; 14579st.st_mtimespec.tv_nsec = 1; 14580 14581 ; 14582 return 0; 14583} 14584_ACEOF 14585if ac_fn_c_try_compile "$LINENO"; then : 14586 ac_cv_stat_tv_nsec2=yes 14587else 14588 ac_cv_stat_tv_nsec2=no 14589fi 14590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14591fi 14592 14593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_tv_nsec2" >&5 14594$as_echo "$ac_cv_stat_tv_nsec2" >&6; } 14595if test "$ac_cv_stat_tv_nsec2" = yes 14596then 14597 14598$as_echo "#define HAVE_STAT_TV_NSEC2 1" >>confdefs.h 14599 14600fi 14601 14602# first curses configure check 14603ac_save_cppflags="$CPPFLAGS" 14604CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw" 14605 14606for ac_header in curses.h ncurses.h 14607do : 14608 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14609ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14610if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14611 cat >>confdefs.h <<_ACEOF 14612#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14613_ACEOF 14614 14615fi 14616 14617done 14618 14619 14620# On Solaris, term.h requires curses.h 14621for ac_header in term.h 14622do : 14623 ac_fn_c_check_header_compile "$LINENO" "term.h" "ac_cv_header_term_h" " 14624#ifdef HAVE_CURSES_H 14625#include <curses.h> 14626#endif 14627 14628" 14629if test "x$ac_cv_header_term_h" = xyes; then : 14630 cat >>confdefs.h <<_ACEOF 14631#define HAVE_TERM_H 1 14632_ACEOF 14633 14634fi 14635 14636done 14637 14638 14639# On HP/UX 11.0, mvwdelch is a block with a return statement 14640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mvwdelch is an expression" >&5 14641$as_echo_n "checking whether mvwdelch is an expression... " >&6; } 14642if ${ac_cv_mvwdelch_is_expression+:} false; then : 14643 $as_echo_n "(cached) " >&6 14644else 14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14646/* end confdefs.h. */ 14647#include <curses.h> 14648int 14649main () 14650{ 14651 14652 int rtn; 14653 rtn = mvwdelch(0,0,0); 14654 14655 ; 14656 return 0; 14657} 14658_ACEOF 14659if ac_fn_c_try_compile "$LINENO"; then : 14660 ac_cv_mvwdelch_is_expression=yes 14661else 14662 ac_cv_mvwdelch_is_expression=no 14663fi 14664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14665fi 14666 14667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mvwdelch_is_expression" >&5 14668$as_echo "$ac_cv_mvwdelch_is_expression" >&6; } 14669 14670if test "$ac_cv_mvwdelch_is_expression" = yes 14671then 14672 14673$as_echo "#define MVWDELCH_IS_EXPRESSION 1" >>confdefs.h 14674 14675fi 14676 14677# Issue #25720: ncurses has introduced the NCURSES_OPAQUE symbol making opaque 14678# structs since version 5.7. If the macro is defined as zero before including 14679# [n]curses.h, ncurses will expose fields of the structs regardless of the 14680# configuration. 14681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WINDOW has _flags" >&5 14682$as_echo_n "checking whether WINDOW has _flags... " >&6; } 14683if ${ac_cv_window_has_flags+:} false; then : 14684 $as_echo_n "(cached) " >&6 14685else 14686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14687/* end confdefs.h. */ 14688 14689 #define NCURSES_OPAQUE 0 14690 #include <curses.h> 14691 14692int 14693main () 14694{ 14695 14696 WINDOW *w; 14697 w->_flags = 0; 14698 14699 ; 14700 return 0; 14701} 14702_ACEOF 14703if ac_fn_c_try_compile "$LINENO"; then : 14704 ac_cv_window_has_flags=yes 14705else 14706 ac_cv_window_has_flags=no 14707fi 14708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14709fi 14710 14711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_window_has_flags" >&5 14712$as_echo "$ac_cv_window_has_flags" >&6; } 14713 14714 14715if test "$ac_cv_window_has_flags" = yes 14716then 14717 14718$as_echo "#define WINDOW_HAS_FLAGS 1" >>confdefs.h 14719 14720fi 14721 14722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_pad" >&5 14723$as_echo_n "checking for is_pad... " >&6; } 14724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14725/* end confdefs.h. */ 14726#include <curses.h> 14727int 14728main () 14729{ 14730 14731#ifndef is_pad 14732void *x=is_pad 14733#endif 14734 14735 ; 14736 return 0; 14737} 14738_ACEOF 14739if ac_fn_c_try_compile "$LINENO"; then : 14740 14741$as_echo "#define HAVE_CURSES_IS_PAD 1" >>confdefs.h 14742 14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14744$as_echo "yes" >&6; } 14745else 14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14747$as_echo "no" >&6; } 14748 14749fi 14750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14751 14752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_term_resized" >&5 14753$as_echo_n "checking for is_term_resized... " >&6; } 14754cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14755/* end confdefs.h. */ 14756#include <curses.h> 14757int 14758main () 14759{ 14760void *x=is_term_resized 14761 ; 14762 return 0; 14763} 14764_ACEOF 14765if ac_fn_c_try_compile "$LINENO"; then : 14766 14767$as_echo "#define HAVE_CURSES_IS_TERM_RESIZED 1" >>confdefs.h 14768 14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14770$as_echo "yes" >&6; } 14771else 14772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14773$as_echo "no" >&6; } 14774 14775fi 14776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14777 14778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resize_term" >&5 14779$as_echo_n "checking for resize_term... " >&6; } 14780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14781/* end confdefs.h. */ 14782#include <curses.h> 14783int 14784main () 14785{ 14786void *x=resize_term 14787 ; 14788 return 0; 14789} 14790_ACEOF 14791if ac_fn_c_try_compile "$LINENO"; then : 14792 14793$as_echo "#define HAVE_CURSES_RESIZE_TERM 1" >>confdefs.h 14794 14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14796$as_echo "yes" >&6; } 14797else 14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14799$as_echo "no" >&6; } 14800 14801fi 14802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14803 14804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for resizeterm" >&5 14805$as_echo_n "checking for resizeterm... " >&6; } 14806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14807/* end confdefs.h. */ 14808#include <curses.h> 14809int 14810main () 14811{ 14812void *x=resizeterm 14813 ; 14814 return 0; 14815} 14816_ACEOF 14817if ac_fn_c_try_compile "$LINENO"; then : 14818 14819$as_echo "#define HAVE_CURSES_RESIZETERM 1" >>confdefs.h 14820 14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14822$as_echo "yes" >&6; } 14823else 14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14825$as_echo "no" >&6; } 14826 14827fi 14828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14829 14830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for immedok" >&5 14831$as_echo_n "checking for immedok... " >&6; } 14832cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14833/* end confdefs.h. */ 14834#include <curses.h> 14835int 14836main () 14837{ 14838 14839#ifndef immedok 14840void *x=immedok 14841#endif 14842 14843 ; 14844 return 0; 14845} 14846_ACEOF 14847if ac_fn_c_try_compile "$LINENO"; then : 14848 14849$as_echo "#define HAVE_CURSES_IMMEDOK 1" >>confdefs.h 14850 14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14852$as_echo "yes" >&6; } 14853else 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14855$as_echo "no" >&6; } 14856 14857fi 14858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14859 14860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for syncok" >&5 14861$as_echo_n "checking for syncok... " >&6; } 14862cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14863/* end confdefs.h. */ 14864#include <curses.h> 14865int 14866main () 14867{ 14868 14869#ifndef syncok 14870void *x=syncok 14871#endif 14872 14873 ; 14874 return 0; 14875} 14876_ACEOF 14877if ac_fn_c_try_compile "$LINENO"; then : 14878 14879$as_echo "#define HAVE_CURSES_SYNCOK 1" >>confdefs.h 14880 14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14882$as_echo "yes" >&6; } 14883else 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14885$as_echo "no" >&6; } 14886 14887fi 14888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14889 14890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchgat" >&5 14891$as_echo_n "checking for wchgat... " >&6; } 14892cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14893/* end confdefs.h. */ 14894#include <curses.h> 14895int 14896main () 14897{ 14898 14899#ifndef wchgat 14900void *x=wchgat 14901#endif 14902 14903 ; 14904 return 0; 14905} 14906_ACEOF 14907if ac_fn_c_try_compile "$LINENO"; then : 14908 14909$as_echo "#define HAVE_CURSES_WCHGAT 1" >>confdefs.h 14910 14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14912$as_echo "yes" >&6; } 14913else 14914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14915$as_echo "no" >&6; } 14916 14917fi 14918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14919 14920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for filter" >&5 14921$as_echo_n "checking for filter... " >&6; } 14922cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14923/* end confdefs.h. */ 14924#include <curses.h> 14925int 14926main () 14927{ 14928 14929#ifndef filter 14930void *x=filter 14931#endif 14932 14933 ; 14934 return 0; 14935} 14936_ACEOF 14937if ac_fn_c_try_compile "$LINENO"; then : 14938 14939$as_echo "#define HAVE_CURSES_FILTER 1" >>confdefs.h 14940 14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14942$as_echo "yes" >&6; } 14943else 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14945$as_echo "no" >&6; } 14946 14947fi 14948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14949 14950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for has_key" >&5 14951$as_echo_n "checking for has_key... " >&6; } 14952cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14953/* end confdefs.h. */ 14954#include <curses.h> 14955int 14956main () 14957{ 14958 14959#ifndef has_key 14960void *x=has_key 14961#endif 14962 14963 ; 14964 return 0; 14965} 14966_ACEOF 14967if ac_fn_c_try_compile "$LINENO"; then : 14968 14969$as_echo "#define HAVE_CURSES_HAS_KEY 1" >>confdefs.h 14970 14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14972$as_echo "yes" >&6; } 14973else 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14975$as_echo "no" >&6; } 14976 14977fi 14978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14979 14980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeahead" >&5 14981$as_echo_n "checking for typeahead... " >&6; } 14982cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14983/* end confdefs.h. */ 14984#include <curses.h> 14985int 14986main () 14987{ 14988 14989#ifndef typeahead 14990void *x=typeahead 14991#endif 14992 14993 ; 14994 return 0; 14995} 14996_ACEOF 14997if ac_fn_c_try_compile "$LINENO"; then : 14998 14999$as_echo "#define HAVE_CURSES_TYPEAHEAD 1" >>confdefs.h 15000 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15002$as_echo "yes" >&6; } 15003else 15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15005$as_echo "no" >&6; } 15006 15007fi 15008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15009 15010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for use_env" >&5 15011$as_echo_n "checking for use_env... " >&6; } 15012cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15013/* end confdefs.h. */ 15014#include <curses.h> 15015int 15016main () 15017{ 15018 15019#ifndef use_env 15020void *x=use_env 15021#endif 15022 15023 ; 15024 return 0; 15025} 15026_ACEOF 15027if ac_fn_c_try_compile "$LINENO"; then : 15028 15029$as_echo "#define HAVE_CURSES_USE_ENV 1" >>confdefs.h 15030 15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15032$as_echo "yes" >&6; } 15033else 15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15035$as_echo "no" >&6; } 15036 15037fi 15038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15039# last curses configure check 15040CPPFLAGS=$ac_save_cppflags 15041 15042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for device files" >&5 15043$as_echo "$as_me: checking for device files" >&6;} 15044 15045if test "x$cross_compiling" = xyes; then 15046 if test "${ac_cv_file__dev_ptmx+set}" != set; then 15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 15048$as_echo_n "checking for /dev/ptmx... " >&6; } 15049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 15050$as_echo "not set" >&6; } 15051 as_fn_error $? "set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 15052 fi 15053 if test "${ac_cv_file__dev_ptc+set}" != set; then 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 15055$as_echo_n "checking for /dev/ptc... " >&6; } 15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not set" >&5 15057$as_echo "not set" >&6; } 15058 as_fn_error $? "set ac_cv_file__dev_ptc to yes/no in your CONFIG_SITE file when cross compiling" "$LINENO" 5 15059 fi 15060fi 15061 15062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptmx" >&5 15063$as_echo_n "checking for /dev/ptmx... " >&6; } 15064if ${ac_cv_file__dev_ptmx+:} false; then : 15065 $as_echo_n "(cached) " >&6 15066else 15067 test "$cross_compiling" = yes && 15068 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 15069if test -r "/dev/ptmx"; then 15070 ac_cv_file__dev_ptmx=yes 15071else 15072 ac_cv_file__dev_ptmx=no 15073fi 15074fi 15075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptmx" >&5 15076$as_echo "$ac_cv_file__dev_ptmx" >&6; } 15077if test "x$ac_cv_file__dev_ptmx" = xyes; then : 15078 15079fi 15080 15081if test "x$ac_cv_file__dev_ptmx" = xyes; then 15082 15083$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 15084 15085fi 15086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/ptc" >&5 15087$as_echo_n "checking for /dev/ptc... " >&6; } 15088if ${ac_cv_file__dev_ptc+:} false; then : 15089 $as_echo_n "(cached) " >&6 15090else 15091 test "$cross_compiling" = yes && 15092 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 15093if test -r "/dev/ptc"; then 15094 ac_cv_file__dev_ptc=yes 15095else 15096 ac_cv_file__dev_ptc=no 15097fi 15098fi 15099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__dev_ptc" >&5 15100$as_echo "$ac_cv_file__dev_ptc" >&6; } 15101if test "x$ac_cv_file__dev_ptc" = xyes; then : 15102 15103fi 15104 15105if test "x$ac_cv_file__dev_ptc" = xyes; then 15106 15107$as_echo "#define HAVE_DEV_PTC 1" >>confdefs.h 15108 15109fi 15110 15111if test "$have_long_long" = yes 15112then 15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for %lld and %llu printf() format support" >&5 15114$as_echo_n "checking for %lld and %llu printf() format support... " >&6; } 15115 if ${ac_cv_have_long_long_format+:} false; then : 15116 $as_echo_n "(cached) " >&6 15117else 15118 if test "$cross_compiling" = yes; then : 15119 ac_cv_have_long_long_format="cross -- assuming no" 15120 if test x$GCC = xyes; then 15121 save_CFLAGS=$CFLAGS 15122 CFLAGS="$CFLAGS -Werror -Wformat" 15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15124/* end confdefs.h. */ 15125 15126 #include <stdio.h> 15127 #include <stddef.h> 15128 15129int 15130main () 15131{ 15132 15133 char *buffer; 15134 sprintf(buffer, "%lld", (long long)123); 15135 sprintf(buffer, "%lld", (long long)-123); 15136 sprintf(buffer, "%llu", (unsigned long long)123); 15137 15138 ; 15139 return 0; 15140} 15141_ACEOF 15142if ac_fn_c_try_compile "$LINENO"; then : 15143 ac_cv_have_long_long_format=yes 15144 15145fi 15146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15147 CFLAGS=$save_CFLAGS 15148 fi 15149else 15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15151/* end confdefs.h. */ 15152 15153 #include <stdio.h> 15154 #include <stddef.h> 15155 #include <string.h> 15156 15157 #ifdef HAVE_SYS_TYPES_H 15158 #include <sys/types.h> 15159 #endif 15160 15161 int main() 15162 { 15163 char buffer[256]; 15164 15165 if (sprintf(buffer, "%lld", (long long)123) < 0) 15166 return 1; 15167 if (strcmp(buffer, "123")) 15168 return 1; 15169 15170 if (sprintf(buffer, "%lld", (long long)-123) < 0) 15171 return 1; 15172 if (strcmp(buffer, "-123")) 15173 return 1; 15174 15175 if (sprintf(buffer, "%llu", (unsigned long long)123) < 0) 15176 return 1; 15177 if (strcmp(buffer, "123")) 15178 return 1; 15179 15180 return 0; 15181 } 15182 15183_ACEOF 15184if ac_fn_c_try_run "$LINENO"; then : 15185 ac_cv_have_long_long_format=yes 15186else 15187 ac_cv_have_long_long_format=no 15188fi 15189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15190 conftest.$ac_objext conftest.beam conftest.$ac_ext 15191fi 15192 15193 15194fi 15195 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_long_long_format" >&5 15197$as_echo "$ac_cv_have_long_long_format" >&6; } 15198fi 15199 15200if test "$ac_cv_have_long_long_format" = yes 15201then 15202 15203$as_echo "#define PY_FORMAT_LONG_LONG \"ll\"" >>confdefs.h 15204 15205fi 15206 15207if test $ac_sys_system = Darwin 15208then 15209 LIBS="$LIBS -framework CoreFoundation" 15210fi 15211 15212 15213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for %zd printf() format support" >&5 15214$as_echo_n "checking for %zd printf() format support... " >&6; } 15215if ${ac_cv_have_size_t_format+:} false; then : 15216 $as_echo_n "(cached) " >&6 15217else 15218 if test "$cross_compiling" = yes; then : 15219 ac_cv_have_size_t_format="cross -- assuming yes" 15220 15221else 15222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15223/* end confdefs.h. */ 15224 15225#include <stdio.h> 15226#include <stddef.h> 15227#include <string.h> 15228 15229#ifdef HAVE_SYS_TYPES_H 15230#include <sys/types.h> 15231#endif 15232 15233#ifdef HAVE_SSIZE_T 15234typedef ssize_t Py_ssize_t; 15235#elif SIZEOF_VOID_P == SIZEOF_LONG 15236typedef long Py_ssize_t; 15237#else 15238typedef int Py_ssize_t; 15239#endif 15240 15241int main() 15242{ 15243 char buffer[256]; 15244 15245 if(sprintf(buffer, "%zd", (size_t)123) < 0) 15246 return 1; 15247 15248 if (strcmp(buffer, "123")) 15249 return 1; 15250 15251 if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0) 15252 return 1; 15253 15254 if (strcmp(buffer, "-123")) 15255 return 1; 15256 15257 return 0; 15258} 15259 15260_ACEOF 15261if ac_fn_c_try_run "$LINENO"; then : 15262 ac_cv_have_size_t_format=yes 15263else 15264 ac_cv_have_size_t_format=no 15265fi 15266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15267 conftest.$ac_objext conftest.beam conftest.$ac_ext 15268fi 15269 15270fi 15271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_size_t_format" >&5 15272$as_echo "$ac_cv_have_size_t_format" >&6; } 15273if test "$ac_cv_have_size_t_format" != no ; then 15274 15275$as_echo "#define PY_FORMAT_SIZE_T \"z\"" >>confdefs.h 15276 15277fi 15278 15279ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " 15280#ifdef HAVE_SYS_TYPES_H 15281#include <sys/types.h> 15282#endif 15283#ifdef HAVE_SYS_SOCKET_H 15284#include <sys/socket.h> 15285#endif 15286 15287" 15288if test "x$ac_cv_type_socklen_t" = xyes; then : 15289 15290else 15291 15292$as_echo "#define socklen_t int" >>confdefs.h 15293 15294fi 15295 15296 15297case $ac_sys_system in 15298AIX*) 15299 15300$as_echo "#define HAVE_BROKEN_PIPE_BUF 1" >>confdefs.h 15301 ;; 15302esac 15303 15304 15305 15306 15307for h in `(cd $srcdir;echo Python/thread_*.h)` 15308do 15309 THREADHEADERS="$THREADHEADERS \$(srcdir)/$h" 15310done 15311 15312 15313SRCDIRS="Parser Objects Python Modules Modules/_io" 15314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build directories" >&5 15315$as_echo_n "checking for build directories... " >&6; } 15316for dir in $SRCDIRS; do 15317 if test ! -d $dir; then 15318 mkdir $dir 15319 fi 15320done 15321 15322# BEGIN_COMPUTED_GOTO 15323# Check for --with-computed-gotos 15324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --with-computed-gotos" >&5 15325$as_echo_n "checking for --with-computed-gotos... " >&6; } 15326 15327# Check whether --with-computed-gotos was given. 15328if test "${with_computed_gotos+set}" = set; then : 15329 withval=$with_computed_gotos; 15330if test "$withval" = yes 15331then 15332 15333$as_echo "#define USE_COMPUTED_GOTOS 1" >>confdefs.h 15334 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 15336$as_echo "yes" >&6; } 15337fi 15338if test "$withval" = no 15339then 15340 15341$as_echo "#define USE_COMPUTED_GOTOS 0" >>confdefs.h 15342 15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15344$as_echo "no" >&6; } 15345fi 15346 15347else 15348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no value specified" >&5 15349$as_echo "no value specified" >&6; } 15350fi 15351 15352 15353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports computed gotos" >&5 15354$as_echo_n "checking whether $CC supports computed gotos... " >&6; } 15355if ${ac_cv_computed_gotos+:} false; then : 15356 $as_echo_n "(cached) " >&6 15357else 15358 if test "$cross_compiling" = yes; then : 15359 if test "${with_computed_gotos+set}" = set; then 15360 ac_cv_computed_gotos="$with_computed_gotos -- configured --with(out)-computed-gotos" 15361 else 15362 ac_cv_computed_gotos=no 15363 fi 15364else 15365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15366/* end confdefs.h. */ 15367 15368int main(int argc, char **argv) 15369{ 15370 static void *targets[1] = { &&LABEL1 }; 15371 goto LABEL2; 15372LABEL1: 15373 return 0; 15374LABEL2: 15375 goto *targets[0]; 15376 return 1; 15377} 15378 15379_ACEOF 15380if ac_fn_c_try_run "$LINENO"; then : 15381 ac_cv_computed_gotos=yes 15382else 15383 ac_cv_computed_gotos=no 15384fi 15385rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15386 conftest.$ac_objext conftest.beam conftest.$ac_ext 15387fi 15388 15389fi 15390 15391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_computed_gotos" >&5 15392$as_echo "$ac_cv_computed_gotos" >&6; } 15393case "$ac_cv_computed_gotos" in yes*) 15394 15395$as_echo "#define HAVE_COMPUTED_GOTOS 1" >>confdefs.h 15396 15397esac 15398# END_COMPUTED_GOTO 15399 15400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 15401$as_echo "done" >&6; } 15402 15403# ensurepip option 15404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ensurepip" >&5 15405$as_echo_n "checking for ensurepip... " >&6; } 15406 15407# Check whether --with-ensurepip was given. 15408if test "${with_ensurepip+set}" = set; then : 15409 withval=$with_ensurepip; 15410else 15411 with_ensurepip=no 15412fi 15413 15414case $with_ensurepip in #( 15415 yes|upgrade) : 15416 ENSUREPIP=upgrade ;; #( 15417 install) : 15418 ENSUREPIP=install ;; #( 15419 no) : 15420 ENSUREPIP=no ;; #( 15421 *) : 15422 as_fn_error $? "--with-ensurepip=upgrade|install|no" "$LINENO" 5 ;; 15423esac 15424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENSUREPIP" >&5 15425$as_echo "$ENSUREPIP" >&6; } 15426 15427 15428# generate output files 15429ac_config_files="$ac_config_files Makefile.pre Modules/Setup.config Misc/python.pc" 15430 15431ac_config_files="$ac_config_files Modules/ld_so_aix" 15432 15433cat >confcache <<\_ACEOF 15434# This file is a shell script that caches the results of configure 15435# tests run on this system so they can be shared between configure 15436# scripts and configure runs, see configure's option --config-cache. 15437# It is not useful on other systems. If it contains results you don't 15438# want to keep, you may remove or edit it. 15439# 15440# config.status only pays attention to the cache file if you give it 15441# the --recheck option to rerun configure. 15442# 15443# `ac_cv_env_foo' variables (set or unset) will be overridden when 15444# loading this file, other *unset* `ac_cv_foo' will be assigned the 15445# following values. 15446 15447_ACEOF 15448 15449# The following way of writing the cache mishandles newlines in values, 15450# but we know of no workaround that is simple, portable, and efficient. 15451# So, we kill variables containing newlines. 15452# Ultrix sh set writes to stderr and can't be redirected directly, 15453# and sets the high bit in the cache file unless we assign to the vars. 15454( 15455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 15456 eval ac_val=\$$ac_var 15457 case $ac_val in #( 15458 *${as_nl}*) 15459 case $ac_var in #( 15460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 15461$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 15462 esac 15463 case $ac_var in #( 15464 _ | IFS | as_nl) ;; #( 15465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 15466 *) { eval $ac_var=; unset $ac_var;} ;; 15467 esac ;; 15468 esac 15469 done 15470 15471 (set) 2>&1 | 15472 case $as_nl`(ac_space=' '; set) 2>&1` in #( 15473 *${as_nl}ac_space=\ *) 15474 # `set' does not quote correctly, so add quotes: double-quote 15475 # substitution turns \\\\ into \\, and sed turns \\ into \. 15476 sed -n \ 15477 "s/'/'\\\\''/g; 15478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 15479 ;; #( 15480 *) 15481 # `set' quotes correctly as required by POSIX, so do not add quotes. 15482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 15483 ;; 15484 esac | 15485 sort 15486) | 15487 sed ' 15488 /^ac_cv_env_/b end 15489 t clear 15490 :clear 15491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 15492 t end 15493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 15494 :end' >>confcache 15495if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 15496 if test -w "$cache_file"; then 15497 if test "x$cache_file" != "x/dev/null"; then 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 15499$as_echo "$as_me: updating cache $cache_file" >&6;} 15500 if test ! -f "$cache_file" || test -h "$cache_file"; then 15501 cat confcache >"$cache_file" 15502 else 15503 case $cache_file in #( 15504 */* | ?:*) 15505 mv -f confcache "$cache_file"$$ && 15506 mv -f "$cache_file"$$ "$cache_file" ;; #( 15507 *) 15508 mv -f confcache "$cache_file" ;; 15509 esac 15510 fi 15511 fi 15512 else 15513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 15514$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 15515 fi 15516fi 15517rm -f confcache 15518 15519test "x$prefix" = xNONE && prefix=$ac_default_prefix 15520# Let make expand exec_prefix. 15521test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 15522 15523DEFS=-DHAVE_CONFIG_H 15524 15525ac_libobjs= 15526ac_ltlibobjs= 15527U= 15528for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 15529 # 1. Remove the extension, and $U if already installed. 15530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 15531 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 15532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 15533 # will be set to the directory where LIBOBJS objects are built. 15534 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 15535 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 15536done 15537LIBOBJS=$ac_libobjs 15538 15539LTLIBOBJS=$ac_ltlibobjs 15540 15541 15542 15543 15544: "${CONFIG_STATUS=./config.status}" 15545ac_write_fail=0 15546ac_clean_files_save=$ac_clean_files 15547ac_clean_files="$ac_clean_files $CONFIG_STATUS" 15548{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 15549$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 15550as_write_fail=0 15551cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 15552#! $SHELL 15553# Generated by $as_me. 15554# Run this file to recreate the current configuration. 15555# Compiler output produced by configure, useful for debugging 15556# configure, is in config.log if it exists. 15557 15558debug=false 15559ac_cs_recheck=false 15560ac_cs_silent=false 15561 15562SHELL=\${CONFIG_SHELL-$SHELL} 15563export SHELL 15564_ASEOF 15565cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 15566## -------------------- ## 15567## M4sh Initialization. ## 15568## -------------------- ## 15569 15570# Be more Bourne compatible 15571DUALCASE=1; export DUALCASE # for MKS sh 15572if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15573 emulate sh 15574 NULLCMD=: 15575 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 15576 # is contrary to our usage. Disable this feature. 15577 alias -g '${1+"$@"}'='"$@"' 15578 setopt NO_GLOB_SUBST 15579else 15580 case `(set -o) 2>/dev/null` in #( 15581 *posix*) : 15582 set -o posix ;; #( 15583 *) : 15584 ;; 15585esac 15586fi 15587 15588 15589as_nl=' 15590' 15591export as_nl 15592# Printing a long string crashes Solaris 7 /usr/bin/printf. 15593as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 15594as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 15595as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 15596# Prefer a ksh shell builtin over an external printf program on Solaris, 15597# but without wasting forks for bash or zsh. 15598if test -z "$BASH_VERSION$ZSH_VERSION" \ 15599 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 15600 as_echo='print -r --' 15601 as_echo_n='print -rn --' 15602elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 15603 as_echo='printf %s\n' 15604 as_echo_n='printf %s' 15605else 15606 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 15607 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 15608 as_echo_n='/usr/ucb/echo -n' 15609 else 15610 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 15611 as_echo_n_body='eval 15612 arg=$1; 15613 case $arg in #( 15614 *"$as_nl"*) 15615 expr "X$arg" : "X\\(.*\\)$as_nl"; 15616 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 15617 esac; 15618 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 15619 ' 15620 export as_echo_n_body 15621 as_echo_n='sh -c $as_echo_n_body as_echo' 15622 fi 15623 export as_echo_body 15624 as_echo='sh -c $as_echo_body as_echo' 15625fi 15626 15627# The user is always right. 15628if test "${PATH_SEPARATOR+set}" != set; then 15629 PATH_SEPARATOR=: 15630 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 15631 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 15632 PATH_SEPARATOR=';' 15633 } 15634fi 15635 15636 15637# IFS 15638# We need space, tab and new line, in precisely that order. Quoting is 15639# there to prevent editors from complaining about space-tab. 15640# (If _AS_PATH_WALK were called with IFS unset, it would disable word 15641# splitting by setting IFS to empty value.) 15642IFS=" "" $as_nl" 15643 15644# Find who we are. Look in the path if we contain no directory separator. 15645as_myself= 15646case $0 in #(( 15647 *[\\/]* ) as_myself=$0 ;; 15648 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15649for as_dir in $PATH 15650do 15651 IFS=$as_save_IFS 15652 test -z "$as_dir" && as_dir=. 15653 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 15654 done 15655IFS=$as_save_IFS 15656 15657 ;; 15658esac 15659# We did not find ourselves, most probably we were run as `sh COMMAND' 15660# in which case we are not to be found in the path. 15661if test "x$as_myself" = x; then 15662 as_myself=$0 15663fi 15664if test ! -f "$as_myself"; then 15665 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 15666 exit 1 15667fi 15668 15669# Unset variables that we do not need and which cause bugs (e.g. in 15670# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 15671# suppresses any "Segmentation fault" message there. '((' could 15672# trigger a bug in pdksh 5.2.14. 15673for as_var in BASH_ENV ENV MAIL MAILPATH 15674do eval test x\${$as_var+set} = xset \ 15675 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 15676done 15677PS1='$ ' 15678PS2='> ' 15679PS4='+ ' 15680 15681# NLS nuisances. 15682LC_ALL=C 15683export LC_ALL 15684LANGUAGE=C 15685export LANGUAGE 15686 15687# CDPATH. 15688(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 15689 15690 15691# as_fn_error STATUS ERROR [LINENO LOG_FD] 15692# ---------------------------------------- 15693# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 15694# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 15695# script with STATUS, using 1 if that was 0. 15696as_fn_error () 15697{ 15698 as_status=$1; test $as_status -eq 0 && as_status=1 15699 if test "$4"; then 15700 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 15701 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 15702 fi 15703 $as_echo "$as_me: error: $2" >&2 15704 as_fn_exit $as_status 15705} # as_fn_error 15706 15707 15708# as_fn_set_status STATUS 15709# ----------------------- 15710# Set $? to STATUS, without forking. 15711as_fn_set_status () 15712{ 15713 return $1 15714} # as_fn_set_status 15715 15716# as_fn_exit STATUS 15717# ----------------- 15718# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 15719as_fn_exit () 15720{ 15721 set +e 15722 as_fn_set_status $1 15723 exit $1 15724} # as_fn_exit 15725 15726# as_fn_unset VAR 15727# --------------- 15728# Portably unset VAR. 15729as_fn_unset () 15730{ 15731 { eval $1=; unset $1;} 15732} 15733as_unset=as_fn_unset 15734# as_fn_append VAR VALUE 15735# ---------------------- 15736# Append the text in VALUE to the end of the definition contained in VAR. Take 15737# advantage of any shell optimizations that allow amortized linear growth over 15738# repeated appends, instead of the typical quadratic growth present in naive 15739# implementations. 15740if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 15741 eval 'as_fn_append () 15742 { 15743 eval $1+=\$2 15744 }' 15745else 15746 as_fn_append () 15747 { 15748 eval $1=\$$1\$2 15749 } 15750fi # as_fn_append 15751 15752# as_fn_arith ARG... 15753# ------------------ 15754# Perform arithmetic evaluation on the ARGs, and store the result in the 15755# global $as_val. Take advantage of shells that can avoid forks. The arguments 15756# must be portable across $(()) and expr. 15757if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 15758 eval 'as_fn_arith () 15759 { 15760 as_val=$(( $* )) 15761 }' 15762else 15763 as_fn_arith () 15764 { 15765 as_val=`expr "$@" || test $? -eq 1` 15766 } 15767fi # as_fn_arith 15768 15769 15770if expr a : '\(a\)' >/dev/null 2>&1 && 15771 test "X`expr 00001 : '.*\(...\)'`" = X001; then 15772 as_expr=expr 15773else 15774 as_expr=false 15775fi 15776 15777if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 15778 as_basename=basename 15779else 15780 as_basename=false 15781fi 15782 15783if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 15784 as_dirname=dirname 15785else 15786 as_dirname=false 15787fi 15788 15789as_me=`$as_basename -- "$0" || 15790$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 15791 X"$0" : 'X\(//\)$' \| \ 15792 X"$0" : 'X\(/\)' \| . 2>/dev/null || 15793$as_echo X/"$0" | 15794 sed '/^.*\/\([^/][^/]*\)\/*$/{ 15795 s//\1/ 15796 q 15797 } 15798 /^X\/\(\/\/\)$/{ 15799 s//\1/ 15800 q 15801 } 15802 /^X\/\(\/\).*/{ 15803 s//\1/ 15804 q 15805 } 15806 s/.*/./; q'` 15807 15808# Avoid depending upon Character Ranges. 15809as_cr_letters='abcdefghijklmnopqrstuvwxyz' 15810as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 15811as_cr_Letters=$as_cr_letters$as_cr_LETTERS 15812as_cr_digits='0123456789' 15813as_cr_alnum=$as_cr_Letters$as_cr_digits 15814 15815ECHO_C= ECHO_N= ECHO_T= 15816case `echo -n x` in #((((( 15817-n*) 15818 case `echo 'xy\c'` in 15819 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 15820 xy) ECHO_C='\c';; 15821 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 15822 ECHO_T=' ';; 15823 esac;; 15824*) 15825 ECHO_N='-n';; 15826esac 15827 15828rm -f conf$$ conf$$.exe conf$$.file 15829if test -d conf$$.dir; then 15830 rm -f conf$$.dir/conf$$.file 15831else 15832 rm -f conf$$.dir 15833 mkdir conf$$.dir 2>/dev/null 15834fi 15835if (echo >conf$$.file) 2>/dev/null; then 15836 if ln -s conf$$.file conf$$ 2>/dev/null; then 15837 as_ln_s='ln -s' 15838 # ... but there are two gotchas: 15839 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 15840 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 15841 # In both cases, we have to default to `cp -pR'. 15842 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 15843 as_ln_s='cp -pR' 15844 elif ln conf$$.file conf$$ 2>/dev/null; then 15845 as_ln_s=ln 15846 else 15847 as_ln_s='cp -pR' 15848 fi 15849else 15850 as_ln_s='cp -pR' 15851fi 15852rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 15853rmdir conf$$.dir 2>/dev/null 15854 15855 15856# as_fn_mkdir_p 15857# ------------- 15858# Create "$as_dir" as a directory, including parents if necessary. 15859as_fn_mkdir_p () 15860{ 15861 15862 case $as_dir in #( 15863 -*) as_dir=./$as_dir;; 15864 esac 15865 test -d "$as_dir" || eval $as_mkdir_p || { 15866 as_dirs= 15867 while :; do 15868 case $as_dir in #( 15869 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 15870 *) as_qdir=$as_dir;; 15871 esac 15872 as_dirs="'$as_qdir' $as_dirs" 15873 as_dir=`$as_dirname -- "$as_dir" || 15874$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15875 X"$as_dir" : 'X\(//\)[^/]' \| \ 15876 X"$as_dir" : 'X\(//\)$' \| \ 15877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 15878$as_echo X"$as_dir" | 15879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15880 s//\1/ 15881 q 15882 } 15883 /^X\(\/\/\)[^/].*/{ 15884 s//\1/ 15885 q 15886 } 15887 /^X\(\/\/\)$/{ 15888 s//\1/ 15889 q 15890 } 15891 /^X\(\/\).*/{ 15892 s//\1/ 15893 q 15894 } 15895 s/.*/./; q'` 15896 test -d "$as_dir" && break 15897 done 15898 test -z "$as_dirs" || eval "mkdir $as_dirs" 15899 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 15900 15901 15902} # as_fn_mkdir_p 15903if mkdir -p . 2>/dev/null; then 15904 as_mkdir_p='mkdir -p "$as_dir"' 15905else 15906 test -d ./-p && rmdir ./-p 15907 as_mkdir_p=false 15908fi 15909 15910 15911# as_fn_executable_p FILE 15912# ----------------------- 15913# Test if FILE is an executable regular file. 15914as_fn_executable_p () 15915{ 15916 test -f "$1" && test -x "$1" 15917} # as_fn_executable_p 15918as_test_x='test -x' 15919as_executable_p=as_fn_executable_p 15920 15921# Sed expression to map a string onto a valid CPP name. 15922as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15923 15924# Sed expression to map a string onto a valid variable name. 15925as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15926 15927 15928exec 6>&1 15929## ----------------------------------- ## 15930## Main body of $CONFIG_STATUS script. ## 15931## ----------------------------------- ## 15932_ASEOF 15933test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15934 15935cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15936# Save the log message, to keep $0 and so on meaningful, and to 15937# report actual input values of CONFIG_FILES etc. instead of their 15938# values after options handling. 15939ac_log=" 15940This file was extended by python $as_me 2.7, which was 15941generated by GNU Autoconf 2.69. Invocation command line was 15942 15943 CONFIG_FILES = $CONFIG_FILES 15944 CONFIG_HEADERS = $CONFIG_HEADERS 15945 CONFIG_LINKS = $CONFIG_LINKS 15946 CONFIG_COMMANDS = $CONFIG_COMMANDS 15947 $ $0 $@ 15948 15949on `(hostname || uname -n) 2>/dev/null | sed 1q` 15950" 15951 15952_ACEOF 15953 15954case $ac_config_files in *" 15955"*) set x $ac_config_files; shift; ac_config_files=$*;; 15956esac 15957 15958case $ac_config_headers in *" 15959"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15960esac 15961 15962 15963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15964# Files that config.status was made for. 15965config_files="$ac_config_files" 15966config_headers="$ac_config_headers" 15967 15968_ACEOF 15969 15970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15971ac_cs_usage="\ 15972\`$as_me' instantiates files and other configuration actions 15973from templates according to the current configuration. Unless the files 15974and actions are specified as TAGs, all are instantiated by default. 15975 15976Usage: $0 [OPTION]... [TAG]... 15977 15978 -h, --help print this help, then exit 15979 -V, --version print version number and configuration settings, then exit 15980 --config print configuration, then exit 15981 -q, --quiet, --silent 15982 do not print progress messages 15983 -d, --debug don't remove temporary files 15984 --recheck update $as_me by reconfiguring in the same conditions 15985 --file=FILE[:TEMPLATE] 15986 instantiate the configuration file FILE 15987 --header=FILE[:TEMPLATE] 15988 instantiate the configuration header FILE 15989 15990Configuration files: 15991$config_files 15992 15993Configuration headers: 15994$config_headers 15995 15996Report bugs to <https://bugs.python.org/>." 15997 15998_ACEOF 15999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16000ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 16001ac_cs_version="\\ 16002python config.status 2.7 16003configured by $0, generated by GNU Autoconf 2.69, 16004 with options \\"\$ac_cs_config\\" 16005 16006Copyright (C) 2012 Free Software Foundation, Inc. 16007This config.status script is free software; the Free Software Foundation 16008gives unlimited permission to copy, distribute and modify it." 16009 16010ac_pwd='$ac_pwd' 16011srcdir='$srcdir' 16012INSTALL='$INSTALL' 16013MKDIR_P='$MKDIR_P' 16014test -n "\$AWK" || AWK=awk 16015_ACEOF 16016 16017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16018# The default lists apply if the user does not specify any file. 16019ac_need_defaults=: 16020while test $# != 0 16021do 16022 case $1 in 16023 --*=?*) 16024 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16025 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 16026 ac_shift=: 16027 ;; 16028 --*=) 16029 ac_option=`expr "X$1" : 'X\([^=]*\)='` 16030 ac_optarg= 16031 ac_shift=: 16032 ;; 16033 *) 16034 ac_option=$1 16035 ac_optarg=$2 16036 ac_shift=shift 16037 ;; 16038 esac 16039 16040 case $ac_option in 16041 # Handling of the options. 16042 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 16043 ac_cs_recheck=: ;; 16044 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 16045 $as_echo "$ac_cs_version"; exit ;; 16046 --config | --confi | --conf | --con | --co | --c ) 16047 $as_echo "$ac_cs_config"; exit ;; 16048 --debug | --debu | --deb | --de | --d | -d ) 16049 debug=: ;; 16050 --file | --fil | --fi | --f ) 16051 $ac_shift 16052 case $ac_optarg in 16053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16054 '') as_fn_error $? "missing file argument" ;; 16055 esac 16056 as_fn_append CONFIG_FILES " '$ac_optarg'" 16057 ac_need_defaults=false;; 16058 --header | --heade | --head | --hea ) 16059 $ac_shift 16060 case $ac_optarg in 16061 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 16062 esac 16063 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 16064 ac_need_defaults=false;; 16065 --he | --h) 16066 # Conflict between --help and --header 16067 as_fn_error $? "ambiguous option: \`$1' 16068Try \`$0 --help' for more information.";; 16069 --help | --hel | -h ) 16070 $as_echo "$ac_cs_usage"; exit ;; 16071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 16072 | -silent | --silent | --silen | --sile | --sil | --si | --s) 16073 ac_cs_silent=: ;; 16074 16075 # This is an error. 16076 -*) as_fn_error $? "unrecognized option: \`$1' 16077Try \`$0 --help' for more information." ;; 16078 16079 *) as_fn_append ac_config_targets " $1" 16080 ac_need_defaults=false ;; 16081 16082 esac 16083 shift 16084done 16085 16086ac_configure_extra_args= 16087 16088if $ac_cs_silent; then 16089 exec 6>/dev/null 16090 ac_configure_extra_args="$ac_configure_extra_args --silent" 16091fi 16092 16093_ACEOF 16094cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16095if \$ac_cs_recheck; then 16096 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 16097 shift 16098 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 16099 CONFIG_SHELL='$SHELL' 16100 export CONFIG_SHELL 16101 exec "\$@" 16102fi 16103 16104_ACEOF 16105cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16106exec 5>>config.log 16107{ 16108 echo 16109 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 16110## Running $as_me. ## 16111_ASBOX 16112 $as_echo "$ac_log" 16113} >&5 16114 16115_ACEOF 16116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16117_ACEOF 16118 16119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16120 16121# Handling of arguments. 16122for ac_config_target in $ac_config_targets 16123do 16124 case $ac_config_target in 16125 "pyconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS pyconfig.h" ;; 16126 "Mac/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/Makefile" ;; 16127 "Mac/PythonLauncher/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/PythonLauncher/Makefile" ;; 16128 "Mac/IDLE/Makefile") CONFIG_FILES="$CONFIG_FILES Mac/IDLE/Makefile" ;; 16129 "Mac/Resources/framework/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/framework/Info.plist" ;; 16130 "Mac/Resources/app/Info.plist") CONFIG_FILES="$CONFIG_FILES Mac/Resources/app/Info.plist" ;; 16131 "Makefile.pre") CONFIG_FILES="$CONFIG_FILES Makefile.pre" ;; 16132 "Modules/Setup.config") CONFIG_FILES="$CONFIG_FILES Modules/Setup.config" ;; 16133 "Misc/python.pc") CONFIG_FILES="$CONFIG_FILES Misc/python.pc" ;; 16134 "Modules/ld_so_aix") CONFIG_FILES="$CONFIG_FILES Modules/ld_so_aix" ;; 16135 16136 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 16137 esac 16138done 16139 16140 16141# If the user did not use the arguments to specify the items to instantiate, 16142# then the envvar interface is used. Set only those that are not. 16143# We use the long form for the default assignment because of an extremely 16144# bizarre bug on SunOS 4.1.3. 16145if $ac_need_defaults; then 16146 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 16147 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 16148fi 16149 16150# Have a temporary directory for convenience. Make it in the build tree 16151# simply because there is no reason against having it here, and in addition, 16152# creating and moving files from /tmp can sometimes cause problems. 16153# Hook for its removal unless debugging. 16154# Note that there is a small window in which the directory will not be cleaned: 16155# after its creation but before its name has been assigned to `$tmp'. 16156$debug || 16157{ 16158 tmp= ac_tmp= 16159 trap 'exit_status=$? 16160 : "${ac_tmp:=$tmp}" 16161 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 16162' 0 16163 trap 'as_fn_exit 1' 1 2 13 15 16164} 16165# Create a (secure) tmp directory for tmp files. 16166 16167{ 16168 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 16169 test -d "$tmp" 16170} || 16171{ 16172 tmp=./conf$$-$RANDOM 16173 (umask 077 && mkdir "$tmp") 16174} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 16175ac_tmp=$tmp 16176 16177# Set up the scripts for CONFIG_FILES section. 16178# No need to generate them if there are no CONFIG_FILES. 16179# This happens for instance with `./config.status config.h'. 16180if test -n "$CONFIG_FILES"; then 16181 16182 16183ac_cr=`echo X | tr X '\015'` 16184# On cygwin, bash can eat \r inside `` if the user requested igncr. 16185# But we know of no other shell where ac_cr would be empty at this 16186# point, so we can use a bashism as a fallback. 16187if test "x$ac_cr" = x; then 16188 eval ac_cr=\$\'\\r\' 16189fi 16190ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 16191if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 16192 ac_cs_awk_cr='\\r' 16193else 16194 ac_cs_awk_cr=$ac_cr 16195fi 16196 16197echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 16198_ACEOF 16199 16200 16201{ 16202 echo "cat >conf$$subs.awk <<_ACEOF" && 16203 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 16204 echo "_ACEOF" 16205} >conf$$subs.sh || 16206 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16207ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 16208ac_delim='%!_!# ' 16209for ac_last_try in false false false false false :; do 16210 . ./conf$$subs.sh || 16211 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16212 16213 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 16214 if test $ac_delim_n = $ac_delim_num; then 16215 break 16216 elif $ac_last_try; then 16217 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 16218 else 16219 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16220 fi 16221done 16222rm -f conf$$subs.sh 16223 16224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16225cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 16226_ACEOF 16227sed -n ' 16228h 16229s/^/S["/; s/!.*/"]=/ 16230p 16231g 16232s/^[^!]*!// 16233:repl 16234t repl 16235s/'"$ac_delim"'$// 16236t delim 16237:nl 16238h 16239s/\(.\{148\}\)..*/\1/ 16240t more1 16241s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 16242p 16243n 16244b repl 16245:more1 16246s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16247p 16248g 16249s/.\{148\}// 16250t nl 16251:delim 16252h 16253s/\(.\{148\}\)..*/\1/ 16254t more2 16255s/["\\]/\\&/g; s/^/"/; s/$/"/ 16256p 16257b 16258:more2 16259s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 16260p 16261g 16262s/.\{148\}// 16263t delim 16264' <conf$$subs.awk | sed ' 16265/^[^""]/{ 16266 N 16267 s/\n// 16268} 16269' >>$CONFIG_STATUS || ac_write_fail=1 16270rm -f conf$$subs.awk 16271cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16272_ACAWK 16273cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 16274 for (key in S) S_is_set[key] = 1 16275 FS = "" 16276 16277} 16278{ 16279 line = $ 0 16280 nfields = split(line, field, "@") 16281 substed = 0 16282 len = length(field[1]) 16283 for (i = 2; i < nfields; i++) { 16284 key = field[i] 16285 keylen = length(key) 16286 if (S_is_set[key]) { 16287 value = S[key] 16288 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 16289 len += length(value) + length(field[++i]) 16290 substed = 1 16291 } else 16292 len += 1 + keylen 16293 } 16294 16295 print line 16296} 16297 16298_ACAWK 16299_ACEOF 16300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16301if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 16302 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 16303else 16304 cat 16305fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 16306 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 16307_ACEOF 16308 16309# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 16310# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 16311# trailing colons and then remove the whole line if VPATH becomes empty 16312# (actually we leave an empty line to preserve line numbers). 16313if test "x$srcdir" = x.; then 16314 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 16315h 16316s/// 16317s/^/:/ 16318s/[ ]*$/:/ 16319s/:\$(srcdir):/:/g 16320s/:\${srcdir}:/:/g 16321s/:@srcdir@:/:/g 16322s/^:*// 16323s/:*$// 16324x 16325s/\(=[ ]*\).*/\1/ 16326G 16327s/\n// 16328s/^[^=]*=[ ]*$// 16329}' 16330fi 16331 16332cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16333fi # test -n "$CONFIG_FILES" 16334 16335# Set up the scripts for CONFIG_HEADERS section. 16336# No need to generate them if there are no CONFIG_HEADERS. 16337# This happens for instance with `./config.status Makefile'. 16338if test -n "$CONFIG_HEADERS"; then 16339cat >"$ac_tmp/defines.awk" <<\_ACAWK || 16340BEGIN { 16341_ACEOF 16342 16343# Transform confdefs.h into an awk script `defines.awk', embedded as 16344# here-document in config.status, that substitutes the proper values into 16345# config.h.in to produce config.h. 16346 16347# Create a delimiter string that does not exist in confdefs.h, to ease 16348# handling of long lines. 16349ac_delim='%!_!# ' 16350for ac_last_try in false false :; do 16351 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 16352 if test -z "$ac_tt"; then 16353 break 16354 elif $ac_last_try; then 16355 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 16356 else 16357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 16358 fi 16359done 16360 16361# For the awk script, D is an array of macro values keyed by name, 16362# likewise P contains macro parameters if any. Preserve backslash 16363# newline sequences. 16364 16365ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 16366sed -n ' 16367s/.\{148\}/&'"$ac_delim"'/g 16368t rset 16369:rset 16370s/^[ ]*#[ ]*define[ ][ ]*/ / 16371t def 16372d 16373:def 16374s/\\$// 16375t bsnl 16376s/["\\]/\\&/g 16377s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16378D["\1"]=" \3"/p 16379s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 16380d 16381:bsnl 16382s/["\\]/\\&/g 16383s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 16384D["\1"]=" \3\\\\\\n"\\/p 16385t cont 16386s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 16387t cont 16388d 16389:cont 16390n 16391s/.\{148\}/&'"$ac_delim"'/g 16392t clear 16393:clear 16394s/\\$// 16395t bsnlc 16396s/["\\]/\\&/g; s/^/"/; s/$/"/p 16397d 16398:bsnlc 16399s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 16400b cont 16401' <confdefs.h | sed ' 16402s/'"$ac_delim"'/"\\\ 16403"/g' >>$CONFIG_STATUS || ac_write_fail=1 16404 16405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16406 for (key in D) D_is_set[key] = 1 16407 FS = "" 16408} 16409/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 16410 line = \$ 0 16411 split(line, arg, " ") 16412 if (arg[1] == "#") { 16413 defundef = arg[2] 16414 mac1 = arg[3] 16415 } else { 16416 defundef = substr(arg[1], 2) 16417 mac1 = arg[2] 16418 } 16419 split(mac1, mac2, "(") #) 16420 macro = mac2[1] 16421 prefix = substr(line, 1, index(line, defundef) - 1) 16422 if (D_is_set[macro]) { 16423 # Preserve the white space surrounding the "#". 16424 print prefix "define", macro P[macro] D[macro] 16425 next 16426 } else { 16427 # Replace #undef with comments. This is necessary, for example, 16428 # in the case of _POSIX_SOURCE, which is predefined and required 16429 # on some systems where configure will not decide to define it. 16430 if (defundef == "undef") { 16431 print "/*", prefix defundef, macro, "*/" 16432 next 16433 } 16434 } 16435} 16436{ print } 16437_ACAWK 16438_ACEOF 16439cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16440 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 16441fi # test -n "$CONFIG_HEADERS" 16442 16443 16444eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 16445shift 16446for ac_tag 16447do 16448 case $ac_tag in 16449 :[FHLC]) ac_mode=$ac_tag; continue;; 16450 esac 16451 case $ac_mode$ac_tag in 16452 :[FHL]*:*);; 16453 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 16454 :[FH]-) ac_tag=-:-;; 16455 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 16456 esac 16457 ac_save_IFS=$IFS 16458 IFS=: 16459 set x $ac_tag 16460 IFS=$ac_save_IFS 16461 shift 16462 ac_file=$1 16463 shift 16464 16465 case $ac_mode in 16466 :L) ac_source=$1;; 16467 :[FH]) 16468 ac_file_inputs= 16469 for ac_f 16470 do 16471 case $ac_f in 16472 -) ac_f="$ac_tmp/stdin";; 16473 *) # Look for the file first in the build tree, then in the source tree 16474 # (if the path is not absolute). The absolute path cannot be DOS-style, 16475 # because $ac_f cannot contain `:'. 16476 test -f "$ac_f" || 16477 case $ac_f in 16478 [\\/$]*) false;; 16479 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 16480 esac || 16481 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 16482 esac 16483 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 16484 as_fn_append ac_file_inputs " '$ac_f'" 16485 done 16486 16487 # Let's still pretend it is `configure' which instantiates (i.e., don't 16488 # use $as_me), people would be surprised to read: 16489 # /* config.h. Generated by config.status. */ 16490 configure_input='Generated from '` 16491 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 16492 `' by configure.' 16493 if test x"$ac_file" != x-; then 16494 configure_input="$ac_file. $configure_input" 16495 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 16496$as_echo "$as_me: creating $ac_file" >&6;} 16497 fi 16498 # Neutralize special characters interpreted by sed in replacement strings. 16499 case $configure_input in #( 16500 *\&* | *\|* | *\\* ) 16501 ac_sed_conf_input=`$as_echo "$configure_input" | 16502 sed 's/[\\\\&|]/\\\\&/g'`;; #( 16503 *) ac_sed_conf_input=$configure_input;; 16504 esac 16505 16506 case $ac_tag in 16507 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 16508 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 16509 esac 16510 ;; 16511 esac 16512 16513 ac_dir=`$as_dirname -- "$ac_file" || 16514$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 16515 X"$ac_file" : 'X\(//\)[^/]' \| \ 16516 X"$ac_file" : 'X\(//\)$' \| \ 16517 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 16518$as_echo X"$ac_file" | 16519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 16520 s//\1/ 16521 q 16522 } 16523 /^X\(\/\/\)[^/].*/{ 16524 s//\1/ 16525 q 16526 } 16527 /^X\(\/\/\)$/{ 16528 s//\1/ 16529 q 16530 } 16531 /^X\(\/\).*/{ 16532 s//\1/ 16533 q 16534 } 16535 s/.*/./; q'` 16536 as_dir="$ac_dir"; as_fn_mkdir_p 16537 ac_builddir=. 16538 16539case "$ac_dir" in 16540.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 16541*) 16542 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 16543 # A ".." for each directory in $ac_dir_suffix. 16544 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 16545 case $ac_top_builddir_sub in 16546 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 16547 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 16548 esac ;; 16549esac 16550ac_abs_top_builddir=$ac_pwd 16551ac_abs_builddir=$ac_pwd$ac_dir_suffix 16552# for backward compatibility: 16553ac_top_builddir=$ac_top_build_prefix 16554 16555case $srcdir in 16556 .) # We are building in place. 16557 ac_srcdir=. 16558 ac_top_srcdir=$ac_top_builddir_sub 16559 ac_abs_top_srcdir=$ac_pwd ;; 16560 [\\/]* | ?:[\\/]* ) # Absolute name. 16561 ac_srcdir=$srcdir$ac_dir_suffix; 16562 ac_top_srcdir=$srcdir 16563 ac_abs_top_srcdir=$srcdir ;; 16564 *) # Relative name. 16565 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 16566 ac_top_srcdir=$ac_top_build_prefix$srcdir 16567 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 16568esac 16569ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 16570 16571 16572 case $ac_mode in 16573 :F) 16574 # 16575 # CONFIG_FILE 16576 # 16577 16578 case $INSTALL in 16579 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 16580 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 16581 esac 16582 ac_MKDIR_P=$MKDIR_P 16583 case $MKDIR_P in 16584 [\\/$]* | ?:[\\/]* ) ;; 16585 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 16586 esac 16587_ACEOF 16588 16589cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16590# If the template does not know about datarootdir, expand it. 16591# FIXME: This hack should be removed a few years after 2.60. 16592ac_datarootdir_hack=; ac_datarootdir_seen= 16593ac_sed_dataroot=' 16594/datarootdir/ { 16595 p 16596 q 16597} 16598/@datadir@/p 16599/@docdir@/p 16600/@infodir@/p 16601/@localedir@/p 16602/@mandir@/p' 16603case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 16604*datarootdir*) ac_datarootdir_seen=yes;; 16605*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 16606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 16607$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 16608_ACEOF 16609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16610 ac_datarootdir_hack=' 16611 s&@datadir@&$datadir&g 16612 s&@docdir@&$docdir&g 16613 s&@infodir@&$infodir&g 16614 s&@localedir@&$localedir&g 16615 s&@mandir@&$mandir&g 16616 s&\\\${datarootdir}&$datarootdir&g' ;; 16617esac 16618_ACEOF 16619 16620# Neutralize VPATH when `$srcdir' = `.'. 16621# Shell code in configure.ac might set extrasub. 16622# FIXME: do we really want to maintain this feature? 16623cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 16624ac_sed_extra="$ac_vpsub 16625$extrasub 16626_ACEOF 16627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 16628:t 16629/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 16630s|@configure_input@|$ac_sed_conf_input|;t t 16631s&@top_builddir@&$ac_top_builddir_sub&;t t 16632s&@top_build_prefix@&$ac_top_build_prefix&;t t 16633s&@srcdir@&$ac_srcdir&;t t 16634s&@abs_srcdir@&$ac_abs_srcdir&;t t 16635s&@top_srcdir@&$ac_top_srcdir&;t t 16636s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 16637s&@builddir@&$ac_builddir&;t t 16638s&@abs_builddir@&$ac_abs_builddir&;t t 16639s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 16640s&@INSTALL@&$ac_INSTALL&;t t 16641s&@MKDIR_P@&$ac_MKDIR_P&;t t 16642$ac_datarootdir_hack 16643" 16644eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 16645 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16646 16647test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 16648 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 16649 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 16650 "$ac_tmp/out"`; test -z "$ac_out"; } && 16651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16652which seems to be undefined. Please make sure it is defined" >&5 16653$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 16654which seems to be undefined. Please make sure it is defined" >&2;} 16655 16656 rm -f "$ac_tmp/stdin" 16657 case $ac_file in 16658 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 16659 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 16660 esac \ 16661 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16662 ;; 16663 :H) 16664 # 16665 # CONFIG_HEADER 16666 # 16667 if test x"$ac_file" != x-; then 16668 { 16669 $as_echo "/* $configure_input */" \ 16670 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 16671 } >"$ac_tmp/config.h" \ 16672 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16673 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 16674 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 16675$as_echo "$as_me: $ac_file is unchanged" >&6;} 16676 else 16677 rm -f "$ac_file" 16678 mv "$ac_tmp/config.h" "$ac_file" \ 16679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 16680 fi 16681 else 16682 $as_echo "/* $configure_input */" \ 16683 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 16684 || as_fn_error $? "could not create -" "$LINENO" 5 16685 fi 16686 ;; 16687 16688 16689 esac 16690 16691 16692 case $ac_file$ac_mode in 16693 "Modules/ld_so_aix":F) chmod +x Modules/ld_so_aix ;; 16694 16695 esac 16696done # for ac_tag 16697 16698 16699as_fn_exit 0 16700_ACEOF 16701ac_clean_files=$ac_clean_files_save 16702 16703test $ac_write_fail = 0 || 16704 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16705 16706 16707# configure is writing to config.log, and then calls config.status. 16708# config.status does its own redirection, appending to config.log. 16709# Unfortunately, on DOS this fails, as config.log is still kept open 16710# by configure, so config.status won't be able to write to it; its 16711# output is simply discarded. So we exec the FD to /dev/null, 16712# effectively closing config.log, so it can be properly (re)opened and 16713# appended to by config.status. When coming back to configure, we 16714# need to make the FD available again. 16715if test "$no_create" != yes; then 16716 ac_cs_success=: 16717 ac_config_status_args= 16718 test "$silent" = yes && 16719 ac_config_status_args="$ac_config_status_args --quiet" 16720 exec 5>/dev/null 16721 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16722 exec 5>>config.log 16723 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16724 # would make configure fail if this is the last instruction. 16725 $ac_cs_success || as_fn_exit 1 16726fi 16727if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16729$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16730fi 16731 16732 16733echo "creating Modules/Setup" 16734if test ! -f Modules/Setup 16735then 16736 cp $srcdir/Modules/Setup.dist Modules/Setup 16737fi 16738 16739echo "creating Modules/Setup.local" 16740if test ! -f Modules/Setup.local 16741then 16742 echo "# Edit this file for local setup changes" >Modules/Setup.local 16743fi 16744 16745echo "creating Makefile" 16746$SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ 16747 -s Modules Modules/Setup.config \ 16748 Modules/Setup.local Modules/Setup 16749 16750case $ac_sys_system in 16751BeOS) 16752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 16753 16754 Support for BeOS is deprecated as of Python 2.6. 16755 See PEP 11 for the gory details. 16756 " >&5 16757$as_echo "$as_me: WARNING: 16758 16759 Support for BeOS is deprecated as of Python 2.6. 16760 See PEP 11 for the gory details. 16761 " >&2;} 16762 ;; 16763*) ;; 16764esac 16765 16766mv config.c Modules 16767 16768if test "$Py_OPT" = 'false' -a "$Py_DEBUG" != 'true'; then 16769 echo "" >&6 16770 echo "" >&6 16771 echo "If you want a release build with all optimizations active (LTO, PGO, etc)," 16772 echo "please run ./configure --enable-optimizations" >&6 16773 echo "" >&6 16774 echo "" >&6 16775fi 16776